html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Admin shell — Figma sidebar + green top bar (same structure as AutoScop.Partners' shell) */
body.autoscop-app {
    margin-bottom: 0;
    font-family: "Inter", var(--bs-body-font-family);
    background-color: #f5f5f5;
    color: #171717;
}

.autoscop-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.autoscop-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    flex: 0 0 56px;
    height: 56px;
    background-color: #13bf73;
}

.autoscop-topbar-brand {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 .75rem 0 1.25rem;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .25);
    transition: flex-basis .2s ease;
}

.autoscop-brand-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
}

.autoscop-brand-link:hover {
    color: #fff;
}

.autoscop-sidebar-collapse,
.autoscop-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: .25rem;
    color: #fff;
    border-radius: .375rem;
}

.autoscop-sidebar-collapse:hover {
    background-color: rgba(255, 255, 255, .15);
}

.autoscop-sidebar-collapse svg {
    transition: transform .2s ease;
}

.autoscop-sidebar-toggle {
    display: none;
    margin-right: .5rem;
}

.autoscop-topbar-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 1 300px;
    height: 36px;
    margin: 0 1.25rem;
    padding: 0 .75rem;
    background-color: #fff;
    border-radius: .5rem;
    color: #6b7280;
}

.autoscop-topbar-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .8125rem;
    color: #171717;
}

.autoscop-topbar-search input::placeholder {
    color: #6b7280;
}

.autoscop-topbar-user {
    margin: 0 1.25rem 0 auto;
}

.autoscop-topbar-avatar {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background-color: #d9d9d9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autoscop-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.autoscop-sidebar {
    position: sticky;
    top: 56px;
    align-self: flex-start;
    width: 260px;
    flex: 0 0 260px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    transition: width .2s ease, flex-basis .2s ease;
}

.autoscop-menu,
.autoscop-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autoscop-menu {
    padding: .25rem 0 1rem;
}

.autoscop-menu-link {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .5625rem 1.25rem;
    font-size: .875rem;
    color: #171717;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    list-style: none;
}

.autoscop-menu-link::-webkit-details-marker {
    display: none;
}

.autoscop-menu-link > svg:first-child {
    flex: 0 0 20px;
    color: #171717;
}

.autoscop-menu-link:hover {
    background-color: #f5f5f5;
    color: #171717;
}

.autoscop-menu-link.active {
    background-color: #e7f8f0;
    color: #171717;
}

.autoscop-menu-link.active > svg:first-child,
.autoscop-menu-link.has-active > svg:first-child {
    color: #13bf73;
}

.autoscop-menu-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autoscop-menu-chevron {
    flex: 0 0 18px;
    color: #171717;
    transition: transform .15s ease;
}

.autoscop-menu-group[open] > summary .autoscop-menu-chevron {
    transform: rotate(180deg);
}

.autoscop-menu-link.is-disabled {
    cursor: default;
    color: #9ca3af;
}

.autoscop-menu-link.is-disabled:hover {
    background: none;
}

.autoscop-menu-link.is-disabled > svg:first-child {
    color: #9ca3af;
}

.autoscop-submenu-link.is-disabled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    cursor: default;
    color: #9ca3af;
}

.autoscop-submenu-link.is-disabled:hover {
    background: none;
    color: #9ca3af;
}

.autoscop-menu-soon {
    font-size: .6875rem;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0 .4rem;
}

.autoscop-submenu {
    padding: .125rem 0 .375rem;
}

.autoscop-submenu-link {
    display: block;
    padding: .4375rem 1.25rem .4375rem 3.375rem;
    font-size: .8125rem;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autoscop-submenu-link:hover {
    background-color: #f5f5f5;
    color: #171717;
}

.autoscop-submenu-link.active {
    background-color: #e7f8f0;
    color: #0f9f5f;
    font-weight: 500;
}

.autoscop-sidebar-backdrop {
    display: none;
}

.autoscop-main {
    flex: 1 1 auto;
    /* Flex items default to a content-based min-width, which stops a wide table's
       .table-responsive from scrolling internally and instead widens the whole shell. */
    min-width: 0;
    padding: 1.75rem 1.5rem;
}

/* Collapsed (desktop): icon-only rail. Toggled by .autoscop-sidebar-collapse. */
@media (min-width: 768px) {
    .sidebar-collapsed .autoscop-topbar-brand {
        flex-basis: 64px;
        justify-content: center;
        padding: 0;
    }

    .sidebar-collapsed .autoscop-brand-link {
        display: none;
    }

    .sidebar-collapsed .autoscop-sidebar-collapse svg {
        transform: rotate(180deg);
    }

    .sidebar-collapsed .autoscop-sidebar {
        width: 64px;
        flex-basis: 64px;
    }

    .sidebar-collapsed .autoscop-menu-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-collapsed .autoscop-menu-label,
    .sidebar-collapsed .autoscop-menu-chevron,
    .sidebar-collapsed .autoscop-menu-soon,
    .sidebar-collapsed .autoscop-submenu {
        display: none;
    }
}

/* Below this width the fixed 260px sidebar would eat most of the screen, so it becomes an
   off-canvas panel toggled by .autoscop-sidebar-toggle instead of sitting inline. */
@media (max-width: 767.98px) {
    .autoscop-topbar-brand {
        flex: 0 0 auto;
        padding: 0 .75rem;
        border-right: 0;
    }

    .autoscop-sidebar-collapse,
    .autoscop-topbar-search {
        display: none;
    }

    .autoscop-sidebar-toggle {
        display: inline-flex;
    }

    .autoscop-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .2s ease-out;
        box-shadow: 2px 0 12px rgba(0, 0, 0, .15);
    }

    .autoscop-shell.sidebar-open .autoscop-sidebar {
        transform: translateX(0);
    }

    .autoscop-shell.sidebar-open .autoscop-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, .4);
        z-index: 1040;
    }

    .autoscop-main {
        padding: 1rem;
    }
}

/* Account/Login — same design as AutoScop.Partners' login, without the role toggle */
.auth-card {
    width: 100%;
    max-width: 507px;
    border: 0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .1) !important;
}

.auth-card-body {
    padding: 2rem !important;
}

.auth-field {
    margin-bottom: 1.25rem;
}

.brand-logo {
    display: block;
    height: 35px;
    width: auto;
    margin: 0 auto;
}

.auth-subtitle {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .9375rem;
    color: #6b7280;
}

.auth-label {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 500;
    color: #171717;
    margin-bottom: .5rem;
    display: inline-block;
}

.input-icon-group {
    position: relative;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7e7e7e;
    pointer-events: none;
}

.input-icon-group .form-control {
    height: 56px;
    padding-left: 3.25rem;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 1rem;
    font-family: "Montserrat", var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 500;
}

