*{box-sizing:border-box}
:root{--navy:#073e61;--teal:#087fa9;--blue:#118dca;--light:#eff9fc;--border:#dce8ee;--text:#123c68;--muted:#71849a;--green:#16a66a;--yellow:#f6a80b;--red:#e62a32}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);background:#f7fbfd;font-size:14px}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.topbar{height:105px;background:#fff;border-bottom:1px solid #dce7ec;display:flex;justify-content:space-between;align-items:center;padding:0 28px;box-shadow:0 2px 12px #174d6d0c}
.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:72px;height:72px;object-fit:contain;border-radius:50%;background:#f8fff4;box-shadow:0 2px 8px #0b4d6e22}.brand-text strong{font-size:32px;color:#a71e24;display:block}.brand-text span{display:block;font-weight:600;color:#172d48}.brand-text small{display:block;font-size:11px;font-weight:600;line-height:1.35}.tagline{font-family:Parisienne,cursive;color:#d52323;font-size:25px;margin-left:30px;white-space:nowrap}.top-right{display:flex;align-items:center;gap:20px}.search-mini{height:44px;width:310px;display:flex;align-items:center;border:1px solid #d8e5eb;border-radius:8px;background:#fff;overflow:hidden;color:#72869a}.search-mini span{font-size:20px;padding-left:11px}.search-mini input{height:100%;flex:1;border:0;outline:0;padding:0 8px;color:#294a67;background:transparent}.search-mini button{height:30px;margin-right:6px;border:0;border-radius:5px;background:#078dbb;color:#fff;padding:0 10px;cursor:pointer;font-weight:600;font-size:11px}.notification{font-size:25px;position:relative}.notification b{position:absolute;right:-8px;top:-10px;background:#e92733;color:#fff;font-size:10px;width:19px;height:19px;text-align:center;border-radius:50%;padding-top:3px}.welcome{white-space:nowrap}.app-shell{display:flex;min-height:calc(100vh - 105px)}.sidebar{width:218px;background:linear-gradient(#07486b,#043d5d);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.sidebar nav{padding-top:20px}.sidebar nav a,.logout{height:55px;display:flex;align-items:center;gap:18px;padding:0 23px;color:#e9f6fb;border:0;background:transparent;width:100%;cursor:pointer;text-align:left;font-size:15px}.sidebar nav a span,.logout span{font-size:23px;width:24px;text-align:center}.sidebar nav a.active{background:linear-gradient(90deg,#148fd0,#1a9fd4);border-left:5px solid #bcefff;padding-left:18px}.side-bottom{padding-bottom:20px}.motto{font-family:Parisienne,cursive;color:#b4ccd8;font-size:26px;line-height:1.15;text-align:center;margin-top:48px}.main{flex:1;padding:24px 24px 45px;overflow:auto}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.page-head h1{font-size:30px;margin:0 0 5px;color:#103f7a}.page-head p{margin:0;color:#59718a}.date-display{border:1px solid #d8e6ed;border-radius:8px;padding:14px 20px;background:#fff;font-weight:600}.date-toolbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);padding:10px;border-radius:8px;margin-bottom:14px}.date-toolbar label{font-weight:600}.date-toolbar input,.filter-row input{height:38px;border:1px solid #d2dfe6;border-radius:6px;padding:0 10px}.today-btn,.quick{height:38px;border:1px solid #d9e7ef;border-radius:6px;padding:0 16px;display:flex;align-items:center;background:#edf7fb;color:#12547b;cursor:pointer}.today-btn{background:#078cc3;color:#fff;border-color:#078cc3}.apply{margin-left:auto}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:10px 18px;border:1px solid #0a8cb9;cursor:pointer;font-weight:600}.primary{background:#078dbb;color:#fff}.secondary{background:#fff;color:#234c6f;border-color:#aebfce}.full{width:100%}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:15px}.stat-card{position:relative;min-height:110px;border-radius:9px;padding:20px;display:flex;align-items:center;gap:16px;border:1px solid transparent}.stat-card.blue{background:#e2f3ff;border-color:#c5e8f7}.stat-card.green{background:#e3f9ed;border-color:#c5eedb}.stat-card.yellow{background:#fff5df;border-color:#f5dfad}.stat-card.red{background:#ffe9e9;border-color:#f8cdcd}.stat-icon{width:48px;height:48px;border-radius:10px;background:#d4edfa;display:flex;align-items:center;justify-content:center;font-size:26px}.green .stat-icon{background:#bdeed4}.yellow .stat-icon{background:#ffe1a1}.red .stat-icon{background:#ffd1d1}.stat-card span{display:block;font-weight:600}.stat-card strong{display:block;font-size:28px;margin-top:5px}.stat-card em{position:absolute;right:18px;bottom:19px;font-style:normal;font-weight:700}.green em{color:#087d4d}.yellow em{color:#d98a00}.red em{color:#db1720}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;margin-bottom:15px}.panel{background:#fff;border:1px solid var(--border);border-radius:10px;padding:15px;box-shadow:0 3px 15px #174d6d08}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel-head h2{font-size:17px;margin:0;color:#0e3d75}.panel-head a,.panel-head>span{color:#0c86c2;font-weight:600}.today-task{display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf2f5;padding:9px 0}.today-task:last-child{border-bottom:0}.task-symbol{width:34px;height:34px;border-radius:7px;background:#eef6ff;display:flex;align-items:center;justify-content:center;color:#167cb8}.task-info{flex:1}.task-info strong{display:block;font-size:13px}.task-info small{color:#637a90}.status{display:inline-block;padding:6px 11px;border-radius:18px;font-size:11px;font-weight:700;white-space:nowrap}.status.submitted{background:#dff7e9;color:#07814d}.status.pending{background:#fff0c9;color:#b77300}.status.in-progress{background:#e3f2ff;color:#0b79b8}.status.overdue{background:#ffe0e0;color:#e11d27}.donut-area{display:flex;align-items:center;justify-content:center;gap:25px;padding:14px 0}.donut{width:150px;height:150px;border-radius:50%;background:conic-gradient(#25ae73 calc(var(--submitted)*1%),#ffb51e calc(var(--submitted)*1%) calc(var(--submitted)*1% + 21%),#f04444 0);display:flex;align-items:center;justify-content:center}.donut:before{content:"";position:absolute}.donut>div{width:93px;height:93px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:28px}.donut small{font-size:11px}.legend p{display:flex;align-items:center;gap:8px;min-width:205px;border-bottom:1px solid #edf1f4;padding:8px 0;margin:0}.legend b{margin-left:auto}.dot{width:13px;height:13px;border-radius:50%}.dot.submitted{background:#25ae73}.dot.pending{background:#ffb51e}.dot.overdue{background:#f04444}.staff-bar{display:grid;grid-template-columns:82px 1fr 22px;gap:8px;align-items:center;margin:14px 0}.staff-bar span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar{height:13px;background:#edf2f4;border-radius:20px;overflow:hidden}.bar i{height:100%;display:block;background:#36b981;border-radius:20px}.bottom-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:14px;margin-bottom:15px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{background:#e2f5fb;color:#154b70;text-align:left;padding:11px 9px;font-size:12px;white-space:nowrap}td{padding:11px 9px;border-bottom:1px solid #e9eef1;font-size:12px;vertical-align:middle}td small{display:block;color:#8797a5;margin-top:3px}.empty{text-align:center;color:#8999a7;padding:25px}.action{color:#087eaa;font-weight:700;border:0;background:none;cursor:pointer;font-size:17px}.actions{display:flex;gap:7px;align-items:center}.danger-btn{color:#df2731}.danger-text{color:#e5232d;font-weight:700}.priority{padding:5px 9px;border-radius:14px;font-size:11px;font-weight:700}.priority.low{background:#edf4f7}.priority.medium{background:#e6f3ff;color:#1179b0}.priority.high{background:#fff0c8;color:#b77400}.priority.urgent{background:#ffe0e0;color:#d92028}.avatar{display:inline-flex;width:27px;height:27px;border-radius:50%;background:#d8edf5;align-items:center;justify-content:center;margin-right:4px}.upcoming{margin-bottom:10px}.upcoming-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.up-item{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #e7eef2;border-radius:7px}.date-box{width:45px;height:47px;border-radius:6px;background:#e8f5fb;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#0b74a0}.date-box b{font-size:17px}.date-box small{font-size:9px}.up-item>div:nth-child(2){flex:1}.up-item strong{display:block;font-size:12px}.up-item small{color:#718498}.filter-row{display:flex;gap:10px;margin-bottom:16px}.filter-row input[type=search]{flex:1}.alert{padding:10px 14px;border-radius:6px;margin:10px 0}.alert.error{background:#fff0f0;color:#a81d27;border:1px solid #ffd0d0}.alert.success{background:#edf9f1;color:#28733f;border:1px solid #c6e9d0}.form-panel{padding:0;overflow:hidden}.form-title{height:60px;background:linear-gradient(90deg,#e0f4fb,#f6fbfd);display:flex;align-items:center;padding:0 18px;gap:12px;color:#096184}.form-title span{font-size:25px}.form-title h2{margin:0;font-size:18px}.form-title small{margin-left:auto}.form-title b,.field label b{color:#df222b}.data-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 30px;padding:20px 25px}.field label,.submission-card label{display:block;font-weight:700;margin-bottom:7px}.field input,.field select,.field textarea,.submission-card input[type=file],.submission-card textarea{width:100%;border:1px solid #cfdee6;border-radius:6px;padding:9px 11px;background:#fff;color:#284b69}.field input,.field select{height:40px}.field textarea,.submission-card textarea{min-height:80px;resize:vertical}.full-field,.form-actions{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e7eef2;padding-top:16px}.detail-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:15px;margin-bottom:15px}.detail-head{display:flex;gap:14px;align-items:center;border-bottom:1px solid #e9eef1;padding-bottom:15px}.detail-head h2{margin:0 0 8px}.task-large-icon{width:58px;height:58px;border-radius:10px;background:#e7f5fb;display:flex;align-items:center;justify-content:center;font-size:28px}.detail-info{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:20px 0}.detail-info label,.description label{display:block;color:#7a8c9c;font-size:12px;margin-bottom:5px}.description{border-top:1px solid #edf1f3;padding-top:16px}.description p{line-height:1.6}.submission-card h2,.submitted-card h2{margin-top:0;color:#0b4b76}.submission-card p{color:#6e8091}.submission-card small{display:block;color:#7d8f9e;margin:5px 0 16px}.submission-card textarea{margin:8px 0 14px}.submitted-card{background:#edfbf3;border-color:#c9eed9}.small-btn{padding:6px 10px;font-size:11px}.error-page{text-align:center;max-width:600px;margin:70px auto;padding:50px}.big-icon{margin:auto;width:65px;height:65px;border-radius:50%;background:#fff0f0;color:#e32331;font-size:38px;display:flex;align-items:center;justify-content:center}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eaf8fd,#f8fcfe)}.login-card{width:430px;background:#fff;padding:38px;border-radius:15px;border:1px solid #dcebf1;box-shadow:0 18px 60px #0b4d6e1c;text-align:center}.login-brand{display:flex;align-items:center;justify-content:center;gap:12px}.login-logo{width:78px;height:78px;object-fit:contain;border-radius:50%;background:#f8fff4}.login-brand strong{font-size:28px;color:#a71e24;display:block}.login-brand small{display:block;font-size:10px;font-weight:700}.crest.big{width:70px;height:70px}.login-tagline{font-family:Parisienne,cursive;color:#d52323;font-size:22px;margin:15px 0}.login-card h1{margin:25px 0 4px}.login-card>p{color:#6c8193}.login-card form{text-align:left;margin-top:22px}.login-card label{display:block;font-weight:600;margin:14px 0 7px}.login-card input{height:42px;width:100%;border:1px solid #cfdee6;border-radius:6px;padding:0 12px}.demo-box{margin-top:20px;background:#f0f8fb;border-radius:7px;padding:12px;line-height:1.7;font-size:11px;color:#60788d}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr 1fr}.stat-grid{grid-template-columns:1fr 1fr}.upcoming-grid{grid-template-columns:1fr 1fr}.tagline{display:none}}
@media(max-width:800px){.topbar{height:80px;padding:0 12px}.brand-text strong{font-size:22px}.brand-text span,.brand-text small{display:none}.brand-logo{width:50px;height:50px}.top-right .search-mini,.notification{display:none}.sidebar{width:65px}.sidebar nav a{font-size:0;padding:0;justify-content:center}.sidebar nav a.active{padding-left:0}.logout{font-size:0;padding:0;justify-content:center}.motto{display:none}.main{padding:15px 10px}.dashboard-grid,.bottom-grid,.detail-grid{grid-template-columns:1fr}.data-form{grid-template-columns:1fr}.full-field,.form-actions{grid-column:auto}.upcoming-grid{grid-template-columns:1fr}.date-toolbar{flex-wrap:wrap}.apply{margin-left:0}.filter-row{flex-wrap:wrap}.filter-row input[type=search]{min-width:100%}}
.category-summary{margin-bottom:15px}.category-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.category-card{display:flex;gap:10px;align-items:center;border:1px solid #e1edf1;border-radius:8px;padding:12px;background:#fbfdfe}.category-card:hover{border-color:#9bd7e9}.category-number{width:34px;height:34px;border-radius:8px;background:#e3f4fa;color:#087da6;display:flex;align-items:center;justify-content:center;font-weight:700}.category-card-main{flex:1}.category-card-main strong{display:block;font-size:12px}.category-card-main small{display:block;color:#7b8d9d;margin:3px 0}.mini-status{display:flex;gap:12px;font-size:10px;color:#118252}.mini-status span:nth-child(2){color:#bb7900}.category-badge{display:inline-block;background:#e7f5fb;color:#12627f;border-radius:14px;padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap}.group-row td{background:#eef8fb!important;color:#096383;border-top:2px solid #d8edf3;font-size:12px}.group-row td span{float:right;color:#8aa0ad;font-weight:400}.filter-row select{height:38px;border:1px solid #d2dfe6;border-radius:6px;padding:0 10px;background:#fff;color:#294a67}@media(max-width:1100px){.category-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.category-cards{grid-template-columns:1fr}}.inline-edit{display:flex;gap:5px}.inline-edit input{height:32px;border:1px solid #d2dfe6;border-radius:5px;padding:0 6px;max-width:150px}@media(max-width:800px){.inline-edit{flex-direction:column}}
.readonly-field{background:#f1f6f8!important;color:#526d80;cursor:not-allowed}.field-help{display:block;color:#8092a0;font-size:11px;margin-top:5px}

/* Staff-wise assignment and submission dashboard */
.staff-submission-panel { margin-top: 20px; }
.staff-submission-panel .panel-head { align-items: flex-start; }
.staff-submission-panel .panel-head h2 { margin-bottom: 4px; }
.staff-submission-panel .panel-head small { color: #64748b; }
.submission-key { display:flex; gap:14px; font-size:12px; white-space:nowrap; }
.submitted-key { color:#15803d; }
.not-submitted-key { color:#b45309; }
.staff-submission-group { border:1px solid #e2e8f0; border-radius:12px; margin:14px 0; overflow:hidden; background:#fff; }
.staff-submission-head { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:13px 16px; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.staff-submission-head > div:first-child { display:flex; align-items:center; gap:9px; }
.staff-counts { display:flex; gap:8px; flex-wrap:wrap; }
.staff-counts .count { padding:5px 9px; border-radius:999px; font-size:11px; background:#fff; border:1px solid #e2e8f0; }
.staff-counts .submitted { color:#15803d; border-color:#bbf7d0; background:#f0fdf4; }
.staff-counts .not-submitted { color:#b45309; border-color:#fde68a; background:#fffbeb; }
.staff-category-row { display:grid; grid-template-columns:180px 1fr 1fr; gap:15px; padding:14px 16px; border-bottom:1px solid #eef2f7; }
.staff-category-row:last-child { border-bottom:0; }
.staff-category-name { display:flex; flex-direction:column; gap:4px; }
.staff-category-name small { color:#64748b; font-size:11px; }
.staff-category-status { min-width:0; }
.status-heading { font-size:12px; font-weight:700; margin-bottom:8px; }
.submitted-heading { color:#15803d; }
.not-submitted-heading { color:#b45309; }
.task-chip { display:inline-block; padding:5px 8px; border-radius:7px; margin:0 5px 5px 0; font-size:11px; line-height:1.25; }
.submitted-chip { color:#166534; background:#f0fdf4; border:1px solid #bbf7d0; }
.not-submitted-chip { color:#92400e; background:#fffbeb; border:1px solid #fde68a; }
.muted { color:#94a3b8; font-size:11px; }
@media (max-width: 900px) {
  .staff-submission-head { align-items:flex-start; flex-direction:column; }
  .staff-category-row { grid-template-columns:1fr; gap:10px; }
  .submission-key { display:none; }
}
.alert{padding:12px 15px;border-radius:8px;margin:0 0 14px;border:1px solid}.alert.success{background:#edfbf3;color:#087d4d;border-color:#c9eed9}.alert.error{background:#fff0f0;color:#b4232d;border-color:#f5cccc}.field{min-width:0}.field label{display:block;font-weight:600;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;height:42px;border:1px solid #cfdee6;border-radius:6px;padding:0 12px;background:#fff}.field textarea{height:auto;padding:10px}.data-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-actions{grid-column:1/-1;display:flex;gap:10px;margin-top:8px}@media(max-width:700px){.data-form{grid-template-columns:1fr}.form-actions{grid-column:auto}}


/* Reports */
.report-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:15px;padding:12px 15px}.report-periods{display:flex;gap:8px}.report-toolbar .quick{height:38px}.report-toolbar .quick.selected{background:#078cc3;color:#fff;border-color:#078cc3}.report-range{display:flex;flex-direction:column;gap:2px;margin-left:auto;margin-right:5px}.report-range span{font-size:11px;color:#71849a}.report-stat-grid{grid-template-columns:repeat(3,1fr)}.report-staff-group{border:1px solid #dfe9ee;border-radius:10px;overflow:hidden;margin-bottom:15px}.report-staff-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;background:#f4fafc;border-bottom:1px solid #e1edf1}.report-staff-head>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-staff-head small{color:#71849a}.report-counts{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.report-counts span{font-size:10px;padding:5px 8px;border:1px solid #dce8ee;border-radius:14px;background:#fff}.report-counts b{margin-left:3px}.report-counts .r-sub{color:#087d4d;background:#edfbf3;border-color:#c9eed9}.report-counts .r-pending{color:#a86a00;background:#fff8e7;border-color:#f2dfad}.report-task-table{margin:0}.report-task-table th{font-size:10px;padding:9px}.report-task-table td{font-size:11px;padding:9px}.report-task-table .status{font-size:9px;padding:5px 8px}@media(max-width:800px){.report-toolbar{flex-wrap:wrap}.report-range{margin-left:0}.report-stat-grid{grid-template-columns:1fr}.report-staff-head{align-items:flex-start;flex-direction:column}.report-counts{justify-content:flex-start}.report-task-table{min-width:760px}}
