:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-muted: #ffffff;
    --text: #17243b;
    --subtle: #6b7280;
    --line: #d8e1ee;
    --primary: #1d4ed8;
    --primary-2: #1e40af;
    --danger: #dc2626;
    --danger-2: #b91c1c;
    --status-pending-bg: #fef3c7;
    --status-pending-text: #92400e;
    --status-approved-bg: #dcfce7;
    --status-approved-text: #166534;
    --status-rejected-bg: #fee2e2;
    --status-rejected-text: #991b1b;
    --status-blocked-bg: #e5e7eb;
    --status-blocked-text: #374151;
    --soft-blue: #eff6ff;
    --soft-green: #dcfce7;
    --soft-red: #fee2e2;
    --shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Vazir", Tahoma, sans-serif;
}

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

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-main > .suppliers-layout,
.page-main > .products-layout,
.page-main > .orders-layout,
.page-main > .files-layout,
.page-main > .supplier-page-layout {
    flex: 1;
    min-height: 0;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    background: #0f172a;
    color: #fff;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.topbar .brand {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.topbar .nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.18s ease;
}

.topbar .nav a:hover {
    background: #334155;
    color: #fff;
}

.topbar .nav a.active {
    background: var(--primary);
    border-color: var(--primary-2);
    color: #fff;
}

.card {
    margin-top: 14px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.fill-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fill-card .table-wrap {
    flex: 1;
}

h1,
h2,
h3 {
    margin: 0 0 10px;
    color: #0f172a;
}

.page-main h1 {
    font-size: 85% !important;
}

.page-main h2 {
    font-size: 85% !important;
}

.page-main h3 {
    font-size: 85% !important;
}

p {
    margin: 0;
}

.muted {
    color: var(--subtle);
    font-size: 13px;
}

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

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

.dashboard-card {
    display: block;
    border: 1px solid #c9d4e5;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    transition: all 0.18s ease;
}

.dashboard-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.dashboard-card p {
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.7;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    background: #eff6ff;
}

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

.stat-card {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    color: #475569;
}

.stat-value {
    font-size: 20px;
    line-height: 1.1;
}

.stat-suppliers {
    background: #ffffff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.stat-products-all {
    background: #ffffff;
    border-color: #a5f3fc;
    color: #155e75;
}

.stat-products-active {
    background: #ffffff;
    border-color: #86efac;
    color: #166534;
}

.stat-products-inactive {
    background: #ffffff;
    border-color: #fcd34d;
    color: #92400e;
}

.stat-orders-all {
    background: #ffffff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.stat-orders-approved {
    background: #ffffff;
    border-color: #86efac;
    color: #166534;
}

.stat-orders-rejected {
    background: #ffffff;
    border-color: #fca5a5;
    color: #991b1b;
}

.stat-orders-pending {
    background: #ffffff;
    border-color: #fdba74;
    color: #9a3412;
}

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.search-tab {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: 7px 14px;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
}

.search-tab.active {
    background: var(--primary);
    border-color: var(--primary-2);
    color: #fff;
}

.search-mode {
    display: none;
}

.search-mode:not(.active) {
    display: none !important;
}

.search-mode.active {
    display: block;
}

.search-mode.active.grid {
    display: grid;
}

.search-filter-panel,
.search-results-panel,
.supplier-products-v6-filters,
.supplier-orders-v11-search-box,
.supplier-inquiries-v13-filter-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.live-filter-grid,
.search-filter-panel .grid,
.supplier-products-v6-filters .grid,
.supplier-orders-v11-search-box .grid,
.supplier-inquiries-v13-filter-card .grid {
    gap: 14px;
}

.search-filter-panel .field label,
.search-results-panel .field label,
.supplier-products-v6-filters .field label,
.supplier-orders-v11-search-box .field label,
.supplier-inquiries-v13-filter-card .field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.search-filter-panel input,
.search-filter-panel select,
.search-results-panel input,
.search-results-panel select,
.supplier-products-v6-filters input,
.supplier-products-v6-filters select,
.supplier-orders-v11-search-box input,
.supplier-orders-v11-search-box select,
.supplier-inquiries-v13-filter-card input,
.supplier-inquiries-v13-filter-card select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-filter-panel input:focus,
.search-filter-panel select:focus,
.search-results-panel input:focus,
.search-results-panel select:focus,
.supplier-products-v6-filters input:focus,
.supplier-products-v6-filters select:focus,
.supplier-orders-v11-search-box input:focus,
.supplier-orders-v11-search-box select:focus,
.supplier-inquiries-v13-filter-card input:focus,
.supplier-inquiries-v13-filter-card select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.suppliers-layout {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
}

.suppliers-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 240px;
    flex: 0 0 240px;
    position: sticky;
    top: 14px;
    min-height: 100%;
}