.input-icon-group .form-control::placeholder {
    color: #7e7e7e;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    padding: .25rem;
    color: #7e7e7e;
    line-height: 0;
}

.auth-check-label {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    color: #6b7280;
}

.auth-forgot-link {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
}

.auth-submit {
    background-color: #89dfb9;
    border: 0;
    border-radius: 1rem;
    height: 56px;
    font-family: "Montserrat", var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease;
}

.auth-submit:hover, .auth-submit:focus, .auth-submit:active {
    background-color: #13bf73;
    color: #fff;
    box-shadow: none;
}

/* The shell's footer spacing would push the full-height login layout into a scrollbar. */
body.auth-page {
    margin-bottom: 0;
}

/* Home/Index — İdarə Paneli Ümumi Görünüş (Figma M7, 10242:12456) */
.dash-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #171717;
    margin: 0 0 1.5rem;
}

.dash-card {
    background-color: #fff;
    border-radius: .75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dash-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 34px;
    padding: 0 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 2rem;
    background-color: #fff;
    color: #171717;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.dash-pill::-webkit-details-marker {
    display: none;
}

.dash-pill:hover {
    border-color: #13bf73;
    color: #171717;
}

.dash-pill.active {
    background-color: #13bf73;
    border-color: #13bf73;
    color: #fff;
}

.dash-date {
    position: relative;
}

.dash-date[open] .dash-date-chevron {
    transform: rotate(180deg);
}

.dash-date-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + .375rem);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 220px;
    padding: .75rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.dash-date-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .75rem;
    color: #6b7280;
}

.dash-apply {
    background-color: #13bf73;
    border-color: #13bf73;
    color: #fff;
    font-weight: 500;
}

.dash-apply:hover,
.dash-apply:focus {
    background-color: #0fa863;
    border-color: #0fa863;
    color: #fff;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.dash-kpis-codes {
    grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
    margin-bottom: 1rem;
}

.dash-kpi {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .75rem;
    min-height: 84px;
}

.dash-kpi-label {
    font-size: .6875rem;
    color: #525252;
    margin-bottom: .375rem;
}

.dash-kpi-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171717;
    line-height: 1.3;
}

.dash-kpi-change {
    margin-top: .375rem;
    font-size: .6875rem;
}

.dash-kpi-change.is-up {
    color: #13bf73;
}

.dash-kpi-change.is-down {
    color: #ef4444;
}

.dash-kpi-change.is-none {
    color: #9ca3af;
}

.dash-statuses {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .75rem;
    color: #171717;
}

.dash-statuses li {
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.6;
}

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.dash-dot.is-gold {
    background-color: #facc15;
}

.dash-dot.is-silver {
    background-color: #c0c0c0;
}

.dash-dot.is-bronze {
    background-color: #c2410c;
}

.dash-table-card {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: 1rem 1rem .5rem;
}

.dash-table-title {
    font-size: 1rem;
    font-weight: 400;
    color: #171717;
    margin: 0 0 .75rem;
}

.dash-table {
    font-size: .75rem;
}

.dash-table th {
    font-weight: 400;
    color: #525252;
    border-bottom-color: #e5e7eb;
}

.dash-table td {
    color: #171717;
    border-bottom: 0;
}

.dash-avg {
    color: #13bf73;
}

.dash-footnote {
    margin: .5rem 0 0;
    font-size: .6875rem;
    color: #9ca3af;
}

/* Users/AdminUsers — Admin panel istifadəçiləri */
.admin-page-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #171717;
}

.admin-add-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    height: 40px;
    padding: 0 1rem;
    border: 0;
    border-radius: .625rem;
    background-color: #13bf73;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
}

.admin-add-btn:hover,
.admin-add-btn:focus {
    background-color: #0fa863;
    color: #fff;
}

.admin-card {
    background-color: #fff;
    border-radius: .75rem;
    padding: 1rem;
}

.admin-form-card {
    max-width: 720px;
    padding: 1.5rem;
}

.admin-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    /* table-responsive only needs to scroll sideways; without this the rounded wrapper grows
       its own vertical scrollbar. */
    overflow-y: hidden;
}

.admin-table {
    font-size: .8125rem;
}

.admin-table thead th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #171717;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    padding: .625rem .75rem;
}

.admin-table tbody td {
    padding: .5rem .75rem;
    color: #171717;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.admin-col-search-toggle {
    border: 0;
    background: none;
    padding: .125rem;
    color: #6b7280;
    line-height: 0;
    border-radius: .25rem;
}

.admin-col-search-toggle:hover,
.admin-col-search-toggle.is-active {
    color: #13bf73;
}

.admin-col-search {
    margin-top: .375rem;
    font-weight: 400;
}

.admin-name {
    font-weight: 500;
}

.admin-email {
    font-size: .75rem;
    color: #6b7280;
}

.admin-muted {
    color: #9ca3af !important;
}

.admin-role {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    height: 26px;
    padding: 0 .625rem;
    border: 1px solid currentColor;
    border-radius: 2rem;
    font-size: .75rem;
    white-space: nowrap;
}

.admin-role-super {
    color: #13bf73;
}

.admin-role-account {
    color: #3b82f6;
}

.admin-role-service {
    color: #f97316;
}

.admin-role-plain {
    color: #6b7280;
}

/* The status pill is a real <select>, styled to the design's "aktiv ▾" / "blok ▾". */
.admin-status {
    appearance: none;
    height: 22px;
    padding: 0 1.5rem 0 .625rem;
    border: 0;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 500;
    background-repeat: no-repeat;
    background-position: right .4rem center;
    background-size: 10px;
    cursor: pointer;
}

.admin-status-active {
    background-color: #dcfce7;
    color: #15803d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
}

.admin-status-blocked {
    background-color: #b91c1c;
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
}

.admin-status.is-static {
    display: inline-flex;
    align-items: center;
    padding-right: .625rem;
    background-image: none;
    cursor: default;
}

.admin-status option {
    background-color: #fff;
    color: #171717;
}

.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: .375rem;
    background: none;
    padding: 0;
}

.admin-icon-edit {
    color: #3b82f6;
}

.admin-icon-delete {
    color: #ef4444;
}

.admin-icon-btn:hover {
    background-color: #f3f4f6;
}

.admin-modal {
    border: 0;
    border-radius: .75rem;
}

/* Users/AppUsers — Bütün istifadəçilər (İstifadəçi idarəetməsi) */
.admin-status-inactive {
    background-color: #fff;
    color: #171717;
    box-shadow: inset 0 0 0 1px #d4d4d4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
}

.users-status-filter {
    width: auto;
    height: 40px;
    padding-left: .875rem;
    border-color: #e5e7eb;
    border-radius: .625rem;
    background-color: #f5f5f5;
    font-size: .875rem;
}

.users-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    color: #171717;
}

