:root{--font-ui: "Noto Sans Thai", Tahoma, "Leelawadee UI", system-ui, sans-serif;--ease-expo-out: cubic-bezier(.16, 1, .3, 1);--bg-page: #f3f6f9;--bg-radial-a: rgba(8, 127, 140, .08);--bg-radial-b: rgba(84, 133, 187, .06);--surface: rgba(255, 255, 255, .96);--surface-solid: #ffffff;--surface-elevated: #f8fafc;--surface-muted: #f0f4f8;--table-head-bg: rgba(240, 244, 248, .96);--row-hover: #f8fbfd;--border: rgba(215, 224, 234, .92);--border-hover: rgba(148, 163, 184, .65);--ink: #132a39;--muted: #526273;--primary: #087f8c;--primary-hover: #076d78;--on-primary: #ffffff;--focus-ring: #0ea5e9;--track-bg: #e7eef4;--chart-grid: #e8edf2;--glass-hi: rgba(255, 255, 255, .65);--glass-rim: rgba(255, 255, 255, .78);--glass-top: rgba(255, 255, 255, .96);--shadow-card: 0 8px 26px rgba(15, 23, 42, .05);--input-bg: #ffffff;--input-border: #ced9e4;--sidebar-bg: #132a39;--sidebar-ink: #f8fafc;--sidebar-muted: #a3b6c5;--scrollbar-thumb: rgba(100, 116, 139, .35);font-family:var(--font-ui);color:var(--ink);background:var(--bg-page);font-size:14px;font-synthesis:none}html[data-theme=dark]{--bg-page: #0b121b;--bg-radial-a: rgba(45, 212, 191, .09);--bg-radial-b: rgba(56, 189, 248, .07);--surface: rgba(17, 25, 38, .92);--surface-solid: #111926;--surface-elevated: #172233;--surface-muted: #1b283b;--table-head-bg: rgba(23, 34, 51, .97);--row-hover: rgba(30, 44, 66, .65);--border: rgba(51, 65, 85, .85);--border-hover: rgba(100, 116, 139, .78);--ink: #f1f5f9;--muted: #9fb0c4;--primary: #14b8a6;--primary-hover: #0d9488;--on-primary: #042f2e;--focus-ring: #38bdf8;--track-bg: rgba(148, 163, 184, .24);--chart-grid: rgba(148, 163, 184, .16);--glass-hi: rgba(255, 255, 255, .05);--glass-rim: rgba(255, 255, 255, .08);--glass-top: rgba(255, 255, 255, .15);--shadow-card: 0 12px 32px rgba(2, 6, 23, .45);--input-bg: #0f1723;--input-border: #334155;--sidebar-bg: #09111a;--sidebar-ink: #f1f5f9;--sidebar-muted: #8ea3b8;--scrollbar-thumb: rgba(148, 163, 184, .35);color-scheme:dark}html.is-theme-switching,html.is-theme-switching *{transition:none!important}*{box-sizing:border-box}body{margin:0;color:var(--ink);background-color:var(--bg-page);background-image:radial-gradient(900px 520px at 12% -8%,var(--bg-radial-a),transparent 62%),radial-gradient(760px 460px at 96% 4%,var(--bg-radial-b),transparent 58%)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.6}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}svg{width:20px;height:20px;display:block;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:26px;letter-spacing:-.4px;margin-bottom:3px;line-height:1.3}h2{font-size:16px;margin-bottom:0;line-height:1.5}h3{font-size:14px}p{line-height:1.65}[hidden]{display:none!important}.finora-glass{background-color:var(--surface);background-image:linear-gradient(165deg,var(--glass-hi),transparent 42%);backdrop-filter:blur(20px) saturate(125%);-webkit-backdrop-filter:blur(20px) saturate(125%);border:1px solid var(--border);box-shadow:var(--shadow-card),inset 0 0 0 1px var(--glass-rim),inset 0 1px 0 var(--glass-top)}.tactile-btn{transition:transform .16s var(--ease-expo-out),background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}.tactile-btn:active:not(:disabled){transform:scale(.98)}@keyframes motion-card-enter{0%{opacity:0;transform:translate3d(0,12px,0) scale(.985)}to{opacity:1;transform:translateZ(0) scale(1)}}.motion-stagger-enter{animation:motion-card-enter .46s var(--ease-expo-out) both;animation-delay:calc(var(--stagger-index, 0) * 55ms)}@keyframes motion-bar-sweep{0%{transform:scaleX(0)}to{transform:scaleX(1)}}.motion-progress-sweep{transform-origin:left center;animation:motion-bar-sweep .64s var(--ease-expo-out) both}.app-shell{display:flex;min-height:100dvh}.sidebar{width:228px;flex-shrink:0;background:var(--sidebar-bg);color:var(--sidebar-ink);padding:22px 14px 16px;display:flex;flex-direction:column;z-index:10;border-right:1px solid rgba(255,255,255,.08);transition:width .24s var(--ease-expo-out),padding .24s var(--ease-expo-out)}.sidebar.is-rail{width:72px;padding:22px 10px 16px}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:23px;font-weight:700;padding:0 8px 26px;background:none;border:0;color:var(--sidebar-ink);text-align:left;min-height:44px}.sidebar.is-rail .brand{justify-content:center;padding:0 0 26px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:#fff;color:#132a39;border-radius:6px;font-weight:700;font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:24px;flex-shrink:0}.sidebar.is-rail .brand-text,.sidebar.is-rail .nav-label,.sidebar.is-rail .sidebar-user-meta{display:none}.sidebar nav{display:grid;gap:8px}.sidebar nav button{height:46px;display:flex;align-items:center;gap:14px;padding:0 15px;border-radius:10px;color:#d5e0e8;background:none;border:0;font-weight:600;font-size:15px;text-align:left;width:100%;white-space:nowrap}.sidebar.is-rail nav button{justify-content:center;padding:0}.sidebar nav button.active{background:#087f8c;color:#fff;box-shadow:0 4px 14px #087f8c59}.sidebar nav button:not(.active):hover{background:#ffffff14}.sidebar-footer{margin-top:auto;padding:16px 2px 0;border-top:1px solid rgba(255,255,255,.14);display:grid;gap:10px;font-size:12px;line-height:1.5}.sidebar-user{display:flex;gap:10px;align-items:center}.sidebar.is-rail .sidebar-user{justify-content:center}.sidebar-footer small{display:block;color:var(--sidebar-muted);font-size:11px}.sidebar-user-actions{display:flex;gap:6px}.sidebar.is-rail .sidebar-user-actions{flex-direction:column}.sidebar-user-btn{flex:1;min-height:36px;background:#ffffff17;color:#e5eef5;border:0;border-radius:8px;padding:6px 8px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:5px}.sidebar-user-btn:hover{background:#ffffff2e}.sidebar-user-btn svg{width:15px;height:15px}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e8f1f7;color:#132a39;flex-shrink:0;font-weight:700;font-size:12px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:56px;flex-shrink:0;border-bottom:1px solid var(--border);padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-size:14px}.topbar-left{display:flex;align-items:center;gap:10px;min-width:0}.topbar-right{display:flex;align-items:center;gap:10px}.rail-toggle,.theme-toggle{width:38px;height:38px;min-width:38px;min-height:38px;border-radius:10px;border:1px solid var(--border);background:var(--surface-elevated);color:var(--ink);display:grid;place-items:center}.rail-toggle:hover,.theme-toggle:hover{border-color:var(--border-hover);background:var(--surface-muted)}.rail-toggle svg,.theme-toggle svg{width:18px;height:18px}.breadcrumb{margin-left:8px;color:var(--muted)}.connection{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;white-space:nowrap}.connection:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--primary)}.connection.error{color:#e11d48}.connection.error:before{background:#e11d48}main{padding:16px 24px 12px;max-width:1600px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:12px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.page-heading p{color:var(--muted);font-size:14px;margin-bottom:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 16px;border:1px solid var(--input-border);background:var(--surface-solid);color:var(--ink);border-radius:10px;font-weight:600;white-space:nowrap;text-decoration:none}.button:hover{background:var(--surface-muted)}.button.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.button.primary:hover{background:var(--primary-hover)}.button.danger{background:#e11d481a;color:#e11d48;border-color:#e11d484d}.button.danger:hover{background:#e11d482e}.button.subtle{background:transparent;border-color:transparent;color:var(--muted);font-weight:500}.button.subtle:hover{background:var(--surface-muted);color:var(--ink)}.filters{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;flex-shrink:0}.filters label{display:grid;gap:4px;font-size:11px;color:var(--muted)}.filters input,.filters select{height:37px;min-height:37px;padding:5px 9px;border:1px solid var(--input-border);background:var(--input-bg);border-radius:8px;color:var(--ink);font-size:13px;max-width:168px}.filters input{width:138px}.filters .button{min-height:37px;font-size:12px;padding:6px 10px}.loan-controls{display:flex;align-items:center;gap:18px;flex-shrink:0}.loan-controls label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.loan-controls select{min-height:38px;border:1px solid var(--input-border);border-radius:8px;padding:6px 10px;min-width:170px;background:var(--input-bg);color:var(--ink)}.loan-controls p{font-size:12px;color:var(--muted);margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);border-radius:14px;padding:13px 8px;flex-shrink:0}.stat{display:flex;gap:13px;align-items:center;padding:0 16px;border-right:1px solid var(--border)}.stat:last-child{border-right:0}.stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}.stat-icon svg{width:22px;height:22px}.neutral{background:#64748b24;color:#475569}.green{background:#10b98124;color:#059669}.blue{background:#3b82f624;color:#2563eb}.amber{background:#f59e0b29;color:#b45309}html[data-theme=dark] .neutral{color:#cbd5e1}html[data-theme=dark] .green{color:#34d399}html[data-theme=dark] .blue{color:#60a5fa}html[data-theme=dark] .amber{color:#fbbf24}.stat-label{font-size:13px;color:var(--muted);white-space:nowrap}.stat strong{font-family:var(--font-ui);font-variant-numeric:tabular-nums;display:block;font-size:25px;line-height:1.25}.chart-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:14px;flex-shrink:0}.panel{border-radius:14px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px 0}.muted{color:var(--muted);font-size:12px}.panel-heading .muted{font-size:11px;white-space:nowrap}.daily-chart{height:136px;margin:12px 16px 0;position:relative;display:flex;gap:10px;padding-bottom:22px}.chart-axis{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;width:16px;font-size:10px;color:var(--muted)}.chart-bars{display:flex;flex:1;gap:12px;background:repeating-linear-gradient(to top,var(--chart-grid) 0,var(--chart-grid) 1px,transparent 1px,transparent 50%);border-bottom:1px solid var(--border);padding:0 6px}.day-column{position:relative;flex:1;min-width:0}.bar-group{display:flex;align-items:flex-end;gap:3px;height:100%}.bar{width:25%;min-height:0;border-radius:3px 3px 0 0;max-width:14px}.repair{background:#087f8c}.update{background:#5485bb}.meeting{background:#bb8625}.other{background:#7d8596}.procurement{background:#7961a8}.loan{background:#ba6950}.day-label{position:absolute;bottom:-20px;text-align:center;left:0;right:0;font-size:10px;color:var(--muted)}.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:10px 12px 12px;font-size:11px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:9px;height:9px;border-radius:2px}.category-chart{padding:10px 16px 0;display:grid;gap:4px}.category-row{display:flex;gap:10px;align-items:center;border:0;padding:3px 0;background:none;width:100%;text-align:left;min-height:26px;font-size:13px}.category-row>span:first-child{width:136px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;flex-shrink:0}.category-row strong{width:24px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}.track{height:13px;flex:1;border-radius:4px;background:var(--track-bg);overflow:hidden}.fill{display:block;height:100%;border-radius:4px}.category-row:hover .track{outline:2px solid var(--border-hover)}.chart-hint{font-size:10px;color:var(--muted);margin:8px 16px 12px}.report-intro{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-shrink:0}.report-intro-main{flex:1;min-width:0}.report-intro h2{margin-bottom:4px}.report-intro p{font-size:12px;margin-bottom:4px}.report-actions{display:flex;gap:8px;flex-wrap:wrap}.report-actions .button{font-size:12px;min-height:38px}.report-period-bar{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:8px 0 6px}.report-period-bar label{display:grid;gap:4px;font-size:11px;color:var(--muted)}.report-period-bar select,.report-period-bar input{height:36px;min-height:36px;padding:5px 9px;border:1px solid var(--input-border);border-radius:7px;background:var(--input-bg);color:var(--ink);font-size:12px}.work-panel{display:flex;flex-direction:column;overflow:hidden;min-height:200px}.table-toolbar{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-shrink:0;border-bottom:1px solid var(--border)}.table-toolbar>div{display:flex;align-items:center;gap:10px}.table-toolbar h2{color:var(--primary)}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--input-border);background:var(--input-bg);border-radius:8px;padding:0 11px;min-width:280px;height:37px}.search svg{width:16px;color:var(--muted)}.search input{border:0;outline:none;width:100%;min-width:0;font-size:13px;background:transparent!important;color:var(--ink)}.search:focus-within{outline:2px solid var(--focus-ring)}.table-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:auto;padding:0 12px 10px;scrollbar-gutter:stable}.table-scroll::-webkit-scrollbar{width:8px;height:8px}.table-scroll::-webkit-scrollbar-track{background:transparent}.table-scroll::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:999px}.work-table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}.work-table thead th{position:sticky;top:0;z-index:2;background:var(--table-head-bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px;font-weight:600;padding:10px 12px;white-space:nowrap;color:var(--ink);border-bottom:1px solid var(--border)}.work-table th:first-child{border-radius:7px 0 0}.work-table th:last-child{border-radius:0 7px 0 0}.work-table td{padding:11px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.work-table tbody tr:last-child td{border-bottom:0}.work-table tbody tr:hover{background:var(--row-hover)}.work-table td:first-child{width:38%;min-width:210px}.work-table td:nth-child(3){max-width:170px}.entry-title{text-align:left;padding:0;background:none;border:0;font-weight:600;font-size:14px;line-height:1.55;color:var(--ink)}.entry-title:hover{color:var(--primary);text-decoration:underline}.row-description{display:block;color:var(--muted);font-size:12px;margin-top:2px}.type-label{display:flex;gap:8px;align-items:center;white-space:normal;line-height:1.45}.type-icon{display:grid;place-items:center;color:#fff;border-radius:6px;width:26px;height:26px;flex-shrink:0}.type-icon svg{width:15px;height:15px}.status{display:inline-flex;align-items:center;border-radius:7px;padding:4px 9px;white-space:nowrap;font-size:11px;font-weight:600;line-height:1.5}.status.completed{color:#065f46;background:#d1fae5}.status.in_progress{color:#1e40af;background:#dbeafe}.status.pending,.status.waiting{color:#92400e;background:#fef3c7}.status.cancelled{color:#9f1239;background:#ffe4e6}html[data-theme=dark] .status.completed{color:#6ee7b7;background:#10b9812e}html[data-theme=dark] .status.in_progress{color:#93c5fd;background:#3b82f633}html[data-theme=dark] .status.pending,html[data-theme=dark] .status.waiting{color:#fcd34d;background:#f59e0b2e}html[data-theme=dark] .status.cancelled{color:#fda4af;background:#f43f5e2e}.status-actions-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.row-repeat-btn{min-height:30px;padding:3px 8px;font-size:11px;border-radius:7px;border:1px solid var(--border);background:var(--surface-elevated);color:var(--muted);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.row-repeat-btn:hover{color:var(--primary);border-color:var(--primary);background:var(--surface-muted)}.row-repeat-btn svg{width:13px;height:13px}.time-cell{font-size:12px;white-space:nowrap}.empty-state{padding:40px 20px;text-align:center;color:var(--muted)}.empty-state h3{color:var(--ink)}.page-footer{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;flex-shrink:0}.loan-fields{display:grid;gap:14px;padding:14px;background:var(--surface-elevated);border:1px solid var(--border);border-radius:10px}.loan-fields h3{margin:0}.loan-detail{border-bottom:1px solid var(--border);margin-bottom:18px;padding-bottom:12px}.loan-detail h3{margin-top:0}.loan-table .entry-title{white-space:pre-wrap}.mobile-loan-dates{display:none}.loan-status-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.quick-return-btn{min-height:30px;padding:4px 10px;font-size:12px;border-radius:7px;background:#10b98124;border-color:#10b98173;color:#065f46;gap:5px}html[data-theme=dark] .quick-return-btn{color:#6ee7b7}.quick-return-btn:hover{background:#10b9813d}.quick-return-btn svg{width:14px;height:14px}.repeat-picker{padding:12px 14px;border-radius:10px;border:1px dashed var(--primary);background:#087f8c0f;display:grid;gap:6px}.repeat-picker label{font-size:12px;font-weight:600;color:var(--primary)}.repeat-banner{padding:10px 12px;border-radius:8px;background:#087f8c1a;border:1px solid rgba(8,127,140,.28);color:var(--ink);font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a121c7a;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:grid;place-items:center;z-index:50;padding:16px}.modal-card{background:var(--surface-solid);color:var(--ink);border:1px solid var(--border);border-radius:16px;max-height:90dvh;width:660px;max-width:100%;overflow:auto;box-shadow:0 25px 80px #00000059}@keyframes drawer-slide-in{0%{opacity:0;transform:translate3d(28px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes drawer-sheet-in{0%{opacity:0;transform:translate3d(0,32px,0)}to{opacity:1;transform:translateZ(0)}}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a121c75;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:50;display:flex;justify-content:flex-end;padding:12px}.finora-drawer{width:min(490px,100%);height:100%;background:var(--surface-solid);color:var(--ink);border:1px solid var(--border);border-radius:22px;display:flex;flex-direction:column;overflow:hidden;box-shadow:-12px 18px 60px #0000004d;animation:drawer-slide-in .34s var(--ease-expo-out) both}.finora-drawer .detail-body{flex:1;overflow-y:auto}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid var(--border);gap:16px;position:sticky;top:0;background:var(--surface-solid);z-index:2}.dialog-heading h2{font-size:19px;line-height:1.4}.dialog-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}.icon-button{border:0;background:var(--surface-muted);color:var(--ink);border-radius:9px;width:36px;height:36px;display:grid;place-items:center;flex-shrink:0}.icon-button:hover{background:var(--border)}.form-body{padding:18px 22px;display:grid;gap:15px}.form-body label{display:block;font-size:13px;font-weight:600}.form-body input:not([type=file]),.form-body select,.form-body textarea{width:100%;display:block;padding:9px 12px;border:1px solid var(--input-border);border-radius:8px;background:var(--input-bg);color:var(--ink);margin-top:6px;min-height:41px;font-weight:400}.form-body textarea{resize:vertical;line-height:1.65}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.required{color:#e11d48}.optional{color:var(--muted);font-weight:400;font-size:10px;margin-left:4px}.optional-section{padding:12px;border:1px solid var(--border);border-radius:8px}.optional-section summary{cursor:pointer;font-weight:600;font-size:13px}.optional-section[open] summary{margin-bottom:10px}.field-help{font-size:11px;color:var(--muted);margin:6px 0 0}.upload-section input{display:block;margin-top:8px;font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:14px 22px;border-top:1px solid var(--border);background:var(--surface-elevated);position:sticky;bottom:0}.form-error{background:#e11d481f;color:#e11d48;padding:11px 12px;border-radius:8px;line-height:1.6;font-size:12px}.detail-body{padding:20px 22px}.detail-body h3{margin-top:22px;margin-bottom:6px}.detail-body p{font-size:13px}.detail-body dl{margin:16px 0;display:grid;gap:10px}.detail-body dl>div{display:grid;grid-template-columns:110px 1fr;gap:10px;font-size:13px}.detail-body dt{color:var(--muted)}.detail-body dd{margin:0}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.photo-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.photo-item{position:relative}.photo-grid img{width:98px;height:80px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.detail-photos img{width:150px;height:110px}.photo-remove{position:absolute;right:3px;top:3px;background:#0f172ac7;color:#fff;border:0;border-radius:50%;width:24px;height:24px;display:grid;place-items:center}.photo-remove svg{width:13px;height:13px}.photo-meta{display:block;font-size:10px;color:var(--muted);margin-top:4px;max-width:98px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entry-main-cell{display:flex;align-items:center;justify-content:space-between;gap:10px}.entry-main-text{min-width:0;flex:1}.photo-stamps{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;flex-wrap:nowrap;margin-top:0}.photo-stamp-btn{padding:2px;background:#fff;border:1px dashed #94a3b8;border-radius:3px;box-shadow:0 1px 3px #0f172a29;display:inline-flex;line-height:0;transition:transform .15s var(--ease-expo-out),border-color .15s ease}html[data-theme=dark] .photo-stamp-btn{background:#1e293b;border-color:#64748b}.photo-stamp-btn:hover{transform:scale(1.1);border-color:var(--primary)}.photo-stamp{width:36px;height:28px;object-fit:cover;border-radius:2px;display:block}.photo-stamp-more{font-size:10px;font-weight:600;color:var(--muted);background:var(--surface-muted);border:1px dashed var(--border-hover);border-radius:3px;padding:3px 6px;line-height:1.2}.load-more-row{display:flex;justify-content:center;padding:14px 12px 6px;border-top:1px solid var(--border);margin-top:4px}.load-more-btn{min-height:38px;padding:7px 18px;font-size:13px;border-radius:999px}.readonly-pill{font-size:11px;font-weight:600;color:var(--muted);background:var(--surface-muted);border:1px solid var(--border);border-radius:999px;padding:4px 10px;white-space:nowrap}.topbar-login-btn{min-height:36px;padding:5px 12px;font-size:12px;border-radius:9px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%);padding:12px 18px;background:#0f172a;color:#fff;box-shadow:0 8px 28px #00000040;border-radius:10px;z-index:100;font-size:13px;max-width:calc(100% - 30px);line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#print-area{display:none}.login-shell{min-height:100dvh;display:grid;place-items:center;padding:20px;background:linear-gradient(155deg,#132a39,#0b4d56)}.login-card{width:100%;max-width:410px;background:#fff;color:#132a39;border-radius:18px;padding:30px 28px;display:grid;gap:16px;box-shadow:0 24px 60px #00000059}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:4px}.login-brand .brand-mark{background:#132a39;color:#fff;width:44px;height:44px;border-radius:8px;font-size:26px}.login-brand h1{font-size:24px;margin:0}.login-brand p{font-size:12px;color:#526273;margin:2px 0 0}.login-card label{display:grid;gap:6px;font-size:13px;font-weight:600}.login-card input{padding:11px 12px;border:1px solid #d4dfe7;background:#fff;color:#132a39;border-radius:8px;font-weight:400;min-height:44px}.login-submit{width:100%;margin-top:6px}.user-list{display:grid;gap:8px;margin-top:10px}.user-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:13px}.user-row small{color:var(--muted);display:block;font-size:11px}@media(min-width:901px){html,body,#root,.app-shell{height:100dvh;overflow:hidden}.sidebar{height:100dvh}.workspace{height:100dvh;overflow:hidden}main{flex:1;min-height:0;overflow:hidden}.work-panel{flex:1;min-height:0}}@media(max-width:900px){.sidebar{width:175px}.chart-grid{grid-template-columns:1fr}.table-toolbar{flex-direction:column;align-items:stretch}.search{width:100%;min-width:0}.report-intro{align-items:flex-start;flex-direction:column}.work-table td:nth-child(3),.work-table th:nth-child(3){display:none}.table-scroll{max-height:62dvh}}@media(max-width:760px){.drawer-backdrop{align-items:flex-end;padding:0}.finora-drawer{width:100%;height:88dvh;border-radius:20px 20px 0 0;animation-name:drawer-sheet-in}}@media(max-width:640px){.app-shell{flex-direction:column}.sidebar,.sidebar.is-rail{position:static;width:100%;height:auto;padding:12px 14px 0;display:block;border-right:0}.sidebar.is-rail .brand-text,.sidebar.is-rail .nav-label{display:inline}.brand,.sidebar.is-rail .brand{font-size:20px;padding:0 0 10px;justify-content:flex-start}.sidebar nav,.sidebar.is-rail nav{grid-template-columns:repeat(4,1fr);gap:4px}.sidebar nav button,.sidebar.is-rail nav button{height:44px;justify-content:center;gap:5px;padding:0 4px;border-radius:8px 8px 0 0;font-size:11px}.sidebar nav svg{width:15px;height:15px}.sidebar-footer,.rail-toggle{display:none}.topbar{padding:0 14px}main{padding:16px 14px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filters label:first-child{grid-column:1 / -1}.filters input,.filters select{width:100%;max-width:none;font-size:16px}.stats{grid-template-columns:1fr 1fr;padding:0}.stat{padding:12px;border-bottom:1px solid var(--border)}.report-period-bar{display:grid;grid-template-columns:1fr 1fr;width:100%}.report-period-bar select,.report-period-bar input{width:100%;font-size:16px}.loan-controls{flex-direction:column;align-items:stretch}.loan-table td:nth-child(2){display:none}.mobile-loan-dates{display:block}.form-body input:not([type=file]),.form-body select,.form-body textarea{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.motion-stagger-enter,.motion-progress-sweep,.finora-drawer{opacity:1!important;transform:none!important}}@media(prefers-reduced-transparency:reduce){.finora-glass,.topbar,.work-table thead th{backdrop-filter:none;-webkit-backdrop-filter:none;background-color:var(--surface-solid)}}@media print{@page{size:A4 portrait;margin:14mm 10mm}html,body,#root,.app-shell{height:auto!important;overflow:visible!important;background:#fff!important;color:#000!important}body{font-size:10pt}.sidebar,.workspace,.modal-backdrop,.drawer-backdrop,.toast{display:none!important}#print-area{display:block!important}.print-heading h1{font-size:18pt;margin:10px 0}.print-heading p{font-size:9pt;margin:5px 0}.print-heading strong{color:#087f8c}.print-table{border-collapse:collapse;width:100%;font-size:8pt;margin-top:18px;table-layout:fixed}.print-table th,.print-table td{border:1px solid #aaa;padding:6px;vertical-align:top;overflow-wrap:anywhere}.print-table th{background:#edf2f5}.print-table thead{display:table-header-group}.print-table tr{break-inside:avoid}.print-stamps{display:flex;flex-wrap:wrap;gap:2mm;margin-top:2mm}.print-stamp{width:15mm;height:11.5mm;object-fit:cover;padding:.6mm;background:#fff;border:.5pt dashed #64748b;border-radius:.8mm;display:block}#print-area>p{font-size:8pt;margin-top:14px}}
