@font-face {
    font-family: 'IRANSansWeb';
    src: url('/assets/fonts/iransansweb.woff2') format('woff2'),
         url('/assets/fonts/iransansweb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --green-900: #063f22;
    --green-800: #0b5a30;
    --green-700: #0f6f3d;
    --green-600: #16824b;
    --green-100: #e9f7ef;
    --gold-600: #d7a63f;
    --text: #172033;
    --muted: #667085;
    --line: #e6ebf3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'IRANSansWeb', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #f7faf5, #eef7f1);
    color: var(--text);
}

.brand-bg-fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    width: min(360px, 45vw);
    height: min(360px, 45vw);
    background: url('https://saraeigroup.com/wp-content/uploads/2026/04/Asset-3.svg') no-repeat right bottom / contain;
    opacity: .16;
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; text-decoration: none; }

label {
    display: block;
    margin: 14px 0 7px;
    color: #344054;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #d8dee9;
    border-radius: 14px;
    padding: 0 13px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

input, select { height: 46px; }

textarea {
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
    line-height: 1.9;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgba(22, 130, 75, .1);
}

button, .btn-primary, .btn-light {
    height: 44px;
    border: 0;
    border-radius: 14px;
    padding: 0 17px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button, .btn-primary {
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 63, 34, .18);
}

.btn-light {
    background: #fff;
    color: var(--green-800);
    border: 1px solid #d8dee9;
    box-shadow: none;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(440px, 100%);
    background: rgba(255,255,255,.94);
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(230,235,243,.9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .1);
}

.login-brand {
    width: 100%;
    min-height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green-800), var(--green-900));
    margin-bottom: 18px;
}

.login-brand img {
    max-width: 190px;
    max-height: 58px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--green-900);
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.9;
}

.login-card button {
    width: 100%;
    margin-top: 18px;
}

.alert, .notice {
    padding: 12px 14px;
    border-radius: 15px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert, .notice.error {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
}

.notice.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 286px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, var(--green-800), var(--green-900));
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -10px 0 35px rgba(6, 63, 34, .2);
    min-height: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 15px;
}

.brand span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.menu {
    display: grid;
    gap: 8px;
}

.menu a {
    padding: 12px 13px;
    border-radius: 15px;
    color: rgba(255,255,255,.86);
}

.menu a.active, .menu a:hover {
    background: rgba(255, 255, 255, .13);
    color: #fff;
}

.menu a.active {
    box-shadow: inset 3px 0 0 var(--gold-600);
}

.menu a.disabled {
    opacity: .48;
    cursor: not-allowed;
}

.sidebar-note {
    margin-top: auto;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    padding: 14px;
}

.sidebar-note strong, .sidebar-note span { display: block; }

.sidebar-note span {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.8;
}

.logout-form button {
    width: 100%;
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.main {
    padding: 28px;
    overflow-x: hidden;
}

.hero-dashboard {
    min-height: 210px;
    border-radius: 30px;
    padding: 32px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    color: #fff;
    box-shadow: 0 22px 55px rgba(6, 63, 34, .16);
    overflow: hidden;
    position: relative;
}

.hero-dashboard::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 260px;
    height: 260px;
    background: url('https://saraeigroup.com/wp-content/uploads/2026/04/Asset-3.svg') no-repeat center / contain;
    opacity: .18;
}

.hero-dashboard > * {
    position: relative;
    z-index: 1;
}

.hero-dashboard img {
    max-width: 210px;
    max-height: 90px;
}

.hero-kicker {
    display: inline-flex;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 7px 13px;
    margin-bottom: 12px;
    color: #fff4d4;
    font-size: 13px;
}

.hero-dashboard h1 {
    margin: 0 0 10px;
    font-size: 31px;
}

.hero-dashboard p {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 2;
    max-width: 680px;
}

.topbar, .page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.topbar h1, .page-header h1 {
    margin: 0 0 6px;
    font-size: 25px;
    color: var(--green-900);
}

.topbar p, .page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.cards, .quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.card, .panel, .table-card, .form-card, .toolbar, .quick-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(230,235,243,.95);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .055);
}

.card span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.card strong {
    font-size: 28px;
    color: var(--green-800);
}

.quick-card strong {
    display: block;
    color: var(--green-900);
    font-size: 17px;
    margin-bottom: 8px;
}

.quick-card span {
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--green-900);
}

.panel p {
    margin: 0;
    color: #475467;
    line-height: 2;
}

.toolbar { margin-bottom: 16px; }

.search-form {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-toggle {
    display: none;
}

table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

th, td {
    text-align: right;
    padding: 14px 12px;
    border-bottom: 1px solid #edf1f7;
    vertical-align: middle;
}

th {
    font-size: 13px;
    color: var(--green-900);
    background: #f3f8f4;
}

td { font-size: 14px; }

td strong {
    display: block;
    margin-bottom: 4px;
}

td small {
    display: block;
    color: var(--muted);
    line-height: 1.7;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    color: var(--green-800);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
}

.badge.soft {
    background: #f2f4f7;
    color: #344054;
}

.badge.ok {
    background: #ecfdf3;
    color: #027a48;
}

.badge.warn {
    background: #fff7ed;
    color: #b54708;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions a {
    color: var(--green-800);
    font-weight: 800;
}

.actions form { margin: 0; }

.actions button {
    height: 34px;
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
    box-shadow: none;
    padding: 0 10px;
}

.crm-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.form-actions button { min-width: 160px; }

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
}

.order-items-box {
    margin: 18px 0;
    border: 1px solid #e6ebf3;
    border-radius: 18px;
    padding: 16px;
    background: #f8fafc;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.section-title h2 {
    margin: 0;
    font-size: 18px;
    color: var(--green-900);
}

.small-btn {
    height: 38px;
    font-size: 13px;
}

.order-item-row {
    display: grid;
    grid-template-columns: 2fr .7fr 1fr 80px;
    gap: 12px;
    align-items: end;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
}

.item-remove button {
    height: 46px;
    width: 100%;
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
    box-shadow: none;
}

