@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root { --bg:#f5f7fb; --ink:#15263d; --muted:#63748b; --line:#e5eaf1; --blue:#2763e7; --nav:#101d37; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:'DM Sans',Arial,sans-serif; font-size:14px; }
h1,h2,h3,h4,.topbar-title { font-family:'Manrope',Arial,sans-serif; letter-spacing:-.025em; }
a { color:#225bc9; text-decoration:none; }
a:hover { color:#1744a5; }
.btn { border-radius:9px; font-weight:700; padding:.54rem .9rem; }
.btn-sm { padding:.32rem .65rem; font-size:12px; }
.btn-primary { background:var(--blue); border-color:var(--blue); }
.btn-outline-primary { color:var(--blue); border-color:#adc3fb; }
.btn-outline-primary:hover { background:var(--blue); border-color:var(--blue); }
.form-control,.form-select { background-color:#fff; border:1px solid #dbe2ec; border-radius:9px; min-height:41px; color:var(--ink); }
.form-control:focus,.form-select:focus { border-color:#9ab8ff; box-shadow:0 0 0 3px rgba(39,99,231,.11); }
.form-control-sm,.form-select-sm { min-height:33px; }
.form-label, .form-stack label { font-weight:600; color:#3e4e64; font-size:13px; }
.form-stack { display:grid; gap:14px; }
.form-stack label { display:grid; gap:6px; }
.form-stack .form-check { display:flex; align-items:center; gap:8px; }
.form-stack .form-check-label { font-weight:500; }
.app-shell { min-height:100vh; display:flex; }
.sidebar { width:245px; flex-shrink:0; background:var(--nav); color:#eef3ff; display:flex; flex-direction:column; min-height:100vh; position:sticky; top:0; height:100vh; overflow-x:hidden; }
.sidebar-top { display:flex; align-items:center; gap:12px; padding:26px 22px 32px; }
.sidebar-top strong { font-size:17px; font-family:'Manrope',sans-serif; display:block; letter-spacing:-.03em; }
.sidebar-top small { font-size:11px; color:#9cb1d2; display:block; }
.brand-icon { display:inline-flex; height:42px; width:42px; align-items:center; justify-content:center; border-radius:13px; font-family:'Manrope',sans-serif; font-size:16px; font-weight:800; background:linear-gradient(145deg,#3b83fa,#54c2f1); color:white; box-shadow:0 6px 18px rgba(38,112,240,.2); }
.menu-links { gap:5px; padding:0 12px; min-height:0; flex-wrap:nowrap!important; overflow-y:auto; overflow-x:hidden; }
.menu-links .nav-link { width:100%; min-width:0; flex:0 0 auto; color:#aebdd6; border-radius:10px; display:flex; align-items:center; gap:13px; padding:10px 13px; font-weight:600; transition:background .2s,color .2s; }
.menu-links .nav-link:hover { background:#20314f; color:white; }
.menu-links .nav-link.active { background:linear-gradient(100deg,#2d65dd,#2b72e2); color:white; box-shadow:0 5px 20px #09142655; }
.nav-symbol { display:inline-flex; flex:0 0 21px; align-items:center; justify-content:center; width:21px; font-size:19px; font-family:Arial,sans-serif; }
.sidebar-bottom { padding:22px; margin-top:auto; border-top:1px solid #283957; display:flex; flex-direction:column; }
.main-container { flex:1; min-width:0; }
.topbar { height:78px; background:white; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 34px; gap:15px; }
.topbar-title { font-weight:800; font-size:18px; }
.topbar-right { display:flex; align-items:center; gap:10px; }
.year-choice select { min-width:145px; background:#f8fafc; font-weight:600; }
.page-content { padding:34px; max-width:1800px; margin:0 auto; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:27px; }
.page-heading h1 { font-size:27px; font-weight:800; margin:0 0 6px; }
.page-heading p { margin:0; color:var(--muted); font-size:14px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.stat-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stat-card { display:flex; flex-direction:column; align-items:flex-start; border-radius:15px; background:white; border:1px solid var(--line); padding:21px; min-height:135px; box-shadow:0 2px 9px #1e314508; color:inherit; transition:transform .18s,box-shadow .18s; }
a.stat-card:hover { box-shadow:0 8px 24px #1e314512; transform:translateY(-2px); color:inherit; }
.stat-card span { color:#62758c; font-size:12px; font-weight:700; }
.stat-card strong { font-family:'Manrope',sans-serif; font-size:31px; line-height:1.2; letter-spacing:-.04em; margin:14px 0 8px; }
.stat-card small { font-size:12px; color:#4d6892; }
.dot:before { display:inline-block; content:""; width:7px; height:7px; background:#96a9c0; border-radius:50%; margin-right:6px; }
.dot-warning:before { background:#e7ad45; }.dot-danger:before{background:#dc6770}.dot-info:before{background:#4ea6df}
.panel { background:white; border:1px solid var(--line); border-radius:15px; padding:22px; box-shadow:0 2px 9px #1e314508; }
.panel-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.panel h2 { font-size:16px; font-weight:800; margin:0; }
.panel-header a { font-size:12px; font-weight:700; }
.hint { color:var(--muted); font-size:12px; }
.table-clean { margin:0; font-size:13px; }
.table-clean th { color:#7a8ba0; font-size:11px; text-transform:uppercase; letter-spacing:.05em; border-color:var(--line); font-weight:800; white-space:nowrap; background:#fbfcff; }
.table-clean td { vertical-align:middle; padding:12px 9px; border-color:#edf1f6; }
.table-clean tr:last-child td { border-bottom:0; }
.quick-actions { display:grid; gap:8px; }
.quick-link { display:flex; align-items:center; gap:12px; padding:13px 15px; border:1px solid #e7edf6; border-radius:10px; color:var(--ink); font-size:19px; font-weight:700; }
.quick-link span { flex:1; font-size:13px; }.quick-link b{color:#7d9bd5}.quick-link:hover{background:#f3f7ff}
.compact-list>div { display:flex; justify-content:space-between; align-items:center; gap:15px; border-bottom:1px solid #edf0f5; padding:11px 0; }
.compact-list>div:last-child { border-bottom:0; }
.compact-list span { min-width:0; overflow-wrap:anywhere; }.compact-list small{font-size:11px;color:var(--muted);display:block;margin-top:3px}
.searchbar,.filters { display:flex; gap:9px; margin-bottom:18px; align-items:center; flex-wrap:wrap; }
.searchbar input { flex:1; min-width:180px; }
.filters select { flex:1; min-width:150px; max-width:290px; }
.filter-pill { padding:7px 12px; color:#60718a; background:#f4f7fc; border-radius:8px; font-weight:700; font-size:12px; }
.filter-pill.selected,.filter-pill:hover { color:#1c57d1; background:#e7efff; }
.empty-state { padding:40px 20px; text-align:center; color:#74859b; background:#fff; border-radius:12px; border:1px dashed #cdd8e8; }
.note-box { background:#f3f7fe; border:1px solid #deebff; border-radius:10px; padding:14px; font-size:12px; color:#49607f; }
.note-box p { margin:5px 0 0; }
.observ-cell { max-width:300px; min-width:160px; line-height:1.4; overflow-wrap:anywhere; white-space:pre-line; }
.absence-card { border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:15px; }
.absence-top { display:flex; justify-content:space-between; gap:15px; align-items:flex-start; padding-bottom:12px; }
.absence-top small { display:block; color:var(--muted); margin-top:5px; }
.slot-editor { display:flex; flex-direction:column; gap:7px; border-top:1px solid #eff1f6; padding:12px 0; }
.slot-label { display:flex; gap:15px; justify-content:space-between; }
.slot-label strong { font-size:12px; }.slot-label small{font-size:11px}
.slot-inputs { display:grid; grid-template-columns:1.3fr .7fr 1.4fr 1.6fr auto; align-items:center; gap:7px; }
.slot-inputs .form-select { font-size:12px; }
.absence-actions { background:#f7f9fd; margin-top:8px; padding:12px; border-radius:10px; display:flex; align-items:end; gap:15px; flex-wrap:wrap; }
.absence-actions label:not(.form-check) { font-size:12px; font-weight:700; display:grid; gap:5px; }
.absence-actions .form-check { margin-bottom:7px; }
.sticky-panel { position:sticky; top:16px; }
.justification-card { border:1px solid var(--line); border-radius:11px; padding:15px; margin-bottom:13px; }
.candidate-list { max-height:175px; overflow:auto; display:grid; gap:5px; padding:10px; background:#f7f9fd; border-radius:9px; margin-top:7px; }
.doc-link { display:block; margin:7px 0; padding:6px 10px; background:#f6f9ff; border-radius:7px; font-size:12px; overflow-wrap:anywhere; }
.login-body { background:radial-gradient(circle at 20% 20%,#e9f1ff 0,transparent 42%),radial-gradient(circle at 90% 90%,#dcf4f4 0,transparent 42%),#f6f8fc; display:flex; min-height:100vh; align-items:center; justify-content:center; padding:28px; }
.auth-box { width:min(100%,480px); background:white; border:1px solid #e0e7f2; box-shadow:0 25px 65px #16325713; padding:35px; border-radius:20px; }
.badge { font-weight:700; letter-spacing:.01em; padding:.43em .72em; }
.action-form { margin:0; }
@media(max-width:1200px){ .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.slot-inputs{grid-template-columns:1fr 1fr}.slot-inputs .btn{grid-column:span 2} }
@media(max-width:991px){ .sidebar{position:fixed;left:-250px;z-index:1100;transition:left .25s}.sidebar.open{left:0}.topbar{padding:0 20px}.page-content{padding:22px}.sticky-panel{position:static} }
@media(max-width:600px){.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:22px}.stat-grid{gap:10px}.stat-card{padding:15px;min-height:115px}.stat-card strong{font-size:24px}.panel{padding:15px}.topbar{height:67px}.topbar-title{font-size:14px}.page-content{padding:14px}.year-choice select{min-width:116px}.slot-inputs{grid-template-columns:1fr}.slot-inputs .btn{grid-column:auto}.absence-top{flex-direction:column}.auth-box{padding:23px} }