.suppliers-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.suppliers-menu-btn {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 13px;
}

.suppliers-menu-btn.active {
    background: var(--primary);
    border-color: var(--primary-2);
    color: #fff;
}

.suppliers-panel {
    display: none;
}

.suppliers-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
}

.products-menu {
    width: 240px;
    flex: 0 0 240px;
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

.products-menu-btn {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 13px;
}

.products-menu-btn.active {
    background: var(--primary);
    border-color: var(--primary-2);
    color: #fff;
}

.products-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.products-panel {
    display: none;
}

.products-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.orders-layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
}

.orders-menu {
    width: 240px;
    flex: 0 0 240px;
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

.orders-menu-btn {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 13px;
}

.orders-menu-btn.active {
    background: var(--primary);
    border-color: var(--primary-2);
    color: #fff;
}

.orders-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.orders-panel {
    display: none;
}

.orders-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.files-layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
}

.files-menu {
    width: 240px;
    flex: 0 0 240px;
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

.files-menu-btn {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 13px;
}

.files-menu-btn.active {
    background: var(--primary);
    border-color: var(--primary-2);
    color: #fff;
}

.files-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.files-panel {
    display: none;
}

.files-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.supplier-page-layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
    flex: 1;
}

.supplier-side-menu {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 14px;
    min-height: 100%;
    background: #1e293b;
    border: none;
    border-radius: 16px;
    padding: 24px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.supplier-side-title {
    color: #fff;
    font-size: 20px;
    margin: 0 0 14px;
    text-align: center;
}

.supplier-side-link {
    min-height: 42px;
    border-radius: 10px;
    border: 0;
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: .2s ease;
}

.supplier-side-link:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
}

.supplier-side-link.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.admin-side-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-side-group > .supplier-side-link {
    position: relative;
    justify-content: flex-start;
    padding: 0 12px;
}

.admin-side-group > .supplier-side-link::before {
    content: "▸";
    margin-left: 8px;
    font-size: 11px;
    color: #94a3b8;
    transition: transform .2s ease, color .2s ease;
}

.admin-side-group.active > .supplier-side-link::before {
    transform: rotate(90deg);
    color: #fff;
}

.admin-side-group .supplier-side-sublink {
    display: none;
}

.admin-side-group.active .supplier-side-sublink {
    display: inline-flex;
}

.supplier-side-sublink {
    min-height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 12px;
    text-decoration: none;
    transition: .2s ease;
}

.supplier-side-sublink:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.06);
}

.supplier-side-sublink.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.supplier-page-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.supplier-page-content > .card:last-child,
.page-main > .card:last-child {
    flex: 1;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 37px;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid #c9d4e5;
    background: var(--panel-muted);
    color: var(--text);
    font-size: 13px;
    font-family: "Vazir", Tahoma, sans-serif;
}

.field textarea {
    min-height: 112px;
    resize: vertical;
}

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

.inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    min-height: 35px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #c9d4e5;
    background: var(--panel-muted);
    color: var(--text);
    font-size: 13px;
    font-family: "Vazir", Tahoma, sans-serif;
}

.search-choices {
    margin-top: 8px;
    gap: 14px;
}

.search-choices label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
}

.search-choices input[type="radio"] {
    width: 13px;
    height: 13px;
    accent-color: #1d4ed8;
}

.admin-search-toggle {
    margin: 0 0 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: "Vazir", Tahoma, sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-2);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-2);
}

.btn-muted {
    background: #e2e8f0;
    color: #111827;
}

.btn-muted:hover {
    background: #cbd5e1;
}

.alert {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.alert-success {
    background: var(--soft-green);
    color: #166534;
}

.alert-error {
    background: var(--soft-red);
    color: #991b1b;
}

.table-wrap {
    overflow: auto;
}

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

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
    vertical-align: top;
    font-size: 13px;
}