.mini-cards .card strong { font-size: 22px; }

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 40px;
        padding: 0 12px;
        border: 1px solid rgba(31, 41, 55, .14);
        border-radius: 10px;
        background: #fff;
        color: var(--green-900);
        cursor: pointer;
        font-family: inherit;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(15, 23, 42, .45);
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1000;
        width: min(286px, 88vw);
        height: 100vh;
        overflow-y: auto;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform .25s ease;
    }

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

    .admin-topbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .cards, .quick-grid, .crm-form .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-dashboard {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-dashboard img { max-width: 170px; }

    .topbar, .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .main { padding: 18px; }

    .sidebar { padding: 18px; }

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

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

.settings-section {
    padding: 18px;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 16px;
}

.settings-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--green-900);
}

.help-text {
    margin: -4px 0 14px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.order-filter-form {
    grid-template-columns: 1fr 150px 150px 110px;
}

.jalali-datepicker {
    direction: ltr;
    text-align: center;
}

.pwt-datepicker {
    font-family: 'IRANSansWeb', Tahoma, Arial, sans-serif !important;
    border-radius: 18px !important;
    overflow: hidden;
}

.pwt-datepicker input,
.pwt-datepicker select,
.pwt-datepicker button {
    font-family: 'IRANSansWeb', Tahoma, Arial, sans-serif !important;
}

.animate__animated {
    animation-duration: .45s;
}

.card,
.panel,
.table-card,
.form-card,
.toolbar,
.quick-card,
.login-card,
.hero-dashboard {
    animation: fadeInUp .35s ease both;
}

@media (max-width: 980px) {
    .order-filter-form {
        grid-template-columns: 1fr;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-grid div {
    border: 1px solid #edf1f7;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
}

.info-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.info-grid strong {
    display: block;
    color: var(--green-900);
    overflow-wrap: anywhere;
}

.wc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.wc-actions form {
    margin: 0;
}

@media (max-width: 980px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .wc-actions {
        flex-direction: column;
    }

    .wc-actions button {
        width: 100%;
    }
}

.wc-actions button {
    min-width: 180px;
}

@media (max-width: 980px) {
    .wc-actions button {
        min-width: 100%;
    }
}

.loyalty-filter-form {
    grid-template-columns: 1fr 180px 110px;
}

.badge.level-vip {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.badge.level-gold {
    background: #fff7df;
    color: #946200;
    border: 1px solid #f6d365;
}

.badge.level-silver {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.badge.level-normal {
    background: #e9f7ef;
    color: #0b5a30;
    border: 1px solid #b7e4c7;
}

@media (max-width: 980px) {
    .loyalty-filter-form {
        grid-template-columns: 1fr;
    }
}

.report-filter-form {
    grid-template-columns: 160px 160px 120px 120px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.table-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--green-900);
}

@media (max-width: 980px) {
    .report-filter-form,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-form .btn-light {
        width: 100%;
    }
}

.badge.job-pending {
    background: #f2f4f7;
    color: #344054;
}

.badge.job-running {
    background: #eef4ff;
    color: #1d4ed8;
}

.badge.job-completed {
    background: #ecfdf3;
    color: #027a48;
}

.badge.job-failed,
.badge.job-cancelled {
    background: #fff1f2;
    color: #b42318;
}

.error-text {
    display: block;
    margin-top: 6px;
    color: #b42318;
}

.dashboard-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-grid table {
    min-width: 640px;
}

@media (max-width: 1100px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

.form-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.badge.role-admin {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.badge.role-sales {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.badge.role-support {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge.role-viewer {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

input[readonly] {
    background: #f8fafc;
    color: #667085;
    cursor: not-allowed;
}

.permission-note {
    padding: 12px 14px;
    border-radius: 15px;
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    margin-bottom: 16px;
    line-height: 1.8;
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 14px;
}

.activity-filter-form {
    grid-template-columns: 1fr 150px 150px 110px;
}

@media (max-width: 980px) {
    .activity-filter-form {
        grid-template-columns: 1fr;
    }
}

.login-security-note {
    display: block;
    color: #667085;
    font-size: 12px;
    line-height: 1.8;
    margin: -12px 0 18px;
}

.marketing-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.marketing-report-card {
    position: relative;
    display: block;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(230,235,243,.95);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .055);
    min-height: 190px;
    overflow: hidden;
    transition: .18s ease;
}

.marketing-report-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22,130,75,.28);
}

.marketing-report-card .report-number {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: var(--green-100);
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.marketing-report-card strong {
    display: block;
    color: var(--green-900);
    font-size: 17px;
    margin: 0 0 10px;
    padding-left: 42px;
    line-height: 1.8;
}

.marketing-report-card p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
    margin: 0 0 14px;
}

.marketing-report-card small {
    display: block;
    color: #475467;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px 10px;
    line-height: 1.7;
}

.metric-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.metric-chip {
    background: var(--green-100);
    color: var(--green-800);
    border: 1px solid #b7e4c7;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.small-strong {
    font-size: 16px !important;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .marketing-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .marketing-report-grid {
        grid-template-columns: 1fr;
    }
}

.marketing-report-form-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.form-card + .table-card {
    margin-top: 18px;
}

.campaign-filter-form {
    grid-template-columns: 1fr 160px 170px 110px;
}

.badge.campaign-status-draft,
.campaign-status-draft {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.badge.campaign-status-active,
.campaign-status-active {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.badge.campaign-status-paused,
.campaign-status-paused {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.badge.campaign-status-ended,
.campaign-status-ended {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

@media (max-width: 980px) {
    .campaign-filter-form {
        grid-template-columns: 1fr;
    }
}

.chart-bars {
    display: grid;
    gap: 12px;
}

.chart-row {
    display: grid;
    grid-template-columns: 150px 1fr 170px;
    gap: 12px;
    align-items: center;
}

.chart-label {
    font-size: 13px;
    color: var(--green-900);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-track {
    height: 16px;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    border-radius: 999px;
}

.chart-value {
    font-size: 12px;
    color: var(--muted);
    text-align: left;
    direction: rtl;
}

.job-filter-form {
    grid-template-columns: 170px 170px 110px 120px;
}

.job-actions {
    flex-wrap: wrap;
}

.job-actions button {
    white-space: nowrap;
}

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

@media (max-width: 980px) {
    .chart-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .chart-value {
        text-align: right;
    }

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

    .page-actions {
        width: 100%;
    }

    .page-actions a {
        width: 100%;
    }
}

.price-history-filter-form {
    grid-template-columns: 1fr 150px 150px 110px;
}

@media (max-width: 980px) {
    .price-history-filter-form {
        grid-template-columns: 1fr;
    }
}

.management-hero {
    min-height: 235px;
}

.kpi-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-cards .kpi-card strong {
    font-size: 24px;
}

.chart-card {
    min-height: 360px;
}

.vertical-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    height: 250px;
    padding-top: 20px;
}

.vertical-chart-item {
    height: 100%;
    display: grid;
    grid-template-rows: 32px 1fr 24px 18px;
    gap: 6px;
    align-items: end;
    text-align: center;
    min-width: 0;
}

.vertical-chart-value {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vertical-chart-bar-wrap {
    height: 100%;
    background: #eef2f6;
    border-radius: 999px 999px 12px 12px;
    display: flex;
    align-items: end;
    overflow: hidden;
    min-height: 120px;
}

.vertical-chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--green-600), var(--green-900));
    border-radius: 999px 999px 12px 12px;
    min-height: 5px;
}

.vertical-chart-label {
    font-size: 12px;
    color: var(--green-900);
    font-weight: 800;
}

.vertical-chart-item small {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-geo-chart .chart-row {
    grid-template-columns: 105px 1fr 145px;
}

.compact-table {
    min-width: 620px;
}

.compact-table th,
.compact-table td {
    padding: 11px 10px;
    font-size: 13px;
}

.dashboard-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notice a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

@media (max-width: 1180px) {
    .dashboard-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-geo-chart .chart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .vertical-chart {
        gap: 7px;
    }

    .vertical-chart-value {
        display: none;
    }

    .vertical-chart-item {
        grid-template-rows: 1fr 24px 18px;
    }

    .dashboard-quick {
        grid-template-columns: 1fr;
    }
}

.geo-filter-form {
    grid-template-columns: 150px 150px 190px 150px 120px 120px;
}

.geo-big-chart .chart-row {
    grid-template-columns: 150px 1fr 190px;
}

.geo-big-chart .chart-track {
    height: 20px;
}

@media (max-width: 1100px) {
    .geo-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .geo-big-chart .chart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .geo-filter-form {
        grid-template-columns: 1fr;
    }
}

.customer-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(22, 130, 75, .18), transparent 34%),
        linear-gradient(135deg, #f8fafc, #eef8f1);
    padding: 18px;
}

.customer-login-bg {
    position: fixed;
    inset: auto 0 0 auto;
    width: 330px;
    height: 330px;
    background: url('https://saraeigroup.com/wp-content/uploads/2026/04/Asset-3.svg') no-repeat bottom right / contain;
    opacity: .18;
    pointer-events: none;
}

.customer-login-card {
    position: relative;
    width: min(440px, 100%);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(230,235,243,.95);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 22px 55px rgba(15,23,42,.08);
}

.customer-login-card h1 {
    margin: 0 0 8px;
    color: var(--green-900);
    font-size: 26px;
}

.customer-login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.9;
}

.customer-alt-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--green-800);
    font-weight: 800;
}

.customer-panel {
    width: min(1180px, calc(100% - 28px));
    margin: 28px auto;
}

.customer-panel .hero-dashboard {
    align-items: center;
}

.customer-panel .hero-dashboard form {
    margin: 0;
}

.customer-panel .hero-dashboard button {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.32);
}

code {
    direction: ltr;
    display: inline-block;
    background: #f2f4f7;
    border-radius: 8px;
    padding: 2px 6px;
    color: #344054;
}

.customer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(230,235,243,.95);
    border-radius: 24px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 14px 35px rgba(15,23,42,.055);
}

.customer-topbar strong {
    display: block;
    color: var(--green-900);
    font-size: 20px;
    margin-bottom: 4px;
}

.customer-topbar span {
    color: var(--muted);
    font-size: 13px;
}

.customer-topbar nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.customer-topbar nav a,
.customer-dashboard-actions a {
    background: var(--green-100);
    color: var(--green-900);
    border-radius: 14px;
    padding: 10px 13px;
    font-weight: 800;
}

.customer-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.customer-product-card {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(230,235,243,.95);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 14px 35px rgba(15,23,42,.055);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    background: #f8fafc;
}

.customer-product-card strong {
    color: var(--green-900);
    line-height: 1.8;
}

.customer-product-card small {
    color: var(--muted);
}

.customer-product-price {
    color: var(--green-800);
    font-weight: 900;
    font-size: 17px;
}

.customer-product-stock {
    font-size: 13px;
    font-weight: 800;
}

.ok-text {
    color: #027a48;
}

.customer-product-card form {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
    margin-top: auto;
}

.customer-product-card input,
.cart-qty-input {
    min-height: 42px;
}

.customer-cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 14px 16px;
    margin-top: 16px;
    color: var(--green-900);
}

.checkout-summary {
    flex-direction: column;
    align-items: flex-start;
}

.customer-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-dashboard-actions form {
    margin: 0;
}

@media (max-width: 1180px) {
    .customer-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .customer-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-topbar nav a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .customer-product-grid {
        grid-template-columns: 1fr;
    }

    .customer-cart-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f2f4f7;
    border-radius: 16px;
    padding: 6px;
    margin: 0 0 18px;
}

.login-tabs a {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    color: #475467;
    font-weight: 800;
    font-size: 13px;
}

.login-tabs a.active {
    background: #fff;
    color: var(--green-900);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.login-alt-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--green-800);
    font-weight: 800;
}

.webhook-info-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr .8fr;
    gap: 12px;
    margin-bottom: 18px;
}

