
/* ==========================================
   شهر کافی نت - فایل CSS مرکزی پروژه
   نسخه یکپارچه و اصلاح‌شده
   ========================================== */


/* ==========================================
   1. رنگ‌ها و تنظیمات اصلی
   ========================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --navy: #172554;

    --background: #f3f5f9;
    --surface: #ffffff;

    --text: #263445;
    --muted: #64748b;

    --border: #e2e8f0;

    --success: #15803d;
    --danger: #dc2626;

    --radius: 10px;
    --radius-large: 16px;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* رنگ‌های قالب مشتری */
    --sky: #B9D9F5;
    --sky-light: #EAF4FF;
    --blue: #8CBCEB;
    --customer-navy: #183153;
    --customer-text: #263B55;
    --customer-muted: #8192A8;
    --customer-border: #E3EDF8;
    --customer-background: #F5F9FF;
    --white: #FFFFFF;
}


/* ==========================================
   2. تنظیمات پایه
   ========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}


/* تنظیمات اختصاصی قالب مشتری */

.layout,
.layout * {
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

.layout * {
    margin: 0;
    padding: 0;
}

.layout {
    display: flex;
    min-height: 100vh;
    background: var(--customer-background);
    color: var(--customer-text);
    line-height: 1.8;
}

.layout a {
    text-decoration: none;
}


/* ==========================================
   3. قالب مشتری - منوی کناری
   ========================================== */

.sidebar {
    width: 255px;
    min-height: 100vh;
    flex-shrink: 0;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #DCEEFF, #C9E2FA);
    border-left: 1px solid #C8DDF2;
    box-shadow: 4px 0 22px rgba(24,49,83,.07);
}

.brand {
    text-align: center;
    padding: 5px 8px 8px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 14px;
}

.brand-logo {
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand h2 {
    font-size: 17px;
}

.brand p {
    font-size: 10px;
    margin-top: 2px;
}

.menu-title {
    color: #6482A1;
    font-size: 11px;
    font-weight: 800;
    padding: 0 10px 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(70,120,170,.2);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 11px;
    margin: 0;
    color: #183153;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 13px;
    background: rgba(255,255,255,.42);
    transition: .2s;
}

.nav-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 25px;
    font-weight: 900;
    color: #286AA8;
}

.nav-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.menu a:hover {
    background: white;
    transform: translateX(-3px);
    border-color: #B7D6F5;
}

.menu a.active {
    background: linear-gradient(110deg, #78B4EC, #A9D1F5);
    color: #153554;
    border-color: #8DBFEF;
    box-shadow: 0 5px 14px rgba(70,130,190,.17);
    font-weight: 900;
}

.menu a.active .nav-icon {
    color: #183153;
}


/* ==========================================
   4. خروج از حساب و تصویر منوی کناری
   ========================================== */

.logout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 9px 13px;
    margin-top: 25px;
    border-radius: 13px;
    color: #C94D5A;
    background: rgba(255,255,255,.55);
    border: 1px solid #F0D0D3;
    font-size: 12px;
    font-weight: 800;
}

.logout .nav-icon {
    color: #D65360;
}

.logout:hover {
    background: #FFF0F1;
}

.sidebar-illustration {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(145deg, #EAF4FF, #BBD9F5);
    border: 1px solid rgba(255,255,255,.9);
    overflow: hidden;
    text-align: center;
}

.sidebar-illustration img {
    width: 100%;
    max-width: 190px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: auto;
}


/* ==========================================
   5. هدر و محتوای اصلی مشتری
   ========================================== */

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    min-height: 88px;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 38px;
    gap: 12px;
    border-bottom: 1px solid var(--customer-border);
    direction: rtl;
}

.profile {
    align-self: center;
    margin: 0 12px;
    flex-shrink: 0;
}

.content {
    width: 100%;
    max-width: 1350px;
    min-width: 0;
    margin: auto;
    padding: 0 35px 35px;
}


/* ==========================================
   6. بنر خوشامدگویی
   ========================================== */

.welcome {
    width: 100%;
    margin: -70px 0 -100px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    transform: none;
    aspect-ratio: auto;
}

.welcome img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border: none;
    border-radius: 0;
    transform: none;
}


/* ==========================================
   7. کارت‌های آماری داشبورد مشتری
   ========================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card-link {
    display: flex;
    min-width: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-card-link:focus-visible {
    outline: 3px solid #8CBCEB;
    outline-offset: 4px;
    border-radius: 18px;
}

.stat-card {
    width: 100%;
    min-width: 0;
    min-height: 210px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border-radius: 18px;
    border: 1px solid var(--customer-border);
    box-shadow: 0 5px 18px rgba(22,40,70,.035);
    transition: .25s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(22,40,70,.08);
}

.stat-card-total {
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.25);
}

.stat-card-active {
    background: rgba(254, 243, 199, 0.65);
    border-color: rgba(245, 158, 11, 0.35);
}

.stat-card-delivered {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
}

.stat-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--blue);
}

.stat-card-total::before {
    background: #6366F1;
}

.stat-card-active::before {
    background: #D97706;
}

.stat-card-delivered::before {
    background: #15803D;
}

.stat-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 14px;
}

.stat-card-total .stat-card-icon {
    background: #E0E7FF;
}

.stat-card-active .stat-card-icon {
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(217, 119, 6, 0.30);
}

.stat-card-delivered .stat-card-icon {
    background: rgba(22, 163, 74, 0.22);
    border: 1px solid rgba(21, 128, 61, 0.30);
}

.stat-card p {
    color: var(--customer-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.stat-card h2 {
    font-size: 31px;
    color: var(--customer-navy);
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-card-active h2 {
    color: #92400E;
}

.stat-card-delivered h2 {
    color: #15803D;
}

.stat-card-total h2 {
    color: #4F46E5;
}

.stat-card small {
    font-size: 11px;
    margin-top: auto;
    font-weight: 800;
}

.stat-card-active small {
    color: #92400E;
}

.stat-card-delivered small {
    color: #15803D;
}

.stat-card-total small {
    color: #4F46E5;
}


/* ==========================================
   رنگ‌بندی اختصاصی شش کارت مشتری
   هماهنگ دقیق با پنل مدیریت
   ========================================== */

.layout .stats .customer-card-total,
.layout .stats .customer-card-waiting-approval,
.layout .stats .customer-card-waiting-payment,
.layout .stats .customer-card-progress,
.layout .stats .customer-card-ready,
.layout .stats .customer-card-delivered {
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow:
        0 8px 25px rgba(31,41,55,0.07),
        inset 0 1px 0 rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: 0.3s ease;
}

