:root{--blue:#0b63ce;--blue2:#287ee8;--ink:#19334f;--muted:#718197;--bg:#f5f8fc;--panel:#fff;--line:#e5ebf3;--green:#18b888;--red:#ef6373;--orange:#f29b38;--purple:#8a62df;--cyan:#1ab7c8;--shadow:0 10px 28px rgba(20,55,95,.08);--r:18px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Tahoma,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}button,input,select,textarea{font:inherit;-webkit-user-select:text;user-select:text}.hidden{display:none!important}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#2779e5 0,transparent 30%),linear-gradient(145deg,#0b63ce,#173958 65%,#0b1e34)}
.login-card{width:min(450px,100%);background:#fff;border-radius:28px;padding:34px;box-shadow:0 30px 90px #0005}.brand-lockup{display:flex;align-items:center;gap:14px;margin-bottom:26px}.brand-icon{width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,var(--blue),#38bdf8);display:grid;place-items:center;color:#fff;font-size:24px;font-weight:900}.brand-lockup h1{margin:0;font-size:30px}.brand-lockup p{margin:5px 0 0;color:var(--muted)}
label{display:block;font-size:12px;font-weight:800;margin:10px 0 6px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:12px 13px;outline:none}input:focus,select:focus,textarea:focus{border-color:#86b6f3;box-shadow:0 0 0 4px #eaf3ff}
.btn{border:0;border-radius:11px;padding:10px 15px;font-weight:800;cursor:pointer}.primary{color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue2))}.soft{background:#edf3fa;color:var(--ink)}.success{background:#e5f8f1;color:#087d5b}.danger{background:#ffe7ea;color:#a82c3b}.wide{width:100%;margin-top:18px}.error{margin-top:12px;padding:12px;border-radius:12px;background:#ffe7ea;color:#a82c3b}
.app{min-height:100vh;display:flex}.sidebar{position:fixed;right:0;top:0;bottom:0;width:280px;background:#fff;border-left:1px solid var(--line);padding:20px 14px;overflow:auto;z-index:40}.side-brand{display:flex;align-items:center;gap:10px;padding:0 8px 17px;border-bottom:1px solid var(--line)}.side-logo{font-size:30px}.side-brand strong{display:block;font-size:20px}.side-brand small{display:block;color:var(--muted);margin-top:4px}.side-brand .icon-btn{margin-right:auto}
#nav{display:flex;flex-direction:column;gap:5px;margin-top:15px}.nav-item{border:0;background:transparent;border-radius:12px;padding:12px 14px;text-align:right;color:#304a67;font-weight:800;cursor:pointer;display:flex;gap:10px;align-items:center}.nav-item:hover{background:#f1f6fc}.nav-item.active{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;box-shadow:0 8px 18px #0b63ce25}
.workspace{margin-right:280px;width:calc(100% - 280px);min-height:100vh}.topbar{position:sticky;top:0;z-index:30;height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.top-title{display:flex;align-items:center;gap:12px}.top-title h2{font-size:20px;margin:0}.top-title small{color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.date-chip{font-size:12px;color:#52677f}.bell{position:relative;border:0;background:#f1f5fa;width:42px;height:42px;border-radius:50%;cursor:pointer}.bell b{position:absolute;top:-2px;left:-2px;min-width:18px;height:18px;border-radius:999px;background:var(--blue);color:#fff;font-size:10px;display:grid;place-items:center}.user-chip{display:flex;align-items:center;gap:8px;min-width:155px}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e7f0ff;color:var(--blue);font-weight:900}.user-chip small{display:block;color:var(--muted);margin-top:2px}
.icon-btn{width:38px;height:38px;border:0;border-radius:10px;background:#eef3f9;color:var(--ink);cursor:pointer}.mobile-only{display:none}.content{max-width:1500px;margin:auto;padding:24px}
.stats{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:16px}.stats.compact{grid-template-columns:repeat(4,1fr)}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:17px;box-shadow:var(--shadow)}.stat-head{display:flex;justify-content:space-between;gap:8px}.stat-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--soft,#eaf2ff);color:var(--tone,var(--blue));font-size:22px}.stat label{margin:0;color:#536b87}.stat strong{display:block;font-size:29px;color:var(--tone,var(--blue));margin-top:6px}.stat small{color:var(--muted)}
.grid2{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-bottom:16px}.grid2.equal{grid-template-columns:1fr 1fr}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.panel-head h3{margin:0;font-size:16px}.panel-head small{color:var(--muted)}.link-btn{border:0;background:transparent;color:var(--blue);font-weight:800;cursor:pointer}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:right;padding:12px 10px;border-bottom:1px solid var(--line);font-size:12px}th{background:#fbfcfe;color:#5c7189;font-size:11px}.employee-cell{display:flex;align-items:center;gap:8px}.mini-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:var(--blue);font-weight:900}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2f7;color:#53657d;font-size:10px;font-weight:900}.badge.ok{background:#e5f8f1;color:#087d5b}.badge.warn{background:#fff1df;color:#a86718}.badge.danger{background:#ffe8eb;color:#ab2f3e}.badge.info{background:#e7f0ff;color:#1f60b0}.badge.purple{background:#f0eaff;color:#6c45be}
.chart{height:250px;display:flex;align-items:flex-end;gap:12px;padding:15px 7px}.bar-group{flex:1;display:flex;align-items:center;flex-direction:column;gap:6px}.bars{height:190px;width:34px;display:flex;align-items:flex-end;gap:3px}.bar{width:50%;border-radius:5px 5px 2px 2px;min-height:2px}.bar.present{background:var(--green)}.bar.absent{background:var(--red)}.bar-label{font-size:10px;color:var(--muted)}
.alert-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-right:4px solid var(--orange);border-radius:12px;padding:11px;margin:8px 0}.alert-row.danger{border-right-color:var(--red)}.alert-row strong{font-size:12px}.alert-row small{display:block;color:var(--muted);margin-top:3px}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini-box{background:#f9fbfe;border:1px solid var(--line);border-radius:14px;padding:16px}.mini-box strong{display:block;font-size:25px}.mini-box small{color:var(--muted)}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.search{display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 10px;min-width:min(520px,100%)}.search input{border:0;box-shadow:none!important}.actions{display:flex;gap:8px}.inline-filter{display:flex;align-items:center;gap:8px}.inline-filter label{margin:0}.inline-filter input{width:auto}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:11px;font-weight:800;color:#52677f}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.person-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}.person-head{display:flex;align-items:center;gap:12px}.person-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#e0f2fe);color:var(--blue);font-weight:900;font-size:20px}.person-head h3{margin:0;font-size:15px}.person-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.person-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.info-box{background:#f8fbff;border-radius:11px;padding:10px}.info-box small{display:block;color:var(--muted);font-size:10px}.info-box strong{font-size:11px}.card-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}.mini-btn{border:0;border-radius:8px;padding:7px 9px;background:#eef4fb;color:#294a71;font-weight:800;cursor:pointer;font-size:11px}.mini-btn.danger{background:#ffe8eb;color:#a52e3b}
.alert-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.alert-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--orange);border-radius:16px;padding:14px;box-shadow:var(--shadow)}.alert-card.danger{border-top-color:var(--red)}.alert-card h3{margin:0 0 7px;font-size:13px}.alert-card p{margin:3px 0;color:var(--muted);font-size:11px}.score{font-size:30px;font-weight:900;color:var(--blue);margin-top:12px}.stars{color:#f59e0b}
.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.report-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;text-align:right;box-shadow:var(--shadow);cursor:pointer}.report-card span{font-size:30px}.report-card strong{display:block;margin:10px 0 5px}.report-card small{color:var(--muted)}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full-panel{grid-column:1/-1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.form-grid .full{grid-column:1/-1}.save-row{display:flex;justify-content:flex-end;margin-top:16px}.action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.action-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;text-align:center;box-shadow:var(--shadow)}.action-card span{font-size:34px}.action-card p{color:var(--muted);min-height:42px}.clone-steps{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.clone-steps div{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow)}.clone-steps b{width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center}.clone-steps i{color:#9aafc5}
.modal{width:min(780px,calc(100% - 24px));border:0;border-radius:20px;padding:0;box-shadow:0 30px 90px #001a4460}.modal::backdrop{background:#0b213f66}.modal form{padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.modal-head h2{margin:0}.modal-head small{color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
#toast{position:fixed;left:18px;bottom:18px;z-index:100;background:#102d4e;color:#fff;border-radius:12px;padding:12px 15px;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}#toast.show{opacity:1;transform:none}.overlay{position:fixed;inset:0;background:#0b213f66;z-index:35}
@media(max-width:1250px){.stats{grid-template-columns:repeat(3,1fr)}.cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.sidebar{transform:translateX(105%);transition:.2s}.sidebar.open{transform:none}.workspace{margin-right:0;width:100%}.mobile-only{display:grid;place-items:center}.grid2,.settings-grid{grid-template-columns:1fr}.date-chip{display:none}.action-grid,.report-grid{grid-template-columns:1fr 1fr}.alert-cards{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.topbar{height:auto;min-height:70px;padding:10px 12px}.top-actions{gap:6px}.user-chip{min-width:0}.user-chip div{display:none}.content{padding:14px}.stats,.stats.compact{grid-template-columns:repeat(2,1fr);gap:9px}.stat{padding:14px}.stat strong{font-size:23px}.toolbar{align-items:stretch;flex-direction:column}.search{min-width:0}.actions{display:grid;grid-template-columns:1fr 1fr}.cards,.alert-cards,.action-grid,.report-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full,.full-panel{grid-column:auto}.clone-steps i{display:none}}

.import-zone,.danger-row{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#f8fbff;border:1px dashed #bfd3ea;border-radius:15px;padding:16px}.import-zone strong,.danger-row strong{font-size:14px}.import-zone p,.danger-row p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.8}.file-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.import-result{margin-top:12px;padding:12px;border-radius:12px;background:#eef8f4;color:#176649;font-size:12px;line-height:1.8}.import-result.has-errors{background:#fff4e8;color:#975916}.danger-panel{border-color:#ffd6dc;background:#fffafb}.danger-row{background:#fff4f6;border-color:#f2b8c1}.danger-row .btn{white-space:nowrap}@media(max-width:700px){.import-zone,.danger-row{align-items:stretch;flex-direction:column}.import-zone .actions{width:100%}.import-zone .actions .btn,.import-zone .actions .file-btn,.danger-row .btn{width:100%}}

/* v2.2 professional screens */
.screen-stats{margin-bottom:16px}.screen-stats .stat{min-height:112px}.screen-stats .stat strong{font-size:24px}.screen-stats .stat label{font-size:11px}
.empty-state{padding:38px 20px;text-align:center;color:var(--muted)}.empty-state .empty-icon{width:58px;height:58px;border-radius:18px;background:#eef5ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 12px;font-size:25px}.empty-state strong{display:block;color:var(--ink);margin-bottom:5px}
.modal.employee-editor{width:min(940px,calc(100% - 22px));max-height:92vh}.modal.employee-editor form{padding:0}.modal.employee-editor .modal-head{position:sticky;top:0;z-index:3;background:#fff;padding:20px 22px 14px;border-bottom:1px solid var(--line);margin:0}.modal.employee-editor #modalBody{padding:18px 22px;max-height:68vh;overflow:auto}.modal.employee-editor .modal-actions{position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid var(--line);padding:14px 22px;margin:0}
.form-section{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:6px 0 0;padding:12px 14px;border-radius:13px;background:linear-gradient(135deg,#f5f9ff,#fbfdff);border:1px solid #e0eaf6}.form-section .section-icon{width:34px;height:34px;border-radius:10px;background:#e4efff;color:var(--blue);display:grid;place-items:center;font-weight:900}.form-section strong{display:block;font-size:13px}.form-section small{display:block;color:var(--muted);margin-top:2px}.field-note{display:block;color:var(--muted);font-size:10px;margin-top:5px}.required-note{color:#b63a49}.license-field.hidden-field{display:none!important}
.confirm-modal{width:min(420px,calc(100% - 28px));border:0;background:transparent;padding:0}.confirm-modal::backdrop{background:#102c4b99;backdrop-filter:blur(3px)}.confirm-card{background:#fff;border-radius:22px;padding:25px;text-align:center;box-shadow:0 30px 90px #001a4460}.confirm-icon{width:64px;height:64px;border-radius:20px;background:#fff0f2;color:#c43c4e;display:grid;place-items:center;font-size:29px;font-weight:900;margin:0 auto 14px}.confirm-card h2{margin:0 0 8px;font-size:19px}.confirm-card p{margin:0;color:var(--muted);line-height:1.8;font-size:12px}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
#toast{display:flex;align-items:center;gap:9px;min-width:220px;box-shadow:0 16px 45px #001a4433}#toast::before{content:'✓';width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#ffffff22;font-weight:900}#toast.error-toast{background:#9c2d3b}#toast.error-toast::before{content:'!'}#toast.info-toast{background:#215d9e}#toast.info-toast::before{content:'i'}
.metric-note{display:block;margin-top:4px;color:var(--muted);font-size:10px}.card-highlight{border:1px solid #d8e8fb;background:linear-gradient(180deg,#fff,#fbfdff)}
@media(max-width:700px){.modal.employee-editor #modalBody{max-height:70vh;padding:14px}.modal.employee-editor .modal-head,.modal.employee-editor .modal-actions{padding:14px}.screen-stats{grid-template-columns:repeat(2,1fr)}.confirm-actions{grid-template-columns:1fr 1fr}}


/* v2.3.0 — مركز التحكم والتطوير */
.control-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 28px;margin-bottom:16px;border-radius:22px;background:linear-gradient(135deg,#0b63ce,#18466f 72%,#102d4e);color:#fff;box-shadow:0 16px 34px rgba(11,99,206,.18);overflow:hidden;position:relative}
.control-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:#ffffff12;left:-70px;top:-90px}
.control-hero .eyebrow{font-size:10px;font-weight:900;letter-spacing:1.4px;color:#b9ddff}
.control-hero h2{font-size:26px;margin:8px 0 6px}.control-hero p{margin:0;max-width:720px;color:#d8e9fb;line-height:1.8}
.version-orb{min-width:180px;border:1px solid #ffffff24;background:#ffffff12;border-radius:18px;padding:18px;text-align:center;backdrop-filter:blur(8px);z-index:1}
.version-orb small{display:block;color:#d8e9fb}.version-orb strong{display:block;font-size:28px;margin:7px 0 9px}
.release-flow{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:12px 0 18px;padding:13px;border:1px solid var(--line);background:#f8fbff;border-radius:14px}
.release-flow i{color:#a7b8ca}.release-step{display:flex;align-items:center;gap:7px;color:#6c8097;font-size:11px;font-weight:800}.release-step b{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#e8eef5;color:#61748b}.release-step.active{color:var(--blue)}.release-step.active b{background:var(--blue);color:#fff}
.control-form{margin-top:5px}.policy-list{display:grid;gap:9px}.policy-list>div{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:12px;background:#fbfdff}.policy-list b{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eaf2ff;color:var(--blue);font-size:11px}.policy-list span{display:block}.policy-list strong{display:block;font-size:12px}.policy-list small{display:block;color:var(--muted);margin-top:3px;line-height:1.5}
.control-head{align-items:flex-start}.control-table input[type="checkbox"]{width:18px;height:18px;accent-color:var(--blue)}
.system-name-cell strong{display:block}.system-name-cell small{display:block;color:var(--muted);margin-top:3px}.version-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eaf2ff;color:#1f60b0;font-weight:900;font-size:10px}
.control-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 4px 0}.control-actions-bar strong{display:block}.control-actions-bar small{display:block;color:var(--muted);margin-top:4px}
.update-status{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;background:#eef3f8;color:#566b83}.update-status.queued{background:#fff0dc;color:#a76412}.update-status.updated{background:#e4f8ef;color:#087c59}.update-status.failed{background:#ffe6ea;color:#aa3040}.update-status.selected{background:#e7f0ff;color:#1d5dac}
@media(max-width:900px){.control-hero{align-items:flex-start;flex-direction:column}.version-orb{width:100%;text-align:right}.release-flow{overflow:auto;justify-content:flex-start}.release-step{min-width:max-content}.control-actions-bar{align-items:stretch;flex-direction:column}.control-actions-bar .actions{width:100%}.control-actions-bar .actions .btn{flex:1}}


/* v2.3.2 - employee document/contract quick view */
.modal.viewer-mode{max-width:980px}
.viewer-body{display:block;padding:2px 0}
.modal.viewer-mode .modal-actions{justify-content:flex-start}
.detail-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.detail-table th{background:#f3f8ff;color:#214769;font-size:12px;font-weight:900;padding:12px 10px;border-bottom:1px solid #dde7f2;white-space:nowrap}
.detail-table td{padding:12px 10px;border-bottom:1px solid #edf2f7;font-size:12px;vertical-align:middle}
.detail-table tbody tr:last-child td{border-bottom:0}
.detail-table tbody tr:nth-child(even) td{background:#fbfdff}
.viewer-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.viewer-chip{border:1px solid var(--line);background:#f8fbff;border-radius:16px;padding:14px;text-align:center}.viewer-chip strong{display:block;font-size:22px;color:var(--blue)}.viewer-chip span{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.viewer-panel{border:1px solid var(--line);border-radius:18px;padding:12px;background:#fff;box-shadow:var(--shadow)}
.empty-state.compact{padding:16px}.empty-state.in-panel{border:1px dashed var(--line);border-radius:18px;background:#fbfdff;padding:28px}
.contract-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,#0b63ce,#1e4670);color:#fff;margin-bottom:12px}
.contract-identity{display:flex;align-items:center;gap:12px}.contract-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#ffffff26;color:#fff;font-weight:900;font-size:18px}.contract-identity h3{margin:0 0 4px}.contract-identity p{margin:0;color:#dbeaff}
.contract-badge .badge{background:#fff!important;color:#0b63ce!important;border:0}
.contract-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.note-box{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fbfdff;margin-bottom:12px}.note-box strong{display:block;margin-bottom:6px}.note-box p{margin:0;color:#52657b;line-height:1.8}
.panel-head.slim{padding:2px 4px 10px}
@media(max-width:760px){.viewer-stats,.contract-grid{grid-template-columns:1fr}.detail-table{display:block;overflow:auto}.contract-hero{flex-direction:column;align-items:flex-start}}

/* v2.4.0 — branches, clickable cards, forms */
.stat.clickable{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.stat.clickable:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(25,73,121,.12)}
.branch-tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;background:#eef6ff;color:#0b63ce;font-size:12px;font-weight:800}.branch-tag.all{background:#eefaf5;color:#14946d}
.forms-hero{padding:22px 24px;background:linear-gradient(135deg,#f8fbff,#eef7ff)}.forms-hero h2{margin:4px 0 5px;font-size:24px}.forms-hero p{margin:0;color:var(--muted)}.forms-grid{margin-top:16px}
.contract-sheet{background:#fff;border:1px solid #dce7f2;border-radius:18px;padding:18px;line-height:1.9}.contract-sheet .sheet-head{display:flex;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:2px solid #174b7a}.contract-sheet .sheet-title{text-align:center;margin:16px 0;font-size:21px;font-weight:900;color:#17324d}.contract-sheet .sheet-party{padding:12px;border:1px solid #e4ebf3;border-radius:12px;background:#fbfdff;margin:9px 0}.contract-sheet .article{padding:12px 0;border-bottom:1px dashed #d8e3ee}.contract-sheet .article:last-child{border-bottom:0}.contract-sheet .signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.contract-sheet .sig{border-top:1px dashed #879db3;padding-top:8px;text-align:center;min-height:55px}.viewer-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.status-stack{display:flex;gap:6px;flex-wrap:wrap}.form-sheet-note{padding:10px 12px;background:#f7fbff;border:1px dashed #cbdced;border-radius:12px;color:#4e657b;margin-bottom:12px}
@media(max-width:760px){.contract-sheet .sheet-head{flex-direction:column}.contract-sheet .signatures{grid-template-columns:1fr}.forms-hero{padding:16px}}

/* v2.4.1 — reliable card drill-down */
.stat.card-highlight.clickable{cursor:pointer;user-select:none;position:relative}
.stat.card-highlight.clickable:active{transform:scale(.99)}
.stat.card-highlight.clickable:focus-visible{outline:3px solid rgba(40,126,232,.25);outline-offset:2px}
.metric-note{display:block;margin-top:7px;color:#7890a8;font-size:10px;font-weight:700}
.employee-no-link{border:0;background:#eef6ff;color:#0b63ce;border-radius:9px;padding:7px 10px;font:inherit;font-weight:800;cursor:pointer;min-height:34px}
.employee-no-link:active{transform:scale(.98)}
