@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{--green:#6da74f;--green2:#83b861;--purple:#3d0b67;--dark:#20252d;--muted:#8d97a5;--line:#e8ebef;--bg:#f5f7fa}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Cairo,sans-serif;color:#20252d;background:#f4f7fa}
html[dir="rtl"] body{font-family:Cairo,Inter,sans-serif}
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f2f6f9;padding:28px}
.login-shell{width:min(1024px,100%);min-height:620px;background:#fff;border-radius:24px;overflow:hidden;display:grid;grid-template-columns:42% 58%;box-shadow:0 28px 55px rgba(29,38,49,.16)}
.login-brand{padding:48px;background:radial-gradient(circle at 75% 25%,#5a0a93 0,#39105f 37%,#202a32 100%);color:#fff;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:40px;height:40px;border-radius:11px;background:#4fc47b;display:grid;place-items:center;font-weight:800;font-size:22px;color:white}.brand-name{font-weight:800;font-size:18px}
.brand-copy{margin-top:65px}.brand-copy h1{font-size:25px;line-height:1.25;margin-bottom:12px}.brand-copy p{font-size:13px;line-height:1.8;color:#d8d4e2;max-width:340px}
.feature-list{margin-top:62px;display:grid;gap:12px}.feature{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);padding:14px;border-radius:16px;display:flex;gap:12px;align-items:center}.feature span{width:32px;height:32px;background:rgba(93,59,130,.55);border-radius:9px;display:grid;place-items:center;color:#9dd4af}.feature strong,.feature small{display:block}.feature strong{font-size:12px}.feature small{font-size:10px;color:#bcb5c7;margin-top:3px}.brand-footer{margin-top:auto;font-size:10px;color:#a8a5af}
.login-form-area{padding:58px 74px;position:relative}.language-switch{position:absolute;top:38px;right:74px;border:1px solid #e2e6eb;border-radius:12px;padding:3px;background:#f8fafb;display:flex}.language-switch a{padding:6px 9px;border-radius:8px;text-decoration:none;color:#87919e;font-size:11px}.language-switch a.active{background:#fff;border:2px solid #26303a;color:#20252d;padding:5px 9px;font-weight:700}
.form-card{max-width:500px;margin:68px auto 0}.form-card h2{font-size:24px;font-weight:800;margin-bottom:5px}.form-card>p{font-size:12px;color:#8d97a5;margin-bottom:28px}.form-label{font-size:12px;font-weight:600}.input-wrap{height:42px;border:1px solid #dfe4e9;border-radius:10px;display:flex;align-items:center;padding:0 12px;gap:9px;background:#fafbfc}.input-wrap:focus-within{border-color:#78a95e;box-shadow:0 0 0 3px rgba(109,167,79,.10)}.input-wrap i{color:#9da8b4}.input-wrap .form-control{border:0;background:transparent;box-shadow:none;padding:0;font-size:12px}.password-toggle{border:0;background:transparent;color:#9aa5b1}.login-options{display:flex;justify-content:space-between;align-items:center;margin:16px 0 24px;font-size:11px}.login-options a{color:#62617b;text-decoration:none;font-weight:600}.remember{display:flex;gap:7px;align-items:center;color:#69737e}.remember input{accent-color:#2783d4}.btn-login{width:100%;border:0;border-radius:10px;height:42px;background:linear-gradient(90deg,#6da74f,#73a651);color:#fff;font-size:12px;font-weight:700}.btn-login i{margin-inline-start:8px}.powered{position:absolute;bottom:46px;left:74px;right:74px;border-top:1px solid #eef0f2;padding-top:18px;color:#aab1b9;font-size:11px}

.admin-body{background:#f5f7fa}.admin-layout{min-height:100vh;display:flex}.sidebar{width:250px;background:#fff;border-right:1px solid #e9edf1;padding:22px 16px;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;z-index:5}.sidebar-brand{display:flex;align-items:center;gap:10px;font-size:18px;padding:0 10px 28px}.sidebar-brand .brand-mark{width:36px;height:36px;font-size:19px}.menu-title{font-size:9px;color:#a6afb8;font-weight:800;letter-spacing:.8px;padding:12px 12px 8px}.menu-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;color:#69737e;text-decoration:none;font-size:12px;margin:2px 0}.menu-item i{font-size:16px}.menu-item.active,.menu-item:hover{background:#eef6e9;color:#5f963f;font-weight:700}.sidebar-bottom{margin-top:auto}.mini-profile{display:flex;gap:10px;align-items:center;border-top:1px solid #eef0f2;padding:16px 8px}.avatar,.top-avatar{width:34px;height:34px;border-radius:50%;background:#dfead8;color:#5b8f43;display:grid;place-items:center;font-weight:800}.mini-profile b,.mini-profile small{display:block;font-size:10px}.mini-profile small{color:#a1a9b1;margin-top:2px}.logout-btn{width:100%;border:0;background:#f8f9fa;border-radius:9px;padding:9px;color:#777;font-size:11px}.main-area{margin-left:250px;width:calc(100% - 250px)}html[dir="rtl"] .sidebar{right:0;left:auto;border-right:0;border-left:1px solid #e9edf1}html[dir="rtl"] .main-area{margin-left:0;margin-right:250px}.topbar{height:70px;background:#fff;border-bottom:1px solid #e9edf1;display:flex;align-items:center;justify-content:space-between;padding:0 30px}.top-search{display:flex;gap:10px;align-items:center;color:#a5aeb7}.top-search input{border:0;outline:0;width:260px;font-size:12px}.top-actions{display:flex;align-items:center;gap:16px}.top-actions button{border:0;background:transparent;color:#7b858f;position:relative}.top-actions em{position:absolute;top:-5px;right:-4px;width:14px;height:14px;border-radius:50%;background:#e35c5c;color:#fff;font-size:8px;font-style:normal;display:grid;place-items:center}.lang-pill{font-size:11px;text-decoration:none;color:#6f7881}.content-wrap{padding:30px}.dashboard-page{max-width:1400px;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.page-header h2{font-size:22px;font-weight:800;margin:0}.page-header p{color:#939da7;font-size:11px;margin:5px 0 0}.page-header .btn{background:#6da74f;border:0;font-size:11px;border-radius:9px;padding:10px 15px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card,.panel{background:#fff;border:1px solid #e9edf1;border-radius:15px}.stat-card{padding:18px;display:flex;gap:14px;align-items:center}.stat-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:19px}.customers{background:#eef6e9;color:#6da74f}.invoices{background:#f0edff;color:#7663d4}.sales{background:#eaf6f7;color:#3b9ca1}.pending{background:#fff4e8;color:#d8943e}.stat-card span,.stat-card small{display:block;color:#929ba4;font-size:10px}.stat-card strong{display:inline-block;font-size:21px;margin:4px 8px 0 0}.positive{color:#58a54d!important}.content-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin-top:18px}.panel{padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-head h5{font-size:13px;font-weight:800;margin:0}.panel-head small{color:#a0a8b0;font-size:10px}.panel-head a{font-size:10px;color:#6da74f;text-decoration:none}.panel-head select{width:110px;font-size:10px}.fake-chart{height:230px;padding:15px 5px 0}.chart-bars{height:185px;display:flex;align-items:end;justify-content:space-around;gap:12px;border-bottom:1px solid #edf0f2}.chart-bars span{width:30px;background:linear-gradient(#86b866,#6da74f);border-radius:7px 7px 0 0}.chart-labels{display:flex;justify-content:space-around;color:#a0a8b0;font-size:9px;padding-top:8px}.activity{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #f0f2f4}.activity:last-child{border:0}.activity>i{width:34px;height:34px;border-radius:10px;background:#f0f6ec;color:#6da74f;display:grid;place-items:center}.activity b,.activity small{display:block}.activity b{font-size:11px}.activity small{font-size:9px;color:#9ca5ad;margin-top:3px}
.mobile-menu{display:none}.mobile-menu-backdrop{display:none}

@media(max-width:900px){.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-form-area{min-height:600px;padding:40px 28px}.language-switch{right:28px}.powered{left:28px;right:28px}.sidebar{width:210px}.main-area{margin-left:210px;width:calc(100% - 210px)}html[dir="rtl"] .main-area{margin-right:210px}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:650px) {
  .admin-layout { min-height:100vh; min-height:100dvh; }
  .sidebar {
    display:flex; position:fixed; top:0; bottom:0; bottom:0; width: min(290px, 86vw); max-width:86vw;
    z-index:2147483001; overflow-y:auto; -webkit-overflow-scrolling:touch;
    background:#fff; box-shadow:0 12px 35px rgba(20,30,40,.25);
    -webkit-transition:-webkit-transform .25s ease, visibility .25s ease;
    transition:transform .25s ease, visibility .25s ease;
    visibility:hidden; will-change:transform;
  }
  html[dir="rtl"] .sidebar { right:0; left:auto; -webkit-transform:translate3d(110%,0,0); transform:translate3d(110%,0,0); border-left:1px solid #e9edf1; }
  html[dir="ltr"] .sidebar, html:not([dir="rtl"]) .sidebar { left:0; right:auto; -webkit-transform:translate3d(-110%,0,0); transform:translate3d(-110%,0,0); }
  .sidebar.mobile-open { visibility:visible !important; -webkit-transform:translate3d(0,0,0) !important; transform:translate3d(0,0,0) !important; }
  .mobile-menu-backdrop { display:none; position:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; z-index:2147483000; border:0; padding:0; margin:0; background:rgba(20,28,36,.48); -webkit-appearance:none; appearance:none; }
  .mobile-menu-backdrop.visible { display:block !important; visibility:visible !important; }
  body.mobile-menu-open { overflow:hidden; position:relative; }
  .main-area, html[dir="rtl"] .main-area { margin:0; width:100%; }
  .mobile-menu { display:block; flex:0 0 auto; position:relative; z-index:2147483002; border:0; background:transparent; font-size:26px; line-height:1; padding:8px 10px; color:#374151; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
  .topbar { padding:0 12px; }
  .top-search { display:none; }
  .content-wrap { padding:18px; }
  .content-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr; }
  .page-header h2 { font-size:19px; }
}


.toolbar{display:flex;gap:10px;justify-content:space-between;margin-bottom:18px}.table-search{height:38px;border:1px solid #e4e8ec;border-radius:9px;display:flex;align-items:center;gap:9px;padding:0 12px;flex:1;max-width:520px;color:#a2abb4}.table-search input{border:0;outline:0;width:100%;font-size:11px}.modern-table{font-size:11px;margin:0}.modern-table thead th{font-size:9px;color:#929ba4;font-weight:800;border-bottom:1px solid #edf0f2;white-space:nowrap}.modern-table tbody td{border-bottom:1px solid #f0f2f4;color:#5f6974}.user-cell{display:flex;align-items:center;gap:9px}.user-cell b,.user-cell small{display:block}.user-cell b{font-size:11px;color:#2c333b}.user-cell small{font-size:9px;color:#9da6ae;margin-top:2px}.role-badge,.status-badge{padding:5px 8px;border-radius:20px;font-size:9px;font-weight:700}.role-badge.manager{background:#f0edff;color:#6c5bc7}.role-badge.accountant{background:#e9f6f7;color:#318c91}.role-badge.sales{background:#eef6e9;color:#61954a}.status-badge.on{background:#eef7ec;color:#599447}.status-badge.off{background:#f5f0f0;color:#a17c7c}.actions{white-space:nowrap;text-align:end}.actions a,.actions button{border:0;background:transparent;color:#87919b;margin-inline-start:7px}.actions a:hover,.actions button:hover{color:#6da74f}.form-panel{max-width:1100px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.customer-form{grid-template-columns:repeat(3,1fr)}.form-grid .form-control,.form-grid .form-select{font-size:11px;border-color:#e1e6ea;border-radius:8px;height:40px}.form-actions{border-top:1px solid #edf0f2;margin-top:24px;padding-top:18px;display:flex;gap:9px}.form-actions .btn{font-size:11px;border-radius:8px;padding:9px 18px}.form-actions .btn-primary{background:#6da74f;border:0}@media(max-width:900px){.customer-form{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.form-grid,.customer-form{grid-template-columns:1fr}.toolbar{flex-direction:column}.table-search{max-width:none}}

.sale-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.sale-main{min-width:0}.sale-head-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;padding-bottom:20px;border-bottom:1px solid #edf0f2}.sale-items-header{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}.sale-items-header h5,.sale-summary h5{font-size:14px;font-weight:800;margin:0}.sale-items-table{font-size:10px}.sale-items-table th{font-size:9px;color:#9099a2;white-space:nowrap}.sale-items-table td{vertical-align:middle}.sale-items-table .form-control{height:36px;font-size:10px;min-width:70px}.sale-items-table .item-name{min-width:170px}.line-total{font-weight:800;white-space:nowrap}.remove-row{border:0;background:#fff1f1;color:#c06b6b;border-radius:7px;width:30px;height:30px}.sale-summary{height:max-content;position:sticky;top:90px}.summary-line,.summary-field,.grand-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f2;font-size:11px}.summary-field input{width:120px;height:36px;border:1px solid #e1e6ea;border-radius:8px;padding:0 9px;text-align:end}.grand-total{margin-top:6px;border:0;font-size:14px}.grand-total b{color:#61964a;font-size:20px}.save-sale-btn{width:100%;height:44px;margin-top:16px;border:0;background:#6da74f}.invoice-top{display:flex;justify-content:space-between;border-bottom:1px solid #edf0f2;padding-bottom:18px;margin-bottom:18px}.invoice-top b,.invoice-top small{display:block}.invoice-top small{font-size:10px;color:#99a2ab;margin-top:4px}.invoice-customer{display:flex;justify-content:space-between;background:#f8fafb;padding:12px;border-radius:9px;margin-bottom:18px;font-size:11px}.invoice-totals{margin-top:18px;margin-inline-start:auto;width:300px}.invoice-totals>div{display:flex;justify-content:space-between;padding:8px;border-bottom:1px solid #edf0f2;font-size:11px}.invoice-totals .grand{font-size:14px;font-weight:800}.invoice-totals .grand b{color:#61964a}@media(max-width:900px){.sale-layout{grid-template-columns:1fr}.sale-summary{position:static}.sale-head-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.sale-head-grid{grid-template-columns:1fr}.sale-items-table .item-name{min-width:120px}}@media print{.sidebar,.topbar,.page-header,.btn,.actions{display:none!important}.main-area{margin:0!important;width:100%!important}.content-wrap{padding:0!important}.invoice-print{box-shadow:none!important;border:0!important}}

.supplier-form{grid-template-columns:repeat(3,1fr)}@media(max-width:900px){.supplier-form{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.supplier-form{grid-template-columns:1fr}}

.supplier-master-form{grid-template-columns:repeat(3,1fr)}
.product-form{grid-template-columns:repeat(3,1fr)}
.product-supplier-select{max-width:420px;margin-bottom:18px}
.product-filter{display:flex;gap:10px;align-items:center}.filter-select{max-width:240px;height:36px}
@media(max-width:900px){.supplier-master-form,.product-form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.supplier-master-form,.product-form{grid-template-columns:1fr}.product-filter{flex-wrap:wrap}.filter-select{max-width:none;width:100%}}

.purchase-head{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px;margin-bottom:24px}
.purchase-items-wrap{margin-top:12px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.purchase-summary{display:grid;grid-template-columns:repeat(3,1fr) 1.4fr;gap:14px;margin:20px 0}
.total-card{border:1px solid #e6e9ef;border-radius:12px;padding:14px;background:#f8f9fb;display:flex;flex-direction:column;justify-content:center}
.total-card strong{font-size:24px}.total-card small{margin-top:5px}
.purchase-info{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.purchase-info div{padding:14px;border:1px solid #e6e9ef;border-radius:12px;background:#fafbfc}.purchase-info span{display:block;font-size:12px;opacity:.7;margin-bottom:5px}
.invoice-total-box{margin-inline-start:auto;max-width:300px;padding:18px;border-radius:12px;background:#f8f9fb;display:flex;justify-content:space-between}.invoice-total-box strong{font-size:24px}
@media(max-width:900px){.purchase-head{grid-template-columns:1fr 1fr}.purchase-summary{grid-template-columns:1fr 1fr}.purchase-info{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.purchase-head,.purchase-summary,.purchase-info{grid-template-columns:1fr}}

.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.status-paid{background:#e8f7ee;color:#147a3d}.status-credit{background:#fff4d6;color:#9a6500}.status-pending{background:#fde9e9;color:#b42318}
.invoice-status-strip{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin:-6px 0 16px;padding:13px 16px;border:1px solid #e6e9ef;border-radius:12px;background:#fff}
.credit-balance{font-weight:800;display:inline-block;min-width:90px}
.warehouse-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}
.warehouse-cards .stat-card{position:relative;min-height:112px;padding:18px;border:1px solid #e6e9ef;border-radius:14px;background:#fff}
.warehouse-cards .stat-card span{display:block;font-size:13px;opacity:.72}.warehouse-cards .stat-card strong{display:block;font-size:24px;margin-top:10px}
.warehouse-cards .stat-card i{position:absolute;top:18px;inset-inline-end:18px;font-size:22px;opacity:.45}
@media(max-width:1100px){.warehouse-cards{grid-template-columns:repeat(3,1fr)}} 
@media(max-width:650px){.warehouse-cards{grid-template-columns:1fr 1fr}}

.company-header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:2px solid #edf0f2;padding-bottom:16px;margin-bottom:18px}.company-brand{display:flex;align-items:center;gap:14px}.company-brand img{width:78px;height:78px;object-fit:contain;border-radius:10px}.company-brand h3{margin:0;font-size:18px;font-weight:800}.company-brand small{display:block;color:#7d8791;margin-top:5px;font-size:10px}.company-contact{display:flex;flex-direction:column;gap:5px;text-align:end;font-size:10px;color:#707983}.company-logo-preview{width:130px;height:100px;object-fit:contain;border:1px solid #e5e9ed;border-radius:10px;padding:6px;background:#fff}.grid-span-2{grid-column:span 2}.invoice-print .company-header{margin-bottom:20px}@media(max-width:650px){.company-header{flex-direction:column;align-items:flex-start}.company-contact{text-align:start}.grid-span-2{grid-column:span 1}}

.invoice-footer-note{text-align:center;border-top:1px solid #edf0f2;margin-top:22px;padding-top:12px;color:#7a848d;font-size:10px}.company-header{break-inside:avoid}

.product-thumb,.product-image-preview{width:58px;height:58px;border-radius:12px;overflow:hidden;background:#eef3f8;display:flex;align-items:center;justify-content:center;color:#8aa0b5}.product-thumb img,.product-image-preview img{width:100%;height:100%;object-fit:cover}.product-image-preview{width:110px;height:110px;font-size:34px}.restaurant-pos{display:grid;grid-template-columns:1fr 410px;gap:18px}.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.pos-card{border:1px solid #e4eaf0;background:#fff;border-radius:16px;padding:0;overflow:hidden;text-align:right;cursor:pointer;transition:.15s}.pos-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(20,50,80,.1)}.pos-card img,.pos-card .pos-img{width:100%;height:125px;object-fit:cover;background:#f2f5f8;display:flex;align-items:center;justify-content:center;font-size:32px;color:#9aabbc}.pos-card-body{padding:10px}.pos-card-title{font-weight:700;min-height:42px}.pos-price{color:#1356a3;font-weight:800}.pos-cart{position:sticky;top:15px}.pos-cart-items{max-height:430px;overflow:auto}.pos-line{display:flex;gap:8px;align-items:center;border-bottom:1px solid #edf0f4;padding:10px 0}.pos-line .qty{width:58px;text-align:center}.pos-total{font-size:26px;font-weight:800}.pos-toolbar{display:flex;gap:10px;flex-wrap:wrap}.table-pills{display:flex;gap:8px;flex-wrap:wrap}.table-pills button{border:1px solid #dce5ee;background:#fff;border-radius:10px;padding:8px 14px}.table-pills button.active{background:#0f3d78;color:#fff}.pos-filter{border:0;border-radius:14px;padding:12px 14px;background:#f4f7fa}.order-type-buttons{display:flex;gap:8px}.order-type-buttons button{flex:1}.pos-empty{text-align:center;padding:30px;color:#8b9aaa}
@media(max-width:1000px){.restaurant-pos{grid-template-columns:1fr}.pos-cart{position:static}}

/* Live dashboard metrics and sales/purchase charts */
.dashboard-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.stat-icon.purchases{background:#fff0eb;color:#d8754d}
.stat-icon.purchase-invoices{background:#eef2ff;color:#5b6fd6}
.dashboard-updated{font-size:10px;color:#8c97a2;background:#fff;border:1px solid #e9edf1;border-radius:9px;padding:9px 12px}
.dashboard-charts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.real-chart{height:255px;display:flex;align-items:stretch;justify-content:space-around;gap:10px;padding:10px 4px 0;border-bottom:1px solid #edf0f2}
.real-chart-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}
.real-chart-value{font-size:9px;color:#75818b;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;height:15px}
.real-chart-track{height:190px;width:min(35px,65%);display:flex;align-items:flex-end;justify-content:center}
.real-chart-track span{display:block;width:100%;min-height:0;border-radius:6px 6px 0 0;transition:height .2s ease}
.real-chart-track .sales-bar{background:linear-gradient(#86b866,#6da74f)}
.real-chart-track .purchases-bar{background:linear-gradient(#71b9bd,#3b9ca1)}
.real-chart-column small{height:28px;text-align:center;font-size:9px;color:#9aa4ad;white-space:nowrap}
.dashboard-activity-panel{margin-top:18px}
.dashboard-activity-list .activity{align-items:center}
.activity-main{flex:1;min-width:0}
.activity-amount{font-size:12px;white-space:nowrap}
.activity-type{font-size:9px;padding:5px 8px;border-radius:7px;white-space:nowrap}
.activity-sale{color:#5e963f;background:#eef6e9}
.activity-purchase{color:#348c91;background:#eaf6f7}
.dashboard-empty{padding:24px;text-align:center;color:#9aa4ad;font-size:12px}
@media(max-width:1100px){.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts-grid{grid-template-columns:1fr}}
@media(max-width:650px){.dashboard-stats-grid{grid-template-columns:1fr}.dashboard-updated{display:none}.real-chart{gap:4px}.real-chart-value{font-size:8px}.activity-amount{font-size:10px}}

/* Responsive monthly comparison chart */
.monthly-comparison-panel{min-width:0}
.chart-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:10px;color:#77818b}
.chart-legend span{display:inline-flex;align-items:center;gap:5px}
.chart-legend i{display:inline-block;width:9px;height:9px;border-radius:3px}
.legend-sales{background:#6da74f}.legend-purchases{background:#3b9ca1}
.monthly-comparison-chart{height:285px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:stretch;padding:12px 4px 0;border-bottom:1px solid #edf0f2}
.monthly-group{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}
.monthly-bars{height:210px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px;border-bottom:1px solid #edf0f2}
.monthly-bar-wrap{height:100%;width:min(24px,38%);display:flex;align-items:flex-end;justify-content:center}
.monthly-bar{display:block;width:100%;min-height:0;border-radius:5px 5px 0 0;transition:height .2s ease}
.monthly-bar.sales-bar{background:linear-gradient(#86b866,#6da74f)}
.monthly-bar.purchases-bar{background:linear-gradient(#71b9bd,#3b9ca1)}
.monthly-group>small{height:28px;font-size:10px;color:#8f9aa4;text-align:center;white-space:nowrap}
.monthly-tooltip-values{display:none}
.chart-footnote{font-size:10px;color:#9aa4ad;padding-top:10px}
@media(max-width:650px){.monthly-comparison-chart{grid-template-columns:repeat(7,minmax(48px,1fr));overflow-x:auto;gap:7px}.monthly-comparison-panel{overflow:hidden}.monthly-bars{height:180px}.monthly-bar-wrap{width:17px}.monthly-group>small{font-size:9px}}

/* Cross-browser safeguards for Safari (iOS/macOS), Opera and Chromium browsers */
*, *::before, *::after { box-sizing:border-box; }
img, svg, video, canvas { max-width:100%; height:auto; }
.table-responsive { -webkit-overflow-scrolling:touch; }
button, a, input, select, textarea { touch-action:manipulation; }
@supports (-webkit-touch-callout: none) {
  .sidebar { padding-bottom:calc(22px + env(safe-area-inset-bottom)); }
  .topbar { padding-top:env(safe-area-inset-top); }
}
