/* Need to custome size on pictures and color customes) */

@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap");

:root {
  --nhhs-navy: #002B4D;
  --nhhs-accent: #1F4766;
  --nhhs-text: #3B3D42;
  --nhhs-bg: #f3f6fd;
}

body {
  font-family: 'Montserrat', sans-serif !important;
  background-color: var(--nhhs-bg);
}

.input-group-admin { padding-bottom: 20px; }
.btn-sm-admin-action-multiple { margin-left: 20px; }

.card-footer.cader-custom {
  background: var(--nhhs-accent);
  color:  var(--nhhs-navy);
}

.container-background { background-color: var(--nhhs-bg); }

.language-select{
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}
.language-select:hover{ background-color: grey; }

.navbar{ margin-bottom: 20px; }
.btn-admin { 
    background: linear-gradient(135deg, var(--nhhs-navy) 0%, #0a1f30 100%);
    border: none;
    color: white !important;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 27, 48, 0.25);
    transition: all 0.3s ease;
    margin-top: 0rem;
    display: inline-block;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 27, 48, 0.35);
}

.admin-listings-table,
#tableGroupListings {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: none;
}

.admin-listings-table thead,
#tableGroupListings thead {
    background-color: #f9fafc;
}

.admin-listings-table thead th,
#tableGroupListings thead th {
    background-color: #eff3fd !important;
    color: var(--nhhs-navy) !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-top: none !important;
    font-weight: 600;
    padding: 18px 28px;
    text-align: left;
    font-size: 0.95rem;
}

.admin-listings-table tbody tr,
#tableGroupListings tbody tr {
    border-bottom: 1px solid #d2e0f3;
}

.admin-listings-table tbody tr:hover,
#tableGroupListings tbody tr:hover {
    background-color: #f8f9fa;
}

.admin-listings-table tbody td,
#tableGroupListings tbody td {
    padding: 18px 28px;
    vertical-align: middle;
    border-color: #eef2f7;
}

.admin-listings-table .col-create-action {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.admin-listings-table .admin-table-action-link {
    display: inline-block;
    background-color: var(--nhhs-navy);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-listings-table .admin-table-action-link:hover {
    background-color: #1a3d5a;
    transform: translateY(-2px);
}

.admin-listings-table .badge,
#tableGroupListings .badge {
    font-size: 0.85rem;   
    padding: 0.5em 0.75em;
}

.admin-listings-table thead th.col-create-action::after,
.admin-listings-table thead th.col-create-action.sorting::before,
.admin-listings-table thead th.col-create-action.sorting::after,
.admin-listings-table thead th.col-create-action.sorting_asc::before,
.admin-listings-table thead th.col-create-action.sorting_asc::after,
.admin-listings-table thead th.col-create-action.sorting_desc::before,
.admin-listings-table thead th.col-create-action.sorting_desc::after,
#tableGroupListings thead th:last-child::after,
#tableGroupListings thead th:last-child .sorting::before,
#tableGroupListings thead th:last-child .sorting::after,
#tableGroupListings thead th:last-child .sorting_asc::before,
#tableGroupListings thead th:last-child .sorting_asc::after,
#tableGroupListings thead th:last-child .sorting_desc::before,
#tableGroupListings thead th:last-child .sorting_desc::after {
    display: none !important;
}

.admin-listings-table .col-created-date,
.admin-listings-table .col-deadline-date {
    white-space: nowrap;
    width: 1%;
}

.admin-listings-table .col-note {
    width: 32%;
    min-width: 240px;
    white-space: normal;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: white !important;
    border: 1px solid #ced4da !important;
    color: var(--nhhs-text);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: var(--nhhs-navy);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
    border-color: var(--nhhs-navy);
    background-color: #f0f4f8;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: var(--nhhs-navy);
    color: white;
    border-color: var(--nhhs-navy);
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--nhhs-accent);
}

.dataTables_wrapper table thead {
    background-color: var(--nhhs-navy);
    color: #ffffff;
}

.dataTables_wrapper table thead th {
    background-color: var(--nhhs-navy) !important;
    color: #ffffff !important;
    border-color: var(--nhhs-navy) !important;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.dataTables_wrapper table.admin-listings-table thead,
.dataTables_wrapper .fixedHeader-floating.admin-listings-table thead {
    background-color: #f9fafc;
}

.dataTables_wrapper table.admin-listings-table thead th,
.dataTables_wrapper .fixedHeader-floating.admin-listings-table thead th {
    background-color: #eff3fd !important;
    color: var(--nhhs-navy) !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-top: none !important;
    border-color: #eef2f7 !important;
    padding: 18px 28px;
    text-align: left;
    font-size: 0.95rem;
}

.table .thead-dark th {
    background-color: var(--nhhs-navy);
    border-color: var(--nhhs-navy);
    color: #ffffff;
}

.customHeader1 {
  background-color: var(--nhhs-accent);
  border-color: var(--nhhs-accent);
  color: white !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--nhhs-accent) 0%, #1a3d5a 100%);
  box-shadow: 0 4px 12px rgba(31, 71, 102, 0.25);
  transition: all 0.3s ease;
  color: white !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 71, 102, 0.35);
}
.btn-primary-red {
  min-width: 200px;
  background-color: #a54652;
  border-color: #a54652;
  transition: all 0.3s ease;
  color: #fff !important;
}

.btn-primary-red:hover,
.btn-primary-red:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 71, 102, 0.35);
  color: #fff !important;
}

.btn-primary-red:active:focus {
  color: #ffffff;
  background-color: #161617;
  border-color: #494F57;
}

.hide-show-listings{
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

.cardLogo {
  max-width: 60%;
  max-height: 50%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
}

.card-header {
  background-color: var(--nhhs-navy);
  color: #ffffff;
  text-align: center;
  padding: 0.75rem;
}

.card-footer{
  color: #ffffff;
  background-color: var(--nhhs-accent);
  text-align: center;
  padding: 0.75rem;
}

.logobox{ height: 210px; }
.card{
  margin: auto;
  margin-bottom: 15px;
  width: 100%;
}
img.card-discontinued, .card-discontinued { opacity: 0.5; }
.NoHover:hover{ text-decoration: none; }
.Red{ color: #ff0000; font-weight: bold; }

.nhhs-navbar {
  background-color: #fff !important;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.nhhs-navbar .container-fluid {
  gap: .75rem;
}

.nhhs-navbar .navbar-brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-right: .5rem;
}

.nhhs-brand-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.nhhs-brand-text {
  color: var(--nhhs-navy);
  font-weight: 700;
  letter-spacing: .6px;
  margin-left: .5rem;
  white-space: nowrap;
  font-size: clamp(0.9rem, 4vw, 1.25rem);
}

.nhhs-menu {
  gap: .95rem;
  font-weight: 500;
}

#navbar .nav-link {
  color: var(--nhhs-text) !important;
  position: relative;
  padding: .25rem .15rem;
  white-space: nowrap;
  font-size: .98rem;
  transition: color .25s ease;
}
#navbar .nav-link:hover,
#navbar .nav-item.active .nav-link {
  color: var(--nhhs-navy) !important;
}
#navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0%;
  background: var(--nhhs-navy);
  border-radius: 2px;
  transition: width .25s ease;
}
#navbar .nav-link:hover::after,
#navbar .nav-item.active .nav-link::after {
  width: 100%;
}

.nhhs-auth-item {
  margin-left: .75rem;
  flex-shrink: 0;
}

.nhhs-google-login-btn {
  background-color: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  color: #3c4043;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.nhhs-google-login-btn:hover {
  border-color: #c6c6c6;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
  color: #3c4043;
  text-decoration: none;
}

.nhhs-google-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler { 
  border: none; 
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}
.navbar-toggler:focus { box-shadow: none; }

@media (min-width: 992px) {
  .nhhs-navbar .navbar-collapse {
    justify-content: flex-end;
    align-items: center;
  }

  .nhhs-menu {
    flex-wrap: nowrap;
  }
}

@media (max-width: 991.98px) {
  .nhhs-auth-item {
    margin-left: 0;
    margin-top: .5rem;
  }
}