.users-export-btn:hover {
    border-color: #13bf73;
    color: #13bf73;
}

.users-name-link {
    font-weight: 500;
    color: #171717;
    text-decoration: none;
}

.users-name-link:hover {
    color: #13bf73;
    text-decoration: underline;
}

.users-page-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 .75rem;
    border: 1px solid #d4d4d4;
    border-radius: .375rem;
    background-color: #fff;
    color: #171717;
    font-size: .8125rem;
    text-decoration: none;
}

.users-page-btn:hover {
    border-color: #13bf73;
    color: #171717;
}

.users-page-btn.is-disabled {
    color: #9ca3af;
    cursor: default;
}

.users-page-btn.is-disabled:hover {
    border-color: #d4d4d4;
}

.users-size-select {
    border: 0;
    background: none;
    font-size: .8125rem;
    color: #171717;
    cursor: pointer;
}

/* Bootstrap's disabled .btn drops the background; keep the design's green, just faded. */
.admin-add-btn:disabled,
.admin-add-btn.disabled {
    background-color: #13bf73;
    color: #fff;
    opacity: .55;
}

/* Delete confirmation popup — reason + type-DELETE (same design as Partners' order-item removal) */
.confirm-delete-modal {
    border: 0;
    border-radius: .75rem;
    padding: 1.5rem;
}

.confirm-delete-title {
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    text-align: center;
    margin: 0 0 .25rem;
}

.confirm-delete-target {
    text-align: center;
    font-size: .8125rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.confirm-delete-label {
    display: block;
    font-size: .8125rem;
    font-weight: 500;
    color: #171717;
    margin-bottom: .5rem;
}

.confirm-delete-input {
    display: block;
    width: 100%;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 1rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    color: #171717;
    resize: none;
}

.confirm-delete-input:focus {
    outline: 2px solid #13bf73;
}

.confirm-delete-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}

.confirm-delete-cancel,
.confirm-delete-submit {
    flex: 1 1 0;
    padding: .75rem 1rem;
    border-radius: 1rem;
    font-family: "Montserrat", "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 600;
}

.confirm-delete-cancel {
    background-color: #f7f7f7;
    border: 1px solid #e1e1e1;
    color: #171717;
}

.confirm-delete-cancel:hover,
.confirm-delete-cancel:focus {
    background-color: #efefef;
    border-color: #e1e1e1;
    color: #171717;
}

.confirm-delete-submit {
    background-color: #fc2222;
    border: 0;
    color: #fff;
}

.confirm-delete-submit:hover,
.confirm-delete-submit:focus {
    background-color: #e01b1b;
    color: #fff;
}

.confirm-delete-submit:disabled {
    background-color: #fc2222;
    color: #fff;
    opacity: .5;
}

/* "Blok edin" — the block-reason popup's confirm button is green in the design, not red. */
.confirm-block-submit {
    flex: 1 1 0;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 1rem;
    background-color: #13bf73;
    color: #fff;
    font-family: "Montserrat", "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 600;
}

.confirm-block-submit:hover,
.confirm-block-submit:focus {
    background-color: #0fa863;
    color: #fff;
}

/* Maintenance/Brands — Marka (Avtomobil idarəetməsi): the design's grey logo tile */
.brand-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: .25rem;
    background-color: #f0f0f0;
    overflow: hidden;
    vertical-align: middle;
}

.brand-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Marka əlavə edin popup */
.brand-create-modal {
    border: 0;
    border-radius: .75rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.brand-create-header {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.brand-create-title {
    font-size: 1rem;
    font-weight: 500;
    color: #171717;
    margin: 0;
}

.brand-create-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.brand-logo-drop {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #bdbdbd;
    border-radius: .75rem;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.brand-logo-drop:hover,
.brand-logo-drop:focus-within {
    border-color: #13bf73;
}

.brand-logo-drop img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-logo-drop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 0 .5rem;
    font-size: .8125rem;
    color: #171717;
    word-break: break-word;
}

.brand-create-fields {
    flex: 1 1 auto;
    max-width: 360px;
}

.brand-create-hint {
    margin-top: .5rem;
    font-size: .75rem;
    color: #9ca3af;
}

.brand-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
}

.brand-create-actions .btn {
    flex: 0 0 160px;
}

/* Classifier "… əlavə edin" popups: narrower than the brand popup, as designed. */
.reference-create-dialog {
    max-width: 40rem;
}

/* Tərəfdaş kataloqu: the address is cut to one short line ("Yasamal ray., Ş…"); the full text is its tooltip. */
.partner-address {
    display: inline-block;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* "Mühərrik həcmi əlavə edin" and "Asqı sistemi əlavə edin": a narrow popup with two equal buttons. */
.engine-volume-create-dialog,
.reference-create-dialog.is-narrow {
    max-width: 24rem;
}

.engine-volume-create-dialog .brand-create-actions .btn,
.reference-create-dialog.is-narrow .brand-create-actions .btn {
    flex: 1 1 0;
}

/* Model əlavə edin: Marka and Model adı side by side. */
.model-create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 575.98px) {
    .model-create-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The popup inputs' grey fill, with the select's own chevron kept clear of the text. */
.model-create-select {
    padding-right: 2.5rem;
    background-position: right 1rem center;
}

.model-create-select:invalid {
    color: #9ca3af;
}

.model-create-select option {
    color: #171717;
}

@media (max-width: 575.98px) {
    .brand-create-body {
        flex-direction: column;
    }

    .brand-create-actions .btn {
        flex: 1 1 0;
    }
}

/* Users/AppUsers/Details — İstifadəçi profili */
.profile-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    color: #171717;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
}

.profile-back:hover {
    color: #13bf73;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #9ca3af;
    color: #fff;
    font-size: 1.375rem;
    font-weight: 500;
}

.profile-identity {
    flex: 1;
    min-width: 0;
}

.profile-name {
    margin: .25rem 0 .5rem;
    font-size: 1.75rem;
    font-weight: 500;
    color: #171717;
    overflow-wrap: anywhere;
}

.profile-id {
    margin-bottom: .375rem;
    font-size: .8125rem;
    color: #6b7280;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.profile-badges .admin-status {
    height: 26px;
    padding-left: .75rem;
    border-radius: .5rem;
    font-size: .8125rem;
}

.profile-badges .admin-status-active {
    box-shadow: inset 0 0 0 1px #86efac;
}

.profile-verified {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    height: 26px;
    padding: 0 .75rem 0 .25rem;
    border-radius: .5rem;
    background-color: #1d6fd6;
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
}

.profile-deletion {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 .625rem;
    border-radius: .5rem;
    background-color: #fef3c7;
    color: #92400e;
    font-size: .75rem;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 40px;
    padding: 0 1.125rem;
    border-radius: .625rem;
    background-color: #fff;
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
}

.profile-btn-outline {
    border: 1px solid #6b7280;
    color: #404040;
}

.profile-btn-outline:hover {
    background-color: #f3f4f6;
}

.profile-btn-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
}

