/* HANDA OBO Admin — single shared stylesheet. Framework-free. */
:root{--ink:#172b4d;--muted:#718096;--blue:#1769d2;--blue-dark:#1257b4;--blue-pale:#eaf3ff;--line:#e8edf4;--canvas:#f5f7fb;--white:#fff;--green:#16845b;--green-bg:#e8f7ef;--amber:#a86405;--amber-bg:#fff4dc;--red:#b42335;--red-bg:#ffeaed;--violet:#6c4acb;--violet-bg:#f1edff;--shadow:0 6px 22px rgba(31,55,90,.045);--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#fff;border-right:1px solid var(--line);padding:26px 17px 16px;display:flex;flex-direction:column;z-index:20}.brand-lockup{display:flex;align-items:center;gap:11px;padding:0 9px 31px}.brand-lockup strong{display:block;font-size:16px;letter-spacing:.09em;color:#173a70}.brand-lockup small{display:block;color:#8a98ad;font-size:11px;margin-top:1px}.brand-mark{height:39px;width:39px;display:grid;place-items:center;border-radius:13px;color:#fff;font-weight:850;font-size:22px;background:linear-gradient(145deg,#2784ee,#1557ba);box-shadow:0 5px 12px #1769d22c}.side-label{font-size:10px;font-weight:800;letter-spacing:.14em;color:#9aa7b9;padding:0 12px 10px}.nav-list{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:10px;color:#65758c;font-weight:600;font-size:13px;transition:.15s}.nav-link:hover{background:#f5f8fc;color:var(--blue)}.nav-link.active{background:var(--blue-pale);color:var(--blue);font-weight:750}.nav-icon{font-size:19px;width:21px;text-align:center;line-height:1}.sidebar-bottom{margin-top:auto}.system-card{display:flex;gap:10px;align-items:center;background:#f6f9fd;padding:12px;border-radius:12px;margin:0 5px 18px}.system-pulse,.status-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#20a66b;box-shadow:0 0 0 4px #20a66b17}.system-card strong,.system-card small{display:block}.system-card strong{font-size:11px}.system-card small{font-size:10px;color:var(--muted);margin-top:2px}.admin-mini{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:17px 4px 0}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e9edf5;color:#5a6b83;font-weight:800;flex-shrink:0}.avatar-blue{background:#e7f1ff;color:var(--blue)}.admin-mini-text{min-width:0;flex:1}.admin-mini-text strong,.admin-mini-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-mini-text strong{font-size:12px}.admin-mini-text small{font-size:10px;color:var(--muted)}.icon-button{border:0;background:transparent;color:#7e8ca0;font-size:19px;padding:5px}.main-area{margin-left:252px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;position:sticky;top:0;z-index:10}.breadcrumb{color:#9aa6b7;font-size:12px}.breadcrumb span{padding:0 10px;color:#c0cad6}.breadcrumb strong{color:#3d506b;font-weight:650}.topbar-right{display:flex;align-items:center;gap:20px}.topbar-date{color:#8290a4;font-size:12px}.menu-toggle{display:none;border:0;background:none;font-size:21px;color:var(--ink)}.content-wrap{width:100%;max-width:1700px;margin:0 auto;padding:32px 36px 40px;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:#7990ad;margin:0 0 8px}.page-heading h1{font-size:27px;line-height:1.2;letter-spacing:-.045em;margin:0 0 9px;font-weight:780;color:#172b4d}.muted-text{color:var(--muted);font-size:12px;margin:0}.wave{color:#f1b64c;font-size:21px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:9px;padding:10px 15px;font-size:12px;font-weight:700;white-space:nowrap;transition:.15s}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 3px 8px #1769d21c}.btn.primary:hover{background:var(--blue-dark)}.btn.secondary{background:#fff;border-color:#dfe6ef;color:#425570}.btn.secondary:hover{border-color:#aebfd3;background:#fafdff}.btn.ghost{background:transparent;color:#65758c}.btn.full{width:100%;padding:12px}.btn.small-btn{font-size:11px;padding:7px 10px}.btn:disabled{opacity:.65;cursor:wait}.heading-chip{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#61738d;font-size:12px;font-weight:650;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.metric-card,.panel{background:#fff;border:1px solid #e9eef5;border-radius:var(--radius);box-shadow:var(--shadow)}.metric-card{padding:19px 20px 17px;min-width:0}.metric-top{display:flex;justify-content:space-between;align-items:center}.metric-icon,.queue-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;font-size:20px;font-weight:700}.blue{background:var(--blue-pale);color:var(--blue)}.violet{background:var(--violet-bg);color:var(--violet)}.amber{background:var(--amber-bg);color:var(--amber)}.green{background:var(--green-bg);color:var(--green)}.metric-caption{font-size:10px;color:#8c9aab}.metric-number{font-size:31px;letter-spacing:-.055em;font-weight:800;margin-top:14px;line-height:1.15}.metric-label{font-size:12px;font-weight:700;color:#455873;margin-top:5px}.metric-bottom{font-size:10px;color:#91a0b3;margin-top:13px;min-height:15px}.metric-bottom a{color:var(--blue);font-weight:700}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,.9fr);gap:20px;align-items:start}.panel{overflow:hidden;margin-bottom:20px}.panel-heading{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #edf1f6}.panel-heading h2{font-size:14px;margin:0 0 4px;letter-spacing:-.015em}.panel-heading p{font-size:11px;color:#8b99ac;margin:0}.text-link{font-size:11px;color:var(--blue);font-weight:750;white-space:nowrap}.text-link span{font-size:15px;margin-left:3px}.table-scroll{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}thead th{text-align:left;background:#fbfcfe;color:#98a5b5;font-size:9px;letter-spacing:.08em;font-weight:800;padding:12px 17px;border-bottom:1px solid #edf1f6}tbody td{padding:15px 17px;border-bottom:1px solid #f0f3f7;font-size:11px;color:#61718a;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}.table-primary,.table-secondary{display:block}.table-primary{font-size:11px;color:#273b58;font-weight:750}.table-secondary{font-size:10px;color:#8b99ac;margin-top:3px;max-width:220px;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:750;white-space:nowrap}.badge.success{color:var(--green);background:var(--green-bg)}.badge.warning{color:var(--amber);background:var(--amber-bg)}.badge.danger{color:var(--red);background:var(--red-bg)}.badge.muted{color:#7c899c;background:#f0f3f7}.badge.info{color:var(--blue);background:var(--blue-pale)}.row-action{width:27px;height:27px;border:1px solid #e7edf5;border-radius:8px;display:grid;place-items:center;color:#8494a9;font-size:16px}.row-action:hover{color:var(--blue);border-color:#b8d6ff}.right-column{display:grid;gap:18px}.queue-panel{margin:0}.mini-count,.count-pill{display:inline-flex;background:#f1f5fa;color:#60728b;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:750}.queue-item{display:flex;align-items:center;gap:10px;padding:15px 20px;border-bottom:1px solid #f0f3f7}.queue-item:last-child{border-bottom:0}.queue-icon{width:33px;height:33px;font-size:17px;flex-shrink:0}.queue-copy{flex:1;min-width:0}.queue-copy strong,.queue-copy small{display:block}.queue-copy strong{font-size:11px}.queue-copy small{font-size:10px;color:#94a1b2;margin-top:3px}.queue-item>b{font-size:13px}.help-card{border-radius:var(--radius);padding:22px;background:linear-gradient(145deg,#eaf3ff,#f5f8ff);border:1px solid #dceaff}.help-icon{width:34px;height:34px;border-radius:10px;background:#fff;color:var(--blue);display:grid;place-items:center;font-size:19px}.help-card h3{font-size:14px;margin:14px 0 7px}.help-card p{font-size:11px;line-height:1.7;color:#6c7f9a;margin:0 0 15px}.help-card>a{font-size:11px;color:var(--blue);font-weight:800}.empty-state{text-align:center;padding:46px 20px;color:#8c9aab}.empty-state h3{font-size:13px;color:#3d506b;margin:9px 0 5px}.empty-state p{font-size:11px;margin:0}.empty-icon{font-size:25px;color:#aab8ca}.empty-state.compact{padding:28px 15px}.panel-foot{padding:13px 21px;border-top:1px solid #edf1f6;background:#fcfdff;color:#8a98aa;font-size:10px}.search-form{display:flex;gap:7px;align-items:center}.search-form input{width:245px;max-width:100%;border:1px solid #dfe6ef;border-radius:8px;padding:9px 11px;outline:none;color:var(--ink);font-size:11px}.search-form input:focus,input:focus,select:focus,textarea:focus{border-color:#81b6ff;box-shadow:0 0 0 3px #1769d214;outline:0}.person-cell{display:flex;align-items:center;gap:9px}.avatar-soft{background:#eef4fc;color:#4d75a9}.count-pill{margin:2px 3px 2px 0;font-weight:600}.wrap-heading{flex-wrap:wrap}.filter-row{display:flex;gap:7px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #edf1f6}.filter-chip{padding:7px 10px;border-radius:7px;background:#f5f7fa;color:#74849a;font-size:10px;font-weight:700}.filter-chip.selected{background:var(--blue-pale);color:var(--blue)}.back-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}.back-row>a{color:#60748e;font-size:12px;font-weight:650}.detail-heading{margin-bottom:20px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.78fr);gap:20px;align-items:start}.detail-main,.detail-side{min-width:0}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 22px 20px;gap:0 25px}.info-item{padding:13px 0;border-bottom:1px solid #f0f3f7;min-width:0}.info-item span,.info-item strong{display:block}.info-item span{font-size:10px;color:#8c9aab;margin-bottom:4px}.info-item strong{font-size:12px;overflow-wrap:anywhere}.document-list{padding:0 18px 18px;display:grid;gap:12px}.document-card{border:1px solid #e9eef5;border-radius:12px;padding:15px}.document-card-top{display:flex;align-items:flex-start;gap:10px}.document-symbol{width:33px;height:33px;border-radius:9px;background:#f1f5fb;color:#6282ac;display:grid;place-items:center;font-size:18px;flex-shrink:0}.document-title{flex:1;min-width:0}.document-title strong,.document-title span,.document-title small{display:block}.document-title strong{font-size:12px}.document-title span{font-size:10px;color:#73839a;margin-top:4px}.document-title small{font-size:9px;color:#9ba7b7;margin-top:4px}.file-chip{display:flex;align-items:center;gap:8px;background:#f7f9fc;border-radius:8px;padding:9px 10px;margin-top:12px;font-size:10px;color:#62738b}.file-chip>span:nth-child(2){flex:1;overflow-wrap:anywhere}.file-chip a{color:var(--blue);font-weight:750;white-space:nowrap}.file-missing{margin-top:12px;color:#9a8790;font-size:10px;background:#fff8f8;padding:9px;border-radius:7px}.review-form{display:grid;grid-template-columns:minmax(130px,.75fr) minmax(180px,1.5fr) auto;gap:10px;align-items:end;margin-top:13px;padding-top:12px;border-top:1px solid #edf1f6}.review-form label,.stack-form label,.quick-edit label{display:block;color:#60718a;font-size:10px;font-weight:700}.review-form select,.review-form textarea,.stack-form select,.stack-form textarea,.quick-edit select,.quick-edit textarea{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #dfe6ef;border-radius:8px;background:#fff;color:#334762;font-size:11px;resize:vertical}.applicant-profile{display:flex;flex-direction:column;align-items:center;padding:22px 18px 19px;border-bottom:1px solid #edf1f6}.avatar-large{width:53px;height:53px;background:#e7f1ff;color:var(--blue);font-size:20px;margin-bottom:10px}.applicant-profile>strong{font-size:13px}.applicant-profile>span{font-size:11px;color:#8492a5;margin-top:3px}.contact-line{display:flex;gap:11px;padding:13px 19px;border-bottom:1px solid #f0f3f7}.contact-line:last-child{border-bottom:0}.contact-line>span{color:#8ea0b7;font-size:16px}.contact-line small,.contact-line strong{display:block}.contact-line small{font-size:9px;color:#8b99ac}.contact-line strong{font-size:10px;overflow-wrap:anywhere;margin-top:3px}.stack-form{padding:18px 20px 20px}.stack-form label{margin-bottom:14px}.stack-form select,.stack-form textarea{font-size:12px}.form-note{font-size:10px;line-height:1.6;color:#8b99ac;margin:12px 0 0}.notice-card{background:#fff9e9;border:1px solid #f7e9bf;padding:15px;border-radius:12px}.notice-card strong{font-size:11px;color:#84520d}.notice-card p{font-size:10px;line-height:1.65;color:#987747;margin:5px 0 0}.inline-details{position:relative}.inline-details summary{cursor:pointer;color:var(--blue);font-size:11px;font-weight:750}.quick-edit{position:absolute;right:0;top:25px;z-index:5;background:#fff;padding:14px;width:230px;box-shadow:0 8px 28px #263c5c24;border:1px solid var(--line);border-radius:10px;white-space:normal}.quick-edit label{margin-bottom:10px}.notification-list{padding:0 20px}.notification-row{display:flex;gap:13px;padding:18px 2px;border-bottom:1px solid #edf1f6;align-items:flex-start}.notification-row:last-child{border-bottom:0}.notification-row.unread{background:#fbfdff}.notification-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;font-size:16px;font-weight:800}.notification-content{flex:1;min-width:0}.notification-title{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.notification-title strong{font-size:12px}.notification-content>p{font-size:11px;color:#65758c;margin:7px 0;line-height:1.65}.notification-meta{font-size:10px;color:#96a2b2}.notification-actions{padding-top:2px}.read-label{font-size:10px;color:#98a5b5}.alert{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 15px;border-radius:9px;margin-bottom:18px;font-size:12px}.alert.success{color:#13754f;background:var(--green-bg);border:1px solid #c9eedb}.alert.danger{color:var(--red);background:var(--red-bg);border:1px solid #ffd0d7}.alert-close{border:0;background:transparent;font-size:18px;color:inherit}.page-footer{display:flex;justify-content:space-between;gap:15px;padding:18px 36px;border-top:1px solid #e9eef5;color:#99a5b5;font-size:10px;background:#fff}.footer-dot{color:#23a36d;margin-left:5px}.auth-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 20% 15%,#e8f2ff,transparent 32%),radial-gradient(circle at 85% 85%,#e7f6f0,transparent 28%),#f5f7fb}.auth-card{width:100%;max-width:420px;background:#fff;padding:36px;border:1px solid #e6edf5;border-radius:20px;box-shadow:0 18px 60px #243c5d13}.auth-card>.brand-mark{margin-bottom:25px}.auth-card .brand-lockup{padding:0 0 28px}.auth-card h1{font-size:26px;letter-spacing:-.04em;margin:0 0 8px}.auth-card .eyebrow{margin-top:26px}.auth-card form{margin-top:24px}.auth-card label{display:block;font-size:11px;font-weight:700;color:#52647e;margin-bottom:16px}.auth-card input{display:block;width:100%;margin-top:7px;border:1px solid #dfe6ef;border-radius:9px;padding:12px;font-size:12px;color:var(--ink)}.auth-foot{display:flex;align-items:center;justify-content:center;gap:9px;border-top:1px solid #edf1f6;padding-top:19px;margin-top:23px;color:#8c9aab;font-size:10px}.small{font-size:10px}.auth-card .small{margin:20px 0 0;line-height:1.7}.auth-card code{background:#f2f5f9;padding:2px 4px;border-radius:4px}.is-loading{opacity:.7}.muted{color:var(--muted)}
@media(min-width:1500px){.content-wrap{padding-left:44px;padding-right:44px}.metric-card{padding:22px 23px}.metric-number{font-size:34px}}
@media(max-width:1200px){.sidebar{width:225px}.main-area{margin-left:225px}.topbar{padding:0 25px}.content-wrap{padding:27px 25px}.metric-grid{gap:12px}.metric-card{padding:16px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(250px,.8fr)}.detail-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr)}.review-form{grid-template-columns:1fr 1.4fr}.review-form button{grid-column:2;justify-self:start}}
@media(max-width:950px){.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:none}.sidebar.open{transform:translateX(0);box-shadow:12px 0 30px #172b4d20}.main-area{margin-left:0}.menu-toggle{display:block}.topbar{gap:16px;padding:0 20px}.breadcrumb{flex:1}.content-wrap{padding:25px 20px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.detail-grid{grid-template-columns:1fr}.right-column{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.detail-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.detail-side .panel{margin:0}.notice-card{align-self:start}.page-footer{padding:16px 20px}}
@media(max-width:640px){.topbar{height:62px;padding:0 14px}.topbar-date{display:none}.topbar-right{gap:0}.content-wrap{padding:21px 13px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}.page-heading h1{font-size:24px}.page-heading>.btn{width:100%}.metric-grid{gap:10px}.metric-card{padding:14px}.metric-number{font-size:27px}.metric-caption{display:none}.dashboard-grid{gap:12px}.right-column{grid-template-columns:1fr}.panel-heading{padding:16px}.panel-heading.wrap-heading{align-items:flex-start}.search-form{width:100%;flex-wrap:wrap}.search-form input{width:100%;flex:1 1 100%}.search-form .btn{flex:1}.filter-row{padding:12px;gap:5px}.filter-chip{font-size:9px;padding:6px 8px}.table-scroll table{min-width:720px}.info-grid{padding:4px 16px 15px;gap:0 15px}.info-item strong{font-size:11px}.document-list{padding:0 10px 12px}.document-card{padding:12px}.document-card-top{flex-wrap:wrap}.document-card-top .badge{margin-left:43px}.review-form{grid-template-columns:1fr}.review-form button{grid-column:auto}.detail-side{grid-template-columns:1fr}.notification-list{padding:0 13px}.notification-row{flex-wrap:wrap}.notification-actions{width:100%;padding-left:47px}.page-footer{font-size:9px;flex-direction:column;gap:5px}.auth-card{padding:26px 22px}.breadcrumb{font-size:11px}.breadcrumb span{padding:0 5px}}

/* Form controls used by the Occupancy and Clearance service queues */
.input{display:block;width:100%;min-height:38px;margin-top:6px;padding:9px 11px;border:1px solid #dfe6ef;border-radius:8px;background:#fff;color:#273b58;font:inherit;font-size:12px;box-sizing:border-box}
.input:focus{outline:2px solid #b8d6ff;border-color:#6ea8fe}
textarea.input{resize:vertical;min-height:62px}
label{font-size:11px;font-weight:700;color:#61718a}


/* ===== Page styles: clearance ===== */

.cl-page{width:100%;max-width:1700px;margin:0 auto;color:#172b4d;font-size:12px}
.cl-page *,.cl-page *:before,.cl-page *:after{box-sizing:border-box}
.cl-page a{text-decoration:none}
.cl-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.cl-breadcrumb{margin:0 0 4px;color:#7a879c;font-size:9px}
.cl-title{margin:0 0 5px;font-size:clamp(18px,1.7vw,23px);letter-spacing:-.4px}
.cl-subtitle{margin:0;color:#7d899e;font-size:10px;line-height:1.5}
.cl-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cl-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:7px 10px;border:1px solid #dce5f3;border-radius:5px;background:#fff;color:#354a68;font-size:10px;font-weight:700;cursor:pointer}
.cl-btn.primary{background:#1649cc;border-color:#1649cc;color:#fff}
.cl-btn.danger{background:#fff;border-color:#f2c8ca;color:#b4232c}
.cl-status{display:inline-flex;padding:6px 9px;border-radius:20px;background:#fff4df;color:#a66a08;font-size:9px;font-weight:750;white-space:nowrap}
.cl-status.success{background:#e8f8ee;color:#16844a}.cl-status.danger{background:#fff0f0;color:#c62835}.cl-status.info{background:#edf3ff;color:#2857b7}.cl-status.muted{background:#f0f2f5;color:#68758a}
.cl-flash{padding:11px 14px;margin-bottom:14px;border-radius:7px;background:#eaf8ef;color:#176b3d;font-size:11px}.cl-flash.danger{background:#fff0f0;color:#a12630}
.cl-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.cl-stat,.cl-panel{min-width:0;border:1px solid #e7edf6;border-radius:8px;background:#fff}
.cl-stat{padding:16px}.cl-stat-label{display:block;margin-bottom:8px;color:#75839a;font-size:10px}.cl-stat-value{font-size:24px;font-weight:750}.cl-stat-note{margin-top:5px;color:#8490a4;font-size:9px}
.cl-panel{overflow:hidden}.cl-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 12px;border-bottom:1px solid #edf1f7}
.cl-panel-head h2{margin:0 0 4px;font-size:12px}.cl-panel-head p{margin:0;color:#8490a4;font-size:9px;line-height:1.5}
.cl-count{padding:5px 7px;border-radius:5px;background:#f0f4fb;color:#63738e;font-size:9px;white-space:nowrap}
.cl-workspace{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(320px,1.65fr) minmax(235px,.78fr);gap:12px;align-items:start}
.cl-doc-list{padding:8px}.cl-doc-link{display:block;padding:10px;margin-bottom:7px;border:1px solid transparent;border-radius:6px;background:#f7f9fd;color:#354967}.cl-doc-link:last-child{margin-bottom:0}.cl-doc-link.active{border-color:#9db9ff;background:#eef4ff;box-shadow:inset 3px 0 #2457d4}
.cl-doc-title{display:flex;gap:7px;font-size:10px;font-weight:750;line-height:1.45}.cl-dot{width:7px;height:7px;flex-shrink:0;margin-top:3px;border-radius:50%;background:#9aa6b8}.cl-dot.success{background:#14a76c}.cl-dot.warning{background:#e5a026}.cl-dot.danger{background:#dc454f}.cl-dot.info{background:#3b70da}
.cl-meta{display:block;margin:6px 0 0 14px;color:#8290a5;font-size:9px;line-height:1.5;overflow-wrap:anywhere}.cl-doc-status{display:inline-block;margin:7px 0 0 14px;font-size:9px;font-weight:750}
.cl-viewer{min-width:0;padding:9px;border-radius:7px;background:#f1f4fb}.cl-viewer-nav{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:9px}.cl-viewer-nav a,.cl-viewer-nav span{padding:6px 8px;border-radius:4px;background:#fff;color:#4e607d;font-size:9px;white-space:nowrap}.cl-viewer-nav .disabled{opacity:.45;pointer-events:none}
.cl-frame{display:flex;flex-direction:column;min-height:410px;overflow:hidden;border:8px solid #172033;border-radius:2px;background:#fff}.cl-doc-heading{display:flex;justify-content:space-between;gap:12px;padding:18px 16px 12px}.cl-doc-heading h3{margin:0 0 8px;font-size:14px;line-height:1.4;text-transform:uppercase}.cl-doc-heading p{margin:0;color:#596b87;font-size:10px;line-height:1.5}.cl-tag{flex-shrink:0;padding:5px 7px;background:#eaf0ff;color:#3c5eaa;font-size:8px}
.cl-preview{display:flex;flex:1;flex-direction:column;min-height:300px}.cl-preview img,.cl-preview iframe{display:block;width:100%;min-height:400px;flex:1;border:0;background:#fff}.cl-preview img{height:auto;max-height:75vh;object-fit:contain;padding:8px}.cl-preview-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:35px 20px;text-align:center;color:#6f7f98;font-size:11px;line-height:1.7}.cl-preview-empty strong{display:block;margin-bottom:7px;color:#263a57;font-size:13px}.cl-preview-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid #e8edf6;color:#65748c;font-size:8px;overflow-wrap:anywhere}
.cl-assessment{padding:12px}.cl-assessment h3{margin:0 0 5px;font-size:12px}.cl-assessment-sub{margin:0 0 15px;color:#8390a5;font-size:9px;line-height:1.5}.cl-form label{display:block;margin:0 0 7px;color:#465975;font-size:9px;font-weight:750}.cl-field{width:100%;min-height:32px;margin-bottom:13px;padding:8px 9px;border:1px solid #e0e7f2;border-radius:5px;background:#fff;color:#304461;font:inherit;font-size:10px}.cl-radio{display:flex!important;align-items:center;gap:7px;padding:9px 8px;margin-bottom:4px!important;border:1px solid #edf1f7;border-radius:5px;background:#fff;font-size:10px!important;font-weight:500!important;cursor:pointer}.cl-radio input{margin:0;accent-color:#1457d9}.cl-form .cl-btn{width:100%;margin-bottom:7px}.cl-note{color:#8490a4;font-size:9px;line-height:1.6}.cl-mini{padding:11px 12px;border-top:1px solid #edf1f7;background:#fafbfe;color:#61718a;font-size:9px;line-height:1.7;overflow-wrap:anywhere}.cl-mini strong{display:block;color:#30435f}
.cl-filterbar{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;padding:13px 14px;border-bottom:1px solid #edf1f7;background:#fff}
.cl-filterbar .cl-filter-group{display:flex;flex-direction:column;gap:5px;min-width:180px;flex:1}
.cl-filterbar label{font-size:9px;font-weight:750;color:#63738e}
.cl-filterbar input,.cl-filterbar select{width:100%;min-height:34px;padding:8px 10px;border:1px solid #dfe6f1;border-radius:5px;background:#fff;color:#304461;font:inherit;font-size:10px}
.cl-filterbar .cl-filter-actions{display:flex;gap:7px;flex-wrap:wrap}
.cl-table-wrap{overflow-x:auto}.cl-table{width:100%;border-collapse:collapse;font-size:11px}.cl-table th,.cl-table td{padding:13px 14px;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:top}.cl-table th{background:#f8faff;color:#6d7c94;font-size:9px;white-space:nowrap}.cl-table tr:last-child td{border-bottom:0}.cl-ref{color:#2457c5;font-weight:750}.cl-muted{margin-top:5px;color:#8290a5;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.cl-empty{padding:25px;color:#7c899f;text-align:center;font-size:11px;line-height:1.7}
@media(max-width:1200px){.cl-workspace{grid-template-columns:minmax(190px,.7fr) minmax(300px,1.3fr)}.cl-assessment-column{grid-column:1/-1}.cl-assessment{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cl-assessment h3,.cl-assessment-sub,.cl-form{grid-column:1/-1}}
@media(max-width:760px){.cl-topbar{align-items:flex-start;flex-direction:column}.cl-summary{grid-template-columns:1fr}.cl-workspace{grid-template-columns:1fr}.cl-assessment-column{grid-column:auto}.cl-assessment{display:block}.cl-frame{min-height:360px}.cl-preview img,.cl-preview iframe{min-height:360px}}



/* ===== Page styles: index ===== */

/* HANDA dashboard: styles are scoped to this page. */

.hd-dashboard {
    color: #172b4d;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    font-size: 13px;
}

.hd-dashboard *,
.hd-dashboard *::before,
.hd-dashboard *::after {
    box-sizing: border-box;
}

.hd-dashboard a {
    text-decoration: none;
}

.hd-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
}

.hd-eyebrow {
    color: #63728b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
    margin: 0 0 7px;
}

.hd-heading h1 {
    font-size: clamp(22px, 2vw, 29px);
    letter-spacing: -.7px;
    line-height: 1.2;
    margin: 0 0 7px;
}

.hd-subtitle {
    margin: 0;
    color: #77849a;
    font-size: 12px;
    line-height: 1.6;
}

.hd-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    border-radius: 20px;
    background: #eef4ff;
    color: #3158a5;
    padding: 8px 11px;
    font-size: 10px;
    font-weight: 700;
}

.hd-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26a269;
}

.hd-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    border-radius: 10px;
    color: #991b1b;
    line-height: 1.6;
}

.hd-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.hd-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(23, 43, 77, .025);
}

.hd-metric {
    padding: 17px;
}

.hd-metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 17px;
}

.hd-metric-label {
    color: #586782;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.hd-metric-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    font-size: 17px;
}

.hd-blue {
    background: #edf3ff;
    color: #315fce;
}

.hd-purple {
    background: #f1edff;
    color: #7557ce;
}

.hd-orange {
    background: #fff5e6;
    color: #c47b12;
}

.hd-green {
    background: #e9f8ef;
    color: #18864b;
}

.hd-red {
    background: #fff0f0;
    color: #d92d36;
}

.hd-metric-value {
    display: block;
    font-size: clamp(25px, 2.2vw, 32px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #172b4d;
    margin-bottom: 8px;
}

.hd-metric-description {
    color: #8390a5;
    font-size: 10px;
    line-height: 1.6;
}

.hd-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .95fr);
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.hd-panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 10px;
    overflow: hidden;
}

.hd-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 19px;
    border-bottom: 1px solid #edf1f7;
}

.hd-panel-head h2 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -.2px;
}

.hd-panel-head p {
    margin: 0;
    color: #8793a7;
    font-size: 10px;
    line-height: 1.5;
}

.hd-panel-body {
    padding: 19px;
}

.hd-total-tag {
    color: #4d638b;
    background: #f0f4fb;
    padding: 6px 9px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
}

.hd-status-row {
    margin-bottom: 21px;
}

.hd-status-row:last-child {
    margin-bottom: 0;
}

.hd-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.hd-status-name {
    color: #4d5d76;
    font-size: 11px;
    line-height: 1.4;
}

.hd-status-value {
    color: #243a5b;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.hd-progress {
    height: 7px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f8;
}

.hd-progress span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    transition: width .2s ease;
}

.hd-bar-blue { background: #275bd3; }
.hd-bar-purple { background: #7c62d8; }
.hd-bar-orange { background: #e6a23b; }
.hd-bar-green { background: #23985b; }
.hd-bar-red { background: #e04b55; }
.hd-bar-gray { background: #8c98ac; }

.hd-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hd-summary-box {
    padding: 14px 12px;
    border-radius: 8px;
    background: #f3f6fd;
    min-width: 0;
}

.hd-summary-label {
    color: #687893;
    font-size: 9px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .25px;
    min-height: 27px;
}

.hd-summary-value {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.2;
    margin: 5px 0;
    color: #172b4d;
}

.hd-summary-note {
    color: #7b8aa2;
    font-size: 9px;
    line-height: 1.5;
}

.hd-summary-value.red {
    color: #d92d36;
}

.hd-summary-value.green {
    color: #16844a;
}

.hd-summary-value.blue {
    color: #285bd0;
}

.hd-recent {
    margin-bottom: 20px;
}

.hd-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.hd-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.hd-table thead th {
    padding: 12px 15px;
    text-align: left;
    white-space: nowrap;
    color: #65738d;
    background: #f6f8fd;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .4px;
}

.hd-table tbody td {
    padding: 14px 15px;
    border-top: 1px solid #edf1f7;
    color: #52627b;
    font-size: 10px;
    vertical-align: middle;
}

.hd-table tbody tr:hover {
    background: #fbfcff;
}

.hd-primary-text {
    display: block;
    color: #2457c5;
    font-weight: 750;
    white-space: nowrap;
}

.hd-secondary-text {
    display: block;
    color: #8793a7;
    margin-top: 5px;
    font-size: 9px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    line-height: 1.3;
    white-space: nowrap;
    background: #eef2f7;
    color: #596980;
}

.hd-badge.success {
    background: #e9f8ef;
    color: #16844a;
}

.hd-badge.warning {
    background: #fff4df;
    color: #a66a08;
}

.hd-badge.danger {
    background: #fff0f0;
    color: #c62835;
}

.hd-badge.info {
    background: #eaf1ff;
    color: #2857b7;
}

.hd-action {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 6px;
    background: #edf3ff;
    color: #2457c5;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.hd-action:hover {
    background: #dfe9ff;
}

.hd-empty {
    padding: 32px 18px;
    text-align: center;
    color: #7e8ba1;
    font-size: 12px;
    line-height: 1.7;
}

.hd-footer-note {
    color: #8b97aa;
    font-size: 10px;
    padding: 0 2px 10px;
}

@media (max-width: 1150px) {
    .hd-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hd-main-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
    }
}

@media (max-width: 820px) {
    .hd-main-grid {
        grid-template-columns: 1fr;
    }

    .hd-heading {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .hd-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hd-metric {
        padding: 16px;
    }

    .hd-heading {
        flex-direction: column;
    }

    .hd-panel-head,
    .hd-panel-body {
        padding: 15px;
    }

    .hd-summary-grid {
        gap: 8px;
    }
}



/* ===== Page styles: occupancy ===== */

.op-page{width:100%;max-width:1700px;margin:0 auto;color:#172b4d;font-size:12px}
.op-page *,.op-page *:before,.op-page *:after{box-sizing:border-box}
.op-page a{text-decoration:none}
.op-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.op-breadcrumb{margin:0 0 5px;color:#7a879c;font-size:9px}
.op-title{margin:0 0 5px;font-size:clamp(19px,1.7vw,24px);letter-spacing:-.3px}
.op-subtitle{margin:0;color:#7d899e;font-size:10px;line-height:1.5}
.op-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.op-stat,.op-panel{min-width:0;background:#fff;border:1px solid #e4eaf4;border-radius:8px}
.op-stat{padding:14px 16px}
.op-stat-label{display:block;color:#7d899e;font-size:10px;margin-bottom:7px}
.op-stat-value{font-size:23px;font-weight:750;color:#172b4d}
.op-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:12px;align-items:start}
.op-panel{overflow:hidden}
.op-panel-head{padding:14px;border-bottom:1px solid #e9eef6}
.op-panel-head h2{margin:0 0 5px;font-size:12px}
.op-panel-head p{margin:0;color:#8290a5;font-size:10px;line-height:1.5}
.op-list{padding:8px;max-height:calc(100vh - 290px);overflow:auto}
.op-item{display:block;margin-bottom:7px;padding:11px;border:1px solid transparent;border-radius:6px;background:#f5f7fb;color:#263d5c}
.op-item:hover{background:#eff4ff}
.op-item.active{border-color:#9dbbff;background:#eef4ff;box-shadow:inset 3px 0 #2457d6}
.op-item-title{font-size:11px;font-weight:750;overflow-wrap:anywhere}
.op-meta{margin-top:5px;color:#8492a8;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.op-pill{display:inline-flex;margin-top:8px;padding:4px 7px;border-radius:20px;background:#edf3ff;color:#2756b8;font-size:9px;font-weight:750}
.op-pill.success{background:#e8f8ee;color:#16844a}
.op-pill.danger{background:#fff0f0;color:#c62835}
.op-pill.warning{background:#fff4df;color:#9a6507}
.op-pill.muted{background:#f0f2f5;color:#68758a}
.op-details{padding:15px}
.op-details h3{margin:0 0 5px;font-size:14px}
.op-section{padding:12px 0;border-bottom:1px solid #edf1f7}
.op-section:last-child{border-bottom:0}
.op-field-label{display:block;margin-bottom:5px;color:#8290a5;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.25px}
.op-field-value{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.op-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.op-form{padding:14px}
.op-form label{display:block;margin:13px 0 6px;font-size:10px;font-weight:750}
.op-input,.op-select,.op-textarea{display:block;width:100%;padding:10px;border:1px solid #dfe6f1;border-radius:5px;background:#fff;color:#263d5c;font:inherit}
.op-textarea{min-height:105px;resize:vertical;line-height:1.5}
.op-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:33px;padding:8px 11px;border:1px solid #dce5f3;border-radius:5px;background:#fff;color:#354a68;font:inherit;font-size:10px;font-weight:750;cursor:pointer}
.op-button.primary{background:#1649cc;border-color:#1649cc;color:#fff}
.op-button.approve{background:#16844a;border-color:#16844a;color:#fff}
.op-button.reject{background:#c62835;border-color:#c62835;color:#fff}
.op-button:hover{filter:brightness(.97)}
.op-button-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.op-help{margin-top:8px;color:#8491a5;font-size:9px;line-height:1.6}
.op-empty,.op-error{padding:25px;color:#8090a8;text-align:center;line-height:1.7}
.op-error{color:#a12630;text-align:left}
.op-flash{padding:10px 13px;margin-bottom:12px;border-radius:6px;font-size:11px}
.op-flash.success{background:#e8f8ee;color:#16844a}
.op-flash.danger{background:#fff0f0;color:#b4232f}
.op-flash.warning{background:#fff4df;color:#9a6507}

.op-filter-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:13px;border-bottom:1px solid #edf1f7}
.op-filter-field{display:flex;flex-direction:column;gap:6px;min-width:190px;flex:0 0 220px}
.op-filter-field label{font-size:10px;font-weight:750;color:#465975}
.op-search-field{flex:1 1 320px}
.op-filter-actions{display:flex;gap:7px}
.op-table-meta{padding:10px 13px;color:#8491a5;font-size:10px}
.op-table-wrap{width:100%;overflow-x:auto}
.op-table{width:100%;border-collapse:collapse;min-width:850px;font-size:11px}
.op-table th,.op-table td{padding:12px 13px;text-align:left;vertical-align:middle;border-bottom:1px solid #edf1f7}
.op-table th{background:#f8faff;color:#718099;font-size:9px;text-transform:uppercase;letter-spacing:.25px;white-space:nowrap}
.op-table tbody tr:hover{background:#f8faff}
.op-table tbody tr.selected-row{background:#eef4ff}
.op-table td strong{color:#2457c5}
.op-table td small{display:block;margin-top:4px;color:#8491a5;font-size:9px}
@media(max-width:1150px){.op-layout{grid-template-columns:1fr}}
@media(max-width:700px){.op-top{align-items:flex-start;flex-direction:column}.op-stats{grid-template-columns:1fr}.op-layout{grid-template-columns:1fr}.op-grid{grid-template-columns:1fr}.op-filter-field,.op-search-field{flex:1 1 100%;min-width:100%}.op-filter-actions{width:100%}.op-filter-actions .op-button{flex:1}}



/* ===== Page styles: occupancy_details ===== */

.od-page{max-width:1250px;margin:0 auto;color:#172b4d;font-size:12px}.od-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.od-title{font-size:23px;margin:0 0 5px}.od-sub{margin:0;color:#7d899e;font-size:10px}.od-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:14px;align-items:start}.od-card{background:#fff;border:1px solid #e4eaf4;border-radius:8px;overflow:hidden;margin-bottom:14px}.od-head{padding:14px 16px;border-bottom:1px solid #edf1f7}.od-head h2{margin:0 0 4px;font-size:13px}.od-head p{margin:0;color:#8290a5;font-size:10px}.od-body{padding:16px}.od-section{padding:13px 0;border-bottom:1px solid #edf1f7}.od-section:first-child{padding-top:0}.od-section:last-child{border-bottom:0;padding-bottom:0}.od-section h3{font-size:11px;color:#2457c5;text-transform:uppercase;letter-spacing:.3px;margin:0 0 12px}.od-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.od-field label{display:block;color:#8290a5;font-size:9px;font-weight:700;text-transform:uppercase;margin-bottom:5px}.od-field div{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.od-pill{display:inline-block;padding:5px 9px;border-radius:20px;font-size:9px;font-weight:750;background:#f0f2f5;color:#68758a}.od-pill.success{background:#e8f8ee;color:#16844a}.od-pill.danger{background:#fff0f0;color:#c62835}.od-pill.warning{background:#fff4df;color:#9a6507}.od-form{padding:15px}.od-form label{display:block;font-size:10px;font-weight:750;margin:12px 0 6px}.od-form select,.od-form textarea{width:100%;padding:10px;border:1px solid #dfe6f1;border-radius:5px;font:inherit;color:#263d5c}.od-form textarea{min-height:115px;resize:vertical}.od-btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid #dce5f3;border-radius:5px;background:#fff;color:#354a68;text-decoration:none;font-size:10px;font-weight:750;cursor:pointer}.od-btn.primary{background:#1649cc;color:#fff;border-color:#1649cc}.od-flash{padding:10px 13px;margin-bottom:12px;border-radius:6px;background:#e8f8ee;color:#16844a;font-size:11px}.od-flash.danger{background:#fff0f0;color:#b4232f}.od-help{font-size:9px;color:#8491a5;line-height:1.6;margin-top:8px}@media(max-width:850px){.od-grid{grid-template-columns:1fr}.od-top{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.od-fields{grid-template-columns:1fr}}



/* ===== Page styles: permit ===== */

/* Document verification workspace. Scoped to pv-page only. */

.pv-page {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    color: #172b4d;
    font-size: 12px;
}

.pv-page *,
.pv-page *::before,
.pv-page *::after {
    box-sizing: border-box;
}

.pv-page a {
    text-decoration: none;
}

.pv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.pv-topbar-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.pv-back {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #e0e7f3;
    background: #fff;
    color: #31558d;
    font-size: 18px;
}

.pv-breadcrumb {
    margin: 0 0 4px;
    color: #7a879c;
    font-size: 9px;
}

.pv-title {
    margin: 0 0 5px;
    font-size: clamp(18px, 1.7vw, 23px);
    letter-spacing: -.4px;
}

.pv-subtitle {
    margin: 0;
    color: #7d899e;
    font-size: 10px;
    line-height: 1.5;
}

.pv-top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.pv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #dce5f3;
    border-radius: 5px;
    background: #fff;
    color: #354a68;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.pv-button.primary {
    color: #fff;
    background: #1649cc;
    border-color: #1649cc;
}

.pv-button:hover {
    filter: brightness(.97);
}

.pv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 20px;
    background: #fff4df;
    color: #a66a08;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.pv-status.success {
    background: #e8f8ee;
    color: #16844a;
}

.pv-status.danger {
    background: #fff0f0;
    color: #c62835;
}

.pv-status.info {
    background: #edf3ff;
    color: #2857b7;
}

.pv-flash {
    padding: 11px 14px;
    margin-bottom: 14px;
    border-radius: 7px;
    background: #eaf8ef;
    color: #176b3d;
    font-size: 11px;
}

.pv-flash.danger {
    background: #fff0f0;
    color: #a12630;
}

.pv-workspace {
    display: grid;
    grid-template-columns: minmax(220px, .78fr) minmax(320px, 1.65fr) minmax(235px, .78fr);
    gap: 12px;
    align-items: start;
}

.pv-column {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7edf6;
    border-radius: 8px;
    background: #fff;
}

.pv-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 13px 12px;
    border-bottom: 1px solid #edf1f7;
}

.pv-column-head h2 {
    margin: 0 0 4px;
    font-size: 12px;
}

.pv-column-head p {
    margin: 0;
    color: #8490a4;
    font-size: 9px;
    line-height: 1.5;
}

.pv-count {
    padding: 5px 7px;
    border-radius: 5px;
    background: #f0f4fb;
    color: #63738e;
    font-size: 9px;
    white-space: nowrap;
}

.pv-doc-list {
    padding: 8px;
}

.pv-doc-link {
    display: block;
    padding: 10px;
    margin-bottom: 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f7f9fd;
    color: #354967;
}

.pv-doc-link:last-child {
    margin-bottom: 0;
}

.pv-doc-link:hover {
    background: #f0f5ff;
}

.pv-doc-link.active {
    border-color: #9db9ff;
    background: #eef4ff;
    box-shadow: inset 3px 0 #2457d4;
}

.pv-doc-link-title {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.45;
}

.pv-doc-dot {
    width: 7px;
    height: 7px;
    margin-top: 3px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #9aa6b8;
}

.pv-doc-dot.success { background: #14a76c; }
.pv-doc-dot.warning { background: #e5a026; }
.pv-doc-dot.danger { background: #dc454f; }
.pv-doc-dot.info { background: #3b70da; }

.pv-doc-meta {
    display: block;
    margin: 6px 0 0 14px;
    color: #8290a5;
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pv-doc-status {
    display: inline-block;
    margin: 7px 0 0 14px;
    font-size: 9px;
    font-weight: 750;
}

.pv-progress {
    padding: 13px;
    border-top: 1px solid #edf1f7;
}

.pv-progress-title {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.pv-progress-bar {
    display: flex;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 5px;
    background: #edf1f8;
}

.pv-progress-bar .accepted { background: #14a76c; }
.pv-progress-bar .revision { background: #e6a22b; }
.pv-progress-bar .incomplete { background: #dc454f; }

.pv-progress-legend {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 8px;
    color: #7c899e;
    font-size: 8px;
}

.pv-viewer {
    min-width: 0;
    background: #f1f4fb;
    border-radius: 7px;
    padding: 9px;
}

.pv-viewer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
}

.pv-viewer-nav a,
.pv-viewer-nav span {
    padding: 6px 8px;
    border-radius: 4px;
    background: #fff;
    color: #4e607d;
    font-size: 9px;
    white-space: nowrap;
}

.pv-viewer-nav a.disabled {
    pointer-events: none;
    opacity: .45;
}

.pv-document-frame {
    display: flex;
    flex-direction: column;
    min-height: 410px;
    border: 8px solid #172033;
    border-radius: 2px;
    background: #fff;
    overflow: hidden;
}

.pv-document-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px 12px;
}

.pv-document-heading h3 {
    margin: 0 0 8px;
    color: #18253b;
    font-size: 14px;
    line-height: 1.4;
    text-transform: uppercase;
}

.pv-document-heading p {
    margin: 0;
    color: #596b87;
    font-size: 10px;
    line-height: 1.5;
}

.pv-page-tag {
    flex-shrink: 0;
    padding: 5px 7px;
    background: #eaf0ff;
    color: #3c5eaa;
    font-size: 8px;
    line-height: 1.4;
}

.pv-document-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.pv-document-preview iframe,
.pv-document-preview img {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 400px;
    border: 0;
    background: #fff;
}

.pv-document-preview img {
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    padding: 8px;
}

.pv-preview-error {
    display: none;
    padding: 18px;
    color: #a12630;
    background: #fff0f0;
    font-size: 11px;
    line-height: 1.6;
}

.pv-preview-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
    color: #6f7f98;
    font-size: 11px;
    line-height: 1.7;
}

.pv-preview-empty strong {
    display: block;
    margin-bottom: 7px;
    color: #263a57;
    font-size: 13px;
}

.pv-preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #e8edf6;
    color: #65748c;
    font-size: 8px;
}

.pv-assessment {
    padding: 12px;
}

.pv-assessment-title {
    margin: 0 0 5px;
    font-size: 12px;
}

.pv-assessment-subtitle {
    margin: 0 0 15px;
    color: #8390a5;
    font-size: 9px;
    line-height: 1.5;
}

.pv-form label {
    display: block;
    margin: 0 0 7px;
    color: #465975;
    font-size: 9px;
    font-weight: 750;
}

.pv-field {
    width: 100%;
    min-height: 32px;
    margin-bottom: 13px;
    padding: 8px 9px;
    border: 1px solid #e0e7f2;
    border-radius: 5px;
    background: #fff;
    color: #304461;
    font: inherit;
    font-size: 10px;
}

.pv-field:focus {
    outline: none;
    border-color: #8aa9ef;
    box-shadow: 0 0 0 2px #eaf0ff;
}

.pv-textarea {
    min-height: 75px;
    resize: vertical;
    line-height: 1.6;
}

.pv-radio-list {
    margin-bottom: 14px;
}

.pv-radio {
    display: flex !important;
    align-items: center;
    gap: 7px;
    padding: 9px 8px;
    margin-bottom: 4px !important;
    border-radius: 5px;
    border: 1px solid #edf1f7;
    background: #fff;
    cursor: pointer;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.pv-radio input {
    margin: 0;
    accent-color: #1457d9;
}

.pv-radio:has(input:checked) {
    background: #fff8e9;
    border-color: #f0d49a;
}

.pv-form .pv-button {
    width: 100%;
    margin-bottom: 7px;
}

.pv-form-note {
    color: #8490a4;
    font-size: 9px;
    line-height: 1.6;
}

.pv-applicant-mini {
    padding: 11px 12px;
    border-top: 1px solid #edf1f7;
    background: #fafbfe;
    color: #61718a;
    font-size: 9px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.pv-applicant-mini strong {
    display: block;
    color: #30435f;
}

.pv-workflow-panel {
    margin-top: 14px;
}

.pv-workflow-body {
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.pv-workflow-body p {
    margin: 0;
    color: #718098;
    font-size: 10px;
    line-height: 1.7;
}

.pv-workflow-body strong {
    display: block;
    margin-bottom: 6px;
    color: #314663;
}

.pv-empty {
    padding: 22px 14px;
    color: #7c899f;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 1200px) {
    .pv-workspace {
        grid-template-columns: minmax(190px, .7fr) minmax(300px, 1.3fr);
    }

    .pv-assessment-column {
        grid-column: 1 / -1;
    }

    .pv-assessment {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
    }

    .pv-assessment-title,
    .pv-assessment-subtitle {
        grid-column: 1 / -1;
    }

    .pv-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .pv-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pv-top-actions {
        justify-content: flex-start;
    }

    .pv-workspace {
        grid-template-columns: 1fr;
    }

    .pv-assessment-column {
        grid-column: auto;
    }

    .pv-assessment {
        display: block;
    }

    .pv-document-frame {
        min-height: 360px;
    }

    .pv-document-preview iframe,
    .pv-document-preview img {
        min-height: 360px;
    }

    .pv-workflow-body {
        grid-template-columns: 1fr;
    }
}



/* ===== Page styles: reports ===== */

/* Scoped styles: do not replace the shared sidebar or global stylesheet. */

.ra-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    color: #172b4d;
    font-size: 12px;
}

.ra-page *,
.ra-page *::before,
.ra-page *::after {
    box-sizing: border-box;
}

.ra-page a {
    text-decoration: none;
}

.ra-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.ra-eyebrow {
    margin: 0 0 6px;
    color: #687994;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
}

.ra-heading h1 {
    margin: 0 0 7px;
    font-size: clamp(23px, 2vw, 30px);
    letter-spacing: -.6px;
}

.ra-heading p {
    max-width: 520px;
    margin: 0;
    color: #7a879d;
    font-size: 11px;
    line-height: 1.6;
}

.ra-live {
    padding: 8px 11px;
    border-radius: 20px;
    background: #edf4ff;
    color: #3157a6;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.ra-alert {
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff1f2;
    color: #991b1b;
    line-height: 1.6;
}

.ra-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ra-card {
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 9px;
    min-width: 0;
}

.ra-metric {
    padding: 17px;
}

.ra-metric-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.ra-metric-label {
    color: #62718b;
    font-size: 9px;
    line-height: 1.5;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.ra-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    flex-shrink: 0;
    font-size: 16px;
}

.ra-icon-blue { background: #edf3ff; color: #315fce; }
.ra-icon-purple { background: #f1edff; color: #7557ce; }
.ra-icon-orange { background: #fff4e4; color: #b87811; }
.ra-icon-green { background: #e9f8ef; color: #18864b; }
.ra-icon-red { background: #fff0f0; color: #d92d36; }

.ra-number {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(25px, 2.1vw, 32px);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.1;
    color: #172b4d;
}

.ra-number.red { color: #d92d36; }

.ra-description {
    color: #8290a6;
    font-size: 10px;
    line-height: 1.55;
}

.ra-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .95fr);
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.ra-panel {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 9px;
}

.ra-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 17px 19px;
    border-bottom: 1px solid #edf1f7;
}

.ra-panel-head h2 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 750;
}

.ra-panel-head p {
    margin: 0;
    color: #8793a7;
    font-size: 10px;
    line-height: 1.5;
}

.ra-tag {
    padding: 6px 8px;
    background: #f0f4fb;
    color: #526687;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.ra-body {
    padding: 18px 19px;
}

.ra-service {
    margin-bottom: 19px;
}

.ra-service:last-child {
    margin-bottom: 0;
}

.ra-service-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.ra-service-name {
    color: #425470;
    font-size: 10px;
    line-height: 1.5;
}

.ra-service-count {
    color: #30415d;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.ra-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f8;
}

.ra-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #275bd3;
}

.ra-summary-list {
    padding: 14px;
    background: #f3f6fd;
    border-radius: 7px;
}

.ra-summary-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 7px 0;
}

.ra-summary-row:first-child { padding-top: 0; }
.ra-summary-row:last-child { padding-bottom: 0; }

.ra-dot {
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: #63718b;
}

.ra-dot.blue { background: #285bd3; }
.ra-dot.green { background: #24965b; }
.ra-dot.red { background: #dc454f; }
.ra-dot.orange { background: #d99b2b; }

.ra-summary-name {
    color: #334561;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.ra-summary-description {
    display: block;
    margin-top: 3px;
    color: #8793a7;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.5;
}

.ra-summary-count {
    color: #52627e;
    font-size: 10px;
    font-weight: 750;
}

.ra-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ra-table {
    width: 100%;
    min-width: 610px;
    border-collapse: collapse;
}

.ra-table th {
    padding: 12px 14px;
    background: #f5f7fc;
    color: #62718b;
    text-align: left;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .3px;
}

.ra-table td {
    padding: 13px 14px;
    border-top: 1px solid #edf1f7;
    color: #4c5c76;
    font-size: 10px;
    vertical-align: middle;
}

.ra-table tbody tr:hover {
    background: #fbfcff;
}

.ra-status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 20px;
    background: #edf2f8;
    color: #596980;
    font-size: 9px;
    white-space: nowrap;
}

.ra-status.success { background: #e8f7ee; color: #16844a; }
.ra-status.warning { background: #fff4df; color: #9a6509; }
.ra-status.danger { background: #fff0f0; color: #c62835; }
.ra-status.info { background: #eaf1ff; color: #2857b7; }

.ra-link {
    color: #2858c4;
    font-weight: 700;
}

.ra-link:hover { text-decoration: underline; }

.ra-footnote {
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid #e3eaff;
    border-radius: 8px;
    background: #f0f4ff;
    color: #657590;
    font-size: 10px;
    line-height: 1.7;
}

.ra-footnote strong {
    display: block;
    margin-bottom: 5px;
    color: #304563;
    font-size: 10px;
    letter-spacing: .3px;
}

.ra-empty {
    padding: 24px 16px;
    text-align: center;
    color: #7b889e;
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 1120px) {
    .ra-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ra-main-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr);
    }
}

@media (max-width: 800px) {
    .ra-main-grid {
        grid-template-columns: 1fr;
    }

    .ra-heading {
        align-items: flex-start;
    }
}

@media (max-width: 500px) {
    .ra-metrics {
        grid-template-columns: 1fr;
    }

    .ra-heading {
        flex-direction: column;
    }

    .ra-panel-head,
    .ra-body {
        padding: 14px;
    }
}


/* Period controls and reporting table extend the existing scoped design. */
.ra-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px 19px; margin-bottom: 18px; background: #fff; border: 1px solid #e8edf6; border-radius: 9px; }
.ra-field { display: flex; flex-direction: column; gap: 6px; }
.ra-field label { font-size: 10px; font-weight: 750; color: #52627e; }
.ra-field select, .ra-field input { height: 36px; border: 1px solid #d8e1ef; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 12px; background: #fff; color: #172b4d; }
.ra-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid #d8e1ef; border-radius: 6px; background: white; color: #3157a6; font-weight: 750; font-size: 11px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ra-btn:hover { background: #edf4ff; }
.ra-btn-primary { background: #285bd3; border-color: #285bd3; color: white; }
.ra-btn-primary:hover { background: #1c4cb7; color: white; }
.ra-controls-spacer { flex: 1 1 auto; }
.ra-period-caption { color: #62718b; font-size: 11px; line-height: 1.6; margin: -4px 0 17px; }
.ra-period-caption strong { color: #172b4d; }
.ra-panel + .ra-panel { margin-top: 0; }
.ra-status-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; column-gap: 9px; padding: 9px 0; border-bottom: 1px solid #e8edf6; }
.ra-status-row:last-child { border-bottom: 0; }
.ra-dot.purple { background: #7557ce; }
.ra-dot.gray { background: #9aa7bd; }
.ra-note { color: #7b889e; font-size: 10px; line-height: 1.65; margin: 13px 0 0; }
.ra-table tbody tr:nth-child(even) { background: #fafbfe; }
.ra-total-row td { font-weight: 800; background: #f0f4ff; }
@media (max-width: 700px) { .ra-controls { padding: 14px; } .ra-field { flex: 1 1 145px; } .ra-controls-spacer { flex-basis: 100%; } .ra-btn { flex: 1; } }



/* ===== Page styles: roles ===== */

/* Roles page styles are scoped to rp- to protect shared navigation. */

.rp-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    color: #172b4d;
    font-size: 12px;
}

.rp-page *,
.rp-page *::before,
.rp-page *::after {
    box-sizing: border-box;
}

.rp-page a {
    text-decoration: none;
}

.rp-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.rp-eyebrow {
    margin: 0 0 6px;
    color: #687994;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .8px;
}

.rp-heading h1 {
    margin: 0 0 7px;
    font-size: clamp(22px, 2vw, 29px);
    letter-spacing: -.6px;
}

.rp-heading p {
    max-width: 580px;
    margin: 0;
    color: #7b889e;
    font-size: 11px;
    line-height: 1.6;
}

.rp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid #dce5f5;
    border-radius: 6px;
    background: #fff;
    color: #344966;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.rp-button.primary {
    color: #fff;
    background: #174bd1;
    border-color: #174bd1;
}

.rp-button:hover {
    filter: brightness(.97);
}

.rp-banner {
    margin-bottom: 17px;
    padding: 12px 14px;
    border: 1px solid #dce7ff;
    border-radius: 8px;
    background: #f0f5ff;
    color: #526786;
    font-size: 10px;
    line-height: 1.7;
}

.rp-banner strong {
    color: #274673;
}

.rp-banner.warning {
    border-color: #f5dfb1;
    background: #fff8e9;
    color: #7c5a20;
}

.rp-error {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #991b1b;
}

.rp-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.rp-role-card {
    position: relative;
    padding: 17px;
    background: #fff;
    border: 1px solid #e7edf6;
    border-top: 3px solid #2455ce;
    border-radius: 8px;
    min-width: 0;
}

.rp-role-card.teal {
    border-top-color: #1674a5;
}

.rp-role-card.slate {
    border-top-color: #64748b;
}

.rp-role-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #edf3ff;
    color: #2855bd;
    font-size: 9px;
    font-weight: 700;
}

.rp-role-card.teal .rp-role-label {
    background: #e8f6fc;
    color: #12658c;
}

.rp-role-card.slate .rp-role-label {
    background: #eff2f6;
    color: #526176;
}

.rp-role-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.rp-role-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #edf3ff;
    color: #2455ce;
    font-size: 15px;
}

.rp-role-card.teal .rp-role-icon {
    background: #e8f6fc;
    color: #12658c;
}

.rp-role-card.slate .rp-role-icon {
    background: #eff2f6;
    color: #526176;
}

.rp-role-title h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.rp-role-description {
    min-height: 42px;
    margin: 0 0 13px;
    color: #7b889e;
    font-size: 10px;
    line-height: 1.65;
}

.rp-role-stats {
    padding-top: 11px;
    border-top: 1px solid #edf1f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.rp-role-stats span {
    color: #74829a;
    font-size: 9px;
}

.rp-role-stats strong {
    color: #263d60;
    font-size: 10px;
}

.rp-panel {
    margin-bottom: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 9px;
}

.rp-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 17px 18px;
    border-bottom: 1px solid #edf1f7;
}

.rp-panel-head h2 {
    margin: 0 0 5px;
    font-size: 14px;
}

.rp-panel-head p {
    margin: 0;
    color: #8591a6;
    font-size: 10px;
    line-height: 1.5;
}

.rp-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rp-search {
    width: 205px;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid #e0e7f2;
    border-radius: 5px;
    background: #f7f9fd;
    color: #334663;
    font-size: 10px;
    outline: none;
}

.rp-search:focus {
    border-color: #6f91e9;
    box-shadow: 0 0 0 2px #e9efff;
}

.rp-filter {
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #e0e7f2;
    border-radius: 5px;
    background: #fff;
    color: #405473;
    font-size: 10px;
}

.rp-matrix-wrap {
    width: 100%;
    overflow-x: auto;
}

.rp-matrix {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.rp-matrix thead th {
    padding: 12px 11px;
    background: #f2f5fc;
    color: #5d6d87;
    font-size: 9px;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
}

.rp-matrix thead th:first-child {
    width: 43%;
    padding-left: 18px;
    text-align: left;
}

.rp-matrix tbody td {
    padding: 10px 11px;
    border-bottom: 1px solid #eef2f7;
    color: #354966;
    font-size: 10px;
    vertical-align: middle;
}

.rp-matrix tbody tr:last-child td {
    border-bottom: none;
}

.rp-matrix tbody td:first-child {
    padding-left: 18px;
}

.rp-matrix tbody td:not(:first-child) {
    text-align: center;
    background: #f8faff;
}

.rp-matrix tbody tr:hover td {
    background-color: #f6f8fd;
}

.rp-permission-name {
    display: block;
    margin-bottom: 4px;
    color: #293e5d;
    font-weight: 700;
    line-height: 1.4;
}

.rp-permission-description {
    display: block;
    color: #8490a4;
    font-size: 9px;
    line-height: 1.5;
}

.rp-check {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e0eaff;
    color: #2455ce;
    font-size: 10px;
    font-weight: 800;
}

.rp-no-access {
    color: #a1aabd;
    font-size: 12px;
}

.rp-matrix-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 18px;
    background: #fbfcff;
    border-top: 1px solid #edf1f7;
    color: #65748d;
    font-size: 9px;
}

.rp-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rp-legend .rp-check {
    width: 14px;
    height: 14px;
    font-size: 9px;
}

.rp-policy {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 20px;
    padding: 17px;
    border: 1px solid #dce7ff;
    border-radius: 8px;
    background: #eff4ff;
}

.rp-policy-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 5px;
    background: #1268a5;
    color: #fff;
    font-size: 15px;
}

.rp-policy h3 {
    margin: 0 0 6px;
    color: #253e60;
    font-size: 11px;
}

.rp-policy p {
    margin: 0;
    color: #637590;
    font-size: 10px;
    line-height: 1.7;
}

.rp-policy code {
    font-size: 9px;
}

.rp-hidden {
    display: none !important;
}

@media (max-width: 1050px) {
    .rp-role-grid {
        grid-template-columns: 1fr;
    }

    .rp-role-description {
        min-height: 0;
    }
}

@media (max-width: 650px) {
    .rp-heading {
        flex-direction: column;
    }

    .rp-panel-head {
        align-items: flex-start;
    }

    .rp-tools {
        width: 100%;
    }

    .rp-search {
        flex: 1;
        width: auto;
    }
}



/* ===== Page styles: services ===== */

/* Service Management page; scoped to sm-page. */

.sm-page {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    color: #172b4d;
    font-size: 12px;
}

.sm-page *,
.sm-page *::before,
.sm-page *::after {
    box-sizing: border-box;
}

.sm-page a {
    text-decoration: none;
}

.sm-heading {
    margin-bottom: 20px;
}

.sm-heading h1 {
    margin: 0 0 6px;
    font-size: clamp(22px, 2vw, 29px);
    letter-spacing: -.6px;
}

.sm-heading p {
    margin: 0;
    color: #7b889e;
    font-size: 11px;
    line-height: 1.6;
}

.sm-eyebrow {
    margin-bottom: 6px !important;
    color: #647692 !important;
    font-size: 9px !important;
    font-weight: 750;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.sm-error {
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff1f2;
    color: #991b1b;
    line-height: 1.6;
}

.sm-notice {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #dce7ff;
    border-radius: 7px;
    background: #f0f5ff;
    color: #526786;
    font-size: 10px;
    line-height: 1.65;
}

.sm-notice strong {
    color: #274673;
}

.sm-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 17px;
}

.sm-metric {
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid #e7edf6;
    border-radius: 8px;
    background: #fff;
}

.sm-metric-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #65748e;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .45px;
    text-transform: uppercase;
    line-height: 1.5;
}

.sm-metric-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 5px;
    background: #edf3ff;
    color: #2858cb;
    font-size: 15px;
}

.sm-metric-value {
    margin: 8px 0 4px;
    color: #172b4d;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.2;
}

.sm-metric-note {
    color: #8390a5;
    font-size: 9px;
    line-height: 1.5;
}

.sm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(245px, .85fr);
    gap: 15px;
    align-items: start;
}

.sm-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7edf6;
    border-radius: 8px;
    background: #fff;
}

.sm-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    border-bottom: 1px solid #edf1f7;
}

.sm-panel-head h2 {
    margin: 0 0 4px;
    font-size: 13px;
}

.sm-panel-head p {
    margin: 0;
    color: #8591a6;
    font-size: 9px;
    line-height: 1.5;
}

.sm-count-pill {
    padding: 4px 7px;
    border-radius: 5px;
    background: #edf3ff;
    color: #315bb5;
    font-size: 9px;
    white-space: nowrap;
}

.sm-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sm-table {
    width: 100%;
    min-width: 570px;
    border-collapse: collapse;
}

.sm-table thead th {
    padding: 11px 8px;
    background: #f5f7fc;
    color: #65748c;
    text-align: left;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.sm-table tbody td {
    padding: 11px 8px;
    border-bottom: 1px solid #edf1f7;
    color: #52627a;
    font-size: 9px;
    line-height: 1.55;
    vertical-align: middle;
}

.sm-table tbody tr:last-child td {
    border-bottom: none;
}

.sm-table tbody tr.selected td {
    background: #eaf0ff;
}

.sm-table tbody tr:hover td {
    background: #f4f7ff;
}

.sm-service-name {
    display: block;
    max-width: 165px;
    color: #293d59;
    font-weight: 750;
    line-height: 1.5;
}

.sm-service-code {
    color: #8793a7;
    font-family: monospace;
    font-size: 8px;
    overflow-wrap: anywhere;
}

.sm-requirement-count {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 12px;
    background: #eaf0ff;
    color: #3156ac;
    font-size: 8px;
    white-space: nowrap;
}

.sm-requirement-unknown {
    color: #8591a6;
    font-size: 8px;
}

.sm-ancillary {
    color: #66758d;
    font-size: 9px;
}

.sm-configure {
    display: inline-block;
    padding: 6px 7px;
    border: 1px solid #e0e8fa;
    border-radius: 5px;
    background: #f0f4ff;
    color: #1d4fc1;
    text-align: center;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.4;
}

.sm-configure:hover {
    background: #e3ebff;
}

.sm-table-footer {
    padding: 10px 13px;
    border-top: 1px solid #edf1f7;
    background: #f9faff;
    color: #7d899f;
    font-size: 9px;
}

.sm-detail-body {
    padding: 14px;
}

.sm-detail-title {
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.5;
}

.sm-detail-description {
    margin: 0 0 13px;
    color: #74829a;
    font-size: 10px;
    line-height: 1.65;
}

.sm-active {
    padding: 4px 7px;
    border-radius: 12px;
    background: #e8f7ee;
    color: #16844a;
    font-size: 8px;
    font-weight: 750;
}

.sm-detail-meta {
    padding: 11px;
    margin-bottom: 13px;
    border-radius: 6px;
    background: #f3f6fd;
}

.sm-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 9px;
    line-height: 1.5;
}

.sm-meta-row span:first-child {
    color: #66758c;
}

.sm-meta-row strong {
    color: #314560;
    text-align: right;
    overflow-wrap: anywhere;
}

.sm-section-label {
    margin: 14px 0 8px;
    color: #687993;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.sm-ancillary-list {
    display: grid;
    gap: 6px;
}

.sm-ancillary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #edf1f7;
    border-radius: 5px;
    color: #405470;
    font-size: 9px;
    line-height: 1.45;
}

.sm-ancillary-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #eaf0ff;
    color: #2857bf;
    font-size: 9px;
    font-weight: 800;
}

.sm-ancillary-item .sm-check {
    margin-left: auto;
    color: #2857bf;
}

.sm-main-action {
    display: block;
    margin-top: 13px;
    padding: 10px;
    border-radius: 5px;
    background: #174bd1;
    color: #fff !important;
    text-align: center;
    font-size: 10px;
    font-weight: 750;
}

.sm-main-action:hover {
    background: #103eaf;
}

.sm-detail-note {
    margin-top: 10px;
    color: #8793a7;
    font-size: 9px;
    line-height: 1.6;
}

.sm-bottom-note {
    margin-top: 17px;
    padding: 11px 0;
    border-top: 1px solid #e7edf6;
    color: #8390a5;
    font-size: 9px;
}

@media (max-width: 1100px) {
    .sm-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(235px, .85fr);
    }
}

@media (max-width: 800px) {
    .sm-metrics {
        grid-template-columns: 1fr;
    }

    .sm-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sm-panel-head {
        align-items: flex-start;
    }

    .sm-metric {
        padding: 13px;
    }
}



/* Shared application list, detail and report components */
.application-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:0 0 20px;padding:18px;background:#fff;border:1px solid #e8edf4;border-radius:12px}
.application-filters .filter-group{display:flex;flex-direction:column;gap:6px;flex:1 1 160px;min-width:0}
.application-filters .filter-search{flex:2 1 260px}
.application-filters label{font-size:11px;font-weight:750;color:#50607a}
.application-filters select,.application-filters input{width:100%;height:38px;border:1px solid #dce4f1;border-radius:8px;padding:8px 10px;background:#fff;color:#243b59}
.application-filters .filter-actions{display:flex;gap:8px;align-items:center}
.application-type{font-size:10px;color:#52617e}
.generic-permit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}
.generic-permit-inner{padding:18px}
.generic-permit-details{margin:0;display:grid;gap:12px}
.generic-permit-details div{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,1.5fr);gap:10px;border-bottom:1px solid #f0f3f7;padding-bottom:9px}
.generic-permit-details dt{font-size:11px;color:#718096}
.generic-permit-details dd{margin:0;overflow-wrap:anywhere;font-size:12px;font-weight:650}
.generic-permit-form{display:grid;gap:10px;padding:18px}
.generic-permit-form label{font-size:11px;font-weight:700}
.generic-permit-form select,.generic-permit-form textarea,.generic-doc-review select,.generic-doc-review input{width:100%;border:1px solid #dbe3ed;border-radius:8px;background:#fff;padding:10px;color:#263c57}
.generic-permit-form textarea{resize:vertical}
.generic-permit-form button{justify-self:start}
.generic-permit-documents .table-scroll table{min-width:770px}
.generic-doc-review{display:flex;align-items:center;gap:7px;min-width:320px}
.generic-doc-review label{flex:1;min-width:0}
.generic-doc-review select,.generic-doc-review input{font-size:11px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:850px){.generic-permit-grid{grid-template-columns:1fr}.generic-permit-details div{grid-template-columns:1fr}.generic-doc-review{flex-direction:column;align-items:stretch;min-width:210px}}

/* Static page-specific overrides consolidated from legacy HTML inline rules */
.is-2b583d7389{margin-bottom:14px}
.is-8e11ed66d1{padding:18px}
.is-237a3ae260{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.is-9c5e6001ce{display:block;margin-bottom:6px;font-weight:700}
.is-70fc179104{width:100%;min-height:38px;padding:9px;border:1px solid #dce5f5;border-radius:6px}
.is-625f0fe35b{display:block;margin-top:5px;color:#7b889e}
.is-d73ad5e4bc{margin-top:16px;display:flex;justify-content:flex-end}
.is-ef0b7a1148{margin-bottom:0}
.is-824603272c{margin:10px 0 0}
.is-bb5a631d5c{margin:9px 0 0}
.is-56f4356299{margin-top:12px}
.is-fe575cb1bf{font-size:23px}
.is-4932d171a0{float:right}
.is-5b6aad9a3f{margin-bottom:18px;}
.is-76084ee4e5{margin-bottom:0;}
.is-4fc7b6ff7b{color:#8b97aa;font-weight:500}
.is-44dd467ba8{margin-top:22px;padding-top:16px;border-top:1px solid #edf1f7}
.is-a704721ba4{color:#334663}
.is-8fe6f2c69e{background:var(--red-bg);color:var(--red)}
.is-da12f2858b{margin-bottom:12px}
.is-04e180f808{padding:13px;display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.is-6c0d09d5fa{flex:1;min-width:220px}
.is-e48c10370c{width:auto;margin-bottom:0}
.is-7c9e50a4d1{padding:13px;border-top:1px solid #edf1f7}
.is-7d90229446{font-weight:750;margin-bottom:8px}
.is-97b602eabf{height:6px;border-radius:5px;overflow:hidden;background:#edf1f8;display:flex}
.is-82aa6fcfdf{display:flex;justify-content:space-between;gap:5px;margin-top:8px}
.is-1cee6bb3ec{display:none;padding:18px;color:#a12630;font-size:11px;line-height:1.6}
.is-4ff818ffe1{font-size:18px}
.is-27af8985f8{max-width:220px}
.is-60bde028f4{padding:12px 14px}

/* --------------------------------------------------------------------------
   Unified admin data tables & pagination (one shared stylesheet, no framework)
   -------------------------------------------------------------------------- */
.content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}
.content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) > table > thead th {
    padding: 13px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e5ebf3;
    color: #5d6e87;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .045em;
    line-height: 1.4;
    vertical-align: middle;
    text-transform: uppercase;
    white-space: nowrap;
}
.content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) > table > tbody > tr > td {
    padding: 13px 15px;
    line-height: 1.55;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f5;
    font-size: 12px;
    color: #52627c;
}
.content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) > table > tbody > tr:hover > td {
    background: #f8fbff;
}
.content-wrap table > tbody > tr[hidden] {
    display: none !important;
}
.content-wrap table .table-primary {
    font-size: 12px;
    line-height: 1.45;
    color: #263a57;
}
.content-wrap table .table-secondary {
    line-height: 1.45;
    color: #77869b;
    max-width: 260px;
}
.content-wrap table .row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 62px;
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.hando-table-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #e8edf4;
    background: #fff;
    color: #5b6d86;
    font-size: 12px;
}
.hando-page-summary {
    font-variant-numeric: tabular-nums;
}
.hando-page-actions, .hando-page-size-label, .hando-page-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hando-page-size-label { font-weight: 600; font-size: 11px; white-space: nowrap; }
.hando-page-size {
    min-width: 65px;
    height: 34px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #334963;
}
.hando-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fff;
    color: #4d617c;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hando-page-button:not(:disabled):hover { border-color: #9fc6ff; color: var(--blue); background: #f3f8ff; }
.hando-page-button.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.hando-page-button:disabled { cursor: default; opacity: .43; }
.hando-page-button.is-current:disabled { opacity: 1; }
.hando-page-button:focus-visible, .hando-page-size:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
@media (max-width: 640px) {
    .hando-table-pager { align-items: flex-start; padding: 12px; }
    .hando-page-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .hando-page-buttons { gap: 4px; }
    .hando-page-button { min-width: 30px; height: 32px; padding: 0 6px; }
    .content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) > table > thead th,
    .content-wrap :is(.table-scroll, .ra-table-wrap, .op-table-wrap, .cl-table-wrap, .sm-table-wrap) > table > tbody > tr > td { padding: 11px 12px; }
}

/* Consistent secondary tables and filter toolbars */
.content-wrap .rp-matrix > thead > tr > th {
    padding: 13px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e5ebf3;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.content-wrap .rp-matrix > tbody > tr > td {
    padding: 13px 15px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
    font-size: 12px;
}
.content-wrap .search-form { flex-wrap: wrap; }
.content-wrap .search-form :is(input,select) { min-height: 36px; }
.content-wrap .panel-heading { min-width: 0; }
.content-wrap .panel-heading > div { min-width: 0; }
@media (max-width: 760px) {
    .content-wrap .panel-heading:has(.search-form) {
        flex-direction: column;
        align-items: stretch;
    }
    .content-wrap .search-form { width: 100%; }
    .content-wrap .search-form input { width: 100%; flex: 1 1 170px; }
}


/* ===========================================================================
   HANDA OBO DESIGN SYSTEM — layout consistency pass (2026-11-16)
   Shared across all MVC views. No per-page stylesheet or CSS framework.
   Keeps existing page-specific class names and functionality untouched.
   =========================================================================== */
:root {
    --ui-surface: #ffffff;
    --ui-background: #f5f7fb;
    --ui-text: #172b4d;
    --ui-subtext: #657790;
    --ui-border: #e4eaf3;
    --ui-accent: #1769d2;
    --ui-accent-hover: #1257b4;
    --ui-radius: 12px;
    --ui-radius-sm: 8px;
    --ui-shadow: 0 4px 18px rgba(23, 43, 77, .04);
    --ui-gutter: 20px;
    --ui-control-height: 40px;
}

/* Page width, title hierarchy and shared vertical rhythm */
.content-wrap {
    max-width: 1660px;
    padding: 28px clamp(18px, 2.5vw, 36px) 48px;
}
.content-wrap :is(.hd-dashboard,.ra-page,.rp-page,.sm-page,.op-page,.cl-page,.pv-page,.od-page) {
    width: 100%;
    max-width: 1540px;
    margin-inline: auto;
    color: var(--ui-text);
    line-height: 1.55;
    font-size: 13px;
}
.content-wrap :is(.page-heading,.hd-heading,.ra-heading,.rp-heading,.sm-heading,.op-top,.cl-topbar,.pv-topbar,.od-top) {
    margin-bottom: 22px;
    gap: 18px;
    min-width: 0;
}
.content-wrap :is(.page-heading,.hd-heading,.ra-heading,.rp-heading,.op-top,.cl-topbar,.pv-topbar,.od-top) > * {
    min-width: 0;
}
.content-wrap :is(.page-heading h1,.hd-heading h1,.ra-heading h1,.rp-heading h1,.sm-heading h1,.op-title,.cl-title,.pv-title,.od-title) {
    margin: 0 0 7px;
    color: var(--ui-text);
    font-size: clamp(23px, 2.1vw, 29px);
    font-weight: 760;
    letter-spacing: -.6px;
    line-height: 1.22;
}
.content-wrap :is(.page-heading .eyebrow,.hd-eyebrow,.ra-eyebrow,.rp-eyebrow,.sm-eyebrow,.op-breadcrumb,.cl-breadcrumb,.pv-breadcrumb) {
    margin: 0 0 7px;
    color: #788ba6;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .085em;
    line-height: 1.4;
}
.content-wrap :is(.page-heading .muted-text,.hd-subtitle,.ra-heading p:not(.ra-eyebrow),.rp-heading p:not(.rp-eyebrow),.sm-heading p:not(.sm-eyebrow),.op-subtitle,.cl-subtitle,.pv-subtitle,.od-sub) {
    color: var(--ui-subtext);
    font-size: 12px;
    line-height: 1.65;
}

/* Cards, panels, metric typography and section headings */
.content-wrap :is(.panel,.metric-card,.hd-panel,.hd-card,.ra-panel,.ra-card,.rp-panel,.sm-panel,.sm-metric,.op-panel,.op-stat,.cl-panel,.cl-stat,.pv-column,.od-card) {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
    min-width: 0;
}
.content-wrap :is(.panel-heading,.hd-panel-head,.ra-panel-head,.rp-panel-head,.sm-panel-head,.op-panel-head,.cl-panel-head,.pv-column-head,.od-head) {
    min-width: 0;
    padding: 18px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--ui-border);
}
.content-wrap :is(.panel-heading,.hd-panel-head,.ra-panel-head,.rp-panel-head,.sm-panel-head,.op-panel-head,.cl-panel-head,.pv-column-head,.od-head) h2 {
    color: #293e5d;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -.015em;
    line-height: 1.4;
}
.content-wrap :is(.panel-heading,.hd-panel-head,.ra-panel-head,.rp-panel-head,.sm-panel-head,.op-panel-head,.cl-panel-head,.pv-column-head,.od-head) p {
    margin: 4px 0 0;
    color: var(--ui-subtext);
    font-size: 11px;
    line-height: 1.55;
}
.content-wrap :is(.metric-grid,.hd-metrics,.ra-metrics,.sm-metrics,.op-stats,.cl-summary) {
    gap: 16px;
    margin-bottom: 20px;
}
.content-wrap :is(.metric-card,.hd-metric,.ra-metric,.sm-metric,.op-stat,.cl-stat) {
    padding: 18px;
}
.content-wrap :is(.metric-number,.hd-metric-value,.ra-number,.sm-metric-value,.op-stat-value,.cl-stat-value) {
    font-size: clamp(25px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.55px;
    font-variant-numeric: tabular-nums;
}
.content-wrap :is(.metric-label,.hd-metric-label,.ra-metric-label,.sm-metric-label,.op-stat-label,.cl-stat-label) {
    color: #60718b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

/* Buttons: one consistent height, radius, borders, hover and focus states */
.content-wrap :is(.btn,.ra-btn,.rp-button,.op-button,.cl-btn,.pv-button,.od-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid #dce4ef;
    border-radius: var(--ui-radius-sm);
    background: #fff;
    color: #31567f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.content-wrap :is(.btn.primary,.ra-btn-primary,.rp-button.primary,.op-button.primary,.cl-btn.primary,.pv-button.primary,.od-btn.primary) {
    border-color: var(--ui-accent);
    background: var(--ui-accent);
    color: white;
}
.content-wrap :is(.btn.primary,.ra-btn-primary,.rp-button.primary,.op-button.primary,.cl-btn.primary,.pv-button.primary,.od-btn.primary):hover {
    border-color: var(--ui-accent-hover);
    background: var(--ui-accent-hover);
    color: white;
}
.content-wrap :is(.btn.secondary,.btn.ghost,.ra-btn:not(.ra-btn-primary),.rp-button:not(.primary),.op-button:not(.primary),.cl-btn:not(.primary),.pv-button:not(.primary),.od-btn:not(.primary)):hover {
    border-color: #acc7eb;
    background: #f2f7ff;
    color: #145bb7;
}
.content-wrap :is(.btn,.ra-btn,.rp-button,.op-button,.cl-btn,.pv-button,.od-btn):disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Forms and filter toolbars */
.content-wrap :is(.application-filters,.ra-controls,.op-filter-form,.cl-filterbar,.search-form) {
    gap: 12px;
}
.content-wrap :is(.application-filters,.ra-controls) {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    background: white;
}
.content-wrap :is(.application-filters,.ra-controls,.op-filter-form,.cl-filterbar,.search-form,.generic-permit-form,.generic-doc-review,.rp-page form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
.content-wrap :is(.pv-field,.cl-field,.op-input,.op-select,.is-70fc179104,.u-form-control) {
    width: 100%;
    min-height: var(--ui-control-height);
    border: 1px solid #d9e2ef;
    border-radius: var(--ui-radius-sm);
    padding: 9px 11px;
    background: #fff;
    color: #293e5b;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: none;
}
.content-wrap :is(textarea,.pv-textarea) {
    min-height: 96px;
    resize: vertical;
}
.content-wrap :is(.application-filters,.ra-controls,.op-filter-form,.cl-filterbar,.generic-permit-form,.rp-page form) label {
    color: #536680;
    font-size: 11px;
    font-weight: 700;
}
.content-wrap :is(.application-filters,.ra-controls,.op-filter-form,.cl-filterbar,.search-form) :is(input,select) {
    max-width: 100%;
}
.content-wrap :is(input,select,textarea,button,a):focus-visible,
.sidebar .nav-link:focus-visible,
.topbar .menu-toggle:focus-visible {
    outline: 2px solid #2675dd;
    outline-offset: 2px;
}

/* Application and verification tables share one readable rhythm */
.content-wrap :is(.table-scroll,.ra-table-wrap,.op-table-wrap,.cl-table-wrap,.sm-table-wrap,.rp-table-wrap) {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
.content-wrap :is(.table-scroll,.ra-table-wrap,.op-table-wrap,.cl-table-wrap,.sm-table-wrap,.rp-table-wrap) > table {
    border-collapse: collapse;
    width: 100%;
    min-width: 620px;
    table-layout: auto;
}
.content-wrap :is(.table-scroll,.ra-table-wrap,.op-table-wrap,.cl-table-wrap,.sm-table-wrap,.rp-table-wrap) > table > thead > tr > th {
    padding: 12px 15px;
    border-bottom: 1px solid var(--ui-border);
    background: #f7f9fd;
    color: #697b93;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .035em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}
.content-wrap :is(.table-scroll,.ra-table-wrap,.op-table-wrap,.cl-table-wrap,.sm-table-wrap,.rp-table-wrap) > table > tbody > tr > td {
    padding: 13px 15px;
    border-bottom: 1px solid #edf1f6;
    color: #485b75;
    font-size: 12px;
    line-height: 1.55;
    vertical-align: middle;
}
.content-wrap :is(.table-scroll,.ra-table-wrap,.op-table-wrap,.cl-table-wrap,.sm-table-wrap,.rp-table-wrap) > table > tbody > tr:nth-child(even) {
    background: #fcfdff;
}
.content-wrap :is(.table-scroll,.ra-table-wrap,.op-table-wrap,.cl-table-wrap,.sm-table-wrap,.rp-table-wrap) > table > tbody > tr:hover {
    background: #f3f8ff;
}
.content-wrap :is(.table-primary,.cl-ref) {
    color: #273d59;
    font-size: 12px;
    font-weight: 750;
}
.content-wrap :is(.table-secondary,.cl-muted) {
    color: #76869b;
    font-size: 11px;
    line-height: 1.5;
}
.content-wrap :is(.badge,.ra-status,.cl-status,.pv-status,.op-status,.rp-status) {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0;
}
.content-wrap :is(.panel-foot,.sm-table-footer,.op-table-meta) {
    color: #73839a;
    font-size: 11px;
    line-height: 1.6;
}
.content-wrap .hando-table-pager {
    border-top-color: var(--ui-border);
    border-radius: 0 0 var(--ui-radius) var(--ui-radius);
}

/* Consistent feedback and helper text */
.content-wrap :is(.alert,.ra-alert,.hd-alert,.cl-flash,.pv-flash,.op-flash,.od-flash,.rp-banner) {
    border-radius: var(--ui-radius-sm);
    line-height: 1.6;
}
.content-wrap :is(.empty-state,.ra-empty,.cl-empty,.pv-preview-empty) {
    color: #75869b;
    line-height: 1.65;
}

/* Responsive rules: no page-level horizontal overflow */
@media (max-width: 1100px) {
    .content-wrap :is(.metric-grid,.hd-metrics,.ra-metrics,.sm-metrics) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    .content-wrap { padding: 22px 16px 36px; }
    .content-wrap :is(.page-heading,.hd-heading,.ra-heading,.rp-heading,.op-top,.cl-topbar,.pv-topbar,.od-top) {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .content-wrap :is(.panel-heading,.hd-panel-head,.ra-panel-head,.rp-panel-head,.sm-panel-head,.op-panel-head,.cl-panel-head,.pv-column-head,.od-head) {
        padding: 15px 16px;
    }
    .content-wrap :is(.metric-card,.hd-metric,.ra-metric,.sm-metric,.op-stat,.cl-stat) {
        padding: 16px;
    }
    .content-wrap :is(.application-filters,.ra-controls,.op-filter-form,.cl-filterbar) {
        flex-wrap: wrap;
    }
}
@media (max-width: 520px) {
    .content-wrap :is(.metric-grid,.hd-metrics,.ra-metrics,.sm-metrics,.op-stats,.cl-summary) {
        grid-template-columns: minmax(0, 1fr);
    }
    .content-wrap :is(.page-heading h1,.hd-heading h1,.ra-heading h1,.rp-heading h1,.sm-heading h1,.op-title,.cl-title,.pv-title,.od-title) {
        font-size: 23px;
    }
    .content-wrap :is(.btn,.ra-btn,.rp-button,.op-button,.cl-btn,.pv-button,.od-btn) {
        white-space: normal;
        text-align: center;
    }
    .content-wrap .hando-page-actions { gap: 10px; }
    .content-wrap .hando-table-pager { font-size: 11px; }
}

/* ===================================================================
   Annotated document remarks (assets/annotate.js) and applicant follow-ups
   =================================================================== */
html.an-lock, html.an-lock body { overflow: hidden; }
.an-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0 6px; vertical-align: middle; }
.an-badge, .an-badge-static { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--violet-bg); color: var(--violet); border: 1px solid #ddd3ff; font-size: 11px; font-weight: 750; line-height: 1.4; white-space: nowrap; }
.an-badge { cursor: pointer; }
.an-badge:hover { background: #e7dfff; }
.an-badge-static { padding: 1px 6px; font-size: 10px; margin-left: 4px; }
.an-file-list { margin: 12px 0 4px; padding: 12px; border: 1px dashed #cfd9e8; border-radius: 10px; background: #f8fbff; display: grid; gap: 8px; }
.an-file-list-title { font-size: 11px; color: #4b5e79; }
.an-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-file-name { flex: 1 1 180px; min-width: 0; font-size: 12px; font-weight: 650; color: #23395b; overflow-wrap: anywhere; }

.an-modal { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #f5f7fb; color: var(--ink); }
.an-modal[hidden] { display: none; }
.an-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.an-heading { min-width: 0; }
.an-title { margin: 0; font-size: 16px; font-weight: 780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-subtitle { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.an-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.an-group { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; }
.an-group[hidden] { display: none; }
.an-tool, .an-size { min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #2d405e; font-size: 16px; font-weight: 750; line-height: 1; touch-action: manipulation; }
.an-size { font-size: 12px; }
.an-tool:hover, .an-size:hover { background: #eaf1fb; }
.an-tool[aria-pressed="true"], .an-size[aria-pressed="true"] { background: var(--blue); color: #fff; }
.an-tool:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.an-fit { font-size: 12px; }
.an-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c8d2e0; touch-action: manipulation; }
.an-color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--blue); }
.an-zoom-label, .an-page-label { min-width: 52px; text-align: center; font-size: 12px; font-weight: 700; color: #3d506b; }
.an-page-label { min-width: 84px; }
.an-body { flex: 1; display: flex; min-height: 0; }
.an-stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #5b6474; }
.an-canvas { position: absolute; inset: 0; display: block; touch-action: none; cursor: crosshair; }
.an-canvas[data-tool="pan"], .an-canvas.is-panning { cursor: grab; }
.an-canvas[data-tool="text"] { cursor: text; }
.an-textbox { position: absolute; z-index: 2; min-width: 180px; max-width: 60%; padding: 6px 8px; border: 2px solid #e11d2e; border-radius: 4px; background: #fff; color: #111; font-weight: 600; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.25; resize: both; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.an-stage-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%; padding: 12px 16px; border-radius: 10px; background: rgba(255,255,255,.96); color: #23395b; font-size: 13px; font-weight: 650; text-align: center; }
.an-stage-msg[hidden] { display: none; }
.an-side { width: 330px; flex-shrink: 0; overflow-y: auto; padding: 14px 16px 24px; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.an-label { font-size: 11px; font-weight: 750; color: #52647e; }
.an-field { width: 100%; padding: 9px 10px; border: 1px solid #dfe6ef; border-radius: 8px; font-size: 12px; color: #334762; resize: vertical; }
.an-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 700; color: #8a2433; }
.an-check input { margin-top: 2px; width: 16px; height: 16px; }
.an-hint { margin: 0; font-size: 10px; color: var(--muted); line-height: 1.5; }
.an-save { width: 100%; margin-top: 4px; }
.an-status { margin: 0; min-height: 18px; font-size: 11px; color: var(--green); line-height: 1.5; }
.an-status.is-error { color: var(--red); }
.an-list-title { margin: 10px 0 2px; font-size: 12px; color: #23395b; }
.an-list { display: grid; gap: 8px; }
.an-empty { margin: 0; font-size: 11px; color: var(--muted); }
.an-item { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.an-item.is-history { opacity: .75; background: #f5f6f8; }
.an-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #e9edf3; border: 1px solid #dde3ec; }
.an-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.an-meta { color: var(--muted); font-size: 10px; }
.an-comment { color: #34465f; overflow-wrap: anywhere; }
.an-item-actions { display: flex; gap: 10px; margin-top: 2px; }
.an-link { padding: 0; border: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 750; }
.an-link.danger { color: var(--red); }
@media (max-width: 900px) {
    .an-body { flex-direction: column; }
    .an-side { width: auto; max-height: 42vh; border-left: 0; border-top: 1px solid var(--line); }
    .an-toolbar { padding: 6px 8px; gap: 6px; }
}

/* Applicant follow-up requests */
.fu-banner { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #f3d48a; border-left: 5px solid #e6a22b; border-radius: 12px; background: #fff8e6; }
.fu-banner-icon { font-size: 22px; line-height: 1; }
.fu-banner-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fu-banner-body strong { font-size: 13px; color: #7a4b00; }
.fu-banner-time { font-size: 11px; color: #94670f; }
.fu-banner-message { margin: 4px 0 0; font-size: 13px; color: #4a3a12; font-style: italic; overflow-wrap: anywhere; }
.fu-banner-note { font-size: 10px; color: #a07a2c; }
.fu-banner-form { flex-shrink: 0; }
.fu-badge { display: inline-flex; margin-top: 5px; padding: 2px 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); border: 1px solid #f3d48a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.fu-badge-time { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; color: #94670f; white-space: nowrap; }
.fu-badge-message { display: block; margin-top: 3px; max-width: 260px; font-size: 10px; color: #8a6a2a; font-style: italic; overflow-wrap: anywhere; }
tr.fu-row > td { background: #fffbef; }
tr.fu-row > td:first-child { box-shadow: inset 4px 0 0 #e6a22b; }
.fu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: 12px; font-weight: 800; border: 1px solid #f3d48a; }
.fu-count.is-active { background: var(--amber-bg); color: var(--amber); }
.fu-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.fu-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #f1e2b8; border-radius: 10px; background: #fffbef; }
.fu-list a { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fu-list strong { font-size: 12px; color: #23395b; }
.fu-list span { font-size: 11px; color: var(--muted); }
.fu-list em { font-size: 11px; color: #7a5a14; overflow-wrap: anywhere; }
.fu-when { flex-shrink: 0; font-size: 11px; font-weight: 750; color: var(--amber) !important; }
@media (max-width: 700px) {
    .fu-banner { flex-direction: column; }
}


/* HANDA OBO — application review duration only; all styles remain in shared styles.css */
.application-view-timer{position:fixed;right:18px;bottom:18px;z-index:5000;max-width:calc(100vw - 36px);background:#17375f;color:#fff;border:1px solid #315b91;border-radius:20px;padding:9px 14px;box-shadow:0 6px 24px rgba(0,0,0,.13);font-size:12px;font-weight:650;pointer-events:none}
.app-time-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.app-time-stat{padding:17px 18px}
.app-time-stat span,.app-time-stat strong{display:block}
.app-time-stat span{font-size:11px;color:var(--muted);margin-bottom:9px}
.app-time-stat strong{font-size:22px;color:var(--ink);letter-spacing:-.03em;overflow-wrap:anywhere}
.app-time-link{color:var(--blue);font-weight:700;text-decoration:none}
.app-time-link:hover{text-decoration:underline}
.app-time-footnote{margin:12px 2px 22px;line-height:1.6}
@media(max-width:850px){.app-time-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.application-view-timer{right:10px;bottom:10px;font-size:11px;padding:7px 10px}.app-time-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.app-time-stat{padding:12px}}

/* HANDA shared table sorting and date filters — vanilla JS, all page classes scoped. */
.content-wrap .hando-sort-toolbar {
    display: flex; flex-wrap: wrap; align-items: end; gap: 10px 13px;
    padding: 13px 15px; border: 1px solid #e1e8f1; border-bottom: 0;
    border-radius: 10px 10px 0 0; background: #f8fafd;
}
.content-wrap .hando-sort-field {
    display: flex; flex-direction: column; gap: 5px;
    min-width: 120px; max-width: 100%;
    color: #556781; font-size: 11px; font-weight: 750;
}
.content-wrap .hando-sort-field:first-child { flex: 1 1 200px; max-width: 330px; }
.content-wrap .hando-sort-select,
.content-wrap .hando-sort-date {
    height: 37px; width: 100%; border: 1px solid #d4deea;
    border-radius: 7px; padding: 7px 10px; background: white;
    color: #233955; font: inherit; font-weight: 600; font-size: 12px;
}
.content-wrap .hando-sort-field:has(.hando-sort-date) { flex: 0 1 150px; }
.content-wrap .hando-sort-select:disabled { opacity: .55; }
.content-wrap .hando-sort-reset {
    min-height: 37px; padding: 8px 13px; background: #fff;
    color: #2754a6; border: 1px solid #d3deee; border-radius: 7px;
    font-size: 12px; font-weight: 750; cursor: pointer;
}
.content-wrap .hando-sort-reset:hover { background: #eaf2ff; }
.content-wrap .hando-sort-help {
    margin-left: auto; padding-bottom: 8px; color: #7b8ca3;
    font-size: 10px; white-space: nowrap;
}
.content-wrap .hando-filter-empty td {
    padding: 20px !important; text-align: center; color: #7b8ca3;
    font-size: 12px; background: #fbfcfe;
}
.content-wrap table.hando-sortable-table tbody tr[hidden],
.content-wrap table.hando-sortable-table tbody tr.hando-filter-empty[hidden] { display: none !important; }
@media (max-width: 650px) {
    .content-wrap .hando-sort-toolbar { padding: 12px; gap: 9px; }
    .content-wrap .hando-sort-field { flex: 1 1 135px; }
    .content-wrap .hando-sort-field:first-child { max-width: none; }
    .content-wrap .hando-sort-help { margin-left: 0; width: 100%; }
}

/* Unified permit-details pages — plain CSS, shared with all HANDA pages. */
.permit-review-heading { align-items:center; }
.permit-review-overview { margin-bottom:18px; }
.permit-review-kpis { padding:18px 21px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px; }
.permit-review-kpis>div { min-width:0; }
.permit-review-kpis span {display:block;color:#7b8ba2;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.035em;margin-bottom:5px}
.permit-review-kpis strong {font-size:12px;overflow-wrap:anywhere;color:#223852;font-weight:750}
.permit-review-columns { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,.92fr);gap:18px;align-items:start; }
.permit-review-main,.permit-review-side { min-width:0; }
.permit-review-sections {padding:16px 19px;}
.permit-review-section { border:1px solid #e8edf5;border-radius:10px;overflow:hidden;margin-bottom:12px;background:#fff; }
.permit-review-section:last-child {margin-bottom:0}
.permit-review-section summary {display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;background:#f8fafd;padding:12px 15px;color:#263b59;font-size:12px;font-weight:760}
.permit-review-section summary::-webkit-details-marker {display:none}
.permit-review-section summary::before {content:'▸';font-size:11px;color:#7a91ad;transition:transform .15s}
.permit-review-section[open] summary::before {transform:rotate(90deg)}
.permit-review-section summary span {margin-left:auto;font-size:10px;color:#8394a8;font-weight:600}
.permit-review-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0;padding:7px 16px 11px}
.permit-review-fields>div {padding:10px 0;border-bottom:1px solid #f1f4f8;min-width:0}
.permit-review-fields dt {font-size:10px;color:#8492a8;font-weight:650;margin-bottom:5px}
.permit-review-fields dd {font-size:12px;font-weight:650;color:#334661;overflow-wrap:anywhere;line-height:1.65;margin:0;white-space:normal}
.permit-review-side .panel {margin-bottom:18px}
.permit-review-summary {margin:0;padding:8px 18px 13px}
.permit-review-summary>div {display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f1f4f8}
.permit-review-summary>div:last-child {border-bottom:0}
.permit-review-summary dt {font-size:11px;color:#7c8a9b}
.permit-review-summary dd {font-weight:750;font-size:11px;text-align:right;margin:0;overflow-wrap:anywhere}
.permit-review-documents .heading-chip {font-size:11px;flex-shrink:0}
.permit-review-table {min-width:920px;white-space:normal}
.permit-review-table td {vertical-align:top}
.permit-review-document-title {display:block;color:#273c58;font-size:11px;max-width:280px}
.permit-review-source {display:block;font-size:10px;color:#8290a4;margin-bottom:8px}
.permit-review-file {display:inline-block;font-size:11px;color:#1769d2;font-weight:750;margin-right:8px;padding:5px 0}
.permit-review-file:hover {text-decoration:underline}
.permit-review-document-form {min-width:365px;align-items:center}
.permit-review-document-form .btn {padding:9px 12px}
@media(max-width:1050px){.permit-review-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.permit-review-columns{grid-template-columns:1fr}}
@media(max-width:600px){.permit-review-kpis{padding:14px;gap:13px}.permit-review-fields{grid-template-columns:1fr}.permit-review-sections{padding:12px}.permit-review-document-form{min-width:300px}.permit-review-heading>.btn{width:100%}}