.iframe-container{
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; 
    height: 0 !important;
  }
  .iframe-container iframe{
    position: absolute !important;
    top:0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  

/*MediaQuery*/
@media only screen and (max-width: 770px) {
        .listing-header {
      font-size: 2em;
    }
    .card-footer{
        font-size: 12px;
    }
    .card-header{
        font-size: 12px;
    }
  }

  @media (max-width: 575.98px) { 
    .col-sm-6{
        max-width:50%;
     } 
     .btn-application {
         font-size: 0.75rem;
     }
     .listing-header-groupName {
        display: block;
     }
   }

   @media (max-width: 370px) { 
    .col-sm-6{
        max-width:100%;
     } 
     
   }
   @media (max-width: 400px){
       .h2{
           font-size: 10px;
       }
   }

.listing-table {  
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }


.btn-application {
    float: right;
    margin-top: 14px;
    font-size: 1.2rem;
}

.admin-listing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.admin-stats-shell{background:linear-gradient(145deg,#f9fbff 0%,#f3f6fc 100%);border:1px solid #dfe6f3;border-radius:14px;padding:18px;margin-bottom:18px}.admin-filter-shell,.admin-section-card,.admin-distribution-card,.admin-metric-card,.admin-change-card{background:#fff;border:1px solid #e4e8f0;border-radius:12px}.admin-filter-shell,.admin-section-card,.admin-distribution-card,.admin-change-card{padding:14px;margin-bottom:16px}.admin-metric-card{padding:14px;margin-bottom:12px;min-height:96px}.admin-metric-card .metric-label{font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:#5f6778;margin-bottom:6px}.admin-metric-card .metric-value{font-size:1.7rem;font-weight:700;color:#1d2740;line-height:1.1}.admin-insight-card{background:#1f2a44;color:#f2f5ff;border-radius:12px;padding:14px;margin-bottom:12px;min-height:102px}.admin-insight-card .insight-label{opacity:.78;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.admin-insight-card .insight-value{margin-top:6px;font-size:1.1rem;font-weight:700}.admin-distribution-title{font-size:1rem;font-weight:700;color:#1d2740;margin-bottom:10px}.admin-distribution-row{margin-bottom:10px}.admin-distribution-meta{display:flex;justify-content:space-between;color:#5f6778;font-size:.86rem;margin-bottom:5px}.admin-distribution-row .progress{height:10px;border-radius:999px;background:#ecf0f7}.admin-distribution-row .progress-bar{background:linear-gradient(90deg,#4a6ad8 0%,#5ab2e8 100%);border-radius:999px}.admin-status-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.admin-status-chip{background:#edf2ff;border:1px solid #d8e1fb;color:#2e3f6f;border-radius:999px;padding:5px 10px;font-size:.82rem;font-weight:600}.admin-table-clean thead th{background:#1f2a44;color:#f2f5ff}.admin-change-actions{min-width:220px}.admin-change-actions textarea{border:1px solid #d5ddef;border-radius:8px;min-height:72px}.admin-json-box{background:#f6f8fc;border:1px solid #e2e8f6;border-radius:8px;padding:10px;max-width:520px;margin:0;white-space:pre-wrap}

.admin-stats-shell,.admin-filter-shell,.admin-section-card,.admin-change-card,.admin-distribution-card{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}.admin-metric-card{background:#fff !important;border:1px solid #dfe5ef !important;border-radius:10px !important}.admin-insight-card{background:#eef3fb !important;color:#1c2f48 !important;border:1px solid #d7e0ee !important}.admin-insight-card .insight-label{opacity:1;color:#415d82}.admin-table-clean,.admin-change-card table{border:1px solid #d7deea !important;border-radius:10px !important;overflow:hidden !important;background:#fff !important}.admin-table-clean thead th,#tableAdminChangeRequestsPending thead th,#tableAdminChangeRequestsHistory thead th{background:#e9eef7 !important;color:#1e3555 !important;border-color:#d2daea !important}.admin-table-clean tbody tr:nth-child(even),#tableAdminChangeRequestsPending tbody tr:nth-child(even),#tableAdminChangeRequestsHistory tbody tr:nth-child(even){background:#f9fbff}.admin-table-clean tbody tr:hover,#tableAdminChangeRequestsPending tbody tr:hover,#tableAdminChangeRequestsHistory tbody tr:hover{background:#eef4ff !important}.admin-json-box{background:#f9fbff;border-color:#d9e2f2}

.dataTables_wrapper .fixedHeader-floating.admin-table-clean thead th,.dataTables_wrapper .fixedHeader-floating#tableAdminChangeRequestsPending thead th,.dataTables_wrapper .fixedHeader-floating#tableAdminChangeRequestsHistory thead th{background:#e9eef7 !important;color:#1e3555 !important;border-color:#d2daea !important}

.admin-filter-shell{padding:8px 0 12px !important;margin-bottom:18px !important;border-bottom:1px solid #d7deea !important}.admin-filter-shell label{font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:#435066}.admin-filter-shell .form-control{height:38px}.admin-stats-shell{margin-bottom:8px}.admin-section-card{padding:8px 0 !important;margin-bottom:14px !important}.admin-section-card h3,.admin-section-card h5{margin-bottom:10px}.admin-distribution-card{padding:10px 12px !important}

.admin-change-list{display:flex;flex-direction:column;gap:8px;min-width:240px}.admin-change-item{background:#f8faff;border:1px solid #dce4f3;border-radius:8px;padding:8px 10px}.admin-change-field{font-size:.78rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#3b4a63;margin-bottom:2px}.admin-change-value{font-size:.9rem;color:#1c2f48;line-height:1.35;white-space:normal;word-break:break-word}.admin-change-action-btn{height:42px;display:flex;align-items:center;justify-content:center;font-weight:700;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}

.admin-change-list-proposed .admin-change-item{border:1px solid #dce4f3;background:#f8faff;box-shadow:none}

.admin-change-inline-added{display:inline;background:#dbe9ff;border-radius:4px;padding:0 4px;font-weight:700}

.admin-change-actions .btn-success.admin-change-action-btn:hover,.admin-change-actions .btn-danger.admin-change-action-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(10,27,54,.22);filter:saturate(1.05)}

.admin-change-actions .btn-danger.admin-change-action-btn{background:#dc3545;border-color:#dc3545}

/* Statistics polish + prevent clipped text in filter controls */
.admin-filter-shell{display:block;background:#eef4ff !important;border:2px solid #0b2f63 !important;border-radius:14px !important;padding:14px !important;margin-bottom:20px !important}
.admin-filter-shell .form-control{height:52px !important;line-height:1.3 !important;padding:12px 14px !important;font-size:1.05rem !important;border:2px solid #b8c8e4 !important;background:#ffffff !important}
.admin-filter-shell select.form-control{padding-top:10px !important;padding-bottom:10px !important}
.admin-filter-shell .btn{height:48px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}

.admin-filter-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}

.admin-stats-shell{background:linear-gradient(180deg,#f6f9ff 0%,#edf3ff 100%) !important;border:2px solid #0b2f63 !important;border-radius:16px !important;padding:16px !important;margin-bottom:16px !important}
.admin-metric-card{border:2px solid #123b75 !important;border-radius:12px !important;box-shadow:0 8px 20px rgba(18,59,117,.08)}
.admin-section-card{background:#f4f8ff !important;border:1px solid #c6d6ef !important;border-radius:12px !important;padding:12px !important}
.admin-distribution-card{background:#ffffff !important;border:1px solid #d1deef !important;border-radius:12px !important}

/* Statistics layout tuning */
#nav-statistics .admin-stats-shell{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#nav-statistics .admin-stats-shell > .admin-section-card:first-child {
  margin-bottom: 0;
}

#nav-statistics .admin-stats-shell > .row {
  margin-top: 0 !important;
}

#nav-statistics .admin-stats-shell > .row:first-of-type {
  margin-bottom: 2px;
}

#nav-statistics .admin-metric-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#nav-statistics .admin-status-chips {
  margin-bottom: 0;
}

#nav-statistics .admin-distribution-card {
  height: 100%;
}

.admin-filter-shell,
.admin-stats-shell{background:var(--nhhs-navy) !important;border:1px solid #163f76 !important;color:#ffffff !important}

.admin-filter-shell label,
.admin-stats-shell h3,
.admin-stats-shell h5,
.admin-stats-shell .metric-label,
.admin-stats-shell .metric-value,
.admin-stats-shell .admin-distribution-title,
.admin-stats-shell .admin-distribution-meta,
.admin-stats-shell .admin-status-chip{color:#ffffff !important}

.admin-stats-shell .admin-metric-card,
.admin-stats-shell .admin-section-card,
.admin-stats-shell .admin-distribution-card{background:rgba(255,255,255,0.08) !important;border:1px solid rgba(255,255,255,0.24) !important;box-shadow:none !important}

.admin-stats-shell .admin-status-chip{background:rgba(255,255,255,0.14) !important;border-color:rgba(255,255,255,0.28) !important}

.admin-stats-shell .progress{background:rgba(255,255,255,0.2) !important}
.admin-stats-shell .progress-bar{background:linear-gradient(90deg,#8fc8ff 0%,#d7ebff 100%) !important}

.admin-listing-actions > a {
    order: 2;
}

.admin-listing-actions .admin-listing-toggle-form {
    order: 1;
}

.admin-listing-actions .btn-application {
    float: none;
    margin-top: 0;
}

.admin-listing-toggle-form {
    margin: 0;
}

.apply {
    margin-top: 25px;
}

.editListing-body {
    padding: 2vh 2vh 2vh 2vh;
}

.builder-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header-custom {
    background-color: var(--nhhs-navy);
    color: #ffffff;
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 12px 12px 0 0;
}

.card-header-custom h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.page-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    color: var(--nhhs-navy);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--nhhs-text);
    margin: 0;
    font-size: 1rem;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.edit-group-page {
    width: min(1640px, calc(100vw - 2rem));
    max-width: none;
    margin: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 2.5rem 1rem 4rem;
}

.edit-group-page__back {
    margin-bottom: 1.5rem;
}

.edit-group-back-link {
    color: var(--nhhs-accent);
    font-size: 1.1rem;
    text-decoration: none;
}

.edit-group-back-link:hover {
    color: var(--nhhs-navy);
}

.edit-group-shell {
    background: #ffffff;
    border: 1px solid rgba(31, 71, 102, 0.12);
    border-radius: 24px;
    color: var(--nhhs-text);
    box-shadow: 0 18px 40px rgba(31, 71, 102, 0.12);
    overflow: hidden;
}

.edit-group-shell__tabs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem;
    border-bottom: 1px solid #e3e8ee;
    min-height: 88px;
}

.edit-group-tab-button {
    position: relative;
    padding: 1.5rem 1.25rem 1.35rem;
    border: 0;
    background: transparent;
    color: #6b7785;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.edit-group-tab-button:hover,
.edit-group-tab-button.is-active {
    color: var(--nhhs-navy);
}

.edit-group-tab-button::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.edit-group-tab-button.is-active::after {
    background: var(--nhhs-accent);
}

.edit-group-responses-link {
    margin-left: auto;
    color: var(--nhhs-accent);
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.edit-group-responses-link:hover {
    color: var(--nhhs-navy);
}

.edit-group-responses-link::after {
    content: " \2197";
    font-size: 0.95rem;
}

.edit-group-shell__body {
    padding: 2.25rem 2.25rem 2.75rem;
}

.edit-group-panel-heading {
    margin-bottom: 1.5rem;
}

.edit-group-panel-heading h2,
.edit-group-empty-state h2 {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--nhhs-navy);
}

.edit-group-panel-heading p,
.edit-group-empty-state p {
    margin: 0;
    color: #5f6b78;
}

.edit-group-form {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}

.edit-group-form-row {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    align-items: start;
    column-gap: 2rem;
}

.edit-group-form-label {
    padding-top: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--nhhs-text);
}

.required-indicator {
    color: #ff7c7c;
}

.edit-group-form-field {
    max-width: 960px;
}

.edit-group-input {
    min-height: 72px;
    border-radius: 14px;
    border: 1px solid #d4dce5;
    background: #ffffff;
    color: var(--nhhs-text);
    font-size: 1.15rem;
    padding: 1rem 1.25rem;
}

.edit-group-input:focus {
    border-color: rgba(31, 71, 102, 0.35);
    background: #ffffff;
    color: var(--nhhs-text);
    box-shadow: 0 0 0 0.2rem rgba(31, 71, 102, 0.08);
}

.edit-group-input::placeholder {
    color: #98a4af;
}

.edit-group-counter {
    display: inline-block;
    margin-top: 0.5rem;
    color: #6b7785;
    font-size: 0.95rem;
}

.edit-group-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e3e8ee;
}

.edit-group-request-action {
    width: 176px;
    min-height: 68px;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    padding: 0.85rem 1.2rem;
}

.edit-group-request-action.btn-outline-secondary {
    border-width: 1px;
    border-color: #8e98a6;
    color: #586675;
    background: #ffffff;
    box-shadow: none;
}

.edit-group-request-action.btn-outline-secondary:hover,
.edit-group-request-action.btn-outline-secondary:focus {
    color: #31465d;
    background: #f5f8fc;
    border-color: #758396;
    box-shadow: none;
}

.edit-group-request-action.btn-primary {
    border-color: var(--nhhs-accent);
}

.edit-group-save-button {
    min-width: 132px;
    min-height: 68px;
    border: 1px solid var(--nhhs-accent);
    border-radius: 18px;
    background: var(--nhhs-accent);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
}

.edit-group-save-button:hover,
.edit-group-save-button:focus {
    border-color: var(--nhhs-navy);
    background: var(--nhhs-navy);
    color: #ffffff;
}

.edit-group-form-actions .me-2 {
    margin-right: 0 !important;
}

.edit-group-table {
    color: var(--nhhs-text);
    margin-bottom: 0;
}

.edit-group-shell .admin-listings-table thead th,
.edit-group-shell #tableGroupListings thead th {
    padding: 16px 18px;
}

.edit-group-shell .admin-listings-table tbody td,
.edit-group-shell #tableGroupListings tbody td {
    padding: 16px 18px;
}

.edit-group-table-wrap {
    overflow: visible;
}

.edit-group-shell .admin-listings-table tbody td.col-create-action {
    position: relative;
    overflow: visible;
}

.edit-group-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    position: relative;
    white-space: nowrap;
}

.edit-group-row-actions .admin-table-action-link,
.new-form-split-action__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.new-form-split-action {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    border-radius: 10px;
    background-color: var(--nhhs-navy);
    box-shadow: 0 6px 18px rgba(0, 27, 48, 0.15);
}

.new-form-split-action__main {
    background-color: transparent;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px 0 0 10px;
}

.new-form-split-action__main:hover {
    background-color: #1a3d5a;
}

.new-form-split-action__info {
    min-width: 36px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0 10px 10px 0;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.7rem;
}

.new-form-split-action__info:hover,
.new-form-split-action__info[aria-expanded="true"] {
    background-color: #1a3d5a;
}

.new-form-tooltip {
    position: absolute;
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    z-index: 200;
    display: none;
    width: min(280px, 70vw);
    padding: 0.85rem 1rem;
    border: 1px solid #d4dce5;
    border-radius: 12px;
    background: #ffffff;
    color: var(--nhhs-text);
    text-align: left;
    white-space: normal;
    box-shadow: 0 18px 40px rgba(31, 71, 102, 0.18);
}

.new-form-tooltip.is-open {
    display: block;
}

.new-form-tooltip::before {
    content: "";
    position: absolute;
    top: auto;
    bottom: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid #d4dce5;
    border-bottom: 1px solid #d4dce5;
    background: #ffffff;
    transform: rotate(45deg);
}

.new-form-tooltip.is-above {
    bottom: calc(100% + 10px);
}

.new-form-tooltip.is-above::before {
    bottom: -7px;
    border-right: 1px solid #d4dce5;
    border-bottom: 1px solid #d4dce5;
}

.edit-group-table thead,
.edit-group-table thead th,
.edit-group-table tbody td {
    background: transparent;
    color: inherit;
}

.edit-group-table tbody tr {
    background: #ffffff;
}

.edit-group-table tbody tr:hover {
    background: #f7fafc;
}

.edit-group-shell .dataTables_wrapper,
.edit-group-shell .dataTables_wrapper .dataTables_length,
.edit-group-shell .dataTables_wrapper .dataTables_filter,
.edit-group-shell .dataTables_wrapper .dataTables_info,
.edit-group-shell .dataTables_wrapper .dataTables_paginate {
    color: #5f6b78;
}

.edit-group-shell .dataTables_wrapper .dataTables_filter input,
.edit-group-shell .dataTables_wrapper .dataTables_length select {
    border: 1px solid #d4dce5;
    border-radius: 10px;
    background: #ffffff;
    color: var(--nhhs-text);
}

.edit-group-shell .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #5f6b78 !important;
}

.edit-group-empty-state {
    padding: 1rem 0 0.5rem;
}

/* Back links consistency */
.mb-2 a.text-decoration-none,
.mb-2 .btn-link {
    color: var(--nhhs-accent);
    font-weight: 500;
    transition: color 0.2s ease;
}

.mb-2 a.text-decoration-none:hover,
.mb-2 .btn-link:hover {
    color: var(--nhhs-navy);
    text-decoration: none;
}

/* Modal styling */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.modal-title {
    color: var(--nhhs-navy);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    color: var(--nhhs-text);
}

.modal-scrollable-body {
    max-height: min(55vh, 420px);
    overflow-y: auto;
}

.change-reasons-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.change-reasons-list > li {
    margin-bottom: 0.55rem;
}

.change-reason-head {
    font-style: italic;
}

.change-reason-sublist {
    margin-top: 0.35rem;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    color: #495057;
}

.change-reason-sublist > li {
    margin-bottom: 0.2rem;
}

.missing-fields-modal-header {
    background: #b42318;
    border-bottom-color: #8f1d13;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.missing-fields-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.missing-fields-icon {
    font-size: 2.05rem;
    line-height: 1;
}

.missing-fields-modal-header .btn-close {
    margin-left: auto;
}

.missing-fields-modal-actions {
    justify-content: flex-end;
}

.confirm-save-modal .modal-footer {
    border-top: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.nav-link-secondary {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.7rem;
}

.administrator-body {
    padding: 2vh 2vh 2vh 2vh;
}

.btn-admin-activate {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  border-color: #1f8f5a !important;
  color: #ffffff !important;
}

.btn-admin-deactivate {
  background: linear-gradient(135deg, #ff3c00 0%, #e20505 100%) !important;
  border-color: #c90404 !important;
  color: #ffffff !important;
}

.btn-admin-delete {
  background: linear-gradient(135deg, #ff3c00 0%, #e20505 100%) !important;
  border-color: #c90404 !important;
  color: #ffffff !important;
}

.tag-editor-row {
    align-items: flex-start;
}

.tag-chip-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    min-height: 64px;
    padding: 0.7rem 0.85rem;
    border: 1px solid #ced4da;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    cursor: text;
}

.tag-chip-shell--focused {
    border-color: var(--nhhs-accent);
    box-shadow: 0 0 0 .2rem rgba(31, 71, 102, 0.15);
}

.tag-chip-shell--invalid {
    border-color: salmon;
}

.tag-chip-shell--invalid-animating {
    animation: tagFieldInvalidFlash 1.4s ease forwards;
}

.tag-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #b7bcc3;
    border-radius: 999px;
    background: #ffffff;
    color: #3a3f45;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.38rem 0.7rem;
    cursor: pointer;
}

.tag-chip:hover {
    border-color: #949ca6;
    background: #f7f8fa;
}

.tag-chip-label {
    white-space: nowrap;
}

.tag-chip-remove {
    font-size: 1rem;
    line-height: 1;
    color: #6c757d;
}

.tag-chip-input {
    flex: 1 1 180px;
    min-width: 160px;
    border: 0;
    outline: 0;
    padding: 0.15rem 0;
    background: transparent;
    color: #212529;
    font-size: 0.95rem;
    box-shadow: none !important;
}

.tag-chip-input::placeholder {
    color: #8a9096;
    opacity: 1;
}

.tag-chip-helper {
    display: block;
    margin-top: 0.45rem;
    color: #6c757d;
    font-size: 0.86rem;
    transition: color .2s ease;
}

.tag-chip-helper--focus {
    color: #6c757d;
}

.tag-chip-helper--error {
    color: salmon;
}

@keyframes tagFieldInvalidFlash {
    0% {
        background-color: rgba(250, 128, 114, 0.2);
        border-color: salmon;
    }
    35% {
        background-color: rgba(250, 128, 114, 0.16);
        border-color: salmon;
    }
    100% {
        background-color: #ffffff;
        border-color: #ced4da;
    }
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #0d6efd;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #0a58ca;
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #212529;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.btn-admin-edit-listing {
    background-color:var(--nhhs-navy);
    border-color: var(--nhhs-navy);
    color: #ffffff !important;
    min-width: 150px;
}

.btn-admin-edit-listing:hover {
    background-color: #157347;
    border-color: #157347;
    color: #ffffff !important;
}


.confirm-save-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 1rem 1.5rem 1.25rem 1.5rem;
}

.confirm-save-footer .confirm-save-btn {
    flex: 1 1 0;
    width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 10px 0;
}

html,
body {
    height: 100%;
}

/* New listing / new user forms: align visual style with editGroup shell */
.container-background .editListing-body {
  width: min(1240px, calc(100vw - 2rem));
  margin: 1.5rem auto 3rem;
  padding: 2.25rem;
  background: #ffffff;
  border: 1px solid rgba(31, 71, 102, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31, 71, 102, 0.12);
  color: var(--nhhs-text);
}

.container-background .editListing-body > h1 {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3e8ee;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.05rem);
  font-weight: 700;
  color: var(--nhhs-navy);
  letter-spacing: 0.01em;
}

.container-background .editListing-body .new-listing-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.container-background .editListing-body .new-listing-form .form-group.row {
  margin: 0;
  padding: 0;
  align-items: flex-start;
  column-gap: 0;
}

.container-background .editListing-body .new-listing-form .col-form-label {
  color: var(--nhhs-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 0.9rem;
  max-width: 240px;
  flex: 0 0 240px;
}

.container-background .editListing-body .new-listing-form [class*="col-sm-"] {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.container-background .editListing-body .new-listing-form .col-sm-5,
.container-background .editListing-body .new-listing-form .col-sm-10,
.container-background .editListing-body .new-listing-form .col-sm-3,
.container-background .editListing-body .new-listing-form .col-sm-2 {
  max-width: min(960px, 100%);
}

.container-background .editListing-body .new-listing-form .form-control,
.container-background .editListing-body .new-listing-form .custom-select {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid #d4dce5;
  background: #ffffff;
  color: var(--nhhs-text);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.container-background .editListing-body .new-listing-form textarea.form-control {
  min-height: 240px;
  resize: vertical;
}

.container-background .editListing-body .new-listing-form .form-control:focus,
.container-background .editListing-body .new-listing-form .custom-select:focus {
  border-color: rgba(31, 71, 102, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(31, 71, 102, 0.08);
}

.container-background .editListing-body .new-listing-form .form-control::placeholder {
  color: #98a4af;
}

.container-background .editListing-body .new-listing-form .invalid-feedback {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #b6414d;
}

.container-background .editListing-body .new-listing-form .btn-admin {
  align-self: flex-end;
  min-width: 160px;
  min-height: 56px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.9rem;
}

@media (max-width: 991.98px) {
  .container-background .editListing-body {
    width: calc(100vw - 1.5rem);
    padding: 1.45rem 1rem 1.25rem;
    border-radius: 18px;
  }

  .container-background .editListing-body .new-listing-form .form-group.row {
    gap: 0.55rem;
  }

  .container-background .editListing-body .new-listing-form .col-form-label {
    flex: 0 0 100%;
    max-width: 100%;
    padding-top: 0.2rem;
    padding-bottom: 0;
  }

  .container-background .editListing-body .new-listing-form .col-sm-5,
  .container-background .editListing-body .new-listing-form .col-sm-10,
  .container-background .editListing-body .new-listing-form .col-sm-3,
  .container-background .editListing-body .new-listing-form .col-sm-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .container-background .editListing-body .new-listing-form .btn-admin {
    width: 100%;
    align-self: stretch;
  }
}

#wrap {
    min-height: 100%;
}

#main {
    overflow: auto;
    padding-bottom: 72px;
}

/* must be same height as the footer */

#footer {
    position: relative;
    margin-top: -72px;
    /* negative value of footer height */
    height: 72px;
    clear: both;
}

.btn-search {
    background-color: #e7e7e7f5;
    border-radius: 64px;
    margin: 4px 2px 2px 4px;
}

.btn__inner {
    border-radius: 64px;
    transition-property: opacity,-webkit-transform;
    transition-property: opacity,transform;
    transition-property: opacity,transform,-webkit-transform;
    transition-duration: .25s;
    transition-timing-function: cubic-bezier(.4,0,.4,1);
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    height: 2rem;
    padding: 0 2rem;
    width: 100%;
}


.svg-icon {
    display: inline-block;
    height: 1.5rem;
    width: 1.5rem;
    vertical-align: middle;
    fill: currentColor;
    transition-property: fill,-webkit-transform;
    transition-property: transform,fill;
    transition-property: transform,fill,-webkit-transform;
    transition-duration: .25s;
    transition-timing-function: cubic-bezier(.4,0,.4,1);
}

.button-88 {
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 0.7em 1.4em 0.7em 1.1em;
  color: white;
  background: #ad5389;
  background: linear-gradient(0deg, rgba(20,167,62,1) 0%, rgba(102,247,113,1) 100%);
  border: none;
  box-shadow: 0 0.7em 1.5em -0.5em #14a73e98;
  letter-spacing: 0.05em;
  border-radius: 20em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-88:hover {
  box-shadow: 0 0.5em 1.5em -0.5em #14a73e98;
}

.button-88:active {
  box-shadow: 0 0.3em 1em -0.5em #14a73e98;
}

/** Dropdown menu **/
#myInput[type=text] {
    width: 200px;
    box-sizing: border-box;
    border-top: 2px solid rgba(0, 0, 0, 0);
    border-left: 2px solid rgba(0, 0, 0, 0);
    border-right: 2px solid rgba(0, 0, 0, 0);
    border-bottom: 3px solid #1F4766;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    background-color: rgba(0, 0, 0, 0);
    background-position: 10px 12px;
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
    text-align: left;
    transition: width 0.4s ease-in-out;
    font-family: 'Montserrat', sans-serif !important;
}

#myInput[type=text]:focus {
    width: 100%;
    outline: none;
    border-bottom: 3px solid #1F4766;
}

.hover-bold:hover {
    font-weight: bold;
}

.dropdown2 {
    Display: inline-block;
    width: 200px;
    position: absolute;
    left: 2%;
    top: 10%;
    font-family: 'Montserrat';
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #f1f1f1
}

.show {
    display: block;
}

ul {
    padding: 0;
    list-style-type: none;
}

.selected {
    background: #ccc;
}

li a:hover {
    background: #fff;
}

.info-box2 {
  margin: 30px auto;
  padding: 30px 25px;
  background: linear-gradient(135deg, #ffffff, #f7f9fb); /* soft white gradient */
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 43, 77, 0.15); /* brand color shadow tint */
  max-width: 85%;
  text-align: center;
}

.info-box2 h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #002B4D; /* brand color for title */
}

.info-box2 p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.info-box2 a {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #002B4D, #004170); /* brand + lighter tone */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 43, 77, 0.3);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.info-box2 a:hover {
  background: linear-gradient(135deg, #004170, #0066a1);
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(0, 43, 77, 0.4);
}

.infoback {
    background-color: #efeff8;          
    padding: 3rem 2rem;                 
    text-align: center;
    max-width: 900px;                   
    margin: 2rem auto;                  
    border-radius: 6px;                
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    font-family: 'Montserrat', sans-serif;
    color: #222;                        
    line-height: 1.6;
    animation: fadeIn 0.8s ease-in-out;
}
.infoback h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.infoback p {
    font-size: 1rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    color: #444;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PAGE LAYOUT a1 */
body {
    background: var(--nhhs-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

.main-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header h1 {
    font-weight: 700;
    color: #002F6C;
}

.page-header p {
    color: #6b7280;
    margin-bottom: 30px;
}

.builder-card {
    background: white;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: none;
}

.card-header-custom {
    border-bottom: 1px solid #eef2f7;
    margin: -28px -28px 20px -28px;
    padding: 18px 28px;
    background: #f9fafc;
    border-radius: 14px 14px 0 0;
}

.card-header-custom h4 {
    margin: 0;
    font-weight: 600;
}

.alert-secondary {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-text.text-muted {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

label {
    font-weight: 500;
    color: var(--nhhs-text);
    margin-bottom: 0.5rem;
}

.form-control,
select.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #002F6C;
    box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.15) !important;
}

.field-helper-text {
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #002F6C;
    font-weight: 700;
}

.builder-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header-custom {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #002F6C;
}

.card-header-custom h4 {
    color: #002F6C;
    margin: 0;
    font-weight: 600;
}

.metadata-section,
.interview-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.metadata-section h5,
.interview-section h5 {
    color: var(--nhhs-navy);
    font-weight: 700;
    font-size: 1.15rem;
}

.interview-type-toggle {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.interview-type-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.interview-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.interview-type-btn:hover {
    border-color: #002F6C;
    background: #f0f7ff;
}

.interview-type-btn.active {
    border-color: #002F6C;
    background: #002F6C;
    color: white;
}

.interview-type-btn h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.interview-type-btn p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.timeslot-config {
    background: white;
    padding: 1rem;
    border-radius: 6px;
}

.group-interview-config {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.timeslot-preview-section {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.quick-add-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.btn-quick-add {
    margin: 5px 6px 5px 0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    background: #eef2ff;
    border: 1px solid #dbeafe;
    color: #002F6C;
    transition: all 0.15s ease;
}

.btn-quick-add:hover {
    background: #002F6C;
    color: white;
    transform: translateY(-1px);
}

.fields-list {
    margin-top: 1.5rem;
}

.fields-list .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.field-list-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    cursor: grab;
}

.field-list-item.dragging {
    opacity: 0.4;
}

.field-list-item.drag-over {
    background-color: #eef2ff;
    border-top: 2px solid #4f46e5;
}

.drag-handle {
    color: #aaa;
    margin-right: 8px;
    font-size: 1rem;
    cursor: grab;
    flex-shrink: 0;
}

.field-list-main {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.field-list-actions {
    margin-left: auto;
}

.field-list-actions .btn.btn-danger {
  border: 1px solid #dc2626;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.field-list-actions .btn.btn-danger:hover,
.field-list-actions .btn.btn-danger:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
  filter: brightness(1.04);
}

.field-list-actions .btn.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(220, 38, 38, 0.18);
}

.badge-field-type {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-required {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.form-badge-google {
    background: #2d1e6b;
    color: #ffffff;
}

.form-badge-custom {
    background: #1d4ed8;
    color: #ffffff;
}

.form-badge-none {
    background: #dc2626;
    color: #ffffff;
}

.table .col-form-status {
    min-width: 140px;
    white-space: nowrap;
}

.specific-days-section {
    margin-top: 0.75rem;
}

.specific-day-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    color: #002F6C;
    font-weight: 600;
    cursor: pointer;
}

.specific-day-toggle:hover {
    color: #001f4d;
    text-decoration: underline;
}

.specific-day-rows {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specific-day-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.specific-day-row.blocked {
    background: #ffe5e5;
    border-color: #f5b5c5;
}

.specific-day-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.specific-day-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-block-day {
    width: 200px;
    height: 44px;
    padding: 0 12px;
    justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-block-day:hover,
.btn-block-day:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 71, 102, 0.18);
  filter: brightness(1.03);
}

.btn-block-day:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(31, 71, 102, 0.14);
}

.specific-day-remove {
    border: none;
    background: none;
    padding: 4px;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  }

  .specific-day-remove:hover,
  .specific-day-remove:focus {
    background: #fff1f2;
    color: #b91c1c;
    transform: translateY(-1px);
    outline: none;
}

.specific-day-remove svg {
    stroke: #dc2626;
    transition: stroke 0.2s ease;
  }

  .specific-day-remove:hover svg,
  .specific-day-remove:focus svg {
    stroke: #b91c1c;
}

.specific-day-grid label {
    font-size: 0.85rem;
    font-weight: 600;
}

.specific-day-row.blocked .form-control:disabled,
.specific-day-row.blocked select:disabled {
    background: #fde2e2;
    border-color: #f5b5c5;
    color: #7f1d1d;
}

.table .col-applicant-status {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    white-space: nowrap;
}

.applicant-status-select {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applicant-status-select option:disabled {
    font-style: italic;
}

.applicant-status-select.placeholder-shown,
#applicantStatusSelect.placeholder-shown {
    font-style: italic;
}

.applicant-status-select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #495057;
}

.table .col-timeslot {
    min-width: 290px;
}

.responses-table-toolbar {
    display: flex;
  align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 4px;
}

.responses-table-toolbar .toolbar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
}

.responses-toolbar-left,
.responses-toolbar-right {
    display: flex;
    align-items: center;
  justify-content: flex-end;
    gap: 0.85rem;
}

.responses-toolbar-left {
    flex-direction: column;
    align-items: flex-start;
}

.a3-view-toggle {
    --a3-toggle-index: 0;
  --a3-toggle-count: 2;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 4px;
    border-radius: 999px;
    background: #222;
    border: 1px solid #444;
    overflow: hidden;
    transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.a3-view-toggle-pill {
    position: absolute;
    top: 4px;
    left: 4px;
  width: calc((100% - 8px) / var(--a3-toggle-count, 2));
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(135deg, #3d3d3d 0%, #2a2a2a 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transform: translateX(calc(var(--a3-toggle-index, 0) * 100%));
    transition: transform 0.34s ease;
}

.a3-view-toggle-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: #d0d0d0;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.a3-view-toggle-btn.is-active {
    color: #fff;
}

.a3-accepted-table .col-send-members {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.a3-send-members-btn {
  border: 1px solid #1a1a1a;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
}

.a3-send-members-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.a3-send-members-btn.is-sent,
.a3-send-members-btn:disabled {
  background: #d1d5db;
  border-color: #d1d5db;
  color: #4b5563;
  box-shadow: none;
}

.a3-view-scene {
    animation: a3SceneFade 0.28s ease;
}

.a3-view-scene.is-transitioning-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

@keyframes a3SceneFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.a3-sortable-header {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.a3-sortable-header.is-active {
    color: #0d2b55;
}

.a3-sort-indicator {
    font-size: 0.8rem;
    opacity: 0.75;
}

.btn-timeslot-save,
.timeslot-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid var(--nhhs-navy);
    background: linear-gradient(135deg, var(--nhhs-navy), var(--nhhs-accent));
    color: #ffffff;
    font-weight: 600;
    min-height: 42px;
    white-space: nowrap;
}

.btn-timeslot-save {
    padding: 0 18px;
}

.btn-timeslot-save.is-change {
    background: linear-gradient(135deg, var(--nhhs-accent), #001d35);
    border-color: #001d35;
}

.btn-timeslot-save:hover,
.timeslot-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 43, 77, 0.25);
}

.btn-timeslot-save:disabled,
.timeslot-action-btn:disabled {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #f8fafc;
    cursor: not-allowed;
    opacity: 1;
}

.response-timeslot-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.response-timeslot-cell .timeslot-action-btn {
    margin-left: auto;
}

.response-timeslot-select {
    min-width: 0;
    max-width: 190px;
    flex: 1 1 180px;
}

.response-timeslot-select:disabled,
.response-timeslot-select.is-locked {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    cursor: not-allowed;
    opacity: 1;
}

.timeslot-action-btn {
    padding: 0 10px;
    min-width: 104px;
    flex: 0 0 auto;
    font-size: 0.88rem;
}

.timeslot-action-btn.is-change {
    background: linear-gradient(135deg, var(--nhhs-accent), #001d35);
    border-color: #001d35;
}

.response-timeslot-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.response-timeslot-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.response-timeslot-summary-input {
    max-width: 340px;
    flex: 1 1 340px;
    background: #f8fafc;
}

.timeslot-picker-compact {
    padding: 12px;
    margin-top: 0;
}

.timeslot-picker-compact .timeslot-date {
    min-width: 84px;
    padding: 8px 9px;
}

.timeslot-picker-compact .timeslot-time {
    min-width: 82px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.timeslot-picker-compact .timeslot-time.selected,
.timeslot-picker-compact .timeslot-time:hover {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    border-color: #1a1a1a;
}

.timeslot-picker-empty {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.timeslot-conflict-list {
    margin: 12px 0 0 18px;
}

.ui-icon {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
}

.icon-checkmark::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(42deg);
    transform-origin: center;
}

.icon-clock {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-clock::before,
.icon-clock::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 999px;
    left: 50%;
    top: 50%;
    transform-origin: left center;
}

.icon-clock::before {
    width: 2px;
    height: 6px;
    transform: translate(-50%, -100%);
}

.icon-clock::after {
    width: 5px;
    height: 2px;
    transform: translate(0, -50%);
}

#previewContainer {
    background: #fcfcfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

#previewTitle {
    font-weight: 700;
    color: #002F6C;
}

#previewForm .form-group {
    margin-bottom: 18px;
}

.timeslot-picker {
    background: #f9fafc;
    border-radius: 10px;
    padding: 16px;
    margin-top: 10px;
}

.timeslot-dates {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.timeslot-date {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    min-width: 92px;
    flex: 0 0 auto;
    transition: all 0.15s ease;
}

.timeslot-date.selected,
.timeslot-date:hover {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    border-color: #1a1a1a;
}

.timeslot-times {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.timeslot-time {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    font-size: 0.85rem;
    min-width: 88px;
    flex: 0 0 auto;
}

.options-input-container {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.options-input-container > div {
    flex: 1;
}

.btn-outline-primary {
    border: 2px solid var(--nhhs-accent);
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background: var(--nhhs-accent);
    color: white !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 600;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    border-radius: 8px;
    padding: 12px 22px;
}

#saveMessage {
    border-radius: 10px;
    margin-top: 20px;
}

/* a2 */
.responses-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}
.page-header h1 {
    font-weight: 700;
    color: #002F6C;
}
.page-header p {
    color: #666;
    margin-bottom: 0;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #002F6C;
    margin-bottom: .25rem;
}
.stat-card p {
    color: #666;
    margin: 0;
}

.form-selector {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.export-btn {
    width: 350px;
    flex: 1 1 0;
    font-weight: 600;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #1a1a1a;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.a3-chart-simple-icon {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    width: 20px;
    height: 18px;
    flex: 0 0 20px;
}

.a3-chart-simple-bar {
    width: 4px;
    border-radius: 999px;
    background: currentColor;
    display: block;
}

.a3-chart-simple-bar-sm {
    height: 10px;
}

.a3-chart-simple-bar-md {
    height: 14px;
}

.a3-chart-simple-bar-lg {
    height: 18px;
}

.export-btn:hover,
.export-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.04);
    border-color: #1a1a1a;
    outline: none;
}

.export-btn:disabled,
.export-btn.disabled {
    background: linear-gradient(135deg, #6a6a6a, #4f4f4f);
    border-color: #4f4f4f;
    color: #fff !important;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.responses-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.delete-form-btn {
    flex: 1 1 0;
    font-weight: 600;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #1a1a1a;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.delete-form-btn.is-ready {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.delete-form-btn.is-ready:hover,
.delete-form-btn.is-ready:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
    filter: brightness(1.04);
    border-color: #1a1a1a;
    outline: none;
}

.delete-form-btn:disabled,
.delete-form-btn.disabled {
    background: linear-gradient(135deg, #6a6a6a, #4f4f4f);
    border-color: #4f4f4f;
    color: #fff !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.responses-actions .btn {
    white-space: nowrap;
}

.responses-table {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.responses-table .table th,
.responses-table .table td {
    vertical-align: middle;
}

.response-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.response-modal-actions .btn {
    min-height: 44px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.response-modal-save-btn {
    margin-left: auto;
}

.form-builder-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.form-builder-modal-actions.missing-fields-modal-actions {
    justify-content: flex-end;
}

.form-builder-modal-actions .btn {
    min-width: 160px;
    min-height: 44px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

#saveSuccessViewResponsesLink,
.save-success-secondary-btn {
    background: linear-gradient(135deg, #8a9098 0%, #6f7680 100%);
    border-color: #6f7680;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(90, 98, 109, 0.22);
    transition: all 0.3s ease;
}

#saveSuccessViewResponsesLink:hover,
#saveSuccessViewResponsesLink:focus,
.save-success-secondary-btn:hover,
.save-success-secondary-btn:focus {
    background: linear-gradient(135deg, #9aa1aa 0%, #7c838d 100%);
    border-color: #7c838d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 98, 109, 0.32);
}

.response-top-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.response-meta {
    flex: 1 1 auto;
}

.response-status-panel {
    flex: 0 0 320px;
}

.response-status-panel label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.btn-save-status {
    background: linear-gradient(135deg, var(--success), #1e7a3b);
    color: #ffffff;
    border: 1px solid var(--success);
    min-width: 160px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 10px;
    transition: transform .2s, box-shadow .2s;
}

.btn-save-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(25,135,70,.15);
}

.btn-save-status:disabled {
    background: #cfe6d4;
    border-color: #cfe6d4;
    color: #f4faf5;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}

.btn-save-status-active {
    background: linear-gradient(135deg, #1e7a3b, #16662f);
    border-color: #16662f;
    color: #ffffff;
}

.btn-save-status-confirm {
    min-width: 260px;
    font-weight: 700;
}

#massSaveStatusBtn {
    min-width: 220px;
}
.table-hover tbody tr {
    cursor: pointer;
    transition: background .15s;
}
.table-hover tbody tr:hover {
    background: #f1f6ff;
}

.table-hover tbody tr.row-new {
    background-color: #d4edda;
}
.table-hover tbody tr.row-new:hover {
    background-color: #c3e6cb;
}

.loading-spinner,
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.response-field {
    margin-bottom: 1.2rem;
}
.response-field label {
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}
.response-field .value {
    background: #f8f9fa;
    padding: .75rem 1rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .responses-container { padding: 1rem; }
    .responses-actions {
        flex-direction: column;
    }
    .responses-table-toolbar {
        justify-content: stretch;
    }
    .btn-timeslot-save {
        width: 100%;
    }
    .response-top-row {
        flex-direction: column;
    }
    .response-status-panel {
        flex: 1 1 auto;
        width: 100%;
    }
    .response-timeslot-cell,
    .response-timeslot-summary-row {
        flex-direction: column;
        align-items: stretch;
    }
    .response-timeslot-summary-input,
    .response-timeslot-select,
    .timeslot-action-btn {
        max-width: none;
        width: 100%;
    }
}

/* a3 */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: background 2.5s ease;
}

.form-container.form-error {
    background: #ffe5e5;
}

.form-error-bubble {
    background: #ffe0ea;
    color: #b91c1c;
    border: 1px solid #f5b5c5;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 12px 0 16px;
    opacity: 1;
    transition: opacity 1s ease;
}

.form-error-bubble.fade-out {
    opacity: 0;
}

.form-error-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-error-bubble ul {
    margin: 0 0 8px 18px;
}

.form-success {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.25rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-success h3 {
    margin-bottom: 0.25rem;
    color: #0b4aa2;
    font-weight: 700;
}

.form-success p {
    margin: 0;
}

.listing-external-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7a8797;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    justify-content: center;
}

.listing-external-divider::before,
.listing-external-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(0, 47, 108, 0.14);
}

.listing-external-card {
    background: linear-gradient(180deg, rgba(242, 247, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.listing-external-card .card-body {
    text-align: center;
}

.listing-external-card__cta {
    min-width: 280px;
    padding: 0.9rem 1.35rem;
    border-width: 2px;
    border-radius: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.listing-external-card__cta span {
    margin-left: 0.5rem;
}

.external-apply-page {
    background:
        radial-gradient(circle at top, rgba(11, 74, 162, 0.08), transparent 30%),
        linear-gradient(180deg, #f3f7fb 0%, #eef3f9 100%);
}

.external-apply-shell {
    background: transparent;
}

.external-apply-intro-card,
.external-apply-side-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 47, 108, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.07);
}

.external-apply-intro-card {
    padding: 1.75rem;
    margin-bottom: 1rem;
}

.external-apply-side-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.external-apply-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: #0b4aa2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.external-apply-intro-card h1 {
    color: #002f6c;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
    margin-bottom: 0.9rem;
}

.external-apply-intro-card p,
.external-apply-side-card p,
.external-apply-tip-list {
    color: #4f5d73;
    line-height: 1.7;
}

.external-apply-date-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.external-apply-date-item {
    padding: 0.95rem 1rem;
    background: #f5f8fc;
    border: 1px solid rgba(0, 47, 108, 0.08);
    border-radius: 14px;
}

.external-apply-date-item strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.external-apply-date-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.external-apply-side-card h2 {
    color: #002f6c;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.external-apply-tip-list {
    padding-left: 1.1rem;
    margin: 0;
}

.external-apply-tip-list li + li {
    margin-top: 0.65rem;
}

.external-apply-help-card a {
    font-weight: 700;
    color: #0b4aa2;
    text-decoration: none;
}

.external-apply-help-card a:hover {
    text-decoration: underline;
}

.external-form-container {
    max-width: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
}

.external-form-header {
    text-align: left;
}

.external-form-success {
    max-width: none;
    margin-top: 1.5rem;
}

.project-apply-page {
    background:
        radial-gradient(circle at top left, rgba(var(--project-accent-rgb), 0.14), transparent 26%),
        radial-gradient(circle at bottom right, rgba(var(--project-accent-rgb), 0.08), transparent 22%),
        linear-gradient(180deg, #f4f7fb 0%, #edf2f7 100%);
}

.project-apply-shell {
    max-width: 1380px;
}

.project-apply-rail {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1.25rem;
}

.project-apply-intro-card,
.project-apply-side-card,
.project-apply-form-card,
.project-apply-description-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(var(--project-accent-rgb), 0.12);
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.project-apply-intro-card {
    padding: 1.75rem;
    background:
        linear-gradient(180deg, rgba(var(--project-accent-rgb), 0.09) 0%, rgba(255, 255, 255, 0.98) 34%, rgba(255, 255, 255, 0.98) 100%);
}

.project-apply-side-card,
.project-apply-description-card {
    padding: 1.5rem;
}

.project-apply-form-card {
    padding: 1.85rem;
}

.project-apply-page .form-container {
    max-width: none;
    width: 100%;
    margin: 0;
}

.project-apply-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.project-apply-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--project-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-apply-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.project-apply-status-badge.is-open {
    color: var(--project-accent);
    background: rgba(var(--project-accent-rgb), 0.12);
}

.project-apply-status-badge.is-closed {
    color: #8f1d1d;
    background: rgba(185, 28, 28, 0.1);
}

.project-apply-logo-shell {
    flex: 0 0 auto;
    width: 108px;
    height: 108px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(var(--project-accent-rgb), 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.9rem;
}

.project-apply-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-apply-logo-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(var(--project-accent-rgb), 0.1);
    color: var(--project-accent);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-apply-intro-card h1 {
    color: #0f172a;
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    line-height: 0.96;
    margin-bottom: 1rem;
    max-width: 12ch;
}

.project-apply-intro-card p,
.project-apply-side-card p,
.project-apply-tip-list,
.project-apply-state-card p {
    color: #4f5d73;
    line-height: 1.75;
}

.project-apply-date-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.project-apply-date-item {
    padding: 0.95rem 1rem;
    background: rgba(245, 248, 252, 0.96);
    border: 1px solid rgba(var(--project-accent-rgb), 0.1);
    border-radius: 18px;
}

.project-apply-date-item strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.project-apply-date-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-apply-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.project-apply-social-link {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--project-accent-rgb), 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-apply-social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--project-accent-rgb), 0.3);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.project-apply-social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.project-apply-side-card h2,
.project-apply-description-header h2,
.project-apply-form-header h2,
.project-apply-state-card h3 {
    color: #10233f;
    margin-bottom: 0.75rem;
}

.project-apply-tip-list {
    padding-left: 1.1rem;
    margin: 0;
}

.project-apply-tip-list li + li {
    margin-top: 0.55rem;
}

.project-apply-help-card a {
    color: var(--project-accent);
    text-decoration: none;
    font-weight: 800;
}

.project-apply-help-card a:hover {
    text-decoration: underline;
}

.project-apply-form-header {
    margin-bottom: 1.5rem;
}

.project-apply-form-header h2 {
    color: #10233f;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.project-apply-overview-description {
    color: #5a677a;
    max-width: 62ch;
    margin: 0 0 1rem;
}

.project-apply-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.project-form-field {
    margin: 0;
}

.project-form-field--full {
    grid-column: span 12;
}

.project-form-field--half {
    grid-column: span 6;
}

.project-form-field--third {
    grid-column: span 4;
}

.project-field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.project-field-label-row label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #12263f;
}

.project-field-meta {
    color: #7b8898;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-apply-page .form-control,
.project-apply-page select.form-control {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(var(--project-accent-rgb), 0.14);
    background: #f7f9fc;
    padding: 0.85rem 0.95rem;
}

.project-apply-page textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.project-apply-page .form-control:focus {
    border-color: var(--project-accent);
    box-shadow: 0 0 0 4px rgba(var(--project-accent-rgb), 0.12) !important;
    background: #ffffff;
}

.project-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.project-choice-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--project-accent-rgb), 0.12);
    background: #f8fafc;
    color: #17283d;
    font-weight: 600;
    cursor: pointer;
}

.project-choice-card .form-check-input {
    margin-top: 0;
    accent-color: var(--project-accent);
}

.project-timeslot-placeholder {
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(var(--project-accent-rgb), 0.22);
    background: linear-gradient(180deg, rgba(var(--project-accent-rgb), 0.05), rgba(247, 250, 252, 0.98));
}

.project-timeslot-message {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #546275;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.project-timeslot-message i {
    color: var(--project-accent);
}

.project-timeslot-input-shell {
    position: relative;
}

.project-timeslot-input-shell .form-control {
    padding-right: 2.8rem;
    color: #94a3b8;
}

.project-timeslot-input-shell i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #90a0b5;
}

.project-form-actions {
    grid-column: span 12;
    margin-top: 0.65rem;
}

.project-submit-btn {
    min-width: 260px;
    padding: 0.95rem 1.4rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--project-accent), rgba(var(--project-accent-rgb), 0.86));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 16px 26px rgba(var(--project-accent-rgb), 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-submit-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(var(--project-accent-rgb), 0.26);
}

.project-apply-page .timeslot-placeholder {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(var(--project-accent-rgb), 0.12);
    background: linear-gradient(180deg, rgba(var(--project-accent-rgb), 0.05), #f7f9fc);
}

.project-apply-page .timeslot-fallback-message {
    color: #5e6d80;
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.project-apply-page .timeslot-picker {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.project-apply-page .timeslot-dates,
.project-apply-page .timeslot-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.75rem;
}

.project-apply-page .timeslot-times {
    margin-top: 0.85rem;
}

.project-apply-page .timeslot-date,
.project-apply-page .timeslot-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 0.8rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--project-accent-rgb), 0.16);
    background: #ffffff;
    color: #45556a;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 34, 64, 0.04);
}

.project-apply-page .timeslot-time {
    min-height: 56px;
    flex-direction: row;
}

.project-apply-page .timeslot-date.selected,
.project-apply-page .timeslot-date:hover,
.project-apply-page .timeslot-time.selected,
.project-apply-page .timeslot-time:hover {
    border-color: var(--project-accent);
    background: linear-gradient(135deg, var(--project-accent), rgba(var(--project-accent-rgb), 0.92));
    color: #ffffff;
    box-shadow: 0 16px 24px rgba(var(--project-accent-rgb), 0.2);
}

.project-apply-page .project-timeslot-day {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.project-apply-page .project-timeslot-date-value {
    margin-top: 0.2rem;
    font-size: 1.2rem;
}

.project-apply-page .timeslot-hidden {
    display: none;
}

.project-timeslot-gate {
    margin-bottom: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(var(--project-accent-rgb), 0.2);
    background: rgba(var(--project-accent-rgb), 0.05);
    color: #59687a;
    font-size: 0.92rem;
}

.project-apply-state-card {
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(var(--project-accent-rgb), 0.12);
}

.project-apply-state-card a {
    color: var(--project-accent);
    font-weight: 700;
    text-decoration: none;
}

.project-apply-state-card a:hover {
    text-decoration: underline;
}

.project-a2-shell {
    max-width: 980px;
}

.project-a2-intro-card {
    margin-bottom: 1.5rem;
}

.project-a2-success {
    margin: 0 0 1.5rem;
    max-width: none;
    width: 100%;
}

.project-a2-page .project-a2-success h3 {
    color: var(--project-accent);
}

.project-a2-page .project-choice-card--readonly {
    cursor: default;
}

.project-a2-page .project-choice-card--readonly .form-check-input {
    pointer-events: none;
}

.project-a2-page .project-choice-card--readonly.is-selected {
    border-color: rgba(var(--project-accent-rgb), 0.3);
    background: rgba(var(--project-accent-rgb), 0.08);
    box-shadow: inset 0 0 0 1px rgba(var(--project-accent-rgb), 0.12);
}

.project-auth-gate {
    display: grid;
    gap: 1rem;
}

.project-auth-gate-card,
.project-auth-external-card {
    padding: 1.75rem 1.5rem;
    border-radius: 22px;
    border: 1px solid rgba(var(--project-accent-rgb), 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.project-auth-gate-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #10233f;
}

.project-auth-login-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.project-auth-google-btn {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: rgba(0, 0, 0, 0.54);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    padding: 0;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    font-family: Roboto, sans-serif;
    text-decoration: none;
    margin: 0 auto;
}

.project-auth-google-btn__icon {
    padding: 10px;
    background: #fff;
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
}

.project-auth-google-btn span:last-child {
    padding: 10px 12px 10px 8px;
    font-weight: 500;
}

.project-auth-info-link {
    display: inline-block;
    font-size: 0.95rem;
    color: #1F4766;
}

.project-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #7b8898;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    justify-content: center;
}

.project-auth-divider::before,
.project-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    max-width: 180px;
    background: rgba(var(--project-accent-rgb), 0.2);
}

.project-auth-external-card h3 {
    margin-bottom: 0.75rem;
    color: #10233f;
    font-size: 2rem;
}

.project-auth-external-card p {
    margin: 0 auto 1.5rem;
    max-width: 34rem;
    color: #58687b;
}

.project-auth-external-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: min(100%, 520px);
    padding: 1rem 1.4rem;
    border-radius: 18px;
    border: 2px solid var(--project-accent);
    color: var(--project-accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-auth-external-cta:hover {
    color: var(--project-accent);
    background: rgba(var(--project-accent-rgb), 0.05);
    text-decoration: none;
}

.project-apply-description-header {
    margin-bottom: 1rem;
}

.project-apply-description-prose {
    color: #334155;
}

@media (max-width: 1199.98px) {
    .project-apply-rail {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .project-form-field--half,
    .project-form-field--third {
        grid-column: span 12;
    }

    .project-choice-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .project-apply-intro-card,
    .project-apply-side-card,
    .project-apply-form-card,
    .project-apply-description-card {
        border-radius: 20px;
    }

    .project-apply-intro-card,
    .project-apply-side-card,
    .project-apply-description-card,
    .project-apply-form-card {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .project-apply-brand-row {
        align-items: stretch;
        gap: 1rem;
    }

    .project-apply-logo-shell {
        width: 86px;
        height: 86px;
        padding: 0.7rem;
        border-radius: 22px;
    }

    .project-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

.listing-page-shell {
    background: var(--nhhs-bg);
    min-height: calc(100vh - 140px);
}

/* ===== home landing ===== */
.home-landing{
    --nhhs-blue:#002F6C;
    --nhhs-blue-2:#0B4AA2;
    --text:#0f172a;
    --muted:#475569;
    --bg: var(--nhhs-bg, #f3f6fd);
    --card:#ffffff;
    --ring: rgba(0,47,108,.18);
    --shadow: 0 10px 25px rgba(2, 6, 23, .08);
    --shadow-soft: 0 6px 16px rgba(2, 6, 23, .08);
    --radius: 16px;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

.home-landing .container{
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.home-landing .hero{
    padding: 72px 0 28px;
}

.home-landing .hero-inner{
    background: radial-gradient(1200px 400px at 50% -20%, rgba(0,47,108,.18), transparent 60%),
                linear-gradient(180deg, #fff, #fff);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: var(--shadow);
    padding: 44px 28px;
    text-align: center;
}

.home-landing .hero h1{
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.home-landing .hero p{
    margin: 0 auto 18px;
    max-width: 70ch;
    font-size: 18px;
    color: var(--muted);
}

.home-landing .cta-row{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap: 10px;
    margin-top: 14px;
}

.home-landing .btn{
    appearance:none;
    border: 1px solid transparent;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    cursor: pointer;
    user-select: none;
}

.home-landing .btn-primary{
    background: var(--nhhs-blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,47,108,.18);
}
.home-landing .btn-primary:hover{
    background: var(--nhhs-blue-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,47,108,.22);
}

.home-landing .btn-secondary{
    background: #fff;
    color: var(--nhhs-blue);
    border-color: rgba(0,47,108,.25);
}
.home-landing .btn-secondary:hover{
    border-color: rgba(0,47,108,.45);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.home-landing .section{
    padding: 18px 0 0;
}

.home-landing .section-title{
    margin: 28px 0 12px;
    font-size: 18px;
    color: var(--text);
    font-weight: 700;
}

.home-landing .intro{
    margin: 18px 4px 42px 4px;
    max-width: 85ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.home-landing .grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 18px;
    align-items: stretch;
}

.home-landing .card{
    grid-column: span 12;
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px 18px 16px;
    text-align: left;
    transition: transform .10s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-landing .card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.home-landing .card h3{
    margin: 0 0 8px;
    font-size: 18px;
}

.home-landing .card p{
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.5;
    flex-grow: 1;
}

.home-landing .card .btn{
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    line-height: 1.25;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px){
    .home-landing .card.col-4{ grid-column: span 4; }
}

@media (min-width: 768px) and (max-width: 991.98px){
    .home-landing .card.col-3{ grid-column: span 6; }
}

@media (min-width: 992px){
    .home-landing .card.col-3{ grid-column: span 3; }
}

.home-landing .search-wrap{
    padding-top: 18px;
}

.home-landing .search-wrap .container{
    display: flex;
    justify-content: center;
}

.home-landing .dropdown2{
    width: min(960px, 92vw);
    position: relative;
}

.home-landing #myInput.dropbtn{
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    outline: none;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
}

.home-landing #myInput.dropbtn:focus{
    border-color: rgba(0,47,108,.35);
    box-shadow: 0 0 0 4px var(--ring), 0 10px 24px rgba(2, 6, 23, .08);
}

.home-landing .dropdown-content{
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: var(--shadow);
}

.home-landing #myUL li a{
    padding: 10px 12px;
    display:block;
    color: var(--text);
    text-decoration:none;
}
.home-landing #myUL li a:hover{
    background: rgba(0,47,108,.06);
}

/* ===== sports/interest ladning" ===== */
.gender-filter {
    --nhhs-blue: #082449;
    --nhhs-blue-2: #0B4AA2;
}
.gender-filter .btn {
    appearance: none;
    border: 1px solid transparent;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.gender-filter .btn-primary {
    background: var(--nhhs-blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,47,108,.18);
    border-color: transparent
}
.gender-filter .btn-primary:hover {
    background: var(--nhhs-blue-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,47,108,.22);
    border-color: transparent;
}


/* ===== sok ===== */
.sok-hero{
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sok-message{
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    color: #002F6C;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 24px rgba(0, 47, 108, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid #002F6C;
    padding-bottom: 1rem;
}
.form-header h2 { color: #002F6C; font-weight: 700; }
.form-header p { color: #666; }

.form-group,
.mb-3 {margin-bottom: 1.5rem; }

.form-group.row,
.mb-3.row { margin-bottom: 1.5rem;}

.form-group label,
.col-form-label { 
    font-weight: 500;
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
}

.form-container .form-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2rem;
    padding-left: 0;
    margin-bottom: 0.8rem;
}

.form-container .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 0;
}

.form-container .form-check-label {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.35;
}

.form-control,
.form-select {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: .7rem 1rem;
    transition: border-color .2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nhhs-accent);
    box-shadow: 0 0 0 .2rem rgba(31, 71, 102, 0.15);
    outline: 0;
}

.new-listing-form input:invalid, 
.new-listing-form select:invalid, 
.new-listing-form textarea:invalid {
    border-left: 3px solid salmon;
}

.new-listing-form input:required:valid, 
.new-listing-form select:required:valid, 
.new-listing-form textarea:required:valid {
    border-left: 3px solid limegreen;
}

/* Timeslot */
.timeslot-picker {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    background: #f8f9fa;
}
.timeslot-date,
.timeslot-time {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: .9rem;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: #fff;
}
.timeslot-date.selected,
.timeslot-time.selected {
    background: #002F6C;
    color: #fff;
    border-color: #002F6C;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    background: #28a745;
    border: none;
    border-radius: 8px;
    color: #fff;
}

.form-publish-actions {
    display: flex;
    gap: 12px;
}

.form-publish-actions .btn {
    min-width: 150px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-submit:hover { background: #218838; }

/* Info boxes */
.shared-interview-info,
.open-group-info {
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.shared-interview-info { background:#e7f3ff; border:2px solid #0066cc; }
.open-group-info { background:#d4edda; border:2px solid #28a745; }

@media (max-width: 768px) {
    .edit-group-page {
        width: auto;
        max-width: 100%;
        left: auto;
        transform: none;
        padding: 1.5rem 0.35rem 3rem;
    }
    .edit-group-shell { border-radius: 20px; }
    .edit-group-shell__tabs {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0;
        padding: 0 1rem;
        min-height: unset;
    }
    .edit-group-tab-button,
    .edit-group-responses-link {
        width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .edit-group-responses-link { padding: 0.75rem 0 1.25rem; }
    .edit-group-tab-button::after {
        left: 0;
        right: 0;
    }
    .edit-group-shell__body { padding: 1.5rem 1rem 2rem; }
    .edit-group-form-row {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }
    .edit-group-form-label { padding-top: 0; }
    .edit-group-input { min-height: 60px; }
    .edit-group-table-wrap { overflow-x: auto; }
    .edit-group-row-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .edit-group-row-actions .admin-table-action-link,
    .new-form-split-action {
        width: 100%;
    }
    .new-form-tooltip {
        left: 0;
        right: auto;
        width: min(260px, calc(100vw - 4rem));
    }
    .new-form-tooltip::before {
        left: 14px;
        right: auto;
    }
    .new-form-tooltip.is-above::before {
        left: 14px;
        right: auto;
    }
    .main-container { padding: 1rem 0.75rem; }
    .builder-card { padding: 1.5rem; margin-bottom: 1rem; }
    .card-header-custom { margin: -1.5rem -1.5rem 1.5rem -1.5rem; padding: 0.75rem 1rem; }
    .page-header h1 { font-size: 1.5rem; }
    .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    .new-listing-form .col-sm-2,
    .new-listing-form .col-sm-3,
    .new-listing-form .col-sm-5 { flex: 0 0 100%; max-width: 100%; margin-bottom: 0.5rem; }
    .interview-type-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
    .btn-quick-add { width: 100%; margin-bottom: 0.5rem; }
    .timeslot-dates { overflow-x: auto; display: flex; }
    .timeslot-times { overflow-x: auto; display: flex; }
    .timeslot-time { flex: 0 0 auto; margin-bottom: 0.5rem; }
    .btn-lg { width: 100%; }
    .responses-actions { flex-direction: column; }
    .response-top-row { flex-direction: column; }
    .response-status-panel { flex: 1 1 auto; width: 100%; }
    .response-modal-actions { flex-direction: column; align-items: stretch; }
    .response-modal-save-btn { margin-left: 0; }
}

.btn-application,
.apply .col-md-6:last-child .btn-primary-red {
  padding: 0.25rem 0.5rem;  
  font-size: 0.875rem;     
}

#tableAdminListings {
  border-collapse: separate;
  border-spacing: 0;
}
#tableAdminListings thead tr th:first-child {
  border-radius: 15px 0 0 15px;
}
#tableAdminListings thead tr th:last-child {
  border-radius: 0 15px 15px 0;
}

#tableAdminGroups {
  border-collapse: separate;
  border-spacing: 0;
}
#tableAdminGroups thead tr th:first-child {
  border-radius: 15px 0 0 15px;
}
#tableAdminGroups thead tr th:last-child {
  border-radius: 0 15px 15px 0;
}

#tableAdminGroups thead th,
#tableAdminGroups tbody th,
#tableAdminGroups tbody td {
  vertical-align: middle;
}

#tableAdminGroups thead th {
  padding: 0.75rem 1rem;
}

#tableAdminGroups tbody td {
  padding: 0.65rem 1rem;
}

#tableAdminGroups tbody td:first-child {
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  width: 72px;
}

#tableAdminGroups tbody td:nth-child(2) a {
  font-weight: 500;
}

#tableAdminGroups tbody td:last-child {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}

#tableAdminGroups tbody tr:nth-child(even) {
  background-color: #f9fbff;
}

#tableAdminGroups tbody tr:hover {
  background-color: #eef4ff;
}

#tableAdminUsers {
  border-collapse: separate;
  border-spacing: 0;
}
#tableAdminUsers thead tr th:first-child {
  border-radius: 15px 0 0 15px;
}
#tableAdminUsers thead tr th:last-child {
  border-radius: 0 15px 15px 0;
}
/* ── Dashboard & Responses shared  ───────────────────────── */

.sd {
  --navy:    var(--nhhs-navy, #002B4D);
  --accent:  var(--nhhs-accent, #1F4766);
  --bg:      var(--nhhs-bg, #f3f6fd);
  --panel:   #ffffff;
  --border:  #dbe3ef;
  --muted:   #5b6673;
  --success: #198754;
  --warning: #e09000;
  --danger:  #dc3545;
  --neutral: #6c757d;
}

.sd {
  background: var(--bg);
  border: 1px solid #e7edf6;
  border-radius: 16px;
  padding: 1.1rem;
  margin: 1.2rem 0 2rem;
}

/* .sd-hero, .sd-pill — moved to a4.css */

.sd-stats {
  margin-top: 0.9rem;
  margin-bottom: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.sd-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 43, 77, 0.06);
}

.sd-stat-value {
  display: block;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
}

.sd-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.12rem;
}

/* ── STATUS OVERVIEW PANEL ────────────────── */
.status-overview-panel {
  margin-top: 1.2rem;
}

.status-overview-title {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nhhs-navy);
}

.status-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.status-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 43, 77, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 43, 77, 0.12);
}

.status-stat-value {
  display: block;
  color: var(--nhhs-navy);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.1;
}

.status-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.12rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .status-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .status-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── main grid ────────────────────────────── */

/* ── A3 PAGE SPECIFIC STYLES ────────────────── */
/* Black theme for a3 responses page to differentiate from dashboard */
.a3-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
  color: #ffffff !important;
  border: 1px solid #333;
}

.a3-hero h1,
.a3-hero p {
  color: #ffffff !important;
}

.a3-main-layout {
  display: grid;
  grid-template-columns: 1fr 0.22fr;
  gap: 1rem;
  margin-top: 1rem;
}

.a3-responses-section {
  min-width: 0;
}

.a3-status-section {
  min-width: 200px;
  width: 100%;
}

.a3-responses-panel {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.a3-status-panel {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.a3-status-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.a3-status-stats .status-stat-card {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.a3-status-stats .status-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.a3-status-stats .status-stat-value {
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 800;
}

.a3-status-stats .status-stat-label {
  color: #666;
  font-size: 0.75rem;
  margin-top: 0.1rem;
  white-space: normal;
}

th.col-applicant-status {
  text-align: center;
}

th.col-timeslot {
  text-align: left;
  padding-left: 0.5rem;
}

.a3-status-panel .status-overview-title {
  color: #1a1a1a;
}

.a3-responses-panel .table th {
  color: #1a1a1a;
}

.a3-status-panel.is-interviewers-panel {
  background: #f8f9fa;
}

.a3-interviewer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.a3-interviewer-sidebar-helper {
  margin: 0;
  color: #666;
  font-size: 0.82rem;
}

.a3-interviewer-empty {
  padding: 0.9rem;
  border: 1px dashed #c8c8c8;
  border-radius: 10px;
  color: #666;
  font-size: 0.88rem;
  background: #fff;
}

.a3-interviewer-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.a3-interviewer-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.a3-interviewer-card.is-unavailable {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.a3-interview-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.a3-interview-nav,
.a3-interview-detail {
  border: 1px solid #dadce0;
  border-radius: 16px;
  background: #f7f7f8;
  padding: 1rem;
}

.a3-interview-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: visible;
}

.a3-month-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.a3-month-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0;
}

.a3-month-toggle i {
  transition: transform 0.2s ease;
}

.a3-day-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 1200px;
  opacity: 1;
  overflow: visible;
  transform-origin: top;
  transition: max-height 0.38s ease, opacity 0.34s ease, transform 0.38s ease, margin-top 0.38s ease;
  padding-top: 0.1rem;
}

.a3-day-list.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: -0.25rem;
  overflow: hidden;
}

.a3-day-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.a3-day-pill:hover,
.a3-day-pill.is-selected {
  border-color: #1a1a1a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.a3-day-count {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b2b4b;
  font-weight: 700;
}

.a3-day-count.density-1 { background: #dceeff; }
.a3-day-count.density-2 { background: #c7e3ff; }
.a3-day-count.density-3 { background: #a9d3ff; }
.a3-day-count.density-4 { background: #7ab9ff; }
.a3-day-count.density-5 { background: #509cff; color: #fff; }
.a3-day-count.density-6 { background: #2d7ce2; color: #fff; }
.a3-day-count.density-7 { background: #134b9c; color: #fff; }

.a3-interview-detail {
  min-height: 320px;
}

.a3-interview-detail-header h3 {
  margin: 0 0 1rem;
  color: #1a1a1a;
  font-size: 1.15rem;
  font-weight: 700;
}

.a3-interview-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.a3-interview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: #202020;
  color: #fff;
}

.a3-interview-row-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.a3-interview-time {
  font-weight: 700;
  color: #cfcfcf;
  min-width: 3rem;
}

.a3-chip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeeff;
  color: #1d5ca9;
  font-size: 0.84rem;
  font-weight: 700;
  flex: 0 0 36px;
}

.a3-chip-avatar-candidate {
  background: #e5eef8;
}

.a3-interview-candidate-name {
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a3-interview-assignment-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.a3-assigned-chip-stack {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-height: 36px;
}

.a3-assigned-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  appearance: none;
  cursor: default;
}

.a3-assigned-chip .a3-chip-avatar {
  width: 34px;
  height: 34px;
  margin-right: 0;
  border: 2px solid #202020;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.a3-assigned-chip-name {
  display: none;
}

.a3-assigned-chip-remove {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #2b2b2b;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.a3-assigned-chip:hover .a3-assigned-chip-remove {
  opacity: 1;
}

.a3-assigned-chip.is-add-chip .a3-chip-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: #fff2d8;
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.a3-assigned-chip-add-chip {
  cursor: pointer;
}

.a3-drop-zone {
  min-width: 138px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.a3-drop-zone.is-compact {
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
}

.a3-drop-zone:hover,
.a3-drop-zone.is-drop-target {
  border-color: #53a6ff;
  background: rgba(83, 166, 255, 0.12);
  color: #fff;
}

.a3-drop-zone.is-compact:hover,
.a3-drop-zone.is-compact.is-drop-target {
  border: 0;
  background: transparent;
  color: transparent;
}

.a3-show-more {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed #b7b7b7;
  background: transparent;
  color: #666;
  padding: 0.75rem;
  font-weight: 600;
}

.a3-interviewer-popover {
  position: absolute;
  z-index: 1200;
  min-width: 240px;
  max-width: 280px;
  padding: 0.8rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.a3-interviewer-popover-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.15rem;
}

.a3-interviewer-popover-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
  padding: 0.55rem 0.65rem;
  text-align: left;
  color: #1a1a1a;
  font-weight: 600;
}

.a3-interviewer-popover-item.is-unavailable,
.a3-interviewer-popover-item.is-assigned {
  opacity: 0.48;
}

.a3-responses-panel #massSaveStatusBtn {
    border: 1px solid #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    border-radius: 8px;
    height: 52px;
    transition: box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
.a3-responses-panel #massSaveStatusBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2d2d2d, #0d0d0d);
    filter: brightness(1.04);
}

.a3-responses-section .btn-timeslot-save,
.a3-responses-section .timeslot-action-btn {
    border: 1px solid #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
}

.a3-responses-section .btn-timeslot-save.is-change,
.a3-responses-section .timeslot-action-btn.is-change {
    background: linear-gradient(135deg, #2d2d2d, #0d0d0d);
    border-color: #0d0d0d;
}

.a3-responses-section .response-timeslot-editor .timeslot-action-btn,
.a3-responses-section .response-timeslot-editor .timeslot-action-btn.is-change {
    border: 1px solid #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
}

.a3-responses-section .btn-timeslot-save:hover,
.a3-responses-section .timeslot-action-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.a3-responses-section .timeslot-picker-compact .timeslot-date.selected,
.a3-responses-section .timeslot-picker-compact .timeslot-date:hover,
.a3-responses-section .timeslot-date.selected,
.a3-responses-section .timeslot-date:hover,
.a3-responses-section .timeslot-time.selected,
.a3-responses-section .timeslot-time:hover,
.a3-responses-section .timeslot-picker-compact .timeslot-time.selected,
.a3-responses-section .timeslot-picker-compact .timeslot-time:hover {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    border-color: #1a1a1a;
}

#responseModal .timeslot-action-btn,
#responseModal .timeslot-action-btn.is-change {
    border: 1px solid #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
}

#responseModal .timeslot-date.selected,
#responseModal .timeslot-date:hover,
#responseModal .timeslot-time.selected,
#responseModal .timeslot-time:hover,
#responseModal .timeslot-picker-compact .timeslot-date.selected,
#responseModal .timeslot-picker-compact .timeslot-date:hover,
#responseModal .timeslot-picker-compact .timeslot-time.selected,
#responseModal .timeslot-picker-compact .timeslot-time:hover {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    border-color: #1a1a1a;
}

@media (max-width: 1200px) {
  .a3-main-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .a3-status-section {
    order: -1;
  }
  
  .a3-status-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .a3-interview-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .responses-table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .responses-toolbar-right {
    justify-content: flex-start;
  }

  .a3-status-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .a3-interview-row {
    flex-direction: column;
    align-items: stretch;
  }

  .a3-interview-row-meta,
  .a3-interview-assignment-cell {
    width: 100%;
  }

  .a3-interview-assignment-cell {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .a3-status-stats {
    grid-template-columns: 1fr;
  }
}

/* .sd-grid — moved to a4.css */

.sd-panel {
  background:var(--panel); border:1px solid var(--border);
  border-radius:14px; box-shadow:0 6px 16px rgba(25,44,68,.08);
  padding:1rem;
}

.sd-panel + .sd-panel { margin-top:1rem; }

/* .sd-title, .sd-tabs, .sd-tab, .sd-cards, .sd-card, .sd-badge, .sd-btn,
   .sd-offer-select, .sd-stats-sidebar, .withdraw-modal, .sd-deadline,
   .sd-list, .sd-interview, .sd-archive, .sd-mark-read-form — moved to a4.css */

/* ── empty state (shared with a3) ────────────────────────────────────── */
.sd-empty {
  text-align:center; padding:1.5rem 1rem; color:var(--muted); font-size:.9rem;
}
.sd-empty a { color:var(--accent); font-weight:600; }

/* .sd-timeline, .sd-modal — moved to a4.css */

.quick-nav-card {
  margin-bottom: 1.5rem;
}

.quick-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 23, 38, 0.38);
  backdrop-filter: blur(6px);
}

.quick-nav-backdrop.open {
  display: flex;
}

.quick-nav-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 47, 108, 0.12);
  background: #fff;
  box-shadow: 0 22px 54px rgba(0, 43, 77, 0.28);
}

.quick-nav-title {
  margin: 0 0 1.2rem;
  color: #002f6c;
}

.quick-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  opacity: 0.65;
}

.quick-nav-close:hover,
.quick-nav-close:focus {
  opacity: 1;
  box-shadow: none;
}

.quick-nav-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #002f6c;
}

.quick-nav-field + .quick-nav-field,
.quick-nav-field + .quick-nav-section,
.quick-nav-section + .quick-nav-section,
.quick-nav-section + .quick-nav-footer {
  margin-top: 1rem;
}

.quick-nav-select.empty {
  font-style: italic;
  color: #7d8795;
}

.quick-nav-select:disabled {
  background: #f2f4f7;
  color: #9aa5b1;
  cursor: not-allowed;
}

.quick-nav-target {
  --quick-nav-target-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 4px;
  border: 1px solid #c7d2df;
  border-radius: 14px;
  background: #f7f9fc;
  overflow: hidden;
}

.quick-nav-target-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  height: calc(100% - 8px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nhhs-accent) 0%, #1a3d5a 100%);
  box-shadow: 0 4px 12px rgba(31, 71, 102, 0.18);
  transform: translateX(calc(var(--quick-nav-target-index, 0) * 100%));
  transition: transform 0.28s ease;
}

.quick-nav-target-option {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  color: #53657b;
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.quick-nav-target-option:hover,
.quick-nav-target-option:focus-visible {
  color: #183c5d;
  outline: none;
}

.quick-nav-target-option.is-active {
  color: #ffffff;
}

.quick-nav-section {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}

.quick-nav-section.visible {
  max-height: 220px;
  margin-top: 1rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-nav-mode {
  max-height: 0;
}

.quick-nav-mode.visible {
  max-height: 140px;
}

.quick-nav-mode-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #002f6c;
}

.quick-nav-mode-toggle {
  --quick-nav-blue: #1f4766;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 148px;
  height: 54px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--quick-nav-blue) 0%, #1a3d5a 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s ease;
}

.quick-nav-mode-toggle:hover,
.quick-nav-mode-toggle:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.quick-nav-mode-toggle:focus,
.quick-nav-mode-toggle:active {
  outline: none;
}

.quick-nav-mode-option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: transparent;
}

.quick-nav-mode-knob {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 65px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.quick-nav-mode-toggle.is-edit .quick-nav-mode-knob {
  transform: translateX(71px);
}

.quick-nav-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  background: transparent;
  color: #1f4766;
  line-height: 1;
  text-align: center;
  opacity: 0.72;
  transform: scale(0.92);
  backface-visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quick-nav-icon-eye {
  font-size: 1rem;
  padding-right: 7px;
}

.quick-nav-icon-pencil {
  font-size: 1rem;
  padding-left: 4px;
}

.quick-nav-icon::before {
  display: block;
  background: transparent;
  line-height: 1;
}

.quick-nav-mode-toggle.is-view .quick-nav-mode-option-view .quick-nav-icon,
.quick-nav-mode-toggle.is-edit .quick-nav-mode-option-edit .quick-nav-icon {
  opacity: 1;
  transform: scale(1);
}

.quick-nav-mode-toggle::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.quick-nav-footer {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 47, 108, 0.12);
}

.quick-nav-footer-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.quick-nav-footer-btn:disabled,
.quick-nav-footer-btn.disabled {
  transform: none;
  box-shadow: none;
}

/* ── Responses page (a3) extras ───────────── */
.sd-responses {
  max-width: 1800px;
  margin: 1.5rem auto;
}

.sd-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  color: var(--navy);
  background: #fff;
  transition: border-color .15s;
}
.sd-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,71,102,.12);
}