.layout .stats .customer-card-total:hover,
.layout .stats .customer-card-waiting-approval:hover,
.layout .stats .customer-card-waiting-payment:hover,
.layout .stats .customer-card-progress:hover,
.layout .stats .customer-card-ready:hover,
.layout .stats .customer-card-delivered:hover {
    transform: translateY(-5px);
    box-shadow:
        0 14px 30px rgba(31,41,55,0.13),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.layout .stats .customer-card-total::before,
.layout .stats .customer-card-waiting-approval::before,
.layout .stats .customer-card-waiting-payment::before,
.layout .stats .customer-card-progress::before,
.layout .stats .customer-card-ready::before,
.layout .stats .customer-card-delivered::before {
    width: 5px;
}

.layout .stats .customer-card-total .stat-card-icon,
.layout .stats .customer-card-waiting-approval .stat-card-icon,
.layout .stats .customer-card-waiting-payment .stat-card-icon,
.layout .stats .customer-card-progress .stat-card-icon,
.layout .stats .customer-card-ready .stat-card-icon,
.layout .stats .customer-card-delivered .stat-card-icon {
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* 1. کل سفارش‌ها - بنفش */

.layout .stats .customer-card-total {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 55%, #ddd6fe 100%);
}

.layout .stats .customer-card-total::before {
    background: #7c3aed;
}

.layout .stats .customer-card-total .stat-card-icon {
    background: rgba(139,92,246,0.40);
}

.layout .stats .customer-card-total .stat-card-icon,
.layout .stats .customer-card-total p,
.layout .stats .customer-card-total small {
    color: #4c1d95;
}

.layout .stats .customer-card-total h2 {
    color: #5b21b6;
}


/* 2. در انتظار تأیید مبلغ - زرد لیمویی روشن */

.layout .stats .customer-card-waiting-approval {
    background: linear-gradient(
        135deg,
        #F9FF91 0%,
        #FAFFB8 55%,
        #FDFFE5 100%
    );
}

.layout .stats .customer-card-waiting-approval::before {
    background: #D2E52A;
}

.layout .stats .customer-card-waiting-approval .stat-card-icon {
    background: rgba(218, 235, 65, 0.30);
}

.layout .stats .customer-card-waiting-approval p,
.layout .stats .customer-card-waiting-approval small {
    color: #687500;
}

.layout .stats .customer-card-waiting-approval h2 {
    color: #788500;
}


/* 3. منتظر پرداخت - نارنجی */

.layout .stats .customer-card-waiting-payment {
    background: linear-gradient(135deg, #fed7aa 0%, #ffedd5 55%, #fff7ed 100%);
}

.layout .stats .customer-card-waiting-payment::before {
    background: #f97316;
}

.layout .stats .customer-card-waiting-payment .stat-card-icon {
    background: rgba(251,146,60,0.35);
}

.layout .stats .customer-card-waiting-payment p,
.layout .stats .customer-card-waiting-payment small {
    color: #9a3412;
}

.layout .stats .customer-card-waiting-payment h2 {
    color: #c2410c;
}

/* 4. در حال انجام - آبی */

.layout .stats .customer-card-progress {
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 55%, #dbeafe 100%);
}

.layout .stats .customer-card-progress::before {
    background: #2563eb;
}

.layout .stats .customer-card-progress .stat-card-icon {
    background: rgba(59,130,246,0.40);
}

.layout .stats .customer-card-progress p,
.layout .stats .customer-card-progress small {
    color: #1e3a8a;
}

.layout .stats .customer-card-progress h2 {
    color: #1e40af;
}


/* 5. آماده تحویل - فیروزه‌ای */

.layout .stats .customer-card-ready {
    background: linear-gradient(135deg, #a5f3fc 0%, #cffafe 55%, #ecfeff 100%);
}

.layout .stats .customer-card-ready::before {
    background: #06b6d4;
}

.layout .stats .customer-card-ready .stat-card-icon {
    background: rgba(34,211,238,0.35);
}

.layout .stats .customer-card-ready p,
.layout .stats .customer-card-ready small {
    color: #0e7490;
}

.layout .stats .customer-card-ready h2 {
    color: #0e7490;
}


/* 6. تحویل‌شده - سبز */

.layout .stats .customer-card-delivered {
    background: linear-gradient(135deg, #a7f3d0 0%, #d1fae5 55%, #ecfdf5 100%);
}

.layout .stats .customer-card-delivered::before {
    background: #10b981;
}

.layout .stats .customer-card-delivered .stat-card-icon {
    background: rgba(52,211,153,0.35);
}

.layout .stats .customer-card-delivered p,
.layout .stats .customer-card-delivered small {
    color: #047857;
}

.layout .stats .customer-card-delivered h2 {
    color: #047857;
}


/* ==========================================
   8. آخرین سفارش‌های مشتری
   ========================================== */

.recent-orders {
    background: white;
    border: 1px solid var(--customer-border);
    border-radius: 19px;
    padding: 27px;
    margin-bottom: 38px;
    box-shadow: 0 7px 25px rgba(22,40,70,.035);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 23px;
}

.section-header h2 {
    font-size: 17px;
    color: var(--customer-navy);
    margin-bottom: 6px;
    font-weight: 800;
}

.section-header p {
    color: var(--customer-muted);
    font-size: 11px;
}

.section-header > a {
    color: #416F9D;
    background: var(--sky-light);
    border: 1px solid #D7E9FA;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 11px;
    white-space: nowrap;
    font-weight: 700;
}

.section-header > a:hover {
    background: var(--sky);
}

.orders-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #EDF2F8;
    border-radius: 12px;
}

.orders-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: right;
}

.orders-table th {
    background: #F0F6FC;
    color: #60758E;
    font-size: 11px;
    padding: 16px 14px;
    white-space: nowrap;
}

.orders-table td {
    color: #40516A;
    font-size: 11px;
    padding: 17px 14px;
    border-top: 1px solid #EDF2F8;
    white-space: nowrap;
}

.orders-table tbody tr:hover {
    background: #F7FAFE;
}

.orders-table td:first-child {
    color: #477EAE;
    font-weight: 900;
}

.empty-orders {
    text-align: center;
    color: #8B97A8 !important;
    padding: 30px !important;
}


/* ==========================================
   9. خدمات مشتری
   ========================================== */

.section-heading {
    font-size: 18px;
    color: var(--customer-navy);
    margin-bottom: 20px;
    font-weight: 900;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 26px;
    border-radius: 18px;
    border: 1px solid var(--customer-border);
    transition: .25s;
    box-shadow: 0 5px 18px rgba(22,40,70,.025);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(20,50,90,.09);
    border-color: #C8DFF4;
}

.icon {
    width: 52px;
    height: 52px;
    background: var(--sky-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 15px;
    color: var(--customer-navy);
    margin-bottom: 10px;
    font-weight: 800;
}

.service-card p {
    color: var(--customer-muted);
    font-size: 12px;
    line-height: 2;
    min-height: 48px;
    margin-bottom: 18px;
}

.service-card a {
    display: inline-block;
    background: #8CBCEB;
    color: #183153;
    padding: 10px 17px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    transition: .2s;
}

.service-card a:hover {
    background: #B9D9F5;
}


/* ==========================================
   10. فوتر قالب مشتری
   ========================================== */

.layout footer {
    text-align: center;
    padding: 30px 10px;
    color: #99A5B7;
    font-size: 11px;
}


/* ==========================================
   11. پیام‌های سیستم
   ========================================== */

.messages-container {
    margin: 0 0 20px;
}

.alert-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.alert-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}


/* ==========================================
   12. دکمه‌های بازگشت و لینک‌های عملیاتی
   ========================================== */

.back,
.back-btn,
.btn-back,
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #475569;
    border-radius: 9px;
    background: #475569;
    color: #ffffff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.back:hover,
.back-btn:hover,
.btn-back:hover,
.back-button:hover {
    background: #334155;
    border-color: #334155;
    color: #ffffff;
    transform: translateY(-1px);
}

.back:focus-visible,
.back-btn:focus-visible,
.btn-back:focus-visible,
.back-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}


/* ==========================================
   13. وضعیت سفارش‌ها - مشترک بین دو پنل
   ========================================== */

.order-status,
.status {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    opacity: 1 !important;
}

/* ثبت‌شده */
.order-status.registered,
.status.registered {
    background: #E9D5FF !important;
    background-color: #E9D5FF !important;
    color: #6B21A8 !important;
    border: 1px solid #C084FC !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* در حال انجام */
.order-status.in_progress,
.status.in_progress {
    background: rgba(245, 158, 11, 0.24);
    color: #92400E;
    border-color: rgba(217, 119, 6, 0.65);
    font-weight: 900;
}

/* در انتظار تأیید قیمت - نارنجی */
.order-status.waiting_customer_approval,
.status.waiting_customer_approval {
    background: #FFEDD5 !important;
    background-color: #FFEDD5 !important;
    color: #9A3412 !important;
    border: 1px solid #FDBA74 !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

/* آماده تحویل */
.order-status.ready,
.status.ready {
    background: rgba(184, 216, 192, 0.38);
    color: #477b55;
    border-color: rgba(120, 170, 130, 0.4);
    font-weight: 800;
}

/* تحویل‌شده */
.order-status.delivered,
.status.delivered {
    background: rgba(22, 163, 74, 0.25);
    color: #166534;
    border-color: rgba(21, 128, 61, 0.7);
    font-weight: 900;
}

/* لغوشده و قیمت ردشده */
.order-status.cancelled,
.order-status.price_rejected,
.status.cancelled,
.status.price_rejected {
    background: rgba(220, 38, 38, 0.20);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.55);
    font-weight: 800;
}

/* تأییدشده */
.order-status.approved,
.status.approved {
    background: rgba(147, 51, 234, 0.22);
    color: #6B21A8;
    border-color: rgba(126, 34, 206, 0.65);
    font-weight: 900;
    white-space: nowrap;
}

/* رسید ارسال‌شده و منتظر تأیید مدیریت - صورتی مرجانی مشترک */

.status.receipt-pending-approval,
.order-status.receipt-pending-approval,
.all-orders-page .orders-table td .order-status.receipt-pending-approval,
.layout .recent-orders .order-status.approved.receipt-pending-approval {
    background: #FFE0D6 !important;
    background-color: #FFE0D6 !important;
    color: #9F3528 !important;
    border: 1px solid #FF927A !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

/* حفظ رنگ کهربایی وضعیت در حال انجام */
.status.order-status.in_progress {
    background: #FEF3C7 !important;
    background-color: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #F59E0B !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}


/* ==========================================
   14. واکنش‌گرایی - تبلت
   ========================================== */

@media(max-width: 950px) {

    .sidebar {
        width: 220px;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .content {
        padding: 25px;
    }

    .topbar {
        padding: 45px 25px 25px;
    }
}


/* ==========================================
   15. واکنش‌گرایی - موبایل
   ========================================== */

@media(max-width: 650px) {

    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 17px;
        min-height: auto;
    }

    .brand {
        padding: 5px 10px 15px;
        font-size: 21px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .menu-title {
        display: none;
    }

    .menu a {
        margin: 0;
        padding: 9px 12px;
        font-size: 11px;
    }

    .topbar {
        min-height: auto;
        padding: 17px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .topbar h2 {
        font-size: 17px;
    }

    .profile {
        font-size: 11px;
        padding: 8px 12px;
    }

    .content {
        padding: 17px;
    }

    .welcome {
        aspect-ratio: 2.2 / 1;
        border-radius: 14px;
        margin-bottom: 35px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .stat-card {
        min-height: 190px;
        padding: 20px;
    }

    .stat-card h2 {
        font-size: 27px;
    }

    .recent-orders {
        padding: 17px;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 14px;
    }

    .section-header > a {
        padding: 8px 10px;
        font-size: 10px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .service-card {
        padding: 21px;
    }

    .section-heading {
        font-size: 16px;
    }
}


/* نوار اعلان‌ها و پروفایل مشتری */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notification-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    text-decoration: none;
    color: var(--customer-navy);
    font-size: 14px;
    font-weight: 600;
}

.notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .topbar-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
}


/* =====================================
   قالب مادر پنل مدیریت
===================================== */

.admin-panel {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f3f5f9;
    color: #1e293b;
    min-height: 100vh;
}

/* هدر مدیریت */
.admin-panel .admin-header {
    background: #172554;
    color: white;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-panel .admin-header-title {
    margin: 0;
    font-size: 20px;
}

.admin-panel .admin-header-title a {
    color: white;
    text-decoration: none;
}

/* بخش اعلان‌ها و خروج */
.admin-panel .admin-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-panel .admin-notification-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.admin-panel .admin-notification-count {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.admin-panel .admin-logout-form {
    margin: 0;
}

.admin-panel .admin-logout-button {
    min-height: 42px;
    padding: 10px 18px;
    color: white;
    background: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-panel .admin-logout-button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* محتوای صفحات مدیریت */
.admin-panel .container {
    max-width: 1150px;
    margin: 35px auto;
    padding: 0 20px;
}

/* فوتر مدیریت */
.admin-panel .admin-footer {
    text-align: center;
    color: #94a3b8;
    padding: 40px 10px;
    font-size: 12px;
}

/* نمایش در موبایل */
@media (max-width: 600px) {
    .admin-panel .admin-header {
        padding: 18px;
    }

    .admin-panel .container {
        margin: 25px auto;
    }
}


/* اصلاح عنوان داشبورد مدیریت */

.admin-panel .welcome h1 {
    color: #172554 !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.admin-panel .welcome h1 {
    white-space: nowrap;
}

/* اصلاح نهایی عنوان داشبورد مدیریت */

.admin-panel .welcome h1 {
    display: block !important;
    color: #172554 !important;
    direction: rtl !important;
    white-space: nowrap !important;
    flex-wrap: unset !important;
    font-size: 23px !important;
    line-height: 1.8 !important;
}

body.admin-panel header.admin-header h2.admin-header-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}


/* ==========================================
   صفحه مدیریت سفارش‌ها
   ========================================== */

.admin-panel .manage-orders-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.admin-panel .manage-orders-page .page-header h2 {
    margin: 0;
    font-size: 21px;
}

/* دکمه بازگشت */
.admin-panel .manage-orders-page .back {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    transition: 0.2s ease;
}

.admin-panel .manage-orders-page .back:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

.admin-panel .manage-orders-page .search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-panel .manage-orders-page .search-form input {
    flex: 1;
    min-width: 220px;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
}

/* دکمه جست‌وجو */
.admin-panel .manage-orders-page .search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 9px;
    color: white;
    cursor: pointer;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-panel .manage-orders-page .search-form button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.admin-panel .manage-orders-page .table-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    overflow-x: auto;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}

.admin-panel .manage-orders-page .result-count {
    color: #64748b;
    font-weight: bold;
    font-size: 14px;
    margin: 0 0 18px;
}

.admin-panel .manage-orders-page table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.admin-panel .manage-orders-page th,
.admin-panel .manage-orders-page td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.admin-panel .manage-orders-page th {
    background: #f1f5f9;
}

.admin-panel .manage-orders-page .empty {
    text-align: center;
    padding: 35px;
    color: #64748b;
}

.admin-panel .manage-orders-page .order-link {
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.admin-panel .manage-orders-page .order-link:hover {
    color: #2563eb;
    text-decoration: underline;
}


/* رنگ شماره سفارش در جزئیات پنل مشتری */

.detail-card h2 .order-number {
    color: #2563eb !important;
    font-weight: 800;
}

.order-detail-page .detail-card h2 .order-number {
    color: #2563eb;
    font-weight: 800;
}


/* ==========================================
   صفحه جزئیات سفارش مدیریت
   ========================================== */

.admin-panel .order-detail-page .detail-card {
    max-width: 900px;
    margin: 10px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.admin-panel .order-detail-page .detail-card h2 {
    margin-top: 0;
    color: #263b70;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    font-size: 21px;
}

.admin-panel .order-detail-page .info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.admin-panel .order-detail-page .item {
    background: #f7f8fb;
    padding: 15px;
    border-radius: 10px;
    line-height: 2;
    font-size: 14px;
}

.admin-panel .order-detail-page .item strong {
    color: #263b70;
}

.admin-panel .order-detail-page .details {
    margin-top: 20px;
    padding: 18px;
    background: #f7f8fb;
    border-radius: 10px;
    line-height: 2;
}

.admin-panel .order-detail-page .file {
    margin-top: 20px;
    padding: 15px;
    background: #eef5ff;
    border-radius: 10px;
}

.admin-panel .order-detail-page .file a {
    color: #1769aa;
    text-decoration: none;
    font-weight: bold;
}

.admin-panel .order-detail-page .status-form,
.admin-panel .order-detail-page .price-form {
    margin-top: 25px;
    padding: 20px;
    background: #eef5ff;
    border-radius: 10px;
}

.admin-panel .order-detail-page .status-form h3,
.admin-panel .order-detail-page .price-form h3 {
    color: #263b70;
    margin-top: 0;
}

.admin-panel .order-detail-page .status-form label,
.admin-panel .order-detail-page .price-form label {
    display: block;
    margin-bottom: 8px;
}

.admin-panel .order-detail-page .status-form select,
.admin-panel .order-detail-page .price-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
}

/* دکمه‌های ثبت در صفحه جزئیات */
.admin-panel .order-detail-page .status-form button,
.admin-panel .order-detail-page .price-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 9px;
    color: white;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-panel .order-detail-page .status-form button:hover,
.admin-panel .order-detail-page .price-form button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    transform: translateY(-1px);
}

/* دکمه بازگشت جزئیات */
.admin-panel .order-detail-page .back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    margin-top: 25px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #334155;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.admin-panel .order-detail-page .back:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

.admin-panel .order-detail-page .message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 14px;
}

.admin-panel .order-detail-page .message.success {
    background: #dcfce7;
    color: #166534;
}

.admin-panel .order-detail-page .message.error {
    background: #fee2e2;
    color: #991b1b;
}

.admin-panel .order-detail-page .message.warning {
    background: #fef3c7;
    color: #92400e;
}

@media(max-width: 600px) {
    .admin-panel .order-detail-page .detail-card {
        padding: 20px;
    }

    .admin-panel .order-detail-page .info {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   صفحه مشترک اعلان‌ها
   ========================================== */

.notification-page {
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    padding: 30px 15px;
    background: #f3f5f9;
    color: #1e293b;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.notification-page *,
.notification-page *::before,
.notification-page *::after {
    box-sizing: border-box;
}

.notification-page .container {
    max-width: 850px;
    margin: auto;
}

.notification-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.notification-page .header h2 {
    margin: 0;
    font-size: 21px;
}

.notification-page .notification {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}

.notification-page .notification.unread {
    border-right: 5px solid #2563eb;
    background: #f8fbff;
}

.notification-page .notification h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #263b70;
}

.notification-page .notification p {
    margin: 0 0 12px;
    line-height: 2;
    font-size: 14px;
}

.notification-page .meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.notification-page .empty {
    background: white;
    padding: 45px 15px;
    text-align: center;
    border-radius: 12px;
    color: #64748b;
    line-height: 2;
}

/* دکمه بازگشت اعلان‌ها */
.notification-page .back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #334155;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.notification-page .back:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    transform: translateY(-1px);
}

@media(max-width: 600px) {
    .notification-page .header h2 {
        font-size: 18px;
    }

    .notification-page .notification {
        padding: 15px;
    }
}


/* ==========================================
   رنگ‌بندی وضعیت سفارش‌ها - فقط پنل مشتری
   ========================================== */

/* ثبت‌شده - بنفش */
.layout .recent-orders .order-status.registered {
    background: #E9D5FF !important;
    color: #6B21A8 !important;
    border: 1px solid #C084FC !important;
}

/* در حال انجام - آبی */
.layout .recent-orders .order-status.in_progress {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
    border: 1px solid #60A5FA !important;
}

/* در انتظار تأیید قیمت - زرد لیمویی */
.layout .recent-orders .order-status.waiting_customer_approval {
    background: #F9FF91 !important;
    color: #687500 !important;
    border: 1px solid #D2E52A !important;
}

/* منتظر پرداخت - نارنجی */
.layout .recent-orders .order-status.approved {
    background: #FFEDD5 !important;
    color: #C2410C !important;
    border: 1px solid #FB923C !important;
}

/* آماده تحویل - فیروزه‌ای */
.layout .recent-orders .order-status.ready {
    background: #CCFBF1 !important;
    color: #0F766E !important;
    border: 1px solid #5EEAD4 !important;
}

/* تحویل‌شده - سبز */
.layout .recent-orders .order-status.delivered {
    background: #DCFCE7 !important;
    color: #166534 !important;
    border: 1px solid #4ADE80 !important;
}

/* لغوشده و قیمت ردشده - قرمز پررنگ */
.layout .recent-orders .order-status.cancelled,
.layout .recent-orders .order-status.price_rejected {
    background: #FECACA !important;
    color: #991B1B !important;
    border: 1px solid #DC2626 !important;
}


/* ==========================================
   رنگ‌بندی وضعیت سفارش‌ها - فقط پنل مدیریت
   هماهنگ با پنل مشتری
   ========================================== */

/* ثبت‌شده - بنفش */
.admin-panel .status.registered {
    background: #E9D5FF !important;
    background-color: #E9D5FF !important;
    color: #6B21A8 !important;
    border: 1px solid #C084FC !important;
}

/* در حال انجام - آبی */
.admin-panel .status.in_progress {
    background: #DBEAFE !important;
    background-color: #DBEAFE !important;
    color: #1D4ED8 !important;
    border: 1px solid #60A5FA !important;
}

/* در انتظار تأیید قیمت توسط مشتری - زرد */
.admin-panel .status.waiting_customer_approval {
    background: #F9FF91 !important;
    background-color: #F9FF91 !important;
    color: #687500 !important;
    border: 1px solid #D2E52A !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

/* منتظر پرداخت مشتری - نارنجی */
.admin-panel .status.approved {
    background: #FFEDD5 !important;
    background-color: #FFEDD5 !important;
    color: #C2410C !important;
    border: 1px solid #FB923C !important;
}

/* آماده تحویل - فیروزه‌ای */
.admin-panel .status.ready {
    background: #CCFBF1 !important;
    background-color: #CCFBF1 !important;
    color: #0F766E !important;
    border: 1px solid #5EEAD4 !important;
}

/* تحویل‌شده - سبز */
.admin-panel .status.delivered {
    background: #DCFCE7 !important;
    background-color: #DCFCE7 !important;
    color: #166534 !important;
    border: 1px solid #4ADE80 !important;
}

/* لغوشده و قیمت ردشده - قرمز پررنگ */
.admin-panel .status.cancelled,
.admin-panel .status.price_rejected {
    background: #FECACA !important;
    background-color: #FECACA !important;
    color: #991B1B !important;
    border: 1px solid #DC2626 !important;
}

/* ظاهر مشترک برچسب‌های وضعیت مدیریت */
.admin-panel .status {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}


/* ==========================================
   هماهنگ‌سازی فونت کارت‌های داشبورد مشتری
   مشابه کارت‌های داشبورد مدیریت
   ========================================== */

.layout .stats .stat-card p {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 13px !important;
}

.layout .stats .stat-card small {
    font-size: 11px !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
}


/* ==========================================
   آیکون شیشه‌ای کارت‌های داشبورد مشتری
   ========================================== */

.layout .stats .customer-card-total,
.layout .stats .customer-card-waiting-approval,
.layout .stats .customer-card-waiting-payment,
.layout .stats .customer-card-progress,
.layout .stats .customer-card-ready,
.layout .stats .customer-card-delivered {
    padding-top: 88px;
}

.layout .stats .customer-card-total .stat-card-icon,
.layout .stats .customer-card-waiting-approval .stat-card-icon,
.layout .stats .customer-card-waiting-payment .stat-card-icon,
.layout .stats .customer-card-progress .stat-card-icon,
.layout .stats .customer-card-ready .stat-card-icon,
.layout .stats .customer-card-delivered .stat-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.78);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.85),
        0 6px 16px rgba(31, 41, 55, 0.10);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    z-index: 2;
}

.layout .stats .stat-card-icon svg {
    width: 29px;
    height: 29px;
    display: block;
}

/* رنگ اختصاصی آیکون هر کارت */
.layout .stats .customer-card-total .stat-card-icon {
    color: #6B21A8;
}

.layout .stats .customer-card-waiting-approval .stat-card-icon {
    color: #687500;
}

.layout .stats .customer-card-waiting-payment .stat-card-icon {
    color: #C2410C;
}

.layout .stats .customer-card-progress .stat-card-icon {
    color: #1D4ED8;
}

.layout .stats .customer-card-ready .stat-card-icon {
    color: #0F766E;
}

.layout .stats .customer-card-delivered .stat-card-icon {
    color: #166534;
}


/* ==========================================
   سبک سه‌بعدی آیکون‌های داشبورد مشتری
   ========================================== */

.layout .stats .customer-card-total .stat-card-icon,
.layout .stats .customer-card-waiting-approval .stat-card-icon,
.layout .stats .customer-card-waiting-payment .stat-card-icon,
.layout .stats .customer-card-progress .stat-card-icon,
.layout .stats .customer-card-ready .stat-card-icon,
.layout .stats .customer-card-delivered .stat-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.85);

    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.65),
        inset 0 -4px 6px rgba(0,0,0,0.12),
        0 5px 0 rgba(0,0,0,0.10),
        0 9px 16px rgba(0,0,0,0.16);

    transform: perspective(400px) rotateX(5deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.layout .stats .stat-card-icon svg {
    width: 30px;
    height: 30px;
    color: #fff !important;
    stroke: currentColor;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

/* بنفش */
.layout .stats .customer-card-total .stat-card-icon {
    background: linear-gradient(145deg, #c4a3ff, #7c3aed 65%, #5b21b6);
}

/* زرد لیمویی */
.layout .stats .customer-card-waiting-approval .stat-card-icon {
    background: linear-gradient(145deg, #efff83, #b5c91e 65%, #829400);
}

/* نارنجی */
.layout .stats .customer-card-waiting-payment .stat-card-icon {
    background: linear-gradient(145deg, #ffc18a, #f97316 65%, #c2410c);
}

/* آبی */
.layout .stats .customer-card-progress .stat-card-icon {
    background: linear-gradient(145deg, #93c5fd, #2563eb 65%, #1e40af);
}

/* فیروزه‌ای */
.layout .stats .customer-card-ready .stat-card-icon {
    background: linear-gradient(145deg, #99f6e4, #0d9488 65%, #0f766e);
}

/* سبز */
.layout .stats .customer-card-delivered .stat-card-icon {
    background: linear-gradient(145deg, #86efac, #16a34a 65%, #166534);
}

/* حرکت برجسته هنگام رفتن موس روی کارت */
.layout .stats .customer-card-total:hover .stat-card-icon,
.layout .stats .customer-card-waiting-approval:hover .stat-card-icon,
.layout .stats .customer-card-waiting-payment:hover .stat-card-icon,
.layout .stats .customer-card-progress:hover .stat-card-icon,
.layout .stats .customer-card-ready:hover .stat-card-icon,
.layout .stats .customer-card-delivered:hover .stat-card-icon {
    transform: perspective(400px) rotateX(0deg) translateY(-3px);

    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.75),
        inset 0 -3px 5px rgba(0,0,0,0.10),
        0 7px 0 rgba(0,0,0,0.10),
        0 13px 20px rgba(0,0,0,0.18);
}


/* ==========================================
   لوگوی اختصاصی پنل مدیریت شهر کافی نت
   ========================================== */

.admin-panel .admin-header-title {
    margin: 0;
}

.admin-panel .admin-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
}

.admin-panel .admin-site-logo {
    display: block;
    width: 150px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
}


/* تنظیم اندازه و ارتفاع هدر پنل مدیریت */

body.admin-panel .admin-header {
    min-height: 115px;
    height: auto;
    padding: 16px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    box-sizing: border-box;
}

/* عنوان و لوگو */

body.admin-panel .admin-header-title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.5;
    flex-shrink: 0;
}

body.admin-panel .admin-brand-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

/* نوشته داشبورد مدیریت */

body.admin-panel .admin-header-title span {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* دکمه‌های سمت دیگر هدر */

body.admin-panel .admin-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin: 0;
}

/* نمایش موبایل */

@media (max-width: 600px) {
    body.admin-panel .admin-header {
        min-height: 90px;
        padding: 10px 12px;
        gap: 8px;
    }

    body.admin-panel .admin-site-logo {
        width: 125px;
        height: 62px;
    }

    body.admin-panel .admin-brand-link {
        gap: 8px;
    }

    body.admin-panel .admin-header-title span {
        font-size: 14px;
    }
}


/* ==========================================
   ظاهر سه‌بعدی و گوشه‌های گرد لوگوی پنل مدیریت
   ========================================== */

body.admin-panel .admin-site-logo {
    width: 190px;
    height: 82px;
    max-height: none;
    padding: 0;

    object-fit: contain;
    display: block;

    border-radius: 20px;
    overflow: hidden;

    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    box-shadow:
        0 5px 0 rgba(8, 25, 48, 0.35),
        0 9px 16px rgba(0, 0, 0, 0.28),
        0 2px 5px rgba(255, 255, 255, 0.18);

    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));

    transition: transform 0.25s ease, filter 0.25s ease;
}

body.admin-panel .admin-site-logo:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

@media (max-width: 600px) {
    body.admin-panel .admin-site-logo {
        width: 125px;
        height: 62px;
        border-radius: 15px;
    }
}


/* ==========================================
   باکس لوگوی پنل مدیریت
   هماهنگ با باکس لوگوی پنل مشتری
   ========================================== */

body.admin-panel .admin-brand-box {
    display: block;
    width: 210px;
    box-sizing: border-box;

    text-align: center;
    padding: 5px 8px 8px;
    margin: 0;

    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 14px;

    box-shadow: none;
}

body.admin-panel .admin-brand-box .brand-logo {
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0 auto 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-panel .admin-brand-box .admin-site-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;

    object-fit: contain;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transform: none;
}

/* فاصله عنوان داشبورد از باکس لوگو */

body.admin-panel .admin-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

/* عنوان داشبورد مدیریت */

body.admin-panel .admin-header-title span {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* موبایل */

@media (max-width: 600px) {

    body.admin-panel .admin-brand-box {
        width: 160px;
    }

    body.admin-panel .admin-brand-box .brand-logo {
        max-width: 140px;
    }

    body.admin-panel .admin-brand-link {
        gap: 8px;
    }

    body.admin-panel .admin-header-title span {
        font-size: 14px;
    }
}

/* اصلاح چیدمان لوگو و عنوان پنل مدیریت */

body.admin-panel .admin-brand-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 14px;
    white-space: nowrap;
}

body.admin-panel .admin-header-title span {
    display: inline-block !important;
    position: static !important;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    line-height: 1.5;
}

body.admin-panel .admin-brand-box {
    flex: 0 0 210px;
    position: relative;
}

/* پایین‌تر آمدن خود تصویر درون باکس */

body.admin-panel .admin-brand-box .admin-site-logo {
    transform: translateY(6px);
}


/* ==================================================
   16. SHARED BUTTON SYSTEM - SHAHRCOFFINET
   استاندارد مشترک دکمه‌ها در پنل مشتری و مدیریت
   ================================================== */

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    vertical-align: middle;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.sc-btn:hover {
    transform: translateY(-1px);
}

.sc-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.sc-btn:disabled,
.sc-btn[disabled],
.sc-btn.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* دکمه اصلی - ثبت، ارسال و جست‌وجو */
.sc-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.sc-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

/* دکمه ثانویه - بازگشت */
.sc-btn--secondary {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.sc-btn--secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* دکمه تأیید */
.sc-btn--success {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.sc-btn--success:hover {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
}

/* دکمه رد و حذف */
.sc-btn--danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.sc-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

/* دکمه خنثی - پاک‌کردن و لغو */
.sc-btn--neutral {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.sc-btn--neutral:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* خروجی اکسل */
.sc-btn--export {
    background: #217346;
    border-color: #217346;
    color: #ffffff;
}

.sc-btn--export:hover {
    background: #185c37;
    border-color: #185c37;
    color: #ffffff;
}


/* ==================================================
   17. هماهنگ‌سازی دکمه‌های قدیمی با سیستم مشترک
   ================================================== */

/* دکمه بازگشت عمومی - هماهنگ با سیستم مشترک */
.back,
.back-btn,
.btn-back,
.back-button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.back:hover,
.back-btn:hover,
.btn-back:hover,
.back-button:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* جست‌وجوی سفارش‌ها */
.admin-panel .manage-orders-page .search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 9px;
    color: #ffffff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-panel .manage-orders-page .search-form button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* دکمه‌های ثبت در جزئیات سفارش مدیریت */
.admin-panel .order-detail-page .status-form button,
.admin-panel .order-detail-page .price-form button {
    min-height: 42px;
    padding: 10px 18px;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 9px;
    color: #ffffff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-panel .order-detail-page .status-form button:hover,
.admin-panel .order-detail-page .price-form button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* بازگشت در جزئیات سفارش مدیریت */
.admin-panel .order-detail-page .back {
    min-height: 42px;
    padding: 10px 18px;
    margin-top: 25px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #334155;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.admin-panel .order-detail-page .back:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

/* بازگشت در صفحه اعلان‌ها */
.notification-page .back {
    min-height: 42px;
    padding: 10px 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #334155;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.notification-page .back:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

/* خروج از حساب مدیریت */
.admin-panel .admin-logout-button {
    min-height: 42px;
    padding: 10px 18px;
    background: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 9px;
    color: #ffffff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-panel .admin-logout-button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
    transform: translateY(-1px);
}


/* اندازه و فاصله دکمه‌ها در موبایل */

@media (max-width: 600px) {
    .sc-btn,
    .back,
    .back-btn,
    .btn-back,
    .back-button,
    .admin-panel .manage-orders-page .search-form button,
    .admin-panel .order-detail-page .status-form button,
    .admin-panel .order-detail-page .price-form button,
    .admin-panel .admin-logout-button,
    .notification-page .back {
        min-height: 42px;
        padding: 10px 15px;
        font-size: 13px;
    }
}


/* =========================================
   ALL ORDERS PAGE - منتقل‌شده از قالب مستقل
   ========================================= */

.all-orders-page,
.all-orders-page * {
    box-sizing: border-box;
}

.all-orders-page {
    margin: 0;
    padding: 35px 20px;
    background: #f4f7fb;
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: #263445;
}

.all-orders-page .page-container {
    max-width: 1150px;
    margin: 0 auto;
}

.all-orders-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.all-orders-page .page-header h1 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 800;
}

.all-orders-page .page-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.all-orders-page .orders-card {
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(30, 55, 90, .04);
}

.all-orders-page .section-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 800;
}

.all-orders-page .table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.all-orders-page .orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
    text-align: center;
    background: #ffffff !important;
}

.all-orders-page .orders-table th {
    background: #f1f6fc;
    color: #40566f;
    padding: 15px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.all-orders-page .orders-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #edf1f5;
    font-size: 13px;
}

.all-orders-page .orders-table tr:last-child td {
    border-bottom: none;
}

.all-orders-page .orders-table td .order-status {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.8;
    text-align: center;
    white-space: nowrap;
    opacity: 1;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    mix-blend-mode: normal;
    transform: none;
}

.all-orders-page .orders-table td .order-status.in_progress {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
    border: 1px solid #60A5FA !important;
}

.all-orders-page .orders-table td .order-status.waiting_customer_approval {
    background: #F9FF91 !important;
    color: #687500 !important;
    border: 1px solid #D2E52A !important;
}

.all-orders-page .orders-table td .order-status.approved:not(.receipt-pending-approval) {
    background: #FFEDD5 !important;
    color: #C2410C !important;
    border: 1px solid #FB923C !important;
}

.all-orders-page .orders-table td .order-status.ready {
    background: #CCFBF1 !important;
    color: #0F766E !important;
    border: 1px solid #5EEAD4 !important;
}

.all-orders-page .orders-table td .order-status.delivered {
    background: #DCFCE7 !important;
    color: #166534 !important;
    border: 1px solid #4ADE80 !important;
}

.all-orders-page .orders-table td .order-status.cancelled,
.all-orders-page .orders-table td .order-status.price_rejected {
    background: #FECACA !important;
    color: #991B1B !important;
    border: 1px solid #DC2626 !important;
}

.all-orders-page .empty-orders {
    padding: 35px !important;
    color: #8492a6;
}

.all-orders-page .order-number-link {
    color: #2563eb !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.all-orders-page .order-number-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline;
}

.all-orders-page .price-response-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.all-orders-page .bank-payment-row td {
    padding: 8px 12px 22px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e8eef5 !important;
}

.all-orders-page .bank-payment-card {
    max-width: 780px;
    margin: 5px auto;
    padding: 22px;
    text-align: right;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #cfe2f6;
    border-right: 5px solid #3978bd;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(42, 94, 145, .07);
}

.all-orders-page .bank-payment-heading {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}

.all-orders-page .bank-payment-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    margin: 0 auto;
}

.all-orders-page .bank-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #dceeff;
    color: #28639f;
    border-radius: 12px;
    font-size: 22px;
}

.all-orders-page .bank-payment-heading h3 {
    margin: 0 0 4px;
    color: #183153;
    font-size: 16px;
    font-weight: 800;
}

.all-orders-page .bank-payment-heading p {
    margin: 0;
    color: #718096;
    font-size: 12px;
}

.all-orders-page .bank-payment-intro {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 12px 0 18px;
    padding: 0;
    color: #52677e;
    font-size: 13px;
    line-height: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.all-orders-page .bank-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.all-orders-page .bank-detail-item {
    padding: 13px 15px;
    background: #ffffff;
    border: 1px solid #e1ebf5;
    border-radius: 10px;
}

.all-orders-page .bank-detail-label {
    display: block;
    margin-bottom: 5px;
    color: #8492a6;
    font-size: 11px;
}

.all-orders-page .bank-detail-value {
    display: block;
    color: #263b55;
    font-size: 14px;
    font-weight: 800;
}

.all-orders-page .card-number-box {
    padding: 17px;
    background: #ffffff;
    border: 1px dashed #9bbfe3;
    border-radius: 12px;
    text-align: center;
}

.all-orders-page .card-number-label {
    display: block;
    margin-bottom: 10px;
    color: #718096;
    font-size: 12px;
}

.all-orders-page .card-number-value {
    display: block;
    color: #183153;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 2px;
    direction: ltr;
    overflow-wrap: anywhere;
}

.all-orders-page .bank-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 12px 14px;
    background: #e8f4ff;
    color: #315d85;
    border-radius: 9px;
    font-size: 12px;
    line-height: 2;
}

.all-orders-page .bank-payment-note span {
    font-size: 16px;
}

@media (max-width: 650px) {
    .all-orders-page {
        padding: 20px 12px;
    }

    .all-orders-page .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .all-orders-page .page-header h1 {
        font-size: 21px;
    }

    .all-orders-page .orders-card {
        padding: 15px;
    }

    .all-orders-page .bank-payment-card {
        padding: 15px;
    }

    .all-orders-page .bank-details {
        grid-template-columns: 1fr;
    }

    .all-orders-page .card-number-value {
        font-size: 18px;
    }
}

.all-orders-page .page-container,
.all-orders-page .orders-card,
.all-orders-page .table-wrapper,
.all-orders-page .orders-table,
.all-orders-page .orders-table tbody,
.all-orders-page .orders-table tr,
.all-orders-page .orders-table td {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
}

.all-orders-page .orders-table tbody tr,
.all-orders-page .orders-table tbody td {
    background: #ffffff !important;
}

.all-orders-page .orders-table td .order-status {
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}


/* =========================================
   CREATE ORDER PAGE
   ========================================= */

.create-order-page,
.create-order-page * {
    box-sizing: border-box;
}

.create-order-page {
    margin: 0;
    padding: 35px 15px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f1f7fc;
    color: #263445;
}

.create-order-page .container {
    max-width: 680px;
    margin: 15px auto;
}

.create-order-page .back-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.create-order-page .form-card {
    background: white;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid #e5edf5;
    box-shadow: 0 8px 30px rgba(40, 100, 160, 0.07);
}

.create-order-page h1 {
    font-size: 22px;
    margin: 0 0 10px;
    color: #244d73;
}

.create-order-page .subtitle {
    color: #718096;
    font-size: 13px;
    line-height: 2;
    margin-bottom: 30px;
}

.create-order-page label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: bold;
    color: #344b63;
}

.create-order-page input,
.create-order-page select,
.create-order-page textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dce6f0;
    border-radius: 10px;
    margin-bottom: 22px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 13px;
    background: #fbfdff;
    color: #263445;
    transition: 0.2s;
}

.create-order-page textarea {
    resize: vertical;
    min-height: 100px;
}

.create-order-page input:focus,
.create-order-page select:focus,
.create-order-page textarea:focus {
    outline: none;
    border-color: #70aee8;
    background: white;
    box-shadow: 0 0 0 3px rgba(112, 174, 232, 0.12);
}

.create-order-page input[type="file"] {
    background: #f5f9fd;
    padding: 11px;
}

.create-order-page .submit-btn {
    width: 100%;
    padding: 15px;
    background: #4d96d8;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.create-order-page .submit-btn:hover:not(:disabled) {
    background: #327fca;
    transform: translateY(-1px);
}

.create-order-page .submit-btn:disabled {
    background: #aebdca;
    cursor: not-allowed;
    transform: none;
}

.create-order-page .error {
    color: #dc2626;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
}

.create-order-page .messages {
    background: #eff6ff;
    color: #2563a6;
    border: 1px solid #d5e8fb;
    padding: 13px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 13px;
}

.create-order-page .help {
    color: #8291a3;
    font-size: 11px;
    margin-top: -15px;
    margin-bottom: 20px;
    line-height: 2;
}

.create-order-page .file-review {
    display: none;
    background: #f4f9ff;
    border: 1px solid #d9e9f8;
    border-radius: 10px;
    padding: 15px;
    margin-top: -8px;
    margin-bottom: 22px;
}

.create-order-page .view-file-btn {
    display: inline-block;
    padding: 9px 17px;
    background: #3978bd;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.create-order-page .confirm-file {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    line-height: 2;
    margin: 0;
}

.create-order-page .confirm-file input {
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
}

.create-order-page .file-name {
    color: #52677c;
    font-size: 12px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .create-order-page {
        padding: 20px 12px;
    }

    .create-order-page .form-card {
        padding: 22px 17px;
    }

    .create-order-page h1 {
        font-size: 19px;
    }
}


/* =========================================
   CUSTOMER ORDER DETAIL PAGE
   ========================================= */

.customer-order-detail-page,
.customer-order-detail-page * {
    box-sizing: border-box;
}

.customer-order-detail-page {
    margin: 0;
    padding: 35px 20px;
    background: #f4f7fb;
    color: #263445;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.customer-order-detail-page .container {
    max-width: 900px;
    margin: 0 auto;
}

.customer-order-detail-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.customer-order-detail-page .header h1 {
    font-size: 24px;
    margin: 0 0 7px;
    color: #263b70;
}

.customer-order-detail-page .header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.customer-order-detail-page .detail-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e5ebf2;
    box-shadow: 0 5px 20px rgba(30, 55, 90, .04);
}

.customer-order-detail-page .detail-card h2 {
    margin: 0 0 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #eee;
    font-size: 19px;
    color: #263b70;
}

.customer-order-detail-page .detail-card h2 .order-number {
    color: #2563eb !important;
    font-weight: 800;
}

.customer-order-detail-page .info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.customer-order-detail-page .item {
    background: #f7f8fb;
    padding: 14px;
    border-radius: 10px;
    line-height: 2;
    font-size: 14px;
}

.customer-order-detail-page .item strong {
    color: #263b70;
}

.customer-order-detail-page .details,
.customer-order-detail-page .file {
    margin-top: 20px;
    padding: 18px;
    border-radius: 10px;
    line-height: 2;
    font-size: 14px;
}

.customer-order-detail-page .details {
    background: #f7f8fb;
}

.customer-order-detail-page .file {
    background: #eef5ff;
}

.customer-order-detail-page .file-locked {
    color: #a15b30;
    font-size: 13px;
    margin-top: 12px;
}

.customer-order-detail-page .pending-notice {
    color: #93651b;
    background: #fff8e8;
    border: 1px solid #f1dfb7;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-size: 13px;
}

.customer-order-detail-page .bottom-back {
    margin-top: 25px;
}

.customer-order-detail-page .status {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
}

.customer-order-detail-page .status.registered {
    background: #E9D5FF;
    color: #6B21A8;
    border-color: #C084FC;
}

.customer-order-detail-page .status.in_progress {
    background: #DBEAFE;
    color: #1D4ED8;
    border-color: #60A5FA;
}

.customer-order-detail-page .status.waiting_customer_approval {
    background: #F9FF91 !important;
    background-color: #F9FF91 !important;
    color: #687500 !important;
    border: 1px solid #D2E52A !important;
}

.customer-order-detail-page .status.approved {
    background: #FFEDD5;
    color: #C2410C;
    border-color: #FB923C;
}

.customer-order-detail-page .status.ready {
    background: #CCFBF1;
    color: #0F766E;
    border-color: #5EEAD4;
}

.customer-order-detail-page .status.delivered {
    background: #DCFCE7;
    color: #166534;
    border-color: #4ADE80;
}

.customer-order-detail-page .status.cancelled,
.customer-order-detail-page .status.price_rejected {
    background: #FECACA;
    color: #991B1B;
    border-color: #DC2626;
}

.customer-order-detail-page .payment-section {
    margin-top: 22px;
    padding: 20px;
    background: #f8fbff;
    border: 1px solid #dce6f2;
    border-radius: 12px;
}

.customer-order-detail-page .payment-section h3 {
    margin: 0 0 15px;
    color: #263b70;
    font-size: 18px;
}

.customer-order-detail-page .payment-status {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 2;
}

.customer-order-detail-page .payment-unpaid {
    background: #fff8e8;
    color: #93651b;
}

.customer-order-detail-page .payment-pending {
    background: #eef5ff;
    color: #285b9a;
}

.customer-order-detail-page .payment-approved {
    background: #eaf8ef;
    color: #287343;
}

.customer-order-detail-page .payment-rejected {
    background: #fff0f0;
    color: #a83232;
}

.customer-order-detail-page .payment-reason {
    margin: 12px 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #f0cccc;
    border-radius: 8px;
    line-height: 2;
    font-size: 13px;
}

.customer-order-detail-page .payment-reason p {
    margin: 5px 0 0;
}

.customer-order-detail-page .receipt-form {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e1e8f0;
}

.customer-order-detail-page .receipt-form p {
    font-size: 13px;
    color: #64748b;
    line-height: 2;
}

.customer-order-detail-page .receipt-form input[type="file"] {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #d3deeb;
    border-radius: 8px;
    font-family: inherit;
}

.customer-order-detail-page .order-chat {
    margin-top: 25px;
    padding: 22px;
    background: #f7faff;
    border: 1px solid #dce6f2;
    border-radius: 14px;
}

.customer-order-detail-page .order-chat h3 {
    margin: 0 0 8px;
    color: #263e59;
    font-size: 19px;
}

.customer-order-detail-page .order-chat-description {
    color: #718096;
    font-size: 13px;
    margin-bottom: 20px;
}

.customer-order-detail-page .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 4px;
}

.customer-order-detail-page .chat-message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.customer-order-detail-page .chat-message.staff-message {
    align-self: flex-start;
    background: #e5efff;
    border: 1px solid #d1e1fa;
}

.customer-order-detail-page .chat-message.customer-message {
    align-self: flex-end;
    background: #ffffff;
    border: 1px solid #dce3ec;
}

.customer-order-detail-page .chat-message strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #31557d;
}

.customer-order-detail-page .chat-message p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 14px;
    color: #344054;
}

.customer-order-detail-page .chat-message small {
    display: block;
    margin-top: 7px;
    color: #8995a5;
    font-size: 11px;
    direction: ltr;
    text-align: left;
}

.customer-order-detail-page .chat-empty {
    text-align: center;
    padding: 25px 10px;
    color: #8995a5;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #d5dfeb;
}

.customer-order-detail-page .chat-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dce6f2;
}

.customer-order-detail-page .chat-form textarea {
    width: 100%;
    min-height: 95px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d3deeb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.customer-order-detail-page .chat-form textarea:focus {
    border-color: #5687c5;
}

/* هماهنگی فاصله دکمه‌های مشترک */
.customer-order-detail-page .receipt-form .sc-btn,
.customer-order-detail-page .chat-form .sc-btn {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .customer-order-detail-page {
        padding: 20px 12px;
    }

    .customer-order-detail-page .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-order-detail-page .detail-card {
        padding: 18px;
    }

    .customer-order-detail-page .info {
        grid-template-columns: 1fr;
    }

    .customer-order-detail-page .order-chat {
        padding: 14px;
    }

    .customer-order-detail-page .chat-message {
        max-width: 92%;
    }
}


/* =========================================
   ADMIN ORDER DETAIL PAGE
   ========================================= */

/* گفت‌وگوی سفارش */
.order-detail-page .order-chat {
    margin-top: 25px;
    padding: 22px;
    background: #f7faff;
    border: 1px solid #dce6f2;
    border-radius: 14px;
}

.order-detail-page .order-chat h3 {
    margin: 0 0 8px;
    color: #263e59;
    font-size: 19px;
}

.order-detail-page .order-chat-description {
    color: #718096;
    font-size: 13px;
    margin-bottom: 20px;
}

.order-detail-page .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 4px;
}

.order-detail-page .chat-message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.order-detail-page .chat-message.staff-message {
    align-self: flex-start;
    background: #e5efff;
    border: 1px solid #d1e1fa;
}

.order-detail-page .chat-message.customer-message {
    align-self: flex-end;
    background: #ffffff;
    border: 1px solid #dce3ec;
}

.order-detail-page .chat-message strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #31557d;
}