.webhook-info-grid div {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    padding: 12px;
    min-width: 0;
}

.webhook-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.webhook-info-grid code {
    max-width: 100%;
    overflow: auto;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .webhook-info-grid {
        grid-template-columns: 1fr;
    }
}

.system-update-filter-form {
    grid-template-columns: 1fr 170px 110px 120px;
}

.system-update-timeline {
    position: relative;
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.system-update-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
}

.system-update-marker {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    box-shadow: 0 0 0 6px var(--green-100);
    margin-top: 26px;
}

.system-update-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(230,235,243,.95);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(15,23,42,.055);
}

.system-update-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.system-update-head time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.system-update-card h2 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-size: 19px;
    line-height: 1.8;
}

.system-update-card p {
    color: #344054;
    line-height: 2;
    margin: 0 0 12px;
}

.system-update-files,
.system-update-notes {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    padding: 12px;
    margin-top: 12px;
}

.system-update-files strong,
.system-update-notes strong {
    display: block;
    color: var(--green-900);
    margin-bottom: 8px;
}

.system-update-files pre {
    margin: 0;
    white-space: pre-wrap;
    direction: ltr;
    text-align: left;
    color: #344054;
    font-size: 12px;
    line-height: 1.7;
}

.system-update-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.system-update-card footer form {
    margin: 0;
}