.sd-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.sd-form-selector-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.sd-form-selector-field {
  flex: 1 1 260px;
  min-width: 0;
}

.sd-form-selector-field .sd-select {
  height: 42px;
  font-size: 0.92rem;
}

.sd-form-selector-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.sd-btn-danger {
  background: linear-gradient(135deg, var(--danger), #b92c28);
  color: #fff;
  border-color: #b92c28;
}
.sd-btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(185,44,40,.2);
}
.sd-btn-danger:disabled {
  background: linear-gradient(135deg, #e7b8b7, #d69391);
  border-color: #d7a4a2;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sd-mass-save-wrap {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.sd-pagination {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

/* Responses table inherits panel look */
.sd-responses .sd-panel .table {
  margin-bottom: 0;
}
.sd-responses .sd-panel .table th {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.sd-responses .sd-panel .table td {
  font-size: 0.85rem;
  color: var(--navy);
  vertical-align: middle;
}

/* a4-specific @media (sd-grid, sd-hero, sd-cards, sd-btn) — moved to a4.css */
@media(max-width:700px){
  .sd { padding:.75rem; border-radius:12px; }
  .sd-stats { grid-template-columns: 1fr; }
  .sd-form-selector-row { flex-direction: column; }
}

.project-builder-page {
  --project-builder-accent-rgb: 0, 47, 108;
}

.project-builder-kicker {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--project-builder-accent-rgb), 0.08);
  color: var(--project-builder-accent, #002f6c);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-builder-intro-card {
  border: 1px solid rgba(0, 47, 108, 0.08);
  box-shadow: 0 18px 40px rgba(15, 34, 64, 0.06);
}

.project-builder-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-builder-intro h4 {
  color: #002f6c;
  margin-bottom: 0.45rem;
}

.project-builder-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 92px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(242,246,252,0.96));
  border: 1px solid rgba(0, 47, 108, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.project-builder-logo {
  max-width: 78px;
  max-height: 78px;
  object-fit: contain;
}

.project-builder-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: rgba(0, 47, 108, 0.08);
  color: var(--project-builder-accent, #002f6c);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-builder-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-builder-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 47, 108, 0.08);
  color: var(--project-builder-accent, #002f6c);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-builder-timeslot-config {
  display: block !important;
}

.project-builder-preview-shell {
  --project-accent: var(--project-builder-accent, #002f6c);
  --project-accent-rgb: var(--project-builder-accent-rgb, 0, 47, 108);
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(var(--project-builder-accent-rgb), 0.04), #ffffff);
  border: 1px solid rgba(var(--project-builder-accent-rgb), 0.1);
}

.project-builder-preview-shell #previewTitle {
  margin-bottom: 0.35rem;
}

.project-builder-preview-shell #previewDescription {
  margin-bottom: 1rem;
  color: #58687b;
}

.project-builder-preview-shell hr {
  margin: 1rem 0 1.25rem;
}

.project-builder-preview-shell .project-preview-location,
.project-builder-preview-shell .project-preview-timeslot-note {
  margin-bottom: 0;
  color: #5e6d80;
  font-size: 0.9rem;
}

.project-builder-preview-shell .project-preview-timeslot-note {
  margin-top: 0.85rem;
  text-align: center;
}

@media (max-width: 768px) {
  .project-builder-intro,
  .project-builder-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= Compact Admin (Listings / Groups / Users) ================= */
.administrator-body {
  padding: 1.2rem 0.85rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(31, 71, 102, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(31, 71, 102, 0.1);
}

.administrator-body .nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border-bottom: 1px solid #dde4ef;
  padding: 0 0.4rem;
  margin-bottom: 0.8rem;
}

.administrator-body .nav-tabs .nav-link {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667689;
  padding: 1rem 0.95rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.administrator-body .nav-tabs .nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.administrator-body .nav-tabs .nav-link:hover,
.administrator-body .nav-tabs .nav-link.active {
  color: #153f66;
}

.administrator-body .nav-tabs .nav-link.active::after {
  background: #2f5f89;
}

.administrator-body #nav-listings,
.administrator-body #nav-groups,
.administrator-body #nav-users {
  margin-top: 0;
}

.administrator-body #nav-listings .apply,
.administrator-body #nav-groups .apply,
.administrator-body #nav-users .apply {
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
  align-items: center;
}

.administrator-body #nav-listings h1,
.administrator-body #nav-groups h1,
.administrator-body #nav-users h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #0d3558;
}

.administrator-body .admin-listing-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

.administrator-body .admin-listing-actions .admin-listing-toggle-form {
  display: inline-flex;
  margin: 0;
}

.administrator-body #tableAdminListings form,
.administrator-body #tableAdminGroups form,
.administrator-body #tableAdminUsers form {
  margin: 0;
}

