:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e5e9f0;
    --surface: #ffffff;
    --canvas: #f4f6f9;
    --navy: #132238;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(25, 39, 65, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 15%, #dce9ff, transparent 35%),
        radial-gradient(circle at 85% 85%, #d9f6ea, transparent 35%),
        #f5f7fb;
}

.login-card {
    width: min(440px, 100%);
    padding: 42px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2563eb, #162c52);
    border-radius: 16px;
    font-size: 25px;
    font-weight: 800;
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
}

.eyebrow {
    margin: 24px 0 7px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.login-card h1,
.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -.04em;
}

.login-copy,
.hero p {
    color: var(--muted);
    line-height: 1.65;
}

.login-card form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

input,
select {
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 10px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #7aa2f8;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

.primary-button {
    min-height: 47px;
    padding: 11px 19px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 11px;
    font-weight: 750;
}

.primary-button:hover {
    background: var(--blue-dark);
}

.primary-button.compact {
    min-height: 42px;
}

.quiet-button,
.icon-button {
    color: #475467;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
}

.quiet-button {
    padding: 9px 14px;
}

.icon-button {
    width: 40px;
    height: 40px;
    font-size: 25px;
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;
    color: var(--danger);
    background: #fff1f0;
    border: 1px solid #ffd5d2;
    border-radius: 10px;
    font-size: 13px;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(18px, 4vw, 52px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    color: var(--navy);
}

.brand span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard {
    width: min(1480px, calc(100% - 36px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.hero .eyebrow {
    margin-top: 0;
}

.hero p {
    max-width: 700px;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 21px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.stat-card strong {
    display: block;
    margin-top: 7px;
    color: var(--navy);
    font-size: 27px;
}

.control-panel,
.orders-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.control-panel {
    margin-bottom: 18px;
    overflow: hidden;
}

.store-tabs {
    display: flex;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.store-tab {
    padding: 9px 14px;
    white-space: nowrap;
    color: #475467;
    background: #f7f8fa;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
}

.store-tab.active {
    color: #fff;
    background: var(--navy);
}

.filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 210px;
    gap: 14px;
    padding: 16px;
}

.orders-panel {
    overflow: hidden;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 19px;
}

.panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.loading {
    color: var(--blue);
    font-size: 12px;
    font-weight: 750;
}

.loading[hidden] {
    display: none;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 15px 17px;
    text-align: left;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}

th {
    color: #667085;
    background: #fafbfc;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

td {
    font-size: 13px;
}

.order-number {
    color: var(--navy);
    font-weight: 800;
}

.subtext {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.store-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.store-badge {
    color: #fff;
}

.status-badge {
    color: #344054;
    background: #eef1f5;
}

.status-completed {
    color: #067647;
    background: #ecfdf3;
}

.status-processing {
    color: #175cd3;
    background: #eff8ff;
}

.status-on-hold,
.status-pending {
    color: #b54708;
    background: #fffaeb;
}

.status-cancelled,
.status-refunded {
    color: #b42318;
    background: #fef3f2;
}

.view-button {
    padding: 7px 11px;
    color: var(--blue);
    background: #eff5ff;
    border: 0;
    border-radius: 8px;
    font-weight: 750;
}

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

.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    justify-items: end;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .55);
}

.modal-card {
    position: relative;
    width: min(680px, 100%);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
}

.modal-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 22px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.modal-header .eyebrow {
    margin: 0 0 5px;
}

.modal-header h2 {
    margin: 0;
    color: var(--navy);
}

.modal-content {
    padding: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-bottom: 18px;
}

.detail-card {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.detail-card h3,
.items-list h3,
.notes-list h3 {
    margin: 0 0 11px;
    color: var(--navy);
    font-size: 14px;
}

.detail-card p {
    margin: 5px 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.items-list,
.notes-list {
    margin-top: 20px;
}

.item-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.item-row img,
.item-placeholder {
    width: 50px;
    height: 50px;
    object-fit: cover;
    background: #eef1f5;
    border-radius: 9px;
}

.item-row strong {
    display: block;
    font-size: 13px;
}

.item-total {
    font-weight: 800;
}

.note-row {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 10px;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

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

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

@media (max-width: 640px) {
    .login-card {
        padding: 28px 22px;
    }

    .dashboard {
        width: min(100% - 22px, 1480px);
        padding-top: 26px;
    }

    .topbar {
        padding: 11px;
    }

    .brand span {
        display: none;
    }

    .stats-grid,
    .filters,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .hero .primary-button {
        width: 100%;
    }
}

/* OELTEK_PACKING_VIDEO_V19 */
.packing-video-panel{padding:18px;margin:0 0 20px;background:#f8faff;border:1px solid #b2ccff;border-radius:12px}.packing-video-panel h3{margin:0 0 15px;color:#102a56}.camera-settings{display:grid;grid-template-columns:2fr 2fr 1fr;gap:11px;margin-bottom:13px}.camera-settings label{display:grid;gap:6px;color:#475467;font-size:12px;font-weight:750}.camera-settings select,.camera-settings input{width:100%;min-height:41px;padding:8px;background:#fff;border:1px solid #d0d5dd;border-radius:8px}.duration-field{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px}.camera-stage{position:relative;display:grid;place-items:center;min-height:300px;overflow:hidden;background:#101828;border-radius:12px}.camera-stage video{display:block;width:100%;max-height:520px;object-fit:contain}.camera-stage>div{position:absolute;color:#d0d5dd}.camera-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:12px}.camera-controls strong{margin-inline-start:auto;color:#d92d20;font-variant-numeric:tabular-nums}.camera-feedback{min-height:20px;color:#475467;font-size:12px}.packing-clips{margin-top:17px}.packing-clips h4{margin:0 0 10px}.packing-clips>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.packing-clips article{padding:10px;background:#fff;border:1px solid #eaecf0;border-radius:10px}.packing-clips article>div{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px}.packing-clips article span{color:#667085;font-size:11px}.packing-clips video{width:100%;max-height:220px;background:#101828;border-radius:7px}.packing-clips a{display:inline-block;margin-top:7px;text-decoration:none}@media(max-width:700px){.camera-settings{grid-template-columns:1fr}.camera-stage{min-height:210px}.packing-clips>div{grid-template-columns:1fr}.camera-controls strong{width:100%;margin:0}}

/* OELTEK_LOGIN_LOGO_FIX */
.brand-mark {
    overflow: hidden;
    padding: 0;
    background: #f58220;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persian-login-title {
    display: block;
    color: #344054;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
}

/* OELTEK_BILINGUAL_RECOVERY_V3 */
.brand-mark,
.brand-mark.small {
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.brand-mark img,
.brand-mark.small img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

html[dir="rtl"] body {
    font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
    text-align: right;
}

html[dir="rtl"] .topbar,
html[dir="rtl"] .hero,
html[dir="rtl"] .panel-heading,
html[dir="rtl"] .modal-header {
    direction: rtl;
}

html[dir="rtl"] .modal {
    justify-items: start;
}

html[dir="rtl"] .modal-card {
    box-shadow: 20px 0 60px rgba(0, 0, 0, .18);
}

html[dir="rtl"] .eyebrow {
    letter-spacing: 0;
}

html[dir="rtl"] input,
html[dir="rtl"] select {
    text-align: right;
}

html[dir="rtl"] .store-tabs {
    direction: rtl;
}

html[dir="rtl"] .item-row {
    direction: rtl;
}
/* OELTEK_WORKFLOW_STYLES_V4 */
.account-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.account-actions > form {
    margin: 0;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
    cursor: pointer;
}

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

.account-form {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    right: 0;
    width: min(330px, calc(100vw - 24px));
    padding: 18px;
    color: #344054;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .18);
}

.account-form label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 750;
}

.account-form input,
.account-form select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
}

.account-help {
    margin: 2px 0 13px;
    color: #667085;
    font-size: 11px;
    line-height: 1.6;
}

.dashboard-message {
    margin-bottom: 16px;
}

.dashboard-message.success {
    padding: 12px 14px;
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 10px;
}

.order-status-completed {
    background: rgba(236, 253, 243, .65);
}

.order-dispatched {
    background: rgba(255, 244, 229, .85);
    box-shadow: inset 4px 0 0 #f79009;
}

.status-dispatched {
    color: #b54708 !important;
    background: #ffead5 !important;
}

.order-status-on-hold,
.order-status-pending {
    background: rgba(255, 250, 235, .55);
}

.order-status-cancelled,
.order-status-refunded,
.order-status-failed {
    background: rgba(254, 243, 242, .7);
}

.status-failed {
    color: #b42318;
    background: #fef3f2;
}

html[dir="rtl"] .account-form {
    right: auto;
    left: 0;
}

html[dir="rtl"] .order-dispatched {
    box-shadow: inset -4px 0 0 #f79009;
}

@media (max-width: 640px) {
    .account-actions {
        gap: 5px;
    }

    .account-actions .quiet-button {
        padding-inline: 8px;
        font-size: 11px;
    }
}
/* OELTEK_SHIPPING_COLUMN_V6 */
.shipping-method-cell {
    min-width: 125px;
    max-width: 210px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    white-space: normal;
}
/* OELTEK_STATUS_PRINT_UI_V10 */
.order-operations {
    padding: 17px;
    margin: 0 0 20px;
    background: #f8fafc;
    border: 1px solid #d7dde7;
    border-radius: 12px;
}

.order-operations h3 {
    margin: 0 0 14px;
    color: #101828;
    font-size: 15px;
}

.status-control {
    display: flex;
    align-items: end;
    gap: 10px;
}

.status-control label {
    display: grid;
    flex: 1;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 750;
}

.status-control select {
    width: 100%;
    min-height: 40px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
}

.print-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 13px;
}

.print-button {
    padding: 10px 8px;
    color: #175cd3;
    background: #eff8ff;
    border: 1px solid #b2ddff;
    border-radius: 8px;
    font-weight: 750;
    cursor: pointer;
}

.print-button:hover {
    background: #dbeafe;
}

.operation-feedback {
    min-height: 18px;
    margin: 10px 0 0;
    color: #475467;
    font-size: 12px;
}

@media (max-width: 640px) {
    .status-control {
        align-items: stretch;
        flex-direction: column;
    }

    .print-actions {
        grid-template-columns: 1fr;
    }
}
/* OELTEK_PRODUCT_LABEL_BUTTON_V11 */
.print-actions {
    grid-template-columns: repeat(2, 1fr);
}

.product-label-button {
    color: #fff;
    background: #101828;
    border-color: #101828;
}

.product-label-button:hover {
    background: #344054;
}

@media (max-width: 640px) {
    .print-actions {
        grid-template-columns: 1fr;
    }
}
/* OELTEK_EXPLICIT_SEARCH_V13 */
.search-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.search-input-row input {
    min-width: 0;
}

.search-button {
    min-width: 88px;
    min-height: 43px;
    padding: 8px 18px;
}

@media (max-width: 640px) {
    .search-input-row {
        grid-template-columns: 1fr;
    }

    .search-button {
        width: 100%;
    }
}
/* OELTEK_TRACKING_UI_V15 */
.tracking-panel {
    padding: 17px;
    margin: 0 0 20px;
    background: #fffdf5;
    border: 1px solid #fedf89;
    border-radius: 12px;
}

.tracking-panel h3 {
    margin: 0 0 14px;
    color: #93370d;
    font-size: 15px;
}

.tracking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.tracking-fields label {
    display: grid;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 750;
}

.tracking-fields input {
    width: 100%;
    min-height: 41px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
}

.tracking-warning {
    padding: 9px 11px;
    margin: 13px 0;
    color: #93370d;
    background: #fffaeb;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.7;
}

.tracking-documents {
    display: grid;
    gap: 5px;
    margin-top: 11px;
}

.tracking-documents a {
    color: #175cd3;
    font-size: 12px;
    font-weight: 700;
}

.tracking-feedback {
    min-height: 18px;
    margin: 9px 0 0;
    color: #475467;
    font-size: 12px;
}

.tracking-unavailable {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

@media (max-width: 640px) {
    .tracking-fields {
        grid-template-columns: 1fr;
    }
}
/* OELTEK_TRACKING_UPLOAD_UI_V17 */
.tracking-upload-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 12px;
}

.tracking-upload-fields label {
    display: grid;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 750;
}

.tracking-upload-fields input[type="file"] {
    width: 100%;
    padding: 8px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 11px;
}

@media (max-width: 640px) {
    .tracking-upload-fields {
        grid-template-columns: 1fr;
    }
}

/* OELTEK_DYNAMIC_SALES_REPORT_V18 */
.sales-report-panel {
    position: relative;
    padding: 24px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
}
.report-heading { margin-bottom: 20px; }
.report-heading h2 { margin: 3px 0 6px; color: #101828; }
.report-heading p:last-child { margin: 0; color: #667085; font-size: 13px; }
.report-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.report-filters label { position: relative; display: grid; gap: 7px; color: #344054; font-size: 12px; font-weight: 750; }
.report-filters input, .report-filters select {
    width: 100%; min-height: 44px; padding: 9px 11px;
    background: #fff; border: 1px solid #d0d5dd; border-radius: 9px;
    color: #101828; font: inherit; font-size: 13px;
}
.report-filters input:focus, .report-filters select:focus { outline: 2px solid #b2ccff; border-color: #528bff; }
.report-product-field { z-index: 8; }
.report-autocomplete {
    position: absolute; z-index: 20; top: 70px; right: 0; left: 0;
    max-height: 280px; overflow: auto; padding: 6px;
    background: #fff; border: 1px solid #d0d5dd; border-radius: 10px;
    box-shadow: 0 14px 32px rgba(16,24,40,.16);
}
.report-autocomplete button { display: block; width: 100%; padding: 10px; text-align: start; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.report-autocomplete button:hover { background: #f2f4f7; }
.report-autocomplete small { display: block; color: #667085; }
.report-autocomplete p { padding: 10px; margin: 0; color: #667085; }
.report-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
#reportFeedback { color: #475467; font-size: 12px; }
.report-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.report-summary article { padding: 18px; background: #f8faff; border: 1px solid #d6e4ff; border-radius: 12px; }
.report-summary span { display: block; color: #475467; font-size: 12px; }
.report-summary strong { display: block; margin-top: 7px; color: #102a56; font-size: 25px; }
.report-results { margin-top: 20px; border: 1px solid #eaecf0; border-radius: 12px; overflow: hidden; }
.report-results table { min-width: 1000px; }
.report-results td { vertical-align: top; }
.jalali-calendar {
    position: absolute; z-index: 1000; width: 292px; padding: 12px;
    direction: rtl; background: #fff; border: 1px solid #d0d5dd;
    border-radius: 12px; box-shadow: 0 18px 45px rgba(16,24,40,.22);
}
.calendar-header { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 6px; margin-bottom: 9px; text-align: center; }
.calendar-header button { height: 32px; border: 0; border-radius: 7px; background: #f2f4f7; cursor: pointer; font-size: 21px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-grid button, .calendar-weekday, .calendar-blank { display: grid; place-items: center; min-height: 33px; }
.calendar-weekday { color: #667085; font-size: 11px; font-weight: 800; }
.calendar-grid button { border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.calendar-grid button:hover { color: #fff; background: #2e6ce6; }
@media (max-width: 900px) {
    .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sales-report-panel { padding: 16px; }
    .report-filters, .report-summary { grid-template-columns: 1fr; }
    .report-actions { align-items: stretch; flex-direction: column; }
    .report-actions button { width: 100%; }
}

/* OELTEK_PACKING_VIDEO_STREAM_V20 */
.camera-status{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.camera-status span{padding:5px 9px;color:#067647;background:#ecfdf3;border-radius:999px;font-size:11px}.camera-feedback.error{color:#b42318;font-weight:700}
/* OELTEK_PACKING_VIDEO_PRIVACY_V21 */
.camera-settings{grid-template-columns:2fr 2fr 1fr 1.2fr}
@media(max-width:950px){.camera-settings{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.camera-settings{grid-template-columns:1fr}}

/* OELTEK_TRACKING_REGISTERED_BADGE_V23 */
.order-status-stack {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.tracking-registered-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    color: #b54708;
    background: #ffead5;
    border: 1px solid #fedf89;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}
/* OELTEK_PREMIUM_OPERATIONS_HEADER_V24 */
:root {
    --operations-navy: #0b1f3a;
    --operations-navy-2: #102b50;
    --operations-orange: #f47721;
    --operations-orange-dark: #dc5b0b;
    --operations-blue: #2f6fed;
    --operations-cyan: #0ea5c6;
    --operations-green: #16a36a;
    --operations-purple: #7259d9;
    --operations-card-shadow:
        0 10px 30px rgba(15, 35, 65, .07),
        0 2px 7px rgba(15, 35, 65, .04);
}

body {
    background:
        radial-gradient(
            circle at 88% 4%,
            rgba(47, 111, 237, .07),
            transparent 23rem
        ),
        radial-gradient(
            circle at 8% 17%,
            rgba(244, 119, 33, .055),
            transparent 21rem
        ),
        #f3f6fa;
}

/* Premium navigation bar */
.topbar {
    min-height: 78px;
    padding:
        13px
        max(22px, calc((100vw - 1480px) / 2 + 18px));
    color: #fff;
    background:
        radial-gradient(
            circle at 18% -90%,
            rgba(47, 111, 237, .85),
            transparent 38%
        ),
        linear-gradient(
            115deg,
            #07182e 0%,
            var(--operations-navy) 48%,
            #12345d 100%
        );
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    box-shadow: 0 10px 30px rgba(7, 24, 46, .16);
}

.topbar::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(
            90deg,
            transparent 49.5%,
            rgba(255, 255, 255, .12) 50%,
            transparent 50.5%
        );
    background-size: 48px 48px;
}

.topbar .brand {
    gap: 14px;
}

.topbar .brand-mark.small {
    width: 48px;
    height: 48px;
    padding: 5px !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 15px !important;
    box-shadow:
        0 7px 22px rgba(0, 0, 0, .2),
        inset 0 0 0 1px rgba(244, 119, 33, .12);
}

.topbar .brand-mark.small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar .brand strong {
    color: #fff;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.topbar .brand span {
    color: rgba(230, 239, 251, .72);
    font-size: 11px;
}

.topbar .quiet-button {
    color: #f7faff;
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.topbar .quiet-button:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-1px);
}

.topbar .account-form {
    color: var(--ink);
    background: rgba(255, 255, 255, .99);
    border: 1px solid #e4e9f1;
    box-shadow: 0 24px 70px rgba(6, 24, 46, .28);
}

/* Main upper dashboard */
.dashboard {
    padding-top: 30px;
}

.dashboard-message {
    position: relative;
    padding: 14px 18px !important;
    border-radius: 13px !important;
    box-shadow: var(--operations-card-shadow);
}

.dashboard-message.success {
    color: #08764e;
    background:
        linear-gradient(90deg, #ecfdf5, #f4fffa);
    border-color: #a9e8ca;
}

.dashboard-message.alert {
    color: #a92b21;
    background:
        linear-gradient(90deg, #fff2f0, #fff8f7);
}

/* Marketplace-style hero */
.hero {
    position: relative;
    min-height: 202px;
    align-items: center;
    padding: 34px clamp(25px, 4vw, 52px);
    margin-bottom: 0;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 12% 115%,
            rgba(244, 119, 33, .9),
            transparent 31%
        ),
        radial-gradient(
            circle at 82% -40%,
            rgba(47, 111, 237, .8),
            transparent 42%
        ),
        linear-gradient(
            120deg,
            #071a32 0%,
            #0d2b51 54%,
            #123d70 100%
        );
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    box-shadow:
        0 20px 50px rgba(8, 31, 60, .17),
        inset 0 1px rgba(255, 255, 255, .08);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.hero::before {
    width: 310px;
    height: 310px;
    inset-inline-start: -115px;
    top: -190px;
}

.hero::after {
    width: 185px;
    height: 185px;
    inset-inline-start: 90px;
    bottom: -135px;
}

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

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #ffbf91;
    font-size: 11px;
    font-weight: 850;
}

.hero .eyebrow::before {
    width: 8px;
    height: 8px;
    content: "";
    background: #fb812e;
    border: 3px solid rgba(251, 129, 46, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(251, 129, 46, .09);
}

.hero h1 {
    color: #fff;
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.045em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .16);
}

.hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(230, 239, 251, .78);
    font-size: 14px;
}

.hero .primary-button {
    min-width: 176px;
    min-height: 49px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #ff8b36,
            var(--operations-orange-dark)
        );
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    box-shadow:
        0 12px 27px rgba(226, 91, 10, .31),
        inset 0 1px rgba(255, 255, 255, .2);
}

.hero .primary-button:hover {
    background:
        linear-gradient(135deg, #ff9b52, #eb6818);
    box-shadow:
        0 15px 32px rgba(226, 91, 10, .4);
    transform: translateY(-2px);
}

/* Floating performance cards */
.stats-grid {
    position: relative;
    z-index: 3;
    gap: 13px;
    padding: 0 clamp(16px, 2.2vw, 30px);
    margin: -25px 0 22px;
}

.stat-card {
    position: relative;
    min-height: 112px;
    padding: 23px 23px 19px;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(217, 225, 236, .9);
    border-radius: 17px;
    box-shadow: var(--operations-card-shadow);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.stat-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--operations-blue);
}

.stat-card::after {
    position: absolute;
    width: 65px;
    height: 65px;
    inset-inline-end: -20px;
    bottom: -24px;
    content: "";
    background: rgba(47, 111, 237, .07);
    border-radius: 50%;
}

.stat-card:nth-child(1)::before {
    background: var(--operations-orange);
}

.stat-card:nth-child(1)::after {
    background: rgba(244, 119, 33, .09);
}

.stat-card:nth-child(2)::before {
    background: var(--operations-green);
}

.stat-card:nth-child(2)::after {
    background: rgba(22, 163, 106, .08);
}

.stat-card:nth-child(3)::before {
    background: var(--operations-purple);
}

.stat-card:nth-child(3)::after {
    background: rgba(114, 89, 217, .08);
}

.stat-card:nth-child(4)::before {
    background: var(--operations-cyan);
}

.stat-card:nth-child(4)::after {
    background: rgba(14, 165, 198, .08);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 17px 35px rgba(15, 35, 65, .1),
        0 3px 9px rgba(15, 35, 65, .05);
}

.stat-card span {
    color: #69778b;
    font-size: 12px;
    font-weight: 750;
}

.stat-card strong {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #102844;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

/* Refined store and search controls */
.control-panel {
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .98);
    border-color: #dfe6ef;
    border-radius: 19px;
    box-shadow: var(--operations-card-shadow);
}

.store-tabs {
    gap: 9px;
    padding: 16px 18px;
    background:
        linear-gradient(180deg, #fff, #fbfcfe);
    border-bottom-color: #e8edf4;
}

.store-tab {
    position: relative;
    min-height: 43px;
    padding: 10px 18px;
    color: #516074;
    background: #f3f6fa;
    border: 1px solid #e8edf3;
    border-radius: 11px;
    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.store-tab:hover {
    color: #17365d;
    background: #eaf1fb;
    transform: translateY(-1px);
}

.store-tab.active {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(--operations-navy-2),
            #164578
        );
    border-color: #214f80;
    box-shadow:
        0 8px 18px rgba(16, 43, 80, .2),
        inset 0 1px rgba(255, 255, 255, .12);
}

.store-tab.active::after {
    position: absolute;
    right: 28%;
    bottom: -1px;
    left: 28%;
    height: 3px;
    content: "";
    background: var(--operations-orange);
    border-radius: 4px 4px 0 0;
}

.filters {
    grid-template-columns: minmax(280px, 1fr) 220px;
    gap: 18px;
    padding: 19px;
}

.filters label > span {
    color: #344963;
    font-size: 12px;
    font-weight: 800;
}

.filters input,
.filters select {
    min-height: 49px;
    background: #fbfcfe;
    border-color: #d9e1eb;
    border-radius: 12px;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.filters input:hover,
.filters select:hover {
    background: #fff;
    border-color: #b9c9dc;
}

.filters input:focus,
.filters select:focus {
    background: #fff;
    border-color: #4d82eb;
    box-shadow: 0 0 0 4px rgba(47, 111, 237, .1);
}

.search-input-row {
    gap: 10px;
}

.search-button {
    min-width: 112px;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--operations-blue),
            #2356c4
        );
    box-shadow: 0 8px 17px rgba(47, 111, 237, .2);
}

.search-button:hover {
    background:
        linear-gradient(135deg, #3c7af0, #194cb9);
    transform: translateY(-1px);
}

/* Matching professional content cards */
.orders-panel,
.sales-report-panel {
    border-color: #dfe6ef;
    border-radius: 19px;
    box-shadow: var(--operations-card-shadow);
}

.panel-heading {
    padding: 23px 25px;
    background:
        linear-gradient(180deg, #fff, #fbfcfe);
}

.panel-heading h2 {
    color: #102844;
    font-size: 21px;
    font-weight: 900;
}

.primary-button,
.quiet-button,
.store-tab,
.view-button {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        border-color .18s ease;
}

/* RTL polish */
html[dir="rtl"] .stat-card::before {
    right: 0;
    left: 0;
}

html[dir="rtl"] .hero h1 {
    letter-spacing: 0;
}

html[dir="rtl"] .topbar .brand {
    text-align: right;
}

/* Responsive premium header */
@media (max-width: 900px) {
    .topbar {
        min-height: 70px;
    }

    .hero {
        min-height: 225px;
        align-items: flex-start;
        padding: 29px;
    }

    .hero .primary-button {
        width: auto;
    }

    .stats-grid {
        margin-top: -20px;
    }
}

@media (max-width: 640px) {
    .topbar {
        min-height: 64px;
        padding: 9px 11px;
    }

    .topbar .brand {
        gap: 8px;
    }

    .topbar .brand-mark.small {
        width: 41px;
        height: 41px;
        padding: 4px !important;
        border-radius: 12px !important;
    }

    .topbar .brand strong {
        font-size: 13px;
    }

    .topbar .account-actions .quiet-button {
        min-height: 38px;
        padding: 7px 8px;
    }

    .dashboard {
        padding-top: 18px;
    }

    .hero {
        min-height: 250px;
        padding: 25px 20px 52px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 13px;
    }

    .hero .primary-button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        padding: 0 10px;
        margin-top: -31px;
    }

    .stat-card {
        min-height: 100px;
        padding: 17px 15px;
        border-radius: 14px;
    }

    .stat-card strong {
        font-size: 24px;
    }

    .control-panel {
        border-radius: 16px;
    }

    .store-tabs {
        padding: 12px;
    }

    .store-tab {
        min-height: 40px;
        padding: 9px 13px;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 14px;
    }

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

    .search-button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .topbar .brand span {
        display: none;
    }

    .topbar .brand strong {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* OELTEK_SERVER_PAGINATION_V26 */
.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 18px 20px 21px;
    background:
        linear-gradient(180deg, #ffffff, #f9fbfd);
    border-top: 1px solid #e6ebf2;
}

.orders-pagination[hidden] {
    display: none;
}

.pagination-button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    color: #40516a;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(15, 35, 65, .035);
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.pagination-button:hover:not(:disabled):not(.active) {
    color: #1e58c4;
    background: #eff5ff;
    border-color: #abc4f5;
    transform: translateY(-1px);
}

.pagination-button.active {
    color: #fff;
    background:
        linear-gradient(135deg, #2f6fed, #1f54c2);
    border-color: #2f6fed;
    box-shadow: 0 7px 16px rgba(47, 111, 237, .25);
}

.pagination-button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.pagination-navigation {
    min-width: 92px;
}

.pagination-ellipsis {
    min-width: 22px;
    color: #8090a5;
    text-align: center;
    font-weight: 800;
}

.pagination-summary {
    margin-inline-start: 9px;
    color: #66758a;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .orders-pagination {
        gap: 6px;
        padding: 15px 10px 18px;
    }

    .pagination-button {
        min-width: 37px;
        min-height: 37px;
        padding: 7px 10px;
    }

    .pagination-navigation {
        flex: 1 1 calc(50% - 6px);
        max-width: 150px;
    }

    .pagination-summary {
        width: 100%;
        margin: 4px 0 0;
        text-align: center;
    }
}
/* OELTEK_VIDEO_TIMESTAMP_OVERLAY_V28 */
.video-timestamp-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    row-gap: 3px;
    padding: 12px 14px;
    margin: 0 0 13px;
    color: #17365d;
    background:
        linear-gradient(135deg, #fff8f2, #fffdfb);
    border: 1px solid #fed7aa;
    border-radius: 11px;
    cursor: pointer;
}

.video-timestamp-option input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    accent-color: #f47721;
}

.video-timestamp-option span {
    font-size: 12px;
    font-weight: 850;
}

.video-timestamp-option small {
    grid-column: 2;
    color: #667085;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.55;
}

.video-timestamp-option:has(input:checked) {
    color: #9a3f08;
    background:
        linear-gradient(135deg, #fff3e8, #fffaf5);
    border-color: #f9b77d;
}

.timestamp-preview {
    position: absolute !important;
    z-index: 3;
    top: 14px;
    inset-inline-end: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 11px;
    color: #fff !important;
    background: rgba(6, 18, 35, .76);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
    direction: rtl;
    pointer-events: none;
}

.timestamp-preview[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .video-timestamp-option {
        padding: 10px 11px;
    }

    .timestamp-preview {
        top: 9px;
        inset-inline-end: 9px;
        max-width: calc(100% - 18px);
        padding: 6px 8px;
        font-size: 9px;
    }
}
/* OELTEK_COMPACT_TIMESTAMP_AND_BRAND_V29 */
.timestamp-preview {
    padding: 5px 8px;
    background: rgba(6, 18, 35, .56);
    border-color: rgba(255, 255, 255, .18);
    font-size: 10px;
    font-weight: 650;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}
/* OELTEK_FAST_ORDER_REFRESH_V40 */
#refreshButton {
    min-width: 190px;
    transition:
        transform .18s ease,
        opacity .18s ease,
        box-shadow .18s ease;
}

#refreshButton.is-refreshing {
    cursor: wait;
    opacity: .88;
}

#refreshButton.is-refreshing::before {
    width: 17px;
    height: 17px;
    margin-inline-end: 9px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: operations-refresh-spin .7s linear infinite;
}

#refreshButton:disabled {
    cursor: wait;
}

@keyframes operations-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}