.profile-btn-danger:hover {
    background-color: #fef2f2;
}

.profile-card {
    margin-bottom: 1.25rem;
    padding: .875rem 1.25rem 1.125rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background-color: #fff;
}

.profile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.profile-card-title {
    margin: 0;
    font-size: .9375rem;
    font-weight: 500;
    color: #171717;
}

.profile-card-title-lg {
    margin-bottom: .75rem;
}

.profile-collapse {
    border: 0;
    background: none;
    padding: .125rem;
    line-height: 0;
    color: #404040;
    transition: transform .15s ease;
}

.profile-collapse[aria-expanded="false"] {
    transform: rotate(-90deg);
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.profile-facts dt {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-bottom: .375rem;
    font-size: .75rem;
    font-weight: 400;
    color: #6b7280;
}

.profile-facts dd {
    margin: 0;
    font-size: .875rem;
    font-weight: 600;
    color: #171717;
    overflow-wrap: anywhere;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.profile-stat {
    padding: .75rem .875rem;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
}

.profile-stat-label {
    margin-bottom: .25rem;
    font-size: .75rem;
    color: #6b7280;
}

.profile-stat-value {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #404040;
}

.profile-stat-value svg {
    color: #9ca3af;
}

/* Ümumi statistika: the chart list on the left, the donuts on the right. */
.stats-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: min(100%, 14.5rem);
    padding: .5rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    color: #6b7280;
}

.stats-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    font-size: .8125rem;
    color: #171717;
}

.stats-search:focus-within {
    border-color: #13bf73;
}

.stats-layout {
    display: grid;
    /* The list is as wide as its longest title, so none wraps. */
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767.98px) {
    .stats-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stats-select-all {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .5rem .625rem;
    border-bottom: 1px solid #e5e7eb;
    color: #171717;
    font-size: .8125rem;
    text-decoration: none;
}

.stats-select-all.is-checked {
    font-weight: 600;
}

.stats-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid #d1d5db;
    border-radius: .25rem;
    color: transparent;
}

.stats-select-all.is-checked .stats-checkbox {
    border-color: #13bf73;
    background-color: #13bf73;
    color: #fff;
}

.stats-nav ul {
    margin: .375rem 0 0;
    padding: 0;
    list-style: none;
}

.stats-nav-link {
    position: relative;
    display: block;
    padding: .5rem .5rem .5rem 1.5rem;
    color: #404040;
    font-size: .8125rem;
    text-decoration: none;
    white-space: nowrap;
}

.stats-nav-link:hover {
    color: #13bf73;
}

.stats-nav-link.active {
    color: #171717;
    font-weight: 600;
}

.stats-nav-link.active::before {
    content: "";
    position: absolute;
    left: .625rem;
    top: 50%;
    width: .375rem;
    height: .375rem;
    margin-top: -.1875rem;
    border-radius: 50%;
    background-color: #13bf73;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
    gap: .75rem;
}

.stats-card {
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background-color: #fafafa;
}

.stats-card-title {
    margin: 0 0 .5rem;
    font-size: .75rem;
    font-weight: 600;
    color: #171717;
}

.stats-donut {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-donut svg {
    flex: 0 0 auto;
    width: 6.5rem;
    height: 6.5rem;
}

.stats-donut svg circle:hover {
    opacity: .85;
}

.stats-donut.is-large {
    align-items: flex-start;
    gap: 3rem;
    padding: .5rem 1rem;
}

.stats-donut.is-large svg {
    width: 11rem;
    height: 11rem;
}

.stats-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .6875rem;
    color: #404040;
}

.stats-donut.is-large .stats-legend {
    font-size: .8125rem;
}

.stats-legend li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .1875rem 0;
}

.stats-legend-dot {
    flex: 0 0 auto;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
}

.stats-legend-share {
    color: #9ca3af;
}

/* İl: the chosen year's count with its picker, then the per-year chart. */
.years-filter {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: .5rem .5rem .5rem .875rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
}

.years-filter-label {
    font-size: .8125rem;
    color: #6b7280;
}

.years-filter-label strong {
    color: #171717;
    font-weight: 600;
}

.years-picker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    color: #171717;
}

.years-picker select {
    border: 0;
    background: transparent;
    font-weight: 600;
    font-size: .875rem;
    color: inherit;
    cursor: pointer;
}

.years-picker select:focus {
    outline: none;
}

.years-picker:focus-within {
    border-color: #13bf73;
}

.years-chart {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: 1rem 1rem .5rem;
}

.years-chart-title {
    margin-bottom: .75rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #171717;
}

.years-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.years-grid {
    stroke: #e5e7eb;
    stroke-dasharray: 4 4;
}

.years-axis {
    font-size: 13px;
    fill: #6b7280;
}

.years-line {
    fill: none;
    stroke: #16a34a;
    stroke-width: 2.5;
}

.years-dot {
    fill: #16a34a;
}

.years-dot.is-selected {
    stroke: #fff;
    stroke-width: 2;
}

/* Yanacaq: one card per fuel type, as many per row as fit. */
.reference-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: .75rem;
}

.reference-stat-value {
    font-size: 1rem;
    font-weight: 500;
    color: #171717;
}

.profile-tabs {
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding-left: .75rem;
}

.profile-tabs .nav-link {
    padding: .375rem .75rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
}

.profile-tabs .nav-link:hover {
    color: #404040;
}

.profile-tabs .nav-link.active {
    border-bottom-color: #171717;
    color: #171717;
}

.profile-tab-content {
    margin-bottom: 1.25rem;
}

.profile-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background-color: #fff;
    overflow-y: hidden;
}

.profile-table thead th {
    background-color: #fff;
}

.profile-card .profile-table thead th {
    background-color: #f9fafb;
}

.profile-table tbody td {
    padding-top: .875rem;
    padding-bottom: .875rem;
}

.profile-row-toggle {
    border: 0;
    background: none;
    padding: .125rem;
    line-height: 0;
    color: #171717;
    transition: transform .15s ease;
}

.profile-row-toggle:not(.collapsed) {
    transform: rotate(180deg);
}

.profile-row-detail td {
    background-color: #f9fafb;
    font-size: .8125rem;
}

.profile-car-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (max-width: 767.98px) {
    .profile-car-specs {
        grid-template-columns: minmax(0, 1fr);
    }
}

.profile-spec-card {
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    background-color: #fff;
    overflow: hidden;
}

.profile-spec-card > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-spec-card > div + div {
    border-top: 1px solid #e5e7eb;
}