.administrator-body #tableAdminListings input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.administrator-body #nav-listings .btn,
.administrator-body #nav-groups .btn,
.administrator-body #nav-users .btn {
  min-height: 40px;
  padding: 0.42rem 0.92rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  box-shadow: none;
}

.administrator-body #nav-listings .btn-primary,
.administrator-body #nav-groups .btn-primary,
.administrator-body #nav-users .btn-primary,
.administrator-body #nav-listings .btn-application,
.administrator-body #nav-groups .btn-application,
.administrator-body #nav-users .btn-application {
  background: #0f3c66;
  border-color: #0f3c66;
}

.administrator-body #nav-listings .btn-primary:hover,
.administrator-body #nav-groups .btn-primary:hover,
.administrator-body #nav-users .btn-primary:hover,
.administrator-body #nav-listings .btn-application:hover,
.administrator-body #nav-groups .btn-application:hover,
.administrator-body #nav-users .btn-application:hover {
  background: #0a2f4f;
  border-color: #0a2f4f;
  transform: none;
  box-shadow: none;
}

.administrator-body .btn-admin-activate {
  background: #1f9256;
  border-color: #1f9256;
}

.administrator-body .btn-admin-deactivate {
  background: #c24f46;
  border-color: #c24f46;
}

.administrator-body .btn-admin-delete,
.administrator-body .btn-primary-red {
  background: #b94242;
  border-color: #b94242;
}

