:root{--bg: #eef2f6;--surface: #ffffff;--surface-muted: #f8fafc;--border: #e2e8f0;--text: #0f172a;--text-muted: #64748b;--brand: #0f766e;--brand-dark: #115e59;--brand-soft: #ccfbf1;--tick: #16a34a;--tick-hover: #15803d;--danger: #dc2626;--danger-soft: #fef2f2;--danger-border: #fecaca;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);--shadow-md: 0 8px 24px rgba(15, 23, 42, .08);font-family:Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Roboto,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text)}button{font-family:inherit;cursor:pointer;border:none;background:none;padding:0;color:inherit}.app-shell{max-width:480px;height:100dvh;margin:0 auto;background:var(--surface-muted);display:flex;flex-direction:column;position:relative;overflow:hidden;box-shadow:var(--shadow-md)}@media(min-width:520px){.app-shell{height:calc(100dvh - 24px);margin:12px auto;border-radius:24px;border:1px solid var(--border)}}.top-header{background:var(--brand);color:#fff;padding:12px 14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;flex-shrink:0;box-shadow:0 2px 8px #0f766e40;z-index:10}.header-left{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.icon-btn{width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#ffffff24;color:#fff;transition:background .15s ease,transform .1s ease}.icon-btn:hover{background:#ffffff3d}.icon-btn:active{transform:scale(.95)}.header-center{display:flex;flex-direction:column;align-items:center;min-width:0}.brand-logo{width:38px;height:38px;border-radius:11px;object-fit:cover;flex-shrink:0;border:1.5px solid rgba(255,255,255,.32);box-shadow:0 2px 6px #0f172a38}.shop-title{font-size:14px;font-weight:800;letter-spacing:.02em;color:#fffffff5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-bottom:4px}.date-pill-btn{display:inline-flex;align-items:center;gap:6px;background:#ffffff2e;border:1px solid rgba(255,255,255,.28);color:#fff;padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap;transition:background .15s ease}.date-pill-btn:hover{background:#ffffff47}.clear-day-btn{display:inline-flex;align-items:center;gap:4px;padding:7px 10px;border-radius:10px;background:#ffffff24;color:#fff;font-size:12px;font-weight:600;transition:background .15s ease,opacity .15s ease}.clear-day-btn:hover:not(:disabled){background:#dc2626d9}.clear-day-btn:disabled{opacity:.45;cursor:not-allowed}.past-date-banner{background:#fef3c7;color:#92400e;border-bottom:1px solid #fde68a;padding:6px 14px;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.jump-today-chip{background:#92400e;color:#fff;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700}.entry-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 12px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.entry-tab-btn{padding:7px 10px;border-radius:10px;background:#f1f5f9;color:var(--text-muted);font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:background .15s ease,color .15s ease}.entry-tab-btn.active{background:var(--brand);color:#fff}.entry-tab-btn.active.special{background:#0369a1}.tab-count{font-size:11px;font-weight:800;padding:1px 7px;border-radius:999px;background:#0f172a14}.entry-tab-btn.active .tab-count{background:#ffffff38;color:#fff}.entries-scroll{flex:1;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.empty-state{margin:auto 0;text-align:center;padding:28px 16px;color:var(--text-muted)}.empty-icon-wrap{width:54px;height:54px;margin:0 auto 10px;border-radius:16px;background:#e2e8f0;color:#475569;display:flex;align-items:center;justify-content:center}.empty-title{font-size:15px;font-weight:700;color:var(--text);margin:0 0 4px}.empty-sub{font-size:13px;line-height:1.45;margin:0}.entry-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:10px 12px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:8px;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease,transform .1s ease}.entry-card.special-card{border-left:4px solid #0284c7}.entry-main-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.entry-card.pressing{transform:scale(.985);border-color:#94a3b8}.entry-card.selected-remove{border-color:var(--danger);background:var(--danger-soft)}.entry-details-box{background:#f0f9ff;border:1px solid #bae6fd;border-radius:10px;padding:7px 10px;display:flex;flex-direction:column;gap:4px}.entry-detail-row{display:flex;align-items:flex-start;gap:6px;font-size:12px;color:#0c4a6e;line-height:1.35;word-break:break-word}.entry-detail-row svg{flex-shrink:0;margin-top:2px;color:#0284c7}.entry-actions-bar{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.add-details-inline-btn{display:inline-flex;align-items:center;gap:4px;background:#0284c7;color:#fff;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:700}.entry-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.entry-index{width:26px;height:26px;border-radius:8px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.entry-meta{min-width:0;flex:1}.entry-expression{font-size:14px;font-weight:600;color:var(--text);word-break:break-word}.entry-time{font-size:11px;color:var(--text-muted);margin-top:2px}.entry-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.entry-amount{font-size:17px;font-weight:800;color:var(--brand-dark);font-variant-numeric:tabular-nums}.remove-inline-btn{display:inline-flex;align-items:center;gap:4px;background:var(--danger);color:#fff;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:700}.cancel-inline-btn{padding:6px 8px;border-radius:9px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:600}.list-hint{text-align:center;font-size:11px;color:var(--text-muted);padding:2px 0 4px}.total-bar{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.section-total-pill{background:#f1f5f9;border:1px solid var(--border);border-radius:10px;padding:5px 10px;display:flex;flex-direction:column;min-width:0}.section-total-pill.special{background:#f0f9ff;border-color:#bae6fd}.section-total-label{font-size:11px;font-weight:700;color:var(--text-muted);white-space:nowrap}.section-total-value{font-size:14px;font-weight:800;color:#334155;font-variant-numeric:tabular-nums}.section-total-pill.special .section-total-value{color:#0369a1}.grand-total-wrap{text-align:right;margin-left:auto}.total-label{font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.total-value{font-size:22px;font-weight:800;color:var(--brand);font-variant-numeric:tabular-nums;line-height:1.15}.calc-dock{background:#e2e8f0;padding:8px 10px 10px;flex-shrink:0;display:flex;flex-direction:column;gap:7px}.details-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.details-toggle-btn{flex:1;background:#fff;border:1px dashed #94a3b8;border-radius:11px;padding:6px 11px;font-size:12px;font-weight:700;color:#0369a1;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:background .15s ease,border-color .15s ease}.details-toggle-btn.active{background:#e0f2fe;border-style:solid;border-color:#0284c7}.keypad-collapse-btn{height:30px;padding:0 10px;border-radius:10px;background:#fff;border:1px solid #cbd5e1;color:#334155;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:700;flex-shrink:0;transition:background .15s ease}.keypad-collapse-btn:hover{background:#f1f5f9}.keypad-collapsed-bar{width:100%;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:var(--brand-dark);box-shadow:var(--shadow-sm)}.keypad-collapsed-left{display:inline-flex;align-items:center;gap:8px}.details-panel{background:#fff;border:1px solid #7dd3fc;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:7px;box-shadow:var(--shadow-sm)}.details-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.details-panel-title{font-size:12px;font-weight:800;color:#0369a1}.details-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.details-input{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:7px 9px;font-size:13px;font-family:inherit;color:var(--text);background:#f8fafc;outline:none}.details-input:focus{border-color:#0284c7;background:#fff}.details-input.full{grid-column:span 2}.details-panel-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.details-hint{font-size:11px;color:var(--text-muted)}.details-hint.error{color:var(--danger);font-weight:700}.details-ok-btn{padding:6px 12px;border-radius:9px;background:var(--tick);color:#fff;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:4px;flex-shrink:0}.expr-display{background:var(--surface);border:1px solid #cbd5e1;border-radius:14px;padding:8px 10px 8px 14px;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px}.expr-text-wrap{flex:1;min-width:0;display:flex;flex-direction:column}.expr-input-text{font-size:20px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;overflow-x:auto;scrollbar-width:none}.expr-input-text.placeholder{color:#94a3b8;font-size:14px;font-weight:500}.expr-preview{font-size:12px;font-weight:700;color:var(--tick);font-variant-numeric:tabular-nums}.expr-error{font-size:12px;font-weight:600;color:var(--danger)}.backspace-btn{width:36px;height:36px;border-radius:10px;background:#f1f5f9;color:#475569;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.backspace-btn:hover:not(:disabled){background:#e2e8f0}.backspace-btn:disabled{opacity:.35;cursor:default}.keypad-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.key-btn{height:54px;border-radius:14px;background:var(--surface);color:var(--text);font-size:22px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px #cbd5e1;transition:transform .08s ease,background .12s ease;-webkit-user-select:none;user-select:none}.key-btn:active{transform:translateY(1px);box-shadow:0 1px #cbd5e1}.key-btn.op{background:#f0fdfa;color:var(--brand-dark);box-shadow:0 2px #99f6e4;font-size:24px}.key-btn.op:active{background:#ccfbf1}.key-btn.tick{grid-column:span 2;background:var(--tick);color:#fff;box-shadow:0 3px #166534;font-size:26px}.key-btn.tick:hover{background:var(--tick-hover)}.key-btn.tick:active{transform:translateY(2px);box-shadow:0 1px #166534}.modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.drawer-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;z-index:45}.drawer-panel{width:280px;max-width:82%;height:100%;background:var(--surface);display:flex;flex-direction:column;box-shadow:4px 0 24px #0f172a33}.drawer-header{background:var(--brand);color:#fff;padding:18px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.drawer-brand{display:flex;align-items:center;gap:10px;min-width:0}.drawer-logo{width:38px;height:38px;border-radius:10px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,.25);box-shadow:0 2px 6px #0f172a40}.drawer-title{font-size:16px;font-weight:800}.drawer-sub{font-size:12px;opacity:.85;margin-top:2px}.drawer-nav{padding:12px;display:flex;flex-direction:column;gap:8px}.drawer-item{width:100%;text-align:left;padding:13px 14px;border-radius:12px;background:var(--surface-muted);border:1px solid var(--border);display:flex;align-items:center;gap:12px;transition:background .15s ease,border-color .15s ease}.drawer-item:hover{background:#f0fdfa;border-color:#99f6e4}.drawer-item-title{font-size:14px;font-weight:700;color:var(--text)}.drawer-item-desc{font-size:12px;color:var(--text-muted)}.modal-card{width:100%;max-width:380px;background:var(--surface);border-radius:20px;padding:18px;box-shadow:0 20px 45px #0f172a40;max-height:90%;overflow-y:auto}.cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.cal-month-title{font-size:16px;font-weight:800}.cal-nav-btn{width:34px;height:34px;border-radius:10px;background:#f1f5f9;display:inline-flex;align-items:center;justify-content:center}.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11px;font-weight:700;color:var(--text-muted);margin-bottom:6px}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal-cell{height:40px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;font-weight:600;position:relative}.cal-cell.muted{color:#cbd5e1}.cal-cell:hover{background:#f1f5f9}.cal-cell.today{border:1.5px solid var(--brand);color:var(--brand)}.cal-cell.selected{background:var(--brand);color:#fff}.cal-dot{width:5px;height:5px;border-radius:999px;background:var(--tick);margin-top:2px}.cal-cell.selected .cal-dot{background:#bbf7d0}.cal-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.report-screen{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--surface-muted)}.report-topbar{background:var(--brand);color:#fff;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.report-title-wrap{text-align:center;flex:1;min-width:0}.report-title{font-size:16px;font-weight:800}.report-subtitle{font-size:12px;opacity:.9}.period-nav{background:var(--surface);border-bottom:1px solid var(--border);padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.period-nav-btn{padding:6px 10px;border-radius:9px;background:#f1f5f9;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:4px}.report-rows{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}.report-row{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%}.report-row.current{border-color:#5eead4;background:#f0fdfa}.report-row.clickable:hover{border-color:var(--brand)}.report-row-title{font-size:14px;font-weight:700}.report-row-sub{font-size:12px;color:var(--text-muted);margin-top:2px}.report-row-amount{font-size:16px;font-weight:800;color:var(--brand-dark);font-variant-numeric:tabular-nums}.report-row-amount.zero{color:#94a3b8;font-weight:600}.report-final-bar{background:var(--brand-dark);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.report-final-label{font-size:14px;font-weight:700}.report-final-sub{font-size:11px;opacity:.85}.report-final-value{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}.confirm-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}.confirm-icon.warn{background:#fef3c7;color:#b45309}.confirm-icon.danger{background:#fee2e2;color:var(--danger)}.danger-banner{background:var(--danger);color:#fff;font-size:11px;font-weight:800;letter-spacing:.06em;padding:6px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;margin-bottom:10px}.confirm-title{font-size:17px;font-weight:800;margin:0 0 6px}.confirm-body{font-size:13px;line-height:1.5;color:#334155;margin:0 0 14px}.confirm-check-label{display:flex;align-items:flex-start;gap:8px;padding:10px;border-radius:10px;background:var(--danger-soft);border:1px solid var(--danger-border);font-size:12px;font-weight:600;color:#991b1b;margin-bottom:14px;cursor:pointer}.confirm-actions{display:flex;gap:10px}.btn-secondary{flex:1;padding:11px 14px;border-radius:11px;background:#f1f5f9;color:#334155;font-size:14px;font-weight:700}.btn-danger{flex:1;padding:11px 14px;border-radius:11px;background:var(--danger);color:#fff;font-size:14px;font-weight:700}.btn-danger:disabled{opacity:.45;cursor:not-allowed}.btn-brand{padding:8px 14px;border-radius:10px;background:var(--brand);color:#fff;font-size:13px;font-weight:700}