.profile-spec-card dt,
.profile-spec-card dd {
    margin: 0;
    padding: .625rem 1rem;
}

.profile-spec-card dt {
    font-weight: 600;
    color: #111827;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.profile-spec-card dd {
    color: #374151;
}

/* Servis Tarixçəsi: Tamamlanıb / Tamamlanmayıb */
.profile-order-status {
    display: inline-block;
    padding: .125rem .625rem;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
}

.profile-order-status-done {
    background-color: #15803d;
    color: #fff;
}

.profile-order-status-open {
    background-color: #e5e7eb;
    color: #374151;
}

/* Servis Tarixçəsi, expanded: Alınan xidmətlər / Alınan ehtiyat hissələri */
.profile-order-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .5rem 1.5rem;
}

.profile-order-lines {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background-color: #fff;
    padding: .75rem .875rem .875rem;
}

.profile-order-lines-title {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin: 0 0 .625rem;
    font-size: .8125rem;
    font-weight: 600;
}

.profile-order-lines-services .profile-order-lines-title {
    color: #2563eb;
}

.profile-order-lines-parts .profile-order-lines-title {
    color: #c2410c;
}

.profile-order-lines-table {
    border: 1px solid #e5e7eb;
    font-size: .8125rem;
}

.profile-order-lines-table thead th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.profile-order-lines-table > :not(caption) > * > * {
    padding: .625rem .875rem;
    background-color: transparent;
}

.profile-order-lines-table thead th,
.profile-order-lines-table tfoot > tr > * {
    background-color: #f3f4f6;
}

.profile-order-lines-table tfoot th {
    font-weight: 600;
}

.profile-order-lines-table td.profile-order-lines-discount {
    color: #dc2626;
}

/* Xatırlatmalar, expanded: four facts in a row, then the note. */
.profile-reminder-detail {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background-color: #fff;
    padding: .875rem 1rem 1rem;
}

.profile-reminder-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin: 0 0 .875rem;
}

@media (max-width: 767.98px) {
    .profile-reminder-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-reminder-facts dt,
.profile-reminder-note-label {
    display: block;
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 400;
    color: #6b7280;
}

.profile-reminder-facts dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.profile-reminder-note-body {
    display: inline-block;
    margin: 0;
    padding: .5rem .75rem;
    border-radius: .375rem;
    background-color: #f3f4f6;
    color: #111827;
}

/* Bildirişlər: the body cut to one line, the channel as a pill. */
.profile-notification-text {
    display: block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-channel {
    display: inline-block;
    padding: .125rem .625rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    color: #fff;
}

.profile-channel-push {
    background-color: #1d74d6;
}

/* A column header that opens a filter menu (Xidmət, Avtomobil). */
.profile-col-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
}

.profile-col-filter-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.profile-col-filter .dropdown-item.active,
.profile-col-filter .dropdown-item:active {
    background-color: #f0fdf4;
    color: #15803d;
}

.profile-trust {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 22px;
    padding: 0 .75rem;
    border-radius: 2rem;
    font-size: .8125rem;
}

.profile-trust-bronze {
    background-color: #efe0a8;
    color: #6b4f1d;
    box-shadow: inset 0 0 0 1px #c9b26a;
}

.profile-trust-silver {
    background-color: #e5e7eb;
    color: #374151;
    box-shadow: inset 0 0 0 1px #9ca3af;
}

.profile-trust-gold {
    background-color: #fde68a;
    color: #854d0e;
    box-shadow: inset 0 0 0 1px #eab308;
}

.profile-trust-none {
    color: #9ca3af;
}

.profile-add-comment {
    border: 0;
    background: none;
    padding: 0;
    color: #13bf73;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-add-comment:hover {
    color: #0fa863;
}

/* Şərh əlavə edin popup: title over a rule, the note, then the two buttons on the right. */
.comment-modal-dialog {
    max-width: 40rem;
}

.comment-modal {
    padding: 1.25rem 1rem 1rem;
}

.comment-modal-title {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: .9375rem;
    font-weight: 600;
    color: #171717;
}

.comment-modal .confirm-delete-input {
    min-height: 4.5rem;
}

.comment-modal-actions {
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.comment-modal-actions .btn {
    flex: 0 0 8.25rem;
    border-radius: .625rem;
}

.comment-modal-submit {
    background-color: #13bf73;
    border: 0;
    color: #fff;
    padding: .75rem 1rem;
    font-family: "Montserrat", "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 600;
}

.comment-modal-submit:hover,
.comment-modal-submit:focus {
    background-color: #0fa863;
    color: #fff;
}

.profile-comment-body {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* "Məlumatları gizlət": blur personal values rather than remove them, so the layout holds. */
body.profile-masked [data-sensitive] {
    filter: blur(6px);
    user-select: none;
}

@media (max-width: 991.98px) {
    .profile-header {
        flex-wrap: wrap;
    }

    .profile-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Maintenance/Models — the "Marka: X ×" chip for an exact brand filter */
.models-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .375rem .25rem .75rem;
    border-radius: 2rem;
    background-color: #e7f8f0;
    color: #171717;
    font-size: .8125rem;
}

.models-brand-chip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #0f9f5f;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
}

.models-brand-chip a:hover {
    background-color: #c9efdc;
}

/* Tərəfdaş detalları */
.partner-btn-edit {
    border: 1px solid #1d6fd6;
    color: #1d6fd6;
}

.partner-btn-edit:hover {
    background-color: #eff6ff;
    color: #1d6fd6;
}

/* The design's chevron points up while a card is open and down once it folds. */
.partner-collapse[aria-expanded="false"] {
    transform: rotate(180deg);
}

.partner-whatsapp {
    color: #22c55e;
}

.partner-facts {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.partner-coordinates {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-coordinates a {
    color: inherit;
}

/* Rəhbər və məsul şəxslər: one card per person. */
.partner-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: .75rem;
}

.partner-person {
    padding: .75rem .875rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
}

.partner-person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.partner-person-name {
    margin: 0;
    font-size: .875rem;
    font-weight: 600;
    color: #171717;
}

.partner-person-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .125rem .5rem;
    border: 1px solid #1d6fd6;
    border-radius: .375rem;
    font-size: .6875rem;
    color: #1d6fd6;
    white-space: nowrap;
}

.partner-person-note {
    margin: .375rem 0 0;
    font-size: .75rem;
    color: #6b7280;
}

.partner-person-contacts {
    list-style: none;
    margin: .625rem 0 0;
    padding: .625rem 0 0;
    border-top: 1px solid #e5e7eb;
    font-size: .75rem;
    color: #404040;
}

.partner-person-contacts li {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .125rem 0;
}

.partner-person-contacts svg {
    color: #6b7280;
}

.partner-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 10.5rem));
    gap: .75rem;
}

