/* Fast bredde på labels i Export Edit forms */
.savvy-exporttool-details-form .col-form-label {
    min-width: 135px;
    max-width: 135px;
    width: 135px;
    text-align: right;
}

/* Export Edit UI: max width and centering */
.savvy-exporttool-edit-wrapper {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove right-align for Save Export Details button */
.savvy-exporttool-details-form .mb-3.row:last-of-type .col-sm-6 {
    display: block;
    justify-content: unset;
    align-items: unset;
}

/* Override Bootstrap offset for Save Export Details button */
.savvy-exporttool-details-form .mb-3.row:last-of-type .offset-sm-2 {
    margin-left: 0 !important;
} 


.savvy-feedtool-header {
  background: #ecebe4 !important;
  color: #0c6b35 !important;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}

/* Client Table Max Width - venstrejusteret */
.savvy-client-table-wrap {
    /* max-width: 900px; */
    /* margin-left: 0; */
    /* margin-right: auto; */
}
.savvy-client-table {
    width: 100%;
    table-layout: fixed;
}
.savvy-client-table th,
.savvy-client-table td {
    width: auto;
}
.savvy-client-table th:last-child,
.savvy-client-table td:last-child {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    text-align: center;
}
.savvy-client-table th:nth-child(3),
.savvy-client-table td:nth-child(3) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}
.savvy-client-table td:nth-child(3) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 40px;
}

/* Sidebar width and icon size */
.savvy-feedtool-sidebar {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding-left: 0;
    padding-right: 0;
}
.savvy-menu-icons .nav-link i {
    font-size: 25px !important;
    width: 25px;
    height: 25px;
    display: inline-block;
    text-align: center;
}

/* Afstand mellem Feeds og Options kolonner */
.savvy-client-table td:nth-child(3) {
    padding-right: 24px;
}

/* Ens bredde og højrejustering for Feeds-knap */
.savvy-feedtool-client-feeds {
    min-width: 110px;
    text-align: right;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.feed-count-mono {
    font-family: monospace;
    min-width: 2ch;
    text-align: right;
    display: inline-block;
}

/* Horisontal menu under sidetitel */
.savvy-feedtool-horizontal-menu-wrap {
    width: 100%;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    background: #ecebe4;
    padding: 0.5rem 0 0.5rem 0;
}
.savvy-feedtool-horizontal-menu {
    flex-direction: row !important;
    gap: 0;
}
.savvy-feedtool-horizontal-menu .nav-item {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
}
.savvy-feedtool-horizontal-menu .nav-link {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0;
}

/* Fjern sidebar hvis den stadig findes */
.savvy-feedtool-sidebar { display: none !important; }

/* Custom farve til horisontal menu */
.savvy-menu-clients,
.savvy-menu-specialists,
.savvy-menu-global-settings,
.savvy-menu-feeds {
    color: #39b1a2 !important;
    background: none !important;
    border: none !important;
}
.savvy-menu-clients.active,
.savvy-menu-specialists.active,
.savvy-menu-global-settings.active,
.savvy-menu-feeds.active,
.savvy-menu-clients:focus,
.savvy-menu-specialists:focus,
.savvy-menu-global-settings:focus,
.savvy-menu-feeds:focus {
    color: #fff !important;
    background: #39b1a2 !important;
    border: none !important;
}
.savvy-menu-clients i,
.savvy-menu-specialists i,
.savvy-menu-global-settings i,
.savvy-menu-feeds i {
    color: #39b1a2 !important;
}
.savvy-menu-clients.active i,
.savvy-menu-specialists.active i,
.savvy-menu-global-settings.active i,
.savvy-menu-feeds.active i {
    color: #fff !important;
}

/* Custom knapper: solid #39b1a2, hvid tekst, ingen gradient */
.btn.btn-secondary.savvy-feedtool-client-feeds,
.btn.btn-secondary.dropdown-toggle,
.btn.btn-success#savvy-add-new-client-btn,
.btn.btn-success#savvy-add-new-feed-btn,
.btn.btn-success#savvy-add-new-specialist-btn,
.btn.btn-success#savvy-add-new-export-btn {
    background: #39b1a2 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.btn.btn-secondary.savvy-feedtool-client-feeds:hover,
.btn.btn-secondary.dropdown-toggle:hover,
.btn.btn-success#savvy-add-new-client-btn:hover,
.btn.btn-success#savvy-add-new-feed-btn:hover,
.btn.btn-success#savvy-add-new-specialist-btn:hover,
.btn.btn-success#savvy-add-new-export-btn:hover {
    background: #094842 !important;
    color: #fff !important;
}

/* Sikrer at dropdown-menuen ikke får farve */
.dropdown-menu {
    background: #fff;
}

/* Feed Table Max Width - venstrejusteret */
.savvy-feed-table-wrap {
    /* max-width: 1000px; */
    /* margin-left: 0; */
    /* margin-right: auto; */
}
.savvy-feed-table {
    width: 100%;
    /* max-width: 1000px; */
}

/* NYT: Centrer og sæt max bredde på plugin-indhold */
#page > div.wrap > .container-fluid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.savvy-feedtool-header,
.savvy-feedtool-horizontal-menu-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.savvy-feedtool-export-count-btn {
    background-color: #39b1a2 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    border-radius: 6px;
    padding: 6px 18px;
    height: 38px;
    transition: background 0.2s;
}
.savvy-feedtool-export-count-btn:hover,
.savvy-feedtool-export-count-btn:focus {
    background-color: #094842 !important;
    color: #fff !important;
}
.savvy-feedtool-export-count-btn .feed-count-mono {
    font-weight: 400 !important;
}
.savvy-specialist-edit-btn {
    background-color: #39b1a2 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    border-radius: 6px;
    padding: 6px 18px;
    height: 38px;
    transition: background 0.2s;
}
.savvy-specialist-edit-btn:hover,
.savvy-specialist-edit-btn:focus {
    background-color: #094842 !important;
    color: #fff !important;
}
.savvy-specialist-delete-btn {
    background-color: #be658e !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 18px;
    height: 38px;
    transition: background 0.2s;
}
.savvy-specialist-delete-btn:hover,
.savvy-specialist-delete-btn:focus {
    background-color: #8e2e5d !important;
    color: #fff !important;
}

.savvy-custom-dropdown {
  position: relative;
  display: inline-block;
}
.savvy-custom-dropdown-toggle {
  background: #39b1a2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 18px;
  cursor: pointer;
  font-weight: 400;
  transition: background 0.2s;
}
.savvy-custom-dropdown-toggle:hover,
.savvy-custom-dropdown-toggle:focus {
  background: #094842;
}
.savvy-custom-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 140px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
}
.savvy-custom-dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 1em;
}
.savvy-custom-dropdown-menu li a:hover {
  background: #f2f2f2;
  color: #094842;
}
.savvy-custom-dropdown.open .savvy-custom-dropdown-menu {
  display: block;
}