.order-detail-page .chat-message p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 14px;
    color: #344054;
}

.order-detail-page .chat-message small {
    display: block;
    margin-top: 7px;
    color: #8995a5;
    font-size: 11px;
    direction: ltr;
    text-align: left;
}

.order-detail-page .chat-empty {
    text-align: center;
    padding: 25px 10px;
    color: #8995a5;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #d5dfeb;
}

.order-detail-page .chat-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dce6f2;
}

.order-detail-page .chat-form textarea {
    width: 100%;
    min-height: 95px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d3deeb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.order-detail-page .chat-form textarea:focus {
    border-color: #5687c5;
}

/* وضعیت سفارش، مطابق پنل مشتری */
.order-detail-page .status {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
}

.order-detail-page .status.registered {
    background: #E9D5FF;
    color: #6B21A8;
    border-color: #C084FC;
}

.order-detail-page .status.in_progress {
    background: #DBEAFE;
    color: #1D4ED8;
    border-color: #60A5FA;
}

.order-detail-page .status.waiting_customer_approval {
    background: #F9FF91;
    color: #687500;
    border-color: #D2E52A;
}

.order-detail-page .status.approved {
    background: #FFEDD5;
    color: #C2410C;
    border-color: #FB923C;
}

.order-detail-page .status.ready {
    background: #CCFBF1;
    color: #0F766E;
    border-color: #5EEAD4;
}

.order-detail-page .status.delivered {
    background: #DCFCE7;
    color: #166534;
    border-color: #4ADE80;
}

.order-detail-page .status.cancelled,
.order-detail-page .status.price_rejected {
    background: #FECACA;
    color: #991B1B;
    border-color: #DC2626;
}

/* هدر صفحه جزئیات سفارش */
.admin-panel .order-detail-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    width: 100%;
    margin: 10px auto 25px;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

.admin-panel .order-detail-page .header h1 {
    font-size: 24px;
    margin: 0 0 7px;
    color: #263b70;
}

.admin-panel .order-detail-page .header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

@media (max-width: 600px) {
    .order-detail-page .order-chat {
        padding: 14px;
    }

    .order-detail-page .chat-message {
        max-width: 92%;
    }

    .admin-panel .order-detail-page .header {
        flex-wrap: wrap;
    }
}

/* =========================================
   Admin Dashboard
   ========================================= */

.admin-dashboard-page .welcome {
    margin: 0 0 25px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    transform: none;
    aspect-ratio: auto;
}

.admin-dashboard-page .welcome h1 {
    font-size: 23px;
    margin-bottom: 10px;
}

.admin-dashboard-page .welcome p {
    color: #64748b;
    font-size: 14px;
}

.admin-dashboard-page .actions {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-dashboard-page .action-btn {
    display: inline-block;
    background: #172554;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.2s;
}

.admin-dashboard-page .action-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.admin-dashboard-page .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: stretch;
    gap: 18px;
}

.admin-dashboard-page .stat-card-link {
    display: flex;
    min-width: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.admin-dashboard-page .stat-card-link:focus-visible {
    outline: 3px solid #8CBCEB;
    outline-offset: 4px;
    border-radius: 16px;
}

.admin-dashboard-page .stat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 205px;
    padding: 88px 23px 23px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow:
        0 8px 25px rgba(31,41,55,0.07),
        inset 0 1px 0 rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: 0.3s ease;
}

.admin-dashboard-page .stat-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 14px 30px rgba(31,41,55,0.13),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.admin-dashboard-page .stat-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
}