.administrator-body #tableAdminListings,
.administrator-body #tableAdminGroups,
.administrator-body #tableAdminUsers {
  width: 100% !important;
  margin: 0.35rem 0 0.45rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.administrator-body #tableAdminListings thead th,
.administrator-body #tableAdminGroups thead th,
.administrator-body #tableAdminUsers thead th {
  background: #e8edf7 !important;
  color: #12395f !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d6dfec !important;
  padding: 0.82rem 0.95rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

.administrator-body #tableAdminListings thead th:first-child,
.administrator-body #tableAdminGroups thead th:first-child,
.administrator-body #tableAdminUsers thead th:first-child {
  border-top-left-radius: 12px;
}

.administrator-body #tableAdminListings thead th:last-child,
.administrator-body #tableAdminGroups thead th:last-child,
.administrator-body #tableAdminUsers thead th:last-child {
  border-top-right-radius: 12px;
}

.administrator-body #tableAdminListings tbody td,
.administrator-body #tableAdminListings tbody th,
.administrator-body #tableAdminGroups tbody td,
.administrator-body #tableAdminGroups tbody th,
.administrator-body #tableAdminUsers tbody td,
.administrator-body #tableAdminUsers tbody th {
  padding: 0.78rem 0.95rem;
  font-size: 1rem;
  color: #2f3a46;
  line-height: 1.3;
  vertical-align: middle;
  border-color: #e5ebf4;
  background: #ffffff;
}

