:root{--ink:#101114;--muted:#69707d;--line:#e7e9ee;--bg:#f7f8fa;--card:#fff;--ok:#20a05a;--warn:#f59e0b;--bad:#e83e5b;--blue:#2f6fed;--violet:#7457e8;--shadow:0 10px 35px rgba(16,24,40,.055)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:15px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.side{background:#fff;border-right:1px solid var(--line);padding:22px 18px;position:sticky;top:0;height:100vh;z-index:20}.brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:17px;padding:2px 6px}.brand img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:1px solid #111}.nav{margin-top:28px;display:grid;gap:7px}.nav a{padding:12px 14px;border-radius:13px;color:#343943;font-weight:650;display:flex;align-items:center;justify-content:space-between}.nav a:hover{background:#f1f3f6}.nav a.active{background:#111;color:#fff}.nav-count{min-width:23px;height:23px;border-radius:999px;background:#f0445d;color:#fff;display:inline-grid;place-items:center;font-size:11px}.side-note{position:absolute;left:18px;right:18px;bottom:20px;border:1px solid var(--line);border-radius:15px;padding:14px;background:#fafafa}.main{padding:26px 30px;max-width:1560px;width:100%;margin:0 auto}.top{display:flex;justify-content:space-between;align-items:center;gap:16px}.top-actions{display:flex;align-items:center;gap:10px}.page-title{font-size:30px;line-height:1.15;margin:0 0 6px;font-weight:850;letter-spacing:-.03em}.eyebrow{font-size:13px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:22px 0}.stat{display:flex;align-items:center;gap:13px}.stat-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:20px;background:#edf3ff;color:var(--blue)}.stat:nth-child(2) .stat-icon{background:#eaf8ef;color:var(--ok)}.stat:nth-child(3) .stat-icon{background:#f1edff;color:var(--violet)}.stat:nth-child(4) .stat-icon{background:#fff4df;color:#db8200}.stat:nth-child(5) .stat-icon{background:#fff0f2;color:var(--bad)}.metric{font-size:27px;font-weight:850;line-height:1;margin-bottom:5px}.grid2{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:16px}.grid3{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px}.stack{display:grid;gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:19px;padding:18px;box-shadow:var(--shadow)}.card h2,.card h3{margin-top:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.card-head h2{margin:0;font-size:20px}.btn{border:0;border-radius:11px;padding:10px 14px;background:#111;color:#fff;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{opacity:.88}.btn.alt{background:#fff;color:#111;border:1px solid var(--line)}.btn.soft{background:#f1f3f6;color:#111}.btn.bad{background:var(--bad)}.btn.ok{background:var(--ok)}.btn.sm{padding:7px 10px;font-size:13px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #d7dae0;border-radius:11px;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(17,17,17,.08)}textarea{min-height:90px;resize:vertical}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.formgrid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:650px}.table th,.table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.table th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2ff;font-size:12px;font-weight:750}.badge.pending{background:#fff7df;color:#9a6500}.badge.active,.badge.approved{background:#e8f8ed;color:#15803d}.badge.rejected,.badge.locked{background:#fff0f2;color:#be123c}.badge.manager{background:#f0ebff;color:#6545cf}.badge.admin{background:#111;color:#fff}.alert{padding:12px 14px;border-radius:12px;margin:12px 0;background:#eaf7ef;border:1px solid #c9ead5}.alert.bad{background:#fff0f2;border-color:#ffd1da}.login{max-width:460px;margin:7vh auto}.logo-big{width:90px;height:90px;border-radius:50%;display:block;margin:0 auto 16px;object-fit:cover}.calendar-wrap{overflow:auto}.calendar-head,.calendar{min-width:900px;display:grid;grid-template-columns:repeat(7,1fr)}.calendar-head div{padding:11px;text-align:center;font-size:12px;font-weight:750;color:var(--muted);border:1px solid var(--line);border-right:0;background:#fafafa}.calendar-head div:last-child{border-right:1px solid var(--line)}.calendar{border-left:1px solid var(--line);border-top:0}.day{min-height:137px;background:#fff;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px}.day.muted{background:#fafafa}.day.today{box-shadow:inset 0 0 0 2px #111}.date-num{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;font-weight:750}.today .date-num{background:#111;color:#fff}.shift{font-size:11px;padding:6px 7px;margin:5px 0;border-radius:8px;background:#edf4ff;border-left:3px solid var(--blue)}.shift.full{background:#edf3ff;color:#164da8}.shift.part_morning{background:#e9f8ee;color:#187a42;border-color:var(--ok)}.shift.part_afternoon{background:#fff4df;color:#a35d00;border-color:var(--warn)}.shift.off{background:#f0f1f3;color:#68707d;border-color:#aab0ba}.shift.annual_leave{background:#f2edff;color:#6545cf;border-color:var(--violet)}.shift.sudden_leave{background:#fff0f2;color:#bd2040;border-color:var(--bad)}.small{font-size:13px;color:var(--muted)}.coverage{display:grid;grid-template-columns:1fr 1fr;gap:12px}.coverage-box{border-radius:14px;padding:14px;background:#f0faf3}.coverage-box.warn{background:#fff7e8}.person{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}.person:last-child{border-bottom:0}.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#eee;border:1px solid var(--line)}.avatar-placeholder{display:grid;place-items:center;font-weight:800}.person-main{flex:1;min-width:0}.person-name{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notice{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.notice:last-child{border-bottom:0}.notice-dot{width:10px;height:10px;border-radius:50%;background:var(--bad);margin-top:5px;flex:0 0 auto}.progress{height:8px;background:#eef0f3;border-radius:999px;overflow:hidden}.progress>span{display:block;height:100%;background:#111;border-radius:999px}.tabs{display:inline-flex;background:#f1f3f6;border-radius:11px;padding:3px}.tabs a{padding:7px 12px;border-radius:9px;font-weight:700;font-size:13px}.tabs a.active{background:#111;color:#fff}.mobile-menu{display:none}.empty{text-align:center;padding:28px;color:var(--muted)}.footer-note{margin-top:22px;color:var(--muted);font-size:12px}@media(max-width:1180px){.cards{grid-template-columns:repeat(3,1fr)}.grid3{grid-template-columns:1fr 1fr}.grid3>*:first-child{grid-column:1/-1}.formgrid.four{grid-template-columns:1fr 1fr}}@media(max-width:900px){.shell{grid-template-columns:1fr}.side{position:fixed;left:-270px;width:248px;transition:.2s;height:100vh;box-shadow:20px 0 40px rgba(0,0,0,.12)}body.menu-open .side{left:0}.mobile-menu{display:inline-flex}.main{padding:18px}.cards{grid-template-columns:1fr 1fr}.grid2,.grid3{grid-template-columns:1fr}.grid3>*:first-child{grid-column:auto}.side-note{display:none}.formgrid,.formgrid.four{grid-template-columns:1fr}.calendar-head,.calendar{min-width:780px}}@media(max-width:560px){.cards{grid-template-columns:1fr}.top{align-items:flex-start}.page-title{font-size:25px}.top-actions .eyebrow{display:none}.card{padding:15px}.coverage{grid-template-columns:1fr}}

/* v1.2 + v1.3 */
.auto-schedule-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin-bottom:14px;border:1px solid #dfe6ef;border-radius:16px;background:linear-gradient(135deg,#fff,#f5f8ff)}
.employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.employee-card{display:flex;flex-direction:column;gap:16px}.employee-top{display:flex;gap:13px;align-items:center}.avatar-lg{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff;font-weight:800;font-size:20px}.employee-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.employee-meta span{padding:10px;border-radius:12px;background:#f6f7f9;text-align:center}.employee-meta b,.employee-meta small{display:block}.employee-meta small{font-size:11px;color:#747b86}.employee-contact{font-size:13px;color:#626a76}.shift[draggable=true]{cursor:grab}.shift.dragging{opacity:.45}.day.drop-target{outline:2px dashed #2563eb;outline-offset:-4px;background:#eff6ff}
@media(max-width:1100px){.employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.employee-grid{grid-template-columns:1fr}.auto-schedule-bar{align-items:flex-start;flex-direction:column}.auto-schedule-bar .btn{width:100%}}

/* v1.4 — hồ sơ bắt buộc */
.profile-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,16,18,.48);backdrop-filter:blur(6px)}
.profile-modal[hidden]{display:none}.profile-modal-card{position:relative;width:min(520px,100%);padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.2);text-align:center}.modal-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#777}.modal-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 16px;border-radius:50%;background:#fff3d8;color:#a76500;font-size:28px;font-weight:800}.profile-modal-card h2{margin:0 0 10px}.profile-modal-card p{line-height:1.6;color:var(--muted)}.countdown{margin:18px 0;padding:15px;border-radius:14px;background:#0e0e0f;color:#fff;font-size:24px;font-weight:800;letter-spacing:.02em}.modal-actions{display:flex;justify-content:center;gap:10px;margin:18px 0 12px}.notice-link{color:inherit;text-decoration:none;border-radius:12px;transition:.18s ease}.notice-link:hover{background:#f4f5f7;transform:translateX(2px)}
@media(max-width:600px){.profile-modal-card{padding:26px 18px}.modal-actions{flex-direction:column}.modal-actions .btn{width:100%}.countdown{font-size:20px}}


