:root{--bg: #f6f7f9;--surface: #ffffff;--surface-muted: #f2f4f7;--border: #e4e7ec;--border-strong: #d0d5dd;--text: #101828;--text-muted: #667085;--text-soft: #98a2b3;--accent: #2f6feb;--accent-soft: #e8f0fe;--open: #f0a202;--open-soft: #fdf3e0;--progress: #2f6feb;--progress-soft: #e8f0fe;--done: #12a150;--done-soft: #e6f6ed;--cancelled: #98a2b3;--cancelled-soft: #f0f1f3;--danger: #e5484d;--radius: 14px;--radius-sm: 9px;--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .05);--sidebar: 244px;color-scheme:light dark}:root[data-theme=dark]{--bg: #0d1117;--surface: #151b23;--surface-muted: #1c232c;--border: #262d36;--border-strong: #333b45;--text: #e6edf3;--text-muted: #9198a1;--text-soft: #6e7681;--accent: #4f8cff;--accent-soft: #16233b;--open-soft: #2a2113;--progress-soft: #16233b;--done-soft: #10251a;--cancelled-soft: #1e242c;--shadow: 0 1px 2px rgba(0, 0, 0, .4)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}.app{display:grid;grid-template-columns:var(--sidebar) 1fr;min-height:100%}.sidebar{display:flex;flex-direction:column;gap:24px;padding:22px 16px;background:var(--surface);border-right:1px solid var(--border);position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 8px}.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:700}.brand-name{font-weight:650;letter-spacing:-.01em}.brand-sub{font-size:12px;color:var(--text-muted)}.nav{display:flex;flex-direction:column;gap:2px}.nav-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--radius-sm);color:var(--text-muted);font-weight:500;transition:background .15s ease}.nav-link:hover{background:var(--surface-muted);color:var(--text)}.nav-link.active{background:var(--accent-soft);color:var(--accent)}.nav-icon{width:18px;text-align:center}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:10px}.user-card{display:flex;align-items:center;gap:10px;padding:10px;border-radius:var(--radius-sm);background:var(--surface-muted)}.main{display:flex;flex-direction:column;min-width:0}.topbar{position:sticky;top:0;z-index:20;display:flex;flex-direction:column;gap:14px;padding:18px 28px;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}.topbar-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.page-title{font-size:20px;font-weight:650;letter-spacing:-.02em}.page-subtitle{color:var(--text-muted);font-size:13px}.content{padding:24px 28px 48px;display:flex;flex-direction:column;gap:20px}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.segmented{display:inline-flex;padding:3px;gap:2px;background:var(--surface-muted);border:1px solid var(--border);border-radius:10px}.segmented button{border:0;background:transparent;color:var(--text-muted);padding:6px 11px;border-radius:7px;font-size:13px;font-weight:500;transition:all .15s ease}.segmented button:hover{color:var(--text)}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #10182814}.select{appearance:none;padding:8px 30px 8px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:13px;background-image:linear-gradient(45deg,transparent 50%,var(--text-soft) 50%),linear-gradient(135deg,var(--text-soft) 50%,transparent 50%);background-position:calc(100% - 15px) 15px,calc(100% - 11px) 15px;background-size:4px 4px;background-repeat:no-repeat}.select:focus,.input:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}.input{padding:8px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:13px;min-width:220px}.ghost-button{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);padding:8px 12px;border-radius:9px;font-size:13px}.ghost-button:hover{color:var(--text);border-color:var(--border-strong)}.primary-button{border:0;background:var(--accent);color:#fff;padding:10px 16px;border-radius:9px;font-weight:600}.primary-button:disabled{opacity:.6;cursor:not-allowed}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border)}.card-title{font-size:15px;font-weight:620}.card-hint{font-size:12px;color:var(--text-muted)}.card-body{padding:18px}.grid{display:grid;gap:16px}.grid-stats{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.grid-2{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.grid-halves{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}.stat{padding:16px 18px;display:flex;flex-direction:column;gap:6px}.stat-label{font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.stat-value{font-size:26px;font-weight:680;letter-spacing:-.02em}.stat-foot{font-size:12px;color:var(--text-muted);display:flex;align-items:center;gap:6px}.trend-up{color:var(--done);font-weight:600}.trend-down{color:var(--danger);font-weight:600}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:550;white-space:nowrap}.badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.badge-open{background:var(--open-soft);color:var(--open)}.badge-in_progress{background:var(--progress-soft);color:var(--progress)}.badge-done{background:var(--done-soft);color:var(--done)}.badge-cancelled{background:var(--cancelled-soft);color:var(--cancelled)}.badge-neutral{background:var(--surface-muted);color:var(--text-muted)}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:650;flex:none}.avatar-lg{width:52px;height:52px;font-size:17px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:550;color:var(--text-muted);font-size:12px;padding:10px 18px;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:12px 18px;border-bottom:1px solid var(--border);vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr.clickable:hover{background:var(--surface-muted);cursor:pointer}.cell-main{display:flex;align-items:center;gap:10px;min-width:0}.cell-title{font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:380px}.cell-sub{font-size:12px;color:var(--text-muted)}.numeric{font-variant-numeric:tabular-nums}.bar{height:6px;border-radius:999px;background:var(--surface-muted);overflow:hidden;min-width:90px}.bar-fill{height:100%;border-radius:999px;background:var(--done)}.split-bar{display:flex;height:8px;border-radius:999px;overflow:hidden;background:var(--surface-muted)}.split-bar span{display:block}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--text-muted)}.legend-item{display:flex;align-items:center;gap:6px}.legend-swatch{width:9px;height:9px;border-radius:3px}.state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:48px 20px;color:var(--text-muted);text-align:center}.state-title{font-weight:600;color:var(--text)}.skeleton{background:linear-gradient(90deg,var(--surface-muted) 25%,color-mix(in srgb,var(--surface-muted) 60%,var(--surface)) 50%,var(--surface-muted) 75%);background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:8px}@keyframes shimmer{to{background-position:-200% 0}}.timeline{display:flex;flex-direction:column;gap:0}.timeline-item{display:grid;grid-template-columns:26px 1fr;gap:12px}.timeline-rail{display:flex;flex-direction:column;align-items:center}.timeline-dot{width:10px;height:10px;border-radius:50%;margin-top:5px}.timeline-line{flex:1;width:2px;background:var(--border)}.timeline-body{padding-bottom:18px;display:flex;flex-direction:column;gap:4px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--border);font-size:13px;color:var(--text-muted)}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(1200px 600px at 50% -10%,var(--accent-soft),var(--bg))}.login-card{width:100%;max-width:380px;padding:28px;display:flex;flex-direction:column;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;font-weight:550;color:var(--text-muted)}.field .input{width:100%;min-width:0;padding:10px 12px}.error-text{color:var(--danger);font-size:13px}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.detail-item{display:flex;flex-direction:column;gap:2px}.detail-label{font-size:12px;color:var(--text-muted)}.detail-value{font-weight:550}.row{display:flex;align-items:center;gap:10px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:4px;min-width:0}.muted{color:var(--text-muted)}.link{color:var(--accent);font-weight:550}.recharts-cartesian-axis-tick text{fill:var(--text-muted);font-size:11px}.menu-button{display:none;border:1px solid var(--border);background:var(--surface);color:var(--text);width:38px;height:38px;border-radius:10px;font-size:16px;line-height:1;flex:none}.scrim{display:none;position:fixed;inset:0;background:#10182873;z-index:40}.filters-scroll{overflow-x:auto;margin:0 -4px;padding:0 4px 2px;scrollbar-width:none}.filters-scroll::-webkit-scrollbar{display:none}.drawer{width:min(520px,100%);background:var(--surface);border-left:1px solid var(--border);overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:20px}.drawer-scrim{position:fixed;inset:0;background:#10182859;display:flex;justify-content:flex-end;z-index:50}@media(max-width:1240px){.grid-2{grid-template-columns:1fr}}@media(max-width:1024px){:root{--sidebar: 216px}.content,.topbar{padding-left:20px;padding-right:20px}.grid-halves{grid-template-columns:1fr}}@media(max-width:900px){.app{grid-template-columns:1fr}.menu-button{display:grid;place-items:center}.sidebar{position:fixed;top:0;left:0;z-index:45;width:264px;transform:translate(-100%);transition:transform .22s ease}.sidebar.open{transform:translate(0)}.scrim.visible{display:block}.topbar{padding:14px 16px}.content{padding:18px 16px 40px}.grid{gap:12px}.grid-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.stat-value{font-size:22px}.page-title{font-size:18px}.topbar-row>.input{flex:1 1 100%;min-width:0}.drawer{width:100%;padding:18px;border-left:0;border-top-left-radius:16px;border-top-right-radius:16px;margin-top:48px}.drawer-scrim{align-items:flex-end}}@media(max-width:640px){.topbar-row{align-items:flex-start}.grid-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.card-header{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}.card-body{padding:14px}.filters .select,.filters .ghost-button{flex:1 1 45%;min-width:0}.segmented{width:100%;overflow-x:auto;scrollbar-width:none}.segmented::-webkit-scrollbar{display:none}.segmented button{flex:none;padding:6px 10px}.cell-title{max-width:none;white-space:normal}.table-wrap table,.table-wrap thead,.table-wrap tbody,.table-wrap th,.table-wrap td,.table-wrap tr{display:block}.table-wrap thead{display:none}.table-wrap tbody tr{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.table-wrap td{border:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:right}.table-wrap td:before{content:attr(data-label);font-size:12px;color:var(--text-muted);text-align:left;flex:none}.table-wrap td:first-child{flex-direction:column;align-items:flex-start;text-align:left;font-weight:550}.table-wrap td:first-child:before{display:none}.table-wrap td:empty{display:none}.table-wrap .split-bar,.table-wrap .bar{width:60%}.pagination{flex-direction:column;align-items:stretch;gap:10px}.pagination .row{justify-content:space-between}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-card{padding:22px}}