.partner-kpi-note {
    margin-top: .375rem;
    font-size: .6875rem;
    color: #9ca3af;
}

.partner-toggle-col {
    width: 2.75rem;
}

.partner-table td,
.partner-table th {
    font-size: .8125rem;
}

.partner-center-name {
    max-width: 11rem;
}

.partner-phones div {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.partner-phones svg {
    color: #6b7280;
}

/* An expanded row: the white card(s) sit on the row's grey background. */
.partner-detail-row > td {
    padding: 1rem 3.25rem;
}

.partner-center-card {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background-color: #fff;
}

.partner-center-card > section + section {
    margin-top: .875rem;
    padding-top: .875rem;
    border-top: 1px solid #e5e7eb;
}

.partner-center-heading {
    margin: 0 0 .375rem;
    font-size: .75rem;
    font-weight: 600;
    color: #171717;
}

.partner-center-text {
    margin-bottom: .5rem;
    font-size: .75rem;
    color: #6b7280;
}

.partner-brand-list,
.partner-hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .875rem;
}

.partner-closed {
    color: #ef4444;
}

.partner-center-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.partner-map-link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
    color: #1d6fd6;
}

.partner-receptionists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: .75rem 1.5rem;
}

.partner-receptionist-name {
    margin-bottom: .125rem;
    font-size: .75rem;
    font-weight: 600;
    color: #171717;
}

.partner-receptionists .partner-center-text {
    margin-bottom: 0;
}

.partner-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.partner-gallery img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: .5rem;
}

.partner-report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.partner-report-tools {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.partner-discount {
    color: #ef4444;
}

.partner-commission {
    color: #1d6fd6;
}

/* Kuponlar / Xidmətlər / Ehtiyat hissələri cards inside an expanded report row. */
.partner-mini-grid {
    display: grid;
    gap: 1.5rem;
}

.partner-mini-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-mini-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-mini {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background-color: #fff;
}

.partner-mini-title {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin: 0 0 .75rem;
    font-size: .8125rem;
    font-weight: 600;
}

.partner-mini-coupons .partner-mini-title {
    color: #13bf73;
}

.partner-mini-services .partner-mini-title {
    color: #2563eb;
}

.partner-mini-parts .partner-mini-title {
    color: #c2410c;
}

.partner-mini-table {
    width: 100%;
    font-size: .75rem;
    color: #171717;
}

.partner-mini-table th,
.partner-mini-table td {
    padding: .375rem 0;
    background: none;
}

.partner-mini-table th + th,
.partner-mini-table td + td {
    padding-left: .75rem;
}

.partner-mini-table thead th {
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
}

.partner-mini-table tbody td {
    border-bottom: 1px solid #e5e7eb;
}

.partner-mini-table tfoot th {
    font-weight: 600;
}

.partner-code {
    display: inline-block;
    padding: .125rem .5rem;
    border: 1px solid #9ca3af;
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    .partner-mini-grid-3,
    .partner-mini-grid-2,
    .partner-center-addresses {
        grid-template-columns: minmax(0, 1fr);
    }

    .partner-detail-row > td {
        padding: .75rem;
    }
}

@media (max-width: 767.98px) {
    .partner-report-tools {
        width: 100%;
    }

    .partner-report-tools .stats-search {
        flex: 1 1 auto;
        width: auto;
    }
}

/* Tərəfdaş silin popup: the question reads left-aligned, as designed. */
.partner-delete-title {
    margin-bottom: 1rem;
    text-align: left;
}

/* Tərəfdaş əlavə edin — a tall popup, scrolled inside; the same fields on the edit page's card. */
.partner-create-dialog {
    max-width: 30rem;
}

.partner-create-body {
    overflow-y: auto;
    padding-right: .25rem;
}

.partner-form-card {
    max-width: 40rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background-color: #fff;
}

.partner-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .875rem 1rem;
}

.partner-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-form-grid .confirm-delete-label {
    margin-bottom: .375rem;
    font-size: .75rem;
}

.partner-form-grid .confirm-delete-input {
    padding: .625rem .875rem;
    border-radius: .75rem;
    font-size: .8125rem;
}

.partner-form-section {
    margin: 1.25rem 0 .875rem;
    padding-bottom: .625rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: .8125rem;
    font-weight: 500;
    color: #171717;
}

.partner-select,
.partner-select-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
}

.partner-select {
    padding: .625rem .875rem;
    border: 0;
    border-radius: .75rem;
    background-color: #f7f7f7;
    font-size: .8125rem;
    color: #171717;
    text-align: left;
}

.partner-select:focus-visible {
    outline: 2px solid #13bf73;
}

.partner-select-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-select-text.is-placeholder {
    color: #9ca3af;
}

