:root {
    color-scheme: light;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    --ink: #0f1b2d;
    --ink-2: #4b5c71;
    --brand: #a1222c;
    --brand-2: #c92f3b;
    --brand-soft: #fdecee;
    --nav: #0b1626;
    --nav-2: #142337;
    --surface: #ffffff;
    --canvas: #f4f6fb;
    --line: #e3e8f0;
    --ok: #12805c;
    --warn: #b45309;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgb(15 27 45 / 6%), 0 1px 3px rgb(15 27 45 / 8%);
    --shadow-md: 0 4px 12px rgb(15 27 45 / 8%), 0 2px 4px rgb(15 27 45 / 6%);
    --shadow-lg: 0 18px 45px rgb(15 27 45 / 14%);
}
* { box-sizing: border-box; }
[hidden], .print-only { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 100% -10%, #e9eef8 0%, transparent 60%),
        radial-gradient(900px 500px at -10% 110%, #f3e7ea 0%, transparent 55%),
        var(--canvas);
    min-height: 100vh;
}
a { color: #0b6b70; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); text-decoration: none; }

/* ============ الشريط العلوي ============ */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: linear-gradient(180deg, #0d1a2b 0%, #0a1523 100%);
    border-bottom: 1px solid rgb(255 255 255 / 6%);
    box-shadow: 0 6px 24px rgb(5 12 25 / 35%);
}
.topbar-inner {
    max-width: 1440px; margin: auto;
    padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand span { min-width: 0; overflow-wrap: anywhere; }
.brand strong { font-size: 1.02rem; letter-spacing: .2px; }
.brand small { display: block; color: #93a8c2; font-size: .72rem; font-weight: 400; }
.brand .brand-logo, .login-brand .brand-logo { display: block; object-fit: contain; background: #fff; flex: none; }
.brand .brand-logo { width: 50px; height: 38px; padding: 4px; border-radius: 10px; box-shadow: 0 2px 8px rgb(0 0 0 / 25%); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.topbar .nav-link, .topbar .logout-form button {
    display: inline-flex; align-items: center; min-height: 38px;
    padding: 6px 14px; border-radius: 10px;
    font-size: .86rem; font-weight: 500;
    color: #b9c8da; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.topbar .nav-link:hover, .topbar .nav-link.current { color: #fff; background: rgb(255 255 255 / 9%); }
.topbar .sale-link, .topbar .sale-link.current {
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgb(161 34 44 / 45%);
}
.topbar .sale-link:hover { background: linear-gradient(180deg, #d63a46, #b02933); }
.topbar .logout-form { margin: 0; }
.topbar .logout-form button {
    background: transparent; color: #c6d3e3;
    border: 1px solid rgb(255 255 255 / 16%);
    padding: 6px 14px;
}
.topbar .logout-form button:hover { background: rgb(255 255 255 / 8%); color: #fff; }

/* ============ الحاوية الرئيسية ============ */
main { max-width: 1180px; margin: auto; padding: 28px 18px 72px; }
h1 { margin: 0 0 20px; font-size: 1.9rem; letter-spacing: -.4px; display: flex; align-items: center; gap: 12px; }
h1::before { content: ""; width: 6px; height: 30px; border-radius: 99px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 2px 10px rgb(161 34 44 / 35%); }
h2 { margin: 0 0 14px; font-size: 1.12rem; letter-spacing: -.2px; }

/* ============ الكروت ============ */
section, details {
    margin: 18px 0; padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
details { padding: 0; overflow: hidden; }
details > summary { cursor: pointer; font-weight: 600; padding: 16px 22px; list-style: none; display: flex; align-items: center; gap: 10px; color: var(--ink); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
details[open] > summary::before { content: "−"; background: var(--brand); color: #fff; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details > :not(summary) { padding-inline: 22px; }
details > form { padding-block: 14px 22px; }

/* ============ الشبكة ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 18px; }
.metrics section { margin: 0; border-inline-start: 4px solid var(--brand); background: linear-gradient(180deg, #fff, #fbfcff); }
.metrics strong { display: block; margin-top: 10px; font-size: 1.55rem; font-weight: 800; color: var(--ink); }

/* ============ النماذج ============ */
label { display: block; margin: 10px 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
input, select, button, .button { font: inherit; }
input, select, label output {
    display: block; width: 100%; margin-top: 6px;
    border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px; background: #fbfcfe; color: var(--ink);
}
input:focus, select:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(161 34 44 / 12%); }
input[type=search] { max-width: 460px; }
input[type=number] { direction: ltr; text-align: right; }
output { background: #f3f6fb; font-weight: 700; }

/* ============ الأزرار ============ */
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: .92rem;
    color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand));
    box-shadow: 0 4px 14px rgb(161 34 44 / 30%);
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgb(161 34 44 / 38%); color: #fff; }
button.secondary, .button.secondary { color: var(--ink); background: #eef2f8; box-shadow: none; border: 1px solid var(--line); }
button.secondary:hover, .button.secondary:hover { background: #e3e9f3; color: var(--ink); }

/* ============ الجداول ============ */
.scroll { overflow-x: auto; margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; text-align: right; }
th, td { padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
th { background: linear-gradient(180deg, #f5f8fc, #edf2f9); font-size: .82rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
tbody tr:hover { background: #f7faff; }
.low { color: var(--brand); font-weight: 800; background: var(--brand-soft); border-radius: 8px; }
.notice { padding: 12px 16px; border-radius: 10px; background: linear-gradient(180deg, #e8f6f8, #e0f1f4); border: 1px solid #c9e6ea; color: #0b5c61; font-weight: 600; }
#matches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.totals { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0; padding: 16px 18px; background: #f7f9fd; border: 1px dashed #cfd9e6; border-radius: 12px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* ============ لوحة التحكم ============ */
.dashboard-filter { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: linear-gradient(135deg, #0d1b2e 0%, #16283f 55%, #1c3450 100%); color: #fff; border: 0; padding: 22px 24px; }
.dashboard-filter h2 { font-size: 1.3rem; }
.dashboard-filter p { color: #9fb4cd; font-size: .86rem; }
.period-link { color: #d5e1ee; border: 1px solid rgb(255 255 255 / 18%); border-radius: 99px; padding: 6px 16px; font-size: .84rem; }
.period-link[aria-current], .period-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.dashboard-heading { margin: 24px 0 14px; }
.dashboard-heading small { color: var(--ink-2); font-size: .78rem; background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; margin-inline-start: 8px; }

/* ============ صفحة الدخول ============ */
.login-shell { max-width: none; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse 60% 50% at 80% 0%, #2d4662 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 10% 100%, #4a1e24 0%, transparent 60%), #0b1626; }
.login-shell .login-card { width: min(100%, 440px); padding: clamp(24px, 5vw, 42px); border-radius: 24px; box-shadow: 0 30px 80px rgb(0 0 0 / 55%); background: #fff; }
.login-brand { display: grid; justify-items: center; gap: 12px; text-align: center; }
.login-brand .brand-logo { width: 150px; height: 80px; padding: 6px; border-radius: 14px; background: #fff; object-fit: contain; }
.login-intro { margin: 22px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.login-intro h1 { margin: 6px 0; font-size: 1.7rem; justify-content: center; }
.login-intro h1::before { display: none; }

/* ============ ورقة الفاتورة المطبوعة ============ */
.invoice-sheet { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; margin: 20px 0; box-shadow: var(--shadow-md); color: var(--ink); font-size: .92rem; }
.invoice-sheet .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid #0f1b2d; margin-bottom: 20px; flex-wrap: wrap; }
.invoice-sheet .sheet-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.invoice-sheet .sheet-brand .sheet-logo { width: 72px; height: 72px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; object-fit: contain; box-shadow: var(--shadow-sm); }
.invoice-sheet .sheet-brand strong { display: block; font-size: 1.15rem; color: #0f1b2d; }
.invoice-sheet .sheet-brand small { display: block; color: var(--ink-2); font-size: .8rem; margin-top: 4px; }
.invoice-sheet .sheet-title { text-align: left; flex: none; }
.invoice-sheet .sheet-title h2 { margin: 0; font-size: 1.9rem; letter-spacing: 2px; color: var(--brand); text-transform: uppercase; font-weight: 800; }
.invoice-sheet .sheet-title .sheet-id { display: inline-block; margin-top: 6px; padding: 4px 12px; background: #0f1b2d; color: #fff; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.invoice-sheet .sheet-meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; margin-bottom: 22px; align-items: start; }
.invoice-sheet .sheet-meta > div { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; line-height: 1.7; }
.invoice-sheet .sheet-meta strong { display: block; font-size: .72rem; color: var(--ink-2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.invoice-sheet .sheet-meta .qr-box { text-align: center; width: 148px; padding: 12px; }
.invoice-sheet .sheet-meta .qr-box svg { display: block; margin: 0 auto 8px; width: 112px; height: 112px; background: #fff; border-radius: 8px; }
.invoice-sheet .sheet-meta .qr-box span { display: block; font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.invoice-sheet table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.invoice-sheet table thead th { background: #0f1b2d; color: #fff; text-transform: uppercase; font-size: .74rem; letter-spacing: 1px; padding: 12px 14px; border: 0; font-weight: 700; }
.invoice-sheet table tbody td { padding: 12px 14px; border-bottom: 1px solid #edf1f6; font-size: .9rem; }
.invoice-sheet .sheet-summary { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-bottom: 22px; }
.invoice-sheet .sheet-summary .totals { display: block; margin: 0; padding: 0; background: transparent; border: 0; font-weight: 600; }
.invoice-sheet .sheet-summary .totals > div { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px dashed #dbe2ec; font-size: .9rem; }
.invoice-sheet .sheet-summary .totals .grand { background: #0f1b2d; color: #fff; border-radius: 10px; padding: 14px 16px; font-size: 1.05rem; font-weight: 800; border: 0; margin-top: 8px; }
.invoice-sheet .sheet-summary .totals .grand bdi { color: #fff; }
.invoice-sheet .sheet-summary .totals .remaining { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 12px 16px; font-weight: 800; border: 0; margin-top: 6px; }
.invoice-sheet .sheet-summary .totals .remaining bdi { color: var(--brand); }
.invoice-sheet .sheet-signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; padding-top: 24px; border-top: 1px dashed #cfd9e6; }
.invoice-sheet .sheet-signatures > div { text-align: center; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.invoice-sheet .sheet-signatures .sig-line { display: block; margin-top: 34px; border-top: 1px solid #0f1b2d; padding-top: 6px; color: var(--ink-2); font-size: .78rem; }
.invoice-sheet .sheet-footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-2); flex-wrap: wrap; }

/* ============ الطباعة ============ */
@media print {
    @page { size: A4 portrait; margin: 10mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
    .no-print, header.topbar, main > h1, .notice, button, .button { display: none !important; }
    main { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
    
    .invoice-sheet { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
    .invoice-sheet .sheet-head { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; border-bottom: 2px solid #000 !important; padding-bottom: 15px !important; margin-bottom: 20px !important; }
    .invoice-sheet .sheet-brand .sheet-logo { display: block !important; border: 1px solid #ddd !important; }
    .invoice-sheet .sheet-title h2 { color: #000 !important; }
    .invoice-sheet .sheet-title .sheet-id { background: #000 !important; color: #fff !important; }
    
    .invoice-sheet .sheet-meta { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: stretch !important; gap: 15px !important; margin-bottom: 20px !important; page-break-inside: avoid !important; }
    .invoice-sheet .sheet-meta > div { flex: 1 !important; background: #f8f9fa !important; border: 1px solid #ccc !important; padding: 12px !important; }
    .invoice-sheet .sheet-meta .qr-box { flex: 0 0 140px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; background: #fff !important; border: 1px solid #000 !important; }
    .invoice-sheet .sheet-meta .qr-box svg { width: 100px !important; height: 100px !important; }
    
    .invoice-sheet table thead { display: table-header-group !important; }
    .invoice-sheet table th { background: #000 !important; color: #fff !important; }
    .invoice-sheet table tr { page-break-inside: avoid !important; }
    
    .invoice-sheet .sheet-summary { display: flex !important; flex-direction: column !important; gap: 10px !important; page-break-inside: avoid !important; }
    .invoice-sheet .sheet-summary .totals > div { border-bottom: 1px dashed #ccc !important; }
    .invoice-sheet .sheet-summary .totals .grand { background: #000 !important; color: #fff !important; }
    
    .invoice-sheet .sheet-signatures { display: flex !important; flex-direction: row !important; justify-content: space-between !important; gap: 20px !important; page-break-inside: avoid !important; }
    .invoice-sheet .sheet-signatures > div { flex: 1 !important; }
}

/* ============ تحسينات لوحة التحكم (نظرة على الأداء) ============ */
.dashboard-metrics section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px !important;
}
.dashboard-metrics section::after {
    display: none; /* إخفاء النقطة اللي كانت فوق */
}
.dashboard-metrics section > * {
    position: relative;
    z-index: 1;
}
.dashboard-metrics section strong {
    margin-top: 8px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    direction: ltr; /* يخلي الأرقام ثابتة بالعربي */
    text-align: right;
    font-feature-settings: "tnum";
}
/* لون مميز لو الرقم فيه خسارة (بالسالب) */
.dashboard-metrics section strong:contains('-') {
    color: var(--brand);
}

/* تظبيط شريط الفلترة (نظرة على الأداء) */
.dashboard-filter {
    padding: 26px 30px !important;
    border-radius: 20px !important;
}
.dashboard-filter form {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    padding: 16px 20px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.dashboard-filter form label {
    font-size: 0.85rem !important;
    margin-bottom: 6px;
}
.dashboard-filter input {
    border-radius: 8px !important;
    border: 0 !important;
    padding: 10px 12px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
}
.dashboard-filter button {
    background: #fff !important;
    color: var(--ink) !important;
    box-shadow: none !important;
}
.dashboard-filter button:hover {
    background: #f1f5f9 !important;
}

/* ============ تحسينات الرسم البياني (حركة المبيعات والتحصيل) ============ */
.trend-list {
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.trend-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    border-top: 1px solid var(--line); /* إلغاء البوردر القديم */
}

.trend-row bdi {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-2);
    direction: ltr;
    text-align: right;
}

.trend-value {
    display: grid;
    grid-template-columns: 100px 1fr; /* المسافة للنص ثم الشريط */
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.trend-value bdi {
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 600;
    direction: ltr;
    text-align: left;
}

/* تحويل الـ meter لشكل فخم */
.trend-value meter {
    width: 100%;
    height: 10px;
    appearance: none;
    border-radius: 99px;
    background: #e2e8f0; /* الخلفية الرمادية للشريط */
    overflow: hidden;
}

.trend-value meter::-webkit-meter-bar {
    background: #e2e8f0;
    border: 0;
    border-radius: 99px;
    height: 10px;
}

.trend-value meter::-webkit-meter-optimum-value {
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* لون المبيعات (أزرق داكن) */
.trend-value .sold::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, #1e3a5f, #34506f);
}
.trend-value .sold::-moz-meter-bar {
    background: #34506f;
    border-radius: 99px;
}

/* لون التحصيل (أحمر البراند) */
.trend-value .received::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, var(--brand-2), var(--brand));
}
.trend-value .received::-moz-meter-bar {
    background: var(--brand);
    border-radius: 99px;
}

/* الموبايل */
@media (max-width: 720px) {
    .trend-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }
    .trend-value {
        grid-template-columns: 1fr 80px; /* الشريط ثم الرقم */
    }
}

/* ============ تظبيط شريط (نظرة على الأداء) ============ */
.dashboard-filter {
    display: flex !important;
    flex-direction: column !important; /* نخلي كل حاجة تحت بعض */
    align-items: stretch !important;
    gap: 20px !important;
    padding: 24px 30px !important;
    background: linear-gradient(135deg, #0d1b2e 0%, #16283f 55%, #1c3450 100%) !important;
    border-radius: 20px !important;
    border: 0 !important;
    box-shadow: var(--shadow-lg) !important;
}

/* السطر الأول: العنوان + زرار البيع */
.dash-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.dash-titles h2 {
    margin: 0 0 6px 0 !important;
    font-size: 1.5rem !important;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: -.5px;
}
.dash-titles p {
    margin: 0 !important;
    color: #9fb4cd !important;
    font-size: 0.9rem !important;
}

/* تكبير زرار بيع جديد */
.dashboard-filter .dash-top-row .button, 
.dashboard-filter .dash-top-row button {
    padding: 14px 32px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, var(--brand-2), var(--brand)) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgb(161 34 44 / 45%) !important;
    border: 0 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.dashboard-filter .dash-top-row .button:hover,
.dashboard-filter .dash-top-row button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgb(161 34 44 / 60%) !important;
}

/* السطر الثاني: أزرار الفترات (اليوم، آخر 7 أيام...) */
.dash-periods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-periods .period-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    font-weight: 600;
    color: #d5e1ee;
    transition: all 0.2s;
}
.dash-periods .period-link:hover,
.dash-periods .period-link[aria-current="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgb(161 34 44 / 40%);
}

/* السطر الثالث: الفترة المخصصة (من - إلى) */
.dash-custom-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}
.dash-custom-form label {
    margin: 0 !important;
    color: #c9d8e8 !important;
    font-size: 0.85rem !important;
    flex: 1;
    min-width: 140px;
}
.dash-custom-form input[type=date] {
    color: var(--ink) !important;
    background: #fff !important;
    border: 0 !important;
    margin-top: 6px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
}
.dash-custom-form button {
    background: #fff !important;
    color: var(--ink) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 11px 24px !important;
}
.dash-custom-form button:hover {
    background: #f1f5f9 !important;
}
.stock-actions { display: flex; align-items: flex-start; gap: 6px; }
.stock-actions details { margin: 0; padding: 0; border: 0; background: transparent; }
.stock-actions .stock-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #edf2f8; color: #193450; cursor: pointer; }
.stock-actions .stock-delete { color: #a1222c; background: #faeef0; }
.stock-actions summary::-webkit-details-marker { display: none; }
.stock-actions .stock-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