/* آیکون سه‌بعدی */

.admin-dashboard-page .stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.65),
        inset 0 -4px 6px rgba(0,0,0,0.12),
        0 5px 0 rgba(0,0,0,0.10),
        0 9px 16px rgba(0,0,0,0.16);
    transform: perspective(400px) rotateX(5deg);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    z-index: 2;
}

.admin-dashboard-page .stat-icon svg {
    width: 30px;
    height: 30px;
    display: block;
    color: #fff;
    stroke: currentColor;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

.admin-dashboard-page .stat-card h3 {
    font-size: 14px;
    color: #334155;
    margin: 0 0 13px;
}

.admin-dashboard-page .number {
    font-size: 31px;
    font-weight: 900;
    color: #172554;
    margin-top: auto;
}

.admin-dashboard-page .stat-hint {
    font-size: 11px;
    color: #475569;
    margin-top: 10px;
}

/* کل سفارش‌ها - بنفش */

.admin-dashboard-page .stat-card.total {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 55%, #ddd6fe 100%);
}

.admin-dashboard-page .total::before {
    background: #7c3aed;
}

.admin-dashboard-page .total .stat-icon {
    background: linear-gradient(145deg, #c4a3ff, #7c3aed 65%, #5b21b6);
}

.admin-dashboard-page .total .number {
    color: #5b21b6;
}

/* سفارش‌های جدید - نارنجی */

.admin-dashboard-page .stat-card.new {
    background: linear-gradient(135deg, #fed7aa 0%, #ffedd5 55%, #fff7ed 100%);
}

.admin-dashboard-page .new::before {
    background: #f97316;
}

.admin-dashboard-page .new .stat-icon {
    background: linear-gradient(145deg, #ffc18a, #f97316 65%, #c2410c);
}

.admin-dashboard-page .new .number {
    color: #c2410c;
}

/* ثبت‌شده امروز - بنفش کم‌رنگ */
.admin-dashboard-page .stat-card-link[href*="new_today=1"] .stat-card {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 55%, #F5F3FF 100%);
}

.admin-dashboard-page .stat-card-link[href*="new_today=1"] .stat-card::before {
    background: #8B5CF6;
}

.admin-dashboard-page .stat-card-link[href*="new_today=1"] .stat-icon {
    background: linear-gradient(145deg, #C4B5FD, #8B5CF6 65%, #6D28D9);
}

.admin-dashboard-page .stat-card-link[href*="new_today=1"] .number {
    color: #6D28D9;
}

/* در انتظار تأیید مبلغ توسط مشتری - هماهنگ کامل با پنل مشتری */

.admin-dashboard-page .stat-card-link[href*="status=waiting_customer_approval"] .stat-card {
    background: linear-gradient(
        135deg,
        #F9FF91 0%,
        #FAFFB8 55%,
        #FDFFE5 100%
    );
}

.admin-dashboard-page .stat-card-link[href*="status=waiting_customer_approval"] .stat-card::before {
    background: #D2E52A;
}

/* آیکون زرد سه‌بعدی - دقیقاً مشابه پنل مشتری */
.admin-dashboard-page .stat-card-link[href*="status=waiting_customer_approval"] .stat-icon {
    background: linear-gradient(145deg, #efff83, #b5c91e 65%, #829400);
    color: #687500;
}

.admin-dashboard-page .stat-card-link[href*="status=waiting_customer_approval"] .stat-card h3,
.admin-dashboard-page .stat-card-link[href*="status=waiting_customer_approval"] .stat-hint {
    color: #687500;
}

.admin-dashboard-page .stat-card-link[href*="status=waiting_customer_approval"] .number {
    color: #788500;
}

/* در حال انجام - آبی */

.admin-dashboard-page .stat-card.progress {
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 55%, #dbeafe 100%);
}

.admin-dashboard-page .progress::before {
    background: #2563eb;
}

.admin-dashboard-page .progress .stat-icon {
    background: linear-gradient(145deg, #93c5fd, #2563eb 65%, #1e40af);
}

.admin-dashboard-page .progress .number {
    color: #1e40af;
}

/* آماده تحویل - فیروزه‌ای */

.admin-dashboard-page .stat-card.ready {
    background: linear-gradient(135deg, #a5f3fc 0%, #cffafe 55%, #ecfeff 100%);
}

.admin-dashboard-page .ready::before {
    background: #06b6d4;
}

.admin-dashboard-page .ready .stat-icon {
    background: linear-gradient(145deg, #99f6e4, #0d9488 65%, #0f766e);
}

.admin-dashboard-page .ready .number {
    color: #0e7490;
}

/* تحویل‌شده - سبز */

.admin-dashboard-page .stat-card.delivered {
    background: linear-gradient(135deg, #a7f3d0 0%, #d1fae5 55%, #ecfdf5 100%);
}

.admin-dashboard-page .delivered::before {
    background: #10b981;
}

.admin-dashboard-page .delivered .stat-icon {
    background: linear-gradient(145deg, #86efac, #16a34a 65%, #166534);
}

.admin-dashboard-page .delivered .number {
    color: #047857;
}

/* مدیریت مشتریان - خاکستری */

.admin-dashboard-page .stat-card.customers {
    background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 55%, #f8fafc 100%);
}

.admin-dashboard-page .customers::before {
    background: #64748b;
}

.admin-dashboard-page .customers .stat-icon {
    background: linear-gradient(145deg, #cbd5e1, #64748b 65%, #475569);
}

.admin-dashboard-page .customers .number {
    color: #475569;
}

/* افکت برجستگی هنگام رفتن موس روی کارت */

.admin-dashboard-page .stat-card:hover .stat-icon {
    transform: perspective(400px) rotateX(0deg) translateY(-3px);
    box-shadow:
        inset 0 2px 2px rgba(255,255,255,0.75),
        inset 0 -3px 5px rgba(0,0,0,0.10),
        0 7px 0 rgba(0,0,0,0.10),
        0 13px 20px rgba(0,0,0,0.18);
}

@media(max-width: 600px) {
    .admin-dashboard-page .action-btn {
        width: 100%;
        text-align: center;
    }

    .admin-dashboard-page .stats {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .admin-dashboard-page .stat-card {
        min-height: 185px;
        padding: 88px 20px 20px;
    }

    .admin-dashboard-page .number {
        font-size: 27px;
    }
}


/* =========================================
   Admin - Manage Customers
   ========================================= */

.manage-customers-page {
    direction: rtl;
    padding: 25px 0;
    color: #263445;
}

.manage-customers-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.manage-customers-page .page-header h2 {
    margin: 0;
    font-size: 23px;
}

.manage-customers-page .back {
    text-decoration: none;
    background: #edf2f7;
    color: #344054;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 14px;
}

.manage-customers-page .filter-box,
.manage-customers-page .table-box {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 3px 12px rgba(0,0,0,.035);
}

.manage-customers-page .filter-box h3 {
    margin: 0 0 20px;
    font-size: 17px;
}

.manage-customers-page .filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.manage-customers-page .filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manage-customers-page .filter-item label {
    font-size: 13px;
    font-weight: 600;
}

.manage-customers-page .filter-item input,
.manage-customers-page .filter-item select {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    padding: 9px 12px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
}

.manage-customers-page .filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* استایل مشترک هر سه دکمه */

.manage-customers-page .filter-actions button,
.manage-customers-page .filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 43px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
}

/* اعمال فیلتر و خروجی Excel */

.manage-customers-page .filter-button,
.manage-customers-page .excel-button {
    background: #217346;
    color: #fff;
    border-color: #217346;
}

.manage-customers-page .filter-button:hover,
.manage-customers-page .excel-button:hover {
    background: #185c37;
    border-color: #185c37;
    box-shadow: 0 3px 8px rgba(33,115,70,0.2);
}

/* پاک کردن فیلترها */

.manage-customers-page .filter-actions a.reset-button {
    background: #edf2f7 !important;
    color: #344054 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 11px 20px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    text-decoration: none !important;
}

.manage-customers-page .reset-button:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.manage-customers-page .filter-errors {
    background: #fff1f0;
    color: #b42318;
    border: 1px solid #fecdca;
    border-radius: 9px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
}

.manage-customers-page .result-count {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 18px;
}

.manage-customers-page .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.manage-customers-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 13px;
}

.manage-customers-page th,
.manage-customers-page td {
    padding: 13px 12px;
    text-align: center;
    border-bottom: 1px solid #edf0f3;
    white-space: nowrap;
}

.manage-customers-page th {
    background: #f1f7f2;
    color: #365b40;
    font-weight: 700;
}

.manage-customers-page .status-active {
    color: #217346;
    font-weight: 700;
}

.manage-customers-page .status-inactive {
    color: #b42318;
    font-weight: 700;
}

.manage-customers-page .empty {
    text-align: center;
    padding: 35px 15px;
    color: #777;
}

@media (max-width: 768px) {
    .manage-customers-page {
        padding: 15px 0;
    }

    .manage-customers-page .filters-grid {
        grid-template-columns: 1fr;
    }

    .manage-customers-page .filter-box,
    .manage-customers-page .table-box {
        padding: 15px;
    }

    .manage-customers-page .page-header h2 {
        font-size: 19px;
    }

    .manage-customers-page .filter-actions button,
    .manage-customers-page .filter-actions a {
        flex: 1;
    }
}

/* برچسب اعلان جدید */
.notification-page .notification-new {
    color: #2563eb;
    font-size: 12px;
}

/* ==========================================
   صفحه ورود مدیریت
   ========================================== */

.admin-login-page,
.admin-login-page * {
    box-sizing: border-box;
}

.admin-login-page {
    margin: 0;
    padding: 20px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f3f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-page .login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.07);
}

.admin-login-page h1 {
    text-align: center;
    color: #172554;
    font-size: 23px;
    margin-bottom: 10px;
}

.admin-login-page .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 30px;
}

.admin-login-page label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 14px;
    font-weight: bold;
}

.admin-login-page input {
    width: 100%;
    padding: 13px;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    margin-bottom: 20px;
    font-family: Tahoma;
    font-size: 14px;
    outline: none;
}

.admin-login-page input:focus {
    border-color: #172554;
}

.admin-login-page button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #172554;
    color: white;
    font-family: Tahoma;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.admin-login-page button:hover {
    background: #1e40af;
}

.admin-login-page .error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ==========================================
   صفحه ورود مشتری
   ========================================== */

.customer-login-page,
.customer-login-page * {
    box-sizing: border-box;
}

.customer-login-page {
    margin: 0;
    padding: 20px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f3f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-login-page .login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.07);
}

.customer-login-page h1 {
    text-align: center;
    color: #1e293b;
    font-size: 23px;
    margin-bottom: 10px;
}

.customer-login-page .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 30px;
}

.customer-login-page label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 14px;
    font-weight: bold;
}

.customer-login-page input {
    width: 100%;
    padding: 13px;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    margin-bottom: 20px;
    font-family: Tahoma;
    font-size: 14px;
    outline: none;
}

.customer-login-page input:focus {
    border-color: #2563eb;
}

.customer-login-page button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    font-family: Tahoma;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.customer-login-page button:hover {
    background: #1d4ed8;
}

.customer-login-page .register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #64748b;
}

.customer-login-page a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.customer-login-page .error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ==========================================
   صفحه ثبت‌نام مشتری
   ========================================== */

.customer-register-page,
.customer-register-page * {
    box-sizing: border-box;
}

.customer-register-page {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f3f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.customer-register-page .register-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
}

.customer-register-page .logo {
    text-align: center;
    margin-bottom: 25px;
}

.customer-register-page .logo h1 {
    color: #2563eb;
    font-size: 27px;
    margin: 0 0 10px;
}

.customer-register-page .logo p {
    color: #777;
    font-size: 13px;
}

.customer-register-page .form-group {
    margin-bottom: 17px;
}

.customer-register-page label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.customer-register-page input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
}

.customer-register-page input:focus {
    border-color: #2563eb;
}

.customer-register-page button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.customer-register-page button:hover {
    background: #1d4ed8;
}

.customer-register-page .login-link {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: #666;
}

.customer-register-page .login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.customer-register-page .error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

.customer-register-page .messages {
    color: #15803d;
    background: #dcfce7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media(max-width: 480px) {
    .customer-register-page .register-container {
        padding: 25px 20px;
    }
}

/* ==========================================
   صفحه پیگیری سفارش مشتری
   ========================================== */

.order-tracking-page,
.order-tracking-page * {
    box-sizing: border-box;
}

.order-tracking-page {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f3f5f9;
    margin: 0;
    padding: 30px 15px;
    color: #1e293b;
}

.order-tracking-page .container {
    max-width: 1000px;
    margin: auto;
}

.order-tracking-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.order-tracking-page .header h2 {
    margin: 0;
}

.order-tracking-page .back {
    background: #2563eb;
    color: white;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

.order-tracking-page .table-box {
    background: white;
    border-radius: 14px;
    padding: 20px;
    overflow-x: auto;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}

.order-tracking-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.order-tracking-page th,
.order-tracking-page td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.order-tracking-page th {
    background: #f1f5f9;
}

.order-tracking-page .empty {
    text-align: center;
    padding: 40px 15px;
    color: #64748b;
    line-height: 2;
}

.order-tracking-page .tracking-order-number {
    color: #2563eb !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.order-tracking-page .tracking-order-number:hover {
    text-decoration: underline !important;
}

/* دکمه‌های تأیید و رد قیمت */
.order-tracking-page .tracking-approve-button {
    background: #15803d;
    color: white;
    border: 0;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
}

.order-tracking-page .tracking-reject-button {
    background: #dc2626;
    color: white;
    border: 0;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 600px) {
    .order-tracking-page .header h2 {
        font-size: 18px;
    }
}

/* ==========================================
   صفحه سوابق سفارش‌های مشتری
   ========================================== */

.order-history-page {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f4f7fb;
    margin: 0;
    padding: 30px 15px;
    color: #263445;
}

.order-history-page .container {
    max-width: 1000px;
    margin: auto;
}

.order-history-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-history-page h2 {
    margin: 0;
}

.order-history-page .back {
    background: #2563eb;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}

.order-history-page .table-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.order-history-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.order-history-page th,
.order-history-page td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.order-history-page th {
    background: #f1f5f9;
}

.order-history-page .empty {
    text-align: center;
    padding: 35px;
    color: #777;
}

/* شماره سفارش */
.order-history-page .history-order-number {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
}

/* لینک پروفایل مشتری در هدر داشبورد */
.customer-profile-link {
    text-decoration: none;
    color: inherit;
}

/* شماره سفارش در جدول داشبورد مشتری */
.dashboard-order-number {
    color: #2563eb;
    font-weight: 900;
    text-decoration: underline;
}

/* فاصله دکمه بازگشت در پروفایل مشتری */
.profile-back-button {
    margin-top: 20px;
}

/* لینک صفحه اصلی در لوگو و عنوان هدر پنل مشتری */
.customer-home-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* فرم مخفی خروج از حساب مشتری */
.customer-logout-form-hidden {
    display: none;
}

/* کارت رسیدهای منتظر تأیید مدیریت - صورتی مرجانی */

.admin-dashboard-page .stat-card-link[href*="payment_status=pending"] .stat-card {
    background: linear-gradient(
        135deg,
        #FFE0D6 0%,
        #FFC2B3 55%,
        #FFF0EB 100%
    );
}

.admin-dashboard-page .stat-card-link[href*="payment_status=pending"] .stat-card::before {
    background: #FF927A;
}

.admin-dashboard-page .stat-card-link[href*="payment_status=pending"] .stat-icon {
    background: linear-gradient(
        145deg,
        #FFB6A5,
        #FF927A 65%,
        #E65B45
    );
    color: #9F3528;
}

.admin-dashboard-page .stat-card-link[href*="payment_status=pending"] .stat-card h3,
.admin-dashboard-page .stat-card-link[href*="payment_status=pending"] .stat-hint {
    color: #9F3528;
}

.admin-dashboard-page .stat-card-link[href*="payment_status=pending"] .number {
    color: #B84432;
}

/* رسیدهای منتظر تأیید مدیریت - صورتی مرجانی */

.admin-panel .status.receipt-pending-approval {
    background: #FFE0D6 !important;
    background-color: #FFE0D6 !important;
    color: #9F3528 !important;
    border: 1px solid #FF927A !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

/* کارت رسیدهای منتظر تأیید مدیریت - صورتی مرجانی */

.layout .stats .customer-card-pending-receipt {
    background: linear-gradient(135deg, #FFE0D6 0%, #FFC2B3 55%, #FFF0EB 100%) !important;
}

.layout .stats .customer-card-pending-receipt::before {
    background: #FF927A !important;
}

.layout .stats .customer-card-pending-receipt .stat-card-icon {
    background: linear-gradient(145deg, #FFB6A5, #FF927A 65%, #E65B45) !important;
    color: #9F3528 !important;
}

.layout .stats .customer-card-pending-receipt p,
.layout .stats .customer-card-pending-receipt small {
    color: #9F3528 !important;
}

.layout .stats .customer-card-pending-receipt h2 {
    color: #B84432 !important;
}


/* ==========================================
   طراحی حرفه‌ای بخش رسید پرداخت پنل مدیریت
   ========================================== */

.admin-panel .order-detail-page .payment-receipt-section {
    margin-top: 28px;
    padding: 25px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid #dce9f8;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(35, 75, 125, 0.06);
    direction: rtl;
}

.admin-panel .order-detail-page .payment-receipt-section > h3 {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dce7f5;
    color: #183153;
    font-size: 19px;
    font-weight: 800;
}

.admin-panel .order-detail-page .payment-status-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 13px 16px;
    background: #ffffff;
    border: 1px solid #e2ebf5;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
}

.admin-panel .order-detail-page .payment-status-info strong {
    color: #183153;
}

.admin-panel .order-detail-page .receipt-preview {
    margin: 18px 0 22px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2ebf5;
    border-radius: 14px;
    text-align: center;
}

.admin-panel .order-detail-page .receipt-preview > p:first-child {
    margin-top: 0;
    margin-bottom: 15px;
    color: #263b55;
    font-weight: 700;
}

.admin-panel .order-detail-page .receipt-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid #dce7f5 !important;
    box-shadow: 0 4px 14px rgba(30, 60, 100, 0.08);
}

.admin-panel .order-detail-page .receipt-preview a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.admin-panel .order-detail-page .receipt-preview a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* چیدمان فرم‌های تأیید و رد رسید */

.admin-panel .order-detail-page .receipt-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
    align-items: stretch;
}

.admin-panel .order-detail-page .receipt-actions form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2eaf3;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(30, 60, 100, 0.045);
}

/* کادر تأیید رسید */

.admin-panel .order-detail-page .receipt-actions form:first-child {
    background: linear-gradient(145deg, #f0fdf4, #ffffff);
    border-color: #bbebca;
}

/* کادر رد رسید */

.admin-panel .order-detail-page .receipt-actions form:last-child {
    background: linear-gradient(145deg, #fff7f7, #ffffff);
    border-color: #f5cccc;
}

.admin-panel .order-detail-page .receipt-actions label {
    display: block;
    margin: 0;
    color: #263b55;
    font-size: 14px;
    font-weight: 800;
}

/* کادر نوشتن دلیل رد رسید */

.admin-panel .order-detail-page .receipt-actions textarea {
    display: block;
    width: 100%;
    min-height: 115px;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d6e0eb;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #263b55;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 13px;
    line-height: 2;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-panel .order-detail-page .receipt-actions textarea::placeholder {
    color: #94a3b8;
}

.admin-panel .order-detail-page .receipt-actions textarea:focus {
    border-color: #8cbceb;
    box-shadow: 0 0 0 3px rgba(140, 188, 235, 0.18);
}

/* دکمه‌های تأیید و رد رسید */

.admin-panel .order-detail-page .receipt-actions .sc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 11px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.admin-panel .order-detail-page .receipt-actions .sc-btn--success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    color: #ffffff;
}

.admin-panel .order-detail-page .receipt-actions .sc-btn--success:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    border-color: #166534;
    box-shadow: 0 6px 15px rgba(21, 128, 61, 0.2);
    transform: translateY(-2px);
}

.admin-panel .order-detail-page .receipt-actions .sc-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #dc2626;
    color: #ffffff;
}

.admin-panel .order-detail-page .receipt-actions .sc-btn--danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

/* هماهنگ‌سازی عمودی کادرهای تأیید و رد رسید */

.admin-panel .order-detail-page .receipt-actions form {
    justify-content: flex-start;
}

.admin-panel .order-detail-page .receipt-actions form:first-child {
    justify-content: flex-end;
}

.admin-panel .order-detail-page .receipt-actions form:first-child .sc-btn {
    margin-top: auto;
}

/* نمایش در صفحه‌های باریک */

@media (max-width: 600px) {
    .admin-panel .order-detail-page .payment-receipt-section {
        padding: 16px;
    }

    .admin-panel .order-detail-page .receipt-actions {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .admin-panel .order-detail-page .receipt-actions form {
        padding: 16px;
    }
}

/* فیلترهای پیشرفته مدیریت سفارش‌ها */

.manage-orders-page .order-filters-form {
    display: block;
    width: 100%;
    margin-bottom: 22px;
}

.manage-orders-page .order-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.manage-orders-page .filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.manage-orders-page .filter-field label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}

.manage-orders-page .filter-field input,
.manage-orders-page .filter-field select {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 8px 12px;
    border: 1px solid #d5e3f1;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.manage-orders-page .filter-field input:focus,
.manage-orders-page .filter-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(140, 188, 235, 0.18);
}

.manage-orders-page .order-filters-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.manage-orders-page .order-filters-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    text-decoration: none;
}


/* =========================================
   فیلترهای پیشرفته سفارش‌های پنل مشتری
========================================= */

.all-orders-page .customer-order-filters {
    width: 100%;
    margin: 18px 0 16px;
    padding: 20px;
    background: #F7FAFF;
    border: 1px solid #E1ECF8;
    border-radius: 14px;
    box-sizing: border-box;
}

.all-orders-page .customer-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.all-orders-page .customer-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.all-orders-page .customer-filter-field label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}

.all-orders-page .customer-filter-field input,
.all-orders-page .customer-filter-field select {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 8px 12px;
    border: 1px solid #D5E3F1;
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.all-orders-page .customer-filter-field input:focus,
.all-orders-page .customer-filter-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(140, 188, 235, 0.18);
}

.all-orders-page .customer-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.all-orders-page .customer-filter-actions a,
.all-orders-page .customer-filter-actions button {
    min-height: 40px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.all-orders-page .customer-filter-result {
    margin: 12px 0 16px;
    padding: 11px 15px;
    border-radius: 9px;
    background: var(--sky-light);
    color: var(--text);
    font-size: 13px;
}

.all-orders-page .customer-filter-result strong {
    color: var(--navy);
    margin-right: 4px;
    font-size: 15px;
}
