:root{--primary:#2563eb;--primary-dark:#1e3a8a;--success:#16a34a;--warning:#f59e0b;--danger:#dc2626;--bg:#E9F0EB;--surface:#fff;--text:#111827;--muted:#6b7280;--border:#CCD8D0;--r-sm:8px;--r-md:12px;--r-lg:16px;--sidebar:264px;--shadow:0 1px 2px rgba(15,23,42,.03),0 5px 16px rgba(15,23,42,.04)}*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a,button,input,select,textarea{transition:all .16s ease}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(37,99,235,.22)!important;outline-offset:2px}.sidebar{position:fixed;inset:0 auto 0 0;height:100dvh;width:var(--sidebar);padding:0 14px 16px;background:#84CC16;border-right:1px solid #65A30D;z-index:1040;display:flex;flex-direction:column;transition:width .2s ease,transform .2s ease}.sidebar-head{height:76px;display:flex;align-items:center;border-bottom:1px solid #f0f2f4;margin:0 4px 12px;position:relative}.brand{display:flex;gap:11px;align-items:center;color:var(--text);text-decoration:none;padding:4px 5px}.brand-mark{display:grid;place-items:center;min-width:40px;height:40px;background:#FFFFFF;color:#166534;border:2px solid #65A30D;border-radius:11px;font-size:22px;box-shadow:0 2px 6px rgba(22,101,52,.20)}.brand-copy b{display:block;font-size:16px;letter-spacing:.2px;color:#1F2937}.brand-copy small,.user-copy small{display:block;color:var(--muted);font-size:10px;margin-top:1px}.collapse-btn{position:absolute;right:-27px;width:25px;height:25px;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--muted);place-items:center}.sidebar-nav{overflow-y:auto;scrollbar-width:thin;flex:1;min-height:0}.nav-group{margin-bottom:15px}.nav-label{padding:5px 11px;color:#3F6212;text-transform:uppercase;letter-spacing:.08em;font-weight:700;font-size:10px}.side-link{height:42px;color:#1F2937;padding:0 11px;border-radius:9px;display:flex;gap:12px;align-items:center;text-decoration:none;font-weight:500;margin:2px 0}.side-link i{font-size:17px;width:20px;text-align:center}.side-link:hover{background:#D9F99D;color:#1F2937}.side-link.active{background:#166534;color:#FFFFFF;border-radius:9px;font-weight:600;box-shadow:inset 3px 0 0 #D9F99D}
.side-link:focus-visible{outline:2px solid #166534;outline-offset:2px}.avatar{min-width:38px;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#D9F99D;color:#166534;font-weight:700}.app-main{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column;transition:margin .2s ease}.topbar{height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:100;backdrop-filter:blur(12px)}.topbar-left{display:flex;align-items:center;gap:12px}.topbar h1{font-size:19px;margin:3px 0 0;font-weight:650}.breadcrumb-line{display:flex;align-items:center;gap:6px;font-size:10px;color:#9ca3af}.breadcrumb-line a{color:var(--primary);text-decoration:none}.breadcrumb-line i{font-size:8px}.top-actions{display:flex;align-items:center;gap:10px}.current-date{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:12px;white-space:nowrap}.icon-btn{border:1px solid var(--border);background:#fff;color:#4b5563;width:40px;height:40px;border-radius:9px;display:grid;place-items:center;text-decoration:none}.icon-btn:hover{background:#f8fafc;color:var(--primary)}.profile-btn{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:3px}.profile-btn .user-copy{text-align:left}.profile-btn b{display:block;font-size:12px}.profile-btn>i{font-size:10px;color:var(--muted)}.profile-menu{border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 35px rgba(15,23,42,.12);padding:7px;min-width:220px}.profile-menu .dropdown-item{border-radius:7px;padding:9px 10px}.profile-menu .dropdown-item i{width:22px}.content{padding:26px 28px;max-width:1540px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.page-heading h2{font-size:24px;line-height:1.25;margin:0 0 5px;font-weight:700}.page-heading p{color:var(--muted);margin:0;max-width:700px}.card{border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow);background:#fff}.stat-card{padding:20px;height:100%;position:relative;overflow:hidden}.stat-card:after{content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;background:#dbeafe;border-radius:0 4px 4px 0}.stat-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;font-size:19px;background:#eff6ff;color:var(--primary)}.stat-card h2{font-size:27px;margin:13px 0 2px;font-weight:700;letter-spacing:-.03em}.stat-card p{color:var(--muted);margin:0;font-size:12px}.stat-link{position:absolute;inset:0}.section-title{font-size:17px;font-weight:650;margin:0}.btn{border-radius:9px;font-weight:600;min-height:39px;padding:.55rem .9rem}.btn-sm{min-height:32px;padding:.35rem .65rem}.btn-primary{background:var(--primary);border-color:var(--primary)}.btn-primary:hover{background:#1d4ed8}.btn-success{background:var(--success);border-color:var(--success)}.btn-light{background:#fff;border-color:var(--border)}.table{margin:0}.table th{font-size:10px;text-transform:uppercase;letter-spacing:.065em;color:#6b7280;background:#f9fafb;border-bottom:1px solid var(--border);padding:12px 16px;white-space:nowrap}.table td{padding:14px 16px;vertical-align:middle;border-color:#f0f2f4}.table tbody tr:hover{background:#fbfdff}.badge-status{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-weight:600;font-size:10px;white-space:nowrap}.badge-status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.status-completed,.status-fully,.status-active,.status-delivered,.status-sent{background:#dcfce7;color:#15803d}.status-upcoming,.status-pending{background:#fef3c7;color:#a16207}.status-due-today,.status-ongoing{background:#dbeafe;color:#1d4ed8}.status-missed,.status-failed,.status-disabled{background:#fee2e2;color:#b91c1c}.form-label{font-weight:600;font-size:12px;margin-bottom:7px}.required:after{content:' *';color:var(--danger)}.form-control,.form-select{min-height:44px;border-color:#dfe3e8;border-radius:9px;padding:.65rem .78rem;background-color:#fff}.form-control:focus,.form-select:focus{border-color:#93b4ff;box-shadow:0 0 0 3px rgba(37,99,235,.12)}textarea.form-control{min-height:auto}.toast-notice{position:fixed;right:22px;top:90px;z-index:1200;width:min(390px,calc(100vw - 32px));padding:13px 14px;border-radius:12px;background:#ecfdf3;color:#166534;border:1px solid #bbf7d0;box-shadow:0 12px 30px rgba(15,23,42,.1);display:flex;align-items:flex-start;gap:10px;max-height:min(70vh,460px);overflow-y:auto;animation:toastIn .2s ease}
.toast-notice>i{flex:0 0 auto;margin-top:2px;font-size:15px}
.toast-notice span{flex:1;min-width:0;line-height:1.55;overflow-wrap:anywhere}
.toast-notice button{flex:0 0 auto;border:0;background:transparent;color:inherit;padding:0;margin-top:1px;line-height:1}.toast-notice.danger{background:#fff1f2;color:#991b1b;border-color:#fecdd3}.toast-notice.warning{background:#fffbeb;color:#854d0e;border-color:#fde68a}.empty{text-align:center;padding:48px 20px;color:var(--muted)}.empty i{display:grid;place-items:center;margin:0 auto 12px;font-size:24px;width:48px;height:48px;border-radius:12px;color:#94a3b8;background:#f1f5f9}.empty b{display:block;color:#374151;margin-bottom:5px}.progress{height:8px;background:#edf0f3;border-radius:10px}.progress-bar{border-radius:10px}.timeline{border-left:2px solid #e5e7eb;margin-left:9px;padding-left:25px}.timeline-item{position:relative;padding:0 0 25px}.timeline-item:before{content:'';position:absolute;width:13px;height:13px;border-radius:50%;background:#94a3b8;left:-32px;top:3px;border:3px solid white;box-shadow:0 0 0 2px #94a3b8}.timeline-item.completed:before{background:var(--success);box-shadow:0 0 0 2px var(--success)}.timeline-item.missed:before{background:var(--danger);box-shadow:0 0 0 2px var(--danger)}.timeline-item.due-today:before{background:var(--primary);box-shadow:0 0 0 2px var(--primary)}.security-notice{display:flex;justify-content:space-between;padding:12px 14px;border-radius:10px;background:#fffbeb;color:#854d0e;border:1px solid #fde68a;margin-bottom:18px}.mobile-nav,.drawer-backdrop{display:none}body.sidebar-collapsed{--sidebar:78px}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .sidebar .nav-label,body.sidebar-collapsed .side-link span{display:none}body.sidebar-collapsed .side-link{justify-content:center;padding:0}body.sidebar-collapsed .collapse-btn i{transform:rotate(180deg)}@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.current-date,.profile-btn .user-copy,.profile-btn>i{display:none}}
@media(max-width:991px){.sidebar{transform:translateX(-100%);box-shadow:16px 0 40px rgba(15,23,42,.12)}.sidebar.open{transform:none}.drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.32);z-index:1035}.drawer-backdrop.show{display:block}.app-main{margin:0}.topbar{padding:0 16px}.content{padding:20px 16px 90px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:68px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--border);z-index:1030;justify-content:space-around}.mobile-nav a,.mobile-nav button{flex:1;background:none;border:0;text-decoration:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;gap:3px}.mobile-nav i{font-size:19px}.table-responsive.mobile-cards{overflow:visible}.table-responsive.mobile-cards table,.table-responsive.mobile-cards tbody,.table-responsive.mobile-cards tr,.table-responsive.mobile-cards td{display:block;width:100%}.table-responsive.mobile-cards thead{display:none}.table-responsive.mobile-cards tr{border-bottom:1px solid var(--border);padding:14px}.table-responsive.mobile-cards td{border:0;padding:5px 0}.table-responsive.mobile-cards td:before{content:attr(data-label);display:inline-block;min-width:120px;font-size:10px;text-transform:uppercase;color:#9ca3af;font-weight:600}.page-heading h2{font-size:21px}}
@media(max-width:575px){.topbar h1{font-size:17px}.breadcrumb-line{display:none}.content{padding:16px 12px 84px}.page-heading{margin-bottom:16px}.row.g-3{--bs-gutter-x:.75rem}.card{border-radius:12px}.stat-card{padding:16px}.stat-card h2{font-size:23px}.btn:not(.btn-sm){min-height:44px}.toast-notice{top:88px;right:12px}.security-notice{flex-direction:column}.pagination .page-item:not(:first-child):not(:last-child){display:none}}
@media print{.sidebar,.topbar,.mobile-nav,.no-print,.security-notice,.page-heading{display:none!important}.app-main{margin:0}.content{padding:0;max-width:none}.card{box-shadow:none;border-color:#ddd}body{background:#fff;color:#000}.table th{background:#fff;color:#000}}
.form-steps{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px}.form-steps>div{display:flex;align-items:center;gap:9px;color:#9ca3af;position:relative}.form-steps>div:not(:last-child):after{content:'';height:1px;background:#e5e7eb;position:absolute;left:calc(50% + 35px);right:16px}.form-steps span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f3f4f6;font-size:11px}.form-steps b{font-size:11px}.form-steps .active{color:var(--primary)}.form-steps .active span{background:var(--primary);color:#fff}@media(max-width:575px){.form-steps b{display:none}.form-steps>div{justify-content:center}.form-steps>div:not(:last-child):after{left:calc(50% + 22px);right:-22px}}

/* Interaction safety: invisible mobile overlays must never block desktop links. */
.drawer-backdrop{pointer-events:none!important}
.drawer-backdrop.show{pointer-events:auto!important}
.sidebar,.sidebar a,.topbar,.topbar a,.content,.content a,.content button{pointer-events:auto}

/* Compact professional density */
:root{--r-md:10px;--r-lg:12px;--shadow:0 1px 2px rgba(15,23,42,.025),0 3px 10px rgba(15,23,42,.035)}
.content{padding-top:20px;padding-bottom:22px}
.page-heading{margin-bottom:15px}
.page-heading h2{font-size:21px;margin-bottom:3px}
.page-heading p{font-size:12px}
.card{border-radius:12px}
.card.p-4{padding:16px!important}
.card .p-4{padding:15px!important}
.stat-card{padding:15px 16px;min-height:132px}
.stat-card:after{top:14px;bottom:14px;width:2px}
.stat-icon{width:36px;height:36px;border-radius:9px;font-size:16px}
.stat-card h2{font-size:23px;margin:9px 0 1px}
.stat-card p{font-size:11px}
.section-title{font-size:15px}
.row.g-3{--bs-gutter-x:.85rem;--bs-gutter-y:.85rem}
.mb-4{margin-bottom:1rem!important}
.table th{padding:10px 13px;font-size:9px}
.table td{padding:11px 13px;font-size:12px}
.badge-status{padding:4px 8px;font-size:9px}
.btn{min-height:36px;padding:.45rem .78rem;font-size:12px}
.btn-sm{min-height:29px;padding:.28rem .55rem;font-size:10px}
.form-control,.form-select{min-height:40px;padding:.52rem .68rem;font-size:12px}
.form-label{font-size:11px;margin-bottom:5px}
.empty{padding:32px 16px}
.empty i{width:42px;height:42px;font-size:20px;margin-bottom:10px}
.timeline-item{padding-bottom:19px}
.form-steps{padding:10px 12px}
.form-steps span{width:25px;height:25px}
@media(min-width:1440px){.content{max-width:1460px}}
@media(max-width:575px){.card.p-4{padding:14px!important}.card .p-4{padding:14px!important}.stat-card{min-height:116px;padding:13px}.stat-card h2{font-size:21px}.btn:not(.btn-sm){min-height:40px}.page-heading h2{font-size:20px}}

/* IMMUNICARE semantic color system */
:root{
  --primary:#2563eb;
  --primary-dark:#1e3a8a;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  /* The page is the soft green-gray the sidebar is built against, and a card sits on
     it as a white sheet with the palette's green-gray border. */
  --bg:#F3F6F4;
  --border:#CCD8D0;
}
body,.content{background:var(--bg)}
.btn-primary,.progress-bar.bg-primary{background-color:var(--primary);border-color:var(--primary)}
.btn-success,.progress-bar.bg-success{background-color:var(--success);border-color:var(--success)}
.text-primary{color:var(--primary)!important}.text-success{color:var(--success)!important}.text-warning{color:var(--warning)!important}.text-danger{color:var(--danger)!important}
.stat-card:has(.bi-check-circle) .stat-icon,.stat-card:has(.bi-chat-dots) .stat-icon{background:#dcfce7;color:var(--success)}
.stat-card:has(.bi-clock) .stat-icon{background:#fef3c7;color:#b45309}
.stat-card:has(.bi-exclamation-triangle) .stat-icon,.stat-card:has(.bi-shield-exclamation) .stat-icon{background:#fee2e2;color:var(--danger)}
.stat-card:has(.bi-check-circle):after{background:var(--success)}
.stat-card:has(.bi-clock):after{background:var(--warning)}
.stat-card:has(.bi-exclamation-triangle):after,.stat-card:has(.bi-shield-exclamation):after{background:var(--danger)}
.alert-warning,.security-notice{background:#fef3c7;border-color:#fde68a;color:#854d0e}
.alert-danger{background:#fee2e2;border-color:#fecaca;color:#991b1b}
.alert-success{background:#dcfce7;border-color:#bbf7d0;color:#166534}

/* Professional healthcare date picker */
.date-picker-shell{position:relative;width:100%}.date-picker-shell .form-control{height:46px;padding:0 46px 0 13px;background:#fff;cursor:pointer;font-size:13px}.date-picker-shell .form-control:hover{border-color:#c7d2e0}.date-picker-shell .form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.12)}.date-picker-trigger{position:absolute;right:5px;top:5px;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#64748b;display:grid;place-items:center}.date-picker-trigger:hover{background:#eff6ff;color:var(--primary)}
.flatpickr-calendar{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;width:322px;border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.14);padding:10px;background:#fff}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{display:none}.flatpickr-months{height:44px;align-items:center}.flatpickr-months .flatpickr-month{height:44px;color:var(--text);fill:var(--text)}.flatpickr-current-month{font-size:14px;font-weight:600;padding-top:9px}.flatpickr-current-month .flatpickr-monthDropdown-months{font-weight:600;background:#fff;border-radius:7px;padding:3px}.flatpickr-current-month input.cur-year{font-weight:600}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{top:9px;width:34px;height:34px;padding:9px;border-radius:8px;display:grid;place-items:center}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{background:#eff6ff}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:var(--primary)}.flatpickr-weekdays{height:34px}.flatpickr-weekday{font-size:10px!important;text-transform:uppercase;letter-spacing:.05em;color:#6b7280!important;font-weight:600!important}.flatpickr-days{width:300px}.dayContainer{width:300px;min-width:300px;max-width:300px;padding:2px}.flatpickr-day{max-width:40px;height:40px;line-height:40px;border-radius:9px;color:#374151;font-size:12px;border:0}.flatpickr-day:hover,.flatpickr-day:focus{background:#eff6ff;border-color:#eff6ff;color:var(--primary)}.flatpickr-day.today{border:1px solid #93c5fd;color:var(--primary);font-weight:600}.flatpickr-day.today:hover{background:#eff6ff;color:var(--primary)}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected:hover,.flatpickr-day.selected:focus{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay{color:#c2c8d0}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:#d1d5db;background:transparent;cursor:not-allowed}.flatpickr-actions{display:flex;justify-content:flex-end;gap:7px;border-top:1px solid #eef0f2;margin:8px -10px -10px;padding:10px}.flatpickr-actions button{border:1px solid var(--border);border-radius:8px;background:#fff;color:#4b5563;padding:6px 12px;font:600 11px Inter}.flatpickr-actions button:hover{background:#f8fafc}.flatpickr-actions button.primary{background:var(--primary);border-color:var(--primary);color:#fff}.flatpickr-input[readonly]{background:#fff}
@media(max-width:575px){.flatpickr-calendar{width:min(322px,calc(100vw - 24px));padding:8px}.flatpickr-days,.dayContainer{width:100%;min-width:100%;max-width:100%}.flatpickr-day{max-width:14.2857%;height:42px;line-height:42px}.date-picker-shell .form-control{height:46px;font-size:14px}}

/* Professional confirmation and form modals */
.modal-backdrop.show{opacity:.38}.modal-content{border:1px solid var(--border);border-radius:15px;box-shadow:0 24px 70px rgba(15,23,42,.18);overflow:hidden}.modal-header{padding:17px 19px;border-bottom:1px solid #eef0f2;align-items:flex-start}.modal-header .modal-title{font-size:17px;font-weight:650}.modal-header p{font-size:11px;margin-top:3px}.modal-body{padding:19px}.modal-footer{padding:12px 19px;background:#fafbfc;border-top:1px solid #eef0f2}.modal .btn-close{width:28px;height:28px;padding:0;margin:0;border-radius:8px}.modal .btn-close:hover{background-color:#f3f4f6}.dropdown-menu{border:1px solid var(--border);border-radius:10px;padding:6px;box-shadow:0 12px 30px rgba(15,23,42,.12)}.dropdown-item{border-radius:7px;padding:8px 10px;font-size:12px}.dropdown-item:hover{background:#f3f6fa}.dropdown-item.text-danger:hover{background:#fff1f2;color:var(--danger)!important}@media(max-width:575px){.modal-dialog{margin:12px}.modal-dialog-centered{min-height:calc(100% - 24px)}.modal-body{padding:16px}.modal-footer{padding:11px 16px}.modal-footer .btn{flex:1}}
.action-menu-btn{width:34px;padding:0;display:inline-grid;place-items:center}.user-actions-menu{min-width:205px}.user-actions-menu .dropdown-item{display:flex;align-items:center;gap:9px;padding:9px 10px}.user-actions-menu .dropdown-item i{width:18px;text-align:center;font-size:14px}.user-actions-menu .dropdown-item.disabled{opacity:.45}.dropdown-help{display:block;color:#9ca3af;padding:5px 10px 3px;font-size:9px}
.approval-modal .modal-body{padding:26px 24px 17px}.approval-modal .modal-title{font-size:18px;font-weight:650;margin-bottom:7px}.approval-modal .modal-body p{font-size:12px;line-height:1.6;margin:0}.approval-modal .modal-footer{padding:12px 20px 17px;background:#fff;border:0}.approval-icon{width:48px;height:48px;border-radius:14px;margin:0 auto 14px;display:grid;place-items:center;font-size:21px;background:#eff6ff;color:var(--primary)}.approval-icon.success{background:#dcfce7;color:var(--success)}.approval-icon.danger{background:#fee2e2;color:var(--danger)}.approval-modal .modal-footer .btn{min-width:105px}
.address-section-title{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#f8fafc;border:1px solid var(--border);border-radius:10px}.address-section-title>i{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:var(--primary);font-size:16px}.address-section-title b{display:block;font-size:12px}.address-section-title small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.location-select:disabled{background-color:#f8fafc;color:#9ca3af;cursor:not-allowed}.location-select:not(:disabled){cursor:pointer}.form-text{font-size:9px;color:#9ca3af}
.users-table-card,.users-table-responsive{overflow:visible!important}.users-table-card{position:relative;z-index:2}.users-table-card .dropdown{position:relative}.users-table-card .dropdown-menu{z-index:1080;min-width:210px;max-height:none;overflow:visible;inset:auto 0 auto auto!important;top:calc(100% + 6px)!important;transform:none!important}.users-table-card tbody tr:last-child td{padding-bottom:16px}@media(max-width:767px){.users-table-responsive{overflow-x:auto!important}}
.schedule-table{width:100%;min-width:0;table-layout:fixed}.schedule-table th,.schedule-table td{padding-left:10px;padding-right:10px}.schedule-table th:nth-child(1),.schedule-table td:nth-child(1){width:7%}.schedule-table th:nth-child(2),.schedule-table td:nth-child(2){width:24%}.schedule-table th:nth-child(3),.schedule-table td:nth-child(3){width:11%}.schedule-table th:nth-child(4),.schedule-table td:nth-child(4){width:19%}.schedule-table th:nth-child(5),.schedule-table td:nth-child(5){width:10%;white-space:nowrap}.schedule-table th:nth-child(6),.schedule-table td:nth-child(6){width:9%;text-align:center;white-space:nowrap}.schedule-table th:last-child,.schedule-table td:last-child{width:20%;background:#fff}.schedule-table th:last-child{background:#f9fafb}.schedule-table tbody tr:hover td:last-child{background:#fbfdff}.schedule-actions{display:flex;justify-content:flex-end;gap:4px;white-space:nowrap}.schedule-actions .btn{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:.32rem .45rem;font-size:11px}@media(max-width:767px){.schedule-table{min-width:760px}.schedule-table-card .table-responsive{overflow-x:auto!important}}@media(max-width:575px){.schedule-actions .btn span{display:none}.schedule-actions .btn{width:32px;justify-content:center;padding:.3rem}}
.notification-shell{position:relative}.notification-bell{position:relative}.notification-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--danger);color:#fff;border:2px solid #fff;font-size:9px;font-weight:700;line-height:14px;text-align:center}.notification-panel{display:none;position:absolute;right:0;top:48px;width:min(390px,calc(100vw - 24px));background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,.16);overflow:hidden;z-index:1150}.notification-panel.show{display:block}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid var(--border)}.notification-panel-head b{display:block;font-size:14px}.notification-panel-head small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.notification-panel-head button{border:0;background:transparent;color:var(--primary);font-size:10px;font-weight:600}.notification-list{max-height:390px;overflow-y:auto}.notification-item{position:relative;border-bottom:1px solid #f0f2f4}.notification-item.unread{background:#f5f9ff}.notification-item.unread:before{content:'';position:absolute;left:6px;top:22px;width:6px;height:6px;border-radius:50%;background:var(--primary)}.notification-open{width:100%;display:flex;gap:10px;text-align:left;border:0;background:transparent;padding:13px 72px 13px 16px;color:var(--text)}.notification-open:hover{background:rgba(37,99,235,.04)}.notification-item-icon{width:34px;height:34px;min-width:34px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:var(--primary)}.notification-open b,.notification-open small,.notification-open time{display:block}.notification-open b{font-size:11px;margin-bottom:3px}.notification-open small{font-size:10px;color:var(--muted);line-height:1.4}.notification-open time{font-size:9px;color:#9ca3af;margin-top:4px}.notification-actions{position:absolute;right:10px;top:14px;display:flex;gap:3px}.notification-actions button{width:27px;height:27px;border:0;border-radius:7px;background:#fff;color:#6b7280}.notification-actions button:hover{background:#eaf2ff;color:var(--primary)}.notification-actions button:last-child:hover{background:#fff1f2;color:var(--danger)}.notification-view-all{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px;color:var(--primary);font-size:11px;font-weight:600;text-decoration:none;border-top:1px solid var(--border)}.notification-view-all:hover{background:#f8fafc}.notification-loading,.notification-empty{padding:34px 18px;text-align:center;color:var(--muted);font-size:11px}.notification-empty i,.notification-empty b,.notification-empty small{display:block}.notification-empty i{font-size:22px;margin-bottom:8px}.notification-empty b{color:#374151}.notification-empty small{margin-top:3px}
/* A submission waiting for a decision is not a message: it carries no read state and
   leaves the bell when it is decided, so it is tinted like the warning it is, labelled
   instead of offering Mark as read, and given room for that label. */
.notification-item.pending{background:#fffbeb}
.notification-item.pending:before{background:#f59e0b}
.notification-item.pending .notification-item-icon{background:#fef3c7;color:#b45309}
.notification-item.pending .notification-open{padding-right:126px}
.notification-chip{display:inline-block;padding:3px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:9px;font-weight:700;white-space:nowrap}
/* A waiting submission the reviewer has already looked at keeps its place in the list but
   stops announcing itself: the amber tint goes and the chip turns neutral, the way a read
   message does. Nothing about the submission itself changes - it is still waiting. */
.notification-item.pending.read{background:#fff}
.notification-item.pending.read:before{display:none}
.notification-item.pending.read .notification-item-icon{background:#f1f5f9;color:#94a3b8}
.notification-item.pending.read .notification-chip{background:#f1f5f9;color:#475569}
.sidebar .brand{width:100%;justify-content:flex-start}/* The tile is painted by the <img> below, cropped to the emblem. It used to carry the
   same file as a 145% background, which the transparent PNG let show through under the
   shield - the logo's own wordmark peeking out along the bottom of the tile. */
.sidebar .brand-mark{order:1;margin:0;background:#fff;border-color:var(--side-line);box-shadow:0 2px 8px rgba(16,42,86,.10)}.sidebar .brand-copy{order:2}.sidebar .brand-mark i{display:none}body.sidebar-collapsed .sidebar .brand-mark{margin:0 auto}
/* The sign-in page styles the whole card itself, in login.php, so nothing here overrode
   or hid parts of it: the earlier rules that concealed the supporting text and drew the
   button's label with a pseudo-element are gone with the design they belonged to. */
.modal-header .btn-close{margin:0 0 0 auto!important;align-self:center;flex:0 0 28px;background-position:center;background-size:12px}
.schedule-filter{background:#fff}.schedule-filter .form-control,.schedule-filter .form-select{min-height:40px}.filter-search-icon{position:absolute;left:12px;top:11px;color:#9ca3af;z-index:2}.filter-search-input{padding-left:36px}
.immunization-records-table{width:100%;min-width:0;table-layout:fixed}.immunization-records-table th,.immunization-records-table td{padding-left:10px;padding-right:10px}/* The nine columns of the record list: child, barangay, vaccine, scheduled,
   administered, next appointment, status, remarks, action. The barangay column was
   added so the barangay and health-center filters can be checked against the row. */
.immunization-records-table th:nth-child(1),.immunization-records-table td:nth-child(1){width:17%}
.immunization-records-table th:nth-child(2),.immunization-records-table td:nth-child(2){width:8%}
.immunization-records-table th:nth-child(3),.immunization-records-table td:nth-child(3){width:14%}
.immunization-records-table th:nth-child(4),.immunization-records-table td:nth-child(4){width:11%}
.immunization-records-table th:nth-child(5),.immunization-records-table td:nth-child(5){width:13%}
.immunization-records-table th:nth-child(6),.immunization-records-table td:nth-child(6){width:10%}
.immunization-records-table th:nth-child(7),.immunization-records-table td:nth-child(7){width:11%}
.immunization-records-table th:nth-child(8),.immunization-records-table td:nth-child(8){width:10%}
.immunization-records-table th:last-child,.immunization-records-table td:last-child{width:6%;background:inherit}
.immunization-records-table .record-remarks{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.immunization-records-table{min-width:1180px}
.guardian-children{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table td:last-child .btn{white-space:nowrap}
.report-option-card{display:flex}.report-option-card h2{font-size:25px;margin:2px 0}.report-option-card p{font-size:11px;color:var(--muted);margin:12px 0}.report-print-header h3{font-size:18px;margin:12px 0 5px}.report-logo{width:48px;height:48px;object-fit:cover;border-radius:10px}.report-table{width:100%!important;min-width:0!important;table-layout:fixed}.report-table th,.report-table td{font-size:9px;padding:8px 6px;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;vertical-align:top}.report-table .badge-status{font-size:8px;padding:4px 6px;white-space:normal}@media(max-width:767px){.report-table th,.report-table td{font-size:7px;padding:5px 3px}.report-table .badge-status{font-size:7px;padding:3px 4px}.report-print-header h2{font-size:20px}.report-print-header h3{font-size:15px}}@media print{@page{size:A4 landscape;margin:10mm}.report-sheet{border:0!important}.report-table{min-width:0!important;width:100%;table-layout:fixed}.report-table th,.report-table td{font-size:7px;padding:4px 3px}.report-print-header{padding:0 0 10px!important}.report-logo{width:34px;height:34px}.report-option-card,.content>.row.mb-4{display:none!important}}
/* The report cards share one line: six across on a wide screen, three on a tablet,
   two on a phone. They tighten only where all six fit side by side. */
.report-options>.col-6{display:flex;min-width:0}
@media(min-width:1200px){
.report-options .report-option-card{padding:12px!important;min-width:0}
.report-options .report-option-card .stat-icon{width:26px;height:26px;min-width:26px;border-radius:7px;font-size:13px}
.report-options .report-option-card .d-flex{align-items:center!important;gap:7px!important}
/* The count sits above its name in every report card, so the six figures read down the
   row at one glance instead of being scattered between the icons and the labels. */
.report-options .report-option-card h2{margin:0}
.report-options .report-option-card small{display:block;font-size:9px;line-height:1.3}
.report-options .report-option-card h2{font-size:20px;line-height:1.15}
.report-options .report-option-card p{font-size:9px;line-height:1.5;margin:9px 0}
.report-options .report-option-card .btn{min-height:28px;padding:.3rem .4rem;font-size:10px;white-space:normal}
}
.status-fully-immunized{background:#dcfce7;color:#15803d}.status-fully-immunized:before{background:currentColor}
.status-completely-immunized{background:#ccfbf1;color:#0f766e}.status-completely-immunized:before{background:currentColor}
.report-filter-form>div:has(button[type="submit"]),.card.no-print form:has(input[name="report"])>.d-flex:last-child{display:none!important}
.sms-secret-mask{min-width:155px;justify-content:center;font-family:monospace;color:#475569}.sms-switch{min-height:44px;display:flex;align-items:center;gap:8px;margin:0;padding-left:46px}.gateway-status{margin:0}
.gateway-keepalive summary{cursor:pointer;color:#0F766E}
.gateway-keepalive summary:hover{color:#0B5F5A}
.gateway-keepalive ol{padding-left:1.15rem}
.gateway-keepalive li{margin-bottom:3px}.gateway-status>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eef0f2}.gateway-status dt{color:var(--muted);font-size:11px;font-weight:500}.gateway-status dd{margin:0;text-align:right;font-weight:600;font-size:11px}
.sms-log-table{width:100%;min-width:0;table-layout:fixed}.sms-log-table th,.sms-log-table td{font-size:9px;padding:8px 6px;white-space:normal;overflow-wrap:anywhere}.sms-log-table th:nth-child(1),.sms-log-table td:nth-child(1){width:14%}.sms-log-table th:nth-child(2),.sms-log-table td:nth-child(2){width:15%}.sms-log-table th:nth-child(3),.sms-log-table td:nth-child(3){width:10%}.sms-log-table th:nth-child(4),.sms-log-table td:nth-child(4){width:16%}.sms-log-table th:nth-child(5),.sms-log-table td:nth-child(5){width:20%}.sms-log-table th:nth-child(6),.sms-log-table td:nth-child(6){width:8%}.sms-log-table th:nth-child(7),.sms-log-table td:nth-child(7){width:10%}.sms-log-table th:nth-child(8),.sms-log-table td:nth-child(8){width:7%}.sms-message-preview{display:-webkit-box;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.sms-log-table .badge-status{font-size:8px;padding:4px 6px}.status-skipped{background:#f1f5f9;color:#64748b}@media(max-width:767px){.sms-log-table{min-width:850px}}

/* Compact sidebar "Search Anything" */
.sidebar-search{position:relative;margin:0 4px 12px}
.sidebar-search>i{position:absolute;left:11px;top:12px;color:#3F6212;font-size:13px}
.sidebar-search input{width:100%;height:38px;border:1px solid #65A30D;border-radius:9px;background:#F7FEE7;padding:0 52px 0 32px;font-size:12px;color:#1F2937}
.sidebar-search input::placeholder{color:#4B5563}
.sidebar-search input:focus{border-color:#166534;background:#fff;box-shadow:0 0 0 3px rgba(22,101,52,.24);outline:none}
.sidebar-search kbd{position:absolute;right:8px;top:9px;border:1px solid #65A30D;background:#fff;color:#3F6212;font:9px Inter;padding:3px 5px;border-radius:5px}
.nav-search-results{position:absolute;top:calc(100% + 6px);left:0;width:min(370px,calc(100vw - 34px));max-height:min(430px,72vh);overflow-y:auto;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.16);z-index:1150;padding:5px}
.nav-search-item{display:flex;gap:10px;align-items:center;padding:8px 9px;border-radius:8px;text-decoration:none;color:var(--text)}
.nav-search-item:hover{background:#f3f6fa}
.nav-search-item.active{background:#eff6ff}
.nav-search-icon{width:31px;height:31px;min-width:31px;display:grid;place-items:center;border-radius:8px;background:#f1f5f9;color:#475569;font-size:14px}
.nav-search-item.active .nav-search-icon{background:#dbeafe;color:var(--primary)}
.nav-search-copy{min-width:0}
.nav-search-copy b{display:block;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-search-copy small{display:block;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-search-empty{padding:18px 14px;text-align:center;color:var(--muted)}
.nav-search-empty i{display:block;font-size:19px;margin-bottom:7px}
.nav-search-empty b,.nav-search-empty small{display:block}
.nav-search-empty b{color:#374151;font-size:12px}
.nav-search-empty small{font-size:10px;margin-top:2px}
body.sidebar-collapsed .sidebar-search{height:42px;margin:0 4px 12px;display:grid;place-items:center;border:1px solid #65A30D;border-radius:9px;background:#F7FEE7;cursor:pointer}
body.sidebar-collapsed .sidebar-search:hover{background:#D9F99D;border-color:#65A30D}
body.sidebar-collapsed .sidebar-search input,body.sidebar-collapsed .sidebar-search kbd,body.sidebar-collapsed .sidebar-search>i,body.sidebar-collapsed .nav-search-results{display:none}
body.sidebar-collapsed .sidebar-search:after{content:'\F52A';font-family:'bootstrap-icons';color:#3F6212;font-size:16px}

/* Settings module: persistent two-column layout */
.settings-layout{display:grid;grid-template-columns:232px minmax(0,1fr);gap:18px;align-items:start}
.settings-sidebar{position:sticky;top:92px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:9px;box-shadow:var(--shadow)}
.settings-sidebar-head{display:flex;align-items:center;gap:9px;padding:7px 9px 10px;border-bottom:1px solid #f0f2f4;margin-bottom:7px}
.settings-sidebar-head>i{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:#eff6ff;color:var(--primary);font-size:15px}
.settings-sidebar-head b{display:block;font-size:13px;color:var(--primary-dark);letter-spacing:.02em}
.settings-sidebar-head small{display:block;color:var(--muted);font-size:10px}
.settings-sidebar .nav-label{padding:9px 10px 3px}
.settings-link{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:8px;color:#4b5563;font-size:12px;font-weight:500;text-decoration:none;margin:1px 0}
.settings-link>i{width:18px;text-align:center;font-size:14px;color:#6b7280}
.settings-link:hover{background:#f3f6fa;color:var(--primary)}
.settings-link:hover>i{color:var(--primary)}
.settings-link.active{background:#eff6ff;color:var(--primary);font-weight:600}
.settings-link.active>i{color:var(--primary)}
.settings-main{min-width:0}
.settings-main>form>div[id],.settings-main>div[id]{scroll-margin-top:92px}
.settings-main :target{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.settings-subhead{display:flex;align-items:center;gap:10px;margin:20px 0 12px;padding-bottom:9px;border-bottom:1px solid #f0f2f4}
.settings-subhead:first-child{margin-top:0}
.settings-subhead>i{width:32px;height:32px;min-width:32px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:var(--primary);font-size:15px}
.settings-subhead b{display:block;font-size:12px}
.settings-subhead small{display:block;color:var(--muted);font-size:10px;margin-top:1px}
.settings-facts{margin:0}
.settings-facts>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #f0f2f4}
.settings-facts>div:last-child{border-bottom:0}
.settings-facts dt{color:var(--muted);font-size:11px;font-weight:500;margin:0}
.settings-facts dd{margin:0;font-size:11px;font-weight:600;text-align:right;overflow-wrap:anywhere}
/* The gateway panels sit in the narrower of the two settings columns, so the label of a
   fact, a device identifier or a sentence the provider returned wraps inside its row
   instead of widening the card past the column it lives in. */
.settings-facts dt,.gateway-status dt,.gateway-status dd{min-width:0;overflow-wrap:anywhere}
/* The four panels that report on the gateway sit in the narrower of the two settings
   columns. There a fact's label and its value cannot share one line without each of them
   wrapping into a stack of two-word lines, so inside that column every row reads
   label-over-value; everywhere else on the page the two stay side by side. */
.settings-sms-panels .settings-facts>div,.settings-sms-panels .gateway-status>div{display:block}
.settings-sms-panels .settings-facts dd,.settings-sms-panels .gateway-status dd{margin-top:3px;text-align:left}
/* A status badge does not break across lines, so in this column the card header wraps and
   the badge takes a line of its own, right-aligned, instead of hanging out of the card. */
.settings-sms-panels .card>.d-flex{flex-wrap:wrap}
.role-panel{border:1px solid var(--border);border-radius:10px;padding:14px;height:100%;background:#fbfcfe}
.role-panel h3{font-size:13px;margin:0 0 4px;font-weight:650}
.role-panel p{color:var(--muted);font-size:11px;margin:0 0 10px}
.role-panel ul{margin:0;padding-left:17px;color:#4b5563;font-size:11px;line-height:1.7}
.log-device{display:block;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.status-restored{background:#dbeafe;color:#1d4ed8}

/* Children archive module */
.child-actions{display:flex;justify-content:flex-end;gap:4px;white-space:nowrap}
.child-actions .btn{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:.32rem .5rem;font-size:11px}
.child-actions .btn:disabled{opacity:.45}
.archive-banner{display:flex;gap:13px;align-items:flex-start;padding:14px 16px;margin-bottom:14px;border:1px solid #fde68a;background:#fffbeb;border-radius:12px;color:#854d0e}
.archive-banner>i{font-size:20px;line-height:1.2}
.archive-banner b{display:block;color:#78350f;font-size:13px}
.archive-banner p{font-size:12px;margin:4px 0 2px}
.archive-banner small{font-size:10px}
.archive-years{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.archive-year-card{display:block;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow);text-decoration:none;color:var(--text)}
.archive-year-card:hover{border-color:#bfdbfe;background:#f8fbff}
.archive-year-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#eff6ff;color:var(--primary);font-size:16px;margin-bottom:11px}
.archive-year-card b{display:block;font-size:21px;font-weight:700;color:var(--primary-dark);letter-spacing:-.02em}
.archive-year-card small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
@media(max-width:575px){.archive-banner{flex-direction:column}.child-actions .btn span{display:none}.child-actions .btn{width:32px;justify-content:center;padding:.3rem}}
/* Register Child wizard: one step is visible at a time. */
[data-child-wizard] .form-step{display:none}
[data-child-wizard] .form-step.is-active{display:block;animation:stepFade .18s ease}
@keyframes stepFade{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.form-steps[data-wizard-steps]>div{cursor:default}
.form-steps>div.done{color:var(--success)}
.form-steps>div.done span{background:var(--success);color:#fff}
/* Action buttons that sit on the same line as form fields: the row is the height of an input, so
   the buttons centre on the dropdowns and text inputs beside them, and a helper line under a
   neighbouring field can no longer push them out of line. Paired with a spacer label - a label
   held invisible - which keeps the space of a real field label above the buttons. */
.field-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;min-height:40px}
.wizard-generating{max-width:560px;margin:0 auto}

@media(max-width:991px){
 .settings-layout{grid-template-columns:1fr;gap:12px}
 .settings-sidebar{position:static;display:flex;flex-wrap:nowrap;align-items:center;gap:5px;overflow-x:auto;padding:7px;scrollbar-width:thin}
 .settings-sidebar-head{display:none}
 .settings-sidebar nav{display:flex;gap:5px}
 .settings-sidebar .nav-label{display:none}
 .settings-link{height:33px;white-space:nowrap;border:1px solid var(--border);border-radius:999px;padding:0 12px}
 .settings-link.active{border-color:rgba(0,121,107,.45)}
}

/* Validation workflow: the statuses a submission moves through, plus the compact
   icon used by the Pending Validation section on the dashboard. */
.status-pending-validation{background:#fef3c7;color:#a16207}
/* An appointment that was moved: the status still follows the date, and this badge
   says the date is not the one the schedule was generated with. */
.status-rescheduled{background:#e0e7ff;color:#3730a3}
.status-approved{background:#dcfce7;color:#15803d}
.status-rejected{background:#fee2e2;color:#b91c1c}
.stat-icon.warning-icon{background:#fef3c7;color:#b45309}
.review-diff-table th{width:33%}
.review-diff-table td{font-size:12px}

/* --- DOH Target Client List (FIC / CIC annual reports) -------------------------
   These two reports print as the official DOH form, so they use their own compact,
   fully bordered table with gray grouped headings rather than the dashboard table
   style. The heading row repeats on every printed page (thead display:table-header
   -group) and part 2 starts on a fresh sheet. */
.tcl-sheet{--tcl-border:#111827;--tcl-head:#d1d5db;--tcl-sub:#e5e7eb}
.tcl-sheet .tcl-header{padding:16px;text-align:center}
.tcl-document-title{font-size:15px;letter-spacing:.08em;margin:8px 0 2px;text-transform:uppercase}
.tcl-report-name{font-size:12px;margin:0 0 2px}
.tcl-scope{font-size:11px;color:#374151;margin:0 0 2px}
.tcl-part{padding:0 16px 16px}
.tcl-part-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;border-bottom:2px solid #111827;padding-bottom:4px;margin:0 0 8px}
.tcl-part-title small{display:block;font-size:9px;text-transform:none;letter-spacing:0;color:#6b7280;font-weight:500}
.tcl-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:7px;line-height:1.25}
.tcl-table th,.tcl-table td{border:1px solid var(--tcl-border);padding:2px 3px;vertical-align:middle;overflow-wrap:anywhere;word-break:break-word}
.tcl-table thead{display:table-header-group}
.tcl-table tr{break-inside:avoid;page-break-inside:avoid}
.tcl-table th{background:var(--tcl-head);font-weight:700;text-align:center;font-size:6.5px;text-transform:uppercase;letter-spacing:.02em}
.tcl-table .tcl-sub{background:var(--tcl-sub);font-weight:600;text-transform:none;font-size:6px}
.tcl-table .tcl-center{text-align:center}
.tcl-table .tcl-flag{font-weight:700;font-size:9px}
.tcl-table .tcl-missed{color:#b91c1c;font-weight:700}
.tcl-table .tcl-pending{color:#b45309;font-weight:700}
.tcl-table .tcl-mark{color:#b45309;font-weight:700}
.tcl-table .tcl-classification{font-size:6.5px;font-weight:600}
.tcl-table .tcl-remarks{font-size:6.5px}
.tcl-code{display:block;font-size:6px;color:#6b7280}
.tcl-legend,.tcl-notes{font-size:9px;color:#374151;padding:8px 16px;line-height:1.5}
.tcl-notes{border-top:1px solid #d1d5db;background:#f9fafb}
.tcl-c-no{width:1.6%}.tcl-c-name{width:11%}.tcl-c-remarks{width:12%}.tcl-c-flag{width:2.2%}.tcl-c-dose{width:2.6%}
.tcl-c-reg{width:5%}.tcl-c-serial{width:6%}.tcl-c-sex{width:4%}.tcl-c-dob{width:5%}.tcl-c-mother{width:11%}.tcl-c-address{width:13%}.tcl-c-barangay{width:7%}.tcl-c-cpab{width:11.6%}.tcl-c-cpabcheck{width:6%}
/* Part 2 carries the columns the annual FIC and CIC reports are read for: the answer
   itself, the doses behind it, and the dates that decide it. Part 1 has room for the
   barangay the report is filtered by. */
.tcl-c-classification{width:5.4%}.tcl-c-doses{width:5.2%}.tcl-c-age{width:3.2%}.tcl-c-completion{width:5%}.tcl-c-birthday{width:4.8%}.tcl-c-late{width:2.8%}
.tcl-table-1 .tcl-c-name{width:10%}
.tcl-table-2 .tcl-c-name{width:8.4%}
@media(max-width:1200px){.tcl-part{overflow-x:auto}.tcl-table{min-width:900px}}
@media print{
    .tcl-sheet{border:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .tcl-sheet .tcl-header{padding:0 0 6px}
    .tcl-sheet .report-logo{width:26px;height:26px}
    .tcl-document-title{font-size:11px;margin:4px 0 1px}
    .tcl-report-name,.tcl-scope{font-size:8px}
    .tcl-part{padding:0}
    .tcl-part-title{font-size:9px;margin-bottom:4px}
    .tcl-table{font-size:6px;min-width:0}
    .tcl-table th,.tcl-table td{padding:1px 2px}
    .tcl-table th{font-size:5.5px}
    .tcl-table .tcl-sub{font-size:5.2px}
    .tcl-table .tcl-classification,.tcl-table .tcl-remarks{font-size:5.4px}
    .tcl-page-break{break-before:page;page-break-before:always}
    .tcl-legend,.tcl-notes{font-size:6.5px;padding:4px 0}
}

/* --- Child Immunization Record (DOH form) --------------------------------------
   The single-child sheet a parent keeps: the printed layout of the Philippine
   Child Immunization Record. It is a COLOURED document, so the frame, the panels
   and the row rules are printed exactly as they appear on screen
   (print-color-adjust) instead of being stripped by the browser, and every
   measurement is a percentage or a page unit of its own so the whole sheet fits
   one A4 landscape page with no cut-off column. The vaccination table is a table
   of tables: one dose cell per dose of the vaccine on that row, divided by the
   strong vertical rules of the paper form. */
.cir-sheet{--cir-cyan:#00b0f0;--cir-blue:#1f4e79;--cir-green:#9ad04f;--cir-green-soft:#dcefc6;--cir-yellow:#ffd700}
/* A record longer than one form is printed as several complete sheets: page 1, page 2, ...
   each with the brand panel and the child's details. On screen they stack with a gap; on
   paper every sheet after the first starts on a new page (see the print block below). */
.cir-sheet + .cir-sheet{margin-top:16px}
.cir-doc{display:grid;grid-template-columns:20% 1fr;border:4px solid var(--cir-cyan);background:#fff}
/* The panel is the paper form's: the light band at the top carries the campaign badge, the
   green washes in lower down behind the health center's own fields. */
.cir-brand{display:flex;flex-direction:column;gap:10px;padding:9px;background:linear-gradient(170deg,#fff 0,var(--cir-green-soft) 42%,#b6e08a 100%);border-right:3px solid var(--cir-cyan)}
/* The Todo Ligtas campaign badge the paper form carries at the head of its panel, and the
   only mark the panel carries there. The file is the campaign's own transparent PNG, so it
   sits on the green panel without a frame; it is the widest thing in the panel, as it is on
   the paper form, and align-self keeps it centred now that it is a direct child of the
   panel rather than of a wrapper. */
.cir-badge{display:block;width:100%;max-width:170px;height:auto;margin-top:2px;align-self:center}
/* The campaign slogan under the badge, set the way the paper form sets it: script in gold
   with a white outline. The font stack is the scripts a Philippine health center's Windows
   machine has; a machine without one still prints the words, in whatever cursive it has. */
.cir-slogan{margin:-2px 0 2px;text-align:center;font-family:'Brush Script MT','Segoe Script','Lucida Handwriting',cursive;font-size:22px;font-weight:400;line-height:1.1;color:#e8a400;text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 1px 2px rgba(0,0,0,.18)}
.cir-left-fields{display:flex;flex-direction:column;gap:13px;margin:8px 0 0}
.cir-left-fields>div{display:flex;flex-direction:column;gap:3px}
.cir-left-fields dt{order:2;text-align:center;font-size:9.5px;font-weight:700;letter-spacing:.05em;color:#1f3d1f}
.cir-left-fields dd{order:1;margin:0;min-height:32px;padding:4px 6px;background:#fff;border-radius:4px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:10px;font-weight:600;overflow-wrap:anywhere}
.cir-doh{margin-top:auto;display:flex;align-items:center;gap:7px;padding-top:10px}
.cir-doh-mark{font-size:26px;font-weight:800;letter-spacing:.06em;line-height:1;color:#1f7a1f}
.cir-doh small{font-size:7.5px;line-height:1.3;color:#1f3d1f}
.cir-main{padding:0 10px 8px;min-width:0}
.cir-title{background:linear-gradient(#e8f6ff,#fff);padding:6px 4px 0}
.cir-title h2{margin:0;text-align:center;font-size:30px;font-weight:800;letter-spacing:.02em;line-height:1.05;color:#1b3a8f;text-shadow:2px 0 0 #fff,-2px 0 0 #fff,0 2px 0 #fff,0 -2px 0 #fff,2px 2px 0 #fff,-2px -2px 0 #fff}
.cir-divider{height:5px;margin:6px 0 10px;background:var(--cir-yellow);border-top:1px solid #d4a900;border-bottom:1px solid #d4a900}
/* The details sit on the form's pale blue wash, which fades in from the white of the
   title band; the ruled lines and their captions stay black on it. */
.cir-identity{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;padding:0 4px 9px;background:linear-gradient(100deg,#fff 0,#eef6fd 55%,#dbeafe 100%)}
/* The address is ruled across the whole block, under both columns, as the paper form does. */
.cir-field-wide{grid-column:1 / -1}
.cir-identity-col{display:flex;flex-direction:column;gap:8px;min-width:0}
.cir-field{display:flex;align-items:flex-end;gap:6px;min-height:18px;border-bottom:1px solid #6b7280;padding-bottom:1px}
/* The form's height / weight / sex line: three captioned blanks side by side. Each one
   puts its caption above its value, so a narrow sheet wraps the three onto a second
   line instead of squeezing a value into a column one character wide - which is what a
   caption and a value sharing one line does as soon as the caption cannot shrink. */
.cir-field-split{gap:8px;border-bottom:0;flex-wrap:wrap}
.cir-field-split .cir-half{display:flex;flex-direction:column;align-items:stretch;gap:0;flex:1 1 66px;min-width:66px;border-bottom:1px solid #6b7280;padding-bottom:1px}
.cir-field-split .cir-label{white-space:normal;line-height:1.15}
.cir-field .cir-value{min-width:2.5ch}
.cir-label{font-size:8.5px;font-weight:700;letter-spacing:.03em;white-space:nowrap;color:#111827}
.cir-value{flex:1;min-width:0;font-size:11.5px;font-weight:600;text-align:left;color:#0f172a;overflow-wrap:anywhere}
.cir-sex{flex:0 0 auto;display:flex;align-items:center;gap:6px}
.cir-radio{width:15px;height:15px;border:1.5px solid #111827;border-radius:50%;display:grid;place-items:center;font-size:8.5px;font-weight:700;line-height:1;color:#111827}
.cir-radio.is-on{background:#111827;color:#fff}
.cir-table-wrap{overflow-x:auto}
.cir-table{width:100%;border-collapse:collapse;table-layout:fixed;border:2px solid var(--cir-blue)}
.cir-table thead{display:table-header-group}
.cir-table tr{break-inside:avoid;page-break-inside:avoid}
/* The first row of the table head names the child whose record this is. A table head prints
   again at the top of every sheet the table continues onto, so a continuation page can
   never be read without knowing whose doses are listed on it. */
.cir-table thead .cir-table-caption th{padding:2px 3px;background:#eff6ff;font-size:8px;font-weight:700;letter-spacing:.06em;text-align:center;text-transform:uppercase;color:#1b3a8f}
.cir-table-caption small{display:block;font-size:7px;font-weight:600;letter-spacing:0;text-transform:none;color:#374151}
/* The column labels sit on the form's pale yellow band, in its blue. */
.cir-table th{background:#fff8d0;font-size:12px;font-weight:800;letter-spacing:.02em;text-align:center;padding:4px 3px;color:#1b3a8f;border:1px solid var(--cir-blue)}
.cir-table td{border:1px solid #111827;padding:2px 4px;vertical-align:middle;font-size:10px}
.cir-c-vaccine{width:28%}.cir-c-doses{width:17%}.cir-c-date{width:33%}.cir-c-remarks{width:22%}
.cir-vaccine{font-size:9.5px;font-weight:600;line-height:1.2;text-transform:uppercase}
.cir-doses{text-align:center}
.cir-doses b{display:block;font-size:14px;line-height:1.1}
.cir-doses small{display:block;font-size:7.5px;line-height:1.25;color:#374151}
.cir-doses-given{font-weight:700;color:#0e7490}
/* The date area of a row is one undivided space, and the child's dates are centred in it:
   a vaccine with one recorded dose puts that date in the middle of its row, and a vaccine
   with several lists them side by side, in dose order, with no rule between them. The grid
   under the dates keeps them apart and takes no room at all for a dose that is blank. */
.cir-dates{padding:0;text-align:center}
/* The date column is divided into one cell per dose, evenly, with the strong vertical rule
   between them that the paper form rules its boxes with. The first cell carries no rule, so
   the column reads as one space for a single-dose vaccine and as divided boxes for the
   vaccines that have several. */
.cir-dose-cells{width:100%;table-layout:fixed;border-collapse:collapse}
.cir-dose-cells td{border:0;border-left:1px solid #111827;padding:1px 4px;vertical-align:middle}
.cir-dose-cells td:first-child{border-left:0}
/* A dose cell holds the date the child was actually given that dose, and nothing when
   the dose has not been given: the blank form's own numbering is not printed, because
   the sheet reports this child's record rather than restating the template. */
.cir-dose-date{display:block;text-align:center;font-size:11px;font-weight:700;line-height:1.2;padding:2px 0;color:#0f172a}
/* A dose that has only been submitted, not approved: the typed date is shown so the
   record does not look empty, but in the amber of a pending item and labelled, never in
   the black of an administration date the child has actually been given. */
.cir-dose-pending{font-style:italic;color:#b45309}
.cir-dose-pending small{display:block;font-size:6px;font-weight:800;letter-spacing:.05em;line-height:1.1;text-transform:uppercase;color:#b45309}
.cir-doses-pending{display:block;font-weight:700;color:#b45309}
.cir-remarks{font-size:8px;line-height:1.3;color:#1f2937}
.cir-extra{display:block;padding:1px 0;font-size:8.5px;color:#1f2937;text-align:left}
.cir-filler td{height:24px}
.cir-footnote{margin:6px 0 0;font-size:7.5px;line-height:1.35;text-align:justify;color:#111827}
@media(max-width:992px){
    .cir-doc{grid-template-columns:1fr}
    .cir-brand{border-right:0;border-bottom:3px solid var(--cir-cyan)}
    /* A phone screen is a reader, not the printer: the campaign artwork stays, but small
       enough that the child's details and the table are reached without a long scroll. */
    .cir-badge{max-width:130px}
    .cir-slogan{font-size:17px}
    /* On a narrow sheet the two-column identity block squeezes every line, so the
       details are listed full width instead; the printed form keeps its two columns. */
    .cir-identity{grid-template-columns:1fr}
    .cir-left-fields{gap:8px}
    .cir-left-fields dd{min-height:26px}
    .cir-left-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
    .cir-doh{margin-top:0}
    .cir-table{min-width:660px}
    .cir-title h2{font-size:22px}
}
@media print{
    .cir-sheet{border:0!important;margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;break-after:page;page-break-after:always}
    /* The last sheet must not force a page of its own after it. */
    .cir-sheet:last-of-type{break-after:auto;page-break-after:auto}
    /* The form is a two-column document by definition, so the print keeps the brand panel
       beside the table even when the page the printer reports is narrow: the small-screen
       stack would put the panel above the table and run to a second sheet.

       How the two columns are laid out on paper depends on how much text one page of the
       record carries, and the renderer picks per page, because neither arrangement serves
       both sizes:

       - A page whose rows fit (class cir-sheet-fits) keeps the grid. The panel and the table
         then end together and the sheet is exactly as tall as what it holds, so a short
         record leaves no empty band above the instruction line. This is the arrangement the
         on-screen form has always shown, and the one every page of twelve blank rows uses.
       - A page carrying long remarks, or many Iba Pang Mga Bakuna lines, is printed with
         class cir-sheet-overflow and uses a float instead. A grid cannot be split across
         sheets - a browser breaks between grid rows and this document has one - so a long
         table would push the whole page onto the next sheet and leave the first one blank.
         Floated, the panel holds the left column for the whole printable height and the table
         breaks between its rows onto the sheet after it, where it takes the full page width
         with its columns repeated. The renderer measures the page's remarks to choose, so
         the safe arrangement is never skipped on a page that needs it. */
    .cir-doc{display:block}
    .cir-brand{float:left;display:flex!important;gap:6px;width:20%;min-height:182mm;padding:6px}
    /* The printed panel is narrow (a fifth of the sheet), so the badge takes its full
       width: on paper it is the panel's dominant mark, as it is on the DOH form. */
    .cir-badge{max-width:100%}
    .cir-slogan{font-size:19px;margin:0 0 1px}
    .cir-left-fields{gap:8px;margin:4px 0 0}
    .cir-left-fields dd{min-height:24px;padding:2px 4px;font-size:9px}
    .cir-left-fields dt{font-size:8px}
    .cir-doh-mark{font-size:20px}
    /* A block formatting context, so the table sits beside the panel on the first sheet and
       takes the full page width on the sheet it continues onto. */
    .cir-table-wrap{overflow:visible;display:flow-root}
    .cir-table{min-width:0}
    /* The short record: back to the grid, with the panel spanning the sheet's own height. The
       width has to be released with the float: the rule above sizes the panel at 20% of what
       it sits in, which is the whole sheet for a float but only the grid column here, so the
       panel would shrink to a fifth of its own column and squeeze the badge and the wordmark
       until they overran it. */
    .cir-sheet-fits .cir-doc{display:grid;grid-template-columns:20% 1fr}
    .cir-sheet-fits .cir-brand{float:none;width:100%;min-height:0}
    .cir-identity{grid-template-columns:1fr 1fr;gap:0 10px;padding-bottom:6px}
    .cir-identity-col{gap:5px}
    .cir-field{min-height:14px}
    /* The application shell stretches to the viewport, which in print is exactly one
       page: the sheet then ends flush with the page and the engine emits a blank second
       one. The shell stops stretching on a sheet that prints itself. */
    .app-main:has(.cir-sheet){min-height:0}
    .content:has(.cir-sheet){flex:0 0 auto;padding:0;max-width:none}
    /* A record longer than one sheet continues onto the next one carrying the same four
       columns: the table is allowed to break between its rows (never inside one) and its
       heading row is a repeated table header, so page 2 reads exactly like page 1. The
       blocks that must stay whole are the brand panel, the title band, the child's
       details and the instruction line. */
    .cir-brand,.cir-title,.cir-identity,.cir-footnote{break-inside:avoid;page-break-inside:avoid}
    .cir-doc,.cir-main,.cir-table,.cir-table-wrap{break-inside:auto;page-break-inside:auto}
    .cir-title h2{font-size:23px}
    .cir-main,.cir-brand{padding:6px}
    .cir-table th{font-size:10px;padding:2px}
    /* A dose cell keeps its rule on paper too, at the form's own weight. */
    .cir-dose-cells td{padding:1px 2px}
    .cir-table td{font-size:8.5px;padding:1px 3px}
    /* The outer cell rule above also matches these, which would squeeze the dates together
       on paper. Naming the class makes this win on its own, wherever the two rules sit, so
       the printed spacing cannot depend on their order. */
    .cir-table td.cir-dose-cell{padding:1px 8px}
    .cir-vaccine{font-size:8.5px}
    .cir-dose-date{font-size:9.5px}
    .cir-dose-pending small{font-size:5.5px}
    .cir-remarks,.cir-extra{font-size:7.5px}
    .cir-filler td{height:20px}
    .cir-footnote{font-size:7px;margin-top:4px}
}

/* --- Immunization Monitoring Chart ---------------------------------------------
   The DOH chart of the monitoring poster: an amber population panel, the cumulative
   target graph with its 0%-100% diagonal, and the monthly accomplishment table.
   One stylesheet for both places the chart appears (the dashboard preview and the
   Reports sheet), so the two can never look different. Green and amber carry the
   poster; blue and yellow stay the system accents used everywhere else. */
.monitoring-sheet{--mon-green:#0e7a4a;--mon-green-lite:#12875a;--mon-green-soft:#e7f6ee;--mon-amber:#f2b134;--mon-amber-soft:#fdf3dc;--mon-line:#cfd8d3;background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden}
.monitoring-head{display:flex;align-items:center;gap:14px;padding:16px 18px;background:linear-gradient(135deg,#0e7a4a,#12875a);color:#fff}
.monitoring-logo{width:46px;height:46px;border-radius:12px;object-fit:cover;background:#fff;padding:2px}
.monitoring-title{font-size:22px;font-weight:750;margin:0;color:#fff;letter-spacing:.01em}
.monitoring-subtitle{margin:3px 0 0;font-size:11px;color:rgba(255,255,255,.88)}
.monitoring-scope{display:inline-block;margin-top:5px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.92)}
.monitoring-stamp{margin-left:auto;text-align:right;font-size:10px;color:rgba(255,255,255,.9);min-width:180px}
.monitoring-stamp span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:9px;color:rgba(255,255,255,.75)}
.monitoring-stamp b{display:block;font-size:12px;color:#fff;margin:0 0 5px}
/* The sheet is the DOH chart's green page: the population column and the chart itself are
   light cards on the campaign green, as the printed poster lays them out. */
.monitoring-body{display:grid;grid-template-columns:296px minmax(0,1fr);gap:10px;padding:10px;background:var(--mon-green)}
.monitoring-main{min-width:0;display:flex;flex-direction:column;background:#fff;border-radius:10px;overflow:hidden}
.monitoring-population{padding:16px;border-radius:10px;background:var(--mon-amber-soft)}
/* The Magpabakuna campaign artwork, carried at the top of the population column the way
   the DOH poster prints it above the Year field. One rule for the sheet and the
   dashboard preview, so the two carry the same mark at the same place. */
.monitoring-poster{margin:0 0 12px;padding:8px;background:#fff;border:1px solid var(--mon-amber);border-radius:12px}
.monitoring-poster img{display:block;width:100%;height:auto}
.monitoring-facts div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-bottom:1px dashed #e3c9a1;padding:6px 0}
.monitoring-facts div:last-child{border-bottom:0}
.monitoring-facts dt{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:#7a5a1e;font-weight:650;flex:1}
.monitoring-facts dd{margin:0;font-size:12px;font-weight:650;text-align:right;overflow-wrap:anywhere}
.monitoring-facts .monitoring-target-fact{display:block;background:#fff;border:1px solid var(--mon-amber);border-radius:10px;padding:10px;margin-top:6px}
.monitoring-facts .monitoring-target-fact dd{font-size:24px;line-height:1.1;text-align:left;font-weight:750;color:#7a4f06}
.monitoring-facts .monitoring-target-fact dd small{display:block;font-size:9px;font-weight:600;color:#8a6a2f;text-transform:uppercase;letter-spacing:.04em;margin-top:3px}
.monitoring-missing{color:var(--danger);font-weight:600;font-size:11px}
.monitoring-alert{margin-top:12px;padding:10px 12px;border-radius:10px;border:1px solid #f0c98a;background:#fff8ec;font-size:11px;color:#7c4a03}
.monitoring-alert.warning{border-color:#fcd34d;background:#fffbeb;color:#854d0e}
.monitoring-alert.warning b{color:#78350f}
.monitoring-formula{margin-top:12px;border:1px solid var(--mon-amber);background:#fff;border-radius:10px;padding:10px 12px;font-size:11px;color:#4b5563}
.monitoring-formula b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#7a4f06}
.monitoring-formula p{margin:3px 0 8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px;color:#374151}
.monitoring-formula small{color:var(--muted)}
.monitoring-graph{padding:10px 0 12px;background:#fff;min-width:0;display:flex;flex-direction:column;flex:1 1 auto}
/* The plot is the poster's form: the Cumulative Target Population cell sits above the
   month rows (December at the top, January at the bottom) and the twelve columns of the
   grid line up with the twelve month columns of the Monthly Accomplishment table. The main
   column is a flex column, so the graph takes up whatever height the population column
   already gives the sheet: the plot is never shorter than its own shape and no blank band
   is left between the graph and the Monthly Accomplishment table. */
.monitoring-plot{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;flex:1 1 auto;aspect-ratio:16/9;background:#fff;border:1px solid var(--mon-line);border-radius:6px;overflow:hidden}
.monitoring-plot-head{grid-column:1/-1;grid-row:1;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;padding:6px 9px;background:var(--mon-amber);border-bottom:1px solid #d9a326}
.monitoring-plot-head b{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#3f2d06}
.monitoring-plot-head span{font-size:9px;font-weight:600;color:#5c440a}
.monitoring-plot-months{grid-column:1;grid-row:2;display:grid;grid-template-rows:repeat(12,minmax(0,1fr));background:#fff;border-right:1px solid var(--mon-line)}
/* The poster's Cumulative Target Population column, cell for cell: each month names its row
   in its own amber cell, and the cell beside it - left blank on the printed poster, where
   the figure is written in by hand - carries the cumulative target reached by that month. */
.monitoring-plot-months span{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.monitoring-plot-months span b{display:grid;place-items:center;font-size:9.5px;font-weight:650;color:#3f2d06;background:var(--mon-amber);border-bottom:1px solid #d9a326}
.monitoring-plot-months span small{display:grid;place-items:center;font-size:8px;font-weight:700;color:#6b4a06;background:#fff;border-left:1px solid #d9a326;border-bottom:1px solid var(--mon-line);font-variant-numeric:tabular-nums;line-height:1.1}
.monitoring-plot-months span:last-child b,.monitoring-plot-months span:last-child small{border-bottom:0}
.monitoring-plot-board{grid-column:2;grid-row:2;position:relative;display:grid}
.monitoring-scale{grid-area:1/1;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:1px 3px;font-size:8.5px;color:#6b7280;font-weight:700;pointer-events:none}
.monitoring-scale span{background:rgba(255,255,255,.8);border-radius:3px;padding:0 3px;line-height:1.3}
.monitoring-gridlines{grid-area:1/1;background-image:repeating-linear-gradient(to right,rgba(15,23,42,.2) 0 1px,transparent 1px calc(100% / 12)),repeating-linear-gradient(to bottom,rgba(15,23,42,.2) 0 1px,transparent 1px calc(100% / 12))}
.monitoring-svg{grid-area:1/1;position:relative;width:100%;height:100%;display:block}
.monitoring-target-line{stroke:var(--mon-amber);stroke-width:2.4;vector-effect:non-scaling-stroke}
.monitoring-series{fill:none;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
/* The plotted lines carry a bullet on every month's point, the way the poster draws them.
   They sit in the board, not in the SVG: the SVG is stretched unevenly by the board's shape
   (a flat 0-100 box), so a circle inside it would print as an ellipse. A round element
   placed by percentage holds its shape at any board size. Each bullet is centred on its
   point, and one that lands on an edge is nudged in by half its own width so that a month
   at 0% or 100% still prints a whole bullet instead of half of one. */
.monitoring-bullets{grid-area:1/1;position:relative;pointer-events:none;--bullet:7px;--bullet-edge:3.5px}
.monitoring-bullet-set{position:absolute;inset:0}
.monitoring-bullet{position:absolute;left:clamp(var(--bullet-edge),var(--bx),calc(100% - var(--bullet-edge)));top:clamp(var(--bullet-edge),var(--by),calc(100% - var(--bullet-edge)));width:var(--bullet);height:var(--bullet);margin:calc(var(--bullet) / -2) 0 0 calc(var(--bullet) / -2);border-radius:50%;background:var(--series,#475569);box-shadow:0 0 0 1px rgba(255,255,255,.85)}
/* The legend is the chart box's bottom row, so the graph runs straight into the Monthly
   Accomplishment table with no blank band between the two. */
.monitoring-legend{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding:6px 9px;background:var(--mon-green-soft);border-top:1px solid var(--mon-line);font-size:10px;color:#475569}
.monitoring-legend-item{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.monitoring-legend-item.is-off{color:#9ca3af;text-decoration:line-through;font-weight:500}
.monitoring-legend-note{color:var(--muted);font-size:9.5px;flex-basis:100%;margin:0}
.monitoring-dash{display:inline-block;width:16px;height:3px;border-radius:2px;background:#64748b;vertical-align:middle;flex:0 0 auto}
/* The swatch repeats the line's bullet, so the key alone says which lines carry them; the
   target line keeps its plain dash because it is drawn without bullets. */
.monitoring-legend-item .monitoring-dash:not(.target){position:relative}
.monitoring-legend-item .monitoring-dash:not(.target):after{content:'';position:absolute;left:50%;top:50%;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:inherit;box-shadow:0 0 0 1px rgba(255,255,255,.85)}
.monitoring-dash.target{background:var(--mon-amber)}
.monitoring-table-wrap{border-top:1px solid var(--mon-line);overflow-x:auto;flex:0 0 auto}
.monitoring-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:760px;font-size:11px;margin:0}
.monitoring-table th,.monitoring-table td{border:1px solid var(--mon-line);padding:3px 5px;text-align:center;white-space:nowrap}
.monitoring-table thead th{background:var(--mon-green);color:#fff;font-size:9.5px;font-weight:650;text-transform:uppercase;letter-spacing:.05em}
.monitoring-table thead th.monitoring-th-head{text-align:left}
.monitoring-table col.monitoring-col-group{width:64px}
.monitoring-table col.monitoring-col-row{width:112px}
.monitoring-table col.monitoring-col-mark{width:36px}
.monitoring-table th.monitoring-group{background:#fff;color:#0b5c39;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.monitoring-table th.monitoring-row-label{text-align:center;font-size:10px;font-weight:600;background:#fff}
/* The row symbols the poster prints in their own column: a short rule carrying the
   circle. Whether it is open or filled, and which colour it takes, is the poster's own
   choice per row and is set per row in monitoring_chart.php; a row the poster leaves
   unmarked keeps its cell, so the month columns below stay in line. */
.monitoring-table td.monitoring-mark-cell{background:#fff;padding:2px 4px}
.monitoring-symbol{position:relative;display:inline-block;width:26px;height:11px;vertical-align:middle}
.monitoring-symbol:before{content:'';position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;border-radius:2px;background:var(--mark,#475569)}
.monitoring-symbol:after{content:'';position:absolute;left:50%;top:50%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;box-sizing:border-box;border-radius:50%;border:2.5px solid var(--mark,#475569);background:#fff}
.monitoring-symbol.is-solid:after{background:var(--mark,#475569)}
.monitoring-table .monitoring-row-dropout th,.monitoring-table .monitoring-row-dropout td{background:var(--mon-green-soft)}
.monitoring-table .monitoring-row-rate th,.monitoring-table .monitoring-row-rate td{background:#d9f0e4;font-weight:650}
.monitoring-table .monitoring-cell-future{background:#f8fafc;color:#b6bec6}
.monitoring-table .monitoring-cell{font-variant-numeric:tabular-nums}
/* One hover area per month over the plot: the browser shows that month's cumulative values
   for every configured indicator. */
.monitoring-hit{fill:transparent;cursor:help}
.monitoring-anomaly{margin-top:6px;padding:8px 10px;border-radius:8px;border:1px solid #fcd34d;background:#fffbeb;color:#854d0e}
.monitoring-foot{padding:14px 18px;border-top:1px solid var(--border);background:#f9fafb;font-size:11px;color:#475569}
.monitoring-foot b{color:#334155}
.monitoring-empty-note{color:#854d0e}
.monitoring-compact .monitoring-foot,.monitoring-compact .monitoring-formula{display:none}
.monitoring-compact .monitoring-population{padding:12px;background:#fffdf7}
.monitoring-compact .monitoring-poster{max-width:176px;margin:0 auto 10px;padding:6px;border-radius:10px}
.monitoring-compact .monitoring-title{font-size:19px}
.monitoring-filters{border:1px solid var(--border);border-radius:12px;padding:12px;background:#f9fafb}
.monitoring-scope-text{color:#0b5c39;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.05em;margin-top:2px}
.monitoring-loading{display:flex;align-items:center;gap:8px;padding:9px 12px;margin-bottom:10px;border-radius:10px;background:#eff6ff;border:1px solid #dbeafe;color:var(--primary-dark);font-size:11.5px;font-weight:600}
.monitoring-loading[hidden]{display:none!important}
.monitoring-loading i{animation:monSpin 1s linear infinite}
@keyframes monSpin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.monitoring-body{grid-template-columns:1fr}.monitoring-table{min-width:760px}}
@media(max-width:767px){.monitoring-head{flex-wrap:wrap;padding:14px}.monitoring-stamp{margin-left:0;text-align:left}.monitoring-plot{aspect-ratio:4/3;grid-template-columns:56px minmax(0,1fr)}.monitoring-plot-months span b{font-size:8px}.monitoring-legend{gap:6px 12px}.monitoring-poster{max-width:200px;margin:0 auto 10px}}
@media print{
    .monitoring-sheet{border:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .monitoring-head{padding:0 0 6px;background:#fff!important;color:#0b5c39}
    .monitoring-logo{width:28px;height:28px}
    .monitoring-title{font-size:14px;color:#0b5c39}
    .monitoring-subtitle{display:none}
    .monitoring-scope{font-size:8px;color:#374151}
    .monitoring-stamp{font-size:7.5px;color:#374151}
    .monitoring-stamp span{color:#6b7280}
    .monitoring-stamp b{font-size:8.5px;color:#111827}
    .monitoring-body{grid-template-columns:180px 1fr;gap:0;padding:0;background:#fff}
    .monitoring-population{padding:6px 8px;border-radius:0}
    .monitoring-main{border-radius:0}
    .monitoring-poster{max-width:120px;margin:0 auto 4px;padding:2px;border-radius:4px}
    .monitoring-facts div{padding:1px 0;align-items:center}
    .monitoring-facts dt{font-size:6.6px;line-height:1.2}
    .monitoring-facts dd{font-size:8px;line-height:1.2}
    .monitoring-facts .monitoring-target-fact{padding:3px 4px;margin-top:2px}
    .monitoring-facts .monitoring-target-fact dd{font-size:13px}
    .monitoring-facts .monitoring-target-fact dd small{font-size:6px}
    .monitoring-alert,.monitoring-formula{margin-top:4px;padding:3px 4px;font-size:6.4px;line-height:1.2}
    .monitoring-formula p{font-size:6.2px;margin:1px 0 3px;line-height:1.2}
    .monitoring-plot{aspect-ratio:16/6.25;border-radius:0;grid-template-columns:44px minmax(0,1fr)}
    .monitoring-plot-months span b{font-size:5px}
    .monitoring-plot-months span small{font-size:4.4px}
    .monitoring-hit{display:none}
    .monitoring-graph{padding:4px 0 2px}
    .monitoring-plot-head{padding:2px 4px}
    .monitoring-plot-head b{font-size:6.6px}
    .monitoring-plot-head span{font-size:5.6px}
    .monitoring-scale{font-size:5px;padding:0 2px}
    .monitoring-legend{padding:2px 4px;gap:2px 6px;font-size:6.2px;background:#fff}
    .monitoring-legend-note{display:none}
    .monitoring-table{min-width:0;font-size:6.4px;line-height:1.15}
    .monitoring-table th,.monitoring-table td{padding:1px 2px}
    .monitoring-table thead{display:table-header-group}
    .monitoring-table tr{break-inside:avoid;page-break-inside:avoid}
    .monitoring-table thead th{font-size:5.8px}
    .monitoring-table th.monitoring-row-label{font-size:6.2px;padding-right:9px}
    .monitoring-table col.monitoring-col-group{width:30px}
    .monitoring-table col.monitoring-col-row{width:52px}
    .monitoring-table col.monitoring-col-mark{width:20px}
    .monitoring-table td.monitoring-mark-cell{padding:1px 2px}
    .monitoring-symbol{width:16px;height:8px}
    .monitoring-symbol:before{height:2px;margin-top:-1px}
    .monitoring-symbol:after{width:6px;height:6px;margin:-3px 0 0 -3px;border-width:1.6px}
    .monitoring-table th.monitoring-group{font-size:5.4px}
    .monitoring-table-wrap{overflow:visible}
    .monitoring-foot{padding:4px 0;font-size:6px;line-height:1.3;border-top:0;background:#fff}
    /* The chart sheet has to land on one landscape page, so its heading block is set
       compactly even though the other reports print it at full size. */
    .monitoring-sheet-wrap .report-print-header{padding:0 0 3px!important;line-height:1.15}
    .monitoring-sheet-wrap .report-logo{width:20px;height:20px;border-radius:4px}
    .monitoring-sheet-wrap .report-print-header h2{font-size:13px}
    .monitoring-sheet-wrap .report-print-header p{margin:0;font-size:6.6px}
    .monitoring-sheet-wrap .report-print-header h3{font-size:11px;margin:2px 0 1px}
    .monitoring-sheet-wrap .report-print-header b,.monitoring-sheet-wrap .report-print-header small{font-size:7px}
    .monitoring-sheet-wrap .report-sheet,.monitoring-sheet-wrap .monitoring-sheet{break-inside:avoid}
}

/* Child profile photographs ---------------------------------------------------
   One photograph per child, shown at three consistent sizes: a small thumbnail in
   the children list, the vaccination record, and the schedule; the profile size in
   the child header and the record form; and a portrait in the profile card. The
   default avatar keeps the same shape, so a child without a photograph does not
   change the layout of a table row or a header. */
.avatar-photo{object-fit:cover;background:#eef2f7;border:1px solid var(--border);padding:0}
.avatar-thumb{min-width:34px;width:34px;height:34px;border-radius:9px;font-size:11px}
.avatar-profile{min-width:64px;width:64px;height:64px;border-radius:14px;font-size:21px}
.avatar-portrait{min-width:132px;width:132px;height:132px;border-radius:16px;font-size:38px}
.child-list-photo{display:inline-flex;border-radius:10px;text-decoration:none}
.child-list-photo .avatar{transition:box-shadow .16s ease}
.child-list-photo:hover .avatar{box-shadow:0 0 0 3px rgba(37,99,235,.16)}
.child-profile-photo{display:inline-flex}
.child-photo-preview{display:grid;place-items:center;gap:10px;padding:16px;border:1px dashed #d8e0e8;border-radius:14px;background:#f8fafc}
.child-photo-editor{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:start}
.child-photo-frame{display:grid;place-items:center;width:132px;height:132px;border-radius:16px;background:#f1f5f9;border:1px solid var(--border);overflow:hidden}
.child-photo-frame img.avatar-photo{width:100%;height:100%;min-width:0;border:0;border-radius:0}
.child-photo-fields{min-width:0}
.child-photo-status{font-size:11px;line-height:1.5}
.child-identity-facts,.record-identity-facts{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;font-size:11px;color:var(--muted)}
.child-identity-facts span,.record-identity-facts span{display:inline-flex;align-items:center;gap:5px}
.child-identity-facts i,.record-identity-facts i{color:var(--primary);font-size:12px}
.child-photo-card .form-text{font-size:11px}
@media(max-width:575px){
  .child-photo-editor{grid-template-columns:1fr;gap:14px}
  .child-photo-frame{width:100%;max-width:200px;height:auto;aspect-ratio:1/1;margin:0 auto}
  .avatar-portrait{min-width:108px;width:108px;height:108px;font-size:32px}
  .child-photo-preview{padding:12px}
  .child-profile-card .avatar-profile{min-width:56px;width:56px;height:56px;font-size:19px}
}
@media print{.child-photo-card form,.child-photo-card .form-text,.child-photo-status{display:none!important}.child-photo-preview{border:0;padding:0}.child-photo-frame{border:0}}

/* The webcam dialog ----------------------------------------------------------
   Opened by the camera button on a device whose camera is reached through
   getUserMedia rather than the capture attribute, so a laptop can take the child's
   photograph without a file to choose first. */
.camera-dialog{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:16px;background:rgba(15,23,42,.6)}
.camera-dialog[hidden]{display:none!important}
.camera-panel{width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:16px;padding:16px;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.camera-head b{display:block;font-size:15px;font-weight:650}
.camera-head small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.camera-video{display:block;width:100%;aspect-ratio:4/3;margin-top:12px;background:#0f172a;border-radius:12px;object-fit:cover}
.camera-note{margin:8px 0 0;font-size:11px;color:var(--muted)}
.camera-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
@media(max-width:575px){.camera-actions .btn{flex:1}}
@media print{.camera-dialog{display:none!important}}

/* Reviewer decision row -------------------------------------------------------
   The remarks field and the Approve / Reject buttons share one line, and the
   buttons take the height of the field they act on instead of sitting half a line
   below it. The helper note describes the field, so it sits under the whole row
   where it can no longer push the buttons out of line. */
.validation-decision-row{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.validation-decision-row .form-control{flex:1 1 240px;min-width:0}
.validation-decision-actions{display:flex;gap:8px}
@media(max-width:575px){.validation-decision-actions{width:100%}.validation-decision-actions .btn{flex:1}}

/* Shared filter toolbar -------------------------------------------------------
   One toolbar above the records, schedule and missed lists. The fields are a
   wrapping grid, so a wide screen shows the whole set in two compact rows and a
   phone shows one per line with no horizontal scrolling. The card carries no
   decoration beyond the app's own border and shadow, so the table below stays the
   subject of the page. */
.filter-bar{padding:14px 16px;margin-bottom:14px}
.filter-bar-form{margin:0}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px 12px;align-items:end}
.filter-field{min-width:0}
.filter-field .form-label{margin-bottom:5px;font-size:11px}
.filter-field .form-control,.filter-field .form-select{min-height:40px}
.filter-field-search{grid-column:span 2}
/* One line on a wide desktop. A list is read and filtered as a whole, so from the width where
   eleven fields can still be read the bar is a single row instead of a block of three. Every field
   keeps the share its own content needs - the search box the largest because it holds a sentence, a
   number the smallest, a date room for its calendar button - and the controls use the compact size
   a toolbar keeps, which is what lets the whole toolbar stand in the height three rows used to
   take. The labels do not wrap, so all controls share one top edge, and a field whose text is still
   wider than its share shortens that text with an ellipsis - the dropdown opens to its full list and
   the control carries the full wording as its tooltip - rather than pushing a field onto a second
   row. Below this width the bar keeps the grid above, which wraps: eleven controls cannot be read
   in one line on a smaller screen, so there they are laid out in the rows they need. */
@media(min-width:1720px){
    .filter-grid{display:flex;flex-wrap:nowrap;gap:6px;align-items:flex-start;padding-bottom:2px}
    .filter-field{flex:1 1 0;min-width:116px}
    .filter-field .form-label{white-space:nowrap}
    .filter-field .form-control,.filter-field .form-select{min-height:38px;font-size:12px;padding:.45rem .55rem;text-overflow:ellipsis}
    .filter-field .form-select{padding-right:1.6rem}
    .filter-field .filter-search-input{padding-left:34px}
    .filter-field .date-picker-shell .form-control{padding:0 42px 0 10px;height:38px;font-size:12px}
    .filter-field .date-picker-trigger{width:28px;height:28px;right:5px;top:5px}
    /* The search box holds a sentence and the two numbers hold a few of them, so each of those
       gives width back to the dropdowns; a number still keeps room for its own label, which is
       wider than the number under it here. */
    .filter-field-search{flex:1.6 1 0;min-width:120px;grid-column:span 1}
    .filter-field-number{flex:.9 1 0;min-width:104px}
    .filter-field-date{min-width:126px}
}
.filter-help{display:block;margin-top:3px;font-size:10px;color:var(--muted)}
.filter-bar-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid #f0f2f4}
.filter-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.filter-chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-summary{display:inline-flex;gap:6px;align-items:center;font-size:11px;font-weight:600;color:var(--primary)}
.filter-clear-inline{font-size:10px;color:var(--muted);text-decoration:underline}
.filter-bar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.filter-results{font-size:11px;color:var(--muted);white-space:nowrap}
@media(max-width:767px){
    .filter-field-search{grid-column:span 1}
    .filter-bar-actions{width:100%;margin-left:0}
    .filter-bar-actions .btn{flex:1}
}
/* Page links that keep the applied filters. */
.list-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:12px}
.pagination-nav{min-width:0}
.pagination-nav .page-link{border-radius:8px;margin:0 2px;min-width:32px;text-align:center;color:#4b5563;border-color:var(--border)}
.pagination-nav .page-item.active .page-link{background:var(--primary);border-color:var(--primary);color:#fff}

/* Rescheduling ----------------------------------------------------------------
   The appointment being moved is restated at the head of the modal, so the reader
   confirms a child and a dose rather than an appointment number, and the rules the
   date has to satisfy are spelled out under the field that has to satisfy them. */
.reschedule-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px solid var(--border);margin-bottom:16px}
.reschedule-context div{min-width:0}
.reschedule-context small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.reschedule-context b{display:block;font-size:12px;overflow-wrap:anywhere}
/* The line that keeps the two dates of a dose apart: the appointment controls above it
   book a day that has not happened yet, the form below it records the day the dose was
   really given. It heads that form so the administration calendar is never mistaken for
   the future-date picker. */
.record-date-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;padding-top:14px;margin-top:16px;border-top:1px solid var(--border)}
.record-date-head b{font-size:12px;color:var(--text)}
.record-date-head small{font-size:10px;color:var(--muted);max-width:70ch}
.reschedule-rules{margin:4px 0 0;padding-left:16px;font-size:11px;color:var(--muted)}
.reschedule-rules li{margin-bottom:2px}
.reschedule-blocked{margin-top:8px}
.reschedule-move{border-radius:10px;background:#fffbeb;border:1px solid #fde68a;color:#854d0e;padding:9px 11px;font-size:11px}
.timeline-item .reschedule-note{display:block;margin-top:4px;font-size:11px;color:#854d0e}
/* An appointment whose time of day has not been set yet. It is a real state, not an
   empty field: the screens name it instead of showing a blank or guessing a time. */
.time-not-set{font-size:11px;font-weight:600;color:#b45309}
td .time-not-set{display:block}
/* The appointment time dialog reuses the reschedule dialog's context and move blocks,
   so only the badge that says a submission is waiting needs its own rule. */
.appointment-time-pending{color:#854d0e;background:#fffbeb}
.rescheduled-origin{text-decoration:line-through;color:var(--muted)}
/* A dose that was given after the appointment it was booked for. It is allowed and is
   recorded with the day it was really given, so this says how late it was rather than
   showing a fault: the appointment itself is still on the schedule. */
.late-dose{font-size:11px;font-weight:600;color:#b45309}

/* ---------------------------------------------------------------------------
   Temporary password field (Add User / Reset Password)
   The field keeps the form's own styling; the Show / Hide control sits inside
   it and only switches what the input reveals. A long value is never pushed
   under the control, and the control is a real focusable button.
   --------------------------------------------------------------------------- */
.password-field-control{position:relative;display:flex;align-items:center}
.password-field-control .form-control{padding-right:48px}
.password-visibility{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#6b7280;display:grid;place-items:center;font-size:15px}
.password-visibility:hover{background:#f1f5f9;color:var(--primary)}
.password-visibility.is-visible{background:#eff6ff;color:var(--primary)}
.password-visibility:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:1px}

/* ---------------------------------------------------------------------------
   Sidebar palette
   The navigation carries the IMMUNICARE identity in one place: a deep forest
green panel (a real dark surface, so the content reads as the page), white
type, teal for the item you are on and for anything interactive inside the
sidebar, and the highlight colour used twice only - as the marker on the active
item and as the keyboard focus ring, where neither can be mistaken for
decoration. Every state is defined here, so the sidebar cannot change
appearance between modules, and the same rules cover the Settings sidebar, the
collapsed rail, the phone drawer and the phone navigation bar.
   --------------------------------------------------------------------------- */
/* The notes beside the registration attribution field, and the small facts line the
   profile and the Children list print for the people behind a registration. */
.registration-rules{margin:4px 0 0;padding-left:16px;font-size:11px;color:var(--muted)}
.registration-rules li{margin-bottom:3px}
.registration-people{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:11px;color:var(--muted)}
.registration-people span{display:inline-flex;align-items:center;gap:5px}
.registration-notice{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}
.registration-notice>i{font-size:14px;color:var(--muted);margin-top:2px}
.registration-notice.sent{background:#ecfdf3;border-color:#bbf7d0}
.registration-notice.sent>i{color:#15803d}
.registration-notice.failed{background:#fffbeb;border-color:#fde68a}
.registration-notice.failed>i{color:#b45309}
.registration-notice b{display:block;font-size:12px}
.registration-notice small{display:block;color:var(--muted);font-size:11px}

:root{--side-bg:#84CC16;--side-bg-deep:#166534;--nav-hover:#D9F99D;--nav-line:#65A30D;--nav-ink:#1F2937;--nav-ink-soft:#365314;--nav-ink-muted:#3F6212;--nav-brand:#166534;--nav-teal:#166534;--nav-teal-deep:#14532D;--nav-highlight:#D9F99D;--side-ink:#1F2937;--side-ink-soft:#365314;--side-ink-muted:#3F6212;--side-line:#65A30D;--side-accent:#166534;--side-tint:#F7FEE7;--side-tint-line:#D9F99D}
/* The sidebar is one flat lime field. Forest green is reserved for the current page,
the profile footer and the small indicators, so the eye always knows what is active. */
.sidebar{background:#84CC16;border-right:1px solid #65A30D}
.sidebar-head{border-bottom:1px solid #65A30D}
.brand-copy b{color:#1F2937}
.brand-copy small{color:#1F2937}
/* The logo keeps its own white tile: it is the mark people recognise, and it sits
calmly on the lime field without a heavy frame. */
.sidebar .brand-mark{border-color:#65A30D;box-shadow:0 2px 8px rgba(22,101,52,.18)}
.collapse-btn{background:#84CC16;border-color:#65A30D;color:#365314;box-shadow:0 4px 12px rgba(22,101,52,.22)}
.collapse-btn:hover{background:#F7FEE7;border-color:#65A30D;color:#166534}
.nav-label{color:#3F6212;font-weight:700}
.side-link{color:#1F2937;transition:background-color .18s ease,color .18s ease}
.side-link i{color:#365314;transition:color .18s ease}
.side-link:hover{background:#D9F99D;color:#1F2937;box-shadow:none}
.side-link:hover i{color:#1F2937}
.side-link.active{background:#166534;color:#FFFFFF;font-weight:600;box-shadow:inset 3px 0 0 #D9F99D}
.side-link.active i{color:#FFFFFF}
/* An item the account may not use stays legible but plainly out of reach, the way
the rest of the application shows a control that is not available. */
.side-link.disabled,.side-link[aria-disabled="true"]{color:#4B5563;opacity:.62;pointer-events:none}
.side-link.disabled i,.side-link[aria-disabled="true"] i{color:#4B5563}
.sidebar-search>i{color:#3F6212}
.sidebar-search input{background:#F7FEE7;border-color:#65A30D;color:#1F2937}
.sidebar-search input::placeholder{color:#4B5563}
.sidebar-search input:focus{border-color:#166534;background:#FFFFFF;box-shadow:0 0 0 3px rgba(22,101,52,.24)}
.sidebar-search kbd{background:#FFFFFF;border-color:#65A30D;color:#3F6212}
.sidebar-nav{scrollbar-color:rgba(22,101,52,.45) transparent}
/* The focus ring is forest green on the lime field, so a keyboard visitor can see
where they are without it reading as decoration. */
.sidebar a:focus-visible,.sidebar button:focus-visible,.sidebar input:focus-visible{outline-color:#166534!important;outline-offset:2px}
body.sidebar-collapsed .sidebar-search{background:#F7FEE7;border-color:#65A30D}
body.sidebar-collapsed .sidebar-search:hover{background:#D9F99D;border-color:#65A30D}
body.sidebar-collapsed .sidebar-search:after{color:#3F6212}
/* The search panel floats over the sidebar, so it keeps its own light surface and
takes the same lime tints as the rest of the interface. */
.nav-search-item:hover{background:#F7FEE7}
.nav-search-item.active{background:#ECFCCB}
.nav-search-item.active .nav-search-icon{background:#D9F99D;color:var(--nav-brand)}
/* The Settings panel is a sidebar too, so it carries the same identity on its own light
   card: the gear on a lime-tinted tile, olive section headings dark enough to read on
   white, hover tinted the palest lime, and the current section as the same forest green
   pill the main navigation uses - readable, and never by colour alone. */
.settings-sidebar-head>i{background:#F7FEE7;color:#166534;border:1px solid #D9F99D}
.settings-sidebar-head b{color:#14532D}
.settings-sidebar .nav-label{color:#3F6212}
.settings-link{color:#1F2937}
.settings-link>i{color:#365314}
.settings-link:hover{background:#F7FEE7;color:#166534}
.settings-link:hover>i{color:#166534}
.settings-link.active{background:#166534;color:#FFFFFF;font-weight:600;box-shadow:inset 3px 0 0 #D9F99D}
.settings-link.active>i{color:#FFFFFF}
.settings-link:focus-visible{outline:3px solid rgba(22,101,52,.35)!important;outline-offset:2px}
@media(max-width:991px){.sidebar{background:#84CC16;box-shadow:16px 0 44px rgba(22,101,52,.30)}.drawer-backdrop{background:rgba(20,83,45,.46)}.mobile-nav{background:#84CC16;border-top:1px solid #65A30D}.mobile-nav a,.mobile-nav button{color:#365314}.mobile-nav a.active,.mobile-nav button:hover{color:#166534}}

/* ---------------------------------------------------------------------------
   Submission details dialog (My Submissions / review queue)
   The submission is described once, by the server, and printed here: what was
   submitted, beside what is approved today, with the remarks and the history
   that already exist for it. The dialog only reads, so the styles describe a
   record rather than an action: the header carries the type and the validation
   status, the body is a stack of titled sections, and the history is a compact
   timeline of the submissions and decisions the queue really holds.
   --------------------------------------------------------------------------- */
.submission-detail-type{color:var(--muted);font-size:12px;font-weight:500}
.submission-loading{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;padding:18px 2px}
.submission-summary{margin:0 0 14px;font-size:13px}
.submission-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px solid var(--border);margin:0 0 16px}
.submission-info div{min-width:0}
.submission-info dt{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.submission-info dd{margin:2px 0 0;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.submission-detail-title{font-size:13px;font-weight:650;margin:18px 0 8px}
.submission-diff-table{min-width:0}
.submission-diff-table th{width:auto}
.submission-diff-table td{font-size:12px;overflow-wrap:anywhere}
.submission-diff-table tr.is-changed td{background:#fbfdff}
.submission-changed{display:inline-block;padding:2px 6px;border-radius:999px;background:#eff6ff;color:var(--primary-dark);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.submission-note{margin:10px 0 0;color:var(--muted);font-size:11px}
.submission-remarks{margin-top:18px;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:#f8fafc}
.submission-remarks .submission-detail-title{margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.submission-remarks-heading{font-weight:650;margin:0 0 3px;font-size:12px}
.submission-remarks small{display:block;margin-top:7px;color:var(--muted);font-size:11px}
.submission-remarks.is-danger{background:#fff1f2;border-color:#fecdd3;color:#991b1b}
.submission-remarks.is-danger .submission-detail-title,.submission-remarks.is-danger small{color:#b91c1c}
.submission-remarks.is-success{background:#ecfdf3;border-color:#bbf7d0;color:#166534}
.submission-remarks.is-success .submission-detail-title,.submission-remarks.is-success small{color:#15803d}
.submission-history{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--border)}
.submission-history li{position:relative;padding:0 0 14px}
.submission-history li:last-child{padding-bottom:0}
.submission-history-dot{position:absolute;left:-25px;top:3px;width:11px;height:11px;border-radius:50%;background:#94a3b8;border:2px solid #fff;box-shadow:0 0 0 2px #cbd5e1}
.submission-history li.is-success .submission-history-dot{background:var(--success);box-shadow:0 0 0 2px var(--success)}
.submission-history li.is-danger .submission-history-dot{background:var(--danger);box-shadow:0 0 0 2px var(--danger)}
.submission-history li.is-info .submission-history-dot{background:var(--primary);box-shadow:0 0 0 2px var(--primary)}
.submission-history b{display:block;font-size:12px}
.submission-history small{display:block;color:var(--muted);font-size:11px}
.submission-history-note{display:block;margin-top:3px;font-size:11px;color:#475569;overflow-wrap:anywhere}
/* The comparison is the part that has to stay readable on a phone: the three columns
   are kept side by side and the row scrolls sideways instead of being crushed. */
@media(max-width:767px){
  .submission-diff-table{min-width:460px}
  .submission-info{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
  #submissionDetailModal .modal-header{flex-wrap:wrap}
  #submissionDetailModal .badge-status{order:3}
}
/* The placeholders a message template accepts. Each one is a button that puts the variable
   into the editor, so the wording is read at a glance and never typed by hand. */
.variable-chips{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center;vertical-align:middle}
.variable-chip{border:1px solid var(--border);background:#f8fafc;color:#4b5563;border-radius:7px;padding:2px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.6;min-height:0;cursor:pointer}
.variable-chip:hover{border-color:#bfdbfe;background:#eff6ff;color:var(--primary-dark)}
.variable-chip:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
/* One loading state for everything a person waits on: the button that was pressed keeps
   its size while a spinner and the wording of what is happening take the place of its
   label, and a submission that ends the page is covered by a quiet card instead. */
.loading-label{white-space:nowrap}
.btn[aria-busy="true"]{cursor:progress}
.loading-overlay{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(248,250,252,.74);animation:fadeIn .12s ease}
.loading-overlay[hidden]{display:none}
.loading-overlay-card{display:flex;align-items:center;gap:10px;padding:14px 18px;border-radius:12px;background:#fff;border:1px solid var(--border);box-shadow:0 12px 30px rgba(15,23,42,.12);font-size:13px}
.loading-note{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:2100;display:flex;align-items:flex-start;gap:9px;max-width:min(560px,calc(100vw - 32px));padding:11px 14px;border-radius:10px;background:#fffbeb;border:1px solid #fde68a;color:#854d0e;font-size:12px;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.loading-note[hidden]{display:none}
.loading-note button{border:0;background:transparent;color:inherit;padding:0;margin-left:auto}
body.is-loading{cursor:progress}
/* Signing out lives in the sidebar and in the user menu, so the control keeps the look it
   had as a link while being a submission that carries this session's token. */
.logout-form{display:flex;margin:0}
.logout-icon{border:0;background:none;color:var(--muted);padding:7px;border-radius:8px;display:grid;place-items:center;line-height:1}
.logout-icon:hover{color:var(--danger);background:#fff}
.logout-icon[aria-busy="true"]{color:var(--muted)}
.profile-menu button.dropdown-item{width:100%;text-align:left;border:0;background:transparent}
/* A short fade as a page settles, so a sign-in or a dashboard does not snap into place.
   It is a settle, never a wait: nothing is delayed by it and it is dropped entirely for a
   person who asked their system for less movement. */
.app-main,.otp-card{animation:pageIn .18s ease-out}
@keyframes pageIn{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.app-main,.otp-card,.loading-overlay{animation:none}}
/* ---------------------------------------------------------------------------
   Parent / guardian details dialog (Parents / Guardians)
   The name in the list is a button, so it shows the same weight it had as bold text
   and says with a pointer and an underline that it opens something. The dialog
   itself is a heading, the guardian's facts, and their linked children: the facts
   use the page's own label-over-value list, and the children are a table that
   becomes one card per child on a phone, the way every other list does.
   --------------------------------------------------------------------------- */
.guardian-name-button{border:0;background:none;padding:0;font:inherit;font-weight:650;color:var(--primary-dark);text-align:left;line-height:1.4;cursor:pointer;border-radius:4px}
.guardian-name-button:hover{color:var(--primary);text-decoration:underline}
.guardian-name-button:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
.guardian-detail-subtitle{color:var(--muted);font-size:12px;font-weight:500}
.guardian-detail-heading{font-size:13px;font-weight:650;margin:0 0 10px}
.guardian-detail-facts{margin:0 0 4px}
.guardian-detail-children{margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.guardian-detail-children .table-responsive{margin:0 -4px}
.guardian-children-table{margin:0;min-width:0}
.guardian-children-table th{width:auto;padding:8px 10px}
.guardian-children-table td{padding:9px 10px;font-size:12px;vertical-align:top;overflow-wrap:anywhere}
.guardian-child-name{font-weight:650;color:var(--primary-dark);text-decoration:none}
.guardian-child-name:hover{text-decoration:underline}
#guardianDetailModal .modal-header{align-items:flex-start}
#guardianDetailModal .avatar{background:#eff6ff;color:var(--primary-dark);font-weight:700}
@media(max-width:767px){
  #guardianDetailModal .modal-header{flex-wrap:wrap}
  #guardianDetailModal .guardian-detail-children .table-responsive{margin:0}
}

/* ============================================================================
   IMMUNICARE · dashboard surface

   The palette, the white navigation rail, the 80px top bar, the workspace and the
   cards, in one place so the shell and the dashboard cannot drift apart. This block
   is last in the file on purpose: it overrides the earlier green theme without
   touching a single class name or markup hook, which is what keeps every page,
   script and test working. Blue #2563EB is the action, #102A56 the headings, #10B981
   the healthcare green, #EAF4FF the pale blue and #E8FAF2 the mint, with #647A9B for
   supporting text and #E1EAF3 for borders.
   ========================================================================== */
:root{
  --ui-blue:#2563EB;--ui-blue-deep:#1D4ED8;--ui-navy:#102A56;--ui-green:#10B981;
  --ui-green-deep:#16A34A;--ui-sky:#EAF4FF;--ui-mint:#E8FAF2;--ui-surface:#F5F9FC;
  --ui-muted:#647A9B;--ui-line:#E1EAF3;--ui-warn:#F59E0B;--ui-critical:#DC2626;
  --ui-shadow:0 1px 2px rgba(16,42,86,.04),0 10px 28px -18px rgba(16,42,86,.18);
  /* Navigation: one white rail, blue ink, and the blue-to-green action surface. */
  --side-bg:#FFFFFF;--side-bg-deep:#FFFFFF;--side-line:#E1EAF3;--side-ink:#234B83;
  --side-ink-soft:#3F6FB5;--side-ink-muted:#8CA3BF;--side-accent:#3976C8;
  --side-tint:#EAF4FF;--side-tint-line:#CFE3FA;--nav-hover:#EAF4FF;--nav-brand:#2563EB;
  --nav-teal:#10B981;--nav-teal-deep:#0E9F76;--nav-highlight:#10B981;--nav-ink:#234B83;
  --nav-ink-soft:#3F6FB5;--nav-ink-muted:#8CA3BF;--nav-line:#E1EAF3;
  --bg:var(--ui-surface);--surface:#FFFFFF;--text:var(--ui-navy);--muted:var(--ui-muted);
  --border:var(--ui-line);--primary:var(--ui-blue);--success:var(--ui-green-deep);
  --warning:var(--ui-warn);--danger:var(--ui-critical);--r-md:12px;--r-lg:16px;
  --shadow:var(--ui-shadow)
}
body{background:var(--ui-surface);color:var(--ui-navy)}

/* Workspace. The decoration is two fixed layers behind everything: soft blue and
   mint glows in the upper-right corner and along the right edge, and two wide curves
   rising out of the lower corners. Nothing here is a background image, nothing
   scrolls with the page, and every layer sits behind the cards (z-index 0 against 1). */
.app-main{position:relative;background:transparent}
.app-main:before{content:'';position:fixed;top:0;right:0;bottom:0;left:var(--sidebar);z-index:0;pointer-events:none;background:
  radial-gradient(36% 26% at 100% 0%,rgba(37,99,235,.13) 0%,rgba(37,99,235,0) 72%),
  radial-gradient(26% 36% at 100% 42%,rgba(16,185,129,.11) 0%,rgba(16,185,129,0) 74%),
  radial-gradient(48% 26% at 2% 100%,rgba(37,99,235,.07) 0%,rgba(37,99,235,0) 70%),
  radial-gradient(42% 24% at 98% 100%,rgba(16,185,129,.10) 0%,rgba(16,185,129,0) 72%)}
.app-main:after{content:'';position:fixed;left:calc(var(--sidebar) - 16vw);bottom:-48vw;width:74vw;height:60vw;z-index:0;pointer-events:none;border-radius:50%;transform:rotate(-10deg);background:linear-gradient(150deg,rgba(37,99,235,.055) 0%,rgba(255,255,255,0) 62%)}
.content{position:relative;z-index:1;background:transparent;padding:24px 26px 26px;max-width:1580px}
.content:after{content:'';position:fixed;right:-18vw;bottom:-50vw;width:72vw;height:58vw;z-index:-1;pointer-events:none;border-radius:50%;transform:rotate(10deg);background:linear-gradient(210deg,rgba(16,185,129,.07) 0%,rgba(255,255,255,0) 60%)}

/* The rail. A white surface, a hairline on its right edge and no shadow: the page's
   own shapes carry the depth instead. */
.sidebar{background:var(--side-bg);border-right:1px solid var(--side-line);box-shadow:none}
.sidebar-head{border-bottom:1px solid var(--side-line);margin:0 2px 10px;height:80px}
.brand{padding:4px;gap:11px}
.sidebar .brand-mark{border-color:var(--side-line);box-shadow:0 2px 8px rgba(16,42,86,.10)}
/* The logo file carries the emblem above its wordmark and its green rule, so the tile
   shows the emblem alone. The file is a square whose emblem occupies x 30.0%-70.4% and
   y 20.2%-62.8%; the picture is scaled so a 224/500 slice of it fills the 42px box, which
   leaves a hair of white around the shield and stops well above the wordmark (y 64.2%).
   Only this <img> paints the tile - no background copy of the file sits behind it. */
.brand-mark{position:relative;width:42px;height:42px;min-width:42px;overflow:hidden;border:0;border-radius:12px;background:none;box-shadow:none;display:block}
.brand-mark img{position:absolute;width:calc(42px / .448);height:calc(42px / .448);left:calc(42px / 2 - .502 * (42px / .448));top:calc(42px / 2 - .411 * (42px / .448))}
.brand-mark i{display:none}
.brand-copy b{font-size:15px;font-weight:700;letter-spacing:.04em;color:var(--ui-navy)}
.brand-copy b span{color:var(--ui-green)}
.brand-copy small{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--side-ink-muted);margin-top:3px}
.collapse-btn{background:#fff;border-color:var(--side-line);color:#7C93B4;box-shadow:0 6px 16px -8px rgba(16,42,86,.35)}
.collapse-btn:hover{background:var(--ui-sky);border-color:var(--side-tint-line);color:var(--ui-blue)}
.sidebar-nav{scrollbar-color:rgba(140,163,191,.5) transparent}
.nav-label{color:var(--side-ink-muted);font-size:9.5px;letter-spacing:.11em;font-weight:700;padding:7px 12px 5px}
.side-link{height:42px;padding:0 12px;gap:11px;margin:2px 0;border-radius:11px;color:var(--side-ink);font-size:12.5px;font-weight:500}
.side-link i{color:var(--side-accent);font-size:16px}
.side-link:hover{background:var(--nav-hover);color:var(--nav-brand)}
.side-link:hover i{color:var(--nav-brand)}
.side-link.active{background:linear-gradient(90deg,var(--nav-brand) 0%,var(--nav-teal) 100%);color:#FFFFFF;font-weight:600;border-radius:11px;box-shadow:0 10px 20px -12px rgba(37,99,235,.75)}
.side-link.active i{color:#FFFFFF}
/* The foot of the rail carries the campaign artwork, the same file the sign-in page uses:
   pale blue and mint waves pinned to the bottom edge and faded into the white above them,
   so the last menu items stay crisp. It is decoration only and never takes a click. */
.sidebar:before{content:'';position:absolute;left:0;right:0;bottom:0;height:min(56%,420px);z-index:0;pointer-events:none;background:url('../images/airy-blue-and-mint-wave-background.png') center bottom/cover no-repeat;-webkit-mask-image:linear-gradient(to top,#000 0%,#000 58%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000 0%,#000 58%,rgba(0,0,0,0) 100%)}
.sidebar-head,.sidebar-nav{position:relative;z-index:1}
/* The rail ends with the menu. The signed-in person is named in the top bar, whose menu
   carries the account actions (profile, password, sign out), so the rail no longer repeats
   them: one place for navigation, one place for the account. */

/* Top bar: the title and its path on the left, the one global search in the middle,
   the date, the bell and the signed-in person on the right. The avatar stays visible at
   every width, down to a phone: it is the account menu, and the only place the sign out
   lives now that the rail no longer carries the person's card. Only its name and role
   fold away, below 1100px. */
.topbar{height:80px;padding:0 24px;gap:18px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--ui-line);backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(16,42,86,.02)}
.topbar-left{display:flex;align-items:center;gap:14px;min-width:0}
.topbar h1{font-size:20px;font-weight:700;color:var(--ui-navy);margin:0;letter-spacing:-.015em;line-height:1.2}
.breadcrumb-line{margin-top:3px;color:#93A6C2;font-size:10px}
.breadcrumb-line a{color:#5C7BA6}
.topbar-search{position:relative;flex:1 1 300px;max-width:440px;margin:0 auto}
.topbar-search>i{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:13px;color:#8CA3BF;pointer-events:none}
.topbar-search input{width:100%;height:42px;border:1px solid var(--ui-line);border-radius:12px;background:#F6FAFE;padding:0 62px 0 40px;font-size:12.5px;color:var(--ui-navy)}
.topbar-search input::placeholder{color:#96A9C4}
.topbar-search input:focus{outline:none;border-color:#BFD8F5;background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.topbar-search kbd{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:1px solid var(--ui-line);background:#fff;color:#7C93B4;font:600 9.5px Inter,sans-serif;padding:3px 6px;border-radius:6px}
.topbar-search .nav-search-results{left:0;top:calc(100% + 8px);width:min(430px,calc(100vw - 40px));border-radius:14px;border-color:var(--ui-line);box-shadow:0 26px 50px -24px rgba(16,42,86,.4)}
.top-actions{gap:10px}
.current-date{color:var(--ui-muted);font-size:12px}
.icon-btn{border:1px solid var(--ui-line);background:#fff;color:#5C7BA6;border-radius:11px;width:40px;height:40px}
.icon-btn:hover{background:var(--ui-sky);border-color:var(--side-tint-line);color:var(--ui-blue)}
.profile-btn{border-radius:12px;padding:4px 8px 4px 4px;gap:9px}
.profile-btn:hover{background:var(--ui-sky)}
.profile-btn .avatar{background:linear-gradient(135deg,var(--ui-blue) 0%,var(--ui-green) 100%);color:#fff;border-radius:11px}
.profile-btn b{color:var(--ui-navy);font-size:12.5px;font-weight:600}
.profile-btn small,.profile-btn>i{color:var(--ui-muted)}
.profile-menu{border-color:var(--ui-line);border-radius:14px;box-shadow:0 26px 50px -26px rgba(16,42,86,.45)}

/* Cards, headings and the form controls that sit on them */
.page-heading{margin-bottom:18px}
.page-heading h2{font-size:22px;color:var(--ui-navy);letter-spacing:-.015em}
.page-heading p{color:var(--ui-muted);font-size:12.5px}
.card{background:#fff;border:1px solid var(--ui-line);border-radius:16px;box-shadow:var(--ui-shadow)}
.section-title{color:var(--ui-navy);font-size:15px;font-weight:700;letter-spacing:-.01em}
.btn{border-radius:11px;font-weight:600}
.btn-primary{background:var(--ui-blue);border-color:var(--ui-blue)}
.btn-primary:hover,.btn-primary:focus{background:var(--ui-blue-deep);border-color:var(--ui-blue-deep)}
.btn-light{background:#fff;border-color:var(--ui-line);color:#3F6FB5}
.btn-light:hover{background:var(--ui-sky);border-color:var(--side-tint-line);color:var(--ui-blue)}
.form-control:focus,.form-select:focus{border-color:#BFD8F5;box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.table th{background:#F7FAFD;color:#7C93B4;border-bottom-color:var(--ui-line)}
.table td{border-color:#EEF3F9}
.table tbody tr:hover{background:#F8FBFF}

/* Statistic cards: a tinted icon tile, the figure, the label. One accent class per
   card, so the colour is the card's own rather than its position in the row. */
.stat-card{position:relative;padding:18px 18px 16px;min-height:140px;border-radius:16px;overflow:hidden;background:#fff;border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);transition:box-shadow .18s ease,border-color .18s ease}
.stat-card:after{display:none}
.stat-card .stat-icon{width:40px;height:40px;min-width:40px;border-radius:12px;font-size:17px;background:var(--ui-sky);color:var(--ui-blue)}
.stat-card h2{font-size:28px;font-weight:700;color:var(--ui-navy);margin:14px 0 0;letter-spacing:-.035em;line-height:1.1}
.stat-card p{color:var(--ui-muted);font-size:11.5px;line-height:1.35;margin:5px 0 0}
.stat-card small{color:#8CA3BF;font-size:10.5px}
.stat-card:hover{border-color:var(--side-tint-line);box-shadow:0 16px 34px -20px rgba(16,42,86,.32)}
.stat-card.accent-red .stat-icon{background:#FDECEC;color:var(--ui-critical)}
.stat-card.accent-amber .stat-icon{background:#FEF4E6;color:#B45309}
.stat-card.accent-green .stat-icon{background:var(--ui-mint);color:var(--ui-green-deep)}
.stat-link{position:absolute;inset:0;border-radius:16px}
.stat-link:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}
.warning-icon{background:#FEF4E6!important;color:#B45309!important}

/* Dashboard: the greeting, the information banner and the quick actions. */
.welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:20px}
.welcome h2{font-size:25px;font-weight:700;color:var(--ui-navy);letter-spacing:-.025em;margin:0 0 5px;line-height:1.2}
.welcome p{color:var(--ui-muted);font-size:13px;margin:0}
.welcome-actions{display:flex;gap:10px;flex-wrap:wrap}
.promo{position:relative;overflow:hidden;padding:22px;border-radius:18px;color:#fff;background:linear-gradient(120deg,var(--ui-blue) 0%,#0EA5B7 58%,var(--ui-green) 100%);box-shadow:0 20px 36px -22px rgba(37,99,235,.7)}
.promo:before{content:'';position:absolute;right:-40px;top:-50px;width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.13)}
.promo:after{content:'';position:absolute;right:26px;bottom:-56px;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.10)}
.promo-icon{position:relative;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.20);display:grid;place-items:center;font-size:19px;margin-bottom:14px}
.promo h3{position:relative;font-size:16px;font-weight:700;margin:0 0 6px;color:#fff;letter-spacing:-.01em}
.promo p{position:relative;margin:0;font-size:12px;line-height:1.5;color:rgba(255,255,255,.92)}
.quick-card{padding:16px 16px 18px}
.quick-card h3{font-size:14px;font-weight:700;color:var(--ui-navy);margin:0 0 12px}
.quick-action{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:13px;background:#fff;color:var(--ui-navy);font-size:12.5px;font-weight:500;text-decoration:none;transition:background-color .16s ease,border-color .16s ease}
.quick-action+.quick-action{margin-top:8px}
.quick-action .qa-icon{width:32px;height:32px;min-width:32px;border-radius:10px;display:grid;place-items:center;background:var(--ui-sky);color:var(--ui-blue);font-size:15px}
.quick-action .qa-arrow{margin-left:auto;color:#A9BBD4;font-size:12px;transition:transform .16s ease,color .16s ease}
.quick-action:hover{background:#F8FBFF;border-color:var(--side-tint-line);color:var(--ui-blue)}
.quick-action:hover .qa-arrow{color:var(--ui-blue);transform:translateX(2px)}
.quick-action.qa-green .qa-icon{background:var(--ui-mint);color:var(--ui-green-deep)}
.quick-action.qa-amber .qa-icon{background:#FEF4E6;color:#B45309}

/* The Settings panel is the same rail as the main navigation: white surface, blue ink,
   and the one blue-to-green surface for the section you are in. */
.settings-sidebar{background:#fff;border-color:var(--ui-line);border-radius:16px;box-shadow:var(--ui-shadow)}
.settings-link{color:var(--side-ink);border-radius:10px}
.settings-link>i{color:var(--side-accent)}
.settings-link:hover{background:var(--ui-sky);color:var(--ui-blue)}
.settings-link:hover>i{color:var(--ui-blue)}
.settings-link.active{background:linear-gradient(90deg,var(--nav-brand) 0%,var(--nav-teal) 100%);color:#fff;font-weight:600;border-radius:10px;box-shadow:0 10px 20px -12px rgba(37,99,235,.75)}
.settings-link.active>i{color:#fff}
.settings-sidebar .nav-label{color:var(--side-ink-muted)}

/* The phone navigation */
.mobile-nav{background:rgba(255,255,255,.97);border-top:1px solid var(--ui-line)}
.mobile-nav a,.mobile-nav button{color:#8CA3BF}
.mobile-nav a:hover,.mobile-nav button:hover{color:var(--ui-blue)}

/* Tablet and phone: the decoration spans the screen, and the top bar grows a second
   row for the search, so nothing is ever squeezed out of the layout. */
@media(max-width:1199px){
  .content{padding:20px 18px 24px}
  .stat-card{min-height:132px}
}
@media(max-width:991px){
  /* The bar is 68px tall at the foot of the screen, so the rail keeps that much of its
     own foot clear: the last menu item always ends above the bar rather than behind it. */
  .sidebar{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .app-main:before{left:0}
  .app-main:after{left:-34vw;width:110vw;height:86vw;bottom:-62vw}
  .content:after{display:none}
  .topbar{flex-wrap:wrap;height:auto;padding:10px 16px;gap:10px}
  .topbar-search{order:3;flex:1 0 100%;max-width:none;margin:0}
  .topbar h1{font-size:17px}
  .content{padding:18px 16px 88px}
  .welcome h2{font-size:21px}
}
@media(max-width:575px){
  .stat-card{min-height:124px;padding:14px}
  .stat-card h2{font-size:23px}
  .topbar-search kbd{display:none}
  .welcome-actions{width:100%}
  .welcome-actions .btn{flex:1}
}

/* The dashboard's chart is the poster's own graph, so the sheet is drawn without its
   population column, monthly table and reading notes: one column of green around the
   plot and its legend, at the dashboard's width. */
.monitoring-graph-only .monitoring-body{grid-template-columns:minmax(0,1fr);padding:10px}
.monitoring-graph-only .monitoring-main{border-radius:10px}
.monitoring-graph-only .monitoring-graph{padding:0 0 2px}
.monitoring-graph-only .monitoring-plot{aspect-ratio:16/8}
.monitoring-graph-only .monitoring-legend-note{display:none}
@media(max-width:767px){.monitoring-graph-only .monitoring-plot{aspect-ratio:4/3}}
@media(max-width:575px){.monitoring-graph-only .monitoring-plot{aspect-ratio:1/1}}

/* A dropdown that can be searched -------------------------------

   The manual SMS form has one row per active child, which is more than a
   scroll box can be read through, so its <select> is turned into a text field
   with the same choices under it (assets/js/app.js). The field keeps the frame
   and the focus ring of every other control, the list is painted as a panel of
   the page rather than as a native popup, and the <select> itself stays in the
   form - hidden from the eye but still the control that is submitted - so a
   page whose script never ran is still the plain dropdown. */
.search-select{position:relative}
.search-select-native{position:absolute!important;width:1px;height:1px;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
.search-select-input{padding-right:32px}
.search-select-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:#64748b;font-size:11px;line-height:1}
.search-select-toggle:hover{background:#f1f5f9;color:var(--text)}
.search-select-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;max-height:264px;overflow-y:auto;padding:4px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 16px 38px rgba(15,23,42,.16);z-index:1080}
.search-select-option{display:block;width:100%;padding:7px 9px;border:0;border-radius:7px;background:none;text-align:left;color:var(--text);font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-select-option b{display:block;font-weight:600;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-select-option small{display:block;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-select-option.active,.search-select-option:hover{background:#eff6ff}
.search-select-option.active b,.search-select-option:hover b{color:var(--primary)}
.search-select-note{padding:9px 10px;color:var(--muted);font-size:10px;text-align:center;line-height:1.4}


/* The Children register -------------------------------

   The register carries a lot per child - the photograph, the Child ID, who registered
   them, three name columns, age and sex, the parent / guardian, progress, the next
   appointment, the status and the actions. Left to their contents the columns are wider
   than the card, and the View and Edit buttons were what fell off the right-hand edge.
   The actions column therefore stays where it can be seen: it is pinned to the right of
   the scrolling area and painted over the columns that scroll beneath it, so it is on
   screen at any width while the rest of the row can still be read in full. Below 992px
   the table becomes the card list it already was, and nothing is pinned there. */
/* The person and their role are two lines wherever the register is read - in the desktop
   table and in the card list a phone shows - so the name never runs into the role. */
.children-register-table .register-staff b{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}
.children-register-table .register-staff small{display:block;color:var(--muted);font-size:10px;line-height:1.35;overflow-wrap:anywhere}
@media(min-width:992px){
    .children-register-table{min-width:1150px}
    .children-register-table th,.children-register-table td{padding-left:8px;padding-right:8px}
    .children-register-table .child-code{white-space:nowrap}
    .children-register-table th:last-child,.children-register-table td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-10px 0 12px -10px rgba(15,23,42,.22)}
    .children-register-table thead th:last-child{background:#F7FAFD;z-index:3}
    .children-register-table tbody tr:hover td:last-child{background:#F8FBFF}
    .children-register-table .child-actions{justify-content:flex-end;flex-wrap:nowrap;white-space:nowrap}
}
/* The two words inside each button need about 150px of pinned column, which on a narrower
   screen is a fifth of the row hidden behind it. Below 1400px the eye and the pencil are
   shown on their own - each keeps its own tooltip and its text for a screen reader - and
   the words come back on a screen with room for them. */
@media(min-width:992px) and (max-width:1399px){
    .children-register-table .child-actions .btn{width:32px;min-height:30px;justify-content:center;padding:.28rem}
    .children-register-table .child-actions .btn span{display:none}
}
