.sidebar__nav div.sidebar__item.sidebar__item-active .sidebar__item-title {
    background: #fff6e2;
}

.hide {
    display: none;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.5);
}

.error input[type="checkbox"] + label,
.error input[type="checkbox"] + label > * {
    color: #dc3545;
}

.agent-business__check.error input {
    border-color: #dc3545;
}

.service-coverage__agree.error .service-coverage__agree-text,
.service-coverage__agree.error .service-coverage__agree-text * {
    color: #dc3545;
}

.service-coverage__agree.error input {
    border-color: #dc3545;
}

.agent-states__edit button,
.agent-faq__edit button {
    font-size: 14px;
    color: #0b3948;
    text-decoration: underline;
}

.agent-bio__textarea,
.agent-faq__textarea {
    width: 100%;
    border: 1px solid #dde3e6;
    border-radius: 6px;
    padding: 8px 10px;
    resize: vertical;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.agent-bio__textarea {
    min-height: 6em;
}

.agent-faq__textarea {
    min-height: 4em;
}

/* Places Autocomplete dropdown */
.connect-reviews__google-autocomplete-wrap {
    position: relative;
}

.connect-reviews__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dde3e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
}

.connect-reviews__suggestion-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #0b3948;
    border-bottom: 1px solid #f0f3f5;
    transition: background 0.1s;
}

.connect-reviews__suggestion-item:last-child {
    border-bottom: none;
}

.connect-reviews__suggestion-item:hover,
.connect-reviews__suggestion-item--active {
    background: #fff6e2;
}

.connect-reviews__suggestion-status {
    padding: 10px 14px;
    font-size: 14px;
    color: #6b7c85;
    cursor: default;
}

.connect-reviews__suggestion-status--error {
    color: #c0392b;
}

.connect-reviews__selected {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2f855a;
}

.connect-reviews__google-action .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reviews-connected__api-note {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7c85;
}

.agent-faq__question-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-faq__question-input {
    flex: 1;
    border: 1px solid #dde3e6;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0b3948;
    font-family: inherit;
}

.agent-faq__question-input:focus {
    outline: none;
    border-color: #0b3948;
}

.agent-faq__delete {
    font-size: 13px;
    color: #c0392b;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 2px;
    text-decoration: underline;
    flex-shrink: 0;
}

.agent-faq__add {
    margin-top: 12px;
}

.agent-faq__add-btn {
    font-size: 14px;
    color: #0b3948;
    background: none;
    border: 1px dashed #0b3948;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}






/* = = = = = = = = = = = = = = = = = = = = = = = = */


/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0b3948 0%, #1a6a8a 100%);
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #0b3948;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.error-messages {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.error-messages .error {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0b3948;
    box-shadow: 0 0 0 3px rgba(11, 57, 72, 0.12);
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #0b3948;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #082d39;
}

.login-hint {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
}

.login-hint strong {
    color: #333;
}

/* Override design-system's 690px cap on the agent-profile area for admin */
.admin-content {
    max-width: none;
}

/* Minimal admin shell header, replacing the public marketing header/footer */
.admin-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e2e5ea;
}

.admin-shell-header__logo svg {
    display: block;
    height: 28px;
    width: auto;
}

.admin-shell-header__logout button {
    background: none;
    border: 1px solid #dde3e6;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b3948;
    cursor: pointer;
}

.admin-shell-header__logout button:hover {
    background: #f4f6f8;
}

/* Admin layout heading row */
.profile__heading--admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #555;
}

.admin-user-info__actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Admin sidebar logout button styled as a sidebar link */
.sidebar__item-title--btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    padding: 0;
}

.sidebar__item--logout .sidebar__item-title--btn {
    color: #b93535;
}

.sidebar__item--logout:hover .sidebar__item-title--btn {
    color: #8b1a1a;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.role-administrator {
    background-color: #0b3948;
    color: white;
}

.role-badge.role-agent {
    background-color: #1a6a8a;
    color: white;
}

.role-badge.role-customer {
    background-color: #2e7d5a;
    color: white;
}

.role-badge.role-new {
    background-color: #f0c040;
    color: #333;
}

.role-badge.role-resolved {
    background-color: #2e7d5a;
    color: white;
}

/* Admin Pages */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-title {
    font-size: 1.5rem;
    color: #0b3948;
    margin: 0;
}

