:root{--bg: #121212;--bg-soft: #1b1b1b;--bg-card: #1e1e1e;--bg-row-alt: #191919;--gold: #ffd94d;--gold-dark: #d9a900;--gold-soft: #ffe27a;--red: #e02b20;--red-glow: 0 0 18px rgba(224, 43, 32, .55);--text: #f5f0dc;--muted: #b8b09a;--border: #33302a;--green: #4caf50;--radius: 14px}*{box-sizing:border-box}html,body,#root{min-height:100%}html,body{overflow-x:hidden;overflow-x:clip}body{margin:0;background:var(--bg);color:var(--text);font-family:Segoe UI,Noto Kufi Arabic,Tahoma,Arial,sans-serif;font-size:17px;line-height:1.6;-webkit-tap-highlight-color:transparent}h1,h2,h3{color:var(--gold);margin:.4em 0}a{color:var(--gold)}button,input,select,textarea{font:inherit;color:var(--text)}input,select,textarea{background:var(--bg-soft);border:1px solid var(--border);border-radius:10px;padding:12px 14px;min-height:48px;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}label{display:block;color:var(--gold);font-weight:700;margin:10px 0 4px}button{cursor:pointer;border:none;border-radius:12px;min-height:48px;padding:10px 18px;font-weight:700;background:var(--bg-card);color:var(--text);border:1px solid var(--border)}button.primary{background:var(--gold);color:#1a1a1a;border-color:var(--gold)}button.danger{background:transparent;color:#ff6b61;border-color:var(--red)}button.ghost{background:transparent}button:disabled{opacity:.5;cursor:not-allowed}.back-btn{position:fixed;bottom:18px;left:18px;z-index:40;background:var(--gold);color:#1a1a1a;border-radius:999px;padding:12px 22px;box-shadow:0 4px 18px #00000080}.mic-btn{width:96px;height:96px;border-radius:50%;background:var(--bg-card);border:3px solid var(--red);box-shadow:var(--red-glow);font-size:40px;display:flex;align-items:center;justify-content:center}.mic-btn.listening{background:var(--green);border-color:var(--green);box-shadow:0 0 22px #4caf50a6;animation:pulse-green 1.2s infinite}@keyframes pulse{0%{box-shadow:0 0 #e02b2099}70%{box-shadow:0 0 0 22px #e02b2000}to{box-shadow:0 0 #e02b2000}}@keyframes pulse-green{0%{box-shadow:0 0 #4caf5099}70%{box-shadow:0 0 0 22px #4caf5000}to{box-shadow:0 0 #4caf5000}}.mic-btn:disabled{opacity:.4;animation:none}.app-shell{max-width:960px;margin:0 auto;padding:12px 14px 110px}.topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:8px 2px;border-bottom:1px solid var(--border);margin-bottom:12px}.topbar>*{min-width:0}.topbar .row{flex:0 1 auto}.topbar .row>*{flex:0 1 auto;min-width:0}.topbar .brand{font-size:26px;font-weight:900;color:var(--gold)}.topbar .date-line{color:var(--muted);font-size:14px}.nav-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.nav-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:18px 10px;text-align:center;font-weight:900;font-size:19px;color:var(--gold);text-shadow:0 0 14px rgba(255,217,77,.55);min-height:84px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0}.summary-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:14px;min-width:0}.summary-card .label{color:var(--muted);font-size:14px}.summary-card .value{color:var(--gold);font-size:30px;font-weight:900;line-height:1.2;overflow-wrap:anywhere}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin:12px 0}.table-wrap{overflow-x:auto;margin:10px 0}table{width:100%;border-collapse:collapse;min-width:560px}thead th{position:sticky;top:0;background:var(--bg-soft);color:var(--gold);text-align:right;padding:10px;border-bottom:2px solid var(--border)}tbody td{padding:10px;border-bottom:1px solid var(--border)}tbody tr:nth-child(2n) td{background:var(--bg-row-alt)}.name-cell{color:#ff6b61;font-weight:800}html[dir=ltr] .name-cell{color:#ff6b61}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700;border:1px solid var(--border)}.badge.red{color:#ff6b61;border-color:var(--red)}.badge.green{color:#7dd87d;border-color:var(--green)}.badge.gold{color:var(--gold);border-color:var(--gold)}.alert{border:1px solid var(--red);background:#e02b201f;border-radius:var(--radius);padding:12px;margin:10px 0}.alert.warn{border-color:var(--gold);background:#ffd94d14}.alert.ok{border-color:var(--green);background:#4caf501a}.sync-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-inline-end:6px}.sync-dot.red{background:var(--red);box-shadow:var(--red-glow)}.sync-dot.green{background:var(--green)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}.modal{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);max-width:560px;width:100%;max-height:88vh;overflow-y:auto;padding:18px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.row>*{flex:1 1 auto;min-width:0}.row>div:has(input[type=date]){flex:1 1 130px;min-width:130px}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.modal-head h3{margin:0}.modal-close{flex:0 0 auto!important;min-width:0!important;min-height:0!important;padding:6px 12px!important;font-size:20px;line-height:1}.unit-select{min-height:44px;max-width:140px}.price-editor{flex-wrap:nowrap}.price-editor input{width:84px;flex:0 0 84px}.price-editor button{padding:8px 10px;white-space:nowrap}.muted{color:var(--muted)}.big-num{font-size:34px;font-weight:900;color:var(--gold)}.center{text-align:center}.skeleton{background:linear-gradient(90deg,#1e1e1e 25%,#2a2a2a,#1e1e1e 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:8px;min-height:20px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.voice-panel{position:fixed;bottom:0;right:0;left:0;background:var(--bg-card);border-top:2px solid var(--red);padding:16px;z-index:90;box-shadow:0 -6px 24px #0009;max-height:82vh;overflow-y:auto}.voice-mic-wrap{display:flex;flex-direction:column;align-items:center;gap:12px}.voice-text-box{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:12px;min-height:64px;font-size:19px;width:100%}.voice-text-box textarea{border:none;padding:0;min-height:64px;background:transparent}.wave-canvas{width:64px;height:64px;display:block}.voice-panel .row{width:100%}@media (max-width: 420px){.nav-grid{grid-template-columns:repeat(2,1fr)}.topbar .brand{font-size:22px}.summary-card .value{font-size:26px}}@media (max-width: 480px){.row>*{min-width:0}}@media screen and (max-width: 640px){table{min-width:0;font-size:15px}thead th,tbody td{padding:8px 6px}tbody td{overflow-wrap:break-word}tbody td button{white-space:nowrap}tbody td .row{flex-direction:column;align-items:stretch}tbody td .row>*{width:100%}tbody td .row.price-editor{flex-direction:row;flex-wrap:nowrap;align-items:center}tbody td .row.price-editor>*{width:auto}.table-wrap.wide{overflow-x:visible}.table-wrap.wide table{min-width:0}.table-wrap.wide thead{display:none}.table-wrap.wide tbody tr{display:block;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);margin:10px 0;padding:4px 12px}.table-wrap.wide tbody td{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:8px 0;text-align:left}.table-wrap.wide tbody td:last-child{border-bottom:none}.table-wrap.wide tbody td:before{content:attr(data-label);color:var(--gold);font-weight:700;font-size:14px;flex:0 0 auto}}@media print{body{background:#fff;color:#000}.back-btn,.topbar .actions,.no-print{display:none!important}.card,.table-wrap{border-color:#999}h1,h2,h3,.name-cell{color:#000}}