.administrator-body #tableAdminListings tbody tr:nth-child(even),
.administrator-body #tableAdminGroups tbody tr:nth-child(even),
.administrator-body #tableAdminUsers tbody tr:nth-child(even) {
  background: #fbfcfe;
}

.administrator-body #tableAdminListings tbody tr:hover,
.administrator-body #tableAdminGroups tbody tr:hover,
.administrator-body #tableAdminUsers tbody tr:hover {
  background: #f4f8fd;
}

.administrator-body #tableAdminListings_wrapper .dataTables_length,
.administrator-body #tableAdminGroups_wrapper .dataTables_length,
.administrator-body #tableAdminUsers_wrapper .dataTables_length,
.administrator-body #tableAdminListings_wrapper .dataTables_filter,
.administrator-body #tableAdminGroups_wrapper .dataTables_filter,
.administrator-body #tableAdminUsers_wrapper .dataTables_filter {
  margin-bottom: 0.7rem;
  color: #2f3f54;
  font-size: 0.95rem;
}

.administrator-body #tableAdminListings_wrapper .dataTables_length select,
.administrator-body #tableAdminGroups_wrapper .dataTables_length select,
.administrator-body #tableAdminUsers_wrapper .dataTables_length select {
  min-width: 70px;
  height: 42px;
  padding: 0.3rem 1.75rem 0.3rem 0.6rem;
  border: 1px solid #c8d2e2;
  border-radius: 12px;
  background: #ffffff;
}