.partner-select[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.partner-brand-menu {
    width: 100%;
    max-height: 13rem;
    overflow-y: auto;
    padding: .25rem 0;
}

.partner-brand-option {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .375rem .875rem;
    font-size: .8125rem;
    cursor: pointer;
}

.partner-brand-option:hover {
    background-color: #f3f4f6;
}

.partner-person-fields {
    margin-top: .875rem;
}

.partner-person-fields + .partner-person-fields {
    padding-top: .875rem;
    border-top: 1px dashed #e5e7eb;
}

.partner-add-person {
    margin-top: .875rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: .8125rem;
    font-weight: 500;
    color: #13bf73;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .partner-form-grid,
    .partner-form-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Servis mərkəzləri — the Tərəfdaş ▾ column filter. */
.center-partner-filter {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: inherit;
}

.center-partner-filter.is-active {
    color: #13bf73;
}

.center-partner-filter[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.center-partner-menu {
    max-height: 18rem;
    overflow-y: auto;
    font-size: .8125rem;
}

.center-partner-menu .dropdown-item.active,
.center-partner-menu .dropdown-item:active {
    background-color: #e8f8f0;
    color: #0f9d5f;
}

/* Servis mərkəzi əlavə edin */
.center-create-dialog {
    max-width: 32rem;
}

.center-form .partner-form-grid + .partner-form-grid,
.center-form [data-person-rows] .partner-person-fields:first-child {
    margin-top: .875rem;
}

.partner-native-select {
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1.125rem;
}

.center-hours-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.center-hours-summary {
    font-size: .75rem;
    font-weight: 500;
    color: #171717;
    line-height: 1.6;
}

.center-hours-btn {
    padding: .5rem .875rem;
    border: 1px solid #e1e1e1;
    border-radius: .625rem;
    background-color: #fff;
    font-size: .75rem;
    font-weight: 500;
    color: #171717;
    white-space: nowrap;
}

.center-hours-btn:hover {
    background-color: #f7f7f7;
}

/* "Həftənin gününü və vaxtı seçin": laid over the form, the form dimmed behind it. */
.center-hours-panel {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, .35);
}

.center-hours-panel[hidden] {
    display: none;
}

.center-hours-dialog {
    width: min(100%, 30rem);
    max-height: 100%;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: .75rem;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.center-hours-title {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.center-hours-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 2.75rem;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.center-hours-day,
.center-hours-time {
    height: 2.5rem;
    border: 1px solid #e1e1e1;
    border-radius: .625rem;
    font-size: .8125rem;
    color: #171717;
}

.center-hours-day {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 .75rem;
}

.center-hours-day svg {
    color: #6b7280;
}

.center-hours-time {
    width: 100%;
    padding: 0 .5rem;
    background-color: #fff;
}

.center-hours-time:focus {
    outline: 2px solid #13bf73;
    border-color: transparent;
}

.center-hours-clear {
    padding: 0;
    border: 0;
    background: none;
    font-size: .75rem;
    color: #ef4444;
}

.center-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.center-gallery-new {
    display: contents;
}

.center-gallery-tile,
.center-gallery-add {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
    border-radius: .5rem;
}

.center-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A stored photo: unticking the hidden checkbox (clicking the tile) marks it for removal. */
.center-gallery-keep {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.center-gallery-remove {
    position: absolute;
    top: .25rem;
    right: .25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .875rem;
    line-height: 1.25rem;
    text-align: center;
}

label.center-gallery-tile {
    cursor: pointer;
}

label.center-gallery-tile:has(.center-gallery-keep:not(:checked)) img {
    opacity: .3;
}

label.center-gallery-tile:has(.center-gallery-keep:focus-visible) {
    outline: 2px solid #13bf73;
}

.center-gallery-add {
    border: 1px dashed #d1d5db;
    font-size: .6875rem;
    font-weight: 500;
    color: #171717;
    text-align: center;
    cursor: pointer;
}

.center-gallery-add:hover {
    background-color: #f7f7f7;
}

.center-gallery-add:focus-within {
    outline: 2px solid #13bf73;
}

/* Tərəfdaş xidmət kataloqu — the filter pills and the wide attribute table. */
.catalog-intro {
    margin-bottom: .75rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #171717;
}

.catalog-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.catalog-pill {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    height: 2rem;
    padding: 0 .75rem;
    border: 1px solid #e1e1e1;
    border-radius: .5rem;
    background-color: #fff;
    font-size: .75rem;
    color: #404040;
    white-space: nowrap;
}

.catalog-pill:hover:not(:disabled) {
    background-color: #f7f7f7;
}

.catalog-pill:disabled {
    opacity: .5;
}

.catalog-pill.is-active {
    border-color: #13bf73;
    background-color: #e8f8f0;
    color: #0f9d5f;
}

.catalog-pill[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.catalog-pill-menu {
    max-height: 18rem;
    overflow-y: auto;
    font-size: .8125rem;
}

.catalog-pill-menu .dropdown-item.active,
.catalog-pill-menu .dropdown-item:active {
    background-color: #e8f8f0;
    color: #0f9d5f;
}

.catalog-clear {
    font-size: .75rem;
}

.catalog-table td,
.catalog-table th {
    font-size: .75rem;
    white-space: nowrap;
}

.catalog-table td.admin-name {
    white-space: normal;
    min-width: 6rem;
}

.catalog-center {
    display: inline-block;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.catalog-more {
    margin-right: .75rem;
    font-size: .75rem;
    color: #1d6fd6;
    text-decoration: none;
}

.catalog-more:hover {
    text-decoration: underline;
}

.catalog-kebab {
    padding: .125rem .25rem;
    border: 0;
    background: none;
    color: #1d6fd6;
    line-height: 0;
}

/* A validation summary with nothing to report renders empty; keep its alert box hidden. */
.validation-summary-valid {
    display: none;
}

/* Tərəfdaş xidmət kataloqu › Ətraflı */
.catalog-detail-title {
    margin: 0 0 .25rem;
    font-size: .9375rem;
    font-weight: 600;
    color: #171717;
}

.catalog-detail-summary {
    margin: 0 0 1rem;
    font-size: .75rem;
    color: #6b7280;
}

.catalog-detail-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.catalog-detail-search {
    width: min(100%, 18rem);
}

.catalog-type-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 2.5rem;
    padding: 0 .875rem;
    border: 1px solid #e1e1e1;
    border-radius: .625rem;
    background-color: #fff;
    font-size: .8125rem;
    font-weight: 500;
    color: #171717;
}

.catalog-type-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.catalog-type-icon {
    display: inline-flex;
    line-height: 0;
}

.catalog-type-icon.is-service {
    color: #2563eb;
}

.catalog-type-icon.is-part {
    color: #c2410c;
}

.catalog-item-sub {
    font-size: .6875rem;
    color: #9ca3af;
}

/* Yeni əlavə edin — Xidmət / Ehtiyat hissəsi as the design's green check boxes (radio behaviour). */
.catalog-kind {
    display: flex;
    gap: 1.5rem;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.catalog-kind-option {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: #171717;
    cursor: pointer;
}

.catalog-kind-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalog-kind-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid #d1d5db;
    border-radius: .25rem;
    background-color: #fff;
}

.catalog-kind-option input:checked + .catalog-kind-box {
    border-color: #13bf73;
    background-color: #13bf73;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
    background-size: .75rem;
    background-repeat: no-repeat;
    background-position: center;
}

.catalog-kind-option input:focus-visible + .catalog-kind-box {
    outline: 2px solid #13bf73;
    outline-offset: 2px;
}

/* Yeni konfiqurasiya əlavə edin — İl aralığı: two year selects side by side. */
.entry-years {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

/* Trust/Applications — Təsdiq gözləyən sənədlər (list, review popup, reasons, photo) */
.trust-vehicle-cell {
    display: flex;
    flex-direction: column;
    font-size: .8125rem;
    line-height: 1.35;
    color: #404040;
}

.trust-details-link {
    color: #1677ff;
    font-size: .875rem;
    text-decoration: none;
}

.trust-details-link:hover {
    text-decoration: underline;
}

.admin-table tbody tr.is-selected td {
    background-color: #f3fbf7;
}

.trust-review-dialog {
    max-width: 820px;
}

.trust-reject-dialog {
    max-width: 780px;
}

.trust-modal {
    border: 0;
    border-radius: .75rem;
    font-size: .875rem;
}

.trust-modal-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 1.5rem;
    padding: 1.25rem 0 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.trust-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    padding: .125rem .625rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
}

.trust-pill-pending {
    background-color: #fff4e6;
    border-color: #ffd8a8;
    color: #f08c00;
}

.trust-pill-rejected {
    background-color: #fff0f0;
    border-color: #ffc9c9;
    color: #e03131;
}

.trust-pill-approved {
    background-color: #ebfbf3;
    border-color: #b2f2d0;
    color: #0ca678;
}

.trust-pill-closed {
    background-color: #f1f3f5;
    border-color: #dee2e6;
    color: #6b7280;
}

.trust-modal-body {
    padding: 1.25rem 1.5rem;
}

.trust-modal-footer {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.5rem 1.5rem;
}

.trust-modal-footer > .btn,
.trust-footer-form {
    flex: 1 1 0;
}

.trust-doc-title {
    font-size: .8125rem;
    color: #404040;
    margin-bottom: .5rem;
}

.trust-doc-actions {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
}

.trust-doc-actions > form {
    flex: 1 1 0;
}

.trust-doc-approve,
.trust-doc-reject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    width: 100%;
    flex: 1 1 0;
    padding: .375rem .5rem;
    border-radius: .5rem;
    font-size: .8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.trust-doc-approve {
    background-color: #13bf73;
    border: 1px solid #13bf73;
    color: #fff;
}

.trust-doc-approve:hover {
    background-color: #0fa863;
}

.trust-doc-reject {
    background-color: #fff0f0;
    border: 1px solid #fff0f0;
    color: #fc2222;
}

.trust-doc-reject:hover {
    border-color: #fc2222;
}

.trust-doc-status {
    display: flex;
    align-items: center;
    gap: .375rem;
    min-height: 34px;
    margin-bottom: .5rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #6b7280;
}

.trust-doc-status.is-approved {
    color: #13bf73;
}

.trust-doc-status.is-rejected {
    color: #fc2222;
}

.trust-doc-photo {
    display: block;
    width: 100%;
    height: 120px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    overflow: hidden;
    background-color: #f5f5f5;
    cursor: zoom-in;
}

.trust-doc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-doc-reason {
    margin: .5rem 0 0;
    font-size: .75rem;
    color: #404040;
}

.trust-doc-reason > span {
    color: #fc2222;
}

.trust-section {
    margin-top: 1.5rem;
}

.trust-section-title {
    font-size: .8125rem;
    font-weight: 600;
    color: #171717;
    margin: 0 0 .75rem;
}

.trust-form-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
}

.trust-label {
    display: block;
    font-size: .8125rem;
    color: #404040;
    margin-bottom: .375rem;
}

.trust-readonly {
    min-height: 40px;
    padding: .5625rem .875rem;
    border-radius: .625rem;
    background-color: #f5f5f5;
    color: #8c8c8c;
    font-size: .875rem;
    overflow-wrap: anywhere;
}

.trust-plate {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.trust-plate-country {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding-right: .75rem;
    border-right: 1px solid #e0e0e0;
    color: #404040;
}

.trust-input {
    min-height: 40px;
    border: 0;
    border-radius: .625rem;
    background-color: #f5f5f5;
    font-size: .875rem;
    color: #171717;
}

.trust-input:focus {
    background-color: #f5f5f5;
    box-shadow: 0 0 0 2px #13bf73;
}

.trust-input:disabled {
    background-color: #f5f5f5;
    color: #8c8c8c;
}

.trust-input.is-invalid {
    box-shadow: 0 0 0 1px #fc2222;
}

.trust-reject-submit {
    padding: .75rem 1rem;
    border: 1px solid #fc2222;
    border-radius: 1rem;
    background-color: #fff;
    color: #fc2222;
    font-family: "Montserrat", "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 600;
}

.trust-reject-submit:hover,
.trust-reject-submit:focus {
    background-color: #fff0f0;
    border-color: #fc2222;
    color: #fc2222;
}

.trust-reject-submit:disabled {
    border-color: #fc2222;
    color: #fc2222;
    opacity: .5;
}

/* Reasons popup */
.trust-reject-header {
    padding: 1.25rem 1.5rem 1rem;
}

.trust-reject-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    margin: 0 0 .25rem;
}

.trust-reject-hint {
    font-size: .75rem;
    color: #8c8c8c;
}

.trust-reject-body {
    padding: 0 1.5rem 1rem;
}

.trust-reason-group {
    border: 1px solid #ededed;
    border-radius: .5rem;
    margin-bottom: .5rem;
    background-color: #fff;
}

.trust-reason-group > summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem .75rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #171717;
    cursor: pointer;
    list-style: none;
}

.trust-reason-group > summary::-webkit-details-marker {
    display: none;
}

.trust-reason-chevron {
    margin-left: auto;
    transition: transform .15s ease;
}

.trust-reason-group[open] .trust-reason-chevron {
    transform: rotate(180deg);
}

.trust-reason-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 .3rem;
    border-radius: 999px;
    background-color: #fc2222;
    color: #fff;
    font-size: .6875rem;
}

.trust-reason-list {
    padding: 0 .75rem .625rem;
}

.trust-reason {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3125rem 0;
    font-size: .8125rem;
    color: #404040;
    cursor: pointer;
}

.trust-reason .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

.trust-reason .form-check-input:checked {
    background-color: #fc2222;
    border-color: #fc2222;
}

.trust-reason-tag {
    padding: 0 .375rem;
    border: 1px solid #91caff;
    border-radius: .25rem;
    color: #1677ff;
    font-size: .6875rem;
    white-space: nowrap;
}

.trust-preview {
    display: block;
    width: 100%;
    min-height: 88px;
    padding: .75rem .875rem;
    border: 0;
    border-radius: .625rem;
    background-color: #f5f5f5;
    font-size: .8125rem;
    color: #595959;
}

.trust-remark {
    resize: vertical;
    background-color: #fff;
    border: 1px solid #e5e7eb;
}

.trust-remark:focus {
    outline: 2px solid #13bf73;
}

.trust-preview-item + .trust-preview-item {
    margin-top: .75rem;
}

.trust-preview-label {
    color: #fc2222;
}

/* Popups opened over the review popup (see trust-review.js) */
.trust-stacked-modal {
    z-index: 1065;
}

.modal-backdrop.trust-stacked-backdrop {
    z-index: 1060;
}

.trust-photo-dialog {
    max-width: 440px;
}

.trust-photo-modal {
    position: relative;
    gap: 1rem;
    border: 0;
    border-radius: .75rem;
    padding: 1rem;
}

.trust-photo-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 1;
    padding: .5rem;
    border-radius: 50%;
    background-color: #fff;
}

.trust-photo-caption {
    font-size: .8125rem;
    font-weight: 500;
    margin-bottom: .5rem;
}

.trust-photo-modal {
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
}

/* A phone-sized photo must not run off the screen; two sides share it. */
.trust-photo-modal img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    border-radius: .5rem;
}

.trust-photo-modal:has([data-photo-side="back"]:not([hidden])) img {
    max-height: calc(50vh - 4.5rem);
}

.confirm-block-submit:disabled {
    background-color: #13bf73;
    color: #fff;
    opacity: .5;
}