/* v1.5 — thao tác thông báo, ngân hàng và mobile */
.notice-link{display:flex;width:100%;align-items:flex-start}.notice-action{display:inline-flex;margin-top:8px;font-size:12px;font-weight:800;color:#111;text-decoration:underline;text-underline-offset:3px}.profile-modal-card .btn{position:relative;z-index:2}.profile-modal-card select{min-height:44px}
@media(max-width:700px){body{font-size:14px}.main{padding:14px 12px 86px}.top{position:sticky;top:0;z-index:15;margin:-14px -12px 14px;padding:12px;background:rgba(247,248,250,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.top-actions{gap:6px}.top-actions .btn{padding:9px 10px}.page-title{font-size:22px}.cards{gap:10px;margin:14px 0}.stat{padding:14px}.stat-icon{width:40px;height:40px;border-radius:12px}.metric{font-size:23px}.card{border-radius:16px;padding:14px}.card-head{align-items:flex-start}.table{min-width:560px}.notice{padding:12px 2px}.formgrid,.formgrid.four{gap:10px}.btn{min-height:44px}.modal-actions{gap:8px}.profile-modal{padding:12px;align-items:flex-end}.profile-modal-card{border-radius:22px 22px 0 0;padding:24px 16px 20px;max-height:92vh;overflow:auto}.countdown{font-size:18px}.calendar-wrap{margin-left:-14px;margin-right:-14px;padding:0 14px}.employee-meta{grid-template-columns:1fr 1fr}.employee-meta span:last-child{grid-column:1/-1}.side{width:min(86vw,300px);left:-320px}.nav a{min-height:46px}}


/* v1.6 — responsive toàn hệ thống */
.profile-modal.is-closing{display:none!important}
.request-tabs{display:flex;gap:6px;margin:0 0 14px;padding:4px;background:#eef1f5;border-radius:13px;width:max-content;max-width:100%}.request-tabs a{padding:9px 14px;border-radius:10px;font-weight:800;color:var(--muted)}.request-tabs a.active{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.inline-actions,.account-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.leave-disabled{border-style:dashed;background:#fafafa}.request-item{align-items:flex-start}
@media(max-width:900px){body.menu-open{overflow:hidden}body.menu-open:after{content:"";position:fixed;inset:0;z-index:29;background:rgba(10,12,16,.42);backdrop-filter:blur(2px)}.side{z-index:30}.main{min-width:0}.top{z-index:20}.grid2,.grid3,.requests-grid{display:grid;grid-template-columns:minmax(0,1fr)}.card-head{gap:10px;flex-wrap:wrap}.card-head>div:last-child{width:100%}.calendar-wrap{overscroll-behavior-x:contain;scroll-snap-type:x proximity}.calendar-head,.calendar{min-width:720px}.day{min-height:116px}.shift{font-size:10px}.employee-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){html{font-size:16px}body{background:#f5f6f8}.main{padding:10px 10px 84px}.top{margin:-10px -10px 12px;padding:10px 12px}.page-title{font-size:20px;line-height:1.2}.eyebrow{font-size:11px}.top-actions{margin-left:auto}.top-actions .btn{font-size:0;width:44px;padding:0;justify-content:center}.top-actions .btn:first-letter{font-size:16px}.mobile-menu{width:44px;padding:0;justify-content:center}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:12px;gap:9px;min-width:0}.stat-icon{width:36px;height:36px;font-size:17px}.metric{font-size:21px}.small{font-size:12px}.card{padding:14px;border-radius:16px;overflow:hidden}.card h2{font-size:17px}.coverage{grid-template-columns:minmax(0,1fr)}.formgrid,.formgrid.four{grid-template-columns:minmax(0,1fr)!important}input,select,textarea{width:100%;min-height:48px;font-size:16px}textarea{min-height:104px}.btn{min-height:46px;padding:11px 14px}.btn.sm{min-height:42px}.account-actions,.inline-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.account-actions select{grid-column:1/-1}.account-actions .btn,.inline-actions .btn{width:100%}.profile-modal{padding:0;align-items:flex-end}.profile-modal-card{width:100%;border-radius:24px 24px 0 0;padding:26px 16px calc(20px + env(safe-area-inset-bottom));max-height:94dvh}.modal-actions{display:grid;grid-template-columns:1fr}.modal-actions .btn{width:100%}.request-tabs{position:sticky;top:70px;z-index:12;width:100%}.request-tabs a{flex:1;text-align:center}.table-wrap.mobile-cards{overflow:visible}.mobile-cards .table,.mobile-cards .table tbody{display:block;min-width:0}.mobile-cards .table tr{display:block;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.mobile-cards .table tr:first-child{display:none}.mobile-cards .table td{display:grid;grid-template-columns:104px minmax(0,1fr);gap:10px;padding:8px 0;border:0;border-bottom:1px solid #edf0f3;white-space:normal;overflow-wrap:anywhere}.mobile-cards .table td:last-child{border-bottom:0}.mobile-cards .table td:before{content:attr(data-label);font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.mobile-cards .table td.empty{display:block;text-align:center}.employee-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-contact{overflow-wrap:anywhere}.notice-link{padding:10px;margin:0 -8px;width:calc(100% + 16px)}.notice-action{display:inline-flex;padding:7px 10px;background:#111;color:#fff;border-radius:8px;text-decoration:none}.calendar-wrap{margin:0 -14px;padding:0 14px 8px}.calendar-head,.calendar{min-width:660px}.auto-schedule-bar{padding:13px}.side{width:min(88vw,320px)}.nav a{min-height:50px;font-size:15px}.login{margin:18px 10px}.footer-note{text-align:center}}
@media(max-width:390px){.cards{grid-template-columns:1fr}.top-actions .btn{width:40px}.page-title{font-size:18px}.mobile-cards .table td{grid-template-columns:88px minmax(0,1fr)}}

/* v1.7 — hồ sơ nhân sự và thao tác mobile */
input[readonly]{background:#f2f4f7;color:#60656f;cursor:not-allowed}
.document-upload{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.document-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.document-upload .btn{margin-top:8px}
.delete-document-form,.bulk-scheduler{display:none!important}
.document-thumb{display:block;width:112px;height:82px;margin:10px 0;object-fit:cover;border:1px solid var(--line);border-radius:12px;background:#f3f5f8;box-shadow:0 3px 10px rgba(16,24,40,.08)}
.document-upload:has(.badge.active) .file-picker{border-color:#2563eb;background:#eff6ff;color:#174ea6}
.document-upload:has(.badge.active) .file-picker:hover{background:#dbeafe;border-color:#174ea6}
.copy-month-btn{background:#0f766e!important;color:#fff!important}.copy-month-btn:hover{background:#115e59!important}
.auto-schedule-bar{flex-wrap:wrap}.auto-schedule-bar form{margin:0}
.day .staff-roster{display:grid;gap:5px;margin-top:5px}.day .staff-shift-row{min-width:0;padding:5px 6px;grid-template-columns:22px minmax(0,1fr);gap:5px;border-radius:9px}.day .staff-shift-row .staff-avatar{width:22px;height:22px;font-size:10px}.day .staff-shift-row b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.day .staff-shift-row select{grid-column:1/-1;min-height:29px;padding:3px 24px 3px 7px;font-size:11px;border-radius:7px}.staff-shift-row{cursor:pointer}.staff-shift-row.is-saving{opacity:.55;pointer-events:none}
.quick-shift{display:none!important}
.schedule-matrix-panel{margin:18px 0}.matrix-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.matrix-head h3{margin:0 0 3px;font-size:19px}.matrix-head p{margin:0;color:var(--muted);font-size:13px}.matrix-view-toggle{display:flex;gap:7px;white-space:nowrap}.matrix-scroll{overflow:auto;max-height:70vh;border:1px solid #dfe5ee;border-radius:16px;background:#fff;box-shadow:0 9px 25px rgba(15,23,42,.07)}.schedule-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.schedule-matrix th,.schedule-matrix td{height:60px;padding:5px;border-right:1px solid #e8edf4;border-bottom:1px solid #e8edf4;text-align:center;background:#fff}.schedule-matrix thead th{position:sticky;top:0;z-index:5;height:52px;min-width:54px;background:#f8fafc;color:#475569}.schedule-matrix thead th:first-child{left:0;z-index:7;min-width:190px;text-align:left;padding-left:14px}.schedule-matrix thead th:last-child{min-width:90px}.schedule-matrix thead th span{display:block;margin-top:2px;font-size:10px;color:#94a3b8}.schedule-matrix thead th.sunday{background:#fff7ed;color:#c2410c}.schedule-matrix tbody th.matrix-person{position:sticky;left:0;z-index:4;display:flex;align-items:center;gap:9px;min-width:190px;padding:9px 12px;text-align:left;box-shadow:4px 0 8px rgba(15,23,42,.04)}.matrix-shift{display:grid;place-items:center;width:44px;height:48px;margin:auto;padding:3px;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:.15s}.matrix-shift b{font-size:14px}.matrix-shift span{font-size:8px;white-space:nowrap}.matrix-shift:hover,.matrix-shift:focus{transform:translateY(-2px);box-shadow:0 6px 14px rgba(15,23,42,.14);outline:2px solid #2563eb;outline-offset:1px}.matrix-shift.full{background:#eaf2ff;color:#174ea6;border-color:#bfdbfe}.matrix-shift.part_morning{background:#eafaf0;color:#13763c;border-color:#bbf7d0}.matrix-shift.part_afternoon{background:#fff4dd;color:#9a5b00;border-color:#fde68a}.matrix-shift.off{background:#f1f5f9;color:#64748b;border-color:#dbe2ea}.matrix-shift.annual_leave,.matrix-shift.sudden_leave{background:#f5f3ff;color:#7c3aed}.quota{min-width:58px;font-weight:850}.quota.ok{color:#15803d;background:#f0fdf4}.quota.bad{color:#b91c1c;background:#fef2f2}.matrix-status{min-width:88px;font-weight:800}.matrix-status.is-complete{color:#15803d}.matrix-status.has-error{color:#b91c1c}.matrix-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:12px;color:#475569;font-size:12px}.matrix-legend span{display:flex;align-items:center;gap:6px}.matrix-legend i{width:12px;height:12px;border-radius:4px}.matrix-legend i.full{background:#2563eb}.matrix-legend i.part_morning{background:#16a34a}.matrix-legend i.part_afternoon{background:#f59e0b}.matrix-legend i.off{background:#94a3b8}.matrix-legend small{margin-left:auto;color:var(--muted)}.balanced-modal[hidden]{display:none}.balanced-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.55);backdrop-filter:blur(5px)}.balanced-modal-card{position:relative;width:min(100%,480px);padding:26px;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.3)}.balanced-modal-card h2{margin:5px 0}.balanced-modal-card p{margin:0 0 18px;color:var(--muted)}.balanced-modal-card form{display:grid;gap:14px}.balanced-modal-card label{display:grid;gap:7px;font-weight:800}.balance-explain{display:grid;gap:5px;padding:13px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff;color:#1e3a8a}.balance-explain span{font-size:12px;line-height:1.45;font-weight:500}
@media(max-width:700px){.matrix-head{align-items:flex-start;flex-direction:column}.matrix-view-toggle,.matrix-view-toggle .btn{width:100%}.matrix-view-toggle .btn{padding-inline:8px}.matrix-scroll{max-height:68vh}.schedule-matrix thead th:first-child,.schedule-matrix tbody th.matrix-person{min-width:145px}.schedule-matrix tbody th.matrix-person{gap:6px}.schedule-matrix tbody th.matrix-person .staff-avatar{width:26px;height:26px}.matrix-shift{width:40px}.balanced-modal{align-items:end;padding:0}.balanced-modal-card{border-radius:22px 22px 0 0;padding:24px 16px calc(18px + env(safe-area-inset-bottom))}}
.schedule-workflow{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(240px,1.4fr) auto;align-items:center;gap:14px;margin-bottom:14px;padding:14px;border:1px solid #dbe3ef;border-radius:16px;background:#f8fafc}.schedule-workflow.is-draft{border-color:#f5d98a;background:#fffbeb}.workflow-state,.workflow-check{display:grid;gap:4px}.workflow-state span{width:max-content;padding:4px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:900;letter-spacing:.05em}.is-draft .workflow-state span{background:#fef3c7;color:#92400e}.workflow-state b,.workflow-check b{font-size:13px}.workflow-check span{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.workflow-check.has-errors b{color:#b91c1c}.workflow-check.is-ready b{color:#15803d}.workflow-actions{display:flex;gap:8px}.workflow-actions form{margin:0}.publish-btn{background:#15803d!important}.workflow-actions button:disabled{opacity:.45;cursor:not-allowed}.schedule-matrix thead th[data-coverage-date]{cursor:pointer}.schedule-matrix thead th.coverage-danger{background:#fee2e2;color:#b91c1c}.schedule-matrix thead th.coverage-danger:after{content:'!';position:absolute;right:5px;top:4px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#dc2626;color:#fff;font-size:10px}.schedule-matrix thead th.coverage-caution{background:#fff7ed;color:#c2410c}.employee-schedule-home{margin-bottom:16px;padding:20px;border:1px solid #dbe5f2;border-radius:22px;background:linear-gradient(135deg,#fff,#f1f6ff);box-shadow:0 12px 30px rgba(15,23,42,.07)}.employee-schedule-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}.employee-schedule-hero h2{margin:5px 0}.employee-schedule-hero p{margin:0;color:var(--muted)}.employee-month-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.employee-month-stats div{display:grid;place-items:center;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.employee-month-stats b{font-size:22px}.employee-month-stats span{color:var(--muted);font-size:11px}.employee-upcoming h3{margin-bottom:10px}.employee-upcoming>div{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px;overflow:auto}.employee-shift-card{display:grid;gap:4px;min-width:104px;padding:11px;border-left:4px solid #2563eb;border-radius:12px;background:#fff}.employee-shift-card.part_morning{border-color:#16a34a}.employee-shift-card.part_afternoon{border-color:#f59e0b}.employee-shift-card time,.employee-shift-card span{color:var(--muted);font-size:10px}.upload-preview-modal,.document-lightbox{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.72);backdrop-filter:blur(6px)}.upload-preview-card{position:relative;width:min(100%,560px);padding:24px;border-radius:22px;background:#fff}.upload-preview-card h2{margin:5px 0 14px}.upload-preview-stage{display:grid;place-items:center;height:330px;overflow:hidden;border:1px solid #dbe3ef;border-radius:16px;background:#f1f5f9}.upload-preview-stage img{max-width:88%;max-height:88%;object-fit:contain;transition:transform .2s}.pdf-preview{text-align:center;color:#dc2626;font-size:42px;font-weight:900}.pdf-preview small{display:block;max-width:420px;color:#475569;font-size:12px;overflow-wrap:anywhere}.file-facts{display:flex;justify-content:space-between;gap:15px;margin:10px 0;color:var(--muted);font-size:12px}.file-facts span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-preview-actions{display:flex;justify-content:flex-end;gap:8px}.document-thumb{cursor:zoom-in;transition:.15s}.document-thumb:hover,.document-thumb:focus{transform:scale(1.03);outline:2px solid #2563eb;outline-offset:2px}.document-lightbox>div{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(94vw,1000px);height:min(90vh,820px);padding:18px;border-radius:20px;background:#fff}.document-lightbox h3{margin:0 42px 12px 0}.document-lightbox img{width:100%;height:100%;object-fit:contain;border-radius:12px;background:#f1f5f9}
@media(max-width:850px){.schedule-workflow{grid-template-columns:1fr}.workflow-actions,.workflow-actions form,.workflow-actions .btn{width:100%}.workflow-actions{display:grid;grid-template-columns:1fr 1fr}.employee-schedule-hero{align-items:flex-start;flex-direction:column}.employee-schedule-hero .btn{width:100%}.upload-preview-modal{align-items:end;padding:0}.upload-preview-card{border-radius:22px 22px 0 0;padding:22px 14px calc(16px + env(safe-area-inset-bottom))}.upload-preview-stage{height:280px}.upload-preview-actions{display:grid;grid-template-columns:1fr 1fr}.upload-preview-actions .btn:last-child{grid-column:1/-1}.document-lightbox{padding:8px}.document-lightbox>div{width:100%;height:92vh;padding:12px}}
.workflow-actions{flex-wrap:wrap;justify-content:flex-end}
.icon-action{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.action-icon{font-size:17px;line-height:1}.action-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#111;color:#fff;font-size:11px;font-weight:800}
@media(max-width:700px){
  .top{gap:8px}.top>div:first-child{min-width:0;flex:1}.top-actions{display:flex;flex:0 0 auto;gap:5px}.top-actions form{margin:0}
  .top-actions .icon-action{display:inline-flex!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;font-size:initial!important;border-radius:12px}
  .top-actions .action-icon{display:block;font-size:18px!important;line-height:1}.top-actions .action-label{display:none}.top-actions .action-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;font-size:10px;border:2px solid #f5f6f8}
  .profile-grid{gap:10px}.profile-grid .card{padding:13px}.document-upload{padding:12px 0;margin:0}.document-upload input[type=file]{font-size:13px;padding:7px}.document-upload .btn{width:100%}
}
@media(max-width:390px){.top-actions .icon-action{width:38px!important;height:38px!important;min-height:38px!important}.mobile-menu{width:38px;height:38px;min-height:38px}.top{padding-left:8px;padding-right:8px}}

/* v5.0 — chấm công QR động + vị trí */
.attendance-tabs{display:flex;gap:6px;margin-bottom:16px;padding:5px;overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff}.attendance-tabs a{padding:10px 14px;border-radius:11px;color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}.attendance-tabs a.active{background:#111;color:#fff}.attendance-today{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);align-items:center;gap:26px;min-height:340px;padding:30px;background:linear-gradient(135deg,#fff 20%,#eef6ff)}.attendance-state h2{margin:7px 0;font-size:clamp(28px,5vw,48px)}.attendance-state p{color:var(--muted)}.attendance-punch{display:grid;gap:12px}.attendance-main-button{display:grid;place-items:center;min-height:210px;border:0;border-radius:30px;background:linear-gradient(145deg,#2563eb,#1748b8);color:#fff;box-shadow:0 20px 45px rgba(37,99,235,.28);cursor:pointer}.attendance-main-button span{font-size:27px;font-weight:900;letter-spacing:.04em}.attendance-main-button small{opacity:.78}.attendance-main-button:active{transform:scale(.98)}.attendance-scan-needed,.attendance-complete{display:grid;gap:7px;padding:24px;border:1px dashed #93a4ba;border-radius:20px;background:#fff;text-align:center}.attendance-scan-needed span,.attendance-complete span{color:var(--muted);font-size:13px}.attendance-complete{border-style:solid;border-color:#86efac;background:#f0fdf4;color:#166534}.attendance-complete b{font-size:18px}.attendance-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.qr-station{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,420px);align-items:center;gap:30px;max-width:980px;margin:auto;padding:34px}.qr-station h2{margin:6px 0;font-size:34px}.qr-station p{color:var(--muted)}#attendance-qr{grid-row:span 2;display:grid;place-items:center;aspect-ratio:1;max-height:520px;padding:18px;border:1px solid var(--line);border-radius:24px;background:#fff}#attendance-qr svg{width:100%;height:100%}.qr-loading,.qr-error{display:grid;place-items:center;height:100%;color:var(--muted);text-align:center}.qr-countdown{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-radius:13px;background:#f1f5f9}.qr-countdown span{color:var(--muted);font-size:12px}.qr-countdown b{font-variant-numeric:tabular-nums}.attendance-settings{max-width:900px}.attendance-settings label{font-weight:750}.attendance-settings label input{margin-top:7px}
@media(max-width:900px){.mobile-bottom-nav{grid-template-columns:repeat(5,1fr)!important}.attendance-today{grid-template-columns:1fr;min-height:0;padding:20px}.attendance-main-button{min-height:180px}.qr-station{grid-template-columns:1fr;padding:20px}.qr-station>div:first-child{text-align:center}#attendance-qr{grid-row:auto;width:min(100%,440px);margin:auto}.attendance-form-actions{display:grid;grid-template-columns:1fr 1fr}.attendance-form-actions .btn{width:100%}}
@media(max-width:480px){.attendance-tabs{margin-left:-6px;margin-right:-6px}.attendance-today{margin-left:-6px;margin-right:-6px}.attendance-main-button{min-height:165px;border-radius:24px}.qr-station{margin-left:-6px;margin-right:-6px;padding:14px}.qr-station h2{font-size:27px}.attendance-form-actions{grid-template-columns:1fr}}

/* v5.1 — phân quyền ba cấp */
.role-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.role-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:14px;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.role-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#111;color:#fff;font-size:11px;font-weight:900}.role-card h2{margin:0 0 6px}.role-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.role-card>b{font-size:30px}.role-card.manager>span{background:#2563eb}.role-card.employee>span{background:#16a34a}.permission-matrix{margin-bottom:16px}.permission-matrix .table td:not(:first-child),.permission-matrix .table th:not(:first-child){text-align:center}.permission-mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:900}.permission-mark.yes{background:#dcfce7;color:#15803d}.permission-mark.no{background:#f1f5f9;color:#94a3b8}.account-identity{display:flex;align-items:center;gap:10px}.account-identity>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#eef2ff;color:#3730a3;font-weight:900}.account-identity div{display:grid;gap:2px}.account-identity small{color:var(--muted)}.role-pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f1f5f9;font-size:11px;font-weight:900}.role-pill.admin{background:#ede9fe;color:#6d28d9}.role-pill.manager{background:#dbeafe;color:#1d4ed8}.role-pill.employee{background:#dcfce7;color:#15803d}.self-account{color:var(--muted);font-size:12px;font-weight:750}.account-actions{display:flex;flex-wrap:wrap;gap:6px}.account-actions select{width:auto;min-width:112px}
@media(max-width:900px){.role-overview{grid-template-columns:1fr}.permission-matrix .table td:not(:first-child){text-align:right}.account-actions{justify-content:flex-end}.account-actions select{min-width:130px}}
@media(max-width:480px){.role-card{padding:16px}.account-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.account-actions select,.account-actions .btn{width:100%}.account-actions .btn:last-child:nth-child(4){grid-column:1/-1}}

/* v5.2 — chỉnh quyền theo cấp */
.editable-permissions .table td:first-child small{display:block;max-width:520px;margin-top:4px;color:var(--muted);font-weight:500;line-height:1.4}.permission-mark.locked{box-shadow:0 0 0 3px #dcfce7;cursor:not-allowed}.permission-switch{display:inline-grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:7px;cursor:pointer}.permission-switch input{position:absolute;opacity:0;pointer-events:none}.permission-switch span{position:relative;width:44px;height:25px;border-radius:999px;background:#cbd5e1;transition:.18s}.permission-switch span:after{content:'';position:absolute;left:3px;top:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.25);transition:.18s}.permission-switch input:checked+span{background:#16a34a}.permission-switch input:checked+span:after{transform:translateX(19px)}.permission-switch input:focus-visible+span{outline:3px solid #bfdbfe;outline-offset:2px}.permission-switch small{min-width:25px;color:var(--muted);font-size:10px}.permission-save-bar{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:14px;background:rgba(239,246,255,.96);box-shadow:0 10px 28px rgba(15,23,42,.12);backdrop-filter:blur(10px)}.permission-save-bar span{color:#475569;font-size:12px}
@media(max-width:700px){.editable-permissions>.card-head>.btn{display:none}.permission-switch{justify-content:end}.permission-save-bar{bottom:82px}.permission-save-bar span{display:none}.permission-save-bar .btn{width:100%}}

/* v1.8 */
.avatar-photo{object-fit:cover;border-radius:50%;overflow:hidden}.directory-grid .employee-card{display:flex;flex-direction:column}.employee-basic,.public-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.employee-basic>div,.public-info-grid>div{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafafa;display:flex;flex-direction:column;gap:4px}.employee-basic span,.public-info-grid span{font-size:12px;color:var(--muted)}.public-profile{max-width:760px;margin:auto}.public-profile-head{display:flex;gap:18px;align-items:center;margin-bottom:18px}.profile-public-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-size:34px;background:#eef0f3}.field-help{display:block;font-size:12px;color:var(--muted);margin-top:5px}.missing-fields-modal{display:flex!important}.missing-list{margin:12px 0 20px;padding-left:20px}.missing-list li{margin:7px 0}.profile-fields label{align-self:start}
@media(max-width:700px){.directory-grid{grid-template-columns:1fr!important}.employee-basic,.public-info-grid{grid-template-columns:1fr}.public-profile-head{align-items:flex-start}.profile-public-avatar{width:76px;height:76px}.profile-fields{grid-template-columns:1fr!important}.missing-fields-modal .profile-modal-card{max-height:86vh;overflow:auto}.employee-card .btn{width:100%}}


/* v1.9 — lịch và tải tài liệu */
.schedule-toolbar{align-items:center}.schedule-nav{display:flex;align-items:center;gap:8px}.schedule-nav form{margin:0}.schedule-nav input{min-width:150px}.shift-form{margin-top:14px;align-items:end}.shift-form>.btn{align-self:end}.auto-schedule-bar{display:flex;justify-content:flex-end;margin:4px 0 12px}.drop-target{background:#edf4ff!important;box-shadow:inset 0 0 0 2px var(--blue)}.shift.dragging{opacity:.45}.file-picker{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;border:1px dashed #b9bec8;border-radius:11px;background:#fafafa;cursor:pointer;font-weight:750;text-align:center}.file-picker:hover{border-color:#111;background:#fff}.file-picker input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.upload-status{display:block;margin-top:7px;font-size:12px;color:var(--muted)}.delete-document-form{margin-top:8px}.document-upload{padding:14px 0}.cards:has(.stat:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.schedule-toolbar{align-items:flex-start}.schedule-nav{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px}.schedule-nav input{min-width:0}.auto-schedule-bar,.auto-schedule-bar form,.auto-schedule-bar .btn{width:100%}.shift-form{grid-template-columns:1fr!important}.shift-form>.btn{width:100%}.document-row{align-items:flex-start}.delete-document-form .btn{width:100%}.cards:has(.stat:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.cards:has(.stat:nth-child(4):last-child){grid-template-columns:1fr}}

.auto-upload-form.is-uploading{opacity:.65;pointer-events:none}

/* v2.0 — lịch tháng/tuần và thao tác cảm ứng */
.view-switch{display:flex;gap:6px;margin-left:auto}.quick-shift{border:1px solid var(--line);border-radius:14px;background:#fafafa;padding:0 14px}.quick-shift summary{cursor:pointer;padding:13px 0;font-weight:800}.quick-shift[open] summary{border-bottom:1px solid var(--line);margin-bottom:12px}.day-top{display:flex;align-items:center;justify-content:space-between}.coverage-dot{width:9px;height:9px;border-radius:50%;background:#f04438;box-shadow:0 0 0 3px #fee4e2}.coverage-ok .coverage-dot{background:#12b76a;box-shadow:0 0 0 3px #d1fadf}.shift{position:relative;display:flex;flex-direction:column;gap:2px;padding-right:28px}.shift>span{font-size:11px}.shift-more{position:absolute;right:3px;top:3px;width:24px;height:24px;padding:0;border:0;border-radius:7px;background:rgba(255,255,255,.7);cursor:pointer;font-weight:900}.shift-menu{display:none;position:absolute;z-index:30;right:2px;top:30px;width:185px;padding:6px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 30px rgba(16,24,40,.18)}.shift.menu-open .shift-menu{display:block}.shift-menu button{display:block;width:100%;padding:9px;border:0;border-radius:8px;background:transparent;text-align:left;cursor:pointer;font-size:12px}.shift-menu button:hover{background:#f2f4f7}.shift-menu form{margin:0}.week-board{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:10px;overflow-x:auto;padding-bottom:8px}.week-day{min-height:330px;border:1px solid var(--line);border-top:4px solid #f04438;border-radius:14px;background:#fafafa;padding:10px}.week-day.coverage-ok{border-top-color:#12b76a}.week-day.today{box-shadow:0 0 0 2px #111}.week-day header{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.week-day header div{display:flex;flex-direction:column}.week-day header span,.week-day header small{color:var(--muted);font-size:11px}.week-shifts{display:flex;flex-direction:column;gap:7px}.week-shifts .shift{margin:0}.empty-day{padding:22px 8px;text-align:center;color:var(--muted);font-size:12px}.schedule-legend{display:flex;flex-wrap:wrap;gap:15px;margin-top:14px;color:var(--muted);font-size:12px}.schedule-legend span{display:flex;align-items:center;gap:7px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%}.legend-dot.ok{background:#12b76a}.legend-dot.low{background:#f04438}.copy-shift-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.45)}.copy-shift-modal[hidden]{display:none}.copy-shift-card{position:relative;width:min(420px,100%);padding:22px;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.25)}.copy-shift-card label{display:flex;flex-direction:column;gap:7px;margin:16px 0}.copy-shift-card .modal-close{position:absolute;right:12px;top:12px}
@media(max-width:900px){.schedule-toolbar{display:grid;grid-template-columns:1fr auto}.schedule-toolbar .schedule-nav{grid-column:1/-1}.view-switch{margin-left:0}.week-board{grid-template-columns:1fr;overflow:visible}.week-day{min-height:0}.week-day header{align-items:center}.calendar-wrap{display:none}.schedule-card:has(.calendar-wrap)::after{content:'Trên điện thoại, hãy chuyển sang chế độ Tuần để thao tác dễ hơn.';display:block;padding:16px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted)}.shift{min-height:48px;padding:9px 36px 9px 10px}.shift-more{width:32px;height:32px}.shift-menu{position:fixed;left:14px;right:14px;top:auto;bottom:14px;width:auto;padding:10px;border-radius:16px}.shift-menu button{min-height:46px;font-size:14px}.copy-shift-modal{align-items:end;padding:0}.copy-shift-card{width:100%;border-radius:20px 20px 0 0;padding:24px 18px calc(24px + env(safe-area-inset-bottom))}.copy-shift-card .btn{width:100%;min-height:48px}}
@media(max-width:480px){.schedule-toolbar{grid-template-columns:1fr}.view-switch{width:100%}.view-switch .btn{flex:1}.schedule-nav{grid-column:auto}.quick-shift{padding:0 11px}.schedule-legend{flex-direction:column;gap:8px}}

/* Cello Staff v2.0.1 — Phase 1 UI/UX + Phase 2 Calendar */
:root{--bg:#f4f5f7;--card:#fff;--ink:#111214;--muted:#667085;--line:#e5e7eb;--brand:#111;--surface:#fafafa;--radius:20px;--shadow:0 8px 28px rgba(16,24,40,.055)}
body{background:linear-gradient(180deg,#fafafa 0,#f4f5f7 260px);letter-spacing:-.005em}.main{padding:24px 28px 42px}.side{box-shadow:1px 0 0 rgba(0,0,0,.02)}.top{position:sticky;top:0;z-index:15;padding:10px 0 16px;background:linear-gradient(180deg,rgba(250,250,250,.98) 75%,rgba(250,250,250,0));backdrop-filter:blur(12px)}.page-title{font-size:clamp(26px,3vw,36px)}.card{border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease}.card:hover{box-shadow:0 12px 34px rgba(16,24,40,.075)}.stat{min-height:92px}.btn{min-height:42px;transition:transform .15s ease,opacity .15s ease}.btn:active{transform:scale(.98)}.nav a{min-height:46px}.nav a.active{box-shadow:0 8px 20px rgba(0,0,0,.12)}
.schedule-card{padding:20px}.schedule-toolbar{gap:14px;flex-wrap:wrap}.schedule-toolbar>div:first-child{min-width:240px}.view-switch{padding:4px;border:1px solid var(--line);border-radius:13px;background:#f5f6f7}.view-switch .btn{border:0;box-shadow:none;min-height:34px}.view-switch .btn.alt{background:transparent;color:var(--muted)}.schedule-nav{display:flex;align-items:center;gap:8px}.schedule-nav form{min-width:150px}.auto-schedule-bar{display:flex;justify-content:flex-end;margin:14px 0}.quick-shift{background:#fff}.calendar-head div{position:sticky;top:0;z-index:2}.day{min-height:150px;padding:9px;border-color:#eceef1}.day.today{background:#fffdf5;box-shadow:inset 0 0 0 2px #111}.date-num{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:800}.today .date-num{background:#111;color:#fff}.shift{border-radius:11px;box-shadow:0 2px 7px rgba(16,24,40,.06);transition:transform .15s ease,box-shadow .15s ease}.shift:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,24,40,.1)}.drop-target{outline:2px dashed #111;outline-offset:-4px;background:#f8f8f8}.week-board{gap:12px}.week-day{background:#fff;border-radius:17px;box-shadow:0 4px 15px rgba(16,24,40,.045)}.day-board{grid-template-columns:minmax(0,760px);justify-content:center}.day-board .week-day{min-height:440px}.day-board .shift{padding:14px 48px 14px 14px}.day-board .shift b{font-size:15px}.schedule-legend{padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:900px){body{padding-bottom:74px}.shell{display:block}.side{position:fixed;inset:0 auto 0 0;width:min(84vw,320px);transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 50px rgba(0,0,0,.18)}body.menu-open .side{transform:translateX(0)}body.menu-open:after{content:"";position:fixed;inset:0;z-index:19;background:rgba(0,0,0,.35)}.main{padding:14px 14px 92px}.top{margin:-2px -2px 0;padding:8px 2px 14px}.page-title{font-size:25px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{min-height:88px;padding:14px}.metric{font-size:24px}.grid2,.grid3{grid-template-columns:1fr}.card{border-radius:17px;padding:15px}.schedule-card{margin-left:-6px;margin-right:-6px;padding:14px 10px}.schedule-toolbar{display:flex!important;flex-direction:column;align-items:stretch}.schedule-toolbar>div:first-child{min-width:0}.view-switch{order:2;width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.schedule-nav{order:3;display:grid;grid-template-columns:44px 1fr 44px}.schedule-nav form{min-width:0}.schedule-nav input{height:44px}.calendar-wrap{display:none!important}.schedule-card:has(.calendar-wrap)::after{content:'Chế độ Tháng phù hợp để xem tổng quan. Trên điện thoại, hãy chọn Tuần hoặc Ngày để thao tác dễ hơn.'}.week-board{display:grid;grid-template-columns:1fr;gap:10px}.week-day{min-height:0;padding:13px}.week-day header{position:sticky;top:66px;z-index:4;margin:-13px -13px 10px;padding:12px 13px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-radius:16px 16px 0 0;border-bottom:1px solid var(--line)}.quick-shift{border-radius:14px}.quick-shift summary{min-height:48px;display:flex;align-items:center}.table-wrap{overflow:visible}.table{min-width:0}.table thead{display:none}.table,.table tbody,.table tr,.table td{display:block;width:100%}.table tr{margin-bottom:12px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff}.table td{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border:0;text-align:right}.table td:before{content:attr(data-label);font-weight:750;color:var(--muted);text-align:left}.formgrid,.formgrid.four{grid-template-columns:1fr}.top-actions{gap:6px}.top-actions .btn{width:44px;padding:0;font-size:0}.top-actions .btn svg,.top-actions .btn .icon{font-size:18px}.profile-modal{align-items:end;padding:0}.profile-modal-card{border-radius:22px 22px 0 0;max-height:88vh;overflow:auto;padding-bottom:calc(22px + env(safe-area-inset-bottom))}}
@media(max-width:480px){.cards{grid-template-columns:1fr}.stat{min-height:78px}.brand img{width:46px;height:46px}.day-board .week-day{min-height:300px}.schedule-legend{font-size:11px}.btn{min-height:46px}.btn.sm{min-height:40px}.card-head{align-items:flex-start}.card-head .btn{flex-shrink:0}}


/* Cello Staff v2.5 — Phase 3, 4, 5 */
:root{--mobile-nav-h:76px}
.profile-hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;background:linear-gradient(135deg,#fff 0%,#f5f6f8 100%)}
.profile-hero-main{display:flex;align-items:center;gap:18px}.profile-hero-main img,.profile-hero-placeholder{width:78px;height:78px;border-radius:24px;object-fit:cover;background:#111;color:#fff;display:grid;place-items:center;font-size:30px;font-weight:800}.profile-hero h2{font-size:28px;margin:4px 0}.profile-hero p{margin:0;color:var(--muted)}.profile-completion{text-align:center;padding:14px 18px;border:1px solid var(--line);border-radius:18px;background:#fff}.profile-completion b{font-size:25px;display:block}.profile-completion span{font-size:12px;color:var(--muted)}
.profile-tabs{display:flex;gap:6px;padding:5px;background:#eef0f3;border-radius:14px;margin-bottom:16px;position:sticky;top:82px;z-index:8}.profile-tabs a{padding:10px 16px;border-radius:10px;font-weight:700;color:var(--muted)}.profile-tabs a.active,.profile-tabs a:hover{background:#fff;color:#111;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.profile-timeline{margin-top:18px}.timeline-item{display:grid;grid-template-columns:18px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.timeline-item>span{width:10px;height:10px;border-radius:50%;background:#111;margin-top:6px;box-shadow:0 0 0 5px #eff0f2}.timeline-item p{margin:4px 0;color:var(--muted)}.timeline-item small{color:var(--muted)}
.dashboard-v25{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;margin-top:18px}.agenda-row,.birthday-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.agenda-row:last-child,.birthday-row:last-child{border:0}.agenda-row div,.birthday-row div{display:flex;flex-direction:column}.agenda-row small,.birthday-row small{color:var(--muted);margin-top:3px}.shift-dot{width:12px;height:12px;border-radius:50%}.shift-dot.full{background:#3979ef}.shift-dot.part_morning{background:#28a36a}.shift-dot.part_afternoon{background:#e89b2d}.shift-dot.off{background:#98a0aa}.shift-dot.annual_leave{background:#8b5cf6}.shift-dot.sudden_leave{background:#e24d4d}
.empty-state{text-align:center;padding:36px 18px;color:var(--muted)}.empty-state>div{font-size:32px;margin-bottom:8px}.empty-state b{display:block;color:#222}.empty-state p{margin:6px 0}.empty-state.compact{padding:20px 10px}.empty-state.compact>div{font-size:24px}
.notification-filters{display:flex;gap:8px;overflow:auto;margin-bottom:14px;padding-bottom:2px}.notification-filters button{border:1px solid var(--line);background:#fff;padding:9px 14px;border-radius:999px;white-space:nowrap;font-weight:700}.notification-filters button.active{background:#111;color:#fff;border-color:#111}
.mobile-bottom-nav,.mobile-fab{display:none}
@media(max-width:900px){
 body{padding-bottom:calc(var(--mobile-nav-h) + 18px)}.footer-note{padding-bottom:22px}.side-note{display:none}.main{padding-bottom:24px}.top{top:0;border-radius:0;margin:-18px -14px 16px;padding:12px 14px}.page-title{font-size:20px}.eyebrow{font-size:10px}.top-actions{gap:5px}.top-actions .icon-action{width:42px;height:42px;padding:0;display:grid;place-items:center}.top-actions .action-label{display:none}
 .mobile-bottom-nav{display:grid;position:fixed;z-index:80;bottom:0;left:0;right:0;height:var(--mobile-nav-h);grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -10px 30px rgba(0,0,0,.08)}.mobile-bottom-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#777;border-radius:13px}.mobile-bottom-nav a span{font-size:22px;line-height:1}.mobile-bottom-nav a small{font-size:10px;font-weight:700}.mobile-bottom-nav a.active{background:#f0f1f3;color:#111}.mobile-bottom-nav b{position:absolute;top:2px;right:22%;min-width:17px;height:17px;border-radius:9px;background:#e5484d;color:#fff;font-size:10px;display:grid;place-items:center}
 .mobile-fab{display:grid;position:fixed;z-index:81;right:18px;bottom:calc(var(--mobile-nav-h) + 16px);width:56px;height:56px;border-radius:20px;background:#111;color:#fff;place-items:center;font-size:30px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
 .dashboard-v25{grid-template-columns:1fr}.profile-hero{align-items:flex-start}.profile-completion{padding:10px 12px}.profile-completion b{font-size:20px}.profile-hero-main img,.profile-hero-placeholder{width:62px;height:62px;border-radius:18px}.profile-hero h2{font-size:22px}.profile-tabs{top:67px;overflow:auto}.profile-tabs a{white-space:nowrap;padding:9px 13px}.grid2.profile-grid{display:block}.profile-grid>.card{margin-bottom:14px}
 .document-upload{padding:14px;border-radius:16px}.file-picker{min-height:52px;display:flex;align-items:center;justify-content:center}.delete-document-form .btn{width:100%}.employee-grid{grid-template-columns:1fr}.public-profile-head{align-items:center}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:112px}.metric{font-size:27px}.grid3{grid-template-columns:1fr}.coverage{grid-template-columns:1fr}.request-tabs{position:sticky;top:68px;z-index:6;background:var(--bg);padding:6px 0}.request-tabs a{flex:1;text-align:center}
 .calendar-toolbar{position:sticky;top:67px;z-index:7;background:var(--bg);padding:7px 0}.view-switch{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.view-switch a{text-align:center}.schedule-day-list .day-row{border-radius:18px}.shift-actions{opacity:1}
}
@media(max-width:480px){.cards{grid-template-columns:1fr 1fr;gap:10px}.card{padding:16px}.stat{padding:14px;min-height:100px}.stat-icon{width:37px;height:37px}.metric{font-size:24px}.profile-hero{display:block}.profile-completion{margin-top:14px;display:flex;align-items:center;justify-content:space-between}.profile-completion b{display:inline}.profile-hero-main{gap:12px}.formgrid{grid-template-columns:1fr!important}.btn{min-height:46px}.mobile-cards .table tr{padding:14px}.mobile-fab{right:14px}}

/* v4.2 — cấu hình quy tắc lịch */
.rules-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;background:linear-gradient(135deg,#fff 0%,#f0f7ff 100%)}.rules-hero h2{margin:5px 0}.rules-hero p{margin:0;color:var(--muted)}.rules-status{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#dff8e9;color:#087443;font-weight:800;font-size:12px}.rules-layout{align-items:start}.rules-form{display:grid;gap:20px}.rules-section{padding-top:18px;border-top:1px solid var(--line)}.rules-section:first-child{padding-top:0;border-top:0}.rules-section h3{margin:0 0 12px}.rules-section label{display:flex;flex-direction:column;gap:7px;font-weight:750}.rules-section textarea{min-height:76px;resize:vertical}.rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rules-hint{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#f5f7fa;color:var(--muted);font-size:12px}.rules-history{display:grid;gap:12px}.rules-history article{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fafafa}.rules-history article>div:first-child{display:flex;flex-direction:column;gap:3px}.rules-history article span,.rules-history article small{color:var(--muted)}.rule-chips{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0}.rule-chips span{padding:5px 8px;border-radius:999px;background:#fff;border:1px solid var(--line);color:#344054!important;font-size:11px;font-weight:700}
@media(max-width:700px){.rules-hero{align-items:flex-start}.rules-status{display:none}.rules-grid{grid-template-columns:1fr}.rules-history article{padding:12px}}

/* v4.3 — ngày lễ, làm thêm và nghỉ bù */
.holiday-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;background:linear-gradient(135deg,#fff8f1,#fff)}.holiday-hero h2{margin:5px 0}.holiday-hero p{margin:0;color:var(--muted)}.holiday-form{display:grid;gap:16px}.holiday-form label{display:flex;flex-direction:column;gap:7px;font-weight:750}.holiday-layout{align-items:start}.holiday-list,.holiday-requests{display:grid;gap:10px}.holiday-list article,.holiday-requests article{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fafafa}.holiday-date{flex:0 0 58px;display:grid;place-items:center;padding:8px;border-radius:13px;background:#fff0e3;color:#a44800}.holiday-date b{font-size:24px;line-height:1}.holiday-date span{font-size:10px;font-weight:750}.holiday-info{min-width:0;flex:1}.holiday-info h3{margin:0 0 4px}.holiday-info p{margin:0;color:var(--muted);font-size:12px}.holiday-info small{display:block;margin-top:6px;color:#875100}.holiday-register{margin-left:auto}.holiday-requests article>div:first-child{display:flex;flex:1;flex-direction:column;gap:3px}.holiday-requests article>div span{color:var(--muted);font-size:12px}.shift.holiday_off,.matrix-shift.holiday_off,.employee-shift-card.holiday_off{background:#f4eaff!important;border-color:#a774e8!important;color:#6930a8!important}.shift.holiday_work,.matrix-shift.holiday_work,.employee-shift-card.holiday_work{background:#fff1d6!important;border-color:#e39a22!important;color:#8b5200!important}.shift.holiday_comp,.matrix-shift.holiday_comp,.employee-shift-card.holiday_comp{background:#e8f1ff!important;border-color:#5892e8!important;color:#245ca8!important}.matrix-legend i.holiday_off{background:#a774e8}.matrix-legend i.holiday_work{background:#e39a22}.matrix-legend i.holiday_comp{background:#5892e8}.holiday-head{background:#fff0e3!important;color:#a44800!important}.holiday-cell{background:#fffaf5}.employee-month-stats:has(div:nth-child(4)){grid-template-columns:repeat(4,1fr)}
@media(max-width:700px){.holiday-hero{align-items:flex-start}.holiday-list article{align-items:flex-start;flex-wrap:wrap}.holiday-register{width:100%;margin-left:71px}.holiday-register .btn{width:100%}.holiday-requests article{flex-wrap:wrap}.holiday-requests .inline-actions{width:100%}.employee-month-stats:has(div:nth-child(4)){grid-template-columns:repeat(2,1fr)}}

/* v4.3.2 — xử lý nhân viên nghỉ việc */
.termination-panel{margin:16px 0;border-color:#f0c7c4;background:#fffafa}.termination-panel summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.termination-panel summary::-webkit-details-marker{display:none}.termination-panel summary>span:first-child{display:flex;flex-direction:column;gap:4px}.termination-panel summary small{color:var(--muted)}.termination-panel[open] summary{padding-bottom:16px;border-bottom:1px solid #f1d7d5}.termination-form{display:grid;gap:15px;padding-top:17px}.termination-form label{display:flex;flex-direction:column;gap:7px;font-weight:750}.termination-form textarea{min-height:86px;resize:vertical}.termination-warning{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:12px;background:#fff1f0;color:#8e2520}.termination-warning span{font-size:12px}.termination-panel.is-terminated{display:flex;align-items:center;justify-content:space-between;gap:18px;border-color:#d0d5dd;background:#f7f8fa}.termination-panel.is-terminated h2{margin:8px 0}.badge.terminated{background:#e4e7ec;color:#344054}
@media(max-width:700px){.termination-panel summary,.termination-panel.is-terminated{align-items:flex-start;flex-direction:column}.termination-panel summary .btn,.termination-panel.is-terminated form,.termination-panel.is-terminated .btn{width:100%}}

/* v5.4.0 — bảng lương */
.payroll-toolbar,.payroll-hero,.payroll-lock,.payslip-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.payroll-toolbar form label{display:flex;align-items:center;gap:10px;font-weight:800}.payroll-toolbar input{width:170px}.payroll-toolbar>div,.payroll-actions{display:flex;align-items:center;gap:9px}.payroll-hero{background:linear-gradient(135deg,#eef4ff,#fff)}.payroll-hero h2{margin:5px 0}.payroll-hero p,.payslip-head p{margin:0;color:var(--muted)}.payroll-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.payroll-summary article{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:7px}.payroll-summary span{font-size:12px;color:var(--muted);font-weight:750}.payroll-summary b{font-size:22px}.payroll-warning{color:#b42318;font-weight:750}.payroll-ok{color:#087443;font-weight:750}.table td small{display:block;color:var(--muted);margin-top:3px}.payroll-settings{align-items:start}.payroll-people{display:grid;gap:8px}.payroll-people a{padding:12px;border:1px solid var(--line);border-radius:12px;display:flex;justify-content:space-between;gap:10px}.payroll-people a span{color:var(--muted);font-size:12px}.payroll-people a.active{border-color:#2563eb;background:#eff6ff}.payroll-profile-form{display:grid;gap:14px}.payroll-profile-form>label,.payroll-rate-grid label{display:flex;flex-direction:column;gap:7px;font-weight:750}.payroll-rate-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.payslip{margin:18px 0}.payslip-head h2{margin:5px 0}.payslip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.payslip-grid>div{padding:13px;border-radius:12px;background:#f7f8fa;display:flex;flex-direction:column;gap:5px}.payslip-grid span,.payslip-lines span{font-size:12px;color:var(--muted)}.payslip-lines{margin-left:auto;max-width:520px}.payslip-lines>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--line)}.payslip-lines .payslip-total{margin-top:8px;padding:16px;border:0;border-radius:13px;background:#111827;color:#fff}.payslip-total span{color:#d0d5dd}.payslip-total b{font-size:23px}.payslip-note{margin-top:18px}.adjustment-form{display:grid;grid-template-columns:160px 180px 1fr auto;gap:10px}.adjustment-list{display:grid;gap:8px;margin-top:15px}.adjustment-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.adjustment-list article>div{display:flex;flex-direction:column;gap:3px}.adjustment-list span{font-size:12px;color:var(--muted)}.badge.locked{background:#dcfce7;color:#087443}.badge.draft{background:#fff4d6;color:#8a5400}
@media(max-width:800px){.payroll-toolbar,.payroll-hero,.payroll-lock,.payslip-head{align-items:stretch;flex-direction:column}.payroll-toolbar>div,.payroll-actions{display:grid;grid-template-columns:1fr 1fr}.payroll-toolbar .btn,.payroll-actions .btn{width:100%}.payroll-summary{grid-template-columns:1fr 1fr}.payroll-rate-grid,.payslip-grid{grid-template-columns:1fr 1fr}.adjustment-form{grid-template-columns:1fr}.payroll-settings{grid-template-columns:1fr}.payslip-lines{max-width:none}}
@media(max-width:480px){.payroll-summary{gap:9px}.payroll-summary article{padding:14px}.payroll-summary b{font-size:18px}.payslip-grid{grid-template-columns:1fr}.payroll-toolbar form label{align-items:stretch;flex-direction:column}.payroll-toolbar input{width:100%}}
@media print{.side,.top,.mobile-bottom-nav,.mobile-fab,.payroll-toolbar,.payroll-summary,.payroll-adjustments,.payroll-lock,.payslip-head .btn,.footer-note{display:none!important}.shell,.main{display:block!important;padding:0!important}.card.payslip{box-shadow:none;border:0;margin:0}.payslip{display:block!important}}
/* v5.4.1 — quản trị tài liệu hồ sơ và quy trình yêu cầu điều chỉnh */
.document-current{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin:10px 0;padding:10px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.document-preview-link{display:block;width:max-content}.document-current .document-thumb{margin:0}.document-current-meta{display:grid;gap:6px;min-width:0}.document-current-meta small{color:var(--muted);overflow-wrap:anywhere}.document-pdf-card{display:grid;place-items:center;width:112px;height:82px;padding:8px;border:1px solid #fecaca;border-radius:12px;background:#fff7f7;text-align:center}.document-pdf-card span{color:#dc2626;font-size:24px;font-weight:900}.document-pdf-card b{max-width:96px;overflow:hidden;color:#7f1d1d;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.document-change-status{display:grid;gap:4px;margin:10px 0;padding:10px 12px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc}.document-change-status b{font-size:12px}.document-change-status span,.document-change-status small{color:var(--muted);font-size:11px}.document-change-status.pending{border-color:#fde68a;background:#fffbeb}.document-change-status.approved{border-color:#bbf7d0;background:#f0fdf4}.document-change-status.rejected{border-color:#fecaca;background:#fef2f2}.document-change-request{margin-top:10px}.document-change-request>summary{list-style:none;width:max-content;cursor:pointer}.document-change-request>summary::-webkit-details-marker{display:none}.document-change-request form,.document-review form{display:grid;gap:9px;margin-top:10px}.document-change-request label,.document-review label{display:grid;gap:6px;font-weight:750}.document-change-request textarea,.document-review textarea{min-height:82px}.document-review{margin-top:10px;padding:12px;border:1px solid #fde68a;border-radius:14px;background:#fffbeb}.document-review>b{font-size:13px}.document-upload .delete-document-form{display:block;margin-top:10px}
@media(max-width:700px){.document-current{grid-template-columns:1fr}.document-preview-link,.document-pdf-card{width:100%}.document-current .document-thumb{width:100%;height:180px}.document-pdf-card{height:110px}.document-current-meta .btn,.document-change-request>summary{width:100%}.document-review .inline-actions{grid-template-columns:1fr}}

/* v5.5.0 — QR Kiosk V1 + persistent employee login */
.remember-device{display:flex;align-items:flex-start;gap:11px;margin:14px 0 18px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;cursor:pointer}.remember-device input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}.remember-device span{display:grid;gap:3px}.remember-device b{font-size:13px}.remember-device small{color:var(--muted);font-size:11px;line-height:1.45}
.kiosk-admin-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start;margin-bottom:18px}.kiosk-admin-card h2{margin:6px 0 8px;font-size:27px}.kiosk-admin-card p{max-width:760px;color:var(--muted)}.kiosk-link-box{display:grid;gap:10px;margin-top:18px}.kiosk-link-box code{display:block;max-width:100%;padding:12px 14px;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:12px;background:#f8fafc;font-size:12px}.kiosk-security-note{display:grid;gap:4px;margin-top:14px;padding:13px 15px;border-radius:13px;background:#f0fdf4;color:#166534}.kiosk-security-note span{font-size:12px;line-height:1.5}.kiosk-rotate-form{align-self:start}
.attendance-kiosk-page{min-height:100vh;margin:0;background:radial-gradient(circle at top,#eef6ff 0,#f6f8fc 48%,#eef2f7 100%);color:#101828}.attendance-kiosk-shell{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:34px 0 24px}.attendance-kiosk-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:24px}.attendance-kiosk-header img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:1px solid var(--line);background:#fff}.attendance-kiosk-header h1{margin:3px 0 2px;font-size:32px}.attendance-kiosk-header p{margin:0;color:var(--muted)}.attendance-kiosk-clock{display:grid;text-align:right}.attendance-kiosk-clock b{font-size:34px;font-variant-numeric:tabular-nums;letter-spacing:.02em}.attendance-kiosk-clock span{color:var(--muted);font-size:13px}.attendance-kiosk-card{display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,520px);gap:34px;align-items:center;padding:36px;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.10)}.attendance-kiosk-copy h2{margin:12px 0 10px;font-size:clamp(36px,5vw,58px);line-height:1.02}.attendance-kiosk-copy>p{max-width:580px;color:var(--muted);font-size:16px;line-height:1.6}.attendance-kiosk-steps{display:grid;gap:11px;margin-top:26px}.attendance-kiosk-steps span{display:flex;align-items:center;gap:12px;font-weight:800}.attendance-kiosk-steps b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#111827;color:#fff}.attendance-kiosk-qr{display:grid;gap:12px}.attendance-kiosk-qr #attendance-qr{max-height:none;width:100%;aspect-ratio:1;padding:20px;border-width:2px}.attendance-kiosk-shell footer{padding:18px 4px 0;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:900px){.kiosk-admin-card{grid-template-columns:1fr}.attendance-kiosk-shell{width:min(100% - 24px,760px);padding-top:18px}.attendance-kiosk-header{grid-template-columns:auto 1fr}.attendance-kiosk-clock{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:10px 0}.attendance-kiosk-card{grid-template-columns:1fr;padding:22px}.attendance-kiosk-copy{text-align:center}.attendance-kiosk-copy>p{margin-left:auto;margin-right:auto}.attendance-kiosk-steps{grid-template-columns:repeat(3,1fr);gap:7px}.attendance-kiosk-steps span{display:grid;justify-items:center;gap:6px;font-size:12px}.attendance-kiosk-qr{width:min(100%,520px);margin:auto}}
@media(max-width:520px){.attendance-kiosk-header img{width:54px;height:54px}.attendance-kiosk-header h1{font-size:23px}.attendance-kiosk-clock b{font-size:27px}.attendance-kiosk-card{padding:15px;border-radius:20px}.attendance-kiosk-copy h2{font-size:34px}.attendance-kiosk-copy>p{font-size:14px}.attendance-kiosk-qr #attendance-qr{padding:12px}.kiosk-link-box .inline-actions{display:grid;grid-template-columns:1fr}.kiosk-link-box .btn{width:100%}}


/* v5.5.1 — quét QR trực tiếp bằng camera trong HR Cello */
.attendance-scan-button{appearance:none;width:100%;font:inherit;cursor:pointer;text-align:center;transition:border-color .18s,background .18s,transform .12s}.attendance-scan-button:active{transform:scale(.992)}.attendance-scan-button:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:3px}.attendance-scan-glyph{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 10px;border-radius:15px;background:#111827;color:#fff;font-size:29px;font-weight:900;line-height:1}.attendance-scanner-open{overflow:hidden!important}.attendance-scanner-modal[hidden]{display:none!important}.attendance-scanner-modal{position:fixed;z-index:9999;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));background:rgba(2,6,23,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.attendance-scanner-sheet{width:min(100%,620px);max-height:100%;overflow:auto;padding:16px;border-radius:24px;background:#0f172a;color:#fff;box-shadow:0 28px 90px rgba(0,0,0,.48)}.attendance-scanner-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:2px 2px 14px}.attendance-scanner-head .eyebrow{color:#94a3b8}.attendance-scanner-head h2{margin:3px 0 0;color:#fff;font-size:23px}.attendance-scanner-close{appearance:none;display:grid;place-items:center;width:44px;height:44px;flex:0 0 auto;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.09);color:#fff;font-size:29px;line-height:1;cursor:pointer}.attendance-scanner-view{position:relative;overflow:hidden;width:100%;aspect-ratio:3/4;border-radius:20px;background:#020617}.attendance-scanner-view video{display:block;width:100%;height:100%;object-fit:cover;background:#020617}.attendance-scanner-mask{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(rgba(2,6,23,.28),rgba(2,6,23,.10))}.attendance-scanner-frame{position:relative;width:min(72vw,300px);max-width:72%;aspect-ratio:1;border-radius:24px;box-shadow:0 0 0 999px rgba(2,6,23,.42)}.attendance-scanner-frame i{position:absolute;width:48px;height:48px;border-color:#fff;border-style:solid}.attendance-scanner-frame i:nth-child(1){left:0;top:0;border-width:4px 0 0 4px;border-radius:18px 0 0 0}.attendance-scanner-frame i:nth-child(2){right:0;top:0;border-width:4px 4px 0 0;border-radius:0 18px 0 0}.attendance-scanner-frame i:nth-child(3){right:0;bottom:0;border-width:0 4px 4px 0;border-radius:0 0 18px 0}.attendance-scanner-frame i:nth-child(4){left:0;bottom:0;border-width:0 0 4px 4px;border-radius:0 0 0 18px}.attendance-scanner-frame span{position:absolute;left:8%;right:8%;top:50%;height:2px;border-radius:999px;background:#60a5fa;box-shadow:0 0 16px #60a5fa;animation:attendanceScannerLine 1.7s ease-in-out infinite alternate}.attendance-scanner-status{min-height:45px;margin:14px 3px 8px;text-align:center;color:#cbd5e1;font-weight:750;line-height:1.45}.attendance-scanner-status[data-state="success"]{color:#86efac}.attendance-scanner-status[data-state="error"]{color:#fca5a5}.attendance-scanner-cancel{width:100%;border-color:rgba(255,255,255,.16)!important;background:rgba(255,255,255,.08)!important;color:#fff!important}@keyframes attendanceScannerLine{from{transform:translateY(-90px)}to{transform:translateY(90px)}}
@media(min-width:700px){.attendance-scanner-modal{align-items:center}.attendance-scanner-view{aspect-ratio:4/3}.attendance-scanner-frame{width:300px}}
@media(max-width:520px){.attendance-scanner-modal{padding:0}.attendance-scanner-sheet{min-height:100dvh;border-radius:0;padding:calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom))}.attendance-scanner-head h2{font-size:21px}.attendance-scanner-view{height:min(68dvh,620px);aspect-ratio:auto;border-radius:18px}.attendance-scanner-frame{width:min(72vw,290px);max-width:78%}}
@media(prefers-reduced-motion:reduce){.attendance-scanner-frame span{animation:none}}

/* v5.5.2 — Attendance UX polish */
.attendance-location-message{min-height:22px;margin:2px 0 0!important;transition:color .18s ease}.attendance-location-message[data-state="loading"]{color:#1d4ed8!important}.attendance-location-message[data-state="success"]{color:#15803d!important}.attendance-location-message[data-state="error"]{color:#b91c1c!important}.attendance-location-retry{width:100%;justify-content:center}.attendance-punch.is-processing .attendance-scan-button,.attendance-punch.is-processing .attendance-location-retry{opacity:.65;pointer-events:none}
.attendance-feedback-card{display:flex;align-items:flex-start;gap:12px;max-width:980px;margin:0 auto 14px;padding:14px 15px;border:1px solid #fecaca;border-radius:16px;background:#fff7f7;box-shadow:0 8px 24px rgba(127,29,29,.06)}.attendance-feedback-card .attendance-feedback-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#fee2e2;color:#b91c1c;font-weight:900}.attendance-feedback-card>div:nth-child(2){display:grid;gap:3px;min-width:0}.attendance-feedback-card b{color:#7f1d1d;font-size:14px}.attendance-feedback-card span{color:#7f1d1d;font-size:13px;line-height:1.45}.attendance-feedback-card button{appearance:none;margin-left:auto;border:0;background:transparent;color:#991b1b;font-size:24px;line-height:1;cursor:pointer}
.attendance-result-open{overflow:hidden!important}.attendance-result-overlay{position:fixed;z-index:10020;inset:0;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.72);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);opacity:1;transition:opacity .22s ease}.attendance-result-overlay.is-leaving{opacity:0}.attendance-result-card{display:grid;justify-items:center;width:min(92vw,430px);padding:30px 24px 26px;border-radius:28px;background:#fff;text-align:center;box-shadow:0 32px 100px rgba(0,0,0,.28);transform:translateY(0) scale(1);transition:transform .22s ease}.attendance-result-overlay.is-leaving .attendance-result-card{transform:translateY(10px) scale(.98)}.attendance-result-check{display:grid;place-items:center;width:78px;height:78px;margin-bottom:14px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:42px;font-weight:950}.attendance-result-card .eyebrow{color:#64748b}.attendance-result-card h2{margin:8px 0 2px;font-size:28px;line-height:1.15;color:#0f172a}.attendance-result-card strong{margin:6px 0 2px;font-size:46px;letter-spacing:-.04em;color:#0f172a;font-variant-numeric:tabular-nums}.attendance-result-card p{margin:8px 0 10px;color:#475569;line-height:1.5}.attendance-result-card small{color:#15803d;font-weight:800}
.attendance-scanner-head-actions{display:flex;align-items:center;gap:8px}.attendance-scanner-network{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.07);color:#bbf7d0;font-size:11px;font-weight:800;white-space:nowrap}.attendance-scanner-network i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.12)}.attendance-scanner-network[data-online="0"]{color:#fecaca}.attendance-scanner-network[data-online="0"] i{background:#f87171;box-shadow:0 0 0 3px rgba(248,113,113,.12)}
.attendance-scanner-status-wrap{display:flex;align-items:flex-start;justify-content:center;gap:9px;min-height:54px;margin:13px 3px 0;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.055)}.attendance-scanner-status-wrap .attendance-scanner-status{min-height:0;margin:0;text-align:left;flex:1}.attendance-scanner-status-dot{width:10px;height:10px;flex:0 0 10px;margin-top:5px;border-radius:50%;background:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.12);animation:attendanceStatusPulse 1.2s ease-in-out infinite}.attendance-scanner-status[data-state="success"]~*{} .attendance-scanner-tip{margin:7px 4px 12px;text-align:center;color:#94a3b8;font-size:11px;line-height:1.4}.attendance-scanner-modal[data-state="success"] .attendance-scanner-status-dot{background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.12);animation:none}.attendance-scanner-modal[data-state="error"] .attendance-scanner-status-dot{background:#f87171;box-shadow:0 0 0 4px rgba(248,113,113,.12);animation:none}.attendance-scanner-modal[data-state="opening"] .attendance-scanner-status-dot{background:#fbbf24;box-shadow:0 0 0 4px rgba(251,191,36,.12)}
.attendance-scanner-modal[data-state="success"] .attendance-scanner-frame i{border-color:#86efac}.attendance-scanner-modal[data-state="success"] .attendance-scanner-frame span{background:#4ade80;box-shadow:0 0 18px #4ade80;animation:none}.attendance-scanner-modal[data-state="error"] .attendance-scanner-frame i{border-color:#fca5a5}.attendance-scanner-modal[data-state="error"] .attendance-scanner-frame span{background:#f87171;box-shadow:0 0 14px #f87171;animation:none}
@keyframes attendanceStatusPulse{0%,100%{opacity:.55;transform:scale(.88)}50%{opacity:1;transform:scale(1.08)}}
@media(max-width:520px){.attendance-scanner-network span{display:none}.attendance-scanner-network{padding:9px}.attendance-result-card{padding:26px 20px 24px;border-radius:26px}.attendance-result-card h2{font-size:25px}.attendance-result-card strong{font-size:42px}.attendance-feedback-card{margin-left:2px;margin-right:2px}}
@media(prefers-reduced-motion:reduce){.attendance-scanner-status-dot{animation:none}.attendance-result-overlay,.attendance-result-card{transition:none}}

/* v5.6.0 — Schedule UX & Integrity V2 */
.schedule-v2-shell{display:grid;gap:14px}.schedule-v2-top{display:flex;align-items:end;justify-content:space-between;gap:18px}.schedule-v2-top h2{margin:4px 0;font-size:28px}.schedule-v2-top p{max-width:850px;margin:0;color:var(--muted);line-height:1.55}.schedule-v2-nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}.schedule-v2-nav form{margin:0}.schedule-v2-nav input{min-width:165px;height:40px}.schedule-v2-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:auto}.schedule-v2-tabs a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 15px;border-radius:11px;color:var(--muted);font-weight:800;white-space:nowrap}.schedule-v2-tabs a.active{background:#111827;color:#fff}.schedule-v2-tabs b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px}.schedule-v2-workflow{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #dbe5f2;border-radius:16px;background:#f8fafc}.schedule-v2-workflow.is-draft{border-color:#f5d98a;background:#fffbeb}.schedule-v2-workflow.is-locked{border-color:#fecaca;background:#fff7f7}.schedule-v2-workflow>div:first-child{display:grid;gap:3px}.schedule-v2-workflow>div:first-child>span,.schedule-v2-employee-state span{width:max-content;padding:4px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:900;letter-spacing:.05em}.schedule-v2-workflow.is-draft>div:first-child>span{background:#fef3c7;color:#92400e}.schedule-v2-workflow small{color:var(--muted)}.schedule-v2-workflow-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.schedule-v2-workflow-actions form{margin:0}.schedule-v2-workflow-actions button:disabled{opacity:.45;cursor:not-allowed}.schedule-publish{background:#15803d!important}.schedule-v2-employee-state{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #dbe5f2;border-radius:15px;background:#f8fafc}.schedule-v2-matrix-card{padding:15px}.schedule-v2-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.schedule-v2-guide>div{display:grid;gap:3px;padding:11px 13px;border:1px solid #e5eaf1;border-radius:12px;background:#fafbfc}.schedule-v2-guide span{color:var(--muted);font-size:12px;line-height:1.45}.schedule-v2-scroll{max-height:72vh;overflow:auto;border:1px solid #dfe5ec;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}.schedule-v2-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:11px}.schedule-v2-matrix th,.schedule-v2-matrix td{height:62px;padding:4px;border-right:1px solid #e9edf2;border-bottom:1px solid #e9edf2;text-align:center;background:#fff}.schedule-v2-matrix thead th{position:sticky;top:0;z-index:6;min-width:58px;height:54px;background:#f8fafc;color:#475569}.schedule-v2-person-head{left:0;z-index:9!important;min-width:205px!important;text-align:left!important;padding-left:14px!important}.schedule-v2-day-head b{display:block;font-size:15px;color:#111827}.schedule-v2-day-head span{display:block;margin-top:1px;font-size:9px}.schedule-v2-day-head i{position:absolute;right:4px;top:4px;font-style:normal;font-size:9px}.schedule-v2-day-head.is-sunday{background:#fff7ed;color:#c2410c}.schedule-v2-day-head.is-holiday{background:#fff1e6;color:#b45309}.schedule-v2-day-head.is-today{box-shadow:inset 0 -3px #111827}.schedule-v2-day-head.is-past{background:#f3f4f6;color:#9ca3af}.schedule-v2-day-head.has-coverage-error:after{content:'!';position:absolute;left:4px;top:4px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#dc2626;color:#fff;font-size:9px;font-weight:900}.schedule-v2-person{position:sticky;left:0;z-index:5;display:flex;align-items:center;gap:9px;min-width:205px;padding:8px 10px!important;text-align:left!important;background:#fff!important;box-shadow:5px 0 10px rgba(15,23,42,.04)}.schedule-v2-person>div{display:grid;gap:2px}.schedule-v2-person small{color:var(--muted);font-size:9px;white-space:nowrap}.schedule-v2-cell{min-width:58px;padding:3px!important}.schedule-v2-cell>button,.schedule-v2-readonly{position:relative;display:grid;place-items:center;align-content:center;gap:1px;width:50px;height:52px;margin:auto;padding:3px;border:1px solid transparent;border-radius:10px;background:#f8fafc;color:#334155}.schedule-v2-cell>button{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.schedule-v2-cell>button:hover:not([aria-disabled="true"]),.schedule-v2-cell>button:focus-visible:not([aria-disabled="true"]){transform:translateY(-2px);box-shadow:0 7px 16px rgba(15,23,42,.14);outline:2px solid #2563eb;outline-offset:1px}.schedule-v2-cell b{font-size:15px;line-height:1}.schedule-v2-cell span{font-size:8px;white-space:nowrap}.schedule-v2-cell i{position:absolute;right:3px;top:2px;font-style:normal;font-size:8px}.schedule-v2-cell.full>button,.schedule-v2-cell.full .schedule-v2-readonly{background:#eaf2ff;color:#174ea6;border-color:#bfdbfe}.schedule-v2-cell.part_morning>button,.schedule-v2-cell.part_morning .schedule-v2-readonly{background:#eafaf0;color:#13763c;border-color:#bbf7d0}.schedule-v2-cell.part_afternoon>button,.schedule-v2-cell.part_afternoon .schedule-v2-readonly{background:#fff4dd;color:#9a5b00;border-color:#fde68a}.schedule-v2-cell.off>button,.schedule-v2-cell.off .schedule-v2-readonly{background:#f1f5f9;color:#64748b;border-color:#dbe2ea}.schedule-v2-cell.annual_leave>button,.schedule-v2-cell.annual_leave .schedule-v2-readonly,.schedule-v2-cell.sudden_leave>button,.schedule-v2-cell.sudden_leave .schedule-v2-readonly{background:#f5f3ff;color:#7c3aed;border-color:#ddd6fe}.schedule-v2-cell.holiday_off>button,.schedule-v2-cell.holiday_off .schedule-v2-readonly{background:#f4eaff;color:#6930a8;border-color:#d8b4fe}.schedule-v2-cell.holiday_work>button,.schedule-v2-cell.holiday_work .schedule-v2-readonly{background:#fff1d6;color:#8b5200;border-color:#f5c56b}.schedule-v2-cell.holiday_comp>button,.schedule-v2-cell.holiday_comp .schedule-v2-readonly{background:#e8f1ff;color:#245ca8;border-color:#93c5fd}.schedule-v2-cell.is-locked>button{cursor:not-allowed;filter:saturate(.55);opacity:.68}.schedule-v2-cell.is-past{background:#f7f8fa}.schedule-v2-cell.is-past>button,.schedule-v2-cell.is-past .schedule-v2-readonly{opacity:.58}.schedule-v2-cell.is-today{box-shadow:inset 0 0 0 2px #111827}.schedule-v2-cell.is-holiday{background:#fffaf5}.schedule-v2-quota{min-width:64px;font-weight:900}.schedule-v2-quota.ok,.schedule-v2-row-status.ok{color:#15803d;background:#f0fdf4}.schedule-v2-quota.bad,.schedule-v2-row-status.bad{color:#b91c1c;background:#fef2f2}.schedule-v2-row-status{min-width:88px;font-weight:850}.schedule-v2-coverage-row th{position:sticky;left:0;z-index:5;background:#f8fafc!important;text-align:left!important;padding-left:14px!important}.schedule-v2-coverage-row td{height:48px}.schedule-v2-coverage-row td.ok{background:#f0fdf4;color:#15803d}.schedule-v2-coverage-row td.bad{background:#fef2f2;color:#b91c1c}.schedule-v2-coverage-row b,.schedule-v2-coverage-row span{display:block}.schedule-v2-coverage-row span{max-width:56px;overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.schedule-v2-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:11px}.schedule-v2-legend span{display:flex;align-items:center;gap:5px}.schedule-v2-legend i{width:11px;height:11px;border-radius:3px}.schedule-v2-legend i.full{background:#2563eb}.schedule-v2-legend i.part_morning{background:#16a34a}.schedule-v2-legend i.part_afternoon{background:#f59e0b}.schedule-v2-legend i.off{background:#94a3b8}.schedule-v2-drawer[hidden]{display:none}.schedule-v2-drawer{position:fixed;inset:0;z-index:170}.schedule-v2-drawer-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(3px)}.schedule-v2-drawer aside{position:absolute;top:0;right:0;width:min(520px,94vw);height:100%;overflow:auto;padding:28px 24px calc(30px + env(safe-area-inset-bottom));background:#fff;box-shadow:-24px 0 70px rgba(15,23,42,.24);animation:scheduleDrawerIn .2s ease}.schedule-v2-drawer aside>h2{margin:5px 0}.schedule-v2-drawer aside>p{margin:0 0 18px;color:var(--muted)}@keyframes scheduleDrawerIn{from{transform:translateX(30px);opacity:.5}to{transform:none;opacity:1}}.schedule-v2-shift-options{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:0 0 14px;padding:0;border:0}.schedule-v2-shift-options legend{grid-column:1/-1;margin-bottom:4px;font-weight:850}.schedule-v2-shift-options label{cursor:pointer}.schedule-v2-shift-options input{position:absolute;opacity:0;pointer-events:none}.schedule-v2-shift-options span{display:grid;gap:2px;padding:12px;border:1px solid #dbe3ec;border-radius:13px;background:#fff;transition:.15s}.schedule-v2-shift-options small{color:var(--muted);font-size:10px}.schedule-v2-shift-options input:checked+span{border-color:#111827;background:#111827;color:#fff;box-shadow:0 6px 16px rgba(15,23,42,.16)}.schedule-v2-shift-options input:checked+span small{color:#d1d5db}.schedule-v2-preview{min-height:118px;margin:10px 0;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.preview-placeholder{display:grid;place-items:center;min-height:88px;color:var(--muted);text-align:center}.schedule-v2-preview-loading{display:flex;align-items:center;justify-content:center;gap:9px;min-height:88px}.schedule-v2-preview-loading span{width:18px;height:18px;border:2px solid #d1d5db;border-top-color:#111827;border-radius:50%;animation:scheduleSpin .7s linear infinite}@keyframes scheduleSpin{to{transform:rotate(360deg)}}.schedule-v2-preview-result{display:grid;gap:10px}.schedule-v2-preview-result>p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.schedule-v2-preview-result.bad>p{color:#b91c1c}.schedule-v2-change-arrow{display:flex;align-items:center;justify-content:center;gap:12px;padding:7px;border-radius:10px;background:#fff}.schedule-v2-change-arrow span{font-weight:900}.schedule-v2-change-arrow b{color:var(--muted)}.schedule-v2-preview-quotas{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.schedule-v2-preview-quotas span{display:grid;place-items:center;gap:2px;padding:8px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;font-size:10px}.schedule-v2-preview-quotas b{font-size:14px}.schedule-v2-preview-line{display:grid;gap:2px;padding:9px 11px;border-radius:10px}.schedule-v2-preview-line.ok{background:#ecfdf3;color:#166534}.schedule-v2-preview-line.bad{background:#fef2f2;color:#991b1b}.schedule-v2-preview-line span{font-size:11px}.schedule-v2-drawer [data-schedule-v2-pair-wrap]{display:grid;gap:6px;margin:12px 0}.schedule-v2-drawer [data-schedule-v2-pair-wrap][hidden]{display:none}.schedule-v2-drawer [data-schedule-v2-pair-wrap] label{display:grid;gap:6px;font-weight:800}.schedule-v2-drawer [data-schedule-v2-pair-wrap] small{color:var(--muted)}.schedule-v2-save{width:100%;min-height:48px;margin-top:8px}.schedule-v2-save:disabled{opacity:.45;cursor:not-allowed}.schedule-v2-check-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:14px;align-items:start}.schedule-v2-issue-list{display:grid;gap:8px}.schedule-v2-issue-list article{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border-radius:11px}.schedule-v2-issue-list article>b{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%}.schedule-v2-issue-list article.bad{background:#fef2f2;color:#991b1b}.schedule-v2-issue-list article.bad>b{background:#dc2626;color:#fff}.schedule-v2-issue-list article.warn{background:#fff7ed;color:#9a3412}.schedule-v2-issue-list article.warn>b{background:#f59e0b;color:#fff}.schedule-v2-empty-good{padding:14px;border-radius:12px;background:#ecfdf3;color:#166534;font-weight:800}.schedule-v2-past-adjust{display:grid;grid-template-columns:minmax(230px,.65fr) minmax(0,1.35fr);gap:20px;align-items:start}.schedule-v2-past-adjust h2{margin:5px 0}.schedule-v2-past-adjust p{margin:0;color:var(--muted);line-height:1.5}.schedule-v2-past-adjust form{align-items:end}.schedule-v2-reason{grid-column:1/-1}.schedule-v2-reason textarea{min-height:80px}.schedule-v2-lock-banner{padding:14px;border:1px solid #fecaca;border-radius:12px;background:#fef2f2;color:#991b1b;font-weight:800}.schedule-v2-history{display:grid}.schedule-v2-history article{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.schedule-v2-history article:last-child{border-bottom:0}.schedule-v2-history-dot{flex:0 0 10px;width:10px;height:10px;margin-top:5px;border-radius:50%;background:#2563eb}.schedule-v2-history article>div{display:grid;gap:3px}.schedule-v2-history p{margin:0;color:#475569}.schedule-v2-history small{color:var(--muted)}
@media(max-width:900px){.schedule-v2-top{align-items:stretch;flex-direction:column}.schedule-v2-nav{display:grid;grid-template-columns:44px 1fr 44px}.schedule-v2-nav input{width:100%;min-width:0}.schedule-v2-workflow{align-items:stretch;flex-direction:column}.schedule-v2-workflow-actions{justify-content:flex-start}.schedule-v2-workflow-actions form,.schedule-v2-workflow-actions button{width:100%}.schedule-v2-guide{grid-template-columns:1fr}.schedule-v2-scroll{max-height:68vh}.schedule-v2-person-head,.schedule-v2-person{min-width:155px!important}.schedule-v2-person{gap:6px}.schedule-v2-person .staff-avatar{width:27px;height:27px}.schedule-v2-person small{display:none}.schedule-v2-cell{min-width:54px}.schedule-v2-cell>button,.schedule-v2-readonly{width:46px}.schedule-v2-check-grid,.schedule-v2-past-adjust{grid-template-columns:1fr}.schedule-v2-drawer aside{top:auto;bottom:0;width:100%;height:auto;max-height:90vh;border-radius:22px 22px 0 0;animation:scheduleDrawerUp .2s ease}@keyframes scheduleDrawerUp{from{transform:translateY(30px);opacity:.5}to{transform:none;opacity:1}}}
@media(max-width:520px){.schedule-v2-top h2{font-size:24px}.schedule-v2-tabs a{flex:1;padding:0 10px}.schedule-v2-matrix-card{margin-left:-7px;margin-right:-7px;padding:10px 7px}.schedule-v2-shift-options{grid-template-columns:1fr 1fr}.schedule-v2-preview-quotas{grid-template-columns:repeat(3,1fr)}.schedule-v2-drawer aside{padding:24px 16px calc(22px + env(safe-area-inset-bottom))}}

/* v5.6.1 — Schedule internal scroll + mobile compact */
.schedule-v2-shell,.schedule-v2-matrix-card{min-width:0;max-width:100%}.schedule-v2-matrix-card{width:100%;overflow:hidden}.schedule-v2-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}.schedule-v2-person-label-short,.schedule-v2-mobile-coverage,.schedule-v2-mobile-quotas{display:none}
@media(max-width:520px){
  .schedule-v2-matrix-card{margin-left:-7px;margin-right:-7px;padding:10px 7px}
  .schedule-v2-guide{margin-bottom:8px}
  .schedule-v2-mobile-quotas{display:block;margin:0 0 8px}.schedule-v2-mobile-quotas details{border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden}.schedule-v2-mobile-quotas summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:9px 11px;cursor:pointer;list-style:none;font-size:11px}.schedule-v2-mobile-quotas summary::-webkit-details-marker{display:none}.schedule-v2-mobile-quotas summary span{font-weight:850;color:#111827}.schedule-v2-mobile-quotas summary b{color:#64748b;font-size:10px;white-space:nowrap}.schedule-v2-mobile-quota-list{display:grid;border-top:1px solid #eef2f7}.schedule-v2-mobile-quota-list article{display:flex;align-items:center;gap:8px;padding:9px 11px;border-bottom:1px solid #f1f5f9}.schedule-v2-mobile-quota-list article:last-child{border-bottom:0}.schedule-v2-mobile-quota-list .staff-avatar{width:28px;height:28px;flex:0 0 28px}.schedule-v2-mobile-quota-list article>div{display:grid;gap:1px;min-width:0}.schedule-v2-mobile-quota-list article>div b{font-size:11px}.schedule-v2-mobile-quota-list article small{font-size:9px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-v2-mobile-quota-list article em{display:grid;place-items:center;width:22px;height:22px;margin-left:auto;border-radius:50%;font-style:normal;font-size:11px;font-weight:900}.schedule-v2-mobile-quota-list article em.ok{background:#ecfdf3;color:#15803d}.schedule-v2-mobile-quota-list article em.bad{background:#fef2f2;color:#b91c1c}
  .schedule-v2-scroll{max-height:61vh;border-radius:12px;scrollbar-gutter:stable;box-shadow:0 6px 18px rgba(15,23,42,.05)}
  .schedule-v2-person-head,.schedule-v2-person{min-width:58px!important;width:58px!important;max-width:58px!important;padding:4px!important;text-align:center!important}.schedule-v2-person-head{left:0!important}.schedule-v2-person-label-full{display:none}.schedule-v2-person-label-short{display:inline;font-size:10px;letter-spacing:.04em}.schedule-v2-person{justify-content:center;gap:0;box-shadow:4px 0 10px rgba(15,23,42,.08)}.schedule-v2-person>div{display:none!important}.schedule-v2-person .staff-avatar{width:32px;height:32px;flex:0 0 32px;margin:auto;font-size:11px}.schedule-v2-person.show-name:after{content:attr(data-person-name);position:absolute;left:48px;top:50%;z-index:30;transform:translateY(-50%);max-width:180px;padding:7px 9px;border-radius:9px;background:#111827;color:#fff;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 8px 24px rgba(15,23,42,.22);pointer-events:none}
  .schedule-v2-day-head{min-width:50px!important;width:50px}.schedule-v2-day-head b{font-size:14px}.schedule-v2-day-head span{font-size:8px}.schedule-v2-day-head.has-coverage-error:after{display:none}.schedule-v2-mobile-coverage{position:absolute;left:4px;bottom:4px;display:grid;place-items:center;width:13px;height:13px;border-radius:50%;font-style:normal;font-size:8px;font-weight:950}.schedule-v2-mobile-coverage.ok{background:#dcfce7;color:#15803d}.schedule-v2-mobile-coverage.bad{background:#fee2e2;color:#b91c1c}
  .schedule-v2-cell{min-width:50px!important;width:50px;padding:3px!important}.schedule-v2-cell>button,.schedule-v2-readonly{width:44px;height:46px;border-radius:9px}.schedule-v2-cell b{font-size:16px}.schedule-v2-cell>button>span,.schedule-v2-readonly>span{display:none}.schedule-v2-cell i{right:2px;top:1px;font-size:7px}
  .schedule-v2-coverage-row,.schedule-v2-quota-head,.schedule-v2-status-head,.schedule-v2-quota,.schedule-v2-row-status{display:none!important}
  .schedule-v2-legend{gap:12px;flex-wrap:nowrap;overflow-x:auto;margin-top:9px;padding:1px 1px 4px;white-space:nowrap;scrollbar-width:none}.schedule-v2-legend::-webkit-scrollbar{display:none}.schedule-v2-legend span{flex:0 0 auto;font-size:10px}
}
body:has(.schedule-v2-shell){overflow-x:hidden}.main:has(.schedule-v2-shell){min-width:0}

/* v5.6.3 — Employee UX simplification + 3-day schedule + mobile explicit schedule */
.employee-dashboard-next{margin:22px 0 16px;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.employee-dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:15px}.employee-dashboard-heading h2{margin:4px 0 3px;font-size:24px}.employee-dashboard-heading p{margin:0;color:var(--muted)}
.employee-next-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.employee-next-day{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:100px;padding:15px 16px;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc}.employee-next-day.is-today{box-shadow:inset 0 0 0 2px #111827}.employee-next-date{display:grid;gap:3px}.employee-next-date b{font-size:14px}.employee-next-date span{color:var(--muted);font-size:12px}.employee-next-shift{display:grid;justify-items:end;gap:5px;text-align:right}.employee-next-shift strong{font-size:20px;letter-spacing:-.02em}.employee-next-shift span{font-size:12px;color:var(--muted)}
.employee-next-day.full{background:#eef5ff;border-color:#cfe0ff}.employee-next-day.full .employee-next-shift strong{color:#174ea6}.employee-next-day.part_morning{background:#effaf3;border-color:#c8eed5}.employee-next-day.part_morning .employee-next-shift strong{color:#13763c}.employee-next-day.part_afternoon{background:#fff7e7;border-color:#f8dea3}.employee-next-day.part_afternoon .employee-next-shift strong{color:#9a5b00}.employee-next-day.off,.employee-next-day.holiday_off,.employee-next-day.holiday_comp{background:#f5f6f8;color:#64748b}.employee-next-day.annual_leave,.employee-next-day.sudden_leave{background:#f7f3ff;border-color:#e2d8ff;color:#6d28d9}.employee-next-day.missing{background:#fff;border-style:dashed}
.employee-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px}.employee-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.employee-quick-action{display:flex;align-items:center;gap:10px;min-height:78px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fafbfc}.employee-quick-action>span{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#eef2f7;font-size:18px}.employee-quick-action>div{display:grid;gap:2px}.employee-quick-action small{color:var(--muted);font-size:11px}.employee-quick-action.primary{background:#111827;color:#fff}.employee-quick-action.primary>span{background:#fff;color:#111827}.employee-quick-action.primary small{color:#cbd5e1}.employee-notice-card .notice{padding:10px 0}
.schedule-v2-shift-mobile{display:none}
.schedule-v2-employee-view .schedule-v2-top p{max-width:none}.schedule-v2-employee-view .schedule-v2-employee-state{padding:10px 13px}.schedule-v2-employee-view .schedule-v2-employee-state b{font-size:13px}

@media(max-width:900px){
  .employee-next-grid{grid-template-columns:1fr}.employee-dashboard-grid{grid-template-columns:1fr}.employee-quick-actions{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:520px){
  .employee-dashboard-next{margin:16px 0 12px;padding:14px;border-radius:17px}.employee-dashboard-heading{align-items:flex-start}.employee-dashboard-heading h2{font-size:21px}.employee-dashboard-heading p{font-size:12px}.employee-dashboard-heading .btn{display:none}.employee-next-grid{gap:8px}.employee-next-day{min-height:76px;padding:11px 12px;border-radius:13px}.employee-next-shift strong{font-size:18px}.employee-dashboard-grid{gap:12px}.employee-quick-actions{grid-template-columns:1fr}.employee-quick-action{min-height:64px}.employee-quick-card .card-head{align-items:flex-start}.employee-quick-card .card-head h2,.employee-notice-card .card-head h2{font-size:18px}

  /* The employee name is readable and scrolls with the matrix; there is no fixed NV header. */
  .schedule-v2-person-head{position:static!important;left:auto!important;z-index:6!important;min-width:112px!important;width:112px!important;max-width:112px!important;padding:4px!important;box-shadow:none!important}
  .schedule-v2-person-label-full,.schedule-v2-person-label-short{display:none!important}
  .schedule-v2-person{position:static!important;left:auto!important;z-index:1!important;min-width:112px!important;width:112px!important;max-width:112px!important;justify-content:flex-start!important;gap:0!important;padding:6px 8px!important;text-align:left!important;box-shadow:none!important}
  .schedule-v2-person .staff-avatar{display:none!important}.schedule-v2-person>div{display:grid!important;min-width:0}.schedule-v2-person>div b{display:block;font-size:11px;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip}.schedule-v2-person small{display:none!important}.schedule-v2-person.show-name:after{display:none!important}
  .schedule-v2-day-head{min-width:78px!important;width:78px!important}.schedule-v2-cell{min-width:78px!important;width:78px!important;padding:3px!important}.schedule-v2-cell>button,.schedule-v2-readonly{width:70px!important;height:48px!important;padding:3px 4px!important}.schedule-v2-shift-short,.schedule-v2-shift-desktop{display:none!important}.schedule-v2-shift-mobile{display:block;font-size:11px;line-height:1.05;font-weight:900;letter-spacing:.01em;white-space:nowrap}.schedule-v2-cell i{right:2px;top:1px;font-size:7px}
  .schedule-v2-employee-view .schedule-v2-mobile-coverage,.schedule-v2-employee-view .schedule-v2-day-head i{display:none!important}.schedule-v2-employee-view .schedule-v2-day-head.has-coverage-error:after{display:none!important}
  .schedule-v2-employee-view .schedule-v2-scroll{max-height:62vh}.schedule-v2-employee-view .schedule-v2-legend{justify-content:flex-start}
}


/* v5.7.0 — Demo Account Isolation */
.demo-scope-banner{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px;border:1px solid #f1c46b;border-radius:14px;background:#fff8e8;color:#6b4b12}.demo-scope-banner>div{display:grid;gap:1px;margin-right:auto}.demo-scope-banner b{font-size:12px;letter-spacing:.08em}.demo-scope-banner span{font-size:11px;color:#8a631c}.demo-scope-banner .btn{white-space:nowrap}
.demo-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;background:linear-gradient(135deg,#fff9eb 0%,#fff 58%,#f7f9fc 100%);border-color:#f3d28f}.demo-hero h2{margin:4px 0 5px}.demo-hero p{margin:0;color:var(--muted);max-width:720px}.demo-golive{display:grid;gap:4px;min-width:170px;padding:13px 15px;border:1px solid #ead7aa;border-radius:14px;background:#fff}.demo-golive span{font-size:10px;color:#8a631c;text-transform:uppercase;letter-spacing:.08em}.demo-golive b{font-size:20px}
.demo-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.demo-stat-grid article{display:grid;gap:5px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#fff}.demo-stat-grid span{font-size:11px;color:var(--muted)}.demo-stat-grid b{font-size:24px;line-height:1}
.demo-users{display:grid;gap:8px}.demo-users article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid #edf0f4;border-radius:12px;background:#fafbfc}.demo-users article>div:nth-child(2){display:grid;gap:2px}.demo-users article span:not(.badge){font-size:11px;color:var(--muted)}.demo-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#111827;color:#fff;font-weight:900}
.demo-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.demo-module-grid>a{display:grid;gap:4px;text-decoration:none;transition:.15s ease}.demo-module-grid>a:hover{transform:translateY(-1px);border-color:#d7b15d}.demo-module-grid b{color:#111827}.demo-module-grid span{font-size:11px;color:var(--muted)}
.demo-rules{margin-top:14px}.demo-rules .rules-grid>div{padding:12px;border:1px solid #edf0f4;border-radius:12px;background:#fafbfc}.demo-rules p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.demo-shared-config-note{border-color:#f1d89b;background:#fffbf0}.demo-shared-config-note p{margin:5px 0 0}.account-demo-badge{display:inline-flex;margin-left:7px;vertical-align:middle;font-size:8px;letter-spacing:.07em}
@media(max-width:900px){.demo-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-module-grid{grid-template-columns:1fr 1fr}.demo-hero{align-items:flex-start}.demo-golive{min-width:150px}}
@media(max-width:520px){.demo-scope-banner{align-items:flex-start;flex-wrap:wrap}.demo-scope-banner>div{flex:1 0 100%}.demo-scope-banner .btn{flex:1}.demo-hero{display:grid}.demo-golive{min-width:0}.demo-stat-grid{grid-template-columns:1fr 1fr}.demo-stat-grid b{font-size:21px}.demo-module-grid{grid-template-columns:1fr}.demo-users article{grid-template-columns:34px minmax(0,1fr) auto}.demo-avatar{width:34px;height:34px}}

/* v5.8.0 Employee Self-Scheduling & Balanced Staffing */
.self-schedule-callout{display:flex;align-items:center;gap:14px;margin:12px 0;padding:13px 15px;border:1px solid #c7d7f2;border-radius:15px;background:linear-gradient(135deg,#f8fbff,#eef5ff)}.self-schedule-callout>div{display:grid;gap:2px;margin-right:auto}.self-schedule-callout b{font-size:13px}.self-schedule-callout small{color:#64748b;font-size:11px}.self-schedule-callout.employee{border-color:#bbf7d0;background:#f0fdf4}
.self-schedule-shell{min-width:0;max-width:100%}.self-schedule-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.self-schedule-top h2{margin:4px 0;font-size:26px}.self-schedule-top p{max-width:780px;margin:0;color:var(--muted)}
.self-schedule-empty{display:grid;gap:10px}.self-schedule-open{display:flex;align-items:end;gap:10px;max-width:620px}.self-schedule-open label{display:grid;gap:6px;flex:1;font-weight:800}
.self-schedule-status{display:flex;align-items:center;gap:15px;margin:0 0 14px;padding:13px 15px;border:1px solid #dbe5ef;border-radius:16px;background:#f8fafc}.self-schedule-status.open{border-color:#bbf7d0;background:#f0fdf4}.self-schedule-status.review{border-color:#fde68a;background:#fffbeb}.self-schedule-status.approved{border-color:#bfdbfe;background:#eff6ff}.self-schedule-status>div:first-child{display:grid;gap:2px;margin-right:auto}.self-schedule-status>div:first-child>span{width:max-content;padding:3px 7px;border-radius:999px;background:#111827;color:#fff;font-size:9px;font-weight:950;letter-spacing:.08em}.self-schedule-status b{font-size:14px}.self-schedule-status small{color:#64748b;font-size:11px}.self-schedule-status-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.self-schedule-status-actions form{margin:0}
.self-schedule-myquota{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px}.self-schedule-myquota>div{display:grid;gap:2px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.self-schedule-myquota span{color:#64748b;font-size:9px;font-weight:900;letter-spacing:.06em}.self-schedule-myquota b{font-size:17px}.self-schedule-myquota .ok{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.self-schedule-myquota .pending{border-color:#fde68a;background:#fffbeb;color:#92400e}
.self-schedule-summary{margin-bottom:12px}.self-schedule-summary p{margin-bottom:0}.self-schedule-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #dfe6ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);-webkit-overflow-scrolling:touch}.self-schedule-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:11px}.self-schedule-table th,.self-schedule-table td{height:57px;padding:4px;border-right:1px solid #e8edf4;border-bottom:1px solid #e8edf4;text-align:center;background:#fff}.self-schedule-table thead th{position:sticky;top:0;z-index:6;min-width:62px;height:50px;background:#f8fafc}.self-schedule-table thead th:first-child{left:0;z-index:8;min-width:150px;text-align:left;padding:8px 11px}.self-schedule-table thead th:last-child{min-width:94px}.self-schedule-table thead th b,.self-schedule-table thead th span{display:block}.self-schedule-table thead th b{font-size:13px}.self-schedule-table thead th span{color:#94a3b8;font-size:8px}.self-schedule-table thead th.holiday{background:#fff7ed;color:#c2410c}.self-schedule-table tbody th{position:sticky;left:0;z-index:4;min-width:150px;padding:8px 11px;text-align:left;background:#fff;box-shadow:4px 0 8px rgba(15,23,42,.035)}.self-schedule-table tbody th b,.self-schedule-table tbody th small{display:block}.self-schedule-table tbody th b{font-size:12px}.self-schedule-table tbody th small{margin-top:2px;color:#64748b;font-size:9px}.self-schedule-table tr.is-own th{background:#eff6ff}.self-schedule-table tr.is-own td{background:#fbfdff}.self-shift-select{width:58px;min-width:58px;height:42px;min-height:42px;padding:3px 4px;border:1px solid #dce3ec;border-radius:9px;background:#fff;font-size:9px;font-weight:900;text-align:center}.self-shift{display:grid;place-items:center;width:54px;min-height:40px;margin:auto;padding:4px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:9px;font-weight:900}.self-shift.full,.self-shift-select.full{background:#eaf2ff;color:#174ea6}.self-shift.part_morning,.self-shift-select.part_morning{background:#eafaf0;color:#13763c}.self-shift.part_afternoon,.self-shift-select.part_afternoon{background:#fff4dd;color:#9a5b00}.self-shift.off,.self-shift-select.off{background:#f1f5f9;color:#64748b}.self-shift.holiday_comp,.self-shift.holiday_off{background:#f3f4f6;color:#475569}.self-shift.holiday_work{background:#fef3c7;color:#92400e}.self-quota{min-width:94px}.self-quota b,.self-quota span{display:block}.self-quota b{font-size:10px}.self-quota span{margin-top:3px;font-size:8px}.self-quota.ok{background:#f0fdf4;color:#15803d}.self-quota.bad{background:#fff7ed;color:#9a5b00}
.self-staffing-row th{font-size:10px!important;text-transform:uppercase;letter-spacing:.04em}.self-staffing-row td{height:42px;background:#fafcff}.staffing-pill{display:inline-grid;place-items:center;min-width:28px;min-height:24px;padding:3px 5px;border-radius:8px;font-size:8px;font-weight:950}.staffing-pill.balanced{background:#dcfce7;color:#15803d}.staffing-pill.thin{background:#fff7ed;color:#c2410c}.staffing-pill.crowded{background:#fef3c7;color:#92400e}.staffing-pill.part_imbalanced{background:#fff7ed;color:#c2410c}.staffing-pill.danger{background:#fee2e2;color:#b91c1c}.staffing-pill.incomplete{background:#f1f5f9;color:#64748b}.staffing-pill.holiday{background:#fff7ed;color:#c2410c}
.self-schedule-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px;padding:12px 13px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fafc}.self-schedule-form-actions p{margin:0 auto 0 0;color:#64748b;font-size:11px}.self-schedule-readonly-note{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f8fafc;color:#64748b;font-size:11px}.self-submission-list{margin-top:14px}.self-submission-list article{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5}.self-submission-list article:last-child{border-bottom:0}.self-submission-list article>div{display:grid;gap:2px;margin-right:auto}.self-submission-list article span:not(.badge){color:#64748b;font-size:10px}.schedule-staffing-check{margin-top:14px}
@media(max-width:700px){.self-schedule-callout{align-items:flex-start;flex-direction:column}.self-schedule-callout .btn{width:100%}.self-schedule-top{align-items:flex-start;flex-direction:column}.self-schedule-top h2{font-size:22px}.self-schedule-top .schedule-v2-nav{width:100%}.self-schedule-status{align-items:flex-start;flex-direction:column}.self-schedule-status-actions{width:100%;justify-content:stretch}.self-schedule-status-actions form,.self-schedule-status-actions .btn{flex:1}.self-schedule-status-actions .btn{width:100%}.self-schedule-myquota{grid-template-columns:repeat(2,minmax(0,1fr))}.self-schedule-myquota>div:last-child{grid-column:1/-1}.self-schedule-scroll{max-height:62vh;border-radius:12px}.self-schedule-table thead th:first-child,.self-schedule-table tbody th{position:static;left:auto;z-index:1;min-width:104px;max-width:104px;box-shadow:none}.self-schedule-table thead th{min-width:72px}.self-schedule-table th,.self-schedule-table td{height:54px}.self-shift-select{width:66px;min-width:66px;font-size:9px}.self-shift{width:64px}.self-schedule-form-actions{align-items:stretch;flex-direction:column}.self-schedule-form-actions p{margin:0 0 4px}.self-schedule-form-actions .btn{width:100%}.self-schedule-open{align-items:stretch;flex-direction:column}.self-schedule-open .btn{width:100%}}

/* v5.9.0 Pattern-first schedule + Controlled Employee Adjustments */
.self-schedule-callout.v590{border-color:#c7d7f2;background:linear-gradient(135deg,#f8fbff,#eef5ff)}
.schedule-adjust-shell{min-width:0}.adjust-policy-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 14px}.adjust-policy-strip>div{display:grid;gap:3px;padding:12px 13px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.adjust-policy-strip span{font-size:9px;font-weight:900;letter-spacing:.07em;color:#64748b}.adjust-policy-strip b{font-size:14px}.adjust-policy-strip .ok{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.adjust-policy-strip .pending{border-color:#fde68a;background:#fffbeb;color:#92400e}
.adjust-not-open{margin-bottom:14px;border-color:#fde68a;background:#fffbeb}.adjust-not-open p{margin:5px 0 0;color:#64748b}
.adjust-day-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.adjust-day{display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;min-width:0}.adjust-day>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.adjust-day>div:first-child span{font-size:9px;font-weight:900;color:#94a3b8;text-transform:uppercase}.adjust-day>div:first-child b{font-size:13px}.adjust-day>strong{font-size:18px}.adjust-day>small{min-height:28px;color:#64748b;font-size:10px;line-height:1.4}.adjust-day.full{border-color:#cfe0ff;background:#f8fbff}.adjust-day.part_morning{border-color:#c9efd6;background:#f8fdf9}.adjust-day.part_afternoon{border-color:#f6dfa6;background:#fffdf7}.adjust-day.off{background:#f8fafc}.adjust-day.locked{opacity:.72}.adjust-day.can-adjust{box-shadow:0 5px 18px rgba(15,23,42,.04)}.adjust-day details{margin-top:auto}.adjust-day details summary{list-style:none;cursor:pointer;text-align:center}.adjust-day details summary::-webkit-details-marker{display:none}.adjust-day details[open]{padding-top:8px;border-top:1px solid #e2e8f0}.adjust-day form{display:grid;gap:8px;margin-top:8px}.adjust-day label{display:grid;gap:4px;font-size:10px;font-weight:800}.adjust-day textarea{min-height:70px}.adjust-limit{display:inline-flex;justify-content:center;padding:7px;border-radius:9px;background:#f1f5f9;color:#64748b;font-size:9px;font-weight:900}
.adjust-my-history{margin-top:14px}.adjust-my-history article{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f5}.adjust-my-history article:last-child{border-bottom:0}.adjust-my-history article>div{display:grid;gap:3px;margin-right:auto}.adjust-my-history small{color:#64748b;font-size:10px}.adjust-my-history form{margin:0}
.adjust-admin-list .card-head{align-items:flex-start}.adjust-request{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:14px;padding:14px 0;border-bottom:1px solid #edf1f5}.adjust-request:last-child{border-bottom:0}.adjust-request-main{display:grid;align-content:start;gap:5px}.adjust-request-main .badge{width:max-content}.adjust-request-main h3,.adjust-request-main p{margin:0}.adjust-request-main h3{font-size:15px}.adjust-request-main p{font-size:12px}.adjust-request-main small{color:#64748b;font-size:10px}.adjust-request.approved{background:linear-gradient(90deg,rgba(240,253,244,.65),transparent)}.adjust-review-form{display:grid;gap:7px}.adjust-review-form label{display:grid;gap:4px;font-size:10px;font-weight:800}.adjust-review-form textarea{min-height:62px}.adjust-review-form>div{display:flex;justify-content:flex-end;gap:7px}
@media(max-width:1000px){.adjust-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.adjust-policy-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.adjust-policy-strip{grid-template-columns:1fr 1fr}.adjust-policy-strip>div{padding:10px}.adjust-day-grid{grid-template-columns:1fr 1fr}.adjust-day{padding:10px}.adjust-day>strong{font-size:16px}.adjust-request{grid-template-columns:1fr}.adjust-review-form{padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fafcff}.adjust-review-form>div{justify-content:stretch}.adjust-review-form .btn{flex:1}.schedule-adjust-shell .schedule-v2-top{align-items:flex-start;flex-direction:column}.schedule-adjust-shell .schedule-v2-nav{width:100%}}
@media(max-width:420px){.adjust-day-grid{grid-template-columns:1fr}.adjust-policy-strip{grid-template-columns:1fr 1fr}.adjust-policy-strip b{font-size:12px}}

/* v5.9.1 - mobile document capture / browse choices */
.document-upload-choice{display:grid;gap:9px;margin-top:10px;padding:11px;border:1px solid #e2e8f0;border-radius:14px;background:#fafcff}.document-upload-choice-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.document-upload-choice-head>b{font-size:12px}.document-upload-choice-head>span{color:var(--muted);font-size:10px}.document-upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.document-upload-action{min-width:0}.document-upload-action .file-picker{min-height:66px;padding:10px;border-style:solid;background:#fff}.document-upload-action .file-picker>span{display:grid;gap:3px}.document-upload-action .file-picker strong{font-size:12px}.document-upload-action .file-picker small{color:var(--muted);font-size:10px;font-weight:600}.camera-picker{border-color:#bfdbfe!important;background:#eff6ff!important}.camera-picker:hover{background:#dbeafe!important}.browse-picker{border-color:#dbe3ef!important}.adjust-not-open{box-shadow:inset 4px 0 0 #f59e0b}.adjust-day.locked small{font-weight:750}.adjust-day.can-adjust small{color:#15803d;font-weight:800}
@media(max-width:520px){.document-upload-choice-head{align-items:flex-start;flex-direction:column;gap:2px}.document-upload-actions{grid-template-columns:1fr}.document-upload-action .file-picker{min-height:60px}.document-upload-action .file-picker strong{font-size:13px}}

/* v5.10.0 — Direct Employee Schedule Editing */
.schedule-v2-cell.is-own-shift{position:relative}
.employee-direct-cell{position:relative;width:100%;height:100%;min-height:68px;border:0;background:transparent;color:inherit;padding:8px 6px;cursor:pointer;border-radius:12px;font:inherit}
.schedule-v2-cell.is-direct-editable .employee-direct-cell{box-shadow:inset 0 0 0 1px rgba(17,24,39,.12);background:rgba(255,255,255,.38)}
.schedule-v2-cell.is-direct-editable .employee-direct-cell:hover{box-shadow:inset 0 0 0 2px rgba(17,24,39,.22);transform:translateY(-1px)}
.employee-direct-hint{display:block;margin-top:5px;font-size:10px;line-height:1.2;color:#6b7280;font-weight:600}
.employee-direct-edit-icon{position:absolute;right:5px;top:5px;font-style:normal;font-size:11px;width:18px;height:18px;display:grid;place-items:center;border-radius:999px;background:#111827;color:#fff}
.schedule-v2-cell.is-locked .employee-direct-cell{cursor:not-allowed;opacity:.72}
.employee-direct-drawer .employee-direct-policy{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 16px}
.employee-direct-drawer .employee-direct-policy span{padding:6px 9px;border-radius:999px;background:#f3f4f6;font-size:11px;font-weight:700;color:#4b5563}
.employee-direct-note{display:block;margin-top:14px}
.employee-direct-note textarea{min-height:76px;margin-top:7px}
.employee-direct-save,.employee-direct-exception{width:100%;margin-top:12px;justify-content:center}
.employee-direct-exception[hidden]{display:none!important}
.employee-direct-pair{margin-top:12px;padding:12px 13px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;display:grid;gap:3px}
.employee-direct-pair.ok{background:#ecfdf5;border-color:#a7f3d0}
.employee-direct-pair span{font-size:11px;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-weight:700}
.employee-direct-pair b{font-size:15px}
.employee-direct-pair small{color:#6b7280}
.employee-direct-checks{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.employee-direct-checks span{font-size:11px;font-weight:700;background:#ecfdf5;color:#047857;border-radius:999px;padding:6px 8px}
.direct-adjust-history-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:14px}
.direct-adjust-history-intro h2{margin:4px 0 6px}
.direct-adjust-history-intro p{margin:0;color:#6b7280;max-width:760px}
.self-schedule-callout.v510{border-color:#c7d2fe;background:linear-gradient(135deg,#eef2ff,#fff)}
@media(max-width:720px){
  .employee-direct-hint{display:none}
  .employee-direct-cell{min-height:64px;padding:7px 4px}
  .employee-direct-edit-icon{right:3px;top:3px;width:16px;height:16px;font-size:10px}
  .employee-direct-drawer aside{border-radius:22px 22px 0 0;max-height:88vh;overflow:auto}
  .direct-adjust-history-intro{align-items:stretch;flex-direction:column}
  .direct-adjust-history-intro .btn{width:100%;justify-content:center}
}

/* v5.10.2 — Schedule Calendar Minimal UI */
/* Keep cells focused on the shift itself. Detailed edit/lock information lives in the drawer/title, never inside the matrix cell. */
.schedule-v2-matrix-card .employee-direct-hint{display:none!important}
.schedule-v2-matrix-card .employee-direct-cell{overflow:hidden;min-width:0;isolation:isolate}
.schedule-v2-matrix-card .employee-direct-cell .schedule-v2-shift-short,
.schedule-v2-matrix-card .employee-direct-cell .schedule-v2-shift-desktop,
.schedule-v2-matrix-card .employee-direct-cell .schedule-v2-shift-mobile{position:relative;z-index:1;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.schedule-v2-matrix-card .employee-direct-lock-icon,
.schedule-v2-matrix-card .employee-direct-edit-icon{position:absolute;right:4px;top:4px;z-index:2;font-style:normal;font-size:10px;width:17px;height:17px;display:grid;place-items:center;border-radius:999px;line-height:1}
.schedule-v2-matrix-card .employee-direct-lock-icon{background:rgba(255,255,255,.78);box-shadow:0 1px 4px rgba(15,23,42,.08)}
.schedule-v2-matrix-card .employee-direct-edit-icon{background:#111827;color:#fff}
.schedule-v2-matrix-card .schedule-v2-cell.is-own-shift.is-locked .employee-direct-cell{opacity:.78}
.schedule-v2-matrix-card .schedule-v2-cell.is-own-shift.is-direct-editable .employee-direct-cell{background:rgba(255,255,255,.30)}
.schedule-v2-matrix-card .schedule-v2-cell.is-own-shift.is-direct-editable .employee-direct-cell:hover{background:rgba(255,255,255,.60)}
@media(max-width:720px){
  .schedule-v2-matrix-card .employee-direct-lock-icon,
  .schedule-v2-matrix-card .employee-direct-edit-icon{right:3px;top:3px;width:15px;height:15px;font-size:9px}
}

/* v5.11.0 — Attendance offline mode */
.attendance-offline-queue{margin-top:14px;padding:12px 14px;border:1px solid #f0d38a;border-radius:14px;background:#fff9e8;display:flex;align-items:center;justify-content:space-between;gap:12px}.attendance-offline-queue[hidden]{display:none}.attendance-offline-queue>div{display:grid;gap:3px;min-width:0}.attendance-offline-queue b{font-size:13px}.attendance-offline-queue span:not(.badge){font-size:12px;color:#6b7280;line-height:1.4}.attendance-offline-queue[data-state="review"]{background:#fff1f2;border-color:#fecdd3}.attendance-offline-queue[data-state="review"] .badge{background:#fee2e2;color:#991b1b}.attendance-result-overlay.offline-pending .attendance-result-card{border:1px solid #f0d38a}.attendance-result-overlay.offline-pending .attendance-result-check{background:#fff3cd;color:#8a5b00}.attendance-punch.offline-complete .attendance-scan-button{display:none!important}.attendance-offline-mini{display:inline-flex;vertical-align:middle;margin-left:4px;padding:2px 5px;border-radius:999px;background:#fff3cd;color:#7c5700;font-size:9px;font-weight:800;letter-spacing:.04em}.attendance-kiosk-offline-info{margin-top:16px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc;display:grid;gap:4px}.attendance-kiosk-offline-info b{font-size:13px}.attendance-kiosk-offline-info span{font-size:12px;color:#64748b;line-height:1.45}.attendance-kiosk-offline-info[data-ready="1"]{background:#eefbf3;border-color:#bfe6cc}.attendance-kiosk-offline-info[data-ready="1"] b{color:#17603a}#attendance-qr[data-mode="offline"]{position:relative}#attendance-qr[data-mode="offline"]:after{content:"OFFLINE";position:absolute;right:10px;bottom:10px;padding:4px 7px;border-radius:999px;background:#fff3cd;color:#7c5700;font-size:10px;font-weight:900;letter-spacing:.05em;box-shadow:0 2px 8px rgba(15,23,42,.12)}.attendance-scanner-network[data-online="0"]{background:#fff3cd!important;color:#7c5700!important}.attendance-scanner-network[data-online="0"] i{background:#f59e0b!important}
@media(max-width:700px){.attendance-offline-queue{align-items:flex-start}.attendance-kiosk-offline-info{margin-top:12px}.attendance-offline-mini{font-size:8px}}

/* v5.12.1 — Annual Leave Monthly Rule */
.shift.annual_leave_morning,.matrix-shift.annual_leave_morning,.employee-shift-card.annual_leave_morning{background:#fff2d9!important;border-color:#e5a33b!important;color:#85530b!important}
.shift.annual_leave_afternoon,.matrix-shift.annual_leave_afternoon,.employee-shift-card.annual_leave_afternoon{background:#e9f5ff!important;border-color:#62a4dc!important;color:#225d8d!important}
.matrix-legend i.annual_leave_morning{background:#e5a33b}.matrix-legend i.annual_leave_afternoon{background:#62a4dc}
.annual-leave-dashboard-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0 16px;text-decoration:none;background:linear-gradient(135deg,#f8fbff,#fff);border-color:#dbe8f7}.annual-leave-dashboard-strip>div{display:grid;gap:3px}.annual-leave-dashboard-strip b{font-size:17px}.annual-leave-dashboard-strip b strong{font-size:28px}.annual-leave-dashboard-strip small{color:var(--muted)}.annual-leave-dashboard-strip>span{font-weight:800;color:#245ca8;white-space:nowrap}
.annual-leave-tabs{margin-bottom:16px}.annual-leave-hero,.annual-leave-admin-hero,.schedule-exception-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:16px}.annual-leave-hero h2,.annual-leave-admin-hero h2,.schedule-exception-hero h2{margin:4px 0 5px}.annual-leave-hero h2 strong{font-size:38px}.annual-leave-hero p,.annual-leave-admin-hero p,.schedule-exception-hero p{margin:0;color:var(--muted);max-width:760px}.annual-leave-employee-grid,.annual-leave-admin-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start}.annual-leave-form{display:grid;gap:14px}.annual-leave-form label{display:grid;gap:7px;font-weight:750}.annual-leave-date-grid{display:grid;grid-template-columns:1fr;gap:12px}.annual-leave-form-note{padding:11px 12px;border-radius:12px;background:#f6f8fb;color:var(--muted);font-size:12px}.annual-leave-request-list{display:grid;gap:10px}.annual-leave-request{border:1px solid var(--line);border-radius:15px;padding:13px;background:#fbfcfd}.annual-leave-request-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.annual-leave-request-main>div{display:grid;gap:3px}.annual-leave-request-main span{font-size:12px;color:var(--muted)}.annual-leave-request-main strong{font-size:18px;white-space:nowrap}.annual-leave-request p{margin:9px 0;color:#475569;font-size:13px}.annual-leave-request-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.annual-leave-review{display:grid;grid-template-columns:minmax(170px,1fr) auto auto;gap:7px;align-items:center;width:100%;margin-top:8px}.annual-leave-review input{min-width:0}.leave-impact{font-size:12px;font-weight:700;padding:8px 10px;border-radius:10px;margin:7px 0}.leave-impact.ok{background:#ecf9f1;color:#267147}.leave-impact.warn{background:#fff6dd;color:#8b6300}.annual-leave-balance-list{display:grid;gap:9px}.annual-leave-balance-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.annual-leave-balance-list article:last-child{border-bottom:0}.annual-leave-balance-list article>div{display:grid;gap:2px}.annual-leave-balance-list span{font-size:12px;color:var(--muted)}.annual-leave-balance-list strong{font-size:22px}.annual-leave-balance-list strong small{font-size:11px;color:var(--muted)}.annual-leave-ledger-card{margin-top:16px}.annual-leave-ledger{display:grid}.annual-leave-ledger>div{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.annual-leave-ledger>div:last-child{border-bottom:0}.annual-leave-ledger>div>span{font-size:12px;color:var(--muted)}.annual-leave-ledger>div>div{display:grid;gap:2px}.annual-leave-ledger small{color:var(--muted)}.annual-leave-ledger strong{font-size:16px}.annual-leave-ledger strong.positive{color:var(--ok)}.annual-leave-ledger strong.negative{color:var(--bad)}.schedule-exception-list{display:grid;gap:10px}.schedule-exception-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px}.schedule-exception-list p{margin:4px 0 0;color:var(--muted);font-size:12px}.schedule-exception-list form{grid-column:1/-1}
@media(max-width:900px){.annual-leave-employee-grid,.annual-leave-admin-grid{grid-template-columns:1fr}.annual-leave-hero,.annual-leave-admin-hero,.schedule-exception-hero{align-items:flex-start;flex-direction:column}.annual-leave-review{grid-template-columns:1fr 1fr}.annual-leave-review input{grid-column:1/-1}.annual-leave-date-grid{grid-template-columns:1fr}.annual-leave-dashboard-strip{align-items:flex-start}.annual-leave-dashboard-strip>span{font-size:12px}}
@media(max-width:600px){.annual-leave-dashboard-strip b strong{font-size:24px}.annual-leave-hero h2 strong{font-size:32px}.annual-leave-request-main{align-items:flex-start}.annual-leave-request-main strong{font-size:16px}.annual-leave-ledger>div{grid-template-columns:45px minmax(0,1fr) auto}.schedule-exception-list article{grid-template-columns:1fr}.schedule-exception-list article>.badge{justify-self:start}}

/* v5.13.0 — Private Media Optimization */
.document-view-actions{display:flex;flex-wrap:wrap;gap:7px}.media-optimized-badge{width:max-content;padding:4px 8px;border-radius:999px;background:#ecfdf3;color:#087443;font-size:10px;font-weight:900;letter-spacing:.01em}.media-optimize-note{margin:2px 0 12px;padding:9px 11px;border:1px solid #dbeafe;border-radius:11px;background:#eff6ff;color:#334155;font-size:11px;line-height:1.5}.auto-upload-form.is-uploading .file-picker{opacity:.65;pointer-events:none}.document-current .document-thumb{content-visibility:auto}.document-preview-link{contain:layout paint}.document-current-meta small{font-variant-numeric:tabular-nums}
@media(max-width:700px){.document-view-actions{display:grid;grid-template-columns:1fr 1fr}.document-view-actions .btn{width:100%}.media-optimized-badge{font-size:9px}.media-optimize-note{font-size:10px}}

/* v5.13.2 — media orientation recovery */
.media-rotation-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:6px}
.media-rotation-actions .btn{min-width:34px;padding:6px 9px}

/* HR Cello v5.14.0 - Mandatory Workday Hard Lock */
.mandatory-schedule-card{border-color:#f4c2c2;background:linear-gradient(180deg,#fff 0%,#fffafa 100%)}
.mandatory-schedule-card .card-head{align-items:flex-start}
.mandatory-day-form{display:grid;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid #f1d7d7}
.mandatory-day-main{grid-template-columns:minmax(180px,.45fr) minmax(280px,1.55fr)}
.mandatory-employee-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.mandatory-employee-grid label{display:grid;gap:6px;padding:10px 12px;border:1px solid #e7eaf0;border-radius:12px;background:#fff}
.mandatory-employee-grid b{font-size:13px;color:#172033}
.mandatory-lock-btn{justify-self:start;background:#b42318;border-color:#b42318}
.mandatory-lock-list{margin-top:16px;display:grid;gap:8px}
.mandatory-lock-list h3{margin:0 0 2px;font-size:14px}
.mandatory-lock-list article{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(220px,.55fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid #f0d6d6;border-radius:12px;background:#fff}
.mandatory-lock-list article>div{display:grid;gap:2px}.mandatory-lock-list article span{font-size:12px;color:#667085}.mandatory-lock-list article>strong{font-size:11px;color:#b42318;white-space:nowrap}.mandatory-lock-list form{display:flex;gap:6px;align-items:center}.mandatory-lock-list input{min-width:0}
.schedule-v2-cell.is-mandatory{background:#fff4f2!important;box-shadow:inset 0 0 0 2px #f97066}
.schedule-v2-cell.is-mandatory button,.schedule-v2-cell.is-mandatory .schedule-v2-readonly{position:relative}
.schedule-v2-cell.is-mandatory i{filter:none}
@media(max-width:760px){.mandatory-day-main{grid-template-columns:1fr}.mandatory-lock-list article{grid-template-columns:1fr}.mandatory-lock-list form{display:grid;grid-template-columns:1fr auto}.mandatory-lock-btn{width:100%}}

/* v5.14.1 — Special Days & Holiday Payroll Integration */
.special-days-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;background:linear-gradient(135deg,#f8fbff,#fff)}
.special-days-hero h2{margin:4px 0 6px}.special-days-hero p{margin:0;color:var(--muted);max-width:900px}
.special-days-tabs{display:flex;gap:8px;padding:6px;margin:0 0 16px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:auto}
.special-days-tabs a{padding:10px 14px;border-radius:11px;font-weight:800;white-space:nowrap;color:#475467;text-decoration:none}.special-days-tabs a.active{background:#101828;color:#fff}
.holiday-pay-inline{display:block;margin-top:7px;font-size:12px;color:#157347}.holiday-pay-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;background:linear-gradient(135deg,#f0fff5,#fff)}
.holiday-pay-hero h2{margin:4px 0 6px}.holiday-pay-hero p{margin:0;color:var(--muted)}
.holiday-pay-amount{display:block;margin-top:6px;color:#087443;font-size:13px}.holiday-pay-requests article>div:first-child small{color:#667085}
.special-mandatory{margin-bottom:0}.special-mandatory .mandatory-day-main input[type=date]{min-width:190px}
.special-day-schedule-link{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:12px 14px;border:1px dashed #c7d7f7;border-radius:14px;background:#f8fbff}.special-day-schedule-link>div{display:grid;gap:2px}.special-day-schedule-link small{color:#667085}
.table td small{display:block;color:#667085;margin-top:3px}
.payroll-rate-grid label small{font-weight:500;color:#667085;line-height:1.35;margin-top:4px}
@media(max-width:760px){.special-days-hero,.holiday-pay-hero,.special-day-schedule-link{align-items:stretch;flex-direction:column}.special-days-tabs{position:sticky;top:0;z-index:5}.holiday-pay-hero .btn,.special-day-schedule-link .btn{width:100%}}

/* v5.15.0 — Employee UX simplification */
.holiday-dashboard-alert{display:flex;align-items:center;gap:14px;margin:16px 0;text-decoration:none;color:inherit;border-style:solid}
.holiday-dashboard-alert:hover{transform:translateY(-1px)}
.holiday-dashboard-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:22px;background:#fff7e6;flex:0 0 auto}
.holiday-dashboard-alert b,.holiday-dashboard-alert small{display:block}.holiday-dashboard-alert small{margin-top:5px;color:var(--muted)}
.dashboard-next-shift{color:inherit;text-decoration:none;border-radius:12px;padding:10px 8px}.dashboard-next-shift:hover{background:rgba(15,23,42,.035)}

.employee-holiday-hero{margin-bottom:16px}.employee-holiday-hero h2{margin:.3rem 0}.employee-holiday-hero p{margin:0;max-width:760px;color:var(--muted)}
.employee-holiday-list{display:grid;gap:0}.employee-holiday-item{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(220px,320px);gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.employee-holiday-item:last-child{border-bottom:0}.employee-holiday-item.is-focused{margin:0 -12px;padding:18px 12px;border-radius:16px;background:#fff9ed}
.employee-holiday-main h3{margin:0 0 4px}.employee-holiday-main p,.employee-holiday-main small{display:block;margin:0;color:var(--muted)}
.employee-holiday-main small{margin-top:5px;font-weight:700}.employee-holiday-action{display:flex;justify-content:flex-end}
.employee-holiday-register{width:100%;display:grid;gap:8px}.employee-holiday-register label{margin:0}.employee-holiday-register input{margin-top:5px}

.employee-adjust-status{position:absolute;left:4px;right:4px;bottom:3px;font-size:8px;line-height:1.15;font-style:normal;font-weight:800;letter-spacing:.02em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-adjust-status.pending{color:#9a6700}.employee-adjust-status.approved{color:#0f7a45}.employee-adjust-status.rejected{color:#b42318}
.schedule-v2-cell.is-exception-allowed .employee-direct-cell{outline:1px dashed rgba(180,120,0,.45);outline-offset:-2px}
.schedule-v2-preview-result.pending{background:#fff8e8;border-color:#f4d58a}.schedule-v2-preview-result.pending b{color:#8a5b00}
.employee-direct-cancel-request{margin-top:12px}.employee-direct-cancel-request .btn{width:100%}

@media(max-width:760px){
 .employee-holiday-item{grid-template-columns:auto 1fr;align-items:start}.employee-holiday-action{grid-column:1/-1;justify-content:stretch}.employee-holiday-action .badge{justify-self:start}.employee-holiday-register{width:100%}
 .holiday-dashboard-alert{align-items:flex-start}
}
.schedule-v2-cell.is-exception-allowed .employee-direct-cell{cursor:pointer;opacity:1}

/* v5.15.1 — employee-selected holiday compensatory day */
.employee-direct-options .employee-comp-choice{grid-column:1/-1}
.employee-direct-options .employee-comp-choice span{background:#f4f8ff;border-color:#bfdbfe}
.schedule-v2-shift-options input:disabled+span{opacity:.46;cursor:not-allowed;filter:grayscale(.35)}

/* v5.15.1-HF2 — employee shift availability matrix */
.employee-direct-drawer [data-employee-direct-current]{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:11px 13px;margin:8px 0 12px;border:1px solid #dbe3ec;border-radius:13px;background:#f8fafc}
.employee-direct-drawer [data-employee-direct-current] .employee-current-label{font-size:10px;font-weight:850;letter-spacing:.06em;color:#64748b}
.employee-direct-drawer [data-employee-direct-current]>b{font-size:16px;color:#111827}
.employee-direct-drawer [data-employee-direct-current]>small{grid-column:1/-1;color:#64748b;line-height:1.4}
.employee-direct-options label{position:relative}
.employee-direct-options label.is-current span{background:#eef2f7;border-color:#cbd5e1;color:#475569;box-shadow:none}
.employee-direct-options label.is-current small{color:#64748b;font-weight:800;letter-spacing:.04em}
.employee-direct-options label.is-available span{border-color:#b7d7c4;background:#f6fffa}
.employee-direct-options label.is-available:hover span{border-color:#6fc28d;box-shadow:0 5px 15px rgba(16,107,53,.08)}
.employee-direct-options label.is-available small{color:#167344;font-weight:700}
.employee-direct-options label.is-unavailable{cursor:not-allowed}
.employee-direct-options label.is-unavailable span{opacity:.46;background:#f3f4f6;border-color:#e5e7eb;filter:grayscale(.25);box-shadow:none}
.employee-direct-options label.is-unavailable small{color:#9ca3af;font-weight:800;letter-spacing:.03em}
.employee-direct-options label.is-needs-admin span{background:#fff8e8;border-color:#f4d58a}
.employee-direct-options label.is-needs-admin small{color:#8a5b00;font-weight:800}
.employee-direct-options label.is-checking span{opacity:.58;background:#f8fafc}
.employee-option-summary{display:grid;grid-template-columns:1fr 1.2fr;gap:9px;margin-bottom:10px}
.employee-option-summary>div{display:grid;gap:3px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}
.employee-option-summary span{font-size:10px;font-weight:850;letter-spacing:.05em;color:#64748b}
.employee-option-summary b{font-size:14px;color:#111827}
.employee-option-summary .available{border-color:#bbf7d0;background:#f0fdf4}
.employee-option-summary .available b{color:#166534}
.employee-option-summary small{color:#8a5b00;font-size:10px}
.employee-option-blocked{display:grid;gap:8px;margin-top:4px}
.employee-option-blocked>b{font-size:12px;color:#991b1b}
.employee-option-blocked article{display:grid;grid-template-columns:74px 1fr;gap:3px 8px;padding:9px 10px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7}
.employee-option-blocked article strong{color:#991b1b}
.employee-option-blocked article span{color:#7f1d1d;font-size:12px;line-height:1.4}
.employee-option-blocked article ul,.schedule-v2-preview-result.bad ul{grid-column:1/-1;margin:3px 0 0 17px;padding:0;color:#991b1b;font-size:11px;line-height:1.45}
@media(max-width:520px){.employee-option-summary{grid-template-columns:1fr}.employee-option-blocked article{grid-template-columns:1fr}}

/* v5.16.0 — simplified employee shift drawer + collaborative pre-month schedule */
.self-schedule-dashboard-alert{display:flex;align-items:center;gap:14px;margin:16px 0;text-decoration:none;color:inherit;border:1px solid #bfdbfe;background:#f7fbff}
.self-schedule-dashboard-alert:hover{transform:translateY(-1px)}
.self-schedule-dashboard-alert b,.self-schedule-dashboard-alert small{display:block}.self-schedule-dashboard-alert small{margin-top:5px;color:var(--muted)}
.self-schedule-callout.active{border-color:#86efac;background:#f0fdf4}
.schedule-v2-preview-result.simple{min-height:74px;display:grid;align-content:center;gap:5px}
.schedule-v2-preview-result.simple b{font-size:15px}.schedule-v2-preview-result.simple span{font-size:12px;color:#475569}.schedule-v2-preview-result.simple p{margin:1px 0 0;font-size:11px;color:#64748b}
.employee-direct-options label.is-unavailable span{opacity:.38}
.employee-direct-options label.is-unavailable small{font-size:9px;line-height:1.15;white-space:normal}
.employee-direct-options label.is-current small,.employee-direct-options label.is-available small,.employee-direct-options label.is-needs-admin small{font-size:9px;letter-spacing:.04em}
.self-schedule-form .self-schedule-table tbody tr:not(.self-staffing-row):hover td{background:#f8fbff}
.self-schedule-form .self-shift-select{cursor:pointer}
@media(max-width:700px){.self-schedule-dashboard-alert{align-items:flex-start}}

/* v5.17.0 — calendar-first pre-month scheduling + visible counterpart */
.schedule-v2-employee-state.premonth{border-color:#86efac;background:#f0fdf4}.schedule-v2-employee-state.premonth span{background:#166534}.self-schedule-callout.calendar-first{border-color:#86efac;background:linear-gradient(135deg,#f0fdf4,#f8fff9)}
.schedule-v2-cell.is-premonth-editable{background:#fbfffc}.premonth-calendar-cell{position:relative;width:100%;height:100%;border:0;background:transparent;cursor:pointer;color:inherit}.premonth-calendar-cell:hover{background:#f0fdf4}.schedule-v2-cell.is-premonth-editable .employee-direct-edit-icon{color:#15803d}
.premonth-calendar-drawer .premonth-preview{margin-top:12px}.premonth-calendar-drawer .premonth-options label.is-current{opacity:.46;cursor:default}.premonth-calendar-drawer .premonth-options label.is-current span{background:#f1f5f9}.premonth-calendar-drawer .premonth-options label.is-available span{border-color:#dbe5ef}.premonth-calendar-drawer .premonth-options label.is-available:hover span{border-color:#86efac;background:#f0fdf4}
.employee-counterpart{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#eff6ff;color:#1e3a8a}.employee-counterpart strong{display:inline-block;margin-bottom:3px}
@media(max-width:700px){.schedule-v2-cell.is-premonth-editable{box-shadow:inset 0 0 0 1px rgba(22,101,52,.12)}.premonth-calendar-drawer .schedule-v2-shift-options{grid-template-columns:1fr 1fr}}

/* v5.18.1 — schedule edit affordance: visible Ocean teal swap icon */
.employee-direct-edit-icon,
.schedule-v2-matrix-card .employee-direct-edit-icon{
  width:20px!important;height:20px!important;right:4px!important;top:4px!important;
  border:2px solid rgba(255,255,255,.92)!important;border-radius:999px!important;
  background:#0891b2!important;color:#fff!important;
  box-shadow:0 2px 7px rgba(8,145,178,.34)!important;
  font-size:12px!important;font-weight:950!important;line-height:1!important;
}
.schedule-v2-cell.is-direct-editable .employee-direct-cell:hover .employee-direct-edit-icon,
.schedule-v2-cell.is-premonth-editable .premonth-calendar-cell:hover .employee-direct-edit-icon{
  background:#0e7490!important;transform:scale(1.06);
}
.schedule-v2-cell.is-premonth-editable .employee-direct-edit-icon{background:#0f9f78!important;color:#fff!important;box-shadow:0 2px 7px rgba(15,159,120,.30)!important}
@media(max-width:700px){
  .employee-direct-edit-icon,.schedule-v2-matrix-card .employee-direct-edit-icon{width:18px!important;height:18px!important;font-size:11px!important}
}

/* v5.19.0 — Holiday work/comp reconciliation UX */
.holiday-comp-choice-callout{display:flex;align-items:center;gap:12px;margin:12px 0;padding:13px 15px;border:1px solid #99d8cf;border-radius:16px;background:linear-gradient(135deg,#effcf8,#f7fffd);box-shadow:0 8px 24px rgba(15,111,125,.06)}
.holiday-comp-choice-callout>div{display:grid;gap:3px}.holiday-comp-choice-callout b{font-size:13px;color:#0f5963}.holiday-comp-choice-callout small{font-size:11px;color:#58717a}.holiday-comp-choice-callout .eyebrow{color:#0f8b78}
.premonth-comp-choice span{border-color:#8dd8c9!important;background:#effcf8!important}.premonth-comp-choice b{color:#0f766e}.premonth-comp-choice.is-unavailable{opacity:.48}
@media(max-width:700px){.holiday-comp-choice-callout{padding:11px 12px;border-radius:14px}.holiday-comp-choice-callout b{font-size:12px}.holiday-comp-choice-callout small{font-size:10px;line-height:1.45}}


/* v5.19.2 — Holiday Comp relocation stays explicit; candidate target is PART-only. */
.schedule-v2-cell.is-holiday-comp-movable{outline:2px solid rgba(16,185,129,.2);outline-offset:-2px}
.holiday-comp-source-cell{position:relative;cursor:pointer!important}
.holiday-comp-source-cell .employee-direct-edit-icon{background:#0f9f88!important;color:#fff!important;box-shadow:0 2px 8px rgba(15,159,136,.28)}
.holiday-comp-source-cell:hover{transform:translateY(-1px);filter:saturate(1.08)}
.holiday-comp-relocate-drawer label{display:grid;gap:8px;font-weight:700;color:#17324a}
.holiday-comp-relocate-drawer select{width:100%;min-height:46px;border:1px solid #b8ced8;border-radius:12px;background:#fff;padding:0 12px;color:#17324a;font:inherit}
.holiday-comp-relocate-preview{margin-top:14px}

/* v5.20.0 — Trusted Device + Anti Buddy-Punching admin console */
.attendance-device-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.attendance-device-summary article{display:grid;gap:4px;padding:16px;border:1px solid #c7dde5;border-radius:16px;background:linear-gradient(145deg,#fff,#f4fbfc);box-shadow:0 8px 24px rgba(15,111,125,.05)}
.attendance-device-summary article span{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#55717d}.attendance-device-summary article b{font-size:26px;color:#0f5963}.attendance-device-summary article small{font-size:11px;color:#708692;line-height:1.4}
.attendance-device-table code,.attendance-risk-table code{display:block;width:max-content;padding:4px 7px;border-radius:7px;background:#eef7f8;color:#0e6673;font-weight:800;letter-spacing:.04em}.attendance-device-table td small{display:block;margin-top:4px;color:#71838d}
.attendance-risk-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.attendance-risk-badge.high{background:#fee2e2;color:#991b1b}.attendance-risk-badge.medium{background:#fef3c7;color:#92400e}.attendance-risk-badge.low{background:#e0f2fe;color:#075985}
@media(max-width:900px){.attendance-device-summary{grid-template-columns:1fr 1fr}}@media(max-width:560px){.attendance-device-summary{grid-template-columns:1fr}.attendance-device-summary article{padding:13px}}

/* v5.21.2 — Admin Day-Open Free Edit Window */
.employee-calendar-admin-window,.employee-calendar-day-open{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:15px 17px;border:1px solid #b9d9d4;border-radius:16px;background:linear-gradient(135deg,#f2fbf8,#f7fbfd)}
.employee-calendar-admin-window>div,.employee-calendar-day-open>div{display:grid;gap:3px}.employee-calendar-admin-window b,.employee-calendar-day-open b{font-size:15px;color:#143b46}.employee-calendar-admin-window small,.employee-calendar-day-open small{color:#55717a;line-height:1.4}.employee-calendar-admin-window.is-open,.employee-calendar-day-open{border-color:#86ceb9;background:linear-gradient(135deg,#e9f8f2,#f5fcf9)}.employee-calendar-admin-window.is-open .eyebrow,.employee-calendar-day-open .eyebrow{color:#0b806a}.schedule-v2-employee-state.employee-day-open{border-color:#86ceb9;background:#eefaf6}.schedule-v2-employee-state.employee-day-open span{background:#0f8f77;color:#fff}.schedule-v2-cell.is-shared-open{box-shadow:inset 0 0 0 1px rgba(15,143,119,.12)}.schedule-v2-cell.is-shared-open .employee-direct-edit-icon{background:#14a085!important;color:#fff!important}.employee-direct-cell.shared-target:hover{background:rgba(20,160,133,.06)}
@media(max-width:700px){.employee-calendar-admin-window,.employee-calendar-day-open{align-items:flex-start;flex-direction:column}.employee-calendar-admin-window form{width:100%}.employee-calendar-admin-window .btn{width:100%}}

/* Free Edit Window keeps coverage visible as advisory information, never as a disabled-state signal. */
.schedule-v2-employee-view .employee-calendar-day-open + .self-schedule-callout{border-style:solid}

/* v5.21.3 — editable Mandatory Workday controls */
.mandatory-lock-list article.mandatory-lock-item{grid-template-columns:minmax(0,1fr) auto minmax(360px,.8fr);align-items:start}
.mandatory-lock-summary{display:grid;gap:2px}
.mandatory-lock-actions{display:grid;gap:8px;min-width:0}
.mandatory-lock-actions details{border:1px solid #d8e5e8;border-radius:10px;background:#f8fbfc;padding:6px 8px}
.mandatory-lock-actions summary{list-style:none;cursor:pointer;width:max-content}.mandatory-lock-actions summary::-webkit-details-marker{display:none}
.mandatory-edit-form{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin-top:8px;align-items:end!important}
.mandatory-edit-form label{display:grid;gap:4px;font-size:11px;color:#526675}.mandatory-edit-form label.wide{grid-column:1/-1}
.mandatory-edit-form input,.mandatory-edit-form select{width:100%;min-width:0}
.mandatory-edit-form button{grid-column:1/-1;justify-self:start}
.mandatory-release-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:6px!important;align-items:center!important}
.mandatory-action-help{display:block;color:#6b7f89;line-height:1.35}
@media(max-width:960px){.mandatory-lock-list article.mandatory-lock-item{grid-template-columns:1fr}.mandatory-lock-actions{width:100%}.mandatory-release-form{grid-template-columns:1fr 1fr}.mandatory-release-form input{grid-column:1/-1}}
@media(max-width:560px){.mandatory-edit-form,.mandatory-release-form{grid-template-columns:1fr!important}.mandatory-edit-form label.wide,.mandatory-release-form input{grid-column:auto}.mandatory-edit-form button{grid-column:auto;width:100%}.mandatory-release-form .btn{width:100%}}