.administrator-body #tableAdminListings_wrapper .dataTables_filter input,
.administrator-body #tableAdminGroups_wrapper .dataTables_filter input,
.administrator-body #tableAdminUsers_wrapper .dataTables_filter input {
  min-width: 210px;
  height: 42px;
  padding: 0.4rem 0.68rem;
  border: 1px solid #c8d2e2 !important;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.95rem;
}

.administrator-body #tableAdminListings_wrapper .dataTables_info,
.administrator-body #tableAdminGroups_wrapper .dataTables_info,
.administrator-body #tableAdminUsers_wrapper .dataTables_info {
  font-size: 0.95rem;
  color: #627182;
  padding-top: 0.7rem;
}

.administrator-body #tableAdminListings_wrapper .dataTables_paginate,
.administrator-body #tableAdminGroups_wrapper .dataTables_paginate,
.administrator-body #tableAdminUsers_wrapper .dataTables_paginate {
  padding-top: 0.5rem;
}

.administrator-body #tableAdminListings_wrapper .paginate_button,
.administrator-body #tableAdminGroups_wrapper .paginate_button,
.administrator-body #tableAdminUsers_wrapper .paginate_button {
  min-width: 38px;
  height: 38px;
  margin: 0 2px;
  padding: 0.45rem 0.62rem !important;
  border: 1px solid #ccd5e4 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #3f5167 !important;
  font-size: 0.9rem;
  line-height: 1.1;
}

