:root{--bg: #F4F6F5;--surface: #FFFFFF;--ink: #13201C;--muted: #6B7C76;--faint: #9AA8A2;--line: #E3E8E6;--backdrop: #C9D6D0;--nav-active: #0E7C66;--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);color-scheme:light;font-family:Inter,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}[data-theme=dark]{--bg: #0E1714;--surface: #15211D;--ink: #E8EFEC;--muted: #8A9A93;--faint: #5E726B;--line: #22332D;--backdrop: #05100C;--nav-active: #74D6B9;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{background:var(--backdrop);color:var(--ink);touch-action:manipulation}#root{height:var(--app-height, 100dvh);min-height:0;display:flex;align-items:center;justify-content:center}.frame{position:relative;width:100%;min-width:0;height:100%;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);background:var(--bg);display:flex;flex-direction:column;overflow:hidden}.frame>*{flex:1;min-height:0}@media(min-width:1024px)and (min-height:600px)and (hover:hover)and (pointer:fine){#root{padding:24px}.frame{max-width:760px;height:100%;border-radius:32px;box-shadow:0 24px 70px #00000047}}button{font-family:inherit}.ar{font-family:Noto Sans Arabic,Inter,sans-serif;direction:rtl}input,select,textarea{min-width:0;max-width:100%;font-family:inherit;caret-color:#0e7c66;scroll-margin-block:24px}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}button,a{-webkit-tap-highlight-color:rgba(14,124,102,.15)}button{min-width:48px;min-height:48px}button svg,label svg{flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #0E7C66;outline-offset:2px}.frame{overflow-wrap:anywhere}.frame>*,.app-scroll{min-width:0;overscroll-behavior-y:contain}.app-scroll>*{flex-shrink:0!important}.auth-form{padding:32px 24px}.auth-form a{display:inline-flex;align-items:center;min-height:48px}.expense-screen>*{flex-shrink:0}.amount-display{max-width:100%;flex-wrap:wrap;justify-content:center}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-summary{flex-wrap:wrap}.category-summary>:last-child{min-width:110px}.category-rank{flex-wrap:wrap}.category-rank>:nth-child(2){min-width:60px}.filter-overlay{position:absolute;inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);z-index:50;display:flex;align-items:flex-end;justify-content:center}.filter-sheet{width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain}.filter-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}@media(max-width:359px){.auth-form{padding:24px 20px}.filter-dates{grid-template-columns:minmax(0,1fr)}}@media(max-height:480px){.auth-form{padding-top:20px}.splash{gap:12px!important;overflow-y:auto;justify-content:flex-start!important;padding-block:20px!important}.splash>*{flex-shrink:0}}.customer-reports{--report-accent: #0e7c66;--report-muted: #52685f;display:flex;flex-direction:column;color:var(--ink)}[data-theme=dark] .customer-reports{--report-accent: #74d6b9;--report-muted: #acc0b6}.customer-reports h1{margin:0;font-size:21px;letter-spacing:-.02em}.customer-reports h2{margin:0 0 12px;font-size:15px;letter-spacing:-.015em}.customer-reports p{line-height:1.6}.cr-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;background:var(--surface);border-bottom:1px solid var(--line)}.cr-header p{margin:4px 0 0;color:var(--report-muted);font-size:13px}.cr-content{display:flex;flex-direction:column;gap:18px;padding:18px 20px 28px;min-width:0}.customer-reports .cr-note{color:var(--report-muted);font-size:12px;line-height:1.6;margin:10px 0 0}.customer-reports .cr-range{margin:0}.customer-reports button,.cr-button{background:#0e7c66;border:1px solid transparent;border-radius:14px;color:#fff;min-height:48px;padding:10px 15px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.customer-reports .cr-secondary{color:var(--report-accent);border-color:var(--line);background:var(--surface)}.customer-reports :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--report-accent);outline-offset:3px}.customer-reports ::selection{background:#cce8dc;color:#123c2d}.customer-reports *{scrollbar-color:var(--report-muted) var(--bg)}.cr-filters{border-bottom:1px solid var(--line);padding-bottom:10px}.customer-reports summary{min-height:48px;padding:12px 0;cursor:pointer;color:var(--report-accent);font-size:14px;font-weight:600}.cr-filters form{padding:12px 0}.cr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.cr-fields label{min-width:0;font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:8px}.cr-fields input,.cr-fields select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;min-width:0;min-height:50px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font-family:inherit}.cr-fields select{padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%237b9589' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}.cr-filters fieldset{border:0;min-width:0;margin:0 0 18px;padding:0}.cr-filters legend{font-size:13px;font-weight:600}.cr-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;max-height:220px;overflow:auto;padding:6px 3px}.cr-categories label{display:flex;align-items:center;gap:8px;min-height:48px;font-size:13px}.cr-categories input{width:18px;height:18px;accent-color:#0e7c66;flex:none}.cr-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.cr-total{padding:4px 0 18px;border-bottom:1px solid var(--line)}.cr-total>strong{display:block;font-size:clamp(25px,6vw,36px);font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.cr-total>strong small{font-size:16px;color:var(--report-muted);letter-spacing:0}.cr-summary{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:14px;color:var(--report-muted);font-size:13px}.cr-summary b{color:var(--ink);font-variant-numeric:tabular-nums}.cr-comparison p{font-size:13px;margin:0}.cr-panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px}.cr-section-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}.cr-section-title span{font-size:12px;color:var(--report-muted)}.cr-section-title h2{margin:0}.cr-chart-scroll,.cr-table-scroll{overflow:auto;max-width:100%}.cr-chart-scroll svg{display:block}.cr-chart-scroll text{font:11px Inter,system-ui,sans-serif;fill:var(--report-muted)}.cr-grid{stroke:var(--line)}.cr-fill{fill:var(--report-accent)}.cr-line{fill:none;stroke:var(--report-accent);stroke-width:2}.cr-category{margin-top:20px}.cr-category>div:first-child{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;font-size:13px}.cr-category strong{font-size:13px;font-variant-numeric:tabular-nums}.cr-category small{font-weight:400;color:var(--report-muted)}.cr-track{margin-top:8px;height:8px;border-radius:4px;background:var(--bg);overflow:hidden}.cr-track span{display:block;height:100%;background:var(--report-accent)}.cr-state{text-align:center;padding:20px 8px;font-size:14px}.cr-state [role=alert]{color:var(--ink);font-weight:600}.customer-reports table{border-collapse:collapse;width:100%;font-size:12px;text-align:start;white-space:nowrap;font-variant-numeric:tabular-nums}.customer-reports th,.customer-reports td{padding:12px 14px;border-bottom:1px solid var(--line)}.customer-reports caption{text-align:start;padding:12px 0;color:var(--report-muted)}@media(max-width:359px){.cr-fields,.cr-categories{grid-template-columns:minmax(0,1fr)}.cr-header{align-items:flex-start}.cr-header .cr-secondary{padding-inline:10px;flex:none}}@media(hover:hover){.customer-reports button:hover,.cr-button:hover{background:#0a5c4c;color:#fff}}