.table th {
    background: #ffffff;
    color: #1e3a8a;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.badge-pending {
    background: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.badge-approved {
    background: var(--status-approved-bg);
    color: var(--status-approved-text);
}

.badge-rejected {
    background: var(--status-rejected-bg);
    color: var(--status-rejected-text);
}

.badge-blocked {
    background: var(--status-blocked-bg);
    color: var(--status-blocked-text);
}

.files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.supplier-inline-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supplier-inline-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #c9d4e5;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.supplier-inline-list[hidden],
.product-inline-list[hidden] {
    display: none !important;
}

.supplier-inline-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.supplier-inline-option:hover {
    background: #eff6ff;
}

.supplier-inline-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #1d4ed8;
    flex: 0 0 20px;
}

.supplier-inline-empty {
    margin: 6px 0 0;
    text-align: center;
}

.product-inline-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-inline-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 35;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #c9d4e5;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-inline-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.product-inline-option:hover {
    background: #eff6ff;
}

.product-inline-option span {
    flex: 1;
    text-align: right;
}

.product-inline-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #1d4ed8;
    flex: 0 0 20px;
}

.product-boolean-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.product-boolean-inline input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #1d4ed8;
    flex: 0 0 20px;
}
.dynamic-field:has(.product-boolean-inline) {
    grid-column: span 1;
}

@media (max-width: 820px) {
    .dynamic-field:has(.product-boolean-inline) {
        grid-column: span 2;
    }
}

.dynamic-field.toggle-row-source {
    grid-column: 1 / 2;
}
#dynamic-fields-grid .field {
    min-height: 85px;
}

.dynamic-field.toggle-row-target {
    grid-column: 2 / 3;
}

.product-inline-empty {
    margin: 6px 0 0;
    text-align: center;
}

.jalali-date-wrap {
    position: relative;
}

.jalali-date-wrap .jalali-date-input {
    padding-left: 36px;
    direction: ltr;
    text-align: right;
    letter-spacing: 0.3px;
}

.jalali-date-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    user-select: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1200;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
}

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

    .topbar .nav {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .container {
        padding: 8px;
    }

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

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

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

    .suppliers-layout {
        flex-direction: column;
        min-height: auto;
    }

    .suppliers-menu {
        width: 100%;
        flex-basis: auto;
        position: static;
    }

    .products-layout {
        flex-direction: column;
        min-height: auto;
    }

    .products-menu {
        width: 100%;
        flex-basis: auto;
        position: static;
    }

    .orders-layout {
        flex-direction: column;
        min-height: auto;
    }

    .orders-menu {
        width: 100%;
        flex-basis: auto;
        position: static;
    }

    .files-layout {
        flex-direction: column;
        min-height: auto;
    }

    .files-menu {
        width: 100%;
        flex-basis: auto;
        position: static;
    }

    .supplier-page-layout {
        flex-direction: column;
        min-height: auto;
    }

    .supplier-side-menu {
        width: 100%;
        flex-basis: auto;
        position: static;
    }

    .page-main > .card:last-child,
    .supplier-page-content > .card:last-child,
    .suppliers-panel.active,
    .products-panel.active,
    .orders-panel.active,
    .files-panel.active {
        flex: initial;
    }

    .topbar .nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .topbar .nav a {
        width: 100%;
    }
}

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

    .topbar .nav {
        grid-template-columns: 1fr;
    }
}

.diesel-inline-picker,
.product-inline-picker,
.supplier-inline-picker {
    position: relative;
}

.auth-shell {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #f3f4f6;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 26px 22px;
}

.auth-title {
    text-align: center;
    margin: 0;
    color: #1f2937;
}

.auth-subtitle {
    text-align: center;
    color: #6b7280;
    margin: 8px 0 18px;
}

.auth-role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
}

.auth-role-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: 0;
    cursor: pointer;
    background: transparent;
}

.auth-role-chip-muted {
    color: #6b7280;
}

.auth-role-chip-active {
    background: #ffffff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

.auth-form .field label {
    font-weight: 600;
}

.auth-form-compact .field input,
.auth-form-compact .field select,
.auth-form-compact .field textarea {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
}

.auth-form-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.auth-submit {
    width: 100%;
    height: 42px;
}

.auth-shell-login {
    background: #eef0f3;
}

.auth-card-login {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 12px;
}

.brand-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
}

.role-tabs {
    margin-bottom: 12px;
}

.auth-form.auth-admin-mode .auth-submit {
    background: #111827;
}