.administrator-body #tableAdminListings_wrapper .paginate_button.current,
.administrator-body #tableAdminGroups_wrapper .paginate_button.current,
.administrator-body #tableAdminUsers_wrapper .paginate_button.current {
  border-color: #91a7c3 !important;
  background: #eef3fa !important;
  color: #0f355c !important;
}

.administrator-body #tableAdminListings_wrapper .paginate_button.disabled,
.administrator-body #tableAdminGroups_wrapper .paginate_button.disabled,
.administrator-body #tableAdminUsers_wrapper .paginate_button.disabled {
  opacity: 0.46;
}

.administrator-body .input-group-admin {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-bottom: 0.2rem;
}

.administrator-body .input-group-admin .form-control {
  height: 40px;
  min-width: 190px;
  padding: 0.34rem 0.62rem;
  font-size: 0.92rem;
  border: 1px solid #c8d2e2;
  border-radius: 10px;
}

.administrator-body .btn-sm-admin-action-multiple {
  margin-left: 0;
}

@media (max-width: 992px) {
  .administrator-body {
    padding: 0.9rem 0.55rem 1.2rem;
    border-radius: 16px;
  }

  .administrator-body .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .administrator-body #nav-listings h1,
  .administrator-body #nav-groups h1,
  .administrator-body #nav-users h1 {
    font-size: 1.6rem;
  }

  .administrator-body #nav-listings .btn,
  .administrator-body #nav-groups .btn,
  .administrator-body #nav-users .btn {
    min-height: 36px;
    font-size: 0.86rem;
  }

  .administrator-body #tableAdminListings thead th,
  .administrator-body #tableAdminGroups thead th,
  .administrator-body #tableAdminUsers thead th,
  .administrator-body #tableAdminListings tbody td,
  .administrator-body #tableAdminListings tbody th,
  .administrator-body #tableAdminGroups tbody td,
  .administrator-body #tableAdminGroups tbody th,
  .administrator-body #tableAdminUsers tbody td,
  .administrator-body #tableAdminUsers tbody th {
    padding: 0.62rem 0.66rem;
    font-size: 0.9rem;
  }

  .administrator-body #tableAdminListings_wrapper .dataTables_filter input,
  .administrator-body #tableAdminGroups_wrapper .dataTables_filter input,
  .administrator-body #tableAdminUsers_wrapper .dataTables_filter input {
    min-width: 150px;
    height: 38px;
  }
}

/* .sd-card-header-row, .sd-consent-*, .consent-info-* — moved to a4.css */

/* ── Anonymize modal (admin, two-step, extend withdraw-modal styles) ───── */
.anonymize-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1060;
  align-items: center;
  justify-content: center;
}
.anonymize-modal-overlay.active { display: flex; }

.anonymize-modal {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  text-align: center;
  animation: withdrawModalIn .22s cubic-bezier(.34,1.56,.64,1) both;
}
.anonymize-modal-icon { font-size: 2.4rem; margin-bottom: .6rem; line-height: 1; }
.anonymize-modal-title { font-size: 1.25rem; font-weight: 800; color: #1a1a1a; margin: 0 0 .3rem; }
.anonymize-modal-body { font-size: .95rem; color: #444; margin: 0 0 1rem; }
.anonymize-modal-consequences {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: .85rem 1rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
  text-align: left;
}
.anonymize-modal-consequences li {
  font-size: .875rem;
  color: #c0392b;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: .3rem;
}
.anonymize-modal-consequences li::before {
  content: "✕";
  position: absolute;
  left: 0;
  font-weight: 700;
}
.anonymize-modal-consequences li.ok {
  color: #166534;
}
.anonymize-modal-consequences li.ok::before {
  content: "✓";
}
.anonymize-modal-actions { display: flex; gap: .65rem; }
.anonymize-modal-btn {
  flex: 1;
  padding: .65rem 1rem;
  border-radius: 10px;
  border: none;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .18s, background .18s;
}
.anonymize-modal-btn--cancel { background: #f1f3f5; color: #444; border: 1px solid #dde1e7; }
.anonymize-modal-btn--cancel:hover { background: #e8eaed; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.anonymize-modal-btn--proceed {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,119,6,.35);
}
.anonymize-modal-btn--proceed:hover { box-shadow: 0 6px 20px rgba(217,119,6,.45); }
.anonymize-modal-btn--confirm {
  background: linear-gradient(135deg, #c0392b, #96281b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,.35);
}
.anonymize-modal-btn--confirm:hover { box-shadow: 0 6px 20px rgba(192,57,43,.45); }
.anonymize-modal-btn--confirm:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .6;
}
.anonymize-confirm-input-wrap {
  margin-bottom: 1.1rem;
  text-align: left;
}
.anonymize-confirm-input-wrap input {
  width: 100%;
  padding: .55rem .75rem;
  border-radius: 8px;
  border: 1px solid #dde1e7;
  font-size: .9rem;
  margin-bottom: .35rem;
  transition: border-color .15s, box-shadow .15s;
}
.anonymize-confirm-input-wrap input:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.anonymize-confirm-input-help {
  font-size: .8rem;
  color: #666;
}

/* ── Soft-delete (a3 deleted section) ────────────────────────────────── */
.a3-deleted-section-toggle {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.a3-deleted-section-toggle:hover { background: #f8fafc; }
.a3-deleted-body { display: none; margin-top: .6rem; }
.a3-deleted-body.open { display: block; }

.sd.sd-responses {
  width: 100%;
  max-width: 1450px;
  box-sizing: border-box;
  margin: 1rem auto 1.75rem;
}

.sd.sd-responses .a3-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
}

.sd.sd-responses .a3-hero h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.7rem);
  line-height: 1.2;
}

.sd.sd-responses .a3-hero p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.sd.sd-responses .sd-hero,
.sd.sd-responses .a3-hero {
  border-radius: 14px;
  overflow: hidden;
}

.sd.sd-responses .a3-responses-panel {
  overflow: hidden;
  border-radius: 14px;
}

.sd.sd-responses .a3-status-panel,
.sd.sd-responses .sd-form-selector {
  border-radius: 14px;
}

.sd.sd-responses #responsesTable,
.sd.sd-responses #deletedResponsesTable {
  width: 100%;
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
}

.sd.sd-responses .a3-responses-panel .table-responsive {
  overflow-x: visible;
}

.sd.sd-responses #responsesTable .table,
.sd.sd-responses #deletedResponsesTable .table {
  min-width: 0;
}

.sd.sd-responses .a3-responses-panel .table th,
.sd.sd-responses .a3-responses-panel .table td {
  padding: 0.58rem 0.52rem;
  font-size: 0.94rem;
}

.sd.sd-responses .a3-responses-panel .col-applicant-status {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

.sd.sd-responses .a3-responses-panel .applicant-status-select {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.sd.sd-responses .a3-responses-panel .col-timeslot {
  min-width: 190px;
}

.sd.sd-responses .a3-responses-panel .response-timeslot-select {
  max-width: 170px;
  flex-basis: 170px;
}

.sd.sd-responses #responsesTable .empty-state,
.sd.sd-responses #responsesTable .loading-spinner {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
}

.sd.sd-responses .sd-form-selector-actions {
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .sd.sd-responses .a3-main-layout {
    grid-template-columns: 1fr;
  }

  .sd.sd-responses .a3-status-section {
    order: 2;
    min-width: 0;
  }

  .sd.sd-responses .a3-responses-section {
    order: 1;
  }

  .sd.sd-responses .a3-status-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .sd.sd-responses {
    width: calc(100vw - 1rem);
    padding: 0.75rem;
    border-radius: 12px;
  }

  .sd.sd-responses .sd-hero {
    padding: 0.85rem 0.9rem;
  }

  .sd.sd-responses .sd-form-selector-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .sd.sd-responses .sd-form-selector-field,
  .sd.sd-responses .sd-form-selector-actions {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .sd.sd-responses .sd-form-selector {
    padding: 0.72rem;
  }

  .sd.sd-responses .sd-form-selector-field .sd-select {
    height: 38px;
    font-size: 0.9rem;
    padding: 0.34rem 0.55rem;
  }

  .sd.sd-responses .sd-form-selector-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .sd.sd-responses .export-btn,
  .sd.sd-responses .delete-form-btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .sd.sd-responses .a3-status-stats {
    grid-template-columns: 1fr;
  }

  .sd.sd-responses .responses-table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sd.sd-responses .responses-toolbar-left,
  .sd.sd-responses .responses-toolbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .sd.sd-responses .a3-view-toggle {
    width: 100%;
  }

  .sd.sd-responses .a3-view-toggle-btn {
    flex: 1 1 0;
    text-align: center;
  }

  .sd.sd-responses .a3-responses-panel .response-timeslot-cell {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .sd.sd-responses .a3-responses-panel .response-timeslot-select {
    max-width: 118px;
    flex: 0 0 118px;
    min-height: 32px;
    padding: 0.12rem 0.38rem;
    font-size: 0.8rem;
  }

  .sd.sd-responses .a3-responses-panel .response-timeslot-cell .timeslot-action-btn {
    min-height: 32px;
    min-width: 0;
    padding: 0 0.5rem;
    font-size: 0.78rem;
  }

  .sd.sd-responses #responsesTable .table,
  .sd.sd-responses #deletedResponsesTable .table {
    min-width: 760px;
  }

  .sd.sd-responses .a3-responses-panel .table-responsive,
  .sd.sd-responses #responsesTable,
  .sd.sd-responses #deletedResponsesTable {
    overflow-x: auto;
  }
}

.timeslot-locked-notice { font-size: 0.8rem; color: #6c757d; font-style: italic; margin-top: 0.5rem; margin-bottom: 0; }
