html:not([data-platform="windows"]){background:#f4f8ff}
html:not([data-platform="windows"]) .desktop-sidebar,html:not([data-platform="windows"]) .mahwor-desktop-dashboard{display:none!important}
html:not([data-platform="windows"]) .mahwor-mobile-dashboard{display:block}
html:not([data-platform="windows"]) .mahwor-mobile-kpis{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:0 0 8px;padding:1px 0 3px;direction:rtl;overscroll-behavior-inline:contain}
html:not([data-platform="windows"]) .mahwor-mobile-kpis::-webkit-scrollbar{display:none}
html:not([data-platform="windows"]) .mahwor-mobile-kpi{flex:0 0 126px;min-width:0;border:1px solid #dce9fb;border-radius:14px;background:#fff;padding:8px 10px;box-shadow:0 5px 14px rgba(17,71,133,.08)}
html:not([data-platform="windows"]) .mahwor-mobile-kpi small{display:block;color:#64748b;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not([data-platform="windows"]) .mahwor-mobile-kpi b{display:block;color:#0b3c78;font-size:12px;margin-top:3px;white-space:nowrap}
html:not([data-platform="windows"]) .app-shell{width:100%;max-width:960px;margin-inline:auto;background:linear-gradient(180deg,#f8fbff,#eef4fd);overflow:hidden}
html:not([data-platform="windows"]) .app-header{position:relative;isolation:isolate;min-height:132px;padding:calc(7px + env(safe-area-inset-top,0px)) 14px 8px!important;background:linear-gradient(127deg,#0767d4 0%,#0849aa 55%,#062b70 100%)!important;border:0!important;color:#fff;overflow:hidden;box-shadow:0 8px 22px #082c6a24!important}
html:not([data-platform="windows"]) .app-header:before,html:not([data-platform="windows"]) .app-header:after{content:none}
html:not([data-platform="windows"]) .status-strip{display:none}
html:not([data-platform="windows"]) .head-brand{min-height:98px;padding:2px 0 0;display:grid;grid-template-columns:58px minmax(0,1fr) 58px;direction:ltr;align-items:center;gap:6px}
html:not([data-platform="windows"]) .mahwor-head-actions{display:flex;gap:8px;justify-content:flex-start;align-items:center}
html:not([data-platform="windows"]) .mahwor-head-actions button{width:44px;height:44px;padding:10px;border:1px solid #ffffff42;border-radius:14px;background:#ffffff12;color:#fff;box-shadow:none;backdrop-filter:blur(9px)}
html:not([data-platform="windows"]) .mahwor-head-actions button:first-child{display:none}
html:not([data-platform="windows"]) .mahwor-brand{display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;direction:rtl;min-width:0;transform:translateX(4px)}
html:not([data-platform="windows"]) .mahwor-brand img{width:54px;height:54px;max-width:none;max-height:none;object-fit:contain;filter:drop-shadow(0 6px 12px #001a4d50)}
html:not([data-platform="windows"]) .mahwor-brand-lockup{min-width:0;text-align:right;white-space:nowrap}
html:not([data-platform="windows"]) .mahwor-brand-lockup strong{display:block;color:#fff;font-size:clamp(18px,5.3vw,27px);font-weight:950;line-height:1.12;text-shadow:0 2px 5px #001e54aa}
html:not([data-platform="windows"]) .mahwor-brand-lockup small{display:block;color:#fff;font-size:clamp(9px,2.7vw,12px);font-weight:800;margin-top:4px}
html:not([data-platform="windows"]) .mahwor-profile{min-width:0;display:grid;place-items:center;color:#fff;direction:rtl}
html:not([data-platform="windows"]) .mahwor-profile-photo{width:50px;height:50px;border-radius:16px;background:#ffffff17;border:1px solid #ffffff2a;box-shadow:none}
html:not([data-platform="windows"]) .mahwor-profile-photo img{width:45px;height:45px;filter:drop-shadow(0 4px 8px #00183f66)}
html:not([data-platform="windows"]) .mahwor-profile .hi,html:not([data-platform="windows"]) .mahwor-profile #store-name,html:not([data-platform="windows"]) .mahwor-profile #store-subtitle{display:none!important}
html:not([data-platform="windows"]) .main-content{padding:9px 9px calc(84px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#f8fbff,#eef4fd);overflow-y:auto}
html:not([data-platform="windows"]) .mahwor-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 8px;direction:rtl}
html:not([data-platform="windows"]) .mahwor-quick-action{min-width:0;min-height:58px;padding:6px 3px;border:1px solid #d9e6f7!important;border-radius:16px;background:#fff!important;color:#0a3977!important;box-shadow:0 5px 13px #163c6b14;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
html:not([data-platform="windows"]) .mahwor-quick-action span{width:28px;height:28px;display:grid;place-items:center;color:#0870dc}
html:not([data-platform="windows"]) .mahwor-quick-action svg{width:24px;height:24px;stroke-width:2.2}
html:not([data-platform="windows"]) .mahwor-quick-action strong{font-size:10px;font-weight:900;line-height:1.2;white-space:nowrap}
html:not([data-platform="windows"]) .mahwor-module-group{margin-top:10px}
html:not([data-platform="windows"]) .mahwor-section-heading{display:flex;align-items:end;justify-content:space-between;gap:8px;margin:0 3px 7px;padding-bottom:6px;border-bottom:1px solid #dce8f7}
html:not([data-platform="windows"]) .mahwor-section-heading h2{margin:0;color:#0a3977;font-size:14px;font-weight:950}
html:not([data-platform="windows"]) .mahwor-section-heading small{color:#718096;font-size:9px;font-weight:700}
html:not([data-platform="windows"]) .mahwor-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;direction:rtl;margin:0}
html:not([data-platform="windows"]) .mahwor-tile{position:relative;min-width:0;min-height:92px;padding:8px 4px 7px;border:1px solid #fff!important;border-radius:20px;background:linear-gradient(145deg,#fff,#f7faff)!important;box-shadow:0 7px 18px #173e7619,0 1px 2px #fff inset;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:#09142f;overflow:visible}
html:not([data-platform="windows"]) .mahwor-tile:active{transform:scale(.97)}
html:not([data-platform="windows"]) .mahwor-tile-icon{width:48px;height:48px;flex:0 0 48px;margin:0;border-radius:15px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#19adff,#0758d8);box-shadow:inset 0 -4px 7px #001b5e26,0 6px 13px #0a5fe132}
html:not([data-platform="windows"]) .mahwor-tile-icon svg{width:29px;height:29px;stroke:#fff;stroke-width:2.25;filter:drop-shadow(0 2px 2px #00245a4c)}
html:not([data-platform="windows"]) .mahwor-tile strong{font-size:clamp(9px,2.8vw,13px);font-weight:950;line-height:1.3;min-height:0;color:#10162b;text-align:center}
html:not([data-platform="windows"]) .mahwor-tile.amber .mahwor-tile-icon,html:not([data-platform="windows"]) .mahwor-tile.orange .mahwor-tile-icon{background:linear-gradient(145deg,#ffd11c,#ff9f00);box-shadow:inset 0 -5px 8px #9b50002b,0 9px 18px #e99a2845}
html:not([data-platform="windows"]) .mahwor-tile.green .mahwor-tile-icon{background:linear-gradient(145deg,#72da35,#169319)}
html:not([data-platform="windows"]) .mahwor-tile.red .mahwor-tile-icon{background:linear-gradient(145deg,#ff5b58,#e41014)}
html:not([data-platform="windows"]) .mahwor-tile.violet .mahwor-tile-icon,html:not([data-platform="windows"]) .mahwor-tile.purple .mahwor-tile-icon{background:linear-gradient(145deg,#c45cff,#7720cf)}
html:not([data-platform="windows"]) .mahwor-tile.teal .mahwor-tile-icon{background:linear-gradient(145deg,#2ed4c9,#078a8f)}
html:not([data-platform="windows"]) .mahwor-tile.brown .mahwor-tile-icon{background:linear-gradient(145deg,#d28b3d,#8b490b)}
html:not([data-platform="windows"]) .mahwor-tile.pink .mahwor-tile-icon{background:linear-gradient(145deg,#f15bc2,#b9177d)}
html:not([data-platform="windows"]) .mahwor-tile.sky .mahwor-tile-icon{background:linear-gradient(145deg,#28b5ff,#0962df)}
html:not([data-platform="windows"]) .mahwor-tile.slate .mahwor-tile-icon{background:linear-gradient(145deg,#5aa5fb,#1b5db7)}
html:not([data-platform="windows"]) .bottom-nav{left:max(0px,calc((100vw - 960px)/2));right:max(0px,calc((100vw - 960px)/2));padding:8px 8px calc(7px + env(safe-area-inset-bottom,0px));min-height:calc(76px + env(safe-area-inset-bottom,0px));background:#fffffff7!important;border-top:1px solid #dce6f4;border-radius:26px 26px 0 0;box-shadow:0 -8px 26px #092a6020;backdrop-filter:blur(18px)}
html:not([data-platform="windows"]) .bottom-nav button{min-height:54px;color:#486183!important;font-size:10px;border-radius:17px!important}
html:not([data-platform="windows"]) .bottom-nav button.active{color:#fff!important;background:linear-gradient(145deg,#1380ff,#0758d8)!important;font-weight:900;box-shadow:0 8px 18px #075ec33b}
html:not([data-platform="windows"]) .bottom-nav button.active span{width:28px;height:28px;background:transparent!important;box-shadow:none!important;transform:none!important}
html:not([data-platform="windows"]) .bottom-nav button.active svg{width:25px;height:25px}
html:not([data-platform="windows"]) .table-scroll:has(>table.report-table[data-responsive-table]){overflow:visible!important;padding:0;background:transparent;border:0;box-shadow:none}
html:not([data-platform="windows"]) table.report-table[data-responsive-table]{display:block;width:100%;min-width:0;border:0;background:transparent}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] thead{display:none}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] tbody,html:not([data-platform="windows"]) table.report-table[data-responsive-table] tfoot{display:grid;width:100%;gap:8px}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] tfoot{margin-top:8px}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] tr{display:block;width:100%;padding:5px 10px;border:1px solid #dce7f4;border-radius:13px;background:#fff;box-shadow:0 4px 12px #123c7010}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] tbody tr:nth-child(even){background:#f7faff}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] td,html:not([data-platform="windows"]) table.report-table[data-responsive-table] tfoot th{display:grid;grid-template-columns:minmax(88px,36%) minmax(0,1fr);align-items:start;gap:9px;width:100%!important;min-width:0;padding:7px 0!important;border:0!important;border-bottom:1px dashed #e4ebf4!important;white-space:normal!important;text-align:right!important;line-height:1.55;overflow-wrap:anywhere;word-break:normal}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] td:last-child,html:not([data-platform="windows"]) table.report-table[data-responsive-table] tfoot th:last-child{border-bottom:0!important}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] td::before,html:not([data-platform="windows"]) table.report-table[data-responsive-table] tfoot th::before{content:attr(data-label);color:#58708f;font-size:10px;font-weight:900;line-height:1.55}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] .responsive-table-span{display:block!important;text-align:center!important;font-weight:900}
html:not([data-platform="windows"]) table.report-table[data-responsive-table] .responsive-table-span::before{content:none}
@media(max-width:380px){html:not([data-platform="windows"]) .app-header{min-height:124px;padding-inline:9px!important}html:not([data-platform="windows"]) .head-brand{min-height:92px;grid-template-columns:50px minmax(0,1fr) 50px}html:not([data-platform="windows"]) .mahwor-brand{gap:5px;transform:translateX(3px)}html:not([data-platform="windows"]) .mahwor-brand img{width:47px;height:47px}html:not([data-platform="windows"]) .mahwor-profile-photo{width:44px;height:44px}html:not([data-platform="windows"]) .mahwor-profile-photo img{width:40px;height:40px}html:not([data-platform="windows"]) .mahwor-head-actions button{width:42px;height:42px}html:not([data-platform="windows"]) .mahwor-quick-actions{gap:4px}html:not([data-platform="windows"]) .mahwor-quick-action{min-height:54px;border-radius:14px}html:not([data-platform="windows"]) .mahwor-tiles{gap:6px}html:not([data-platform="windows"]) .mahwor-tile{min-height:90px;border-radius:18px}html:not([data-platform="windows"]) .mahwor-tile-icon{width:46px;height:46px;flex-basis:46px;border-radius:14px}html:not([data-platform="windows"]) .mahwor-tile-icon svg{width:28px;height:28px}}

html:not([data-platform="windows"]) .item-workflow-form{padding-bottom:6px}html:not([data-platform="windows"]) .item-workflow-tabs{top:0}html:not([data-platform="windows"]) .item-workflow-panel{padding:11px}html:not([data-platform="windows"]) .item-identity-card{grid-template-columns:1fr}html:not([data-platform="windows"]) .calculator-section-heading{align-items:stretch;flex-direction:column}html:not([data-platform="windows"]) .calculator-section-heading label{min-width:0}html:not([data-platform="windows"]) .smart-calculator-body{grid-template-columns:1fr}html:not([data-platform="windows"]) .smart-calculator-summary{grid-template-columns:1fr 1fr}html:not([data-platform="windows"]) .smart-calculator-summary>div:last-child{grid-column:1/-1;background:#e6f7f2}html:not([data-platform="windows"]) .invoice-context-nav{position:sticky;z-index:7;top:0}html:not([data-platform="windows"]) .invoice-context-nav button{font-size:9px}html:not([data-platform="windows"]) .invoice-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))}html:not([data-platform="windows"]) .item-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}html:not([data-platform="windows"]) .item-fields .remove-item{grid-column:1}html:not([data-platform="windows"]) .item-fields .line-calculator-toggle{grid-column:2}html:not([data-platform="windows"]) .invoice-command-bar{grid-template-columns:1fr 1fr}html:not([data-platform="windows"]) .invoice-command-bar .invoice-save{grid-column:1/-1;grid-row:1}

/* Android workflow pages follow the compact blue-header reference instead of floating over the dashboard. */
html:not([data-platform="windows"]) .sheet-backdrop:has(.workflow-view){align-items:stretch;padding:0;background:#f1f5fb;backdrop-filter:none}
html:not([data-platform="windows"]) .sheet.workflow-view{width:100%;height:100dvh;max-height:100dvh!important;border-radius:0;background:#f1f5fb;box-shadow:none}
html:not([data-platform="windows"]) .workflow-view .sheet-head{position:relative;display:flex;flex:0 0 auto;min-height:116px;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:calc(env(safe-area-inset-top,0px) + 17px) 60px 30px;border:0;background:linear-gradient(145deg,#0d63c9 0%,#073c82 100%);color:#fff;overflow:hidden}
html:not([data-platform="windows"]) .workflow-view .sheet-head:before{content:"";position:absolute;width:170px;height:170px;inset-inline-end:-70px;top:-105px;border-radius:50%;background:#ffffff0b;box-shadow:0 0 0 38px #ffffff08}
html:not([data-platform="windows"]) .workflow-view .sheet-head h2{z-index:1;flex:0 0 auto;margin:0;color:#fff;font-size:19px;line-height:1.55;text-align:center}
html:not([data-platform="windows"]) .workflow-view .sheet-head:after{z-index:1;color:#dceaff;font-size:10px;font-weight:700}
html:not([data-platform="windows"]) .sale-workflow-view .sheet-head:after{content:"إنشاء فاتورة بيع جديدة"}
html:not([data-platform="windows"]) .purchase-workflow-view .sheet-head:after{content:"إضافة فاتورة مشتريات جديدة"}
html:not([data-platform="windows"]) .voucher-view .sheet-head:after{content:"سندات القبض والصرف والتحويل"}
html:not([data-platform="windows"]) .workflow-view .close-btn{position:absolute;z-index:2;inset-inline-start:16px;top:calc(env(safe-area-inset-top,0px) + 18px);width:42px;height:42px;border:1px solid #ffffff35;border-radius:13px;background:#ffffff17;color:#fff}
html:not([data-platform="windows"]) .workflow-view .sheet-grab{display:none}
html:not([data-platform="windows"]) .workflow-view .sheet-body{position:relative;z-index:2;flex:1;min-height:0;margin-top:-18px;padding:10px 10px calc(24px + env(safe-area-inset-bottom,0px));border-radius:25px 25px 0 0;background:#f6f8fc;overflow-y:auto}
html:not([data-platform="windows"]) .workflow-view .sheet-form{gap:9px}
html:not([data-platform="windows"]) .workflow-view .invoice-context-nav{top:0;margin:0 -1px 2px;padding:5px;border-radius:16px}
html:not([data-platform="windows"]) .workflow-view .invoice-context-nav button{min-height:48px;padding:6px 2px;font-size:8.5px}
html:not([data-platform="windows"]) .workflow-view .invoice-stage{gap:9px;padding:11px;border-radius:17px;box-shadow:0 5px 16px #143b6810}
html:not([data-platform="windows"]) .workflow-view .invoice-stage>h3{display:none}
html:not([data-platform="windows"]) .workflow-view .invoice-stage-header{grid-template-columns:repeat(2,minmax(0,1fr))}
html:not([data-platform="windows"]) .workflow-view .invoice-stage-header>.invoice-correction-note,html:not([data-platform="windows"]) .workflow-view .invoice-stage-header>.invoice-overview,html:not([data-platform="windows"]) .workflow-view .invoice-stage-header>.invoice-field-pair,html:not([data-platform="windows"]) .workflow-view .invoice-stage-header>.quick-party,html:not([data-platform="windows"]) .workflow-view .invoice-stage-header>#invoice-settlement-field{grid-column:1/-1}
html:not([data-platform="windows"]) .workflow-view .invoice-overview{padding:8px 10px;border-radius:12px;font-size:9px}
html:not([data-platform="windows"]) .workflow-view .invoice-overview small{font-size:8px}
html:not([data-platform="windows"]) .workflow-view .invoice-field-pair select{height:49px;border-radius:14px;font-size:12px}
html:not([data-platform="windows"]) .workflow-view .invoice-field-pair .small-add{height:46px;border-radius:12px;font-size:20px}
html:not([data-platform="windows"]) .workflow-view .invoice-large-field{font-size:10px}
html:not([data-platform="windows"]) .workflow-view .invoice-large-field select,html:not([data-platform="windows"]) .workflow-view .invoice-large-field input{height:49px;margin-top:4px;border-radius:13px;font-size:12px}
html:not([data-platform="windows"]) .workflow-view .invoice-large-field small{display:none}
html:not([data-platform="windows"]) .workflow-view .invoice-heading small{display:none}
html:not([data-platform="windows"]) .workflow-view .invoice-heading>b{font-size:13px}
html:not([data-platform="windows"]) .workflow-view .invoice-quick-tools button{min-height:40px;font-size:9px}
html:not([data-platform="windows"]) .workflow-view .invoice-line-card{padding:9px;border-radius:15px}
html:not([data-platform="windows"]) .workflow-view .invoice-line-card .item-title{min-height:46px;padding:9px;border-radius:12px;font-size:12px}
html:not([data-platform="windows"]) .workflow-view .item-fields{margin-top:7px}
html:not([data-platform="windows"]) .workflow-view .item-fields .floating-label input{min-height:45px;padding:8px;border-radius:11px;font-size:12px}
html:not([data-platform="windows"]) .workflow-view .item-unit{min-height:43px}
html:not([data-platform="windows"]) .workflow-view .purchase-unit-card{gap:5px;padding:8px;border-radius:12px}
html:not([data-platform="windows"]) .workflow-view .purchase-unit-metrics,html:not([data-platform="windows"]) .workflow-view .purchase-unit-note{display:none}
html:not([data-platform="windows"]) .workflow-view .purchase-unit-equation{padding:5px;font-size:9px}
html:not([data-platform="windows"]) .workflow-view .invoice-add-item{min-height:46px;border-radius:13px;font-size:12px}
html:not([data-platform="windows"]) .workflow-view .invoice-grand{padding:10px;border-radius:15px}
html:not([data-platform="windows"]) .workflow-view .invoice-grand strong{font-size:15px}
html:not([data-platform="windows"]) .workflow-view textarea{min-height:55px}
html:not([data-platform="windows"]) .workflow-view .invoice-close-actions{gap:6px}
html:not([data-platform="windows"]) .workflow-view .invoice-close-actions .btn{min-height:48px;padding:8px;font-size:10px}
html:not([data-platform="windows"]) .voucher-view .voucher-workflow-form{gap:10px}
html:not([data-platform="windows"]) .voucher-view .voucher-type-switch{padding:5px}
html:not([data-platform="windows"]) .voucher-view .voucher-type-switch button{min-height:52px;font-size:10px}
html:not([data-platform="windows"]) .voucher-view .voucher-document-head{gap:6px}
html:not([data-platform="windows"]) .voucher-view .voucher-document-head>div{padding:8px;border-radius:11px}
html:not([data-platform="windows"]) .voucher-view .voucher-fields{gap:8px;padding:11px;border-radius:16px}
html:not([data-platform="windows"]) .voucher-view .voucher-fields input,html:not([data-platform="windows"]) .voucher-view .voucher-fields select{min-height:48px;margin-top:4px}

html:not([data-platform="windows"]) body:has(.journals-screen) .app-header{display:none}
html:not([data-platform="windows"]) .main-content:has(.journals-screen){padding:0 0 82px}
html:not([data-platform="windows"]) .journals-screen{min-height:100dvh;background:#f5f8fc}
html:not([data-platform="windows"]) .journals-screen .screen-header{position:relative;min-height:132px;margin:0;padding:calc(env(safe-area-inset-top,0px) + 28px) 22px 35px;justify-content:center;border:0;background:linear-gradient(145deg,#0d63c9,#073c82);color:#fff;text-align:center;overflow:hidden}
html:not([data-platform="windows"]) .journals-screen .screen-header:before{content:"";position:absolute;width:170px;height:170px;inset-inline-end:-70px;top:-110px;border-radius:50%;background:#ffffff0b;box-shadow:0 0 0 38px #ffffff08}
html:not([data-platform="windows"]) .journals-screen .screen-header h2{position:relative;color:#fff;font-size:22px}
html:not([data-platform="windows"]) .journals-screen .screen-header small{position:relative;color:#dceaff;font-size:11px}
html:not([data-platform="windows"]) .journals-screen .screen-toolbar{position:relative;z-index:3;justify-content:flex-start;margin:-23px 10px 10px;padding:12px 10px 4px;border-radius:22px 22px 0 0;background:#f5f8fc}
html:not([data-platform="windows"]) .journals-screen .screen-toolbar .btn{min-height:46px;color:#124477;background:#e8f2ff}
html:not([data-platform="windows"]) .journals-screen .screen-content{padding:0 10px}
html:not([data-platform="windows"]) .journals-screen .chart-journal-form{padding:12px;border-radius:18px}
html:not([data-platform="windows"]) .journals-screen .journal-pair-card{padding:9px;border-radius:14px}
html:not([data-platform="windows"]) .journals-screen .journal-side{padding:7px}
html:not([data-platform="windows"]) .journals-screen .journal-side input,html:not([data-platform="windows"]) .journals-screen .journal-side select,html:not([data-platform="windows"]) .journals-screen .journal-pair-amount input{min-height:47px}
html:not([data-platform="windows"]) .voucher-fields{grid-template-columns:1fr}html:not([data-platform="windows"]) .voucher-document-head{grid-template-columns:1fr 1fr}html:not([data-platform="windows"]) .voucher-document-head>div:first-child{grid-column:1/-1}html:not([data-platform="windows"]) .journal-pair-card{grid-template-columns:1fr}html:not([data-platform="windows"]) .journal-live-totals{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Red/gold mobile home approved from the latest visual reference. */
html:not([data-platform="windows"]){background:#fff8f5}
html:not([data-platform="windows"]) .app-shell{background:linear-gradient(180deg,#fff,#fff6f2)}
html:not([data-platform="windows"]) .app-header{min-height:132px;background:linear-gradient(135deg,#b5000b 0%,#ea0714 58%,#a80008 100%)!important;box-shadow:0 8px 22px #aa001c2b!important;border-bottom:4px solid #ffc514!important}
html:not([data-platform="windows"]) .mahwor-head-actions button:last-child{background:#fff;color:#bd0010;border-color:#fff;box-shadow:0 5px 14px #79000942}
html:not([data-platform="windows"]) .mahwor-brand-lockup small{color:#ffd63d}
html:not([data-platform="windows"]) .mahwor-brand>img{display:none}
html:not([data-platform="windows"]) .main-content{padding:10px 10px calc(88px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#fff,#fff8f5 38%,#fff3ee)}
html:not([data-platform="windows"]) .mahwor-home-search{width:100%;min-height:50px;margin:0 0 10px;padding:0 15px;border:1px solid #dccfd0;border-radius:25px;background:#fff;color:#666;box-shadow:0 5px 14px #8e11201a;display:flex;align-items:center;justify-content:space-between;font:inherit;font-size:13px;font-weight:800}
html:not([data-platform="windows"]) .mahwor-home-search svg{width:25px;height:25px;color:#18080b;stroke-width:2.5}
html:not([data-platform="windows"]) .mahwor-feature-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;direction:rtl;margin-bottom:12px}
html:not([data-platform="windows"]) .mahwor-feature-card{position:relative;min-width:0;min-height:112px;padding:10px 3px 8px;border:0;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 8px 16px #8f001a22;color:#fff;overflow:hidden}
html:not([data-platform="windows"]) .mahwor-feature-card.red{background:linear-gradient(150deg,#f51421,#bd000b)}
html:not([data-platform="windows"]) .mahwor-feature-card.amber{background:linear-gradient(150deg,#ffdd3a,#ffae00);color:#291600}
html:not([data-platform="windows"]) .mahwor-feature-card span{width:43px;height:43px;display:grid;place-items:center}
html:not([data-platform="windows"]) .mahwor-feature-card svg{width:39px;height:39px;stroke-width:2.2}
html:not([data-platform="windows"]) .mahwor-feature-card strong{font-size:clamp(10px,3vw,13px);font-weight:950;line-height:1.2;white-space:nowrap}
html:not([data-platform="windows"]) .mahwor-feature-card i{position:absolute;inset-inline-end:9px;bottom:6px;font-size:19px;font-style:normal;font-weight:900}
html:not([data-platform="windows"]) .mahwor-module-group,html:not([data-platform="windows"]) .mahwor-recent-operations{margin-top:10px;padding:8px;border:1px solid #f0c8cc;border-radius:22px;background:#fffafa;box-shadow:0 7px 18px #ac172016}
html:not([data-platform="windows"]) .mahwor-section-heading{align-items:center;margin:-1px -1px 8px;padding:0;border:0}
html:not([data-platform="windows"]) .mahwor-section-heading h2{min-width:145px;margin:0;padding:8px 14px;border-radius:17px;background:linear-gradient(135deg,#e90817,#bc000b);color:#fff;font-size:13px;text-align:center;box-shadow:0 5px 12px #aa001f24}
html:not([data-platform="windows"]) .mahwor-section-heading small{padding:5px 9px;border:1px solid #ee9ca4;border-radius:14px;color:#b0000b;font-size:8.5px;font-weight:900}
html:not([data-platform="windows"]) .mahwor-core-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;direction:rtl}
html:not([data-platform="windows"]) .mahwor-core-tile{min-width:0;min-height:92px;padding:7px 2px;border:1px solid #fff1ee;border-radius:18px;background:linear-gradient(145deg,#fff,#fff8f4);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 6px 14px #8b1b1b17;color:#251316}
html:not([data-platform="windows"]) .mahwor-core-tile .mahwor-tile-icon{width:42px;height:42px;flex-basis:42px;background:transparent;box-shadow:none;color:#e40714}
html:not([data-platform="windows"]) .mahwor-core-tile.amber .mahwor-tile-icon{color:#efa800}
html:not([data-platform="windows"]) .mahwor-core-tile svg{width:34px;height:34px;stroke:currentColor;filter:none}
html:not([data-platform="windows"]) .mahwor-core-tile strong{font-size:clamp(9px,2.65vw,12px);font-weight:950;line-height:1.25;text-align:center}
html:not([data-platform="windows"]) .mahwor-quick-group{background:linear-gradient(135deg,#fff8d9,#fff2bf);border-color:#ffe189}
html:not([data-platform="windows"]) .mahwor-quick-group .mahwor-section-heading h2{background:linear-gradient(135deg,#ffd51e,#ffad00);color:#2b1800}
html:not([data-platform="windows"]) .mahwor-quick-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0}
html:not([data-platform="windows"]) .mahwor-quick-action{min-height:74px;padding:5px 2px;border-color:#f3dfb9!important;border-radius:15px;background:#fff!important;color:#5b1014!important;box-shadow:0 5px 12px #9b50151a}
html:not([data-platform="windows"]) .mahwor-quick-action span{width:30px;height:30px;color:#d80714}
html:not([data-platform="windows"]) .mahwor-quick-action svg{width:27px;height:27px}
html:not([data-platform="windows"]) .mahwor-quick-action strong{font-size:clamp(7.5px,2.1vw,10px);white-space:normal;text-align:center}
html:not([data-platform="windows"]) .mahwor-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
html:not([data-platform="windows"]) .mahwor-tile{min-height:88px;border-color:#fff0ed!important;border-radius:17px;background:linear-gradient(145deg,#fff,#fff9f6)!important;box-shadow:0 5px 13px #8c172016}
html:not([data-platform="windows"]) .mahwor-tile-icon{width:43px;height:43px;flex-basis:43px;border-radius:13px;background:linear-gradient(145deg,#f5303b,#bd000b)}
html:not([data-platform="windows"]) .mahwor-recent-list{display:grid;gap:6px}
html:not([data-platform="windows"]) .mahwor-recent-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 8px;align-items:center;width:100%;min-width:0;padding:8px 10px;border:1px solid #f2d2d3;border-radius:14px;background:#fff;color:#2b1719;text-align:right}
html:not([data-platform="windows"]) .mahwor-recent-row span{color:#b4000b;font-size:9px;font-weight:900}.mahwor-recent-row b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mahwor-recent-row strong{color:#b4000b;font-size:10px;white-space:nowrap}.mahwor-recent-row small{grid-column:1/-1;color:#867176;font-size:8px}
html:not([data-platform="windows"]) .bottom-nav{background:linear-gradient(135deg,#c9000e,#9e0008)!important;border-top:3px solid #ffc814;box-shadow:0 -8px 24px #85000b35}
html:not([data-platform="windows"]) .bottom-nav button{color:#fff!important}
html:not([data-platform="windows"]) .bottom-nav button.active{color:#241400!important;background:linear-gradient(145deg,#ffde31,#ffaf00)!important;box-shadow:0 7px 18px #5c000b55}
html:not([data-platform="windows"]) .item-auto-unit-preview{display:block;width:100%;min-width:0}
html:not([data-platform="windows"]) .item-auto-unit-preview .unit-calculator-results{display:grid;grid-template-columns:1fr;gap:8px}
html:not([data-platform="windows"]) .item-auto-unit-preview .unit-calculator-row{margin:0;border-color:#d8e7f7;background:#f8fbff}
html:not([data-platform="windows"]) .invoice-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:380px){html:not([data-platform="windows"]) .mahwor-feature-cards{gap:5px}html:not([data-platform="windows"]) .mahwor-feature-card{min-height:103px;border-radius:17px}html:not([data-platform="windows"]) .mahwor-core-grid{gap:5px}html:not([data-platform="windows"]) .mahwor-core-tile{min-height:86px;border-radius:15px}html:not([data-platform="windows"]) .mahwor-quick-actions{gap:4px}}