.supplier-dashboard-v3 {
    --sd-primary: #1e293b;
    --sd-accent: #3b82f6;
    --sd-bg: #f8fafc;
    --sd-card-bg: #ffffff;
    --sd-text: #0f172a;
    --sd-muted: #64748b;
    --sd-success: #22c55e;
    --sd-warning: #f59e0b;
    --sd-danger: #ef4444;
    background: var(--sd-bg);
    border-radius: 14px;
    padding: 24px;
}

.supplier-dashboard-v3-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.supplier-dashboard-v3-header h1 {
    margin: 0;
    color: var(--sd-text);
}

.supplier-dashboard-v3-user-box {
    background: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.supplier-dashboard-v3-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.supplier-dashboard-v3-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    overflow: hidden;
}

.supplier-dashboard-v3-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
}

.supplier-dashboard-v3-card:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0) 65%);
}

.supplier-dashboard-v3-card:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0) 65%);
}

.supplier-dashboard-v3-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(255, 255, 255, 0) 65%);
}

.supplier-dashboard-v3-card:nth-child(4)::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255, 255, 255, 0) 65%);
}

.supplier-dashboard-v3-card h3,
.supplier-dashboard-v3-number {
    position: relative;
    z-index: 1;
}

.supplier-dashboard-v3-card h3 {
    font-size: 14px;
    color: #334155;
    margin: 0 0 10px;
}

.supplier-dashboard-v3-number {
    font-size: 28px;
    font-weight: 800;
}

.supplier-dashboard-v3-number-accent { color: var(--sd-accent); }
.supplier-dashboard-v3-number-warning { color: var(--sd-warning); }
.supplier-dashboard-v3-number-danger { color: var(--sd-danger); }
.supplier-dashboard-v3-number-success { color: var(--sd-success); }

.supplier-dashboard-v3-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.supplier-dashboard-v3-action-box {
    text-decoration: none;
    background: #fff;
    color: var(--sd-text);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.25s;
}

.supplier-dashboard-v3-action-box h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.supplier-dashboard-v3-action-box p {
    margin: 0;
    color: var(--sd-muted);
    font-size: 14px;
}

.supplier-dashboard-v3-action-box:hover {
    background: var(--sd-accent);
    color: #fff;
}