.badge.update-type-feature {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.badge.update-type-fix {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge.update-type-security {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
}

.badge.update-type-performance {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.badge.update-type-database,
.badge.update-type-ui,
.badge.update-type-system {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

@media (max-width: 980px) {
    .system-update-filter-form {
        grid-template-columns: 1fr;
    }

    .system-update-item {
        grid-template-columns: 1fr;
    }

    .system-update-marker {
        display: none;
    }
}

.form-card code,
.panel code {
    direction: ltr;
    text-align: left;
}

@media (max-width: 700px) {
    .page-header form {
        width: 100%;
    }

    .page-header form button {
        width: 100%;
    }
}

.support-ticket-filter {
    grid-template-columns: 1fr 150px 150px 110px;
}

.ticket-thread {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.ticket-message {
    border: 1px solid #edf1f7;
    border-radius: 20px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.ticket-message.from-customer {
    border-right: 5px solid var(--green-600);
}

.ticket-message.from-admin {
    border-right: 5px solid #1d4ed8;
    background: #f8fbff;
}

.ticket-message header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ticket-message header strong {
    color: var(--green-900);
}

.ticket-message header time {
    color: var(--muted);
    font-size: 12px;
}

.ticket-message p {
    margin: 0;
    line-height: 2;
    color: #344054;
}

.ticket-status-open {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.ticket-status-pending {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ticket-status-answered {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.ticket-status-closed {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.ticket-priority-low {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.ticket-priority-normal {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ticket-priority-high {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
}

@media (max-width: 900px) {
    .support-ticket-filter {
        grid-template-columns: 1fr;
    }
}

.followup-filter-form {
    grid-template-columns: 1fr 150px 150px 190px 110px;
}

.followup-overdue-row {
    background: #fff7ed;
}

.followup-note-row td {
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    line-height: 2;
}

.followup-actions {
    flex-wrap: wrap;
}

.followup-actions form {
    margin: 0;
}

.followup-status-pending {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.followup-status-done {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.followup-status-cancelled {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.followup-priority-low {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.followup-priority-normal {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.followup-priority-high {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
}

@media (max-width: 1100px) {
    .followup-filter-form {
        grid-template-columns: 1fr;
    }
}

.select2-container {
    width: 100% !important;
    direction: rtl;
    font-family: inherit;
}

.select2-container--default .select2-selection--single {
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #344054;
    line-height: 46px;
    padding-right: 14px;
    padding-left: 34px;
    text-align: right;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    left: 8px;
    right: auto;
}

.select2-dropdown {
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    min-height: 40px;
    padding: 8px 10px;
    direction: rtl;
    text-align: right;
}

.select2-results__option {
    padding: 10px 12px;
    line-height: 1.8;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--green-700);
    color: #fff;
}

/* Part 39 - Followup form and Select2 UI unification */
.followup-form-card {
    padding: 28px 20px 26px;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid #e6ebf3;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
}

.followup-crm-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
    align-items: start;
}

.followup-crm-form label {
    display: block;
    margin: 0 0 9px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
}

.followup-crm-form input,
.followup-crm-form select,
.followup-crm-form textarea,
.followup-crm-form .select2-container--default .select2-selection--single {
    min-height: 46px;
    border: 1px solid #d5deea;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.followup-crm-form input,
.followup-crm-form select,
.followup-crm-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
}

.followup-crm-form textarea {
    min-height: 135px;
    line-height: 2;
    resize: vertical;
}

.followup-crm-form input:focus,
.followup-crm-form select:focus,
.followup-crm-form textarea:focus,
.followup-crm-form .select2-container--default.select2-container--focus .select2-selection--single,
.followup-crm-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #157347;
    box-shadow: 0 0 0 4px rgba(21, 115, 71, .10);
    outline: none;
}

.followup-crm-form input::placeholder,
.followup-crm-form textarea::placeholder {
    color: #98a2b3;
}

.followup-crm-form input[type="time"] {
    direction: ltr;
    text-align: right;
}

.followup-crm-form input[type="number"] {
    direction: ltr;
    text-align: right;
}

.followup-crm-form .select2-container {
    width: 100% !important;
    direction: rtl;
    font-family: inherit;
}

.followup-crm-form .select2-container--default .select2-selection--single {
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0;
}

.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding-right: 14px;
    padding-left: 42px;
    color: #111827;
    text-align: right;
    font-size: 13px;
}

.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #98a2b3;
}

.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    width: 34px;
    left: 7px;
    right: auto;
    top: 0;
}

.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__clear {
    float: left;
    margin-left: 30px;
    margin-right: 0;
    color: #667085;
    font-size: 18px;
}

.select2-dropdown {
    border: 1px solid #d5deea !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    overflow: hidden;
    direction: rtl;
    z-index: 9999;
}

.select2-search--dropdown {
    padding: 10px;
    background: #f8fafc;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 42px;
    border: 1px solid #d5deea;
    border-radius: 12px;
    padding: 8px 12px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #157347;
    box-shadow: 0 0 0 4px rgba(21, 115, 71, .10);
}

.select2-results__option {
    padding: 10px 13px;
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

.select2-container--default .select2-results__option--selected {
    background: #eef8f2;
    color: #0f5f36;
    font-weight: 800;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #157347;
    color: #fff;
}

.followup-crm-form .form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.followup-crm-form .form-actions button {
    min-height: 44px;
    border-radius: 14px;
    padding: 10px 20px;
}

@media (max-width: 900px) {
    .followup-crm-form .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .followup-form-card {
        padding: 20px 14px;
    }
}

/* Part 40 - Select2 clear button fix */
.select2-container--default .select2-selection--single .select2-selection__clear,
.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    left: 34px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f2f4f7 !important;
    color: #667085 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 3 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover,
.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    background: #fee4e2 !important;
    color: #b42318 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear span,
.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__clear span {
    display: block !important;
    line-height: 18px !important;
    margin-top: -1px !important;
}

.followup-crm-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 68px !important;
}

.select2-container--default .select2-selection--single {
    position: relative !important;
}

/* Part 41 - Dashboard followups */
.followup-dashboard-cards {
    margin-top: 18px;
}

.followup-kpi {
    border-right: 4px solid var(--green-600);
}

.followup-kpi.danger {
    border-right-color: #b42318;
}

.followup-kpi.action {
    border-right-color: #1d4ed8;
}

.followup-kpi.action a {
    color: var(--green-800);
    font-weight: 900;
    text-decoration: underline;
}

.notice.warn {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.notice.warn a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

/* Part 41 - Dashboard followups */
.followup-dashboard-cards {
    margin-top: 18px;
}

.followup-kpi {
    border-right: 4px solid var(--green-600);
}

.followup-kpi.danger {
    border-right-color: #b42318;
}

.followup-kpi.action {
    border-right-color: #1d4ed8;
}

.followup-kpi.action a {
    color: var(--green-800);
    font-weight: 900;
    text-decoration: underline;
}

.notice.warn {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.notice.warn a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

/* Part 42 - Notifications */
.notification-filter-form {
    grid-template-columns: 180px 110px 120px;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.notification-item.unread {
    border-color: #abefc6;
    background: #fbfffd;
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #eef8f2;
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.notification-item.unread .notification-icon {
    background: #fff7ed;
    color: #b54708;
}

.notification-body header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.notification-body header strong {
    color: var(--green-900);
}

.notification-body header time {
    color: var(--muted);
    font-size: 12px;
}

.notification-body p {
    margin: 0 0 12px;
    color: #344054;
    line-height: 2;
}

.notification-body footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-body footer form {
    margin: 0;
}

.notification-body footer a {
    color: var(--green-800);
    font-weight: 900;
}

@media (max-width: 700px) {
    .notification-filter-form {
        grid-template-columns: 1fr;
    }

    .notification-item {
        grid-template-columns: 1fr;
    }
}

/* Part 42 - Notifications */
.notification-filter-form {
    grid-template-columns: 180px 110px 120px;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.notification-item.unread {
    border-color: #abefc6;
    background: #fbfffd;
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #eef8f2;
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.notification-item.unread .notification-icon {
    background: #fff7ed;
    color: #b54708;
}

.notification-body header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.notification-body header strong {
    color: var(--green-900);
}

.notification-body header time {
    color: var(--muted);
    font-size: 12px;
}

.notification-body p {
    margin: 0 0 12px;
    color: #344054;
    line-height: 2;
}

.notification-body footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-body footer form {
    margin: 0;
}

.notification-body footer a {
    color: var(--green-800);
    font-weight: 900;
}

@media (max-width: 700px) {
    .notification-filter-form {
        grid-template-columns: 1fr;
    }

    .notification-item {
        grid-template-columns: 1fr;
    }
}

/* Part 43 - Notification unread badge */
.menu-notification-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.notification-dashboard-notice {
    background: #eef8f2;
    color: var(--green-900);
    border: 1px solid #abefc6;
}

.notification-dashboard-notice a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

/* Part 45 - Admin topbar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 58px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid rgba(230, 235, 243, .95);
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-topbar-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.admin-topbar-title span {
    color: var(--green-900);
    font-size: 14px;
    font-weight: 900;
}

.admin-topbar-title small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-topbar-btn,
.admin-topbar-logout button {
    min-height: 38px;
    border-radius: 13px;
    padding: 8px 12px;
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.admin-topbar-btn:hover,
.admin-topbar-btn.active {
    background: #eef8f2;
    border-color: #abefc6;
    color: var(--green-900);
}

.admin-topbar-btn b {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.admin-topbar-logout {
    margin: 0;
}

.admin-topbar-logout button {
    cursor: pointer;
    background: #fff1f2;
    border-color: #ffd5d8;
    color: #b42318;
}

.admin-topbar-logout button:hover {
    background: #fee4e2;
    color: #912018;
}

.menu-notification-badge {
    display: none !important;
}

@media (max-width: 760px) {
    .admin-topbar {
        position: relative;
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 14px;
    }

    .admin-topbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admin-topbar-btn,
    .admin-topbar-logout button {
        width: 100%;
        justify-content: center;
    }
}

/* Part 48 - Login form spacing fix */
.login-card {
    overflow: visible;
}

.login-card .crm-form {
    display: grid;
    gap: 12px;
}

.login-card .form-actions {
    margin-top: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.login-card .form-actions button {
    width: 100%;
    min-height: 46px;
}

.login-security-note {
    display: block;
    clear: both;
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding-top: 8px;
    color: #667085;
    line-height: 1.9;
    text-align: center;
}

.login-tabs {
    margin-bottom: 18px;
}

@media (max-width: 520px) {
    .login-card {
        padding-bottom: 24px;
    }
}

/* Part 49 - Customer club */
.club-kpi-cards .card {
    border-right: 4px solid var(--green-600);
}

.club-level-card {
    background: linear-gradient(135deg, #ffffff, #eef8f2);
}

.club-next-reward {
    background: #eef8f2;
    color: var(--green-900);
    border: 1px solid #abefc6;
}

.club-reward-list {
    display: grid;
    gap: 12px;
}

.club-reward-card {
    border: 1px solid #edf1f7;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.club-reward-card strong {
    display: block;
    color: var(--green-900);
    font-size: 15px;
    margin-bottom: 7px;
}

.club-reward-card p {
    margin: 0 0 12px;
    color: #667085;
    line-height: 1.9;
    font-size: 13px;
}

.club-reward-card div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.club-reward-card code {
    direction: ltr;
    background: #f2f4f7;
    color: #344054;
    border-radius: 10px;
    padding: 5px 8px;
    font-weight: 900;
}

.customer-address-box {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 16px;
}

.customer-address-box strong {
    display: block;
    color: var(--green-900);
    font-size: 16px;
    margin-bottom: 4px;
}

.customer-address-box span {
    display: block;
    color: #667085;
    margin-bottom: 8px;
    direction: ltr;
    text-align: right;
}

.customer-address-box p {
    margin: 0;
    color: #344054;
    line-height: 2;
}

@media (max-width: 760px) {
    .club-reward-card {
        padding: 12px;
    }
}

/* Part 50 - WooCommerce product sync */
.sync-state-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sync-state-grid div {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    padding: 12px;
}

.sync-state-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.sync-state-grid strong {
    color: var(--green-900);
    font-size: 14px;
}

@media (max-width: 900px) {
    .sync-state-grid {
        grid-template-columns: 1fr;
    }
}

/* Part 52 - Pending WooCommerce orders */
.pending-order-filter {
    grid-template-columns: 180px 110px 120px;
}

.pending-order-actions {
    flex-wrap: wrap;
}

.pending-order-actions form {
    margin: 0;
}

.pending-status-pending {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.pending-status-failed {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #ffd5d8;
}

.pending-status-processing {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pending-status-processed {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.pending-status-cancelled {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.table-card details summary {
    cursor: pointer;
    color: var(--green-800);
    font-weight: 900;
}

.table-card details pre {
    white-space: pre-wrap;
    direction: ltr;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 10px;
    max-width: 420px;
    overflow: auto;
    font-size: 12px;
}

@media (max-width: 760px) {
    .pending-order-filter {
        grid-template-columns: 1fr;
    }
}

/* Part 53 - Sync health dashboard */
.sync-health-card {
    margin-bottom: 18px;
}

.sync-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sync-health-grid article {
    border: 1px solid #edf1f7;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
}

.sync-health-grid article.warn {
    background: #fff7ed;
    border-color: #fed7aa;
}

.sync-health-grid article.danger {
    background: #fff1f2;
    border-color: #ffd5d8;
}

.sync-health-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.sync-health-grid strong {
    display: block;
    color: var(--green-900);
    font-size: 18px;
    margin-bottom: 4px;
}

.sync-health-grid small,
.sync-health-grid small a {
    color: #667085;
    font-weight: 800;
}

.sync-health-error {
    margin-top: 12px;
}

@media (max-width: 980px) {
    .sync-health-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .sync-health-grid {
        grid-template-columns: 1fr;
    }
}

/* Part 54 - Customer profile and address */
.customer-profile-card {
    border-right: 4px solid var(--green-600);
}

.customer-profile-form small {
    display: block;
    margin-top: 6px;
    color: #667085;
    line-height: 1.8;
    font-size: 12px;
}

.customer-profile-form input:disabled {
    background: #f2f4f7;
    color: #667085;
    cursor: not-allowed;
}

.customer-current-info {
    margin-top: 16px;
}

/* Part 55 - Customer address book */
.customer-address-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.customer-address-card {
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.customer-address-card.default {
    border-color: #abefc6;
    background: #fbfffd;
}

.customer-address-card header,
.customer-address-card footer,
.customer-address-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.customer-address-card header strong {
    color: var(--green-900);
    font-size: 15px;
}

.customer-address-card header div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-address-card p {
    margin: 12px 0;
    color: #344054;
    line-height: 2;
}

.customer-address-card footer {
    color: #667085;
    font-size: 13px;
    justify-content: flex-start;
}

.customer-address-actions {
    margin-top: 12px;
    justify-content: flex-start;
}

.customer-address-actions form {
    margin: 0;
}

.customer-address-form-card {
    border-right: 4px solid var(--green-600);
}

.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.checkbox-line input {
    width: auto !important;
    min-height: auto !important;
}

/* Part 56 - Checkout address selector */
.checkout-address-selector {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #abefc6;
    border-radius: 20px;
    background: #fbfffd;
}

.checkout-address-selector .table-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--green-900);
}

.checkout-address-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: #1f2937;
}

.checkout-address-selector select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d5deea;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    padding: 10px 14px;
}

.checkout-address-help {
    margin: 10px 0 0;
    color: #667085;
    line-height: 1.9;
    font-size: 13px;
}

.checkout-address-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .checkout-address-selector {
        padding: 12px;
    }
}

/* Part 56 - Checkout address selector */
.checkout-address-selector {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #abefc6;
    border-radius: 20px;
    background: #fbfffd;
}

.checkout-address-selector .table-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--green-900);
}

.checkout-address-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: #1f2937;
}

.checkout-address-selector select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d5deea;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    padding: 10px 14px;
}

.checkout-address-help {
    margin: 10px 0 0;
    color: #667085;
    line-height: 1.9;
    font-size: 13px;
}

.checkout-address-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .checkout-address-selector {
        padding: 12px;
    }
}

/* Part 57 - Customer 360 profile */
.customer-360-header .page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-360-kpis .card {
    border-right: 4px solid var(--green-600);
}

.customer-360-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.customer-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.customer-info-box div {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    padding: 12px;
}

.customer-info-box div.wide {
    grid-column: 1 / -1;
}

.customer-info-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.customer-info-box strong {
    color: var(--green-900);
}

.customer-info-box p {
    margin: 0;
    color: #344054;
    line-height: 2;
}

.admin-customer-address-list {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .customer-360-grid,
    .customer-info-box {
        grid-template-columns: 1fr;
    }
}

/* Part 58 - Followup preselected customer */
.followup-selected-customer {
    background: #eef8f2;
    color: var(--green-900);
    border: 1px solid #abefc6;
}

.followup-selected-customer strong {
    font-weight: 900;
}

.followup-selected-customer a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
    margin-right: 8px;
}

/* Part 59 - Admin customer address management */
.admin-address-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.admin-address-actions form {
    margin: 0;
}

.admin-add-customer-address-card {
    margin-bottom: 16px;
    border-right: 4px solid var(--green-600);
}

/* Part 61 - Customer club admin */
.club-admin-kpis .card {
    border-right: 4px solid var(--green-600);
}

/* SARAEI_NAVIGATION_V2_START */
/* Structured sidebar navigation: operational groups, role-aware visibility, responsive scrolling. */
.sidebar {
    min-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.32) transparent;
}

.menu.menu-v2 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow: visible;
    padding-left: 4px;
    padding-bottom: 16px;
    scroll-padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.32) transparent;
}

.menu.menu-v2::-webkit-scrollbar {
    width: 6px;
}

.menu.menu-v2::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.28);
    border-radius: 999px;
}

.menu.menu-v2 .menu-dashboard,
.menu.menu-v2 .menu-group__link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    line-height: 1.55;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.menu.menu-v2 .menu-dashboard {
    justify-content: space-between;
    font-weight: 700;
    background: rgba(255,255,255,.065);
}

.menu.menu-v2 .menu-dashboard:hover,
.menu.menu-v2 .menu-group__link:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(-2px);
}

.menu.menu-v2 .menu-dashboard.active,
.menu.menu-v2 .menu-group__link.active {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.16);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--gold-600);
}

.menu-group {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    overflow: visible;
}

.menu-group[open] {
    background: rgba(255,255,255,.055);
}

.menu-group.menu-group--active {
    border-color: rgba(255, 207, 0, .28);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 0 0 1px rgba(255, 207, 0, .08);
}

.menu-group.menu-group--active .menu-group__summary {
    color: #fff;
}

.menu-group.menu-group--active[open] {
    background: rgba(255,255,255,.08);
}

.menu-group__summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 37px 10px 13px;
    cursor: pointer;
    list-style: none;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    user-select: none;
}

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

.menu-group__summary::after {
    content: '⌄';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-56%);
    color: rgba(255,255,255,.65);
    font-size: 16px;
    font-weight: 400;
    transition: transform .18s ease;
}

.menu-group[open] .menu-group__summary::after {
    transform: translateY(-44%) rotate(180deg);
}

.menu-group__summary:hover {
    color: #fff;
    background: rgba(255,255,255,.055);
}

.menu-group__links {
    display: grid;
    gap: 3px;
    padding: 0 7px 7px;
    overflow: visible;
}

.menu.menu-v2 .menu-group__link {
    min-height: 38px;
    padding: 9px 13px 9px 12px;
    font-size: 13px;
}

.menu.menu-v2 .menu-group__link::before {
    content: '';
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    margin-left: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.42);
}

.menu.menu-v2 .menu-group__link.active::before {
    background: var(--gold-600);
    box-shadow: 0 0 0 4px rgba(255, 207, 0, .11);
}

.sidebar-note {
    margin-top: 0;
    flex: 0 0 auto;
}

.sidebar-footer {
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.logout-form {
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .sidebar {
        height: 100vh;
        min-height: 100vh;
        position: fixed;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .menu.menu-v2 {
        max-height: none;
        overflow: visible;
        padding-left: 0;
        padding-bottom: 20px;
    }

    .menu-group__summary {
        min-height: 42px;
    }
}
/* SARAEI_NAVIGATION_V2_END */


/* GLOBAL SEARCH V1 */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.admin-global-search{display:flex;align-items:center;gap:7px;min-width:300px}
.admin-global-search input{min-width:0;width:230px;padding:9px 12px;border:1px solid rgba(31,41,55,.16);border-radius:10px;background:#fff;color:#1f2937;outline:none}
.admin-global-search input:focus{border-color:#b08a44;box-shadow:0 0 0 3px rgba(176,138,68,.13)}
.admin-global-search button{border:0;border-radius:10px;padding:9px 12px;cursor:pointer;background:#1f2937;color:#fff;white-space:nowrap}
.global-search-panel{padding:18px;background:#fff;border:1px solid rgba(31,41,55,.1);border-radius:16px;margin-bottom:18px}
.global-search-page-form{display:flex;gap:10px;align-items:center}
.global-search-page-form input{width:100%;padding:13px 14px;border-radius:12px;border:1px solid rgba(31,41,55,.16);outline:none;font-size:15px}
.global-search-page-form input:focus{border-color:#b08a44;box-shadow:0 0 0 3px rgba(176,138,68,.13)}
.global-search-page-form button{border:0;border-radius:12px;padding:13px 20px;background:#1f2937;color:#fff;cursor:pointer;white-space:nowrap}
.global-search-hint{margin:10px 0 0;color:#6b7280;font-size:12px}
.global-search-hint kbd{padding:2px 6px;border:1px solid #d1d5db;border-bottom-width:2px;border-radius:5px;background:#f9fafb}
.global-search-results{display:grid;gap:16px}
.global-search-group{background:#fff;border:1px solid rgba(31,41,55,.1);border-radius:16px;overflow:hidden}
.global-search-group__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid rgba(31,41,55,.08);background:#fcfaf6}
.global-search-group__header h2{margin:0;font-size:16px;color:#1f2937}
.global-search-group__header span{font-size:12px;color:#6b7280}
.global-search-group__items{display:grid}
.global-search-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid rgba(31,41,55,.07);text-decoration:none;color:inherit}
.global-search-result:last-child{border-bottom:0}
.global-search-result:hover{background:#fffbf2}
.global-search-result__main{display:grid;gap:4px;min-width:0}
.global-search-result__main strong{color:#1f2937}
.global-search-result__main span,.global-search-result small{color:#6b7280;font-size:12px}
.global-search-result small{text-align:left;white-space:nowrap}
.global-search-quick-links{background:#fff;border:1px solid rgba(31,41,55,.1);border-radius:16px;padding:16px}
.global-search-quick-links h2{margin:0 0 14px;font-size:17px;color:#1f2937}
.global-search-quick-links__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.global-search-quick-links__grid a{display:grid;gap:5px;padding:14px;border:1px solid rgba(31,41,55,.09);border-radius:12px;text-decoration:none;color:#1f2937;background:#fff}
.global-search-quick-links__grid a:hover{border-color:#b08a44;background:#fffbf2}
.global-search-quick-links__grid span{color:#6b7280;font-size:12px;line-height:1.7}
.empty-state-card{display:grid;gap:8px;padding:26px;background:#fff;border:1px dashed rgba(31,41,55,.2);border-radius:16px;color:#4b5563}
.empty-state-card span{font-size:13px;color:#6b7280}
@media (max-width:900px){.admin-global-search-wrap{min-width:0;flex:1;position:relative}.admin-global-search{min-width:0}.admin-global-search input{width:100%}.admin-topbar{flex-wrap:wrap}.admin-topbar-actions{margin-right:auto}.global-search-result{align-items:flex-start;flex-direction:column;gap:6px}.global-search-result small{text-align:right;white-space:normal}.global-search-page-form{align-items:stretch;flex-direction:column}.global-search-page-form button{width:100%}}

/* ADDRESS_MAP_PICKER_V1 */
.address-map-picker{margin-top:18px;padding-top:18px;border-top:1px solid rgba(31,41,55,.1)}
.address-map-picker__header{margin-bottom:10px}
.address-map-picker__optional{color:#6b7280;font-size:12px;font-weight:400}
.address-map-picker__hint{margin:6px 0 0;color:#6b7280;font-size:12px;line-height:1.7}
.address-map-picker__map{height:280px;width:100%;max-width:100%;border-radius:14px;border:1px solid rgba(31,41,55,.14);overflow:hidden;z-index:1}
.address-map-picker__coords{margin-top:12px}
.address-map-picker__attribution{margin:8px 0 0;color:#6b7280;font-size:11px}
.address-map-picker__attribution a{color:#7c5b20;text-decoration:none}
@media(max-width:640px){.address-map-picker__map{height:220px}}

/* GLOBAL_SEARCH_AUTOCOMPLETE_V1 */
.admin-global-search-wrap{position:relative;min-width:300px}
.admin-global-search-suggest{position:absolute;top:calc(100% + 6px);right:0;left:0;z-index:1200;max-height:min(420px,60vh);overflow:auto;background:#fff;border:1px solid rgba(31,41,55,.12);border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.14)}
.admin-global-search-suggest__group{padding:8px 0;border-bottom:1px solid rgba(31,41,55,.07)}
.admin-global-search-suggest__group:last-child{border-bottom:0}
.admin-global-search-suggest__label{padding:6px 14px 4px;font-size:11px;font-weight:800;color:#7c5b20}
.admin-global-search-suggest__item{display:grid;gap:2px;padding:10px 14px;text-decoration:none;color:#1f2937;border-right:3px solid transparent}
.admin-global-search-suggest__item:hover,.admin-global-search-suggest__item.is-active{background:#fffbf2;border-right-color:#b08a44}
.admin-global-search-suggest__item strong{font-size:13px}
.admin-global-search-suggest__item span{font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-global-search-suggest__empty,.admin-global-search-suggest__loading{padding:14px;color:#6b7280;font-size:13px;text-align:center}

/* CUSTOMER REGIONS V1 */
.region-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px}
.region-card{background:#fff;border:1px solid rgba(31,41,55,.11);border-radius:16px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.035)}
.region-card.is-inactive{opacity:.68;background:#fafafa}
.region-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.region-card__header h3{margin:0 0 5px;font-size:17px;color:#1f2937}
.region-card__header small,.region-card__description,.form-help,.muted{color:#6b7280;font-size:12px;line-height:1.85}
.region-card__description{margin:12px 0}
.region-card__stats{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.region-card__stats span{padding:6px 9px;border-radius:999px;background:#f7f4ed;color:#4b5563;font-size:12px}
.region-card__stats strong{color:#1f2937}
.region-card__details{border-top:1px solid rgba(31,41,55,.09);padding-top:12px}
.region-card__details summary{cursor:pointer;font-weight:800;color:#7c5b20;margin-bottom:12px}
.region-card__details h4{margin:18px 0 10px;color:#1f2937;font-size:14px}
.checkbox-row{display:flex;align-items:center;gap:8px;min-height:42px}
.checkbox-row input{width:auto}
@media(max-width:640px){.region-cards{grid-template-columns:1fr}.region-card{padding:13px}.region-card__header{align-items:flex-start}}

/* ADMIN_UIUX_JALALI_EDITOR_V16 */
.sidebar .brand {
    flex: 0 0 auto;
}

.sidebar .menu.menu-v2 {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.admin-ticket-thread .ticket-message-body p {
    margin: 0 0 8px;
}

.admin-ticket-thread .ticket-message-body p:last-child {
    margin-bottom: 0;
}

.system-update-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.system-update-meta {
    font-size: 11px;
    font-weight: 700;
}

.system-update-key {
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.system-update-secondary-title {
    margin: -4px 0 10px;
    color: #667085;
    font-size: 13px;
    line-height: 1.8;
    direction: ltr;
    text-align: left;
}

.system-update-description {
    color: #344054;
    line-height: 2;
    margin: 0 0 12px;
}

.system-update-description--muted {
    color: #667085;
    font-size: 13px;
    direction: ltr;
    text-align: left;
}

.system-update-files-panel,
.system-update-notes-panel {
    margin-top: 12px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
}

.system-update-files-panel summary,
.system-update-notes-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    list-style: none;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 800;
}

.system-update-files-panel summary::-webkit-details-marker,
.system-update-notes-panel summary::-webkit-details-marker {
    display: none;
}

.system-update-files-panel summary b,
.system-update-notes-panel summary b {
    font-size: 12px;
    color: #667085;
}

.system-update-file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
    max-width: 100%;
}

.system-update-file-chip {
    display: inline-block;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
    font-size: 11px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-update-notes-body {
    padding: 0 12px 12px;
    color: #475467;
    font-size: 13px;
    line-height: 1.9;
}

.jalali-datepicker,
.jalali-date {
    direction: ltr;
    text-align: center;
    min-width: 0;
    max-width: 100%;
}

.pwt-datepicker {
    max-width: calc(100vw - 24px);
}

.filter-card,
.filter-form,
.search-form,
.crm-form .form-grid {
    min-width: 0;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-height: 720px) {
    .sidebar .menu.menu-v2 {
        max-height: none;
    }

    .sidebar-footer {
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, rgba(6, 63, 34, 0), rgba(6, 63, 34, .92) 24%);
        padding-bottom: 4px;
    }
}

@media (max-width: 980px) {
    .sidebar-footer {
        padding-bottom: 8px;
    }
}

