:root{--green: #5a9467;--green-700: #3f744d;--green-50: #eef7f0;--blue: #2f728f;--yellow: #ffc21c;--yellow-50: #fff8df;--ink: #101828;--muted: #667085;--line: #e4ebe6;--surface: #ffffff;--bg: #f6f8f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:1100px;min-height:100vh;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.admin-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:22px 16px;border-right:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:12px;padding:8px 10px 24px}.brand img{width:46px;height:46px;object-fit:contain}.brand strong,.brand span{display:block}.brand strong{font-size:18px;letter-spacing:0}.brand span{margin-top:3px;color:var(--muted);font-size:12px;font-weight:700}.sidebar nav{display:grid;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:10px;height:42px;padding:0 12px;border:0;border-radius:8px;color:#475467;background:transparent;font-size:14px;font-weight:800;text-align:left}.sidebar nav button.active{color:var(--green-700);background:var(--green-50)}.logout-button{display:inline-flex;align-items:center;gap:9px;height:40px;margin-top:auto;padding:0 12px;border:1px solid #ffd4cc;border-radius:8px;color:#d92d20;background:#fff7f5;font-size:13px;font-weight:900}.main-panel{min-width:0;padding:24px 30px 36px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.topbar p,.panel-head p{margin:0;color:var(--muted);font-size:13px;font-weight:800}.topbar h1{margin:4px 0 0;font-size:26px;line-height:1.15}.search-box{display:flex;align-items:center;gap:9px;width:min(420px,42vw);height:42px;padding:0 13px;border:1px solid var(--line);border-radius:8px;color:#98a2b3;background:#fff}.search-box input{width:100%;border:0;outline:0;color:var(--ink);background:transparent;font-size:14px}.panel{min-width:0;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 10px 28px #1018280a}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.panel-head h2{margin:0;font-size:18px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 14px;border:0;border-radius:8px;color:#fff;background:var(--green);font-size:13px;font-weight:900}.secondary{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:8px;color:var(--green-700);background:#fff;font-size:12px;font-weight:900}.month-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.month-toolbar .panel-head{margin-bottom:0}.month-toolbar label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:900}.month-toolbar input{width:150px;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:8px;outline:0;color:var(--ink);background:#fff}.data-table{overflow:auto;border:1px solid var(--line);border-radius:8px}.table-head,.table-row{display:grid;min-width:900px}.table-head{background:#f7faf8}.table-head span,.table-row>div{display:flex;align-items:center;min-height:48px;padding:0 14px;border-bottom:1px solid var(--line);font-size:13px}.table-head span{color:var(--muted);font-size:12px;font-weight:900}.table-row:last-child>div{border-bottom:0}.name-cell strong,.name-cell small{display:block}.name-cell strong{font-size:13px}.name-cell small{max-width:260px;margin-top:4px;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.doc-title{display:inline-flex;align-items:center;gap:8px;font-weight:900}.ellipsis{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:900}.status-badge.is-green{color:var(--green-700);background:var(--green-50)}.status-badge.is-blue{color:var(--blue);background:#e8f4f8}.status-badge.is-yellow{color:#9a6a00;background:var(--yellow-50)}.status-badge.is-gray{color:#475467;background:#f2f4f7}.row-actions{display:flex;gap:6px}.row-actions button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;color:var(--green);background:#fff}.row-actions .danger{color:#e94b35;border-color:#ffd4cc;background:#fff7f5}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:#1018285c}.modal-panel{width:min(620px,100%);max-height:min(760px,calc(100vh - 48px));overflow:auto;border-radius:10px;background:#fff;box-shadow:0 24px 80px #1018283d}.wide-modal{width:min(820px,100%)}.modal-panel header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);background:#fff}.modal-panel header h2{margin:0;font-size:18px}.modal-panel header button{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 12px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:#fff;font-size:13px;font-weight:900}.form{display:grid;gap:14px;padding:20px}.form.compact{width:min(520px,100%);padding:0}.field{display:grid;gap:7px}.field span{color:var(--muted);font-size:12px;font-weight:900}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;outline:0;color:var(--ink);background:#fff;font-size:14px}.field input,.field select{height:40px;padding:0 11px}.field textarea{min-height:112px;padding:11px;resize:vertical;line-height:1.5}.chip-grid{display:flex;flex-wrap:wrap;gap:8px}.chip-grid button{height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:#fff;font-size:13px;font-weight:900}.chip-grid button.selected{color:#fff;background:var(--green);border-color:var(--green)}.submit{margin-top:4px}.form-error,.form-success{padding:10px 12px;border-radius:8px;font-size:13px;font-weight:900}.form-error{color:#d92d20;background:#fff7f5}.form-success{color:var(--green-700);background:var(--green-50)}.login-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:linear-gradient(135deg,#5a94671a,#2f728f0f),#f7faf8}.login-card{width:min(420px,100%);padding:30px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 24px 80px #1018281a}.login-card img{display:block;width:58px;height:58px;object-fit:contain;margin-bottom:16px}.login-card h1{margin:0;font-size:24px}.login-card p{margin:8px 0 20px;color:var(--muted);font-size:13px;font-weight:800}.account-panel{max-width:680px}.calendar-wrap{padding:20px}.calendar-summary{display:flex;gap:8px;margin-bottom:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-week{margin-bottom:8px}.calendar-week span{display:grid;height:28px;place-items:center;color:var(--muted);font-size:12px;font-weight:900}.day-cell{display:grid;align-content:start;min-height:82px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.day-cell.empty{border-color:transparent;background:transparent}.day-cell.checked{border-color:#d8eadc;background:#f6fbf7}.day-cell strong{font-size:14px}.day-cell em,.day-cell b{display:inline-flex;width:fit-content;align-items:center;justify-content:center;height:20px;margin-top:6px;padding:0 7px;border-radius:999px;font-size:11px;font-style:normal;font-weight:900}.day-cell em{color:var(--green-700);background:var(--green-50)}.day-cell b{color:#d92d20;background:#fff1f0}@media(max-width:980px){body{min-width:0}.admin-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar,.month-toolbar{align-items:stretch;flex-direction:column}.search-box{width:100%}}