.supplier-dashboard-v3-action-box:hover p {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 760px) {
    .supplier-dashboard-v3-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.supplier-products-v6 {
    background: #f5f7fb;
    border-radius: 14px;
    padding: 26px;
    color: #1e293b;
}

.supplier-products-v6-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.supplier-products-v6-header h1 {
    margin: 0;
}

.supplier-products-v6-title {
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    white-space: nowrap;
}

.supplier-products-v6-add-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.supplier-products-v6-filters {
    background: #fff;
    border-radius: 12px;
    padding: 14px 5px;
    margin-bottom: 18px;
}

.supplier-products-v6-filters input {
    width: 100%;
    padding: 10px 5px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.supplier-products-v6-table-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.supplier-products-v6-table {
    width: 100%;
    border-collapse: collapse;
}

.supplier-products-v6-table th {
    text-align: right;
    font-size: 13px;
    color: #64748b;
    padding-bottom: 5px 5px;
}

.supplier-products-v6-table td {
    padding: 14px 5px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.supplier-products-v6 .price {
    font-weight: 700;
    padding: 5px 5px;
    color: #2563eb;
}

.supplier-products-v6 .status {
    padding: 5px 5px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    box-sizing: border-box;}

.supplier-products-v6 .active-status {
    background: #dcfce7;
    padding: 5px 5px;
    color: #166534;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    box-sizing: border-box;
}

.supplier-products-v6 .expired-price {
    background: #fee2e2;
    padding: 5px 5px;
    color: #991b1b;
}

.supplier-products-v6 .actions {
    display: flex;
    align-items: center;
    padding: 5px 5px;
    gap: 6px;
}

.supplier-products-v6 .actions form {
    margin: 0;
}

.supplier-products-v6 .actions .edit,
.supplier-products-v6 .actions .delete {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font:vazir;
    text-decoration: none;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    box-sizing: border-box;

}

.supplier-products-v6 .actions .edit {
    background: #e2e8f0;
    color: #1e293b;
}

.supplier-products-v6 .actions .delete {
    background: #ef4444;
    color: #fff;
}

.supplier-orders-v11 {
    background-color: #f4f6f9;
    border-radius: 12px;
    padding: 28px;
}

.supplier-orders-v11-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.supplier-orders-v11-title {
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.supplier-orders-v11-search-box {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.supplier-orders-v11-search-input {
    width: 100%;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    height: 40px;
    padding: 0 12px;
}

.supplier-orders-v11-table-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    padding: 0;
    overflow: hidden;
}

.supplier-orders-v11-table {
    margin-bottom: 0;
}

.supplier-orders-v11-table th {
    color: #1e3a8a;
    font-weight: 700;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.supplier-orders-v11-table td {
    color: #4b5563;
    padding: 15px 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.supplier-orders-v11-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

@media (max-width: 760px) {
    table th,
    table td {
        white-space: nowrap;
    }

    .supplier-products-v6-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .supplier-orders-v11-header,
    .supplier-inquiries-v13-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .supplier-orders-v11-search-box {
        width: 100%;
    }
}

.supplier-inquiries-v13 {
    background-color: #f4f6f9;
    border-radius: 12px;
    padding: 28px;
}

.supplier-inquiries-v13-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.supplier-inquiries-v13-title {
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

.supplier-inquiries-v13-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.supplier-inquiries-v13-filter-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.supplier-inquiries-v13-table-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    overflow: hidden;
}

.supplier-inquiries-v13-table th {
    color: #1e3a8a;
    font-weight: 700;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.supplier-inquiries-v13-table td {
    color: #4b5563;
    padding: 15px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    border-left: 1px solid #eef2f7;
}

.supplier-inquiries-v13-table td:last-child,
.supplier-inquiries-v13-table th:last-child {
    border-left: none;
}

.supplier-inquiries-v13-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

.admin-order-create-v1 .admin-order-input {
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 7px 10px;
    background: #fff;
    color: #0f172a;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 13px;
}

.admin-order-create-v1 .admin-order-qty {
    width: 86px;
    text-align: center;
}

.admin-order-create-v1 .order-option {
    min-width: 210px;
}

.admin-dashboard-v14 {
    background-color: #f4f6f9;
    border-radius: 14px;
    padding: 30px;
}

.admin-dashboard-v14 .page-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 5px;
}

.admin-dashboard-v14 .page-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.admin-dashboard-v14-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-dashboard-v14 .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    position: relative;
    overflow: hidden;
}

.admin-dashboard-v14 .stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.95;
    pointer-events: none;
}

.admin-dashboard-v14 .stat-card:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(255, 255, 255, 0) 65%);
}

.admin-dashboard-v14 .stat-card:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(255, 255, 255, 0) 65%);
}

.admin-dashboard-v14 .stat-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(255, 255, 255, 0) 65%);
}

.admin-dashboard-v14 .stat-card:nth-child(4)::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255, 255, 255, 0) 65%);
}

.admin-dashboard-v14 .stat-card:nth-child(5)::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(255, 255, 255, 0) 65%);
}

.admin-dashboard-v14 .stat-card:nth-child(6)::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0) 65%);
}

.admin-dashboard-v14 .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    margin-right: auto;
    margin-left: auto;
}