.badge-count {
    display: inline-block;
    background: #f0c040;
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* Alerts */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.error-list {
    margin: 0;
    padding-left: 1.25rem;
}

/* User table */
.table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.user-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.user-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.user-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

.user-table tbody tr:hover {
    background-color: #fafafa;
}

.current-user-row {
    background-color: #eef4f7;
}

.current-user-row:hover {
    background-color: #ddeaf0 !important;
}

.you-badge {
    display: inline-block;
    background-color: #0b3948;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.35rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* forms inside action cells must not stretch as block flex items */
.actions-cell form {
    display: contents;
}

.empty-row {
    text-align: center;
    color: #999;
    padding: 2rem !important;
}

/* Button variants */
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    width: auto;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    width: auto;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-edit {
    background-color: #007bff;
    color: white;
    width: auto;
}

.btn-edit:hover {
    background-color: #0069d9;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    width: auto;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-create {
    background-color: #28a745;
    color: white;
    width: auto;
}

.btn-create:hover {
    background-color: #218838;
}

/* Form card */
.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    outline: none;
    border-color: #0b3948;
    box-shadow: 0 0 0 3px rgba(11, 57, 72, 0.12);
}

.input-error {
    border-color: #dc3545 !important;
}

.label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Edit-profile enhancements */
.edit-profile__avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-profile__avatar-img svg {
    width: 55%;
    height: 55%;
    fill: #9c8f82;
}

.edit-profile__avatar-edit {
    cursor: pointer;
}

.edit-profile__error {
    font-size: 13px;
    color: #dc3545;
    margin-top: 4px;
    min-height: 1.2em;
}

.edit-profile__input--error {
    border-color: #dc3545 !important;
}

.edit-profile__languages {
    display: grid; /* Включаем гриды */
    grid-template-columns: 1fr 1fr;
}

.edit-profile__select-wrap--lang-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 19px 16px 19px 16px;
    background: #fff;
    border: 1px solid #E3E5EC;
    border-radius: 8px;
    color: #0b3948;
}

.edit-profile__lang-tag-label {
    flex: 1;
}

.edit-profile__lang-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #919191;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.edit-profile__lang-remove:hover {
    color: #dc3545;
}

/* Matches .connect-reviews__suggestions on the Google Reviews page so all
   Google-powered autocomplete dropdowns look identical. */
.edit-profile__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dde3e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
}

.edit-profile__suggestion-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #0b3948;
    border-bottom: 1px solid #f0f3f5;
    transition: background 0.1s;
}

.edit-profile__suggestion-item:last-child {
    border-bottom: none;
}

.edit-profile__suggestion-item:hover,
.edit-profile__suggestion-item--active {
    background: #fff6e2;
}

.edit-profile__suggestion-status {
    padding: 10px 14px;
    font-size: 14px;
    color: #6b7c85;
    cursor: default;
}

.edit-profile__suggestion-status--error {
    color: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Servie Coverage */
.service-coverage__card {
  position: relative;
}
.service-coverage__miles-error {
  margin-top: 8px;
  font-size: 13px;
  color: #c0392b;
}
.service-coverage__miles-error:empty {
  display: none;
}
.service-coverage__map {
  position: relative;
}
#coverage-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#coverage-map-dynamic {
  width: 100%;
  height: 100%;
}
.service-coverage__map-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: #0b3948;
}
.service-coverage__map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #6b7c85;
}
.service-coverage__map-empty a {
  color: #0b3948;
  text-decoration: underline;
}
.service-coverage__edit {
  position: absolute;
  top: 20px;
  right: 20px;
}
.service-coverage__edit button {
  font-size: 14px;
  color: #0b3948;
  text-decoration: underline;
}

/* Cities/ZIP Codes report: cities column + ZIP codes split into two columns */
.cities-zip__rows {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.cities-zip__panel {
  flex: 1;
  min-width: 0;
}

.cities-zip__panel-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0b3948;
}

.cities-zip__panel-meta {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7c85;
}

.cities-zip__panel-body {
  display: flex;
}

.cities-zip__cities-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cities-zip__zips-col {
  display: flex;
  flex: 1;
  gap: 32px;
}

.cities-zip__zips-sub {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cities-zip__city-link,
.cities-zip__zip-link {
  font-size: 14px;
  font-weight: 700;
  color: #0b3948;
  text-decoration: none;
}

.cities-zip__city-link:hover,
.cities-zip__zip-link:hover {
  opacity: 0.55;
}

@media (max-width: 61.99875em) {
  .cities-zip__rows {
    flex-direction: column;
    gap: 24px;
  }
}

/* Locked (home) state pill on Service Coverage Area — always selected, can't be unchecked */
.service-coverage__state--locked {
  cursor: default;
}
.service-coverage__state.service-coverage__state--locked:has(input:checked) {
  background-color: #ffc43d;
  border-color: #ffc43d;
}
.service-coverage__state.service-coverage__state--locked:has(input:checked) span {
  color: #0b3948;
  font-weight: 700;
}
.service-coverage__state.service-coverage__state--locked:has(input:checked) .checkbox-round {
  background-color: transparent;
  border-color: #0b3948;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 11.0398L10.9762 15L17 9' stroke='%230b3948' stroke-width='2'/%3E%3C/svg%3E");
}