.admin-dashboard-v14 .bg-light-blue { background: #dbeafe; }
.admin-dashboard-v14 .bg-light-green { background: #dcfce7; }
.admin-dashboard-v14 .bg-light-red { background: #fee2e2; }
.admin-dashboard-v14 .bg-light-purple { background: #f3e8ff; }
.admin-dashboard-v14 .bg-light-teal { background: #ccfbf1; }
.admin-dashboard-v14 .bg-light-orange { background: #ffedd5; }

.admin-dashboard-v14 .stat-value,
.admin-dashboard-v14 .stat-title,
.admin-dashboard-v14 .icon-box {
    position: relative;
    z-index: 1;
}

.admin-dashboard-v14 .stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.admin-dashboard-v14 .stat-title {
    color: #4b5563;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

.admin-dashboard-v14 .stat-footer {
    margin-top: 12px;
    font-size: 0.8rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.admin-dashboard-v14 .section-title {
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.admin-dashboard-v14-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.admin-dashboard-v14-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-dashboard-v14 .action-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.admin-dashboard-v14 .action-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.admin-dashboard-v14 .action-icon { font-size: 1.6rem; margin-bottom: 8px; }
.admin-dashboard-v14 .action-title { font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.admin-dashboard-v14 .action-desc { font-size: 0.85rem; color: #9ca3af; }

.admin-dashboard-v14 .task-list {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.admin-dashboard-v14 .task-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.admin-dashboard-v14 .task-item:last-child { border-bottom: none; }
.admin-dashboard-v14 .task-badge { width: 10px; height: 10px; border-radius: 50%; margin-left: 10px; }
.admin-dashboard-v14 .bg-warning { background: #f59e0b; }
.admin-dashboard-v14 .bg-danger { background: #ef4444; }
.admin-dashboard-v14 .bg-success { background: #22c55e; }
.admin-dashboard-v14 .bg-secondary { background: #94a3b8; }
.admin-dashboard-v14 .task-text { font-size: 0.9rem; color: #4b5563; flex: 1; }
.admin-dashboard-v14 .task-time { font-size: 0.8rem; color: #9ca3af; }

@media (max-width: 1080px) {
    .admin-dashboard-v14-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-dashboard-v14-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .admin-dashboard-v14-stats,
    .admin-dashboard-v14-actions {
        grid-template-columns: 1fr;
    }

    .suppliers-stats-grid {
        grid-template-columns: 1fr;
    }

    .zaher-page-head-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== ZAHER 17: admin suppliers ===== */
.suppliers-layout {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 18px;
}

.suppliers-menu {
    background: #121826;
    border: 0;
    border-radius: 12px;
    padding: 16px;
}

.suppliers-menu-btn {
    background: rgba(255,255,255,0.06);
    color: #9ca3af;
    border: 0;
}

.suppliers-menu-btn.active {
    background: #3b82f6;
    color: #fff;
}

.suppliers-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.suppliers-panel.active {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.suppliers-panel .table th {
    color: #1e3a8a;
    background: #f8fafc;
}

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

.suppliers-stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.suppliers-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
    color: #111827;
}

.suppliers-stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.suppliers-stat-card.is-pending {
    border-color: #fcd34d;
}

.suppliers-stat-card.is-approved {
    border-color: #86efac;
}

.suppliers-stat-card.is-blocked {
    border-color: #fca5a5;
}

.suppliers-contact-line,
.suppliers-review-date {
    display: block;
    margin-top: 4px;
}

.suppliers-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.suppliers-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    padding: 8px 16px;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
}

.suppliers-tab.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.suppliers-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.12);
    color: inherit;
    font-size: 12px;
}

.suppliers-tab-panel {
    display: none;
}

.suppliers-tab-panel.active {
    display: block;
}

.suppliers-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suppliers-actions form {
    margin: 0;
}

.suppliers-reason-link {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: var(--status-rejected-text);
    padding: 0;
    cursor: pointer;
    font-family: "Vazir", Tahoma, sans-serif;
}

.supplier-status-banner {
    margin-top: 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.9;
}

.supplier-status-banner-pending {
    background: var(--status-pending-bg);
    border-color: #fcd34d;
    color: var(--status-pending-text);
}

.supplier-status-banner-rejected {
    background: var(--status-rejected-bg);
    border-color: #fca5a5;
    color: var(--status-rejected-text);
}

/* ===== ZAHER 18: admin products ===== */
.products-layout {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 18px;
}

.products-menu {
    background: #121826;
    border: 0;
    border-radius: 12px;
    padding: 16px;
}

.products-menu-btn {
    background: rgba(255,255,255,0.06);
    color: #9ca3af;
    border: 0;
}

.products-menu-btn.active {
    background: #3b82f6;
    color: #fff;
}

.products-panel.active {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.products-panel .table th {
    color: #1e3a8a;
    background: #f8fafc;
}

/* ===== ZAHER 19: admin orders ===== */
.orders-layout {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 18px;
}

.orders-menu {
    background: #121826;
    border: 0;
    border-radius: 12px;
    padding: 16px;
}

.orders-menu-btn {
    background: rgba(255,255,255,0.06);
    color: #9ca3af;
    border: 0;
}

.orders-menu-btn.active {
    background: #3b82f6;
    color: #fff;
}

.orders-panel.active {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.orders-panel .table th {
    color: #1e3a8a;
    background: #f8fafc;
    text-align: center;
    vertical-align: middle;
}

/* ===== ZAHER 20: admin RFQ ===== */
.orders-layout .orders-panel[data-inquiry-panel="create"],
.orders-layout .orders-panel[data-inquiry-panel="list"],
.orders-layout .orders-panel[data-inquiry-panel="search"] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.product-inline-list,
.supplier-inline-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 240px;
    overflow: auto;
}

/* ===== ZAHER 21: admin files ===== */
.files-layout {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 18px;
}

.files-menu {
    background: #121826;
    border: 0;
    border-radius: 12px;
    padding: 16px;
}

.files-menu-btn {
    background: rgba(255,255,255,0.06);
    color: #9ca3af;
    border: 0;
}

.files-menu-btn.active {
    background: #3b82f6;
    color: #fff;
}

.files-panel.active {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.files-panel .table th {
    color: #1e3a8a;
    background: #f8fafc;
}

.zaher-page-head {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.zaher-page-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.zaher-page-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.zaher-page-head p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.zaher-page-head-btn {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 14px;
    white-space: nowrap;
}

.admin-body-v21 {
    background: #f4f6f9;
    color: #374151;
}

.admin-body-v21 .container {
    padding: 0;
}

.admin-v21-layout {
    display: flex;
    min-height: 100vh;
}

.admin-v21-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 250px;
    min-height: 100vh;
    background: #121826;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.admin-v21-sidebar-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #60a5fa;
}

.admin-v21-nav-item {
    display: flex;
    align-items: center;
    color: #9ca3af;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.admin-v21-nav-item:hover,
.admin-v21-nav-item.active {
    background: #3b82f6;
    color: #fff;
}

.admin-v21-main {
    margin-right: 250px;
    padding: 40px;
    width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.supplier-page-backbar {
    display: flex;
    justify-content: flex-start;
}

.supplier-page-backbtn {
    min-width: 96px;
    justify-content: center;
}

.admin-v21-menu-toggle {
    display: none;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 14px;
    padding: 0 14px;
    align-self: flex-start;
}

.admin-body-v21 .zaher-page-head {
    background: transparent;
    padding: 0;
    margin-bottom: 25px;
}

.admin-body-v21 .suppliers-layout,
.admin-body-v21 .products-layout,
.admin-body-v21 .orders-layout,
.admin-body-v21 .files-layout {
    background: transparent;
    padding: 0;
    margin-top: 0;
}

.admin-body-v21 .suppliers-content,
.admin-body-v21 .products-content,
.admin-body-v21 .orders-content,
.admin-body-v21 .files-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.admin-body-v21 .suppliers-panel.active,
.admin-body-v21 .products-panel.active,
.admin-body-v21 .orders-panel.active,
.admin-body-v21 .files-panel.active {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 0;
}

@media (max-width: 980px) {
    .admin-v21-layout {
        display: block;
    }

    .admin-v21-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: min(280px, 84vw);
        min-height: 100vh;
        transform: translateX(100%);
        transition: transform .25s ease;
        box-shadow: -8px 0 30px rgba(2, 6, 23, 0.24);
    }

    .admin-v21-layout.sidebar-open .admin-v21-sidebar {
        transform: translateX(0);
    }

    .admin-v21-main {
        margin-right: 0;
        padding: 14px;
        width: 100%;
    }

    .admin-v21-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-v21-sidebar-title {
        margin-bottom: 14px;
    }

    .admin-v21-sidebar .admin-v21-nav-item {
        margin-bottom: 6px;
    }
}

@media (max-width: 760px) {
    .admin-v21-main {
        padding: 10px;
        gap: 12px;
    }

    .supplier-page-backbtn {
        width: 100%;
    }

    .admin-body-v21 .suppliers-panel.active,
    .admin-body-v21 .products-panel.active,
    .admin-body-v21 .orders-panel.active,
    .admin-body-v21 .files-panel.active {
        padding: 14px;
    }

    .zaher-page-head-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zaher-page-head-btn {
        width: 100%;
        justify-content: center;
    }

    .actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
    }

    .table-wrap {
        overflow-x: auto;
    }
}
.custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-file-input .file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    background: #e2e8f0;
    color: #111827;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.custom-file-input .file-label:hover {
    background: #cbd5e1;
}
#dynamic-fields-grid .dynamic-field:has(.product-boolean-inline) {
    grid-column: span 1 !important;
}

#dynamic-fields-grid .field:has(input[name="cash_price"]) {
    grid-column: 2 / 1;
    margin-top: 0;
}
