:root {
  --ink: #18231f;
  --muted: #718078;
  --line: #e1e8e4;
  --soft: #f4f7f5;
  --green: #4fb761;
  --green-dark: #258a4c;
  --navy: #122e42;
  --blue: #477cf3;
  --red: #f05252;
}
.management-context-notice{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid #cbded2;border-radius:14px;background:#f3f8f5;color:#244434}.management-context-notice>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#dcebe2;color:#286d45;font-size:20px;font-weight:900}.management-context-notice div{display:grid;gap:5px}.management-context-notice strong{font-size:15px}.management-context-notice p{margin:0;color:#5d6e64;line-height:1.5}

/* RC155 — Platform Owner-only named read receipts. */
.notification-read-receipt{
  display:grid;
  gap:7px;
  margin-top:9px;
  padding:9px 11px;
  border:1px solid #d8e7df;
  border-radius:10px;
  background:#f7faf8;
  color:#355247;
  font-size:.78rem;
}
.notification-read-receipt>div{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:5px 10px;
}
.notification-read-receipt>div>strong{
  color:#1d5138;
  min-width:64px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:.7rem;
}
.notification-read-receipt>div>span{color:#38584a}
.notification-read-receipt .legacy-reader{color:#7a694e;font-style:italic}
.notification-decision-detail{padding-top:7px;border-top:1px solid #dfe9e3}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #f8faf9; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.loading-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.spinner { width: 30px; height: 30px; border: 3px solid #dfe8e3; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.logo { display: flex; align-items: center; justify-content: center; gap: 7px; }
.logo-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg, #2aa357, #84c945); font-size: 25px; font-weight: 900; font-style: italic; box-shadow: 0 7px 18px rgba(54, 155, 79, .22); }
.logo-word { color: #173b56; font-size: 33px; font-weight: 900; letter-spacing: -.055em; }
.logo-subtitle { align-self: flex-end; margin: 0 0 7px 3px; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.logo-compact { justify-content: flex-start; }
.logo-compact .logo-symbol { width: 31px; height: 31px; border-radius: 8px; font-size: 19px; }
.logo-compact .logo-word { font-size: 23px; }

.login-screen { min-height: 100vh; padding: 38px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; }
.login-box { width: 100%; max-width: 450px; padding: 35px 42px 32px; border: 1px solid #e3e7e5; background: white; box-shadow: 0 18px 55px rgba(28, 55, 43, .055); }
.login-box.register-box { max-width: 760px; }
.login-box h1 { margin: 23px 0 7px; text-align: center; font-size: 22px; font-weight: 600; }
.login-lead { margin: 0 0 22px; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch { margin: 26px 0 0; padding: 4px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; border-radius: 8px; background: #f0f4f2; }
.auth-switch button { min-height: 38px; border: 0; border-radius: 6px; color: #64726b; background: transparent; font-size: 13px; font-weight: 800; }
.auth-switch button.active { color: #236f42; background: white; box-shadow: 0 2px 9px rgba(28, 55, 43, .08); }
.login-box form > label:not(.remember-row), .registration-form label, .company-profile-form label { display: grid; gap: 6px; color: #506159; font-size: 13px; font-weight: 700; }
.login-box form:not(.registration-form) > label:not(.remember-row) { margin: 15px 0 6px; display: block; }
.login-box input:not([type="checkbox"]), .login-box textarea, .company-profile-form input, .company-profile-form textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #d6deda; border-radius: 5px; outline: none; background: #fff; }
.login-box textarea, .company-profile-form textarea { min-height: 82px; resize: vertical; }
.login-box input:focus, .login-box textarea:focus, .company-profile-form input:focus, .company-profile-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(79,183,97,.1); }
.login-box input:disabled, .company-profile-form input:disabled { color: #77837d; background: #f2f5f3; }
.password-input-wrap { width: 100%; position: relative; display: block; }
.password-input-wrap > input { width: 100%; padding-right: 46px !important; }
.password-visibility-toggle { width: 36px; height: 36px; min-height: 0; padding: 0; position: absolute; right: 5px; top: 50%; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; color: #617168; background: transparent; }
.password-visibility-toggle:hover,.password-visibility-toggle:focus-visible { color: #247443; background: #edf7f0; outline: none; }
.password-visibility-toggle:disabled { opacity: .4; cursor: not-allowed; }
.password-visibility-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.remember-row { margin: 18px 0; display: flex; align-items: center; gap: 7px; font-size: 13px; }
.remember-row input { accent-color: var(--green); }
.primary-button { width: 100%; min-height: 46px; border: 0; border-radius: 5px; color: white; background: var(--green); font-weight: 800; transition: background .18s, transform .18s; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.forgot-button { width: 100%; margin: 19px 0 0; border: 0; color: #df3737; background: none; font-size: 13px; }
.form-error { margin: 12px 0 14px; color: #bd3030; font-size: 13px; }
.recovery-email-status { padding: 11px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid; border-radius: 7px; }
.recovery-email-status span { display: grid; gap: 3px; }
.recovery-email-status strong { font-size: 12px; }.recovery-email-status small { font-size: 11px; line-height: 1.4; }
.recovery-email-status.verified { border-color: #b8d9c2; color: #286b42; background: #eef8f1; }
.recovery-email-status.unverified { border-color: #e4ce98; color: #795b1f; background: #fff9e9; }
.recovery-email-status button { min-height: 32px; padding: 0 10px; border: 1px solid currentColor; border-radius: 5px; color: inherit; background: white; font-size: 11px; font-weight: 900; white-space: nowrap; }
@media (max-width: 620px) { .recovery-email-status { align-items: stretch; flex-direction: column; }.recovery-email-status button { width: 100%; } }
.demo-note { margin-top: 24px; padding: 11px 13px; display: flex; justify-content: space-between; gap: 12px; border-radius: 6px; color: #506159; background: #f4f8f5; font-size: 12.5px; }
.demo-note span { color: #327c4a; font-weight: 700; }
.powered-by { margin: 16px 0 0; color: #4e5854; font-size: 13px; }.powered-by strong { color: #4380e8; font-weight: 600; }
.registration-form { display: grid; gap: 16px; }
.registration-form fieldset { margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; }
.registration-form legend { padding: 0 8px; color: #2e7147; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label small { color: var(--muted); font-weight: 500; }
.location-fill-button { align-self: end; min-height: 46px; padding: 0 15px; border: 1px solid #bcd2c4; border-radius: 5px; color: #2f7549; background: #f4faf6; font-size: 12.5px; font-weight: 800; }

.app-shell { min-height: 100vh; background: #fafcfb; }
.topbar { min-height: 64px; padding: 8px clamp(20px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; }
.brand-stack { display: grid; gap: 2px; }.brand-stack > small { padding-left: 39px; color: var(--muted); font-size: 11px; }
.employee-chip { position: relative; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: #7e8c85; font-size: 12.5px; font-weight: 800; }
.profile-menu-toggle { padding: 5px 8px 5px 5px; display: flex; align-items: center; gap: 10px; border: 1px solid #dfe6e2; border-radius: 999px; color: #24332b; background: #fff; box-shadow: 0 8px 18px rgba(26, 50, 39, .06); }
.profile-summary { display: grid; line-height: 1.2; text-align: left; }
.profile-summary strong { font-size: 13px; }
.profile-summary small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-caret { color: #708078; font-size: 12.5px; }
.profile-dropdown { min-width: 176px; padding: 8px; position: absolute; top: calc(100% + 8px); right: 0; display: none; gap: 4px; border: 1px solid #dfe6e2; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(25, 47, 37, .12); }
.profile-dropdown.open { display: grid; }
.profile-dropdown button { width: 100%; margin: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; color: #41514a; background: transparent; font-size: 12.5px; font-weight: 700; text-align: left; }
.profile-dropdown button:hover { background: #f3f8f5; }
.profile-dropdown button.danger { color: #a53b4c; }
.tabbar { width: min(760px, calc(100% - 40px)); min-height: 48px; margin: 0 auto; display: grid; border-bottom: 1px solid #dfe5e2; }
.tabbar button { position: relative; border: 0; color: #607067; background: transparent; font-size: 12.5px; font-weight: 700; }
.tabbar button span { display: block; margin-bottom: 2px; font-size: 16px; }.tabbar button.active { color: var(--blue); }.tabbar button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); }
.content-wrap { width: min(940px, calc(100% - 34px)); margin: 28px auto 70px; }

.section-heading { margin: 0 auto 25px; text-align: center; }.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h1 { margin: 10px 0 5px; font-size: 27px; letter-spacing: -.03em; }.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.date-pill { display: inline-block; color: var(--green-dark); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow { color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.status-section { max-width: 760px; margin: 0 auto; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-card { min-height: 78px; padding: 13px 15px; display: grid; grid-template-columns: 42px 1fr 18px; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; transition: border .16s, box-shadow .16s, transform .16s; }
.status-card:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(27, 53, 42, .06); }.status-card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,183,97,.1); }
.status-card > span:nth-child(2) { display: grid; }.status-card strong { font-size: 13px; }.status-card small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.status-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; font-weight: 900; }.status-icon.green { color: #248747; background: #e8f7ec; }.status-icon.slate { color: #61716a; background: #edf1ef; }.status-icon.orange { color: #c87523; background: #fff2df; }.status-icon.red { color: #d24545; background: #ffebeb; }.status-icon.blue { color: #356dcf; background: #eaf1ff; }.status-icon.purple { color: #7958c9; background: #f0ebff; }.status-icon.teal { color: #25898a; background: #e5f5f5; }
.radio-dot { width: 17px; height: 17px; border: 2px solid #c7d0cc; border-radius: 50%; }.selected .radio-dot { border: 5px solid var(--green); }
.note-field { margin-top: 16px; display: grid; gap: 7px; color: #53625b; font-size: 13px; font-weight: 700; }.note-field textarea { min-height: 75px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; outline: none; }.note-field textarea:focus { border-color: var(--green); }
.continue-button { max-width: 300px; margin: 22px auto 0; display: block; }

.attendance-section { max-width: 700px; margin: 0 auto; }
.attendance-card, .time-summary article, .nonworking-panel, .history-table-wrap, .company-summary-card, .company-profile-form { border: 1px solid #dfe6e2; border-radius: 8px; background: white; box-shadow: 0 10px 30px rgba(30, 55, 44, .045); }
.attendance-card { padding: 22px 28px 24px; }
.card-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }.card-title-row h1 { margin: 5px 0 0; font-size: 20px; }.work-badge { padding: 6px 10px; border-radius: 999px; color: #27894a; background: #e8f7ec; font-size: 12px; font-weight: 800; }.work-badge.done { color: #3765c9; background: #eaf1ff; }
.location-panel { margin-top: 20px; padding: 13px; display: grid; grid-template-columns: 35px 1fr auto; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfa; }.location-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #728179; background: #ebf0ed; font-size: 20px; }.location-icon.verified { color: #218543; background: #e1f5e7; }.location-icon.outside, .location-icon.error { color: #ce3f3f; background: #fde8e8; }.location-icon.checking { animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.location-panel > div:nth-child(2) { display: grid; }.location-panel strong { font-size: 13px; }.location-panel span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.3; }.location-panel button { min-height: 31px; padding: 0 12px; border: 1px solid #cdd9d3; border-radius: 5px; color: #2e7347; background: white; font-size: 12px; font-weight: 800; }
.clock-panel { margin: 24px 0 15px; padding-top: 20px; display: grid; justify-items: center; border-top: 1px solid var(--line); }.clock-panel strong { color: #515d58; font-size: clamp(35px, 7vw, 46px); letter-spacing: .04em; }.clock-panel span { margin-top: 3px; color: #53615a; font-size: 13px; }
.check-button { width: 72%; min-height: 48px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 5px; color: white; font-size: 18px; font-weight: 800; }.check-button.check-in { background: var(--green); }.check-button.check-out { background: #ff5157; }.check-button.break-out { background: #d98a26; }.check-button.break-in { background: #2c8a67; }.check-button:disabled { opacity: .45; cursor: not-allowed; }.check-button span { font-size: 20px; }
.attendance-action-row { width: 72%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.attendance-action-row .check-button { width: 100%; font-size: 15px; }
.action-message { margin: 14px 0 0; color: #2f7f48; text-align: center; font-size: 12.5px; }.day-complete { padding: 13px; border-radius: 5px; color: #315f9e; background: #edf4ff; text-align: center; font-size: 13px; font-weight: 800; }
.time-summary { margin-top: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.time-summary article { padding: 15px 10px; display: grid; justify-items: center; text-align: center; }.time-summary span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.time-summary strong { margin: 9px 0 4px; color: #4d5954; font-size: 21px; }.time-summary small { color: var(--muted); font-size: 11px; }
.change-status { margin: 16px auto 0; display: block; border: 0; color: #6b7a73; background: none; font-size: 12.5px; }

.nonworking-panel { max-width: 530px; margin: 60px auto 0; padding: 45px; text-align: center; }.success-ring { width: 55px; height: 55px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 26px; }.nonworking-panel h1 { margin: 12px 0 8px; font-size: 29px; }.nonworking-panel > p:not(.date-pill) { color: var(--muted); font-size: 13px; }.recorded-note { margin: 20px 0; padding: 12px; border-radius: 6px; color: #536159; background: var(--soft); font-size: 13px; }.secondary-button { min-height: 39px; padding: 0 18px; border: 1px solid #cfd8d4; border-radius: 5px; color: #3f6250; background: white; font-size: 12.5px; font-weight: 800; }

.history-section { max-width: 1040px; margin: 0 auto; }.history-table-wrap { overflow-x: auto; }.history-table-wrap table { width: 100%; min-width: 940px; border-collapse: collapse; }.history-table-wrap th, .history-table-wrap td { padding: 14px 12px; border-bottom: 1px solid #edf1ef; text-align: left; font-size: 12px; white-space: nowrap; vertical-align: middle; }.history-table-wrap th { color: #69776f; background: #f7f9f8; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.history-table-wrap tr:last-child td { border-bottom: 0; }.attendance-status-stack { display: grid; justify-items: start; gap: 5px; }.table-status { display: inline-block; padding: 5px 8px; border-radius: 999px; color: #327a49; background: #e8f6ec; font-size: 11px; font-weight: 800; }.punctuality-pill { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1; }.punctuality-pill.on-time { color: #237a44; background: #dff3e5; }.punctuality-pill.late { color: #97520f; background: #ffe6bf; }.hours-worked-value { font-weight: 800; color: #33453c; }.hours-worked-value.is-progress { color: #7a6844; font-weight: 700; }.status-off, .status-el, .status-sl, .status-al, .status-mc { color: #5f6d66; background: #eef2f0; }.empty-cell { padding: 40px !important; color: var(--muted); text-align: center !important; }

.company-section { max-width: 920px; margin: 0 auto; }
.company-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.company-summary-card { padding: 25px 20px; text-align: center; }
.company-summary-card img, .company-initial { width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 15px; object-fit: contain; color: white; background: linear-gradient(145deg, #2aa357, #84c945); font-size: 31px; font-weight: 900; }
.company-summary-card h2 { margin: 0; font-size: 18px; }.company-summary-card > p { margin: 6px 0 12px; color: var(--muted); font-size: 12.5px; }.admin-badge { display: inline-block; padding: 6px 9px; border-radius: 999px; color: #2b7848; background: #eaf7ee; font-size: 11px; font-weight: 900; }
.company-summary-card dl { margin: 22px 0 0; text-align: left; }.company-summary-card dl div { padding: 12px 0; border-top: 1px solid var(--line); }.company-summary-card dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.company-summary-card dd { margin: 5px 0 0; font-size: 12.5px; line-height: 1.35; }
.company-profile-form { padding: 24px; }.company-profile-form .form-divider { margin-top: 5px; padding-top: 18px; border-top: 1px solid var(--line); color: #2e7147; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.profile-save-button { max-width: 250px; margin: 20px 0 0 auto; display: block; }.profile-success { margin: 16px 0 0; padding: 10px 12px; border: 1px solid #83c995; border-left: 4px solid #26914b; border-radius: 8px; color: #155f32; background: #e3f6e8; box-shadow: 0 5px 14px rgba(38,145,75,.10); font-size: 12.5px; font-weight: 800; line-height: 1.45; }

@media (max-width: 760px) {
  .login-screen { padding: 0; justify-content: flex-start; }.login-box, .login-box.register-box { max-width: none; min-height: calc(100vh - 45px); padding: 42px 20px 25px; border: 0; box-shadow: none; }.powered-by { margin: auto 0 14px; }
  .topbar { min-height: 58px; padding: 7px 15px; gap: 10px; }.brand-stack > small { display: none; } .profile-menu-toggle { padding-right: 7px; gap: 8px; } .profile-summary small { display: none; } .profile-summary strong { max-width: 100px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .profile-caret { font-size: 12px; } .profile-dropdown { right: 0; min-width: 160px; }
  .content-wrap { width: calc(100% - 24px); margin-top: 20px; }.status-grid, .form-grid, .company-layout { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.section-heading h1 { font-size: 23px; }
  .registration-form fieldset { padding: 14px; }.attendance-card { padding: 18px 14px; }.location-panel { grid-template-columns: 34px 1fr; }.location-panel button { grid-column: 1 / -1; min-height: 38px; }.check-button, .attendance-action-row { width: 100%; }.time-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .history-table-wrap { overflow-x: auto; }.history-table-wrap table { min-width: 760px; }.demo-note { display: grid; text-align: center; }.company-summary-card { display: none; }.profile-save-button { max-width: none; }
}

/* Module 2: administrator and backup coverage */
.admins-section { max-width: 940px; margin: 0 auto; }
.admin-loading { min-height: 220px; display: grid; place-items: center; }
.coverage-banner { margin: 0 0 18px; padding: 15px 17px; display: flex; gap: 13px; align-items: flex-start; border: 1px solid #bfe1c9; border-radius: 9px; color: #245e39; background: #edf9f1; }
.coverage-banner > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green-dark); font-size: 18px; }
.coverage-banner strong { font-size: 13px; }.coverage-banner p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; }
.admin-summary-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-summary-grid article, .management-card { border: 1px solid #dfe6e2; border-radius: 8px; background: white; box-shadow: 0 10px 30px rgba(30,55,44,.04); }
.admin-summary-grid article { padding: 17px; display: grid; gap: 6px; }.admin-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }.admin-summary-grid strong { font-size: 25px; }.admin-summary-grid small { color: var(--muted); font-size: 12px; }
.admin-grid-layout, .handover-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.handover-layout { margin-top: 18px; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.55fr); }
.management-card { padding: 21px; }.compact-card { display: grid; gap: 17px; }
.management-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); }.management-heading h2 { margin: 0; font-size: 16px; }.management-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.administrator-list { display: grid; }.administrator-row { padding: 15px 0; display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; border-bottom: 1px solid #edf1ef; }.administrator-row:last-child { border-bottom: 0; }
.administrator-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #286f43; background: #e9f6ed; font-size: 12.5px; font-weight: 900; }
.administrator-info { min-width: 0; display: grid; }.administrator-info strong { font-size: 13px; }.administrator-info span, .administrator-info small { margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.administrator-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 190px; }.administrator-actions button, .handover-row button { min-height: 29px; padding: 0 9px; border: 1px solid #d2dcd7; border-radius: 5px; color: #506159; background: white; font-size: 11px; font-weight: 800; }
.access-badge { width: 100%; display: block; text-align: right; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }.access-on { color: #27844a; }.standby { color: #a06d22; }.access-off { color: #b34848; }
.stacked-form { display: grid; gap: 12px; }.stacked-form label { display: grid; gap: 6px; color: #506159; font-size: 12px; font-weight: 800; }.stacked-form input, .stacked-form select, .stacked-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d6deda; border-radius: 5px; outline: none; color: var(--ink); background: white; }.stacked-form textarea { min-height: 70px; resize: vertical; }.stacked-form input:focus, .stacked-form select:focus, .stacked-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(79,183,97,.1); }.stacked-form :disabled { color: #87928c; background: #f1f4f2; cursor: not-allowed; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.permission-note { margin: -5px 0 0; color: #8a7460; font-size: 11px; line-height: 1.4; }
.handover-list { display: grid; }.handover-row { padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #edf1ef; }.handover-row:last-child { border-bottom: 0; }.handover-row > div { display: grid; gap: 5px; }.handover-row strong { font-size: 13px; }.handover-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.handover-status { width: max-content; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .06em; }.status-active { color: #237a44; background: #e7f6eb; }.status-scheduled { color: #3766b2; background: #eaf1ff; }.status-completed { color: #65716b; background: #edf1ef; }.status-cancelled { color: #b24848; background: #fdeaea; }
.empty-management { margin: 0; padding: 32px 10px; color: var(--muted); text-align: center; font-size: 12.5px; }

@media (max-width: 760px) {
  .admin-summary-grid, .admin-grid-layout, .handover-layout { grid-template-columns: 1fr; }
  .administrator-row { grid-template-columns: 38px 1fr; }.administrator-actions { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }.access-badge { width: auto; text-align: left; align-self: center; }
  .date-pair { grid-template-columns: 1fr; }
  .management-card { padding: 17px; }
}

/* Module 3: document template library */
.documents-section { max-width: 980px; margin: 0 auto; }
.document-summary-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.document-summary-grid article { padding: 17px; display: grid; gap: 6px; border: 1px solid #dfe6e2; border-radius: 8px; background: white; box-shadow: 0 10px 30px rgba(30,55,44,.04); }
.document-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.document-summary-grid strong { font-size: 25px; }.document-summary-grid small { color: var(--muted); font-size: 12px; }
.document-upload-card { margin-bottom: 18px; }
.document-edit-card { margin-bottom: 18px; border-color: #91c6a0; box-shadow: 0 12px 34px rgba(15,122,71,.09); }
.document-edit-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 9px; }
.document-edit-actions button { min-width: 145px; }
.document-form-grid { margin-top: 17px; display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.document-form-grid label { display: grid; gap: 6px; color: #506159; font-size: 12px; font-weight: 800; }
.document-form-grid .full { grid-column: 1 / -1; }
.document-form-grid input, .document-form-grid select, .document-form-grid textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d6deda; border-radius: 5px; outline: none; color: var(--ink); background: white; }
.document-form-grid textarea { min-height: 78px; resize: vertical; }
.document-form-grid input:focus, .document-form-grid select:focus, .document-form-grid textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(79,183,97,.1); }
.file-picker input[type="file"] { min-height: 49px; padding: 8px; }
.file-picker > span { color: var(--muted); font-size: 11px; font-weight: 500; }
.publish-check { width: max-content; grid-template-columns: 17px auto !important; align-items: center; gap: 7px !important; }
.publish-check input { width: 16px; min-height: 16px; margin: 0; }
.document-upload-button { max-width: 220px; margin: 18px 0 0 auto; display: block; }
.document-access-note { margin-bottom: 18px; padding: 15px 17px; border: 1px solid #cfe1d5; border-radius: 8px; background: #f4faf6; }
.document-access-note strong { font-size: 13px; }.document-access-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.document-library-card { padding: 0; overflow: hidden; }.document-library-heading { padding: 21px; }
.document-list { display: grid; }.document-row { padding: 17px 21px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 13px; align-items: center; border-top: 1px solid #edf1ef; }
.document-row.document-archived { background: #f8f9f8; opacity: .78; }
.document-file-icon { width: 48px; height: 54px; display: grid; place-items: center; border-radius: 7px; color: white; font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.document-file-icon.pdf { background: #c94a4a; }.document-file-icon.word { background: #3f6fb6; }
.document-info { min-width: 0; }.document-title-line { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.document-title-line strong { font-size: 13px; }.document-category, .archived-badge { padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.document-category { color: #2a7546; background: #e8f6ec; }.archived-badge { color: #6d756f; background: #e9edeb; }
.document-info p { margin: 7px 0 5px; color: #4f5d55; font-size: 12px; line-height: 1.45; }.document-info small { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 230px; }
.document-actions button { min-height: 31px; padding: 0 9px; border: 1px solid #d2dcd7; border-radius: 5px; color: #42594c; background: white; font-size: 11px; font-weight: 800; }
.document-actions button:hover { border-color: #93bda0; background: #f3faf5; }

.record-edit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.record-edit-actions button, .row-actions .record-edit-actions button { min-height: 31px; padding: 0 9px; border: 1px solid #bfd7c6; border-radius: 5px; color: #24643c; background: #f5fbf7; font-size: 11px; font-weight: 800; }
.record-edit-actions button:hover { border-color: #70ad81; background: #eaf7ee; }
.mini-list .record-edit-actions { grid-column: 1 / -1; margin-top: 7px; justify-content: flex-start; }
.history-selector { margin-bottom: 15px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.worked-days-pill { min-width: 150px; padding: 8px 12px; display: inline-flex; gap: 8px; align-items: center; border: 1px solid #b9dcc4; border-radius: 999px; color: #286b42; background: #edf8f0; white-space: nowrap; }
.worked-days-pill strong { font-size: 18px; line-height: 1; }.worked-days-pill small { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.worked-days-self { margin: -5px 0 15px; display: flex; justify-content: flex-end; }
.history-table-wrap td:last-child .record-edit-actions { min-width: 130px; }
.correction-reason { padding-top: 11px; border-top: 1px dashed #cfdcd3; }

.record-editor-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(13,31,22,.58); backdrop-filter: blur(3px); }
.record-editor-modal { width: min(860px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border: 1px solid #c8d9ce; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgba(8,27,17,.28); }
.record-editor-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e3ebe6; }
.record-editor-heading h2 { margin: 4px 0 5px; font-size: 22px; }.record-editor-heading p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.modal-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #d3ddd7; border-radius: 50%; color: #496055; background: white; font-size: 22px; line-height: 1; }
.record-editor-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.record-editor-grid label { display: grid; gap: 6px; color: #506159; font-size: 12px; font-weight: 800; }.record-editor-grid .full { grid-column: 1 / -1; }
.record-editor-grid input, .record-editor-grid select, .record-editor-grid textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d6deda; border-radius: 5px; outline: none; color: var(--ink); background: white; }
.record-editor-grid textarea { min-height: 92px; resize: vertical; }.record-editor-grid input:focus, .record-editor-grid select:focus, .record-editor-grid textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(79,183,97,.1); }
.record-editor-checkbox { grid-template-columns: 18px auto !important; align-items: center; align-self: end; min-height: 42px; }.record-editor-checkbox input { width: 17px; min-height: 17px; }
.record-editor-footer { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; }.record-editor-footer button { min-width: 120px; }
.audit-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e3ebe6; }.audit-panel .management-heading { margin-bottom: 12px; }.audit-panel h3 { margin: 0; font-size: 14px; }
.audit-entry { padding: 14px; border: 1px solid #dfe8e2; border-radius: 8px; background: #fafcfb; }.audit-entry + .audit-entry { margin-top: 9px; }
.audit-entry-heading { display: flex; justify-content: space-between; gap: 12px; }.audit-entry-heading strong { font-size: 12.5px; }.audit-entry-heading span { color: var(--muted); font-size: 11px; }
.audit-entry > p { margin: 7px 0 10px; color: #415248; font-size: 12px; }
.audit-change-list { display: grid; gap: 6px; }.audit-change-list > div { display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(0,1fr); gap: 8px; align-items: start; padding-top: 6px; border-top: 1px dashed #dde6e0; font-size: 11px; overflow-wrap: anywhere; }
.audit-change-list span { color: var(--muted); text-transform: capitalize; }.audit-change-list del { color: #a04444; }.audit-change-list strong { color: #237040; font-size: 11px; }
.module-setting-row { min-height: 54px; padding: 10px 0; display: grid; grid-template-columns: minmax(0,1fr) auto 42px; gap: 10px; align-items: center; border-bottom: 1px solid #edf1ef; }.module-setting-row > span { display: grid; gap: 3px; }.module-setting-row > span strong { font-size: 12.5px; }.module-setting-row > span small { color: var(--muted); font-size: 11px; }.module-setting-row > input { width: 36px; height: 20px; }
.employer-workflow-card { margin-bottom: 18px; border-color: #bcd9c5; background: linear-gradient(135deg,#f3fbf5,#fff); }.employer-workflow-card h2 { margin: 9px 0 5px; font-size: 16px; }.employer-workflow-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.setup-step-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.setup-step-grid span { min-height: 44px; padding: 9px; display: flex; align-items: center; gap: 8px; border: 1px solid #dbe9df; border-radius: 7px; color: #41564a; background: white; font-size: 11px; font-weight: 800; }.setup-step-grid strong { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green-dark); font-size: 11px; }
.company-config-card { margin-top: 18px; }.menu-config-list { display: grid; gap: 7px; }.menu-config-row { padding: 9px 0; display: grid; grid-template-columns: minmax(0,1fr) 100px 75px; gap: 10px; align-items: end; border-bottom: 1px solid #edf1ef; }.menu-config-row > span { display: grid; gap: 5px; color: #53645b; font-size: 11px; font-weight: 900; text-transform: uppercase; }.menu-config-row > span:first-child small { color: var(--muted); font-size: 10px; }.menu-config-row input { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d6deda; border-radius: 5px; background: white; }.menu-config-row .menu-enabled { justify-items: center; }.menu-config-row .menu-enabled input { width: 18px; min-height: 18px; accent-color: var(--green-dark); }.config-save-button { width: max-content; margin: 14px 0 0 auto; display: block; }
.role-template-list, .workplace-list { display: grid; gap: 7px; }.role-template-list article, .workplace-list article { padding: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; border: 1px solid #dfe8e2; border-radius: 7px; background: #fbfdfc; }.role-template-list article span, .workplace-list article span { display: grid; gap: 4px; }.role-template-list strong, .workplace-list strong { font-size: 12px; }.role-template-list small, .workplace-list small { color: var(--muted); font-size: 11px; }.role-template-list p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 11px; }.role-template-list em, .workplace-list em { color: #2b7045; font-size: 11px; font-style: normal; font-weight: 900; }.workplace-list button { min-height: 28px; padding: 0 8px; border: 1px solid #d5ddd8; border-radius: 5px; color: #59685f; background: white; font-size: 11px; font-weight: 800; }.workplace-list .archived-workplace { opacity: .6; background: #f3f4f3; }.config-subform { max-width: 680px; margin-top: 17px; padding-top: 16px; border-top: 1px solid #e3ebe6; }.config-subform h3 { margin: 0 0 4px; }
.employee-self-registration-form { margin-top: 18px; }.invitation-company { padding: 13px 15px; display: grid; gap: 5px; border: 1px solid #bfe0c8; border-radius: 8px; background: #f1faf4; }.invitation-company strong { font-size: 14px; }.invitation-company small { color: var(--muted); font-size: 11px; }.onboarding-change-note { margin: 0; padding: 12px; border: 1px solid #efcf8f; border-radius: 7px; color: #78581c; background: #fff9e9; font-size: 12px; line-height: 1.5; }
.onboarding-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.onboarding-file-grid label { padding: 11px; border: 1px solid #dce5df; border-radius: 7px; background: #fbfdfc; }.onboarding-file-grid input { min-height: 40px !important; padding: 6px !important; }.onboarding-file-grid small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }.onboarding-form-actions { display: grid; grid-template-columns: auto 1fr; gap: 9px; }.onboarding-status-card { margin-top: 18px; padding: 22px; border: 1px solid #dce6e0; border-radius: 9px; text-align: center; }.onboarding-status-card h2 { margin: 12px 0 7px; }.onboarding-status-card p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }.onboarding-status-card button { margin-top: 9px; }
.onboarding-management-card { border-color: #bcd9c5; }.onboarding-invitation-list { max-height: 410px; overflow: auto; }.onboarding-list-row { padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid #edf1ef; }.onboarding-list-row > span { min-width: 0; display: grid; gap: 4px; }.onboarding-list-row strong { font-size: 12px; }.onboarding-list-row small { color: var(--muted); font-size: 11px; }.onboarding-list-row code { max-width: 220px; overflow: hidden; color: #2c6942; font-size: 11px; text-overflow: ellipsis; }.onboarding-application-list { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e3ebe6; }.onboarding-application-list > h3 { margin: 0 0 10px; font-size: 13px; }.onboarding-application { padding: 14px; border: 1px solid #dfe7e2; border-radius: 8px; background: #fbfdfc; }.onboarding-application + .onboarding-application { margin-top: 9px; }.onboarding-application-heading { display: flex; justify-content: space-between; gap: 12px; }.onboarding-application-heading > span:first-child { display: grid; gap: 4px; }.onboarding-application-heading strong { font-size: 13px; }.onboarding-application-heading small { color: var(--muted); font-size: 11px; }.onboarding-application dl { margin: 12px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }.onboarding-application dl div { padding: 8px; border-radius: 6px; background: white; }.onboarding-application dt { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }.onboarding-application dd { margin: 4px 0 0; font-size: 11px; overflow-wrap: anywhere; }.onboarding-review-note { padding: 9px; color: #72551a; background: #fff8e7; font-size: 11px; }.onboarding-file-actions { display: flex; flex-wrap: wrap; gap: 6px; }.onboarding-file-actions button { min-height: 29px; padding: 0 8px; border: 1px solid #cbdad1; border-radius: 5px; color: #2e6843; background: white; font-size: 11px; font-weight: 800; }.onboarding-review-actions { margin-top: 12px; }.onboarding-review-actions .approve-action { border-color: #64aa77; color: white; background: var(--green-dark); }
.workplace-access-form { margin-bottom: 18px; }.workplace-access-list { padding-top: 16px; border-top: 1px solid #e3ebe6; }.workplace-access-list > h3 { margin: 0 0 8px; font-size: 13px; }.workplace-access-list article { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1ef; }.workplace-access-list article span { display: grid; gap: 4px; }.workplace-access-list article strong { font-size: 12px; }.workplace-access-list article small { color: var(--muted); font-size: 11px; }.workplace-access-list article button { min-height: 30px; padding: 0 10px; border: 1px solid #dfb4b4; border-radius: 5px; color: #a53c3c; background: white; font-size: 11px; font-weight: 800; }
.location-search-box { padding: 13px; border: 1px solid #cfe0d5; border-radius: 8px; background: #f5faf7; }.location-search-box > label { display: grid; gap: 7px; }.location-search-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }.location-search-controls button { min-width: 105px; border: 0; border-radius: 5px; color: white; background: var(--green-dark); font-size: 12px; font-weight: 800; }.location-search-controls button:disabled { opacity: .65; }.location-search-note { margin: 8px 0 0; color: #326f49; font-size: 11px; }.location-search-results { margin-top: 9px; display: grid; gap: 6px; }.location-search-results button { padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; border: 1px solid #d4e0d8; border-radius: 6px; color: var(--ink); background: white; text-align: left; }.location-search-results button:hover { border-color: #78b48a; background: #f0f9f3; }.location-search-results strong { font-size: 12px; }.location-search-results small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.4; }.location-search-results span { grid-column: 2; grid-row: 1; color: #39704c; font-size: 11px; }.map-attribution { margin-top: 8px; display: block; color: var(--muted); font-size: 10px; }.map-attribution a { color: #356d49; }
.network-ip-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: end; }.network-ip-field input { grid-column: 1; }.network-ip-field .secondary-button { grid-column: 2; grid-row: 2; min-height: 35px; white-space: nowrap; }

@media (max-width: 760px) {
  .document-summary-grid, .document-form-grid { grid-template-columns: 1fr; }
  .document-form-grid .full { grid-column: auto; }.document-upload-button { max-width: none; }
  .document-edit-actions { display: grid; grid-template-columns: 1fr; }.document-edit-actions button { width: 100%; }
  .document-row { grid-template-columns: 42px 1fr; padding: 15px; }.document-file-icon { width: 42px; height: 48px; }
  .document-actions { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }
  .document-library-heading { padding: 17px; }
  .record-editor-backdrop { padding: 8px; }.record-editor-modal { max-height: calc(100vh - 16px); padding: 17px; }.record-editor-grid { grid-template-columns: 1fr; }.record-editor-grid .full { grid-column: auto; }
  .record-editor-footer { grid-template-columns: 1fr 1fr; }.record-editor-footer > span { display: none; }.record-editor-footer button { width: 100%; min-width: 0; }
  .audit-change-list > div { grid-template-columns: 1fr; }.audit-entry-heading { display: grid; }
  .module-setting-row { grid-template-columns: 1fr auto; }.module-setting-row .record-edit-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .setup-step-grid { grid-template-columns: 1fr 1fr; }.menu-config-row { grid-template-columns: 1fr 85px 60px; }
  .auth-switch { grid-template-columns: 1fr; }.onboarding-file-grid { grid-template-columns: 1fr; }.onboarding-form-actions { grid-template-columns: 1fr; }.onboarding-application dl { grid-template-columns: 1fr 1fr; }.onboarding-list-row { align-items: flex-start; flex-direction: column; }
  .location-search-controls { grid-template-columns: 1fr; }.location-search-controls button { min-height: 40px; }.location-search-results button { grid-template-columns: 1fr; }.location-search-results span { grid-column: 1; grid-row: auto; }.network-ip-field { grid-template-columns: 1fr; }.network-ip-field .secondary-button { grid-column: 1; grid-row: auto; }
}

/* Shiftly Master Suite */
.suite-tabbar { width: min(1120px, calc(100% - 24px)); display: flex; overflow-x: auto; scrollbar-width: thin; }
.suite-tabbar button { min-width: 96px; min-height: 52px; flex: 1 0 auto; padding: 6px 12px; white-space: nowrap; }
.nav-count-badge { min-width: 19px; height: 19px; margin-left: 6px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: white; background: #cf3f3f; font-size: 11px; font-weight: 900; line-height: 1; vertical-align: middle; box-shadow: 0 0 0 3px #fdecec; }
.suite-dashboard, .suite-section { max-width: 1080px; margin: 0 auto 24px; }
.task-assignment-banner { margin: -5px 0 20px; padding: 14px 16px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto 28px; gap: 12px; align-items: center; border: 1px solid #badcc3; border-radius: 10px; color: #245f38; background: linear-gradient(90deg,#eef9f1,#f9fcfa); box-shadow: 0 8px 22px rgba(34,105,57,.06); }
.task-assignment-bell { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: #29934e; font-size: 14px; font-weight: 900; }
.task-assignment-banner > div { min-width: 0; display: grid; gap: 4px; }.task-assignment-banner strong { font-size: 13px; }.task-assignment-banner p { margin: 0; color: #53685b; font-size: 12px; line-height: 1.45; }
.task-assignment-open { min-height: 34px; padding: 0 13px; border: 1px solid #4c9f64; border-radius: 6px; color: #26713e; background: white; font-size: 11px; font-weight: 900; }
.task-assignment-dismiss { width: 28px; height: 28px; padding: 0; border: 0; color: #64806e; background: transparent; font-size: 21px; line-height: 1; }
.summary-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.personal-summary-heading { margin: 32px 0 13px; }.personal-summary-heading h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.suite-dashboard > .nonworking-panel { margin-top: 0; }
.summary-card { width: 100%; min-height: 116px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #dfe6e2; border-radius: 9px; color: var(--ink); background: white; text-align: left; box-shadow: 0 10px 25px rgba(30,55,44,.04); }
button.summary-card { cursor: pointer; }
.summary-card:hover { border-color: #c6d8cc; transform: translateY(-1px); }
.summary-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #277344; background: #e9f6ed; font-size: 13px; font-weight: 900; }
.summary-card div { min-width: 0; display: grid; gap: 4px; }.summary-card small { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }.summary-card strong { font-size: 20px; }.summary-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.subtle-note { color: var(--muted); font-size: 12px; }
.module-tabs { max-width: 1080px; margin: 0 auto 18px; padding: 4px; display: flex; gap: 5px; border-radius: 8px; background: #edf2ef; }
.module-tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 6px; color: #617168; background: transparent; font-size: 12.5px; font-weight: 800; }.module-tabs button.active { color: #286f43; background: white; box-shadow: 0 2px 8px rgba(20,50,35,.08); }
.two-column-suite { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.template-editor { min-height: 240px !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.5; }
.token-help { margin: -4px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.8; }.token-help code { padding: 2px 5px; border-radius: 4px; color: #245f3a; background: #eef7f1; }
.checkbox-line { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }.checkbox-line input { width: auto !important; min-height: 0 !important; accent-color: var(--green-dark); }
.suite-list-card { margin-top: 18px; }.suite-record-list { display: grid; }.suite-record-row { padding: 15px 0; display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 1px solid #edf1ef; }.suite-record-row:last-child { border-bottom: 0; }.suite-record-row > div:first-child { min-width: 0; display: grid; gap: 5px; }.suite-record-row strong { font-size: 13px; }.suite-record-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.suite-record-row small { color: #7c8882; font-size: 11px; }.record-badge { width: max-content; padding: 4px 7px; border-radius: 999px; color: #2c7147; background: #e9f5ed; font-size: 11px; font-weight: 900; letter-spacing: .05em; }.read-record { opacity: .74; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.row-actions button, .directory-row button { min-height: 30px; padding: 0 9px; border: 1px solid #d1dbd6; border-radius: 5px; color: #53645b; background: white; font-size: 11px; font-weight: 800; }
.row-actions .danger-action { border-color: #e2b5b5; color: #9a3737; background: #fff8f8; }.row-actions .danger-action:hover { border-color: #c97a7a; background: #fff0f0; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.people-grid > .management-card { padding: 19px; }
.employee-selector { margin-bottom: 18px; padding: 15px 19px; }.employee-selector label { display: flex; align-items: center; gap: 12px; color: #506159; font-size: 12px; font-weight: 800; }.employee-selector select { min-width: 280px; min-height: 40px; padding: 8px; border: 1px solid #d6deda; border-radius: 5px; background: white; }
.expandable-card { margin-bottom: 18px; padding: 0; }.expandable-card summary { padding: 17px 20px; cursor: pointer; font-size: 13px; font-weight: 800; }.details-content { padding: 0 20px 20px; margin: 0; }
.directory-list { display: grid; align-content: start; gap: 4px; }.directory-list h3, .stacked-form h3 { margin: 0 0 8px; font-size: 13px; }.directory-row { padding: 9px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #edf1ef; }.directory-row span { display: grid; }.directory-row strong { font-size: 12.5px; }.directory-row small { color: var(--muted); font-size: 11px; }
.inline-record-form { margin: 14px 0; display: grid; grid-template-columns: 1.2fr .8fr .8fr auto; gap: 7px; }.inline-record-form input { min-width: 0; min-height: 36px; padding: 7px 8px; border: 1px solid #d6deda; border-radius: 5px; }.inline-record-form button { border: 0; border-radius: 5px; color: white; background: var(--green-dark); font-size: 11px; font-weight: 800; }
.compact-form { margin: 13px 0 15px; padding-bottom: 15px; border-bottom: 1px solid #edf1ef; }.mini-list { display: grid; }.mini-list > div { padding: 10px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; border-bottom: 1px solid #edf1ef; }.mini-list > div:last-child { border-bottom: 0; }.mini-list span { grid-row: 1 / 3; align-self: start; padding: 4px 6px; border-radius: 999px; color: #37674b; background: #edf6ef; font-size: 11px; font-weight: 900; }.mini-list strong { font-size: 12.5px; }.mini-list small { color: var(--muted); font-size: 11px; }
.notification-form { margin-bottom: 18px; }.module-settings-card { margin-top: 18px; }.module-toggle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }.module-toggle-list label { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf1ef; }.module-toggle-list span { display: grid; gap: 3px; }.module-toggle-list strong { font-size: 12.5px; }.module-toggle-list small { color: var(--muted); font-size: 11px; }.module-toggle-list input { width: 38px; height: 20px; accent-color: var(--green-dark); }
.role-summary-card { margin-bottom: 18px; }
.role-definition-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.role-definition-grid article { min-height: 95px; padding: 12px; display: grid; align-content: start; gap: 7px; border: 1px solid #dfe8e2; border-radius: 8px; background: #fbfdfc; }
.role-definition-grid strong { font-size: 12px; color: #245f3a; }.role-definition-grid small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.role-badge-list { margin-top: 5px; display: flex !important; flex-flow: row wrap; gap: 4px; }
.role-badge { width: max-content; padding: 3px 6px; border-radius: 999px; color: #37674b; background: #edf6ef; font-size: 10px !important; font-weight: 900; }
.role-employer { color: #6d4e0f; background: #fff3cf; }.role-admin { color: #244e80; background: #e9f2ff; }.role-supervisor { color: #6a3e79; background: #f5eafd; }.role-general_worker { color: #8a4b1e; background: #fff0e5; }
.role-manager-modal { width: min(900px,100%); }
.role-option-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.role-option, .team-member { padding: 12px; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; align-items: start; border: 1px solid #dbe5df; border-radius: 7px; background: #fbfdfc; cursor: pointer; }
.role-option:has(input:checked), .team-member:has(input:checked) { border-color: #86bd96; background: #f0f9f3; }
.role-option.protected { cursor: default; background: #f4f6f5; }.role-option input, .team-member input { width: 16px; height: 16px; accent-color: var(--green-dark); }
.role-option span, .team-member span { display: grid; gap: 4px; }.role-option strong, .team-member strong { font-size: 12px; }.role-option small, .team-member small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.supervisor-team-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e3ebe6; }.supervisor-team-panel.is-hidden { display: none; }
.team-member-grid { max-height: 260px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-reason { margin-top: 18px; display: grid; gap: 7px; color: #506159; font-size: 12px; font-weight: 800; }.role-reason textarea { min-height: 75px; padding: 9px 11px; border: 1px solid #d6deda; border-radius: 5px; }
.past-employees-card { margin-top: 22px; border-color: #d8dfdb; background: #fbfcfb; }.past-employees-card summary { color: #4e6257; }.past-employee-row { padding: 12px 0; }
.past-employee-modal { width: min(1040px,100%); }.past-file-profile { margin: 18px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }.past-file-profile > div { min-height: 70px; padding: 12px; display: grid; align-content: start; gap: 6px; border: 1px solid #dfe7e2; border-radius: 8px; background: #fafcfb; }.past-file-profile span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }.past-file-profile strong { font-size: 12px; overflow-wrap: anywhere; }
.past-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.past-file-section { padding: 14px; border: 1px solid #dfe7e2; border-radius: 8px; background: white; }.past-file-section-heading { margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }.past-file-section-heading h3 { margin: 0; font-size: 13px; }.past-file-section-heading > span { min-width: 24px; padding: 4px 7px; border-radius: 999px; color: #2d7046; background: #eaf6ed; font-size: 11px; font-weight: 900; text-align: center; }
.past-file-records { max-height: 260px; overflow: auto; }.past-file-records article { padding: 9px 0; display: grid; gap: 4px; border-bottom: 1px solid #edf1ef; }.past-file-records article:last-child { border-bottom: 0; }.past-file-records strong { font-size: 12px; }.past-file-records small { color: var(--muted); font-size: 11px; line-height: 1.45; }.past-file-records button { width: max-content; min-height: 28px; padding: 0 8px; border: 1px solid #c8d8ce; border-radius: 5px; color: #2d6842; background: #f7fbf8; font-size: 11px; font-weight: 800; }.past-file-audit { margin-top: 12px; }.past-file-audit .audit-entry { margin-top: 8px; }

@media (max-width: 900px) {
  .summary-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid, .two-column-suite { grid-template-columns: 1fr; }
  .module-toggle-list { grid-template-columns: 1fr; }
  .role-definition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .summary-card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.summary-card { min-height: 108px; padding: 12px; }.summary-icon { width: 30px; height: 30px; }.summary-card strong { font-size: 17px; }
  .task-assignment-banner { grid-template-columns: 34px minmax(0,1fr) 25px; }.task-assignment-open { grid-column: 1 / -1; width: 100%; }.task-assignment-dismiss { grid-column: 3; grid-row: 1; }
  .suite-record-row { align-items: flex-start; flex-direction: column; }.row-actions { justify-content: flex-start; }
  .inline-record-form { grid-template-columns: 1fr 1fr; }.inline-record-form button { min-height: 36px; }
  .employee-selector label { display: grid; }.employee-selector select { min-width: 0; width: 100%; }
  .history-selector { align-items: stretch; flex-direction: column; }.worked-days-pill { width: 100%; min-width: 0; justify-content: center; }.worked-days-self { justify-content: stretch; }
  .role-option-grid, .team-member-grid, .role-definition-grid { grid-template-columns: 1fr; }
  .past-file-grid, .past-file-profile { grid-template-columns: 1fr; }
}

/* Shiftly v1.8 Day 3: supervisor review and change alerts */
.task-notification-settings { margin-top: 18px; }
.task-notification-settings > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.locked-task-summary { margin-top: 13px; padding: 11px; border: 1px solid #d7e1db; border-radius: 7px; color: #40564a; background: #f5f8f6; }
.locked-task-summary strong { font-size: 11px; text-transform: uppercase; }.locked-task-summary p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.task-plan-review > label { margin: 14px 0; display: grid; gap: 6px; color: #506159; font-size: 12px; font-weight: 800; }
.task-plan-review textarea { width: 100%; min-height: 72px; padding: 10px; border: 1px solid #d6deda; border-radius: 6px; resize: vertical; }
.supervisor-evidence-review { max-width: 980px; margin: 18px auto 0; }
.task-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.task-review-card { padding: 14px; display: grid; gap: 12px; border: 1px solid #dce5df; border-radius: 9px; background: #fbfdfc; }
.task-review-card.status-submitted { border-color: #d7ba76; box-shadow: 0 0 0 2px rgba(194,147,36,.07); }
.task-review-card.status-revision_required { border-color: #dfaa75; background: #fffaf3; }
.task-review-card.status-approved { border-color: #b7d7c0; background: #f4fbf6; }
.task-review-card.status-rejected { border-color: #e5b5b5; background: #fff7f7; }
.task-review-card-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }.task-review-card-heading > div { display: grid; gap: 7px; }.task-review-card-heading strong { font-size: 13px; }
.task-review-status { padding: 5px 7px; border-radius: 999px; color: #53645a; background: #eef2ef; font-size: 10px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.task-review-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.task-review-facts div { padding: 8px; border-radius: 6px; background: white; }.task-review-facts dt { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }.task-review-facts dd { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
.evidence-actions,.task-review-actions { display: flex; flex-wrap: wrap; gap: 7px; }.evidence-actions button,.task-review-actions button { min-height: 32px; padding: 0 10px; border: 1px solid #c8d7ce; border-radius: 5px; color: #2d6541; background: white; font-size: 11px; font-weight: 900; }.task-review-actions .approve-action { color: white; border-color: #27864d; background: #27864d; }.task-review-actions .reject-action { color: #a54040; border-color: #dfb0b0; }
.task-review-card label { display: grid; gap: 5px; color: #506159; font-size: 11px; font-weight: 800; }.task-review-card textarea { min-height: 65px; padding: 9px; border: 1px solid #d7dfda; border-radius: 6px; resize: vertical; }.task-review-card textarea:disabled { color: #59675f; background: #f1f4f2; }
.task-review-card > small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.revision-task-card { border-color: #dda766; background: #fffaf2; }.supervisor-feedback { margin-top: 14px; padding: 12px; border-left: 4px solid #cf8236; border-radius: 5px; background: #fff2df; }.supervisor-feedback strong { font-size: 11px; text-transform: uppercase; }.supervisor-feedback p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.browser-alert-card { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 18px 20px; border: 1px solid #d9e5dc; background: linear-gradient(180deg,#ffffff 0%,#fbfdfb 100%); }
.browser-alert-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.browser-alert-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #e8f6ec; font-size: 16px; }
.browser-alert-copy { min-width: 0; }
.browser-alert-kicker { display: inline-block; margin-bottom: 4px; color: #27864d; font-size: 10px; line-height: 1; font-weight: 900; letter-spacing: .12em; }
.browser-alert-card h2 { margin: 0 0 5px; font-size: 16px; line-height: 1.15; }
.browser-alert-card p { margin: 0; max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.browser-alert-action { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.browser-alert-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #f2f5f3; color: #627169; font-size: 11px; font-weight: 900; white-space: nowrap; }
.browser-alert-status.granted { background: #e5f5e9; color: #267b45; }
.browser-alert-status.denied { background: #fff1ec; color: #a95338; }
.browser-alert-status.unsupported { background: #f2f3f4; color: #667078; }
.browser-alert-card button { min-width: 158px; min-height: 40px; padding: 0 16px; white-space: nowrap; }
.suite-record-row.needs-acknowledgement { border-color: #dfbd78; background: #fffaf0; }

@media (max-width: 760px) {
  .task-review-grid { grid-template-columns: 1fr; }
  .browser-alert-card { display: grid; gap: 14px; padding: 16px; }
  .browser-alert-main { align-items: flex-start; }
  .browser-alert-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
  .browser-alert-action { width: 100%; display: grid; gap: 8px; }
  .browser-alert-status { justify-self: start; }
  .browser-alert-card button { width: 100%; min-width: 0; }
  .task-review-facts { grid-template-columns: 1fr; }
}

/* Shiftly v1.8 Day 1: Supervisor-led daily task planner */
.personnel-upload-form { margin-bottom: 18px; }
.task-planner-tabs { max-width: none; }
.task-layout { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(0,1.35fr); gap: 18px; align-items: start; }
.task-template-form, .task-template-library { margin: 0; }
.task-template-grid { display: grid; gap: 9px; }
.task-template-grid.compact { max-height: 560px; overflow: auto; }
.task-template-card { padding: 13px; display: grid; gap: 7px; border: 1px solid #dce7e0; border-radius: 8px; background: #fbfdfc; }
.task-template-card[draggable="true"] { cursor: grab; }
.task-template-card[draggable="true"]:active { cursor: grabbing; }
.task-template-card.is-archived { opacity: .58; background: #f2f4f3; }
.task-template-heading { display: flex; align-items: center; gap: 8px; }
.task-template-heading strong { font-size: 13px; }
.task-template-card p { margin: 0; color: #4e5e55; font-size: 12px; line-height: 1.45; }
.task-template-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.task-template-actions { display: flex; justify-content: flex-end; gap: 6px; }
.task-template-actions button, .daily-plan-list button { min-height: 29px; padding: 0 9px; border: 1px solid #c9dacf; border-radius: 5px; color: #2c6842; background: white; font-size: 11px; font-weight: 800; }
.task-option-builder { padding: 12px; display: grid; gap: 10px; border: 1px dashed #cbdcd1; border-radius: 8px; background: #f7fbf8; }
.task-option-list { display: flex; flex-wrap: wrap; gap: 6px; }
.task-option-list span { padding: 6px 7px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; color: #2d6943; background: #e9f5ed; font-size: 11px; font-weight: 800; }
.task-option-list button { width: 19px; height: 19px; padding: 0; border: 0; border-radius: 50%; color: #805050; background: #fff; }
.task-plan-builder { display: grid; gap: 16px; }
.task-plan-controls { padding-bottom: 17px; }
.task-plan-controls .date-pair { margin-top: 15px; }
.task-plan-controls label { display: grid; gap: 6px; color: #506159; font-size: 12px; font-weight: 800; }
.task-plan-controls select, .task-plan-controls input { min-height: 42px; padding: 8px 10px; border: 1px solid #d6deda; border-radius: 5px; background: #fff; }
.task-builder-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,1fr); gap: 16px; align-items: start; }
.task-builder-columns h3 { margin: 0 0 5px; font-size: 14px; }
.daily-plan-dropzone { min-height: 330px; border: 2px dashed #afcdb8; background: #f7fcf8; }
.daily-plan-dropzone:has(.daily-plan-list) { border-style: solid; }
.task-drop-placeholder { min-height: 230px; display: grid; place-items: center; color: #728078; font-size: 12.5px; font-weight: 800; }
.daily-plan-list { margin: 15px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; counter-reset: daily-task; }
.daily-plan-list li { padding: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; border: 1px solid #dbe6df; border-radius: 7px; background: #fff; counter-increment: daily-task; }
.daily-plan-list li[data-plan-task-drag-index] { cursor: grab; transition: border-color .12s ease, background-color .12s ease, opacity .12s ease; }
.daily-plan-list li[data-plan-task-drag-index]:active { cursor: grabbing; }
.daily-plan-list li.is-plan-dragging { opacity: .5; }
.daily-plan-list li.plan-drop-before { border-top: 3px solid var(--green-dark); }
.daily-plan-list li.plan-drop-after { border-bottom: 3px solid var(--green-dark); }
.daily-plan-list li button { cursor: pointer; }

.daily-plan-list li > span { display: grid; gap: 4px; }
.daily-plan-list li > span::before { content: counter(daily-task); width: 21px; height: 21px; display: grid; place-items: center; float: left; border-radius: 50%; color: white; background: var(--green-dark); font-size: 11px; font-weight: 900; }
.daily-plan-list strong { font-size: 12px; }
.daily-plan-list small { color: var(--muted); font-size: 11px; }
.daily-plan-list li > div { display: flex; gap: 5px; }
.daily-plan-list button:disabled { opacity: .35; }
.task-plan-review { max-width: 760px; margin: 0 auto; }
.task-plan-summary { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-plan-summary div { padding: 11px; border-radius: 7px; background: #f6f9f7; }
.task-plan-summary dt { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.task-plan-summary dd { margin: 5px 0 0; font-size: 12px; font-weight: 800; }
.task-review-list { margin: 14px 0 18px; padding: 0; display: grid; gap: 7px; list-style: none; }
.task-review-list li { padding: 11px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; border: 1px solid #dfe7e2; border-radius: 7px; background: #fff; }
.task-review-list li > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #286d43; background: #e8f5ec; font-size: 11px; font-weight: 900; }
.task-review-list li > div { display: grid; gap: 4px; }
.task-review-list strong { font-size: 12.5px; }.task-review-list small { color: var(--muted); font-size: 11px; }
.worker-daily-plan, .worker-plan-empty { max-width: 760px; margin: 0 auto; }
.worker-plan-empty { padding: 40px; text-align: center; }
.worker-plan-empty h2 { margin: 0 0 8px; }.worker-plan-empty p { margin: 0; color: var(--muted); font-size: 12.5px; }
.task-start-note { padding: 12px; border: 1px solid #cfe2d5; border-radius: 7px; color: #2d6541; background: #f1f9f3; font-size: 12px; line-height: 1.5; }

@media (max-width: 860px) {
  .task-layout, .task-builder-columns { grid-template-columns: 1fr; }
  .task-template-grid.compact { max-height: none; }
}
@media (max-width: 620px) {
  .task-planner-tabs { overflow-x: auto; }
  .task-planner-tabs button { min-width: max-content; }
  .task-plan-summary { grid-template-columns: 1fr; }
  .daily-plan-list li { grid-template-columns: 1fr; }
  .daily-plan-list li > div { justify-content: flex-start; }
}

/* Shiftly v1.8 Day 2: attendance-gated worker execution */
.worker-plan-shell { display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.28fr); gap: 18px; align-items: start; }
.worker-daily-plan { max-width: none; }
.attendance-task-gate { margin: 15px 0; padding: 12px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; border: 1px solid; border-radius: 8px; }
.attendance-task-gate > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 13px; font-weight: 900; }
.attendance-task-gate strong { font-size: 12px; }.attendance-task-gate p { margin: 3px 0 0; font-size: 11px; line-height: 1.4; }
.attendance-task-gate.is-ready { border-color: #b7dac1; color: #286a41; background: #eef8f1; }.attendance-task-gate.is-ready > span { background: #318752; }
.attendance-task-gate.is-blocked { border-color: #e6c3c3; color: #8d3d3d; background: #fff4f4; }.attendance-task-gate.is-blocked > span { background: #c75b5b; }
.carry-plan-banner { padding: 10px 12px; border: 1px solid #e5d19d; border-radius: 7px; color: #765a20; background: #fff9e9; font-size: 11px; line-height: 1.45; }
.daily-start-record { padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; border-radius: 7px; background: #f4f7f5; }
.daily-start-record span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }.daily-start-record strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 16px; }.daily-start-record small { color: var(--muted); font-size: 11px; }
.start-daily-plan-button { width: 100%; margin-bottom: 14px; }
.worker-task-progress { margin: 15px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.worker-task-progress li { padding: 10px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid #e0e7e3; border-radius: 7px; background: #fafcfb; }
.worker-task-progress li.current { border-color: #72af84; background: #f0f8f2; box-shadow: 0 0 0 2px rgba(56,139,82,.07); }
.worker-task-progress li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #4e6357; background: #e9eeeb; font-size: 11px; font-weight: 900; }
.worker-task-progress li.current > span { color: white; background: var(--green-dark); }
.worker-task-progress li > div { min-width: 0; display: grid; gap: 3px; }.worker-task-progress strong { font-size: 12px; }.worker-task-progress small { color: var(--muted); font-size: 11px; }
.worker-task-progress em { color: #718078; font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }.worker-task-progress .task-progress-submitted em,.worker-task-progress .task-progress-approved em { color: #2d7848; }
.current-task-card { max-width: none; }
.current-task-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid #e5ebe7; }
.current-task-heading h2 { margin: 7px 0 5px; font-size: 19px; }.current-task-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.current-task-heading > strong { color: #24683d; font-size: 20px; white-space: nowrap; }
.current-task-card > label,.task-worker-fields label { margin-top: 14px; display: grid; gap: 6px; color: #506159; font-size: 12px; font-weight: 800; }
.current-task-card select,.current-task-card input,.current-task-card textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d6deda; border-radius: 5px; color: var(--ink); background: white; }
.current-task-card textarea { min-height: 75px; resize: vertical; }
.task-worker-fields { display: grid; grid-template-columns: 1.4fr .6fr; gap: 10px; }
.task-requirements { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-requirements div { padding: 10px; border-radius: 7px; background: #f6f9f7; }.task-requirements dt { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }.task-requirements dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; }
.task-evidence-picker { padding: 12px; border: 1px dashed #bfd5c6; border-radius: 8px; background: #f7fbf8; }
.task-main-action { width: 100%; margin-top: 15px; }
.task-time-status { width: max-content; padding: 5px 8px; display: inline-block; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.status-in_progress { color: #276e43; background: #e8f6ec; }.status-nearly_up { color: #7a5a13; background: #fff4ce; }.status-over_allocated { color: #963e3e; background: #ffe8e8; }
.task-live-time { min-width: 125px; display: grid; gap: 3px; text-align: right; }.task-live-time strong { color: #285f3c; font-size: 28px; font-variant-numeric: tabular-nums; }.task-live-time small { color: var(--muted); font-size: 11px; }
.selected-task-option { margin: 13px 0 0; padding: 10px; border-radius: 7px; color: #385346; background: #f3f7f4; font-size: 12px; }
.task-execution-actions { margin-top: 16px; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; }.task-execution-actions button:last-child { justify-self: end; min-width: 170px; }
.paused-task-card { border-color: #dbc98f; background: #fffdf6; }
.task-start-instruction { grid-column: 2; }.task-start-instruction p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.task-day-complete { text-align: center; padding: 35px; }.task-day-complete > span { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: white; background: #318752; font-size: 21px; font-weight: 900; }.task-day-complete h2 { margin: 0 0 7px; }.task-day-complete p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .worker-plan-shell { grid-template-columns: 1fr; }
  .task-start-instruction { grid-column: auto; }
}
@media (max-width: 620px) {
  .current-task-heading { display: grid; }.current-task-heading > strong,.task-live-time { text-align: left; }
  .task-worker-fields,.task-requirements { grid-template-columns: 1fr; }
  .task-execution-actions { grid-template-columns: 1fr; }.task-execution-actions button,.task-execution-actions button:last-child { width: 100%; min-width: 0; justify-self: stretch; }
}

/* Shiftly v1.8 Day 4: plan progress, review results and task history */
.task-progress-summary { margin: 13px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.task-progress-summary span { min-width: 82px; padding: 8px 10px; display: grid; gap: 2px; border-radius: 7px; color: #516057; background: #f0f4f1; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.task-progress-summary strong { color: #2d5e3e; font-size: 15px; }
.task-progress-summary .summary-submitted { background: #fff5dc; }.task-progress-summary .summary-revision_required { color: #8a561e; background: #fff0df; }.task-progress-summary .summary-approved { color: #276b40; background: #eaf7ee; }.task-progress-summary .summary-rejected { color: #943e3e; background: #ffecec; }
.review-heading-actions { display: flex; gap: 9px; align-items: center; }.review-heading-actions .primary-button { min-height: 34px; padding: 0 12px; }
.worker-review-results,.task-activity-history { grid-column: 1 / -1; }
.worker-review-results > article { padding: 12px 0; border-top: 1px solid #e4ebe6; }.worker-review-results > article > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }.worker-review-results > article strong { font-size: 12.5px; }.worker-review-results > article p { margin: 7px 0 4px; color: #4e5e55; font-size: 11px; line-height: 1.5; }.worker-review-results > article small { color: var(--muted); font-size: 11px; }
.task-activity-history { padding: 0; overflow: hidden; }.task-activity-history summary { padding: 16px; cursor: pointer; color: #314b3a; font-size: 12.5px; font-weight: 900; }.task-activity-history[open] summary { border-bottom: 1px solid #e2e9e4; }
.task-history-list { padding: 9px 16px 16px; display: grid; }.task-history-list article { padding: 10px 0; display: grid; grid-template-columns: 10px 1fr; gap: 10px; border-bottom: 1px solid #edf1ee; }.task-history-list article:last-child { border-bottom: 0; }.task-history-list article > span { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: #3d995c; box-shadow: 0 0 0 3px #e7f4eb; }.task-history-list strong { font-size: 12px; }.task-history-list p { margin: 4px 0; color: #536159; font-size: 11px; line-height: 1.4; }.task-history-list small { color: var(--muted); font-size: 11px; }

@media (max-width: 620px) {
  .review-heading-actions { width: 100%; display: grid; }.review-heading-actions .primary-button { width: 100%; }
  .task-progress-summary span { flex: 1 1 82px; }
}

/* Shiftly v1.9 RC10: simplified Work Status and Emergency Leave workflow */
.emergency-leave-flow { margin-top: 18px; padding: 18px; border: 1px solid #e5e9e6; border-radius: 10px; background: #fbfcfb; }
.emergency-leave-heading > span { color: #a76420; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.emergency-leave-heading h2 { margin: 5px 0 4px; font-size: 17px; }
.emergency-leave-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.emergency-type-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.emergency-type-card { min-height: 72px; padding: 12px; display: grid; grid-template-columns: 34px minmax(0,1fr) 16px; gap: 10px; align-items: center; border: 1px solid #dce4df; border-radius: 8px; text-align: left; color: var(--ink); background: white; }
.emergency-type-card > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #9c5e1d; background: #fff0dc; font-size: 12.5px; font-weight: 900; }
.emergency-type-card > div { min-width: 0; display: grid; gap: 3px; }.emergency-type-card strong { font-size: 12.5px; }.emergency-type-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.emergency-type-card > i { width: 14px; height: 14px; border: 2px solid #c8d3cd; border-radius: 50%; }
.emergency-type-card.selected { border-color: #e19a4c; box-shadow: 0 0 0 3px rgba(225,154,76,.1); }.emergency-type-card.selected > i { border: 4px solid #d88835; }
.emergency-detail-card { margin-top: 12px; padding: 14px; border: 1px solid #eadfd1; border-radius: 8px; background: #fffdf9; }
.emergency-file-picker { display: grid; gap: 6px; color: #4e5d55; font-size: 12px; }.emergency-file-picker strong { font-size: 12.5px; }.emergency-file-picker small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.emergency-file-picker input { width: 100%; min-height: 42px; padding: 7px; border: 1px solid #d8dfdb; border-radius: 6px; background: white; font-size: 11px; }
.emergency-file-picker > span { color: #6d552f; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }.emergency-file-picker.optional { margin-top: 13px; padding-top: 12px; border-top: 1px solid #eee5da; }
.note-field.compact { margin-top: 13px; font-size: 12px; }.note-field.compact textarea { min-height: 68px; background: white; }
.emergency-rule-note { margin: 13px 0 0; padding: 10px 11px; border-left: 3px solid #dda052; border-radius: 4px; color: #6b573c; background: #fff7e9; font-size: 11px; line-height: 1.55; }
.continue-button:disabled { opacity: .5; cursor: not-allowed; }
.emergency-review-panel { margin: 16px 0; }.emergency-review-panel.compact { padding-bottom: 15px; }
.emergency-review-list { display: grid; gap: 10px; }
.emergency-review-item { padding: 13px; border: 1px solid #e1e8e3; border-radius: 8px; background: #fbfdfc; }
.emergency-review-item.status-pending { border-color: #e7d2aa; background: #fffaf0; }.emergency-review-item.status-approved { border-color: #cde3d3; background: #f5fbf7; }.emergency-review-item.status-rejected { border-color: #ead0d0; background: #fff7f7; }
.emergency-review-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }.emergency-review-title > div { display: grid; gap: 3px; }.emergency-review-title strong { font-size: 12.5px; }.emergency-review-title small { color: var(--muted); font-size: 11px; }
.emergency-review-title > span { padding: 5px 7px; border-radius: 999px; color: #835b23; background: #fff0d5; font-size: 10px; font-weight: 900; }
.emergency-review-item.status-approved .emergency-review-title > span { color: #2b7044; background: #e6f5ea; }.emergency-review-item.status-rejected .emergency-review-title > span { color: #923f3f; background: #fde7e7; }
.emergency-review-item > p { margin: 9px 0; color: #4f5e56; font-size: 11px; line-height: 1.5; }.emergency-review-item > .secondary-button { min-height: 32px; padding: 0 11px; font-size: 11px; }
.emergency-review-actions { margin-top: 10px; display: flex; gap: 8px; }.emergency-review-actions button { min-height: 34px; padding: 0 13px; border-radius: 5px; font-size: 11px; font-weight: 900; }
.emergency-reviewed-note { margin-top: 9px; display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
@media (max-width: 620px) { .emergency-type-grid { grid-template-columns: 1fr; }.emergency-review-title { display: grid; }.emergency-review-title > span { width: max-content; }.emergency-review-actions { display: grid; grid-template-columns: 1fr 1fr; } }

/* RC11: friendlier start-of-day and check-in flow */
.start-day-panel {
  max-width: 530px;
  margin: 34px auto 0;
  padding: 42px 36px 38px;
  border: 1px solid #dfe6e2;
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 32px rgba(30, 55, 44, .05);
  text-align: center;
}
.start-day-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2f9c50;
  background: #eaf7ed;
  font-size: 31px;
  font-weight: 800;
}
.start-day-panel h1 {
  margin: 14px 0 8px;
  color: #203029;
  font-size: 29px;
  letter-spacing: -.035em;
}
.start-day-panel > p:not(.date-pill) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.start-day-button {
  width: min(100%, 300px);
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}
.start-day-button span { font-size: 18px; }

.location-panel.is-verified {
  border-color: #c8e6d1;
  background: #f5fbf7;
}
.clock-panel strong {
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.check-in-helper {
  margin: 12px 0 0;
  color: #2f7f48;
  text-align: center;
  font-size: 12.5px;
}

@media (max-width: 700px) {
  .start-day-panel {
    margin-top: 24px;
    padding: 34px 20px 30px;
  }
  .start-day-panel h1 { font-size: 25px; }
}

/* Shiftly RC13: Apply Leave, responsive navigation and sticky page context */
:root { --shiftly-global-header-height: 117px; }
.global-sticky-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 46, 35, .04);
}
.global-sticky-header .topbar { position: relative; z-index: 2; }
.global-sticky-header .suite-tabbar { position: relative; z-index: 1; background: #fafcfb; }

.sticky-view-heading,
.view-sticky-context {
  position: sticky;
  top: calc(var(--shiftly-global-header-height) + 8px);
  z-index: 120;
  background: rgba(250, 252, 251, .98);
  backdrop-filter: blur(8px);
}
.sticky-view-heading {
  margin-top: -8px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(225, 232, 228, .9);
}
.view-sticky-context {
  margin: -8px 0 14px;
  padding: 10px 0 2px;
  border-bottom: 1px solid rgba(225, 232, 228, .9);
}
.view-sticky-context .section-heading { margin-bottom: 16px; }
.history-sticky-context .history-selector,
.history-sticky-context .worked-days-self { margin-bottom: 12px; }
.leave-review-stack { display: grid; gap: 10px; }
.leave-review-stack .emergency-review-panel { margin: 0; }
.history-sticky-context { max-height: calc(100vh - var(--shiftly-global-header-height) - 24px); overflow: auto; scrollbar-width: thin; }

.documents-sticky-tabs {
  position: sticky;
  top: calc(var(--shiftly-global-header-height) + 8px);
  z-index: 135;
  background: #edf2ef;
}
.sticky-document-heading {
  position: sticky;
  top: calc(var(--shiftly-global-header-height) + 62px);
  z-index: 130;
  margin-top: 0;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(225, 232, 228, .9);
  background: rgba(250, 252, 251, .98);
  backdrop-filter: blur(8px);
}
.task-sticky-context .task-planner-tabs { margin-bottom: 10px; }

/* Apply Leave replaces the separate Annual Leave and Emergency Leave cards. */
.leave-application-flow {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  background: #fbfdfc;
}
.leave-application-heading > span { color: #2d7a49; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.leave-application-heading h2 { margin: 5px 0 4px; font-size: 17px; }
.leave-application-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.leave-calendar { margin-top: 14px; padding: 14px; border: 1px solid #e0e7e3; border-radius: 9px; background: #fff; }
.leave-calendar-toolbar { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; text-align: center; }
.leave-calendar-toolbar strong { font-size: 13px; }
.leave-calendar-toolbar button { width: 36px; height: 34px; border: 1px solid #d7e1db; border-radius: 6px; color: #2f7448; background: #f7fbf8; font-weight: 900; }
.leave-calendar-weekdays,
.leave-calendar-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.leave-calendar-weekdays span { color: #7b8881; text-align: center; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.leave-calendar-empty { min-height: 42px; }
.leave-calendar-day { min-height: 44px; padding: 4px; position: relative; display: grid; place-items: center; gap: 1px; border: 1px solid #e2e8e5; border-radius: 7px; color: #425149; background: #fff; }
.leave-calendar-day strong { font-size: 12.5px; }
.leave-calendar-day small { position: absolute; right: 4px; bottom: 3px; color: #356dcf; font-size: 10px; font-weight: 900; }
.leave-calendar-day:hover:not(:disabled) { border-color: #80bd91; background: #f4faf6; }
.leave-calendar-day.selected { border-color: var(--green); color: #1f7440; background: #eaf7ee; box-shadow: 0 0 0 2px rgba(79,183,97,.12); }
.leave-calendar-day:disabled { color: #bcc5c0; background: #f5f7f6; cursor: not-allowed; }
.leave-calendar-key { margin: 11px 0 0; color: #627169; font-size: 11px; line-height: 1.5; }
.leave-calendar-key > span { margin-right: 4px; padding: 2px 4px; border-radius: 4px; color: #356dcf; background: #eaf1ff; font-weight: 900; }
.selected-leave-date { margin: 12px 0 0; padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 7px; color: #41604f; background: #edf7f0; }
.selected-leave-date span { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.selected-leave-date strong { font-size: 12.5px; }
.leave-type-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.leave-type-card { min-height: 76px; padding: 12px; display: grid; grid-template-columns: 40px minmax(0,1fr) 16px; gap: 10px; align-items: center; border: 1px solid #dce4df; border-radius: 8px; text-align: left; color: var(--ink); background: white; }
.leave-type-card > div { min-width: 0; display: grid; gap: 3px; }
.leave-type-card strong { font-size: 12.5px; }
.leave-type-card small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.leave-type-card > i { width: 14px; height: 14px; border: 2px solid #c8d3cd; border-radius: 50%; }
.leave-type-card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,183,97,.09); }
.leave-type-card.selected > i { border: 4px solid var(--green); }
.leave-type-card:disabled { opacity: .48; cursor: not-allowed; background: #f5f7f6; }
.annual-leave-rule { margin: 10px 0 0; padding: 10px 11px; border-left: 3px solid #d8a33c; border-radius: 4px; color: #6f592d; background: #fff8e8; font-size: 11px; line-height: 1.55; }
.leave-date-prompt { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.leave-reason-field { margin-top: 12px; }
.nested-leave-flow { margin-top: 12px; background: #fffdf9; }

/* Full-width navigation remains one row. Narrower windows and phones use two rows, with no sideways scroll. */
@media (max-width: 1100px) {
  :root { --shiftly-global-header-height: 169px; }
  .suite-tabbar {
    width: min(100%, calc(100% - 20px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    scrollbar-width: none;
  }
  .suite-tabbar button {
    min-width: 0;
    min-height: 52px;
    padding: 6px 4px;
    white-space: normal;
    line-height: 1.15;
  }
}

@media (max-width: 760px) {
  :root { --shiftly-global-header-height: 163px; }
  .suite-tabbar { width: 100%; }
  .suite-tabbar button { min-height: 51px; padding: 5px 2px; font-size: 11px; }
  .suite-tabbar button span { font-size: 13px; }
  .nav-count-badge { min-width: 16px; height: 16px; margin-left: 2px; padding: 0 4px; font-size: 10px; }
  .leave-type-grid { grid-template-columns: 1fr; }
  .leave-calendar { padding: 10px 8px; }
  .leave-calendar-weekdays, .leave-calendar-grid { gap: 3px; }
  .leave-calendar-day { min-height: 39px; }
  /* Keep global navigation frozen on phones, but let large page-specific blocks scroll normally. */
  .sticky-view-heading, .view-sticky-context, .documents-sticky-tabs, .sticky-document-heading { position: static; }
  .history-sticky-context { max-height: none; overflow: visible; }
}


/* Shiftly RC15: compact adaptive Work Status / Apply Leave layout */
.status-section { max-width: 940px; }
.status-layout { display: grid; gap: 12px; }
.status-choice-stack { display: grid; gap: 12px; align-content: start; }
.status-leave-detail:empty { display: none; }
.status-leave-detail .leave-application-flow { margin-top: 0; }

/* Wide desktop: keep the three status cards together as one compact stack beside the leave panel. */
@media (min-width: 901px) {
  .status-layout:not(.has-leave-detail) .status-choice-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .status-layout.has-leave-detail {
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .status-layout.has-leave-detail .status-choice-stack {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .status-layout.has-leave-detail .status-card { min-height: 88px; }
  .status-layout.has-leave-detail > .status-leave-detail { min-width: 0; }
  .status-layout.has-leave-detail .leave-application-flow {
    padding: 20px;
    box-shadow: 0 10px 28px rgba(30, 55, 44, .045);
  }
  .status-layout.has-leave-detail .leave-calendar-day { min-height: 48px; }
}

/* Split-screen, tablet and mobile: unwrap the stack so Apply Leave details sit directly below Apply Leave. */
@media (max-width: 900px) {
  .status-section { max-width: 760px; }
  .status-layout { grid-template-columns: 1fr; }
  .status-choice-stack { display: contents; }
  .status-layout [data-status="WORKING"] { order: 1; }
  .status-layout [data-status="LEAVE"] { order: 2; }
  .status-layout > .status-leave-detail { order: 3; }
  .status-layout [data-status="OUTSTATION"] { order: 4; }
  .status-leave-detail .leave-application-flow { margin-top: 0; }
}

/* Shiftly RC16: Outstation check-in, Supervisor approval and notification workflow */
.outstation-application-flow {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #efd0d0;
  border-radius: 10px;
  background: #fffdfd;
  box-shadow: 0 10px 28px rgba(92, 38, 38, .045);
}
.outstation-application-flow .eyebrow { color: #b13b3b; }
.outstation-application-flow h2 { margin: 0; color: #222b26; font-size: 19px; }
.outstation-application-flow > p { margin: -6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.outstation-requirements {
  margin: 0;
  padding: 12px 14px 12px 30px;
  border: 1px solid #f0dddd;
  border-radius: 8px;
  color: #5d4b4b;
  background: #fff8f8;
  font-size: 11px;
  line-height: 1.55;
}
.outstation-requirements li + li { margin-top: 4px; }
.outstation-location-box {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e1d8d8;
  border-radius: 8px;
  background: #fff;
}
.outstation-location-box > div { min-width: 0; display: grid; gap: 4px; }
.outstation-location-box strong { color: #303a34; font-size: 12.5px; }
.outstation-location-box small { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.outstation-location-box button,
.outstation-review-links a {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7bcbc;
  border-radius: 6px;
  color: #8f3737;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.outstation-location-box.captured { border-color: #cce1d2; background: #f7fbf8; }
.outstation-location-box.captured strong { color: #287244; }
.outstation-location-box.captured button { border-color: #bfd7c6; color: #287244; }
.outstation-photo-picker {
  padding: 12px;
  border: 1px dashed #dfc5c5;
  border-radius: 8px;
  background: #fffafa;
}
.outstation-photo-picker > span { color: #8f3737; }
.outstation-checkin-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #cf3f3f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 7px 18px rgba(164, 49, 49, .16);
  cursor: pointer;
}
.outstation-checkin-button:hover:not(:disabled) { background: #b93636; }
.outstation-checkin-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.outstation-red-note { margin: -5px 0 0 !important; color: #8a5454 !important; text-align: center; font-size: 11px !important; }
.outstation-attendance .attendance-card { border-top: 3px solid #cf3f3f; }
.work-badge.outstation-pending { color: #8b5c20; background: #fff0d8; }
.work-badge.outstation-rejected { color: #9a3636; background: #fde8e8; }
.work-badge.outstation-approved { color: #267144; background: #e6f5ea; }
.outstation-pending-hero {
  margin-top: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #ead6b3;
  border-radius: 8px;
  background: #fffaf1;
}
.outstation-pending-hero > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ce8b33;
  font-size: 17px;
  font-weight: 900;
}
.outstation-pending-hero strong { font-size: 12.5px; }
.outstation-pending-hero p { margin: 4px 0 0; color: #6d6253; font-size: 11px; line-height: 1.5; }
.outstation-pending-hero.rejected { border-color: #efcaca; background: #fff6f6; }
.outstation-pending-hero.rejected > span { background: #cf3f3f; }
.outstation-pending-hero.rejected p { color: #795050; }
.outstation-proof-summary {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.outstation-proof-summary span,
.outstation-review-facts span {
  padding: 8px 9px;
  border: 1px solid #e3e9e5;
  border-radius: 6px;
  color: #5d6a63;
  background: #f9fbfa;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.outstation-location-approved { border-color: #cbe1d1; background: #f6fbf7; }
.outstation-review-panel { border-top: 3px solid #cf3f3f; }
.outstation-review-badge { color: #943d3d; background: #fde9e9; }
.outstation-review-facts { margin: 9px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.outstation-review-facts span { padding: 6px 8px; }
.outstation-review-links { margin-top: 8px; }
.outstation-review-links a { min-height: 31px; border-color: #d6dfda; color: #38644a; }
.outstation-review-links button { min-height: 31px; }
.outstation-review-actions .approve-action { border: 1px solid #bcd9c5; color: #267144; background: #edf8f0; }
.outstation-review-actions .reject-action { border: 1px solid #e7bcbc; color: #9b3737; background: #fff0f0; }
.alert-count-badge { background: #cf3f3f !important; }

@media (min-width: 901px) {
  .status-layout.has-leave-detail .outstation-application-flow { padding: 20px; }
}

@media (max-width: 900px) {
  /* Leave details stay between Apply Leave and Outstation. Outstation details stay below Outstation. */
  .status-layout.has-outstation-detail [data-status="OUTSTATION"] { order: 3; }
  .status-layout.has-outstation-detail > .status-leave-detail { order: 4; }
}

@media (max-width: 620px) {
  .outstation-application-flow { padding: 15px 13px; }
  .outstation-location-box { grid-template-columns: 1fr; }
  .outstation-location-box button { width: 100%; }
  .outstation-proof-summary { grid-template-columns: 1fr; }
  .outstation-review-facts { display: grid; grid-template-columns: 1fr; }
  .outstation-review-links { display: grid; grid-template-columns: 1fr 1fr; }
}


/* Shiftly RC19: polished Outstation guidance steps */
.outstation-application-heading { display: grid; gap: 5px; }
.outstation-application-heading > span { color: #b13b3b; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.outstation-application-heading h2 { margin: 0; color: #222b26; font-size: 19px; line-height: 1.25; }
.outstation-application-heading p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 11px; line-height: 1.55; }
.outstation-requirement-list { display: grid; gap: 8px; margin: 2px 0; }
.outstation-requirement-item { min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: 28px 30px minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid #e8ece9; border-radius: 8px; background: #fff; }
.outstation-step-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #b13b3b; font-size: 11px; font-weight: 900; }
.outstation-step-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #fff3f3; font-size: 15px; line-height: 1; }
.outstation-requirement-item > div { min-width: 0; display: grid; gap: 3px; }
.outstation-requirement-item strong { color: #28322c; font-size: 12px; line-height: 1.3; }
.outstation-requirement-item small { color: #66736c; font-size: 11px; line-height: 1.45; }
@media (max-width: 620px) {
  .outstation-application-heading h2 { font-size: 17px; }
  .outstation-requirement-item { grid-template-columns: 26px 28px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .outstation-step-number { width: 24px; height: 24px; }
  .outstation-step-icon { width: 28px; height: 28px; font-size: 14px; }
}

/* RC17 temporary primary-admin self-test attendance removal */
.history-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.history-row-actions .record-edit-actions { margin: 0; }
.history-test-remove { min-height: 31px; padding: 0 10px; border: 1px solid #dfabab; border-radius: 5px; background: #fff7f7; color: #9b3030; font-size: 11px; font-weight: 800; cursor: pointer; }
.history-test-remove:hover { border-color: #c96f6f; background: #ffeded; }

/* Shiftly RC18: History sticky boundary stops after employee selector / worked-days summary. */
.history-scroll-review-stack { margin: 0 0 14px; }


/* Shiftly RC21: profile dropdown visible and usable on phones / narrow screens.
   Freeze/sticky page behavior intentionally unchanged. */
.profile-menu { z-index: 700; flex: 0 0 auto; }
.profile-dropdown { z-index: 900; }
@media (max-width: 760px) {
  .topbar { overflow: visible; }
  .brand-stack { min-width: 0; flex: 1 1 auto; }
  .employee-chip.profile-menu { display: flex !important; flex: 0 0 auto; min-width: 0; }
  .profile-menu-toggle { max-width: min(52vw, 190px); min-height: 40px; }
  .profile-summary { min-width: 0; }
  .profile-summary strong { display: block; max-width: 105px; }
  .profile-dropdown {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: auto;
    width: min(190px, calc(100vw - 24px));
    min-width: 160px;
  }
}
@media (max-width: 430px) {
  .topbar { padding-left: 10px; padding-right: 10px; }
  .profile-menu-toggle { max-width: 48vw; gap: 6px; padding: 4px 6px 4px 4px; }
  .profile-menu-toggle .avatar { width: 32px; height: 32px; flex: 0 0 32px; }
  .profile-summary strong { max-width: 84px; font-size: 12px; }
  .profile-caret { flex: 0 0 auto; }
}

/* RC22: friendly end-of-day Check Out experience */
.checkout-celebration-card {
  width: 72%;
  margin: 14px auto 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid #f0d9b0;
  border-radius: 9px;
  background: #fffaf1;
}
.checkout-celebration-copy {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.checkout-celebration-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1d7;
  font-size: 20px;
}
.checkout-celebration-copy strong {
  display: block;
  color: #3f4e46;
  font-size: 15px;
}
.checkout-celebration-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.checkout-celebration-button.check-button {
  width: 100%;
  margin: 0;
}
@media (max-width: 760px) {
  .checkout-celebration-card { width: 100%; padding: 13px; }
  .checkout-celebration-copy strong { font-size: 14px; }
}

/* Shiftly RC23: employee asset handover and custody board */
.asset-custody-board {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.asset-board-column {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe6e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30,55,44,.04);
}
.asset-board-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.asset-board-title > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.asset-board-title h2 { margin: 0; font-size: 14px; line-height: 1.2; }
.asset-board-title > small { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #47705a; background: #eef5f0; font-size: 11px; font-weight: 800; }
.asset-board-step { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-dark); font-size: 11px; font-weight: 900; }
.asset-board-help { min-height: 31px; margin: 8px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.asset-board-list { display: grid; gap: 9px; }
.asset-board-empty { min-height: 116px; padding: 18px 13px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed #d7e1db; border-radius: 9px; color: #76837c; background: #fafcfb; text-align: center; }
.asset-board-empty strong { color: #58675f; font-size: 12px; }
.asset-board-empty span { max-width: 28ch; font-size: 11px; line-height: 1.45; }
.asset-custody-card,.asset-pending-card,.asset-inuse-card { min-width: 0; border: 1px solid #e0e7e3; border-radius: 9px; background: #fbfdfc; overflow: hidden; }
.asset-custody-card.selected { border-color: #8bc59b; box-shadow: 0 0 0 2px rgba(79,183,97,.08); }
.asset-custody-card.handover-active { border-color: #e1c88f; background: #fffdf7; }
.asset-card-select { width: 100%; min-width: 0; padding: 12px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 0; color: inherit; background: transparent; text-align: left; }
.asset-card-select:disabled { opacity: 1; cursor: default; }
.asset-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #edf6ef; font-size: 16px; }
.asset-card-main { min-width: 0; display: grid; gap: 4px; }
.asset-card-main strong { font-size: 12px; overflow-wrap: anywhere; }
.asset-card-main small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.asset-card-chevron { color: #6c7b73; font-size: 16px; font-weight: 800; }
.asset-custody-card.handover-active .asset-card-chevron { padding: 4px 6px; border-radius: 999px; color: #7b6024; background: #fff2cf; font-size: 10px; }
.asset-card-active-note { margin: 0 10px 10px; padding: 8px 9px; display: grid; gap: 3px; border-radius: 7px; color: #735a25; background: #fff5dc; }
.asset-card-active-note strong { font-size: 11px; }
.asset-card-active-note span { font-size: 11px; line-height: 1.4; }
.asset-handover-inline-form,.asset-completion-form { margin: 0 10px 10px; padding: 10px; display: grid; gap: 9px; border-top: 1px solid #e4eae6; background: #fff; }
.asset-handover-inline-form label,.asset-completion-form label { display: grid; gap: 5px; color: #506159; font-size: 11px; font-weight: 800; }
.asset-handover-inline-form select,.asset-handover-inline-form input,.asset-handover-inline-form textarea,.asset-completion-form textarea { width: 100%; min-height: 36px; padding: 8px 9px; border: 1px solid #d7e0db; border-radius: 6px; outline: none; background: #fff; font-size: 11px; }
.asset-handover-inline-form textarea,.asset-completion-form textarea { min-height: 64px; resize: vertical; }
.asset-handover-inline-form select:focus,.asset-handover-inline-form input:focus,.asset-handover-inline-form textarea:focus,.asset-completion-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(79,183,97,.08); }
.asset-handover-inline-form label small { color: var(--muted); font-weight: 500; }
.asset-handover-form-actions,.asset-request-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 7px; }
.asset-handover-form-actions button,.asset-request-actions button,.asset-inuse-card > button,.asset-complete-open { min-height: 35px; }
.asset-pending-card,.asset-inuse-card { padding: 11px; }
.asset-pending-card.incoming { border-left: 3px solid #4fb761; }
.asset-pending-card.outgoing { border-left: 3px solid #d8ad51; }
.asset-pending-heading { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.asset-pending-heading > div { min-width: 0; display: grid; gap: 4px; }
.asset-pending-heading strong,.asset-inuse-top strong { font-size: 12px; overflow-wrap: anywhere; }
.asset-status-pill { max-width: 112px; padding: 5px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; line-height: 1.25; text-align: center; }
.asset-status-pill.pending { color: #795c20; background: #fff3d6; }
.asset-status-pill.accepted { color: #2a7145; background: #e8f6ec; }
.asset-handover-meta { margin: 10px 0; display: grid; gap: 6px; }
.asset-handover-meta div { min-width: 0; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 8px; }
.asset-handover-meta dt { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.asset-handover-meta dd { min-width: 0; margin: 0; color: #3e4c44; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.asset-date-note { margin: 8px 0 0; padding: 8px; border-radius: 6px; color: #5f6f66; background: #f2f7f4; font-size: 11px; line-height: 1.45; }
.asset-complete-open { width: 100%; margin-top: 8px; }
.required-mark { margin-left: 5px; color: #a23838; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.asset-completion-form { margin: 10px 0 0; padding: 10px 0 0; }
.asset-completion-form .emergency-file-picker { margin: 0; }
.asset-completion-form .emergency-file-picker strong { color: #506159; font-size: 11px; }
.asset-inuse-top { display: flex; gap: 9px; align-items: center; }
.asset-inuse-top > div { min-width: 0; display: grid; gap: 4px; }
.asset-inuse-card > button { width: 100%; margin-top: 4px; }
.danger-outline { border-color: #e4bcbc !important; color: #9b3c3c !important; background: #fff8f8 !important; }
.asset-admin-tools { margin-top: 18px; }

@media (max-width: 900px) {
  .asset-custody-board { grid-template-columns: 1fr; }
  .asset-board-help { min-height: 0; }
  .asset-board-column { padding: 14px; }
}
@media (max-width: 520px) {
  .asset-board-column { padding: 12px; }
  .asset-card-select { grid-template-columns: 32px minmax(0,1fr) auto; padding: 10px; }
  .asset-card-icon { width: 32px; height: 32px; }
  .asset-handover-form-actions,.asset-request-actions { grid-template-columns: 1fr; }
  .asset-pending-heading { flex-direction: column; }
  .asset-status-pill { max-width: none; }
  .asset-handover-meta div { grid-template-columns: 68px minmax(0,1fr); }
}

/* RC24 temporary test asset cleanup */
.asset-test-remove-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #efc3c3;
  border-radius: 8px;
  background: #fff8f8;
  color: #7f3a3a;
  font-size: 11px;
  line-height: 1.5;
}
.asset-test-remove-note strong { font-weight: 900; }

/* RC25: Improve dropdown readability across Shiftly.
   Keep all native/select dropdown text consistently two pixels larger. */
select,
select option {
  font-family: inherit;
  font-size: 13px !important;
}

/* RC26: Asset assignment / handover notifications */
.asset-action-banner { border-color: #b9d8c3; background: linear-gradient(90deg,#eef8f1,#fbfdfb); }
.asset-action-icon { background: #dff1e4; color: #237a43; }

/* RC27 - Main Office -> Outstation transition */
.switch-outstation-button {
  width: 100%;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #b9d8c5;
  border-radius: 10px;
  background: #f5fbf7;
  color: #245c3a;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.switch-outstation-button > span:first-child { font-size: 19px; }
.switch-outstation-button strong { display:block; font-size: 13px; }
.switch-outstation-button small { display:block; margin-top:3px; color:var(--muted); font-size: 11px; font-weight:600; }
.switch-outstation-button:hover { background:#edf8f0; border-color:#86bf99; }
.switch-outstation-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #c8ded0;
  border-radius: 11px;
  background: #fbfefc;
  display: grid;
  gap: 12px;
}
.switch-outstation-heading { display:grid; gap:5px; }
.switch-outstation-heading h2 { margin:0; font-size:18px; color:#202923; }
.switch-outstation-heading p { margin:0; color:var(--muted); font-size: 12px; line-height:1.55; }
.switch-outstation-reminder {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:11px 12px;
  border-radius:9px;
  background:#eef8f1;
  color:#2b6a42;
}
.switch-outstation-reminder > span { font-size:18px; line-height:1; }
.switch-outstation-reminder strong { display:block; font-size: 12.5px; }
.switch-outstation-reminder small { display:block; margin-top:3px; color:#617268; font-size: 11px; line-height:1.45; }
.switch-outstation-actions { display:grid; grid-template-columns: .7fr 1.3fr; gap:8px; }
.switch-outstation-note { margin:0; color:var(--muted); font-size: 11px; line-height:1.5; }
.switch-outstation-status {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.switch-outstation-status.pending { background:#fff8e8; border:1px solid #ead49d; }
.switch-outstation-status.rejected { background:#fff0f0; border:1px solid #e7b6b6; }
.switch-outstation-status > span { font-size:17px; }
.switch-outstation-status strong { display:block; font-size: 12px; }
.switch-outstation-status p { margin:3px 0 0; color:var(--muted); font-size: 11px; line-height:1.45; }
.switch-outstation-status button { white-space:nowrap; }

@media (max-width: 760px) {
  .switch-outstation-panel { padding:13px; }
  .switch-outstation-actions { grid-template-columns:1fr; }
  .switch-outstation-status { grid-template-columns:auto 1fr; }
  .switch-outstation-status button { grid-column:1 / -1; width:100%; }
}

/* RC28: Brighter Action Required styling for Asset notifications */
.asset-action-banner {
  position: relative;
  border: 2px solid #e3a329;
  border-left-width: 6px;
  background: linear-gradient(90deg, #fff2bf 0%, #fff8dc 55%, #fffdf3 100%);
  color: #6d4700;
  box-shadow: 0 10px 28px rgba(180, 118, 0, .16);
}
.asset-action-icon {
  background: #ffd666;
  color: #7a4d00;
  box-shadow: 0 0 0 4px rgba(255, 214, 102, .28);
}
.asset-action-banner > div strong {
  color: #5c3b00;
}
.asset-action-banner > div strong::before {
  content: "ACTION REQUIRED";
  width: max-content;
  margin: 0 0 5px;
  padding: 3px 7px;
  display: block;
  border-radius: 999px;
  color: #713f00;
  background: #ffd563;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.2;
}
.asset-action-banner p {
  color: #745c2d;
}
.asset-action-banner .task-assignment-open {
  border-color: #238548;
  color: white;
  background: #278f4c;
  box-shadow: 0 4px 12px rgba(39, 143, 76, .18);
}
.asset-action-banner .task-assignment-open:hover {
  border-color: #1f773f;
  background: #237f45;
}
.suite-tabbar button[data-view="assets"] .nav-count-badge {
  background: #e59a1f;
  box-shadow: 0 0 0 3px #fff0cb;
}

/* RC29: workplace edit controls */
.workplace-row-actions{display:flex;align-items:center;gap:6px;justify-self:end}.workplace-form-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workplace-form-heading>div{min-width:0}.workplace-form-heading .subtle-note{margin:2px 0 0}.workplace-form-heading>.secondary-button{flex:0 0 auto}@media(max-width:760px){.workplace-row-actions{grid-column:1/-1;justify-self:start}.workplace-form-heading{align-items:stretch;flex-direction:column}.workplace-form-heading>.secondary-button{align-self:flex-start}}

/* RC31: monthly all-employee attendance export */
.history-export-card {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-color: #cfe2d5;
  background: linear-gradient(135deg,#fbfefc,#f3faf5);
}
.history-export-copy { min-width: 0; }
.history-export-copy h2 { margin: 4px 0 5px; font-size: 15px; color: #253b30; }
.history-export-copy p { margin: 0; max-width: 610px; color: #647169; font-size: 11px; line-height: 1.55; }
.history-export-controls { display: flex; align-items: end; gap: 9px; flex: 0 0 auto; }
.history-export-controls label { display: grid; gap: 5px; color: #536259; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.history-export-controls input[type="month"] { min-width: 156px; min-height: 39px; padding: 7px 9px; border: 1px solid #ccd9d1; border-radius: 6px; background: white; color: #263b30; font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; }
.history-export-controls .primary-button { min-height: 39px; white-space: nowrap; }

@media (max-width: 760px) {
  .history-export-card { align-items: stretch; flex-direction: column; gap: 14px; }
  .history-export-controls { align-items: stretch; flex-direction: column; }
  .history-export-controls input[type="month"], .history-export-controls .primary-button { width: 100%; min-width: 0; }
}

/* RC32: Supervisor Approval History */
.approval-history-card{margin:0 0 14px;border-color:#d9e3dd;background:#fff}.approval-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.approval-history-heading h2{margin:4px 0 5px;font-size:15px;color:#253b30}.approval-history-heading p{margin:0;max-width:620px;color:#647169;font-size: 11px;line-height:1.55}.approval-history-stats{display:flex;gap:8px;flex:0 0 auto}.approval-history-stats>span{min-width:74px;padding:8px 10px;display:grid;gap:2px;text-align:center;border-radius:8px}.approval-history-stats strong{font-size:15px}.approval-history-stats small{font-size: 10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.approval-history-stats .approved{color:#247044;background:#ebf8ef;border:1px solid #c8e5d1}.approval-history-stats .rejected{color:#914040;background:#fff0f0;border:1px solid #efcccc}.approval-history-filters{margin-top:14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:12px;border:1px solid #e4eae6;border-radius:8px;background:#f8fbf9}.approval-history-filters label{display:grid;gap:5px;color:#536259;font-size: 11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.approval-history-filters input,.approval-history-filters select{width:100%;min-height:39px;padding:7px 9px;border:1px solid #ccd9d1;border-radius:6px;background:#fff;color:#263b30;font:inherit;font-size: 12px;text-transform:none;letter-spacing:0}.approval-history-list{margin-top:12px;display:grid;gap:9px}.approval-history-item{padding:13px;border:1px solid #e1e8e3;border-radius:8px;background:#fbfdfc}.approval-history-item.status-approved{border-left:4px solid #2f9c50;background:#f7fcf8}.approval-history-item.status-rejected{border-left:4px solid #c65a5a;background:#fff8f8}.approval-history-item-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.approval-history-item-title>div{display:grid;gap:3px}.approval-history-item-title strong{font-size: 12.5px}.approval-history-item-title small{color:var(--muted);font-size: 11px}.approval-history-item-title>span{padding:5px 8px;border-radius:999px;font-size: 10px;font-weight:900;letter-spacing:.04em}.approval-history-item.status-approved .approval-history-item-title>span{color:#246b40;background:#dff3e5}.approval-history-item.status-rejected .approval-history-item-title>span{color:#8d3939;background:#fde5e5}.approval-history-times{margin-top:9px;display:flex;gap:16px;flex-wrap:wrap;color:#65736b;font-size: 11px}.approval-history-times span{display:flex;gap:5px}.approval-history-times b{color:#425249}.approval-history-item p{margin:8px 0 0;color:#4f5e56;font-size: 11px;line-height:1.5}.approval-history-item .secondary-button{margin-top:9px;min-height:32px;padding:0 11px;font-size: 11px}
@media(max-width:900px){.approval-history-filters{grid-template-columns:1fr 1fr}}@media(max-width:620px){.approval-history-heading{flex-direction:column}.approval-history-stats{width:100%}.approval-history-stats>span{flex:1}.approval-history-filters{grid-template-columns:1fr}.approval-history-item-title{display:grid}.approval-history-item-title>span{width:max-content}.approval-history-times{display:grid;gap:5px}}


/* RC37: alerts-style Supervisor Approval History */
.approval-history-feed-card{padding:16px 18px 18px;background:#fff;border-color:#d9e3dd}.approval-history-feed-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.approval-history-feed-head h2{margin:4px 0 4px;font-size:15px;color:#253b30}.approval-history-feed-head p{margin:0;color:#647169;font-size: 11px;line-height:1.5}.approval-history-stats.compact>span{min-width:66px;padding:7px 9px}.approval-history-stats.compact strong{font-size:14px}.approval-history-monthbar{margin-top:12px;display:flex;justify-content:flex-start;padding:10px 12px;border:1px solid #e5ebe7;border-radius:8px;background:#f8fbf9}.approval-history-monthbar label{display:flex;align-items:center;gap:9px;color:#536259;font-size: 11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.approval-history-monthbar input{min-width:160px;min-height:36px;padding:6px 9px;border:1px solid #ccd9d1;border-radius:6px;background:#fff;color:#263b30;font:inherit;font-size: 12px;text-transform:none;letter-spacing:0}.approval-history-feed{margin-top:12px;display:grid;gap:8px}.approval-feed-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;padding:12px 13px;border:1px solid #e1e8e3;border-radius:9px;background:#fff}.approval-feed-item.status-approved{border-left:4px solid #2f9c50}.approval-feed-item.status-rejected{border-left:4px solid #c65a5a}.approval-feed-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:15px;font-weight:900}.approval-feed-item.status-approved .approval-feed-icon{color:#237543;background:#e6f6eb}.approval-feed-item.status-rejected .approval-feed-icon{color:#994242;background:#fdeaea}.approval-feed-body{min-width:0}.approval-feed-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.approval-feed-title{display:grid;gap:2px;min-width:0}.approval-feed-title strong{font-size: 12.5px;color:#24382e}.approval-feed-title span{font-size: 11px;color:#68766e}.approval-decision-pill{flex:0 0 auto;padding:5px 8px;border-radius:999px;font-size: 10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.approval-decision-pill.approved{color:#246b40;background:#dff3e5}.approval-decision-pill.rejected{color:#8d3939;background:#fde5e5}.approval-feed-meta{margin-top:6px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#6a776f;font-size: 11px}.approval-feed-meta b{color:#44554b}.approval-feed-details{margin-top:8px}.approval-feed-details summary{width:max-content;cursor:pointer;color:#287a48;font-size: 11px;font-weight:900}.approval-feed-details-body{margin-top:8px;padding:9px 10px;border-radius:7px;background:#f8fbf9;border:1px solid #e7ece9}.approval-feed-details-body p{margin:0 0 7px;display:grid;gap:2px;color:#536158;font-size: 11px;line-height:1.45}.approval-feed-details-body p:last-of-type{margin-bottom:0}.approval-feed-details-body p strong{color:#3d4d44}.approval-feed-details-body .secondary-button{margin-top:8px;min-height:31px;padding:0 10px;font-size: 11px}.approval-feed-empty{padding:22px 14px;display:grid;gap:4px;text-align:center;border:1px dashed #d9e3dd;border-radius:9px;background:#fbfdfc;color:#68766e}.approval-feed-empty strong{font-size: 12px;color:#34483d}.approval-feed-empty span{font-size: 11px}
@media(max-width:620px){.approval-history-feed-card{padding:14px}.approval-history-feed-head{gap:12px;flex-direction:column}.approval-history-stats.compact{width:100%}.approval-history-stats.compact>span{flex:1}.approval-history-monthbar{padding:9px}.approval-history-monthbar label{width:100%;justify-content:space-between}.approval-history-monthbar input{min-width:0;width:66%}.approval-feed-item{grid-template-columns:30px minmax(0,1fr);gap:9px;padding:11px}.approval-feed-icon{width:27px;height:27px;font-size:13px}.approval-feed-topline{gap:8px}.approval-feed-title strong{font-size: 12px}.approval-feed-meta{display:grid;gap:3px}.approval-decision-pill{font-size: 10px;padding:4px 7px}}

/* RC39 - identity verification password fallback */
.identity-fallback-modal { width: min(520px,100%); }
.identity-fallback-form { margin-top: 18px; display: grid; gap: 14px; }
.identity-fallback-form > label { display: grid; gap: 7px; color: #506159; font-size: 12px; font-weight: 800; }
.identity-fallback-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d6deda; border-radius: 6px; outline: none; color: var(--ink); background: #fff; }
.identity-fallback-form input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(79,183,97,.1); }
.identity-fallback-message { margin: 0; padding: 10px 12px; border: 1px solid #efd59a; border-radius: 7px; color: #755616; background: #fff8e8; font-size: 11px; line-height: 1.5; }
.identity-fallback-actions { display: flex; justify-content: flex-end; gap: 9px; }
.identity-fallback-actions button { min-width: 135px; }
@media (max-width:760px) {
  .identity-fallback-actions { display: grid; grid-template-columns: 1fr; }
  .identity-fallback-actions button { width: 100%; min-width: 0; }
}

/* RC41: Excel + PDF monthly attendance export */
.history-export-buttons{display:flex;gap:8px;align-items:center}.history-export-buttons .primary-button,.history-export-buttons .secondary-button{min-height:39px;white-space:nowrap}
@media(max-width:760px){.history-export-buttons{display:grid;grid-template-columns:1fr 1fr}.history-export-buttons .primary-button,.history-export-buttons .secondary-button{width:100%;min-width:0}}
@media(max-width:460px){.history-export-buttons{grid-template-columns:1fr}}


/* RC42: polished monthly attendance export controls */
.history-export-card{
  padding:18px 20px;
  gap:28px;
  border:1px solid #cfe2d5;
  border-radius:10px;
  background:#fbfefc;
}
.history-export-copy{max-width:520px}
.history-export-copy .eyebrow{font-size: 11px;letter-spacing:.12em}
.history-export-copy h2{margin:5px 0 6px;font-size:16px;line-height:1.25;color:#22372c}
.history-export-copy p{font-size: 12px;line-height:1.5;color:#647169}
.history-export-controls{
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding:12px;
  border:1px solid #e0e8e3;
  border-radius:9px;
  background:#fff;
}
.history-export-month-field,
.history-export-action-group{display:grid;gap:6px}
.history-export-month-field>span,
.history-export-action-label{
  color:#596960;
  font-size: 11px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.history-export-controls .history-export-month-field input[type="month"]{
  width:168px;
  min-width:168px;
  min-height:42px;
  padding:8px 11px;
  border:1px solid #cdd8d1;
  border-radius:7px;
  background:#fff;
  color:#263b30;
  font-size: 12.5px;
  font-weight:700;
}
.history-export-buttons{display:flex;gap:8px;align-items:center}
.history-export-button{
  min-width:132px;
  min-height:42px;
  padding:0 11px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:8px;
  border:1px solid #b8d5c1;
  border-radius:7px;
  background:#f8fcf9;
  color:#245f3b;
  font-size: 12.5px;
  font-weight:850;
  cursor:pointer;
  transition:background .18s,border-color .18s,transform .18s;
}
.history-export-button:hover{background:#edf8f0;border-color:#79b68b;transform:translateY(-1px)}
.history-export-button:disabled{opacity:.6;cursor:wait;transform:none}
.history-export-filetype{
  min-width:34px;
  padding:4px 5px;
  border-radius:5px;
  background:#e7f5eb;
  color:#267044;
  font-size: 10px;
  font-weight:950;
  letter-spacing:.04em;
  text-align:center;
}
.history-export-arrow{font-size:14px;line-height:1;color:#4f8d63}
@media(max-width:900px){
  .history-export-card{align-items:stretch;flex-direction:column;gap:14px}
  .history-export-controls{width:100%;justify-content:space-between}
  .history-export-action-group{flex:1}
  .history-export-buttons{width:100%}
  .history-export-button{flex:1}
}
@media(max-width:620px){
  .history-export-card{padding:15px}
  .history-export-controls{align-items:stretch;flex-direction:column;padding:11px}
  .history-export-month-field input[type="month"]{width:100%;min-width:0}
  .history-export-buttons{display:grid;grid-template-columns:1fr 1fr}
  .history-export-button{min-width:0;width:100%}
}
@media(max-width:380px){.history-export-buttons{grid-template-columns:1fr}}

/* RC44: force the polished monthly export layout on mobile/half-screen */
@media (max-width: 760px) {
  .history-export-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px !important;
  }
  .history-export-copy {
    max-width: none !important;
    width: 100% !important;
  }
  .history-export-copy .eyebrow {
    font-size: 11px !important;
  }
  .history-export-copy h2 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 5px 0 6px !important;
  }
  .history-export-copy p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    max-width: none !important;
  }
  .history-export-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .history-export-month-field,
  .history-export-action-group {
    width: 100% !important;
  }
  .history-export-month-field > span,
  .history-export-action-label {
    font-size: 11px !important;
  }
  .history-export-controls .history-export-month-field input[type="month"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    font-size: 13px !important;
  }
  .history-export-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
  }
  .history-export-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    justify-content: flex-start !important;
    font-size: 13px !important;
  }
  .history-export-arrow {
    margin-left: auto !important;
  }
}


/* RC45: Stronger success / approved notification colour */
.suite-record-row.notification-success {
  margin: 5px 0;
  padding: 13px 12px;
  border: 1px solid #8acb9a;
  border-left: 5px solid #27944d;
  border-radius: 9px;
  background: linear-gradient(90deg,#e2f6e7 0%,#eefaf1 58%,#f8fdf9 100%);
  box-shadow: 0 6px 16px rgba(39,148,77,.09);
}
.suite-record-row.notification-success .record-badge {
  color: #155f32;
  background: #c9edD2;
  border: 1px solid #8dcea0;
}
.suite-record-row.notification-success strong { color: #174f2d; }
.suite-record-row.notification-success p { color: #476552; }
.suite-record-row.notification-success small { color: #5b7564; }
.suite-record-row.notification-danger {
  margin: 5px 0;
  padding: 13px 12px;
  border: 1px solid #e4aaaa;
  border-left: 5px solid #c94f4f;
  border-radius: 9px;
  background: #fff4f4;
}
.suite-record-row.notification-danger .record-badge { color:#8b3232; background:#f9dede; }
.emergency-review-item.status-approved { border-color: #8fcaa0; background: #eaf8ee; }
.emergency-review-item.status-approved .emergency-review-title > span { color: #155f32; background: #ccefd5; }
.work-badge.outstation-approved { color: #155f32; background: #ccefd5; }
.approval-decision-pill.approved { color: #155f32; background: #ccefd5; border: 1px solid #8fcaa0; }
.approval-feed-item.status-approved { border-left-color: #27944d; background: #f7fcf8; }
.approval-feed-item.status-approved .approval-feed-icon { color:#155f32; background:#d5f1dc; }

@media (max-width: 760px) {
  .suite-record-row.notification-success,
  .suite-record-row.notification-danger { padding: 12px 11px; }
}

/* RC111: permanent multi-company switcher for the designated Platform Owner account */
.temporary-company-switcher{
  margin:6px 6px 8px;
  padding:10px;
  border:1px solid #f0c36a;
  border-radius:12px;
  background:#fff8e8;
}
.temporary-company-switcher>span{
  display:block;
  margin-bottom:7px;
  font-size: 12.5px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#8a5a00;
}
.temporary-company-switcher>div{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.temporary-company-switcher button{
  min-height:34px;
  border:1px solid #d8dce2;
  border-radius:9px;
  background:#fff;
  color:#344054;
  font-weight:800;
  cursor:pointer;
}
.temporary-company-switcher button.active{
  border-color:#d58a00;
  background:#f5a623;
  color:#fff;
}
.temporary-company-switcher small{
  display:block;
  margin-top:7px;
  color:#7a4b00;
  line-height:1.35;
}

/* RC49: Main Office network fallback check-in with Shiftly Camera */
.office-network-fallback,
.office-verification-flow,
.office-fallback-status,
.office-fallback-approved {
  margin: 14px 0 0;
  border: 1px solid #dce6e0;
  border-radius: 14px;
  background: #fff;
}
.office-network-fallback {
  padding: 15px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
  border-color: #ecd39b;
  background: #fffaf0;
}
.office-network-warning {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #875a00;
  background: #ffe9b5;
  font-weight: 900;
}
.office-network-fallback strong { display:block; margin:1px 0 5px; font-size:14px; }
.office-network-fallback p { margin:0; color:#6b746f; font-size: 13px; line-height:1.55; }
.office-network-actions,
.office-flow-actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.office-network-actions .primary-button,
.office-network-actions .secondary-button,
.office-flow-actions .primary-button,
.office-flow-actions .secondary-button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}
.office-verification-flow { padding: 17px; }
.office-flow-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf8f1;
  font-size: 20px;
}
.office-flow-heading h3,
.office-camera-heading h3,
.office-fallback-status h3 { margin:3px 0 5px; font-size:17px; }
.office-flow-heading p,
.office-camera-heading p,
.office-fallback-status p { margin:0; color:#6d7972; font-size: 13px; line-height:1.5; }
.office-photo-requirements {
  margin-top: 14px;
  padding: 12px 13px;
  display: grid;
  gap: 6px;
  border: 1px solid #cfe1d5;
  border-radius: 10px;
  background: #f5faf7;
}
.office-photo-requirements strong { font-size: 13px; color:#285b3d; }
.office-photo-requirements span { position:relative; padding-left:16px; color:#66736b; font-size: 12.5px; line-height:1.45; }
.office-photo-requirements span::before { content:"✓"; position:absolute; left:0; color:#2b8e4d; font-weight:900; }
.office-camera-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.office-camera-heading .secondary-button { width:auto; min-height:34px; padding:0 12px; }
.office-camera-shell {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #111;
  aspect-ratio: 4 / 3;
}
.office-camera-shell video { width:100%; height:100%; display:block; object-fit:cover; background:#111; }
.office-camera-guide {
  max-width: 86%;
  padding: 8px 10px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  color: #fff;
  background: rgba(18,28,22,.76);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}
.office-camera-shutter {
  min-height: 44px;
  margin: 12px auto 0;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #b7d8c1;
  border-radius: 999px;
  color: #226b3e;
  background: #fff;
  font-weight: 800;
}
.office-camera-shutter span {
  width: 22px;
  height: 22px;
  border: 4px solid #2b9652;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
  background: #2b9652;
}
.office-photo-preview { margin-top: 12px; overflow:hidden; border:1px solid #dde5e0; border-radius:12px; background:#f8faf9; }
.office-photo-preview img { width:100%; max-height:430px; display:block; object-fit:cover; background:#eef2f0; }
.office-photo-stamp { padding:11px 12px; display:flex; align-items:center; gap:9px; border-top:1px solid #e2e8e4; background:#fff; }
.office-photo-stamp > span { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#2d9852; font-size: 13px; font-weight:900; }
.office-photo-stamp div { display:grid; gap:2px; }
.office-photo-stamp strong { font-size: 12.5px; }
.office-photo-stamp small { color:#748078; font-size: 12px; }
.office-submit-note { margin-top:12px; padding:11px 12px; display:grid; grid-template-columns:24px minmax(0,1fr); gap:9px; border:1px solid #cfdde9; border-radius:9px; background:#f4f8fb; }
.office-submit-note > span { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:#315f82; background:#dfeef8; font-size: 12.5px; font-weight:900; }
.office-submit-note p { margin:0; color:#5f6e79; font-size: 12.5px; line-height:1.5; }
.office-fallback-status { padding:16px; display:grid; grid-template-columns:38px minmax(0,1fr); gap:12px; }
.office-fallback-status.pending { border-color:#ead39c; background:#fffaf1; }
.office-fallback-status.rejected { border-color:#ebb8b8; background:#fff7f7; }
.office-fallback-status-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; font-weight:900; }
.office-fallback-status.pending .office-fallback-status-icon { color:#885e06; background:#ffe9b3; }
.office-fallback-status.rejected .office-fallback-status-icon { color:#9e3535; background:#f8dada; font-size:20px; }
.office-fallback-status dl { margin:12px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.office-fallback-status dl > div { padding:9px 10px; border:1px solid rgba(0,0,0,.07); border-radius:8px; background:rgba(255,255,255,.78); }
.office-fallback-status dt { color:#78827c; font-size: 11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.office-fallback-status dd { margin:4px 0 0; font-size: 12.5px; font-weight:800; }
.office-pending-pill { display:inline-flex; padding:5px 8px; border-radius:999px; color:#835b08; background:#ffe9b7; font-size: 11px; font-weight:900; }
.office-record-time-note { margin-top:10px !important; padding:9px 10px; border-radius:8px; color:#496255 !important; background:#eef7f1; }
.office-supervisor-note { margin:11px 0; padding:10px 11px; display:grid; gap:4px; border-radius:8px; background:#fff; border:1px solid #efd0d0; }
.office-supervisor-note strong { font-size: 12px; }
.office-supervisor-note span { color:#6f6767; font-size: 12.5px; }
.office-fallback-status .primary-button,
.office-fallback-status .secondary-button { width:auto; min-height:36px; margin-top:11px; padding:0 13px; }
.office-fallback-approved { padding:11px 12px; display:flex; align-items:center; gap:9px; border-color:#97cfaa; background:#ebf8ef; }
.office-fallback-approved > span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#28954d; font-weight:900; }
.office-fallback-approved strong { font-size: 13px; color:#1f6538; }
.office-fallback-approved p { margin:2px 0 0; color:#4f6f5b; font-size: 12px; line-height:1.4; }
.work-badge.office-pending { color:#7a570a; background:#ffe9b6; }
.work-badge.office-rejected { color:#8b3333; background:#f7dddd; }
.office-review-item { border-left-color:#d39a32; }
.office-review-facts { background:#fffaf0; }

@media (max-width: 680px) {
  .office-network-fallback { grid-template-columns:30px minmax(0,1fr); padding:13px; }
  .office-network-warning { width:30px; height:30px; }
  .office-network-actions,
  .office-flow-actions { display:grid; grid-template-columns:1fr; }
  .office-network-actions .primary-button,
  .office-network-actions .secondary-button,
  .office-flow-actions .primary-button,
  .office-flow-actions .secondary-button { width:100%; }
  .office-verification-flow { padding:13px; }
  .office-camera-heading { align-items:stretch; flex-direction:column; }
  .office-camera-heading .secondary-button { width:100%; }
  .office-camera-shell { aspect-ratio:3 / 4; max-height:62vh; }
  .office-fallback-status { grid-template-columns:1fr; }
  .office-fallback-status dl { grid-template-columns:1fr; }
  .office-fallback-status .primary-button,
  .office-fallback-status .secondary-button { width:100%; }
}

/* RC50: neat evidence block for archived Main Office verification records */
.office-history-evidence{margin-bottom:8px;padding:9px 10px;border:1px solid #dfe8e2;border-radius:8px;background:#fff}.office-history-evidence-head{display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid #edf1ee}.office-history-evidence-head>span{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:#edf8f1;font-size:13px}.office-history-evidence-head>div{display:grid;gap:1px}.office-history-evidence-head strong{font-size: 11px;color:#2f4639}.office-history-evidence-head small{font-size: 10px;color:#738078}.office-history-evidence dl{margin:8px 0 0;display:grid;gap:5px}.office-history-evidence dl>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.office-history-evidence dt{font-size: 10px;color:#758178}.office-history-evidence dd{margin:0;text-align:right;font-size: 11px;font-weight:800;color:#34483d}
@media(max-width:620px){.office-history-evidence dl>div{align-items:flex-start}.office-history-evidence dd{max-width:58%}}

/* RC51 · Consumables */
.asset-module-shell { display: grid; gap: 18px; }
/* RC52: keep the Assets / Consumables switch visible directly below the frozen global navigation. */
.asset-module-switch-sticky {
  position: sticky;
  top: var(--shiftly-global-header-height);
  z-index: 145;
  margin: -2px 0 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(225, 232, 228, .9);
  background: rgba(250, 252, 251, .98);
  backdrop-filter: blur(8px);
}
.asset-module-switch { width: fit-content; padding: 4px; display: flex; gap: 4px; border: 1px solid #dfe7e3; border-radius: 10px; background: #f1f5f3; }
.asset-module-switch button { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 7px; color: #66736d; background: transparent; font-size: 12px; font-weight: 900; }
.asset-module-switch button.active { color: #236f42; background: white; box-shadow: 0 2px 8px rgba(31,58,45,.08); }
.asset-module-switch button > span { font-size: 14px; }
.asset-module-switch button > b { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #d6852d; font-size: 11px; }

.consumables-section { max-width: 1080px; width: 100%; }
.consumables-heading { margin-bottom: 17px; }
.consumable-subnav { margin-bottom: 16px; padding: 4px; display: flex; gap: 4px; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid #e0e7e3; border-radius: 9px; background: #fff; }
.consumable-subnav button { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 0; border-radius: 6px; color: #637169; background: transparent; font-size: 11px; font-weight: 900; }
.consumable-subnav button.active { color: #216d40; background: #edf7f0; }
.consumable-subnav button span { min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #d6862d; font-size: 10px; }

.consumable-catalogue-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 14px; align-items: start; }
.consumable-catalogue-panel,.consumable-detail-card,.consumable-section-panel,.consumable-add-card { border: 1px solid #dfe6e2; border-radius: 11px; background: #fff; box-shadow: 0 10px 28px rgba(30,55,44,.04); }
.consumable-catalogue-panel,.consumable-section-panel { padding: 16px; }
.consumable-panel-heading { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consumable-panel-heading h2 { margin: 0; font-size: 15px; }
.consumable-panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.consumable-add-button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 1px solid #bad7c4; border-radius: 7px; color: #247445; background: #f6fbf7; font-size: 11px; font-weight: 900; }
.consumable-add-button span { font-size: 15px; line-height: 1; }
.compact-button { width: auto !important; min-height: 32px !important; padding: 0 11px !important; font-size: 11px !important; }

.consumable-list { display: grid; gap: 8px; }
.consumable-list-card { width: 100%; min-height: 67px; padding: 10px 11px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto 12px; gap: 10px; align-items: center; border: 1px solid #e2e8e5; border-radius: 9px; color: var(--ink); background: #fbfdfc; text-align: left; }
.consumable-list-card:hover { border-color: #bcd6c5; background: #f8fcf9; }
.consumable-list-card.selected { border-color: #75ba88; box-shadow: 0 0 0 2px rgba(79,183,97,.09); background: #f8fcf9; }
.consumable-list-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #2f7b4b; background: #eaf6ed; font-size: 14px; font-weight: 900; }
.consumable-list-main { min-width: 0; display: grid; gap: 3px; }
.consumable-list-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.consumable-list-main small { color: var(--muted); font-size: 11px; }
.consumable-quantity-chip { padding: 5px 7px; border-radius: 999px; color: #287245; background: #eaf7ed; font-size: 10px; font-weight: 900; white-space: nowrap; }
.consumable-quantity-chip.out { color: #a94a4a; background: #fff0f0; }
.consumable-chevron { color: #8c9892; font-size: 15px; }

.consumable-detail-card { padding: 18px; position: sticky; top: 116px; }
.consumable-detail-heading { padding-bottom: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: start; border-bottom: 1px solid #e6ebe8; }
.consumable-detail-heading h2 { margin: 6px 0 4px; font-size: 20px; letter-spacing: -.02em; }
.consumable-detail-heading p { margin: 0; max-width: 45ch; color: var(--muted); font-size: 11px; line-height: 1.5; }
.consumable-available-block { min-width: 92px; padding: 10px; display: grid; justify-items: end; border-radius: 9px; color: #246f43; background: #edf8f0; }
.consumable-available-block small { font-size: 10px; font-weight: 800; }
.consumable-available-block strong { margin-top: 2px; font-size: 21px; line-height: 1; }
.consumable-available-block span { margin-top: 2px; font-size: 11px; font-weight: 800; }
.consumable-request-form { padding-top: 15px; display: grid; gap: 13px; }
.consumable-request-form > label,.consumable-restock-form > label,.consumable-add-form > label,.consumable-review-note { display: grid; gap: 6px; color: #506159; font-size: 11px; font-weight: 800; }
.consumable-request-form textarea,.consumable-add-form textarea,.consumable-review-note textarea { min-height: 76px; padding: 10px 11px; resize: vertical; border: 1px solid #d9e1dd; border-radius: 7px; outline: none; color: var(--ink); background: #fff; font-size: 12px; line-height: 1.45; }
.consumable-request-form textarea:focus,.consumable-add-form textarea:focus,.consumable-review-note textarea:focus,.consumable-add-form input:focus,.consumable-restock-form input:focus,.consumable-amount-input input:focus { border-color: #68ad7c; box-shadow: 0 0 0 3px rgba(79,183,97,.09); }
.consumable-amount-input { display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid #d9e1dd; border-radius: 7px; background: #fff; overflow: hidden; }
.consumable-amount-input input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 12.5px; }
.consumable-amount-input span { min-width: 48px; padding: 0 9px; display: grid; place-items: center; border-left: 1px solid #e1e7e4; color: #64736b; background: #f6f8f7; font-size: 11px; font-weight: 900; }
.consumable-amount-input.compact input { min-height: 35px; font-size: 12px; }
.consumable-form-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.consumable-form-actions button { min-height: 40px; }
.consumable-stock-tools { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6ebe8; }
.consumable-stock-tools summary { color: #56655e; font-size: 11px; font-weight: 900; cursor: pointer; }
.consumable-restock-form { padding-top: 12px; display: grid; gap: 10px; }
.consumable-restock-form input,.consumable-add-form input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #d9e1dd; border-radius: 7px; outline: none; font-size: 12px; }
.consumable-restock-form .secondary-button { min-height: 38px; }
.consumable-detail-placeholder { min-height: 230px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed #d7e1db; border-radius: 11px; color: #76837c; background: #fafcfb; text-align: center; }
.consumable-detail-placeholder span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #3b8355; background: #eaf6ed; font-size: 18px; }
.consumable-detail-placeholder strong { color: #526159; font-size: 12.5px; }
.consumable-detail-placeholder p { max-width: 35ch; margin: 0; font-size: 11px; line-height: 1.45; }

.consumable-add-card { margin-bottom: 14px; padding: 16px; }
.consumable-add-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.consumable-add-form .full { grid-column: 1 / -1; }
.consumable-add-form label small,.consumable-review-note small { color: var(--muted); font-weight: 500; }

.consumable-request-status-list,.consumable-review-list { display: grid; gap: 10px; }
.consumable-request-status-card,.consumable-review-card { padding: 14px; border: 1px solid #e0e7e3; border-radius: 9px; background: #fbfdfc; }
.consumable-request-top,.consumable-review-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.consumable-request-top > div,.consumable-review-heading > div { min-width: 0; display: grid; gap: 3px; }
.consumable-request-top strong,.consumable-review-heading strong { font-size: 12.5px; }
.consumable-request-top small,.consumable-review-heading small { color: var(--muted); font-size: 11px; }
.consumable-status-pill { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.consumable-status-pill.pending { color: #85601c; background: #fff3d7; }
.consumable-status-pill.approved { color: #236d3f; background: #e6f7eb; }
.consumable-status-pill.rejected { color: #a23d3d; background: #ffebeb; }
.consumable-request-numbers { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consumable-request-numbers > div { padding: 9px 10px; display: grid; gap: 4px; border-radius: 8px; background: #f4f7f5; }
.consumable-request-numbers small,.consumable-purpose small,.consumable-approver-note small,.consumable-review-item small { color: #75827b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.consumable-request-numbers strong { font-size: 12.5px; }
.consumable-purpose { margin-top: 10px; }
.consumable-purpose p,.consumable-approver-note p { margin: 4px 0 0; color: #43524a; font-size: 11px; line-height: 1.5; }
.consumable-review-meta { margin-top: 11px; padding-top: 9px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #e6ebe8; color: #6f7d76; font-size: 11px; }
.consumable-approver-note { margin-top: 9px; padding: 9px; border-radius: 7px; background: #f5f8f6; }
.consumable-partial-note { margin: 9px 0 0; padding: 7px 8px; border-radius: 6px; color: #7c6024; background: #fff6df; font-size: 11px; font-weight: 800; }
.consumable-review-count { padding: 5px 8px; border-radius: 999px; color: #815e1c; background: #fff2d4; font-size: 11px; font-weight: 900; }
.consumable-review-item { margin-top: 12px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px; background: #eef7f1; }
.consumable-review-item > div { display: grid; gap: 3px; }
.consumable-review-item strong { color: #255f3c; font-size: 12.5px; }
.consumable-review-item > span { color: #32774a; font-size: 11px; font-weight: 900; white-space: nowrap; }
.consumable-review-note { margin-top: 10px; }
.consumable-stock-warning { margin: 9px 0 0; padding: 8px 9px; border-radius: 7px; color: #984242; background: #fff0f0; font-size: 11px; font-weight: 800; }
.consumable-review-actions { margin-top: 11px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
.consumable-review-actions button { min-height: 39px; }
.consumable-empty-state { min-height: 150px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed #d7e1db; border-radius: 9px; color: #748179; background: #fafcfb; text-align: center; }
.consumable-empty-state span { font-size: 19px; color: #3d8457; }
.consumable-empty-state strong { color: #526159; font-size: 12px; }
.consumable-empty-state p { max-width: 36ch; margin: 0; font-size: 11px; line-height: 1.45; }

@media (max-width: 780px) {
  .asset-module-switch { width: 100%; }
  .asset-module-switch button { flex: 1; justify-content: center; }
  .consumable-catalogue-layout { grid-template-columns: 1fr; }
  .consumable-detail-card { position: static; }
}
@media (max-width: 560px) {
  .consumable-subnav { width: 100%; }
  .consumable-subnav button { flex: 1 0 auto; justify-content: center; }
  .consumable-catalogue-panel,.consumable-detail-card,.consumable-section-panel,.consumable-add-card { padding: 13px; border-radius: 9px; }
  .consumable-panel-heading { align-items: flex-start; }
  .consumable-add-button { min-height: 31px; padding: 0 9px; font-size: 11px; }
  .consumable-list-card { grid-template-columns: 34px minmax(0,1fr) 12px; }
  .consumable-quantity-chip { grid-column: 2; width: fit-content; }
  .consumable-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .consumable-detail-heading { grid-template-columns: 1fr; }
  .consumable-available-block { justify-items: start; }
  .consumable-add-form { grid-template-columns: 1fr; }
  .consumable-add-form .full { grid-column: auto; }
  .consumable-form-actions,.consumable-review-actions { grid-template-columns: 1fr; }
  .consumable-request-numbers { grid-template-columns: 1fr 1fr; }
  .consumable-review-meta { flex-direction: column; gap: 3px; }
}

/* RC53 - Consumable request form typography polish */
.consumable-detail-heading h2 {
  font-size: 18px;
}
.consumable-detail-heading p {
  font-size: 12.5px;
}
.consumable-available-block small {
  font-size: 11px;
}
.consumable-available-block span {
  font-size: 12px;
}
.consumable-request-form > label {
  font-size: 12.5px;
}
.consumable-request-form textarea {
  font-size: 13px;
}
.consumable-amount-input input {
  font-size: 13px;
}
.consumable-amount-input span {
  font-size: 12px;
}
.consumable-stock-tools summary {
  font-size: 12.5px;
}
.consumable-form-actions {
  grid-template-columns: 1fr 1fr;
}
.consumable-form-actions .primary-button,
.consumable-form-actions .secondary-button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 800;
}


/* RC58: multi-company platform controls + per-menu notification centre */
.home-notification-stack {
  margin: -5px 0 20px;
  display: grid;
  gap: 9px;
}
.home-notification-card {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto 28px;
  gap: 11px;
  align-items: center;
  border: 1px solid #d7e2dc;
  border-left-width: 5px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(37,60,49,.05);
}
.home-notification-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.home-notification-card > div { min-width: 0; display:grid; gap:3px; }
.home-notification-card strong { font-size: 13px; line-height:1.3; }
.home-notification-card p { margin:0; color:#5e6e65; font-size: 12px; line-height:1.45; }
.home-notification-status { font-size: 11px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.home-notification-action {
  min-height:34px;
  padding:0 13px;
  border:1px solid #cfdad3;
  border-radius:7px;
  background:#fff;
  font-size: 11px;
  font-weight:900;
}
.home-notification-dismiss {
  width:28px;
  height:28px;
  padding:0;
  border:0;
  background:transparent;
  color:#6d7972;
  font-size:20px;
  line-height:1;
}
.home-notification-card.status-action-required { border-color:#e3bf79; border-left-color:#d48a16; background:#fffaf0; }
.home-notification-card.status-action-required .home-notification-icon { color:#855900; background:#ffe9b7; }
.home-notification-card.status-action-required .home-notification-status { color:#9a6500; }
.home-notification-card.status-action-required .home-notification-action { color:#8a5b00; border-color:#dcb86e; }
.home-notification-card.status-approved { border-color:#9bcfaa; border-left-color:#27944d; background:#f4fbf6; }
.home-notification-card.status-approved .home-notification-icon { color:#176336; background:#d8f1df; }
.home-notification-card.status-approved .home-notification-status { color:#267b45; }
.home-notification-card.status-rejected { border-color:#e5aaaa; border-left-color:#c94f4f; background:#fff5f5; }
.home-notification-card.status-rejected .home-notification-icon { color:#8d3232; background:#f8dddd; }
.home-notification-card.status-rejected .home-notification-status { color:#a13e3e; }
.home-notification-card.status-info { border-left-color:#4c82c3; background:#f7faff; }
.home-notification-card.status-info .home-notification-icon { color:#285e9e; background:#e3eefb; }
.home-notification-card.status-info .home-notification-status { color:#376fae; }

.alerts-filter-bar {
  margin: 0 0 14px;
  padding: 5px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  border:1px solid #e0e6e2;
  border-radius:10px;
  background:#f3f6f4;
}
.alerts-filter-bar button {
  min-height:34px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid transparent;
  border-radius:8px;
  color:#5f6e66;
  background:transparent;
  font-size: 11px;
  font-weight:900;
}
.alerts-filter-bar button b {
  min-width:20px;
  height:20px;
  padding:0 5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e2e7e4;
  font-size: 11px;
}
.alerts-filter-bar button.active { border-color:#d5ded8; background:#fff; box-shadow:0 2px 7px rgba(30,50,40,.06); }
.alerts-filter-bar button.status-all b { color:#46534c; background:#dfe5e1; }
.alerts-filter-bar button.status-action-required b { color:#845700; background:#ffe5ad; }
.alerts-filter-bar button.status-approved b { color:#176236; background:#d5efdc; }
.alerts-filter-bar button.status-rejected b { color:#913737; background:#f6dddd; }
.alerts-filter-bar button.status-info b { color:#2f639d; background:#e0ecf8; }
.notification-status-pill {
  width:max-content;
  margin:0 6px 6px 0;
  padding:4px 7px;
  display:inline-flex;
  border-radius:999px;
  font-size: 10px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.notification-status-pill.status-action-required { color:#885900; background:#ffe7b5; }
.notification-status-pill.status-approved { color:#176236; background:#d7f0de; }
.notification-status-pill.status-rejected { color:#923737; background:#f7dddd; }
.notification-status-pill.status-info { color:#2f639d; background:#e2edf8; }
.suite-record-row.notification-action-required {
  margin:5px 0;
  padding:13px 12px;
  border:1px solid #e1bf7b;
  border-left:5px solid #d48a16;
  border-radius:9px;
  background:#fffaf0;
}
.suite-record-row.notification-info {
  margin:5px 0;
  padding:13px 12px;
  border:1px solid #cbdbea;
  border-left:5px solid #4c82c3;
  border-radius:9px;
  background:#f8fbff;
}

.platform-security-note {
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid #cfe0d5;
  border-radius:10px;
  background:#f5fbf7;
}
.platform-security-note strong { display:block; margin-bottom:4px; font-size: 12.5px; color:#245f39; }
.platform-security-note p { margin:0; color:#5b6c62; font-size: 12px; line-height:1.5; }
.platform-company-list { display:grid; gap:14px; }
.platform-company-card {
  padding:16px;
  border:1px solid #dce5df;
  border-radius:11px;
  background:#fff;
  box-shadow:0 8px 22px rgba(30,55,44,.04);
}
.platform-company-heading {
  margin-bottom:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.platform-company-heading > div { min-width:0; display:grid; gap:3px; }
.platform-company-heading span { color:#728078; font-size: 11px; font-weight:900; letter-spacing:.08em; }
.platform-company-heading strong { font-size:14px; }
.platform-company-heading em {
  padding:5px 8px;
  border-radius:999px;
  font-size: 11px;
  font-style:normal;
  font-weight:900;
}
.platform-company-heading em.active { color:#176236; background:#d9f1e0; }
.platform-company-heading em.inactive { color:#8a3c3c; background:#f7dfdf; }
.platform-module-grid { display:grid; gap:6px; }
.platform-module-row {
  min-height:48px;
  padding:9px 10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 100px 76px;
  gap:10px;
  align-items:center;
  border:1px solid #edf1ee;
  border-radius:8px;
  background:#fbfdfc;
}
.platform-module-row > span { min-width:0; display:grid; gap:2px; }
.platform-module-row strong { font-size: 12px; }
.platform-module-row small { color:#7a8780; font-size: 11px; }
.platform-module-row label {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  color:#607168;
  font-size: 11px;
  font-weight:800;
}
.platform-module-row input { width:auto; min-height:0; accent-color:#247c45; }
.module-setting-row.platform-unavailable { opacity:.62; background:#f4f5f4; }

@media (max-width:760px) {
  .home-notification-card { grid-template-columns:32px minmax(0,1fr) 26px; }
  .home-notification-card .home-notification-action { grid-column:2 / 4; width:100%; }
  .home-notification-dismiss { grid-column:3; grid-row:1; }
  .alerts-filter-bar { display:grid; grid-template-columns:1fr 1fr; }
  .alerts-filter-bar button { justify-content:space-between; }
  .platform-module-row { grid-template-columns:minmax(0,1fr) 88px 62px; gap:6px; }
}


/* Shiftly RC60: Admin/Supervisor attendance history grouped by date. */
.managed-history-by-date { max-width: 1180px; }
.managed-history-toolbar { margin-bottom: 15px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.managed-history-toolbar > label { display:grid; gap:6px; min-width:190px; color:#5f6d66; font-size: 11px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.managed-history-toolbar input[type="month"] { min-height:42px; padding:9px 11px; border:1px solid #d7e1dc; border-radius:8px; background:#fff; color:#263a30; font:inherit; font-size: 13px; text-transform:none; letter-spacing:normal; }
.managed-history-summary { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.managed-history-summary > span { min-width:92px; padding:8px 12px; display:flex; gap:7px; align-items:center; justify-content:center; border:1px solid #d7e1dc; border-radius:999px; background:#f7faf8; color:#385347; }
.managed-history-summary strong { font-size:18px; line-height:1; }
.managed-history-summary small { font-size: 11px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.attendance-date-groups { display:grid; gap:14px; }
.attendance-date-group { overflow:hidden; border:1px solid #dfe6e2; border-radius:10px; background:#fff; box-shadow:0 10px 30px rgba(30,55,44,.04); }
.attendance-date-group-heading { padding:13px 16px; border-bottom:1px solid #e8eeeb; background:#f7faf8; }
.attendance-date-group-heading > div { display:flex; align-items:center; gap:10px; }
.attendance-date-calendar { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border:1px solid #cfe0d7; border-radius:8px; background:#fff; color:#34724e; font-size:13px; font-weight:900; }
.attendance-date-group-heading strong { display:block; color:#263a30; font-size:13px; }
.attendance-date-group-heading small { display:block; margin-top:2px; color:#718078; font-size: 11px; font-weight:700; }
.attendance-date-table { border:0; border-radius:0; box-shadow:none; }
.attendance-date-table table { min-width:1040px; }
.attendance-date-table th { background:#fff; }
.attendance-employee-cell { display:grid; gap:2px; min-width:130px; }
.attendance-employee-cell strong { color:#2d4036; font-size: 12px; }
.attendance-employee-cell small { color:#7d8b84; font-size: 11px; font-weight:700; }
.managed-attendance-empty { padding:42px 20px; border:1px solid #dfe6e2; border-radius:10px; background:#fff; color:#75827b; text-align:center; font-size: 12.5px; }
@media (max-width: 720px) {
  .managed-history-toolbar { align-items:stretch; flex-direction:column; }
  .managed-history-toolbar > label { min-width:0; width:100%; }
  .managed-history-summary { justify-content:stretch; }
  .managed-history-summary > span { flex:1; min-width:0; }
  .attendance-date-group-heading { padding:12px 13px; }
}


/* RC62 - Group Master multi-company oversight */
.group-master-section,.group-company-detail{display:grid;gap:14px}
.group-master-note{border-color:#dce7ef;background:#f6fafc}.group-master-note strong{color:#325e78}
.group-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.group-summary-grid article{border:1px solid #dfe7e3;background:#fff;border-radius:12px;padding:14px;display:grid;gap:5px;box-shadow:0 5px 18px rgba(24,55,38,.04)}
.group-summary-grid span{font-size: 11px;color:#708078;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.group-summary-grid strong{font-size:22px;color:#183b28}
.group-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.group-company-card{border:1px solid #dde6e1;background:#fff;border-radius:14px;padding:14px;display:grid;gap:12px;box-shadow:0 5px 18px rgba(24,55,38,.04)}.group-company-card.selected{border-color:#86b59a;box-shadow:0 0 0 2px rgba(68,137,92,.10)}
.group-company-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.group-company-metrics span{background:#f7f9f8;border-radius:9px;padding:9px;display:grid;gap:2px}.group-company-metrics strong{font-size:15px;color:#284b35}.group-company-metrics small{font-size: 11px;color:#738077}.group-company-metrics .needs-action{background:#fff4df}.group-company-metrics .needs-action strong{color:#a56312}
.group-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:12px}.group-attendance-card,.group-alert-card{min-width:0}.group-month-picker{display:grid;gap:4px;font-size: 11px;color:#75827b;font-weight:800;text-transform:uppercase}.group-month-picker input{min-width:140px}.group-detail-heading{margin-bottom:0}
.group-master-admin-card{margin:14px 0}.group-master-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:12px 0 16px}.group-master-add-form label{display:grid;gap:5px;font-size: 11px;font-weight:800;color:#596960}.group-master-admin-list{display:grid;gap:10px}.group-master-admin-item{border:1px solid #dfe6e2;border-radius:11px;padding:12px;background:#fbfcfb}.group-master-admin-item.inactive{opacity:.65;background:#f5f5f5}.group-master-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.group-master-admin-heading>span{display:grid;gap:2px}.group-master-admin-heading strong{font-size: 12.5px}.group-master-admin-heading small{font-size: 11px;color:#7a8780}.group-master-company-access{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.group-company-access-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e4e9e6;border-radius:8px;background:#fff;padding:8px 10px}.group-company-access-row>span{display:grid;gap:1px}.group-company-access-row strong{font-size: 11px}.group-company-access-row small{font-size: 10px;color:#7d8a83}.group-company-access-row input{width:auto;min-height:0;accent-color:#247c45}
@media(max-width:900px){.group-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.group-company-grid,.group-detail-grid{grid-template-columns:1fr}.group-master-company-access{grid-template-columns:1fr}}
@media(max-width:560px){.group-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.group-master-add-form{grid-template-columns:1fr}.group-company-metrics{grid-template-columns:1fr}.group-master-admin-heading{align-items:flex-start;flex-direction:column}}


/* =====================================================================
   RC65 - Outstation Travel + Offline Capture
   ===================================================================== */
.outstation-v2-flow { display:grid; gap:18px; }
.outstation-network-badge { padding:10px 13px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; border:1px solid #cfe6d7; border-radius:10px; background:#f4fbf6; color:#28623f; }
.outstation-network-badge.offline { border-color:#ead6a6; background:#fffaf0; color:#7a5b19; }
.outstation-network-badge > span { font-size:13px; }
.outstation-network-badge strong { font-size: 13px; }
.outstation-network-badge small { margin-left:auto; color:inherit; opacity:.78; font-size: 12.5px; }
.outstation-mode-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.outstation-mode-card { min-height:150px; padding:20px; display:grid; grid-template-columns:auto 1fr; grid-template-rows:1fr auto; gap:12px 14px; text-align:left; border:1px solid #dce7e0; border-radius:14px; background:#fff; color:var(--ink); box-shadow:0 8px 26px rgba(28,55,43,.045); }
.outstation-mode-card:hover,.outstation-mode-card:focus-visible { border-color:#91caa1; box-shadow:0 10px 28px rgba(37,138,76,.10); outline:none; }
.outstation-mode-card .outstation-mode-icon { width:46px; height:46px; display:grid; place-items:center; grid-row:1 / span 2; border-radius:12px; background:#edf8f0; color:#287f48; font-size:23px; font-weight:900; }
.outstation-mode-card.direct .outstation-mode-icon { background:#fff2ed; color:#c95c34; }
.outstation-mode-card.missed .outstation-mode-icon { background:#fff8e8; color:#9a6a18; }
.outstation-mode-card div { min-width:0; display:grid; gap:6px; align-content:start; }
.outstation-mode-card strong { font-size:16px; }
.outstation-mode-card small { color:var(--muted); line-height:1.5; font-size: 13px; }
.outstation-mode-card b { color:#2b7a48; font-size: 13px; }
.outstation-offline-ready { padding:13px 15px; display:flex; gap:10px; align-items:flex-start; border:1px dashed #cddbd2; border-radius:10px; background:#fafcfb; }
.outstation-offline-ready strong { flex:0 0 auto; color:#2e7449; font-size: 13px; }
.outstation-offline-ready span { color:#69776f; font-size: 12.5px; line-height:1.5; }
.outstation-v2-detail { display:grid; gap:16px; }
.outstation-back-link { width:max-content; padding:0; border:0; background:transparent; color:#44715a; font-size: 13px; font-weight:700; }
.outstation-v2-title { display:flex; align-items:flex-start; gap:12px; }
.outstation-v2-icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:11px; background:#edf8f0; color:#277c46; font-size:21px; font-weight:900; }
.outstation-v2-title h3 { margin:0 0 5px; font-size:18px; }
.outstation-v2-title p { margin:0; color:var(--muted); font-size: 13px; line-height:1.55; }
.outstation-travel-hours { max-width:330px; display:grid; grid-template-columns:1fr auto; gap:7px 8px; color:#506159; font-size: 13px; font-weight:800; }
.outstation-travel-hours > span { color:#718078; font-weight:600; }
.outstation-travel-hours input { grid-column:1 / -1; width:100%; min-height:46px; padding:10px 13px; border:1px solid #d5dfd9; border-radius:8px; outline:none; background:#fff; font-size:17px; }
.outstation-travel-hours input:focus { border-color:#6bb57f; box-shadow:0 0 0 3px rgba(79,183,97,.11); }
.outstation-travel-hours small { grid-column:1 / -1; color:var(--muted); font-size: 12px; font-weight:500; }
.outstation-worktime-callout,.outstation-offline-note,.outstation-arrival-reminder { padding:13px 15px; display:grid; gap:4px; border:1px solid #cfe7d6; border-radius:10px; background:#f3faf5; }
.outstation-worktime-callout strong,.outstation-offline-note strong,.outstation-arrival-reminder strong { color:#296b43; font-size: 13px; }
.outstation-worktime-callout span,.outstation-offline-note span,.outstation-arrival-reminder span { color:#66766d; font-size: 12.5px; line-height:1.5; }
.outstation-offline-note { border-color:#ead6a6; background:#fffaf0; }
.outstation-offline-note strong { color:#7a5b19; }
.outstation-arrival-reminder { border-color:#efc895; background:#fff7ed; }
.outstation-arrival-reminder strong { color:#a85a11; }
.outstation-arrival-reminder.rejected { border-color:#f1c2c2; background:#fff5f5; }
.outstation-arrival-reminder.rejected strong { color:#b43a3a; }
.outstation-travel-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.outstation-travel-progress > div,.outstation-v2-home-summary > article { padding:13px; display:grid; gap:4px; border:1px solid #e0e8e3; border-radius:10px; background:#fff; }
.outstation-travel-progress span,.outstation-v2-home-summary span { color:#7a877f; font-size: 12px; text-transform:uppercase; letter-spacing:.045em; }
.outstation-travel-progress strong,.outstation-v2-home-summary strong { font-size:15px; }
.outstation-travel-progress.due > div:nth-child(3) { border-color:#efc895; background:#fff9f2; }
.outstation-travel-actions { display:flex; gap:10px; flex-wrap:wrap; }
.outstation-travel-actions .primary-button,.outstation-travel-actions .secondary-button { width:auto; min-width:150px; }
.outstation-proof-v2 { display:grid; gap:12px; }
.outstation-location-box.gps-unavailable { border-color:#ead6a6; background:#fffaf0; }
.outstation-camera-card { padding:16px; display:grid; gap:12px; border:1px solid #dce6e0; border-radius:12px; background:#fff; }
.outstation-camera-copy { display:grid; gap:4px; }
.outstation-camera-copy strong { font-size:13px; }
.outstation-camera-copy small { color:var(--muted); font-size: 12.5px; line-height:1.45; }
.outstation-camera-open { min-height:46px; border:1px solid #75b98a; border-radius:8px; background:#eef8f1; color:#286f45; font-weight:800; }
.outstation-live-camera video { width:100%; max-height:430px; object-fit:cover; border-radius:10px; background:#111; }
.outstation-captured-photo { display:grid; grid-template-columns:110px 1fr auto; gap:12px; align-items:center; }
.outstation-captured-photo img { width:110px; height:82px; object-fit:cover; border-radius:8px; border:1px solid #d9e2dd; }
.outstation-captured-photo > div { display:grid; gap:4px; }
.outstation-captured-photo strong { font-size: 13px; }
.outstation-captured-photo small { color:var(--muted); font-size: 12px; }
.outstation-v2-footnote { margin:0; color:#718078; font-size: 12.5px; line-height:1.5; }
.outstation-v2-status { padding:15px; display:grid; gap:4px; border:1px solid #ead6a6; border-radius:10px; background:#fffaf0; }
.outstation-v2-status.approved { border-color:#c9e6d2; background:#f3faf5; }
.outstation-v2-status strong { font-size: 13px; color:#6f581e; }
.outstation-v2-status.approved strong { color:#2d7448; }
.outstation-v2-status span { color:#718078; font-size: 12.5px; }
.outstation-v2-home-card { display:grid; gap:16px; }
.outstation-v2-home-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.work-badge.outstation-travelling { color:#8c5b16; background:#fff2dc; }
.outstation-v2-review-item { border-left:3px solid #79ae8a; }
.v2-review-facts { flex-wrap:wrap; }
.v2-review-facts span { white-space:normal; }
@media (max-width:760px) {
  .outstation-mode-grid { grid-template-columns:1fr; }
  .outstation-mode-card { min-height:130px; }
  .outstation-network-badge small { width:100%; margin-left:21px; }
  .outstation-travel-progress,.outstation-v2-home-summary { grid-template-columns:1fr; }
  .outstation-captured-photo { grid-template-columns:82px 1fr; }
  .outstation-captured-photo img { width:82px; height:68px; }
  .outstation-captured-photo > button { grid-column:1 / -1; }
  .outstation-travel-actions { display:grid; grid-template-columns:1fr; }
  .outstation-travel-actions .primary-button,.outstation-travel-actions .secondary-button { width:100%; }
}


/* Shiftly RC66: compact frozen Attendance-by-Date controls for Admin/Supervisor.
   The large page heading scrolls normally; only the slim month + summary row stays frozen. */
.history-sticky-context-compact {
  margin: 0 0 10px;
  padding: 4px 0;
  max-height: none;
  overflow: visible;
  border-bottom: 0;
  background: rgba(250, 252, 251, .97);
}
.history-sticky-context-compact .managed-history-toolbar {
  margin: 0;
  min-height: 46px;
  padding: 7px 10px;
  gap: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(30, 55, 44, .035);
}
.history-sticky-context-compact .managed-history-toolbar > label {
  min-width: 175px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.history-sticky-context-compact .managed-history-toolbar input[type="month"] {
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
}
.history-sticky-context-compact .managed-history-summary { gap: 6px; }
.history-sticky-context-compact .managed-history-summary > span {
  min-width: 76px;
  padding: 5px 9px;
  gap: 5px;
}
.history-sticky-context-compact .managed-history-summary strong { font-size: 13px; }
.history-sticky-context-compact .managed-history-summary small { font-size: 10px; }
@media (max-width: 760px) {
  .history-sticky-context-compact { margin-bottom: 10px; padding: 0; }
  .history-sticky-context-compact .managed-history-toolbar { padding: 10px; }
  .history-sticky-context-compact .managed-history-toolbar > label {
    display: grid;
    min-width: 0;
  }
}

/* Shiftly RC67: consistent compact typography for frozen/sticky UI.
   Sticky areas use a smaller type scale so they preserve more review space,
   while normal page content keeps the existing size. */

/* Global frozen header/navigation */
.global-sticky-header .suite-tabbar button {
  font-size: 11px;
}
.global-sticky-header .suite-tabbar button > span:not(.nav-count-badge) {
  font-size: 14px;
}
.global-sticky-header .profile-summary strong { font-size: 12px; }
.global-sticky-header .profile-summary small { font-size: 11px; }
.global-sticky-header .brand-stack > small { font-size: 10px; }

/* Frozen page headings and frozen heading blocks */
.sticky-view-heading .eyebrow,
.sticky-document-heading .eyebrow,
.view-sticky-context .section-heading .eyebrow {
  font-size: 11px;
}
.sticky-view-heading h1,
.sticky-document-heading h1,
.view-sticky-context .section-heading h1 {
  margin-top: 7px;
  font-size: 23px;
}
.sticky-view-heading p,
.sticky-document-heading p,
.view-sticky-context .section-heading p {
  font-size: 12.5px;
  line-height: 1.4;
}

/* Frozen tab/action strips */
.documents-sticky-tabs button,
.task-sticky-context .module-tabs button {
  font-size: 11px;
}
.asset-module-switch-sticky .asset-module-switch button {
  font-size: 11px;
}
.asset-module-switch-sticky .asset-module-switch button > span {
  font-size: 13px;
}
.asset-module-switch-sticky .asset-module-switch button > b {
  font-size: 10px;
}

/* Attendance-by-date compact frozen toolbar */
.history-sticky-context-compact .managed-history-toolbar > label {
  font-size: 11px; /* RC70: +2px for VIEW MONTH */
}
.history-sticky-context-compact .managed-history-toolbar input[type="month"] {
  font-size: 12.5px; /* RC70: +2px for selected month */
}
.history-sticky-context-compact .managed-history-summary strong {
  font-size: 12.5px;
}
.history-sticky-context-compact .managed-history-summary small {
  font-size: 10px;
}

/* Keep compact sticky typography readable on smaller screens. */
@media (max-width: 760px) {
  .global-sticky-header .suite-tabbar button { font-size: 11px; }
  .global-sticky-header .suite-tabbar button > span:not(.nav-count-badge) { font-size: 13px; }
  .sticky-view-heading h1,
  .sticky-document-heading h1,
  .view-sticky-context .section-heading h1 { font-size: 20px; }
  .sticky-view-heading p,
  .sticky-document-heading p,
  .view-sticky-context .section-heading p { font-size: 12px; }
  .documents-sticky-tabs button,
  .task-sticky-context .module-tabs button { font-size: 11px; }
}

/* Shiftly RC69: professional warm collapsible sidebar / hamburger navigation */
:root {
  --shiftly-global-header-height: 60px;
  --shiftly-sidebar-width: 238px;
  --shiftly-sidebar-collapsed-width: 72px;
  --shiftly-warm-bg: #f7f4ef;
  --shiftly-warm-surface: #fffdfa;
  --shiftly-deep-green: #284b3a;
  --shiftly-soft-green: #e9f1e8;
  --shiftly-sidebar-text: #34443b;
  --shiftly-sidebar-muted: #8a918c;
}
.sidebar-layout { min-height: 100vh; background: #fafcfb; }
.suite-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 700;
  width: var(--shiftly-sidebar-width); padding: 12px 10px 14px;
  display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid #e4e0d9; background: var(--shiftly-warm-bg);
  transition: width .2s ease, transform .2s ease; overflow: hidden;
}
.sidebar-brand-row { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; border-bottom: 1px solid #e8e3dc; }
.sidebar-brand { min-width: 0; flex: 1; display: grid; gap: 2px; }
.sidebar-brand .logo { max-width: 126px; }
.sidebar-brand small { color: #7a817d; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-collapse-button,.mobile-menu-button {
  width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid #ddd8d0; border-radius: 9px; color: var(--shiftly-deep-green); background: #fffdfa;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.sidebar-collapse-button:hover,.mobile-menu-button:hover { background: #f0eee8; }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2px 0 8px; scrollbar-width: thin; }
.sidebar-nav-group { display: grid; gap: 3px; margin-bottom: 12px; }
.sidebar-group-label { padding: 4px 10px 3px; color: #999a96; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sidebar-nav-item {
  position: relative; min-height: 41px; width: 100%; padding: 7px 9px; display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 7px;
  border: 0; border-radius: 9px; color: var(--shiftly-sidebar-text); background: transparent;
  text-align: left; font-size: 12px; font-weight: 750; cursor: pointer;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,.66); }
.sidebar-nav-item.active { color: #245c3a; background: var(--shiftly-soft-green); box-shadow: inset 3px 0 0 #4b8b62; }
.sidebar-nav-icon { width: 28px; height: 28px; display: grid; place-items: center; font-size: 15px; color: #52645a; }
.sidebar-nav-item.active .sidebar-nav-icon { color: #2c7a49; }
.sidebar-nav-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav-item .nav-count-badge { justify-self: end; margin-left: 4px; background: #c83d32; color: #fff; }
.sidebar-footer { padding: 10px 10px 2px; display: grid; grid-template-columns: 8px 1fr; column-gap: 7px; border-top: 1px solid #e8e3dc; color: #667169; }
.sidebar-footer-dot { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #5b9a6e; }
.sidebar-footer > span:not(.sidebar-footer-dot) { font-size: 11px; font-weight: 900; }
.sidebar-footer small { grid-column: 2; font-size: 10px; color: #9a9d99; }
.app-topbar {
  position: fixed; top: 0; left: var(--shiftly-sidebar-width); right: 0; z-index: 650;
  min-height: 64px; padding: 8px 22px; border-bottom: 1px solid #e7e8e6; background: rgba(255,255,255,.97);
  box-shadow: 0 2px 10px rgba(35,55,44,.035); transition: left .2s ease;
}
.topbar-left { min-width: 0; display: flex; align-items: center; gap: 11px; }
.mobile-menu-button { display: none; }
.topbar-context { min-width: 0; display: grid; gap: 1px; }
.topbar-context strong { max-width: 390px; color: #2d3c34; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-context small { color: #879089; font-size: 11px; }
.sidebar-content.content-wrap {
  width: auto; max-width: none; margin: 0 24px 70px calc(var(--shiftly-sidebar-width) + 24px); padding-top: 92px;
  transition: margin-left .2s ease;
}
.sidebar-content > .suite-section,.sidebar-content > .status-section,.sidebar-content > section { max-width: 1120px; margin-left: auto; margin-right: auto; }
.sidebar-scrim { display: none; }
.sidebar-collapsed .suite-sidebar { width: var(--shiftly-sidebar-collapsed-width); }
.sidebar-collapsed .app-topbar { left: var(--shiftly-sidebar-collapsed-width); }
.sidebar-collapsed .sidebar-content.content-wrap { margin-left: calc(var(--shiftly-sidebar-collapsed-width) + 24px); }
.sidebar-collapsed .sidebar-brand { display: none; }
.sidebar-collapsed .sidebar-brand-row { justify-content: center; }
.sidebar-collapsed .sidebar-collapse-button { width: 42px; }
.sidebar-collapsed .sidebar-group-label,.sidebar-collapsed .sidebar-nav-label,.sidebar-collapsed .sidebar-footer > span:not(.sidebar-footer-dot),.sidebar-collapsed .sidebar-footer small { display: none; }
.sidebar-collapsed .sidebar-nav-group { margin-bottom: 8px; }
.sidebar-collapsed .sidebar-nav-item { min-height: 43px; padding: 7px; grid-template-columns: 1fr; justify-items: center; }
.sidebar-collapsed .sidebar-nav-icon { width: 30px; height: 30px; }
.sidebar-collapsed .sidebar-nav-item .nav-count-badge { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 10px; }
.sidebar-collapsed .sidebar-footer { display: flex; justify-content: center; }

/* Existing sticky page contexts now sit below only the slim top bar. */
.sticky-view-heading,.view-sticky-context,.documents-sticky-tabs { top: calc(var(--shiftly-global-header-height) + 8px); }
.sticky-document-heading { top: calc(var(--shiftly-global-header-height) + 62px); }

@media (max-width: 900px) {
  :root { --shiftly-global-header-height: 58px; }
  .suite-sidebar { width: min(280px, 84vw); transform: translateX(-102%); box-shadow: 12px 0 30px rgba(25,44,34,.12); }
  .sidebar-layout.sidebar-mobile-open .suite-sidebar { transform: translateX(0); }
  .sidebar-collapsed .suite-sidebar { width: min(280px, 84vw); }
  .sidebar-collapsed .sidebar-brand { display: grid; }
  .sidebar-collapsed .sidebar-group-label,.sidebar-collapsed .sidebar-nav-label,.sidebar-collapsed .sidebar-footer > span:not(.sidebar-footer-dot),.sidebar-collapsed .sidebar-footer small { display: initial; }
  .sidebar-collapsed .sidebar-nav-item { padding: 7px 9px; grid-template-columns: 28px minmax(0,1fr) auto; justify-items: stretch; }
  .sidebar-collapsed .sidebar-nav-item .nav-count-badge { position: static; justify-self: end; }
  .sidebar-collapsed .sidebar-footer { display: grid; }
  .sidebar-collapse-button { display: none; }
  .app-topbar,.sidebar-collapsed .app-topbar { left: 0; min-height: 58px; padding: 7px 12px; }
  .mobile-menu-button { display: grid; }
  .sidebar-content.content-wrap,.sidebar-collapsed .sidebar-content.content-wrap { width: auto; margin: 0 12px 60px; padding-top: 78px; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 680; border: 0; background: rgba(20,35,27,.28); opacity: 0; pointer-events: none; display: block; transition: opacity .18s ease; }
  .sidebar-mobile-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .profile-summary small { display: none; }
  .topbar-context strong { max-width: 170px; }
}
@media (max-width: 520px) {
  .topbar-context strong { max-width: 125px; font-size: 12px; }
  .topbar-context small { display: none; }
  .app-topbar .profile-summary strong { max-width: 86px; }
  .sidebar-content.content-wrap { margin-left: 10px; margin-right: 10px; }
}


/* RC71 - Normal employee attendance history cleanup
   Summary chips (Dates / Employees) are hidden by rendering logic for plain
   employees. When absent, keep the month control compact and aligned left. */
.managed-history-toolbar.employee-summary-hidden {
  justify-content: flex-start;
}


/* =====================================================================
   RC72 - Group Master V2 dashboard
   Warm, professional cross-company oversight. Read-only by design.
   ===================================================================== */
.gmv2-shell{--gm-ink:#25352d;--gm-muted:#718078;--gm-line:#e2e8e4;--gm-soft:#f7faf8;--gm-warm:#fffaf2;display:grid;gap:18px}
.gmv2-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px 26px;border:1px solid #e2e8e4;border-radius:18px;background:linear-gradient(135deg,#fbfdfb 0%,#f4f9f5 62%,#fffaf3 100%)}
.gmv2-kicker{display:block;margin-bottom:6px;font-size: 11px;font-weight:900;letter-spacing:.11em;color:#668274}.gmv2-hero h1{margin:0;font-size:27px;line-height:1.15;color:#263b30}.gmv2-hero p{margin:7px 0 0;color:#708078;font-size: 13px}.gmv2-hero-meta{display:grid;gap:7px;justify-items:end;color:#6f7c75;font-size: 12px}.gmv2-hero-meta b{padding:6px 9px;border-radius:999px;background:#edf6ef;color:#477058;font-size: 11px}
.gmv2-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gmv2-summary-grid article,.gmv2-summary-grid>button{min-width:0;display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;padding:15px;border:1px solid var(--gm-line);border-radius:14px;background:#fff;text-align:left;color:inherit}.gmv2-summary-grid>button{cursor:pointer}.gmv2-summary-grid>button:hover,.gmv2-summary-grid>button:focus-visible{border-color:#a9c8b2;outline:none;background:#fbfdfb}.gmv2-summary-grid>button.has-attention{background:#fffaf2;border-color:#efd7ac}.gmv2-summary-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#eef6f0;color:#3d7552;font-size:17px;font-weight:900}.gmv2-summary-grid .has-attention .gmv2-summary-icon{background:#fff0d9;color:#a86b17}.gmv2-summary-grid div{display:grid;gap:2px}.gmv2-summary-grid small{font-size: 11px;color:#75827a}.gmv2-summary-grid strong{font-size:23px;color:#263c30;line-height:1}.gmv2-summary-grid em{font-style:normal;font-size: 11px;color:#8a968f}
.gmv2-panel{padding:18px;border:1px solid var(--gm-line);border-radius:16px;background:#fff}.gmv2-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.gmv2-panel-heading h2{margin:0;color:#2b3d33;font-size:16px}.gmv2-panel-heading p{margin:4px 0 0;color:#7a8780;font-size: 12px;line-height:1.45}.gmv2-panel-heading .gmv2-kicker{margin-bottom:4px}.gmv2-total-attention{min-width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff0dc;color:#a96512;font-size:16px;font-weight:900}
.gmv2-attention-list{display:grid;gap:7px}.gmv2-attention-list>button{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;width:100%;padding:10px 11px;border:1px solid #eee5d7;border-radius:10px;background:#fffdf9;text-align:left;color:inherit}.gmv2-attention-list>button:hover,.gmv2-attention-list>button:focus-visible{border-color:#e1bd80;outline:none}.gmv2-attention-list>button>span:nth-child(2){display:grid;gap:2px}.gmv2-attention-list strong{font-size: 12px}.gmv2-attention-list small{font-size: 11px;color:#838f88}.gmv2-attention-list b{min-width:26px;height:26px;display:grid;place-items:center;border-radius:999px;background:#fff0dc;color:#9d6115;font-size: 12px}.gmv2-attention-list i{font-size: 11px;font-style:normal;color:#66766d}.gmv2-clear{display:flex;align-items:center;gap:10px;padding:11px;border-radius:11px;background:#f3f8f4;color:#406b50}.gmv2-clear>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e4f2e7;font-weight:900}.gmv2-clear>div{display:grid;gap:2px}.gmv2-clear strong{font-size: 12px}.gmv2-clear small{font-size: 11px;color:#718079}
.gmv2-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.gmv2-company-card{display:grid;gap:10px;padding:14px;border:1px solid #e2e8e4;border-radius:13px;background:#fbfcfb}.gmv2-company-card.selected{border-color:#98bea5;box-shadow:inset 0 0 0 1px #cde0d3}.gmv2-company-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.gmv2-company-card-top em{font-size: 11px;font-style:normal;color:#4e775d}.gmv2-company-card-top em.inactive{color:#8c6969}.gmv2-company-card h3{margin:0;font-size: 13px;color:#2e4036}.gmv2-company-pill{display:inline-flex;align-items:center;justify-content:center;max-width:120px;padding:4px 7px;border:1px solid #cfe1d5;border-radius:999px;background:#eef6f0;color:#467058;font-size: 11px;font-weight:900;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gmv2-company-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.gmv2-company-stats>span{display:grid;gap:2px;padding:8px;border-radius:9px;background:#fff}.gmv2-company-stats>span.attention{background:#fff5e8}.gmv2-company-stats strong{font-size:14px;color:#30483a}.gmv2-company-stats small{font-size: 10px;color:#7e8b84}.gmv2-company-open{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0 0;border:0;border-top:1px solid #e6ebe8;background:transparent;color:#4c705a;font-size: 11px;font-weight:800;text-align:left}.gmv2-company-open span{font-size:13px}
.gmv2-date-nav{display:grid;grid-template-columns:34px minmax(145px,auto) 34px;gap:5px}.gmv2-date-nav button{border:1px solid #dfe6e2;border-radius:8px;background:#fff;color:#50665a;font-weight:900}.gmv2-date-nav input{min-height:34px;padding:5px 8px;border:1px solid #dfe6e2;border-radius:8px;background:#fff;font-size: 12px;color:#3f5147}.gmv2-attendance-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.gmv2-company-filters{display:flex;gap:6px;flex-wrap:wrap}.gmv2-company-filters button,.gmv2-status-row button{min-height:30px;padding:6px 9px;border:1px solid #dfe6e2;border-radius:999px;background:#fff;color:#617068;font-size: 11px;font-weight:800}.gmv2-company-filters button.active,.gmv2-status-row button.active{border-color:#9bc0a7;background:#edf6ef;color:#38684a}.gmv2-company-dot{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#7ca98a}.gmv2-search{display:grid;gap:4px;min-width:190px;color:#78857e;font-size: 11px;font-weight:800;text-transform:uppercase}.gmv2-search input{min-height:34px;padding:7px 10px;border:1px solid #dfe6e2;border-radius:8px;background:#fff;font-size: 12px;text-transform:none}.gmv2-status-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 0;border-top:1px solid #edf0ee}.gmv2-attendance-count{margin-left:auto;color:#7a8780;font-size: 11px}.gmv2-attendance-count strong{font-size: 12px;color:#43564b}.gmv2-attendance-count b{color:#a66516}.gmv2-attendance-table table{min-width:760px}.gmv2-attendance-table th{font-size: 11px}.gmv2-attendance-table td{font-size: 11px}.gmv2-person{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:150px}.gmv2-person>div{display:grid;gap:1px;min-width:0}.gmv2-person strong{font-size: 11px}.gmv2-person small{font-size: 10px;color:#859089}.gmv2-loading,.gmv2-empty{min-height:110px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#7a8780}.gmv2-loading p,.gmv2-empty span{margin:0;font-size: 11px}.gmv2-empty strong{font-size: 12.5px;color:#4c5e54}
.gmv2-shell .group-company-detail{margin-top:0;padding-top:3px}.gmv2-shell .group-detail-heading{padding:16px 18px;border:1px solid #e2e8e4;border-radius:14px 14px 0 0;background:#fbfcfb}.gmv2-shell .group-detail-grid{margin-top:-14px;padding:0 0 0}
@media(max-width:1050px){.gmv2-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gmv2-company-grid{grid-template-columns:1fr}.gmv2-attendance-toolbar{align-items:stretch;flex-direction:column}.gmv2-search{min-width:0;width:100%}}
@media(max-width:700px){.gmv2-hero{align-items:flex-start;flex-direction:column;padding:18px}.gmv2-hero h1{font-size:22px}.gmv2-hero-meta{justify-items:start}.gmv2-summary-grid{grid-template-columns:1fr 1fr}.gmv2-summary-grid article,.gmv2-summary-grid>button{grid-template-columns:32px 1fr;padding:11px}.gmv2-summary-icon{width:32px;height:32px}.gmv2-summary-grid strong{font-size:19px}.gmv2-panel{padding:13px}.gmv2-panel-heading{flex-direction:column}.gmv2-date-nav{width:100%;grid-template-columns:36px 1fr 36px}.gmv2-attention-list>button{grid-template-columns:auto minmax(0,1fr) auto}.gmv2-attention-list i{display:none}.gmv2-company-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.gmv2-attendance-count{width:100%;margin-left:0}.gmv2-person{min-width:130px}}
@media(max-width:430px){.gmv2-summary-grid{grid-template-columns:1fr}.gmv2-company-stats{grid-template-columns:1fr 1fr 1fr}}

/* =====================================================================
   SHIFTLY V2 FOUNDATION - RC73
   Professional + homely + calm + trustworthy
   ===================================================================== */
:root{
  --v2-canvas:#f7f4ef;
  --v2-surface:#fffdf9;
  --v2-surface-strong:#ffffff;
  --v2-sage:#a7bfa6;
  --v2-sage-soft:#eef4ec;
  --v2-forest:#2e4d3c;
  --v2-forest-2:#416552;
  --v2-ink:#2b2b2b;
  --v2-muted:#7b746d;
  --v2-line:#e7e0d8;
  --v2-line-strong:#d8d0c7;
  --v2-amber:#b77522;
  --v2-amber-soft:#fff3df;
  --v2-red:#b8493f;
  --v2-red-soft:#fcecea;
  --v2-blue:#4f7396;
  --v2-blue-soft:#edf4f8;
  --v2-shadow:0 12px 32px rgba(64,53,43,.055);
  --v2-radius-lg:18px;
  --v2-radius-md:13px;
  --v2-radius-sm:9px;
}

html,body{background:var(--v2-canvas);color:var(--v2-ink)}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:-.005em}
button,input,textarea,select{font-family:inherit}
.app-shell,.sidebar-layout{background:var(--v2-canvas)}
.content-wrap.sidebar-content{padding-top:22px;padding-bottom:42px}

/* App shell */
.suite-sidebar{background:#fbfaf7;border-right:1px solid var(--v2-line);box-shadow:none}
.sidebar-brand-row{border-bottom:1px solid var(--v2-line)}
.sidebar-brand small{color:#8a827a}
.sidebar-collapse-button,.mobile-menu-button{border:1px solid var(--v2-line);border-radius:10px;background:#fffdf9;color:var(--v2-forest)}
.sidebar-group-label{color:#9a9086;letter-spacing:.12em;font-weight:800}
.sidebar-nav-item{min-height:42px;border-radius:10px;color:#5f5a55;font-weight:650;transition:background .16s,color .16s,transform .16s}
.sidebar-nav-item:hover{background:#f3efe9;color:var(--v2-forest)}
.sidebar-nav-item.active{background:var(--v2-sage-soft);color:var(--v2-forest);box-shadow:inset 3px 0 0 var(--v2-forest)}
.sidebar-nav-icon{color:#6f7f72}
.sidebar-nav-item.active .sidebar-nav-icon{color:var(--v2-forest)}
.sidebar-footer{border-top:1px solid var(--v2-line);color:#8c847c}
.sidebar-footer-dot{background:var(--v2-sage)}
.nav-count-badge{background:#c7473c;color:#fff;border:2px solid #fbfaf7;box-shadow:none}
.app-topbar{min-height:62px;border-bottom:1px solid var(--v2-line);background:rgba(255,253,249,.96);backdrop-filter:blur(10px)}
.topbar-context strong{color:var(--v2-forest);font-size:13px}
.topbar-context small{color:#8b827a}
.profile-menu-toggle{border-color:var(--v2-line);background:#fffdf9;box-shadow:none}
.avatar{background:var(--v2-forest)}
.profile-summary strong{color:#35322f}.profile-summary small{color:#8b827a}
.profile-dropdown{border-color:var(--v2-line);background:#fffdf9;box-shadow:0 18px 44px rgba(67,54,42,.10)}
.profile-dropdown button:hover{background:#f3efe9}

/* Common content surfaces */
.section-heading.left h1,.management-heading h2,.management-heading h3,.personal-summary-heading h2{color:var(--v2-forest)}
.section-heading.left p,.management-heading p,.personal-summary-heading p,.subtle-note{color:var(--v2-muted)}
.eyebrow{color:#66806d;letter-spacing:.13em}
.management-card,.suite-list-card,.start-day-panel,.working-panel,.nonworking-panel,.status-section,.outstation-application-flow,.group-company-detail,.history-summary,.company-card,.profile-card{
  border-color:var(--v2-line)!important;
  background:var(--v2-surface)!important;
  box-shadow:none!important;
  border-radius:var(--v2-radius-md)!important;
}
.management-card:hover{box-shadow:none}

/* Buttons + forms */
.primary-button,.outstation-checkin-button,.start-day-button{border-radius:10px;background:var(--v2-forest);box-shadow:none}
.primary-button:hover,.outstation-checkin-button:hover,.start-day-button:hover{background:#223f31}
.secondary-button,.row-actions button,.management-heading button,.suite-record-row button{border-color:var(--v2-line-strong);border-radius:9px;background:#fffdf9;color:var(--v2-forest)}
.secondary-button:hover,.row-actions button:hover{background:#f3efe9}
input:not([type="checkbox"]):not([type="radio"]),textarea,select{border-color:var(--v2-line-strong)!important;border-radius:9px!important;background:#fff!important;color:var(--v2-ink)!important}
input:focus,textarea:focus,select:focus{border-color:#8eaa92!important;box-shadow:0 0 0 3px rgba(142,170,146,.14)!important;outline:none}
label{color:#625c56}

/* Tables */
.history-table-wrap,.table-wrap{border:1px solid var(--v2-line);border-radius:12px;background:#fff;overflow:auto}
table{border-collapse:separate;border-spacing:0}
thead th{background:#f7f4ef!important;color:#746d66!important;border-bottom:1px solid var(--v2-line)!important;font-weight:800;letter-spacing:.055em}
tbody td{border-bottom:1px solid #eee9e3!important;color:#393632}
tbody tr:last-child td{border-bottom:0!important}
@media (hover:hover) and (pointer:fine){tbody tr:hover td{background:#fdfbf7}}

/* Status language */
.notification-status-pill.status-action-required,.status-action-required{background:var(--v2-amber-soft)!important;color:#9a6119!important;border-color:#efd7ad!important}
.notification-status-pill.status-approved,.status-approved{background:#edf6ef!important;color:#437051!important;border-color:#cfe1d4!important}
.notification-status-pill.status-rejected,.status-rejected{background:var(--v2-red-soft)!important;color:#a54239!important;border-color:#efc9c5!important}
.notification-status-pill.status-info,.status-info{background:var(--v2-blue-soft)!important;color:#496d8c!important;border-color:#d1e0ea!important}

/* Home notification cards */
.home-notification-stack{gap:9px;margin:0}
.home-notification-card{border-radius:12px!important;box-shadow:none!important;background:#fffdf9!important}
.home-notification-card.status-action-required{border-color:#ead3af!important;background:#fffaf2!important}
.home-notification-card.status-approved{border-color:#cee0d2!important;background:#f8fbf8!important}
.home-notification-card.status-rejected{border-color:#ebc8c4!important;background:#fff8f7!important}
.home-notification-card.status-info{border-color:#d7e2e9!important;background:#f8fbfd!important}
.home-notification-action{border-radius:8px!important}

/* ====================== V2 ROLE-AWARE HOME ====================== */
.v2-home{max-width:1180px!important;display:grid;gap:16px}
.v2-home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px 26px;border:1px solid var(--v2-line);border-radius:var(--v2-radius-lg);background:linear-gradient(135deg,#fffdf9 0%,#f5f1ea 65%,#eef4ec 100%);box-shadow:var(--v2-shadow)}
.v2-home-hero>div:first-child{max-width:720px}
.v2-kicker{display:block;margin-bottom:6px;color:#6e806f;font-size: 11px;font-weight:900;letter-spacing:.13em}
.v2-home-hero h1{margin:0;color:var(--v2-forest);font-size:29px;line-height:1.12;letter-spacing:-.035em}
.v2-home-hero p{margin:8px 0 0;color:var(--v2-muted);font-size: 13px;line-height:1.55}
.v2-home-date{min-width:185px;padding:11px 13px;display:grid;gap:2px;border:1px solid rgba(216,208,199,.8);border-radius:12px;background:rgba(255,255,255,.65);text-align:right}
.v2-home-date span{color:#9b9187;font-size: 11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.v2-home-date strong{color:#4b4945;font-size: 12.5px}.v2-home-date small{color:#8a827a;font-size: 11px}
.v2-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.v2-metric-card{min-width:0;min-height:112px;padding:15px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;align-items:start;border:1px solid var(--v2-line);border-radius:14px;background:var(--v2-surface);color:inherit;text-align:left;box-shadow:none}
button.v2-metric-card{cursor:pointer}.v2-metric-card:hover,.v2-metric-card:focus-visible{border-color:#c4bdb5;outline:none;background:#fff}.v2-metric-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:var(--v2-sage-soft);color:var(--v2-forest);font-size:17px;font-weight:900}.v2-metric-copy{min-width:0;display:grid;gap:2px}.v2-metric-copy small{color:#847c74;font-size: 11px;font-weight:700}.v2-metric-copy strong{color:#2f3f36;font-size:24px;line-height:1.05;letter-spacing:-.035em}.v2-metric-copy em{margin-top:2px;color:#989087;font-size: 11px;font-style:normal;line-height:1.35}
.v2-metric-card.tone-amber{background:#fffaf2;border-color:#ecd9ba}.v2-metric-card.tone-amber .v2-metric-icon{background:var(--v2-amber-soft);color:#a46a1d}.v2-metric-card.tone-red{background:#fffafa;border-color:#ecd2cf}.v2-metric-card.tone-red .v2-metric-icon{background:var(--v2-red-soft);color:var(--v2-red)}.v2-metric-card.tone-blue .v2-metric-icon{background:var(--v2-blue-soft);color:var(--v2-blue)}
.v2-home-panel{padding:18px 19px;border:1px solid var(--v2-line);border-radius:16px;background:var(--v2-surface);box-shadow:none}
.v2-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:13px}.v2-panel-heading h2{margin:0;color:var(--v2-forest);font-size:16px;letter-spacing:-.015em}.v2-panel-heading p{margin:4px 0 0;color:var(--v2-muted);font-size: 11px;line-height:1.45}.v2-text-action{padding:6px 8px;border:0;background:transparent;color:#54715f;font-size: 11px;font-weight:800}
.v2-attendance-slot>.start-day-panel,.v2-attendance-slot>.working-panel,.v2-attendance-slot>.nonworking-panel,.v2-attendance-slot>.status-section{margin:0!important;box-shadow:none!important;border-color:#ede7df!important;background:#fbfaf7!important}
.v2-attendance-slot .start-day-panel{min-height:0;padding:22px}.v2-attendance-slot .start-day-panel h1{font-size:22px;color:var(--v2-forest)}
.v2-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v2-shortcut{min-height:58px;padding:11px 12px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #ece6df;border-radius:11px;background:#fbfaf7;color:inherit;text-align:left}.v2-shortcut:hover,.v2-shortcut:focus-visible{border-color:#c9c0b7;outline:none;background:#fff}.v2-shortcut>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#eef4ec;color:var(--v2-forest);font-weight:900}.v2-shortcut>div{display:grid;gap:2px}.v2-shortcut strong{color:#3b443e;font-size: 12px}.v2-shortcut small{color:#8e857d;font-size: 11px}.v2-shortcut b{color:#8fa194;font-size:13px}

/* Existing Group Master V2 brought into the same V2 language */
.gmv2-shell{--gm-ink:var(--v2-forest);--gm-muted:var(--v2-muted);--gm-line:var(--v2-line);--gm-soft:#fbfaf7;--gm-warm:#fffaf2}
.gmv2-hero{border-color:var(--v2-line)!important;background:linear-gradient(135deg,#fffdf9 0%,#f5f1ea 62%,#eef4ec 100%)!important;box-shadow:var(--v2-shadow)}
.gmv2-panel,.gmv2-summary-grid article,.gmv2-summary-grid>button,.gmv2-company-card{border-color:var(--v2-line)!important;background:var(--v2-surface)!important}
.gmv2-company-card{background:#fbfaf7!important}

/* Platform / management pages */
.platform-section,.admins-section,.documents-section,.assets-section,.notifications-section,.history-section,.tasks-section,.people-section,.company-section,.settings-section{max-width:1180px;margin-left:auto;margin-right:auto}
.platform-company-card,.admin-summary-grid article,.document-summary-grid article,.asset-summary-grid article,.people-summary-grid article{border-color:var(--v2-line)!important;background:var(--v2-surface)!important;box-shadow:none!important}

/* Sticky areas stay compact but warm */
.sticky-view-heading,.view-sticky-context,.documents-sticky-tabs,.sticky-document-heading,.attendance-management-sticky{background:rgba(247,244,239,.96)!important;backdrop-filter:blur(10px)}
.module-tabs{border-color:var(--v2-line)!important;background:#f1ede7!important}.module-tabs button{border-radius:8px!important}.module-tabs button.active{background:#fffdf9!important;color:var(--v2-forest)!important;box-shadow:none!important}

/* Login is part of the product too */
.login-screen{background:linear-gradient(145deg,#f7f4ef 0%,#fffdf9 56%,#eef4ec 100%)}
.login-box{border-color:var(--v2-line);border-radius:18px;background:rgba(255,253,249,.95);box-shadow:0 20px 60px rgba(61,49,39,.075)}
.login-box h1{color:var(--v2-forest)}
.auth-switch{background:#eeeae4}.auth-switch button.active{color:var(--v2-forest);background:#fffdf9}
.logo-word{color:var(--v2-forest)}.logo-symbol{background:linear-gradient(145deg,#345c46,#91b18e);box-shadow:none}.logo-subtitle{color:#6d826e}

@media(max-width:1000px){
  .v2-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  /* RC76: keep all mobile page content permanently below the fixed app header.
     This fixes iPhone/PWA pages snapping back underneath the header after pull-down. */
  .content-wrap.sidebar-content{padding-top:calc(var(--shiftly-global-header-height) + 22px)}
  .v2-home{gap:12px}
  .v2-home-hero{align-items:flex-start;flex-direction:column;padding:18px}
  .v2-home-hero h1{font-size:24px}
  .v2-home-date{width:100%;min-width:0;text-align:left}
  .v2-metric-grid{grid-template-columns:1fr 1fr;gap:8px}
  .v2-metric-card{min-height:100px;padding:12px;grid-template-columns:34px 1fr}.v2-metric-icon{width:34px;height:34px}.v2-metric-copy strong{font-size:20px}
  .v2-home-panel{padding:13px}
  .v2-panel-heading{flex-direction:column}
  .v2-shortcut-grid{grid-template-columns:1fr}
}
@media(max-width:420px){
  .v2-metric-grid{grid-template-columns:1fr}
}


/* RC74 - Task Planner: page heading scrolls away; only workflow tabs remain sticky */
.task-page-heading { margin-bottom: 14px; }
.task-tabs-sticky {
  position: sticky;
  top: calc(var(--shiftly-global-header-height) + 8px);
  z-index: 135;
  margin: 0 0 16px;
  padding: 5px 0 6px;
  background: rgba(247,244,239,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(225,232,228,.9);
}
.task-tabs-sticky .task-planner-tabs { margin-bottom: 0; }
.task-tabs-sticky .task-planner-tabs button { font-size: 11px; }
@media (max-width: 760px) {
  .task-tabs-sticky { position: static; padding: 0; background: transparent; backdrop-filter: none; border-bottom: 0; }
  .task-tabs-sticky .task-planner-tabs { overflow-x: auto; }
  .task-tabs-sticky .task-planner-tabs button { min-width: max-content; font-size: 11px; }
}


/* RC75 - Documents: tabs stay sticky; page label/title/description scroll normally. */
.document-scroll-heading {
  position: static;
  margin-top: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

/* Keep the Documents tab strip as the only sticky document navigation context. */
.documents-sticky-tabs {
  position: sticky;
  top: calc(var(--shiftly-global-header-height) + 8px);
  z-index: 135;
}


/* Shiftly RC78: refined V2 app header
   Company context stays simple on the left; the current page label is no longer
   repeated under it. Profile metadata is reduced to one concise role line. */
.app-topbar{
  min-height:60px;
  padding:7px 20px;
  align-items:center;
  gap:16px;
}
.topbar-left{min-width:0;flex:1;gap:10px}
.topbar-context{display:flex;align-items:center;min-width:0}
.topbar-context strong{
  max-width:min(44vw,460px);
  font-size: 13px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.01em;
}
.topbar-context small{display:none!important}
.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.app-topbar .profile-menu-toggle{
  min-height:40px;
  max-width:min(390px,48vw);
  padding:4px 9px 4px 4px;
  gap:8px;
  border-radius:14px;
}
.app-topbar .profile-menu-toggle .avatar{width:32px;height:32px;flex:0 0 32px;font-size: 12px}
.app-topbar .profile-summary{min-width:0;gap:1px}
.app-topbar .profile-summary strong{
  max-width:250px;
  font-size: 12px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-topbar .profile-summary small{
  display:block;
  margin-top:1px;
  font-size: 11px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sidebar-content.content-wrap{padding-top:82px}

@media(max-width:900px){
  .app-topbar,.sidebar-collapsed .app-topbar{min-height:58px;padding:7px 10px}
  .topbar-context strong{max-width:36vw;font-size: 12.5px}
  .app-topbar .profile-menu-toggle{max-width:50vw;min-height:40px;padding:4px 7px 4px 4px}
  .app-topbar .profile-summary strong{max-width:110px;font-size: 12px}
  .app-topbar .profile-summary small{display:none}
  .sidebar-content.content-wrap,.sidebar-collapsed .sidebar-content.content-wrap{padding-top:80px}
}
@media(max-width:520px){
  .topbar-context strong{max-width:31vw;font-size: 12px}
  .app-topbar .profile-menu-toggle{max-width:48vw}
  .app-topbar .profile-summary strong{max-width:82px}
}


/* RC83 - Outstation Check Out + permanent archived document cleanup */
.outstation-checkout-backdrop{z-index:1200;align-items:flex-start;padding-top:max(28px,calc(env(safe-area-inset-top,0px) + 20px));overflow:auto}
.outstation-checkout-modal{width:min(720px,calc(100% - 28px));max-height:none;margin:0 auto 32px;padding:22px;border-radius:22px;background:var(--v2-surface,#fffdf9)}
.outstation-checkout-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.outstation-checkout-modal-heading h2{margin:4px 0 0;color:var(--v2-forest,#294b3a);font-size:1.35rem}
.outstation-checkout-choice{display:grid;gap:14px}
.outstation-checkout-status{margin-top:12px}
.outstation-checkout-status.status-pending{border-color:#e8c879;background:#fff9e9}
.outstation-checkout-status.status-approved{border-color:#bcd8c3;background:#f3faf4}
.outstation-checkout-status.status-rejected{border-color:#e5b7b0;background:#fff4f2}
.document-actions .danger-action{border-color:#e3b0aa;color:#a33d32;background:#fff7f5}
.document-actions .danger-action:hover{background:#fff0ed}
@media (max-width:700px){.outstation-checkout-modal{width:calc(100% - 18px);padding:16px;border-radius:18px}.outstation-checkout-backdrop{padding-top:max(78px,calc(env(safe-area-inset-top,0px) + 70px))}}

/* ================================================================
   RC85 - Compact Outstation oversight cards
   - Reduce vertical footprint of each request card.
   - Increase important text for easier scanning.
   - Make status (Approved/Pending/Rejected) more prominent than
     secondary Open Map / View Photo actions.
   ================================================================ */
.outstation-review-panel .outstation-review-item {
  padding: 10px 12px;
  border-radius: 8px;
}
.outstation-review-panel .emergency-review-title {
  gap: 10px;
  align-items: center;
}
.outstation-review-panel .emergency-review-title > div {
  gap: 2px;
}
.outstation-review-panel .emergency-review-title strong {
  font-size: 12.5px;
  line-height: 1.25;
}
.outstation-review-panel .emergency-review-title small {
  font-size: 11px;
  line-height: 1.3;
}
.outstation-review-panel .emergency-review-title > span {
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
}
.outstation-review-panel .outstation-review-item > p {
  margin: 5px 0 6px;
  font-size: 11px;
  line-height: 1.4;
}
.outstation-review-panel .outstation-review-facts {
  margin: 5px 0;
  gap: 5px;
}
.outstation-review-panel .outstation-review-facts span {
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.3;
}
.outstation-review-panel .outstation-review-links {
  margin-top: 4px;
  gap: 5px;
}
.outstation-review-panel .outstation-review-links a,
.outstation-review-panel .outstation-review-links button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}
.outstation-review-panel .emergency-reviewed-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.3;
}
@media (max-width: 620px) {
  .outstation-review-panel .outstation-review-item { padding: 10px; }
  .outstation-review-panel .emergency-review-title { align-items: start; }
  .outstation-review-panel .emergency-review-title strong { font-size: 13px; }
  .outstation-review-panel .emergency-review-title > span { font-size: 11px; }
}


/* =====================================================================
   RC86 - V2 readable + compact system baseline
   Principle: readable first, compact second.
   - No normal interface text below 10px.
   - Body/supporting copy is easier to scan.
   - Statuses and controls are legible at a glance.
   - Vertical space is recovered through tighter padding/gaps and less
     redundant heading space, not tiny typography.
   ===================================================================== */
:root{
  --v2-font-body:13px;
  --v2-font-control:12px;
  --v2-font-secondary:11px;
  --v2-font-meta:10px;
  --v2-font-card-title:14px;
  --v2-font-section:18px;
}
body{font-size:var(--v2-font-body);line-height:1.45}

/* General readability floor */
small{font-size:var(--v2-font-secondary)!important;line-height:1.35}
label{line-height:1.3}
.history-table-wrap th,.table-wrap th,.gmv2-attendance-table th{font-size:11px!important}
.history-table-wrap td,.table-wrap td,.gmv2-attendance-table td{font-size:12px!important}

/* Navigation + header remain compact but comfortably legible */
.sidebar-group-label{font-size:10px!important}
.sidebar-nav-item{font-size:12.5px;line-height:1.25}
.sidebar-footer>span:not(.sidebar-footer-dot){font-size:11px!important}
.sidebar-footer small{font-size:10px!important}
.nav-count-badge,.sidebar-nav-item .nav-count-badge{font-size:10px!important;min-width:18px;min-height:18px}
.topbar-context strong{font-size:13px!important}
.app-topbar .profile-summary strong{font-size:12px!important}
.app-topbar .profile-summary small{font-size:10px!important}
.profile-dropdown button{font-size:12px}

/* Headings: clear, not oversized */
.section-heading{margin-bottom:18px}
.section-heading h1{font-size:26px}
.section-heading p{font-size:13px;line-height:1.45}
.eyebrow,.date-pill,.v2-kicker,.gmv2-kicker{font-size:11px!important}
.management-heading{padding-bottom:10px}
.management-heading h2{font-size:17px}
.management-heading p{margin-top:3px;font-size:12px!important;line-height:1.4}

/* Common cards recover space through padding instead of smaller type */
.management-card{padding:17px}
.compact-card{gap:13px}
.v2-home{gap:13px}
.v2-home-hero{padding:20px 22px}
.v2-home-hero p{font-size:13px!important}
.v2-home-panel{padding:15px 16px}
.v2-panel-heading{margin-bottom:10px}
.v2-panel-heading h2{font-size:17px}
.v2-panel-heading p{font-size:11px!important}
.v2-metric-card{min-height:98px;padding:12px}
.v2-metric-copy small{font-size:11px!important}
.v2-metric-copy em{font-size:10px!important}
.v2-shortcut{min-height:54px;padding:9px 11px}
.v2-shortcut strong{font-size:12px!important}
.v2-shortcut small{font-size:11px!important}

/* Forms and controls */
.auth-switch button,.module-tabs button,.task-planner-tabs button,.documents-sticky-tabs button,
.alerts-filter-bar button,.consumable-subnav button,.gmv2-company-filters button,.gmv2-status-row button,
.secondary-button,.compact-button,.row-actions button,.directory-row button,.document-actions button,
.record-edit-actions button,.history-test-remove,.home-notification-action,.outstation-review-links a,
.outstation-review-links button,.workplace-list button,.onboarding-file-actions button,
.workplace-access-list article button,.evidence-actions button,.task-review-actions button,
.task-template-actions button,.daily-plan-list button,.emergency-review-actions button,
.emergency-review-item>.secondary-button,.approval-history-item .secondary-button,
.approval-feed-details-body .secondary-button,.consumable-add-button{
  font-size:12px!important;
  line-height:1.2;
}
input:not([type="checkbox"]):not([type="radio"]),textarea,select{font-size:13px!important}

/* Statuses: prominent enough to read faster than secondary actions */
.table-status,.punctuality-pill,.admin-badge,.access-badge,.handover-status,.document-category,.archived-badge,
.record-badge,.role-badge,.task-review-status,.browser-alert-status,.notification-status-pill,
.outstation-application-heading>span,.asset-status-pill,.approval-decision-pill,.consumable-status-pill,
.office-pending-pill,.task-time-status,.home-notification-status{
  font-size:11px!important;
  line-height:1.1;
}

/* Tables + lists: denser rows, larger text */
.history-table-wrap th,.history-table-wrap td{padding:10px 10px}
.suite-record-row,.directory-row,.document-row,.onboarding-application,.role-template-list article,.workplace-list article{
  line-height:1.4;
}
.suite-record-row strong,.directory-row strong,.document-info strong,.role-template-list strong,.workplace-list strong,
.onboarding-list-row strong,.onboarding-application-heading strong,.workplace-access-list article strong{
  font-size:12.5px!important;
}

/* Attendance */
.attendance-card{padding:18px 22px 20px}
.card-title-row h1{font-size:20px}
.location-panel{margin-top:15px;padding:11px}
.location-panel strong{font-size:12.5px!important}
.location-panel span{font-size:11px!important}
.location-panel button{font-size:11px!important}
.clock-panel{margin:19px 0 13px;padding-top:16px}
.action-message{font-size:12px}
.history-sticky-context-compact .managed-history-toolbar>label{font-size:11px!important}
.history-sticky-context-compact .managed-history-summary small{font-size:10px!important}
.attendance-date-group-heading small,.attendance-employee-cell small{font-size:11px!important}

/* Alerts + approvals */
.browser-alert-kicker{font-size:10px!important}
.browser-alert-card p{font-size:12px!important}
.alerts-filter-bar button b{font-size:10px!important}
.home-notification-card{padding-top:12px;padding-bottom:12px}
.approval-history-heading p,.approval-history-feed-head p{font-size:12px!important}
.approval-history-stats small,.approval-history-times,.approval-feed-meta,.approval-feed-details summary,
.approval-feed-details-body p,.approval-feed-empty span{font-size:10.5px!important}

/* Outstation oversight */
.outstation-review-panel .outstation-review-item{padding:9px 11px}
.outstation-review-panel .emergency-review-title strong{font-size:13px!important}
.outstation-review-panel .emergency-review-title small{font-size:11px!important}
.outstation-review-panel .emergency-review-title>span{font-size:11.5px!important;padding:6px 10px}
.outstation-review-panel .outstation-review-item>p{font-size:11px!important;margin:4px 0 5px}
.outstation-review-panel .outstation-review-facts span{font-size:10.5px!important;padding:4px 7px}
.outstation-review-panel .emergency-reviewed-note{font-size:10.5px!important}

/* Tasks */
.task-tabs-sticky .task-planner-tabs button{font-size:12px!important}
.task-template-card small,.task-review-card>small,.daily-plan-list small,.worker-task-progress small,
.task-history-list small,.task-review-list small,.worker-review-results>article small{font-size:10.5px!important}
.task-review-card label,.task-history-list p,.worker-review-results>article p,.attendance-task-gate p{font-size:12px!important}
.task-plan-summary dt,.task-review-facts dt,.task-requirements dt{font-size:10px!important}
.task-plan-summary dd,.task-review-facts dd,.task-requirements dd{font-size:11.5px!important}

/* Documents / people / company / setup */
.document-summary-grid span,.file-picker>span,.permission-note,.invitation-company small,.onboarding-change-note,
.location-search-note,.location-search-results small,.location-search-results span,.menu-config-row>span,
.role-template-list p,.role-template-list small,.workplace-list small,.module-setting-row>span small,
.onboarding-file-grid small,.onboarding-list-row small,.onboarding-list-row code,
.onboarding-application-heading small,.onboarding-application dt,.onboarding-application dd,
.onboarding-review-note,.workplace-access-list article small,.map-attribution{
  font-size:10.5px!important;
  line-height:1.35;
}

/* Assets + consumables */
.asset-board-title>small,.asset-board-help,.asset-board-empty span,.asset-card-main small,
.asset-card-active-note span,.asset-handover-meta dt,.asset-handover-meta dd,.asset-date-note,
.consumable-list-main small,.consumable-detail-heading p,.consumable-available-block small,
.consumable-request-top small,.consumable-review-heading small,.consumable-request-numbers small,
.consumable-purpose small,.consumable-approver-note small,.consumable-review-item small,
.consumable-review-meta,.consumable-partial-note,.consumable-review-count,.consumable-review-item>span,
.consumable-stock-warning,.consumable-empty-state p{
  font-size:10.5px!important;
  line-height:1.35;
}
.asset-board-step,.asset-card-active-note strong,.asset-handover-inline-form label,.asset-completion-form label,
.consumable-request-form>label,.consumable-restock-form>label,.consumable-add-form>label,.consumable-review-note{
  font-size:11.5px!important;
}

/* Platform + Group Master */
.platform-company-heading span,.platform-company-heading em,.platform-module-row small,.platform-module-row label,
.group-summary-grid span,.group-company-metrics small,.group-master-admin-heading small,.group-company-access-row small{
  font-size:10.5px!important;
}
.gmv2-summary-grid small,.gmv2-attention-list small,.gmv2-clear small,.gmv2-company-card-top em,
.gmv2-company-pill,.gmv2-company-stats small,.gmv2-attendance-count,.gmv2-person small{
  font-size:10.5px!important;
}
.gmv2-company-open,.gmv2-search,.gmv2-person strong,.gmv2-loading p,.gmv2-empty span{font-size:12px!important}

/* Mobile: readable, with compact spacing rather than reduced type */
@media(max-width:700px){
  body{font-size:13px}
  .content-wrap.sidebar-content{padding-left:12px;padding-right:12px}
  .v2-home-hero{padding:16px}
  .v2-home-hero h1{font-size:24px}
  .v2-home-panel{padding:13px}
  .management-card{padding:14px}
  .history-table-wrap th,.history-table-wrap td{padding:9px 9px}
  .app-topbar .profile-summary strong{font-size:11.5px!important}
  .topbar-context strong{font-size:12px!important}
}


/* ==================================================================
   RC87 - Centered, balanced personal workday flow
   Keeps V2 readable/compact typography while making each attendance
   step feel intentional inside the wider role-based Home dashboard.
   ================================================================== */
.v2-attendance-slot {
  width: 100%;
  display: grid;
  justify-items: center;
  min-width: 0;
}

/* Start-of-day card: centered, never stretched just to fill the panel. */
.v2-attendance-slot > .start-day-panel {
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0 auto !important;
}

/* The next screen after Start my day. Keep the simple status choice
   compact, then allow more room only when Leave/Outstation details open. */
.v2-attendance-slot > .status-section {
  width: min(100%, 840px);
  max-width: 840px;
  margin: 0 auto !important;
  padding: 18px;
}
.v2-attendance-slot > .status-section.leave-detail-open {
  width: min(100%, 980px);
  max-width: 980px;
}
.v2-attendance-slot > .status-section > .section-heading {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.v2-attendance-slot > .status-section:not(.leave-detail-open) .status-choice-stack {
  width: 100%;
}
.v2-attendance-slot > .status-section .continue-button {
  width: min(100%, 300px);
}

/* Once a work status is confirmed, keep the actual attendance portal
   centred as the primary action area. */
.v2-attendance-slot > .attendance-section {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto !important;
}
.v2-attendance-slot > .attendance-section .attendance-card {
  width: 100%;
}
.v2-attendance-slot > .attendance-section .time-summary {
  width: 100%;
}

/* Leave/off-day confirmation uses the same visual centre line. */
.v2-attendance-slot > .nonworking-panel,
.v2-attendance-slot > .working-panel {
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0 auto !important;
}

/* Outstation and leave detail blocks should not feel stuck to one edge. */
.v2-attendance-slot .outstation-application-flow,
.v2-attendance-slot .leave-application-flow,
.v2-attendance-slot .switch-outstation-panel,
.v2-attendance-slot .office-verification-flow,
.v2-attendance-slot .office-network-fallback {
  width: 100%;
  min-width: 0;
}

/* Attendance modal steps (Outstation Check Out, photo review, etc.) use
   a consistent readable width rather than a very wide dialog. */
.modal-backdrop .outstation-checkout-modal,
.modal-backdrop .modal-card.outstation-checkout-modal {
  width: min(calc(100% - 28px), 720px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .v2-attendance-slot > .status-section,
  .v2-attendance-slot > .status-section.leave-detail-open {
    width: min(100%, 760px);
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .v2-attendance-slot > .start-day-panel,
  .v2-attendance-slot > .status-section,
  .v2-attendance-slot > .status-section.leave-detail-open,
  .v2-attendance-slot > .attendance-section,
  .v2-attendance-slot > .nonworking-panel,
  .v2-attendance-slot > .working-panel {
    width: 100%;
    max-width: 100%;
  }
  .v2-attendance-slot > .status-section {
    padding: 14px;
  }
  .modal-backdrop .outstation-checkout-modal,
  .modal-backdrop .modal-card.outstation-checkout-modal {
    width: min(calc(100% - 20px), 720px);
  }
}

/* =====================================================================
   RC89 - Missed Check-In allowance, witness verification and SV review
   ===================================================================== */
.missed-checkin-offer,
.missed-checkin-inline,
.missed-checkin-status-card,
.missed-checkin-form-card {
  margin-top: 14px;
  border: 1px solid #dfe7e2;
  border-radius: 13px;
  background: #fbfdfb;
}
.missed-checkin-offer { padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.missed-checkin-offer > div { display: grid; gap: 3px; min-width: 0; }
.missed-checkin-offer span { color: #33483d; font-size: 13px; font-weight: 850; }
.missed-checkin-offer small { color: #728078; font-size: 11.5px; line-height: 1.45; }
.missed-checkin-offer button { min-height: 36px; padding: 0 12px; border: 1px solid #c8d9cf; border-radius: 9px; color: #2f7149; background: #f1f8f3; font-size: 12px; font-weight: 850; white-space: nowrap; }
.missed-checkin-offer button b { margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #dff0e4; font-size: 10.5px; }

.missed-checkin-inline { padding: 11px 12px; display: flex; align-items: center; gap: 10px; color: #58675f; }
.missed-checkin-inline > span:not(.spinner) { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 9px; background: #eef4f0; color: #54705f; font-weight: 900; }
.missed-checkin-inline > div { display: grid; gap: 2px; }
.missed-checkin-inline strong { color: #31453a; font-size: 12.5px; }
.missed-checkin-inline small { font-size: 11.5px; line-height: 1.45; }
.missed-checkin-inline.is-probation { border-color: #e8dfc6; background: #fffaf0; }
.missed-checkin-inline.is-probation > span { color: #866724; background: #f6ecd1; }
.missed-checkin-inline.is-empty { border-color: #ead8d8; background: #fff8f8; }
.missed-checkin-inline.is-loading .spinner { width: 20px; height: 20px; border-width: 2px; }

.missed-checkin-form-card { padding: 15px; display: grid; gap: 13px; background: #fff; box-shadow: 0 10px 24px rgba(26, 53, 38, .055); }
.missed-checkin-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.missed-checkin-form-heading h3 { margin: 3px 0 4px; color: #21352a; font-size: 17px; }
.missed-checkin-form-heading p { margin: 0; color: #718078; font-size: 11.5px; line-height: 1.45; }
.missed-checkin-balance { padding: 6px 9px; border-radius: 999px; color: #2f7149; background: #eaf6ed; font-size: 11px; font-weight: 900; white-space: nowrap; }
.missed-checkin-form-card > label { display: grid; gap: 6px; color: #4d5f55; font-size: 12px; font-weight: 800; }
.missed-checkin-form-card input,
.missed-checkin-form-card textarea { width: 100%; border: 1px solid #d6e0da; border-radius: 9px; outline: none; background: #fff; }
.missed-checkin-form-card input { min-height: 42px; padding: 8px 10px; }
.missed-checkin-form-card textarea { min-height: 74px; padding: 10px 11px; resize: vertical; }
.missed-checkin-form-card input:focus,
.missed-checkin-form-card textarea:focus { border-color: #72a985; box-shadow: 0 0 0 3px rgba(78, 148, 100, .1); }
.missed-checkin-explain { padding: 10px 11px; display: flex; gap: 9px; align-items: flex-start; border-radius: 9px; color: #53675c; background: #f3f7f4; }
.missed-checkin-explain > span { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #6a8f78; font-size: 11px; font-weight: 900; }
.missed-checkin-explain p { margin: 0; font-size: 11.5px; line-height: 1.5; }
.missed-checkin-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.missed-checkin-form-actions button { width: auto; min-width: 125px; min-height: 40px; }

.missed-checkin-status-card { padding: 13px; display: grid; gap: 8px; }
.missed-checkin-status-top { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; }
.missed-checkin-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #695323; background: #f7eecf; font-weight: 900; }
.missed-checkin-status-top > div { display: grid; gap: 1px; }
.missed-checkin-status-top small { color: #849088; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.missed-checkin-status-top strong { color: #2c4035; font-size: 13px; }
.missed-checkin-status-top > b { padding: 4px 7px; border-radius: 999px; color: #486054; background: #edf3ef; font-size: 10.5px; }
.missed-checkin-status-card p { margin: 0; color: #4b5d53; font-size: 11.5px; line-height: 1.45; }
.missed-checkin-status-card > span:not(.missed-checkin-symbol) { color: #6c7a72; font-size: 11.5px; line-height: 1.45; }
.missed-checkin-lock-note { color: #866724 !important; font-weight: 750; }
.missed-checkin-status-card.is-approved { border-color: #c7e1ce; background: #f5fbf6; }
.missed-checkin-status-card.is-approved .missed-checkin-symbol { color: #2d7447; background: #e2f3e7; }
.missed-checkin-status-card.is-rejected { border-color: #efd1d1; background: #fff8f8; }
.missed-checkin-status-card.is-rejected .missed-checkin-symbol { color: #a33e3e; background: #f8e5e5; }
.missed-checkin-status-card.is-supervisor { border-color: #ead9aa; background: #fffbf1; }

.missed-review-panel { margin-bottom: 16px; }
.missed-review-list { display: grid; gap: 11px; }
.missed-review-card { padding: 13px; border: 1px solid #e0e7e3; border-radius: 12px; background: #fff; }
.missed-review-card.witness-card { border-color: #ead9aa; background: #fffdf6; }
.missed-review-card.supervisor-card { border-color: #d8e3dc; background: #fbfdfc; }
.missed-review-card.oversight-card { border-color: #dde5eb; background: #f9fbfd; }
.missed-review-heading { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.missed-review-heading .notification-status-pill { grid-row: 1 / span 2; align-self: start; }
.missed-review-heading strong { color: #263b30; font-size: 13.5px; }
.missed-review-heading small { color: #75827b; font-size: 11px; }
.missed-review-card > p { margin: 10px 0 0; color: #4e6156; font-size: 12px; line-height: 1.5; }
.missed-review-reason { margin-top: 10px; padding: 9px 10px; display: grid; gap: 2px; border-radius: 8px; background: #f3f7f4; }
.missed-review-reason span { color: #839088; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.missed-review-reason strong { color: #405248; font-size: 11.5px; line-height: 1.45; }
.missed-review-actions { margin-top: 11px; display: flex; justify-content: flex-end; gap: 8px; }
.missed-review-actions button { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; font-weight: 850; }
.missed-review-actions button:disabled { opacity: .5; cursor: not-allowed; }
.missed-review-facts { margin-top: 10px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.missed-review-facts > span { padding: 8px 9px; display: grid; gap: 2px; border: 1px solid #e3e9e5; border-radius: 8px; color: #7a877f; background: #fff; font-size: 10px; }
.missed-review-facts strong { color: #34483d; font-size: 12px; }
.missed-witness-list { margin-top: 10px; display: grid; gap: 6px; }
.missed-witness-row { padding: 8px 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e3e9e5; border-radius: 8px; background: #fff; }
.missed-witness-row > span { display: grid; gap: 2px; }
.missed-witness-row strong { color: #33463c; font-size: 11.5px; }
.missed-witness-row small { color: #79877f; font-size: 10.5px; }
.missed-witness-row b { font-size: 10px; color: #66756c; }
.missed-witness-row.status-confirmed { border-color: #cfe3d4; background: #f6fbf7; }
.missed-witness-row.status-confirmed b { color: #2d7649; }
.missed-witness-row.status-denied { border-color: #ead7d7; background: #fff9f9; }
.missed-witness-row.status-denied b { color: #a04a4a; }
.missed-manual-time { margin-top: 11px; display: grid; gap: 5px; color: #485b50; font-size: 11.5px; font-weight: 800; }
.missed-manual-time input { width: min(230px,100%); min-height: 40px; padding: 7px 9px; border: 1px solid #d6e0da; border-radius: 8px; background: #fff; }
.missed-manual-time small { color: #77857d; font-size: 10.5px; font-weight: 500; line-height: 1.4; }
.missed-auto-time { margin-top: 11px; padding: 9px 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; border-radius: 8px; color: #53675c; background: #edf6f0; }
.missed-auto-time span { font-size: 10.5px; }
.missed-auto-time strong { color: #2e7047; font-size: 13px; }
.missed-auto-time small { grid-column: 1 / -1; font-size: 10.5px; line-height: 1.4; }

.missed-eligibility-list { display: grid; gap: 7px; }
.missed-eligibility-list article { padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #e3e9e5; border-radius: 9px; background: #fff; }
.missed-eligibility-list article > span:first-child { display: grid; gap: 2px; }
.missed-eligibility-list strong { color: #34483d; font-size: 12px; }
.missed-eligibility-list small { color: #7a877f; font-size: 10.5px; }
.missed-eligibility-actions { display: flex; align-items: center; gap: 8px; }
.missed-eligibility-actions em { padding: 4px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 900; }
.missed-eligibility-actions em.eligible { color: #2c7347; background: #e7f5eb; }
.missed-eligibility-actions em.probation { color: #886a26; background: #f8efd8; }
.missed-eligibility-actions button { min-height: 32px; padding: 0 9px; border: 1px solid #d1ddd6; border-radius: 7px; color: #4b6055; background: #fff; font-size: 10.5px; font-weight: 800; }

@media (max-width: 700px) {
  .missed-checkin-offer { align-items: stretch; flex-direction: column; }
  .missed-checkin-offer button { width: 100%; }
  .missed-checkin-form-heading { flex-direction: column; }
  .missed-checkin-form-actions { flex-direction: column-reverse; }
  .missed-checkin-form-actions button { width: 100%; }
  .missed-review-facts { grid-template-columns: 1fr; }
  .missed-review-actions { flex-direction: column; }
  .missed-review-actions button { width: 100%; }
  .missed-eligibility-list article { align-items: stretch; flex-direction: column; }
  .missed-eligibility-actions { justify-content: space-between; }
}

/* =====================================================================
   RC90 - PRIVATE VERIFICATION PHOTO LIBRARY
   ===================================================================== */
.verification-photo-page{max-width:1180px;margin:0 auto;padding-bottom:32px}
.verification-photo-access-note{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px;padding:14px 16px;border:1px solid #d8e4da;border-radius:16px;background:#f8fbf8}
.verification-photo-access-note>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:#e8f2e9;color:#28533c;font-size:20px}
.verification-photo-access-note strong{display:block;color:#1f3e2e;font-size:14px;margin-bottom:3px}
.verification-photo-access-note p{margin:0;color:#5f6f64;font-size:12px;line-height:1.45}
.verification-photo-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(210px,.7fr) auto;gap:12px;align-items:end;margin-bottom:16px}
.verification-photo-controls label{display:grid;gap:6px;color:#53645a;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.verification-photo-controls input,.verification-photo-controls select{width:100%;min-height:42px;border:1px solid #d4ddd6;border-radius:12px;background:#fff;padding:9px 12px;color:#25342b;font:inherit;font-size:13px;text-transform:none;letter-spacing:0;font-weight:500}
.verification-photo-total{min-width:145px;padding:9px 14px;border:1px solid #dfe7e1;border-radius:14px;background:#fff;text-align:right}
.verification-photo-total span{display:block;color:#728078;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.verification-photo-total strong{display:block;color:#254c36;font-size:23px;line-height:1.05;margin-top:3px}
.verification-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.verification-folder-card{width:100%;display:grid;grid-template-columns:50px 1fr auto;gap:12px;align-items:center;text-align:left;padding:14px;border:1px solid #dde5df;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(31,62,46,.04);cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.verification-folder-card:hover{transform:translateY(-1px);border-color:#b9cdbf;box-shadow:0 8px 22px rgba(31,62,46,.08)}
.verification-folder-icon{display:grid;place-items:center;width:48px;height:42px;border-radius:12px;background:#eef5ef;color:#2b5c40;font-size:22px}
.verification-folder-icon.open{width:54px;height:48px;font-size:25px}
.verification-folder-copy{min-width:0;display:block}
.verification-folder-copy strong{display:block;color:#24392d;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.verification-folder-copy small{display:block;margin-top:3px;color:#6f7b73;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.verification-folder-copy em{display:block;margin-top:7px;color:#42634d;font-size:11px;font-style:normal;font-weight:700}
.verification-folder-arrow{color:#7b9182;font-size:24px;padding:0 4px}
.verification-photo-folder-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.verification-photo-folder-toolbar>span{color:#65736a;font-size:12px;font-weight:700}
.verification-photo-employee-header{display:flex;gap:14px;align-items:center;margin-bottom:16px;padding:4px 2px}
.verification-photo-employee-header .eyebrow{display:block;margin-bottom:3px}
.verification-photo-employee-header h1{margin:0;color:#20392b;font-size:24px;line-height:1.1}
.verification-photo-employee-header p{margin:5px 0 0;color:#68766d;font-size:12px}
.verification-photo-record-list{display:grid;gap:12px}
.verification-photo-record{padding:15px 16px}
.verification-photo-record-main{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.verification-photo-record-main h3{margin:4px 0 2px;color:#263d30;font-size:15px}
.verification-photo-record-main small{color:#77827b;font-size:11px}
.verification-photo-type{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf4ee;color:#315943;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.verification-photo-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap}
.verification-photo-status.approved{background:#e7f5eb;color:#22643c}
.verification-photo-status.rejected{background:#fae9e9;color:#973838}
.verification-photo-status.pending{background:#fff3db;color:#8a5d12}
.verification-photo-status.neutral{background:#eef1ef;color:#607068}
.verification-photo-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin-top:13px;padding-top:12px;border-top:1px solid #edf1ee}
.verification-photo-meta span{display:grid;gap:2px;color:#66736b;font-size:11px}
.verification-photo-meta b{color:#344b3c;font-size:10px;text-transform:uppercase;letter-spacing:.035em}
.verification-photo-note{display:grid;gap:3px;margin-top:11px;padding:10px 12px;border-radius:12px;background:#f6f8f6;color:#5b6960;font-size:11px}
.verification-photo-note b{color:#334b3b;font-size:10px;text-transform:uppercase}
.verification-photo-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:12px}
.verification-photo-actions .primary-button{min-height:36px;padding:8px 13px;font-size:11px}
.verification-photo-map{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border:1px solid #cfdad2;border-radius:10px;background:#fff;color:#315943;text-decoration:none;font-size:11px;font-weight:700}
.verification-photo-empty{grid-column:1/-1;text-align:center;padding:28px 18px}
.verification-photo-empty strong,.verification-photo-denied strong{display:block;color:#30483a;font-size:15px}
.verification-photo-empty p,.verification-photo-denied p{margin:5px 0 0;color:#738078;font-size:12px}
.verification-photo-denied{max-width:660px}

@media (max-width:820px){
  .verification-photo-controls{grid-template-columns:1fr 1fr}
  .verification-photo-total{grid-column:1/-1;text-align:left}
  .verification-folder-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .verification-photo-page{padding-bottom:22px}
  .verification-photo-controls{grid-template-columns:1fr}
  .verification-photo-total{grid-column:auto}
  .verification-folder-card{grid-template-columns:44px 1fr auto;padding:12px;gap:10px}
  .verification-folder-icon{width:42px;height:38px}
  .verification-photo-record-main{align-items:flex-start}
  .verification-photo-meta{grid-template-columns:1fr}
  .verification-photo-actions{justify-content:stretch}
  .verification-photo-actions>*{flex:1;justify-content:center;text-align:center}
  .verification-photo-folder-toolbar{align-items:flex-start;flex-direction:column}
}

/* RC95 — Group Master company drill-down */
.gmv2-company-drilldown{display:grid;gap:12px;min-width:0}
.gmv2-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 0;color:#718078;font-size:12px;font-weight:700}
.gmv2-back-button{min-height:34px;padding:7px 11px;border:1px solid #d7e1db;border-radius:9px;background:#fff;color:#3f6750;font-size:12px;font-weight:850;cursor:pointer}
.gmv2-back-button:hover{border-color:#9fbbaa;background:#f2f7f3}
.gmv2-detail-heading{border-radius:14px!important;margin:0!important}
.gmv2-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.gmv2-detail-summary article{display:grid;gap:3px;padding:12px 14px;border:1px solid #e2e8e4;border-radius:11px;background:#fbfcfb}
.gmv2-detail-summary article.has-attention{background:#fff5e8;border-color:#efd9b9}
.gmv2-detail-summary small{font-size:11px;color:#74827b}
.gmv2-detail-summary strong{font-size:20px;line-height:1.05;color:#30483a}
.gmv2-drilldown-shell .group-detail-grid{margin-top:0!important}
@media(max-width:700px){.gmv2-detail-toolbar{align-items:flex-start;flex-direction:column}.gmv2-detail-summary{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:430px){.gmv2-detail-summary{grid-template-columns:1fr}.gmv2-detail-summary article{grid-template-columns:1fr auto;align-items:center}.gmv2-detail-summary strong{font-size:18px}}

/* RC96 — Neater Attendance-by-date month selector */
.group-attendance-card > .management-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,220px);
  align-items:end;
  gap:18px;
  padding-bottom:14px;
}
.group-attendance-card > .management-heading > div{
  display:grid;
  gap:5px;
  min-width:0;
}
.group-attendance-card > .management-heading h3{
  margin:0;
  font-size:16px;
  line-height:1.3;
  color:var(--v2-forest);
}
.group-attendance-card > .management-heading p{
  margin:0!important;
  font-size:12.5px!important;
  line-height:1.45;
}
.group-attendance-card .group-month-picker{
  display:grid;
  gap:6px;
  margin:0;
  font-size:11.5px;
  line-height:1.2;
  color:#66766d;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.group-attendance-card .group-month-picker input[type="month"]{
  width:100%;
  min-width:0;
  min-height:40px;
  padding:8px 10px;
  border:1px solid #ccd8d1;
  border-radius:8px;
  background:#fff;
  color:#263b30;
  font:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-transform:none;
  letter-spacing:0;
}
@media(max-width:680px){
  .group-attendance-card > .management-heading{
    grid-template-columns:1fr;
    align-items:stretch;
    gap:12px;
  }
  .group-attendance-card .group-month-picker{max-width:none}
}


/* =====================================================================
   RC97 — GROUP MASTER COMPACT CONTROL RHYTHM
   Scope: Master Account / Group Master experience only.
   Keeps labels readable while reducing unnecessary control height.
   ===================================================================== */
.gmv2-shell .gmv2-date-nav input[type="date"],
.gmv2-shell .gmv2-search input[type="search"],
.gmv2-shell .group-month-picker input[type="month"],
.group-master-section .group-month-picker input[type="month"]{
  min-height:32px!important;
  height:32px;
  padding:4px 9px!important;
  border-radius:8px;
  font-size:12.5px!important;
  line-height:1.2;
}
.gmv2-shell .gmv2-date-nav{
  grid-template-columns:32px minmax(145px,auto) 32px;
  gap:5px;
}
.gmv2-shell .gmv2-date-nav button{
  min-height:32px;
  height:32px;
  padding:4px 7px;
}
.gmv2-shell .gmv2-back-button{
  min-height:32px;
  height:32px;
  padding:5px 10px;
  font-size:12px;
}
.gmv2-shell .gmv2-company-filters button,
.gmv2-shell .gmv2-status-row button{
  min-height:28px;
  height:28px;
  padding:4px 9px;
  font-size:11.5px;
}
.gmv2-shell .gmv2-search{
  gap:5px;
  font-size:11.5px;
}
.group-master-section .group-month-picker{
  gap:5px;
  font-size:11.5px;
}
.gmv2-shell .gmv2-attendance-toolbar{
  gap:10px;
}
.gmv2-shell .gmv2-status-row{
  gap:5px;
  padding:7px 0;
}
.gmv2-shell .gmv2-detail-toolbar{
  gap:10px;
}
@media(max-width:700px){
  .gmv2-shell .gmv2-date-nav{
    grid-template-columns:32px minmax(0,1fr) 32px;
  }
  .gmv2-shell .gmv2-date-nav button,
  .gmv2-shell .gmv2-back-button{
    min-height:34px;
    height:34px;
  }
  .gmv2-shell .gmv2-date-nav input[type="date"],
  .gmv2-shell .gmv2-search input[type="search"],
  .gmv2-shell .group-month-picker input[type="month"],
  .group-master-section .group-month-picker input[type="month"]{
    min-height:34px!important;
    height:34px;
  }
}


/* =====================================================================
   RC98 — GROUP MASTER COMPLETE WORKSPACE
   Cross-company History + tabbed read-only company drill-down.
   ===================================================================== */
.gm-history-shell{display:grid;gap:14px}
.gm-history-toolbar{display:grid;grid-template-columns:minmax(170px,210px) minmax(0,1fr) auto;align-items:end;gap:14px;padding:13px 15px}
.gm-history-toolbar .group-month-picker{display:grid;gap:5px;margin:0;font-size:11.5px;line-height:1.2;color:#66766d;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.gm-history-toolbar .group-month-picker input{height:32px;min-height:32px;padding:4px 9px;border:1px solid #ccd8d1;border-radius:8px;background:#fff;font-size:12.5px;font-weight:700;text-transform:none;letter-spacing:0}
.gm-history-company-filters{align-self:end}
.gm-history-toolbar .managed-history-summary{justify-content:flex-end;align-self:stretch}
.gm-history-toolbar .managed-history-summary>span{min-width:70px}
.gm-company-tabs{display:flex;gap:5px;overflow-x:auto;padding:6px;border:1px solid #e0e7e2;border-radius:11px;background:#f8faf8;scrollbar-width:thin}
.gm-company-tabs button{flex:0 0 auto;min-height:30px;padding:5px 10px;border:0;border-radius:8px;background:transparent;color:#66746d;font-size:11.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.gm-company-tabs button:hover{background:#eef4ef;color:#315540}
.gm-company-tabs button.active{background:#315c44;color:#fff;box-shadow:0 1px 2px rgba(36,70,52,.14)}
.gm-company-overview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:12px}
.gm-company-overview-grid>.gm-company-list-card{grid-column:1/-1}
.gm-company-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.gm-company-kpis button{display:grid;gap:3px;padding:11px 12px;border:1px solid #e2e9e4;border-radius:10px;background:#fbfcfb;text-align:left;font:inherit;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.gm-company-kpis button:hover{border-color:#6e9a82;background:#f3f8f5;box-shadow:0 4px 12px rgba(45,91,68,.1);transform:translateY(-1px)}
.gm-company-kpis button:focus-visible{outline:3px solid rgba(45,105,76,.2);outline-offset:2px;border-color:#2f6b4f}
.gm-company-kpis button:active{transform:translateY(0)}
.gm-company-kpis button.has-attention{border-color:#efd9b9;background:#fff6e9}
.gm-company-kpis small{font-size:10.5px;color:#748178}
.gm-company-kpis strong{font-size:19px;line-height:1.05;color:#30483a}
.gm-company-kpis button span{margin-top:3px;font-size:10px;font-weight:700;color:#356b50}
.gm-company-operation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.gm-company-operation-card{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e2e8e4;border-radius:10px;background:#fbfcfb}
.gm-company-operation-card>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edf5ef;color:#315c44;font-weight:900}
.gm-company-operation-card div{display:grid;gap:1px;min-width:0}
.gm-company-operation-card small{font-size:10.5px;color:#748178;font-weight:700}
.gm-company-operation-card strong{font-size:17px;line-height:1.05;color:#30483a}
.gm-company-operation-card p{margin:0;font-size:10.5px;color:#7b877f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gm-company-employee-list{display:grid;gap:6px;margin-top:8px}
.gm-company-employee-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e3e9e5;border-radius:9px;background:#fff}
.gm-company-employee-list .avatar{width:34px;height:34px;font-size:11px}
.gm-company-employee-list article div{display:grid;gap:2px;min-width:0}
.gm-company-employee-list strong{font-size:12.5px;color:#263f31}
.gm-company-employee-list small{font-size:10.5px;color:#758078}
.gm-company-employee-list em{font-size:10px;font-style:normal;font-weight:800;color:#4d705d}
.gm-company-employee-list em.inactive{color:#9a6c5e}
.gm-company-module-summary{display:flex;align-items:flex-start;gap:14px;min-height:150px;padding:22px}
.gm-company-module-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#edf5ef;color:#315c44;font-size:22px;font-weight:900}
.gm-company-module-summary>div{display:grid;gap:5px}
.gm-company-module-summary h3,.gm-company-module-summary p{margin:0}
.gm-company-module-summary>div>strong{font-size:30px;line-height:1;color:#30483a;margin-top:8px}
.gm-company-module-summary>div>small{font-size:11px;color:#748078}
.gm-company-photo-grid{margin-top:8px}
.group-master-section .gm-company-list-card>.management-heading{align-items:center}
@media(max-width:900px){.gm-history-toolbar{grid-template-columns:1fr}.gm-history-toolbar .managed-history-summary{justify-content:flex-start}.gm-company-overview-grid{grid-template-columns:1fr}.gm-company-kpis{grid-template-columns:1fr 1fr}.gm-company-operation-grid{grid-template-columns:1fr}}
@media(max-width:520px){.gm-company-kpis{grid-template-columns:1fr 1fr}.gm-history-toolbar{padding:11px}.gm-company-tabs{margin-inline:-2px}.gm-company-employee-list article{grid-template-columns:34px minmax(0,1fr);}.gm-company-employee-list article em{grid-column:2}.gm-company-module-summary{padding:16px}.gm-company-kpis strong{font-size:17px}}


/* RC103 - Task Template Google Sheets migration; original Plan Builder flow retained */
.task-template-import-card{margin:0 0 16px;padding:18px;display:grid;gap:12px}
.task-template-import-card .management-heading{margin-bottom:0}
.task-template-import-card textarea{width:100%;min-height:118px;padding:12px 13px;border:1px solid #d5dfd9;border-radius:8px;background:#fff;font:inherit;line-height:1.5;resize:vertical}
.task-template-import-read{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.task-template-import-read small{color:var(--muted);font-size:12px}
.task-template-import-preview{display:grid;gap:12px;padding-top:4px}
.task-template-import-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dce8e1;border-radius:8px;background:#f7fbf8}
.task-template-import-summary>div{display:grid;gap:2px}.task-template-import-summary strong{font-size:13px}.task-template-import-summary small{color:var(--muted);font-size:11.5px}
.task-template-import-table-wrap{overflow:auto;border:1px solid #dce4df;border-radius:8px;background:#fff}
.task-template-import-table{width:100%;min-width:720px;border-collapse:collapse;font-size:12px}
.task-template-import-table th{padding:9px 10px;text-align:left;color:#59675f;background:#f6f8f7;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}
.task-template-import-table td{padding:10px;border-top:1px solid #edf1ee;vertical-align:top}
.task-template-import-table td:first-child{min-width:260px}.task-template-import-table strong,.task-template-import-table span{display:block}.task-template-import-table small{display:block;margin-top:3px;color:var(--muted);font-size:10.5px;line-height:1.35}
.task-template-import-table tr.is-duplicate{opacity:.62;background:#fafafa}
.task-template-import-status{display:inline-flex!important;width:max-content;padding:4px 7px;border-radius:999px;font-size:10px!important;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.task-template-import-status.new{color:#176333;background:#e8f6ec}.task-template-import-status.duplicate{color:#6a6257;background:#eeeae3}
.task-template-import-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.task-template-manual{padding:0!important;overflow:hidden}.task-template-manual>summary{padding:15px 17px;cursor:pointer;font-size:13px;font-weight:900;color:#234d38;list-style:none}.task-template-manual>summary::-webkit-details-marker{display:none}.task-template-manual>summary::after{content:"+";float:right}.task-template-manual[open]>summary::after{content:"−"}.task-template-manual-body{padding:0 16px 16px;border-top:1px solid #e6ece8}.task-template-manual .task-template-form{padding:14px 0 0;border:0;box-shadow:none;background:transparent}
.task-template-core{display:grid;gap:11px}.task-template-advanced{border:1px solid #dce5df;border-radius:8px;background:#fafcfb}.task-template-advanced>summary{padding:11px 12px;cursor:pointer;font-size:12px;font-weight:850}.task-template-advanced-body{padding:0 12px 12px;display:grid;gap:11px}
@media(max-width:760px){.task-template-import-card{padding:14px}.task-template-import-actions>*{flex:1}.task-template-import-summary{align-items:flex-start;flex-direction:column}.task-template-import-read{align-items:stretch;flex-direction:column}.task-template-import-read button{width:100%}}

/* RC106 - employee document reminder + Admin/HR incomplete document monitoring */
.document-reminder-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 15px 16px;
  border: 1px solid var(--border, #d9dee7);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.document-reminder-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff4d8;
  color: #8a5a00;
  font-size: 20px;
  font-weight: 800;
}
.document-reminder-banner strong,
.document-reminder-banner p,
.document-reminder-banner span { min-width: 0; }
.document-reminder-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #8a5a00;
}
.document-reminder-banner strong { display: block; font-size: 16px; line-height: 1.3; }
.document-reminder-banner p { margin: 4px 0 0; color: var(--muted, #68707d); font-size: 14px; line-height: 1.45; }
.document-reminder-action {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: var(--accent, #16785c);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.document-incomplete-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border, #d9dee7);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.document-incomplete-overview > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.document-incomplete-count {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff4d8;
  color: #8a5a00;
  font-size: 20px;
  font-weight: 800;
}
.document-incomplete-overview strong,
.document-incomplete-overview small { display: block; }
.document-incomplete-overview small { margin-top: 3px; color: var(--muted, #68707d); }
.document-incomplete-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4d8;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
}
.document-incomplete-status.is-clear { background: #e8f6ef; color: #166b4c; }
.document-employee-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e7d39b;
  border-radius: 14px;
  background: #fffaf0;
}
.document-employee-callout > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff0c2;
  color: #8a5a00;
  font-weight: 900;
}
.document-employee-callout p { margin: 4px 0 0; color: var(--muted, #68707d); font-size: 14px; }
.document-incomplete-list { margin-bottom: 16px; }
.document-row-overdue { border-left: 3px solid #b94747; }

@media (max-width: 720px) {
  .document-reminder-banner { grid-template-columns: auto minmax(0, 1fr); }
  .document-reminder-action { grid-column: 1 / -1; width: 100%; }
  .document-incomplete-overview { align-items: flex-start; flex-direction: column; }
}

/* RC107: Sick Leave request first, MC later */
.emergency-file-picker strong em {
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef4ef;
  color: #52685b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.sick-request-pill {
  display: inline-block;
  max-width: 190px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff4dd;
  color: #885d1f;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}
.sick-request-pill.sick-approved { background: #e6f5ea; color: #2b7044; }
.sick-request-pill.sick-rejected { background: #fde7e7; color: #923f3f; }
.sick-leave-review-item.status-awaiting-mc { border-color: #e7d7b3; background: #fffdf6; }
.sick-leave-review-item.status-awaiting-mc .emergency-review-title > span { color: #835b23; background: #fff0d5; }
.sick-leave-upload-box {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #e5ebe7;
}
.sick-leave-upload-box .emergency-file-picker.optional { margin-top: 0; padding-top: 0; border-top: 0; }
.sick-leave-upload-box .primary-button { width: auto; min-height: 36px; margin-top: 9px; padding: 0 13px; font-size: 11px; }
.sick-leave-note { display: block; margin: -2px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
@media (max-width: 620px) {
  .sick-leave-upload-box .primary-button { width: 100%; }
  .sick-request-pill { max-width: 150px; }
}


/* Shiftly RC112: Platform Owner task evidence assistance */
.platform-task-assist { border: 1px solid #cfded4; border-radius: 8px; background: #f7fbf8; overflow: hidden; }
.platform-task-assist > summary { padding: 10px 11px; color: #2f6544; font-size: 12px; font-weight: 900; cursor: pointer; }
.platform-task-assist-body { padding: 0 11px 11px; display: grid; gap: 10px; }
.platform-task-assist-body > p { margin: 0; color: #5d6b63; font-size: 11.5px; line-height: 1.45; }
.platform-task-assist-body > label { display: grid; gap: 5px; }
.platform-task-assist-body input[type="text"] { min-height: 38px; padding: 8px 9px; border: 1px solid #cfd9d2; border-radius: 6px; background: #fff; font: inherit; font-size: 12px; }
.platform-task-assist-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.platform-task-assist-row .file-picker { min-width: 0; }
.platform-task-assist-row .secondary-button { min-height: 38px; white-space: nowrap; }
.platform-task-assist-note { color: #66736c; font-size: 10.5px; line-height: 1.4; }
.platform-task-assist-complete { padding: 8px 10px; display: flex; gap: 7px; align-items: center; border: 1px solid #d5e5da; border-radius: 7px; background: #f4faf6; color: #3f6650; }
.platform-task-assist-complete > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2f8a50; font-size: 11px; font-weight: 900; }
.platform-task-assist-complete small { font-size: 11px; }
@media (max-width: 620px) { .platform-task-assist-row { grid-template-columns: 1fr; } .platform-task-assist-row .secondary-button { width: 100%; } }


/* Shiftly RC113: direct Ongoing Tasks management view */
.task-ongoing-shell { display: grid; gap: 14px; }
.task-ongoing-controls .management-heading, .task-ongoing-summary .management-heading { margin-bottom: 12px; }
.task-ongoing-summary { padding-bottom: 14px; }
.task-planner-tabs { flex-wrap: wrap; }
@media (max-width: 700px) { .task-planner-tabs button { flex: 1 1 calc(50% - 6px); } }


/* Shiftly RC114: recovery for task start when Before-photo upload failed */
.platform-task-recovery { border-color: #e3c889; background: #fffaf0; }
.platform-task-recovery > summary { color: #8a5b12; }
.platform-task-recovery input[type="datetime-local"] { min-height: 38px; padding: 8px 9px; border: 1px solid #d9d3c6; border-radius: 6px; background: #fff; font: inherit; font-size: 12px; }

/* =====================================================================
   RC120 - Attendance Check-In Reminder
   ===================================================================== */
.attendance-checkin-reminder{
  margin:0;
  padding:14px 15px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid #e6cf9d;
  border-left:4px solid #d69222;
  border-radius:12px;
  background:#fffaf1;
}
.attendance-checkin-reminder-icon{
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;
  background:#ffe9bd;color:#815600;
  font-size:18px;font-weight:900;
}
.attendance-checkin-reminder-copy{min-width:0;display:grid;gap:3px}
.attendance-checkin-reminder-copy>span{
  color:#9a6500;font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;
}
.attendance-checkin-reminder-copy strong{font-size:15px;line-height:1.3;color:#273b31}
.attendance-checkin-reminder-copy p{margin:0;color:#5f6d65;font-size:13px;line-height:1.45}
.attendance-checkin-reminder-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.attendance-checkin-reminder-actions button{
  min-height:40px;padding:9px 12px;border-radius:9px;font:inherit;font-size:12px;font-weight:850;cursor:pointer;
}
.attendance-reminder-late{border:1px solid #78ad88;background:#f5fbf6;color:#28643b}
.attendance-reminder-leave{border:1px solid #d8b26d;background:#fff;color:#815600}
.attendance-checkin-reminder-actions button:disabled{opacity:.55;cursor:wait}
.attendance-checkin-reminder-feedback{grid-column:2/-1;margin:0;color:#8a4d2f;font-size:12px}
.attendance-reminder-confirmation{
  margin:0;padding:11px 14px;display:flex;gap:9px;align-items:center;
  border:1px solid #c9dfcf;border-radius:11px;background:#f6fbf7;color:#315f3e;
}
.attendance-reminder-confirmation span{font-weight:900}
.attendance-reminder-confirmation p{margin:0;font-size:13px;line-height:1.45}
@media(max-width:760px){
  .attendance-checkin-reminder{grid-template-columns:34px minmax(0,1fr)}
  .attendance-checkin-reminder-icon{width:34px;height:34px}
  .attendance-checkin-reminder-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr;justify-content:stretch}
  .attendance-checkin-reminder-actions button{width:100%;min-height:44px;font-size:13px}
  .attendance-checkin-reminder-feedback{grid-column:1/-1}
}
\n\n/* RC124 - simplified task template builder */\n.task-template-simple-form{gap:14px}.task-simple-section{display:grid;gap:12px;padding:14px;border:1px solid #dfe7e2;border-radius:12px;background:#fff}.task-simple-section-heading{display:flex;gap:10px;align-items:flex-start}.task-simple-section-heading>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#2d6943;color:#fff;font-weight:900;font-size:12px;flex:0 0 auto}.task-simple-section-heading h3{margin:0;color:#173d2b;font-size:15px}.task-simple-section-heading p{margin:3px 0 0;color:#718078;font-size:12px}.task-requirement-card{display:grid;gap:10px;padding:12px;border:1px solid #dfe7e2;border-radius:10px;background:#fbfdfb}.task-requirement-title{display:flex;flex-direction:column;gap:2px}.task-requirement-title strong{font-size:13px;color:#244d38}.task-requirement-title small,.task-requirement-note{font-size:11.5px;color:#718078;margin:0}.task-mode-buttons{display:flex;flex-wrap:wrap;gap:7px}.task-mode-button{padding:8px 10px;border:1px solid #cbd8d0;border-radius:8px;background:#fff;color:#365247;font-size:12px;font-weight:800}.task-mode-button.is-active{background:#e9f5ed;border-color:#2d6943;color:#245d3b}.task-requirement-body{display:grid;gap:9px}.task-saved-choice-block{display:grid;gap:6px}.task-saved-choice-block>small{font-size:11px;color:#718078;font-weight:750}.task-quick-chips{display:flex;flex-wrap:wrap;gap:6px}.task-quick-chips button{padding:6px 9px;border:1px solid #cfe0d5;border-radius:999px;background:#f5faf6;color:#2d6943;font-size:11px;font-weight:800}.task-quick-chips button.is-selected{background:#dff0e5;border-color:#2d6943;color:#173d2b;box-shadow:inset 0 0 0 1px #2d6943}.task-choice-tags{display:flex;flex-wrap:wrap;gap:7px}.task-choice-tags>span{display:inline-flex;align-items:center;gap:6px;padding:6px 7px 6px 9px;border-radius:999px;background:#e9f5ed;color:#2d6943;font-size:11px}.task-choice-tags small{opacity:.75}.task-choice-tags button{width:19px;height:19px;padding:0;border:0;border-radius:50%;background:#fff;color:#805050}.task-photo-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.task-photo-options label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dbe4de;border-radius:9px;background:#fff}.task-photo-options input{width:18px;height:18px}.task-photo-options span{display:grid;gap:1px}.task-photo-options strong{font-size:12px}.task-photo-options small{font-size:10.5px;color:#718078}.task-template-advanced>summary{display:flex;align-items:center;justify-content:space-between}.task-template-advanced>summary span{display:grid;gap:2px}.task-template-advanced>summary small{font-size:10.5px;color:#718078;font-weight:600}.task-advanced-info{padding:10px;border-radius:8px;background:#f4f7f5;color:#526159;font-size:11.5px}.task-template-save-row{display:flex;justify-content:flex-end}.task-template-save-row .primary-button{min-width:170px}@media(max-width:680px){.task-photo-options{grid-template-columns:1fr}.task-mode-buttons{display:grid;grid-template-columns:1fr}.task-template-save-row .primary-button{width:100%}}\n

/* RC131 - task Work Type, planned time and 0.0-hour duration */
.task-plan-detailed-list>li{align-items:flex-start;gap:10px}.task-plan-item-copy{display:grid;gap:9px;min-width:0;flex:1}.task-plan-item-copy>span{display:grid;gap:2px}.task-plan-item-copy>span small{color:#66776d}.task-plan-detail-grid{display:grid;grid-template-columns:minmax(210px,1.4fr) minmax(135px,.8fr) minmax(110px,.6fr);gap:8px}.task-plan-detail-grid label{display:grid;gap:4px;font-size:10.5px;font-weight:800;color:#66776d}.task-plan-detail-grid input,.task-plan-detail-grid select{width:100%;min-width:0;padding:8px 9px;border:1px solid #d6e0da;border-radius:8px;background:#fff;color:#243e31;font:inherit;font-size:12px}.task-plan-time-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px}.task-plan-time-pair span{font-size:10px;color:#85918a}.task-plan-item-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.task-planning-facts{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}.task-planning-facts>span{display:grid;gap:1px;padding:7px 9px;border:1px solid #dce6df;border-radius:8px;background:#f8fbf9;color:#334f40;font-size:11px}.task-planning-facts strong{font-size:9.5px;color:#78877e;text-transform:uppercase;letter-spacing:.04em}.task-template-card>small strong{color:#42614f}.task-review-facts{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}@media(max-width:820px){.task-plan-detail-grid{grid-template-columns:1fr}.task-plan-detailed-list>li{display:grid}.task-plan-item-actions{justify-content:flex-start}.task-plan-time-pair input{min-height:40px}}


/* RC132 - cleaner, responsive Plan Builder task cards */
.task-plan-detailed-list{gap:10px}
.task-plan-detailed-list>li{display:grid;grid-template-columns:1fr;gap:11px;padding:13px 14px;align-items:stretch;border-color:#d7e3db;border-radius:10px;background:#fff;box-shadow:0 1px 0 rgba(28,71,48,.03)}
.task-plan-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;padding-bottom:9px;border-bottom:1px solid #edf2ef}
.task-plan-title-row{display:flex;align-items:flex-start;gap:9px;min-width:0;flex:1}
.task-plan-title-row>div{display:grid;gap:3px;min-width:0}
.task-plan-title-row strong{color:#173d2b;font-size:12.5px;line-height:1.35;overflow-wrap:anywhere}
.task-plan-title-row small{color:#6f7e75;font-size:10.5px;line-height:1.3}
.task-plan-sequence{width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;border-radius:50%;background:#2d6943;color:#fff;font-size:11px;font-weight:900}
.task-plan-item-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto;justify-content:flex-end}
.task-plan-item-actions button{min-width:31px;min-height:31px;padding:0 8px;border-radius:7px;background:#fff}
.task-plan-item-actions .task-plan-remove{padding:0 10px}
.task-plan-detail-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(120px,.85fr) minmax(88px,.55fr);gap:9px;align-items:end}
.task-plan-detail-grid label{display:grid;gap:5px;min-width:0;margin:0;color:#5e7166;font-size:10.5px;font-weight:850}
.task-plan-detail-grid label>span:first-child{line-height:1.2}
.task-plan-detail-grid input,.task-plan-detail-grid select{width:100%;min-width:0;min-height:38px;box-sizing:border-box;padding:8px 9px;border:1px solid #d5dfd9;border-radius:8px;background:#fbfdfb;color:#243e31;font:inherit;font-size:12px}
.task-plan-detail-grid input:focus,.task-plan-detail-grid select:focus{outline:2px solid rgba(45,105,67,.16);outline-offset:1px;border-color:#72a185;background:#fff}
.task-plan-time-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;min-width:0}
.task-plan-time-pair>span{color:#849087;font-size:10px;font-weight:700}
.task-plan-duration-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid #d5dfd9;border-radius:8px;background:#fbfdfb;overflow:hidden}
.task-plan-duration-field input{border:0;border-radius:0;background:transparent;min-height:36px}
.task-plan-duration-field input:focus{outline:0;border:0;background:#fff}
.task-plan-duration-field em{padding:0 9px 0 4px;color:#708078;font-size:10.5px;font-style:normal;font-weight:800}
@media(max-width:1100px){.task-plan-detail-grid{grid-template-columns:minmax(0,1fr) minmax(88px,.5fr)}.task-plan-time-field{grid-column:1/-1}}
@media(max-width:820px){.task-plan-card-head{align-items:flex-start}.task-plan-detail-grid{grid-template-columns:1fr}.task-plan-time-field{grid-column:auto}.task-plan-time-pair input{min-height:42px}}
@media(max-width:520px){.task-plan-detailed-list>li{padding:12px}.task-plan-card-head{display:grid;grid-template-columns:1fr;gap:8px}.task-plan-item-actions{justify-content:flex-start;padding-left:32px}.task-plan-detail-grid{gap:8px}.task-plan-time-pair{grid-template-columns:1fr}.task-plan-time-pair>span{text-align:center;line-height:1}}


/* RC133 - Work Type inherited from template, editable per daily plan */
.task-plan-work-type-field>small{margin-top:1px;color:#7a8981;font-size:9.8px;font-weight:650;line-height:1.35}
.task-plan-work-type-field select{background:#fbfdfb}


/* RC134 - Available Templates search */
.task-template-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.task-template-section-head h3 { margin-bottom: 4px; }
.task-template-section-head .subtle-note { margin-bottom: 0; }
.task-template-search {
  flex: 0 1 250px;
  min-width: 180px;
}
.task-template-search input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd7d0;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.task-template-search input[type="search"]:focus {
  outline: 2px solid rgba(35, 105, 70, 0.22);
  outline-offset: 1px;
  border-color: #4d8b69;
}
.task-template-card[hidden] { display: none !important; }
@media (max-width: 760px) {
  .task-template-section-head { flex-direction: column; }
  .task-template-search { width: 100%; min-width: 0; flex-basis: auto; }
}

/* RC135 - align Planned Time, Work Type and Duration on one clean baseline */
.task-plan-detail-grid{
  align-items:end;
}
.task-plan-detail-grid>label{
  align-self:end;
}
.task-plan-work-type-field>small{
  display:none;
}
.task-plan-detail-note{
  margin:0;
  padding-top:1px;
  color:#718078;
  font-size:10px;
  font-weight:650;
  line-height:1.35;
}
@media(max-width:820px){
  .task-plan-detail-note{font-size:10.5px}
}

/* RC136 - Worker task instructions can be opened from today's task list. */
.worker-task-progress li.has-instructions {
  display: block;
  padding: 0;
  overflow: hidden;
}
.worker-task-progress li.has-instructions > details {
  width: 100%;
}
.worker-task-progress li.has-instructions summary {
  padding: 10px;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.worker-task-progress li.has-instructions summary::-webkit-details-marker { display: none; }
.worker-task-progress .worker-task-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4e6357;
  background: #e9eeeb;
  font-size: 11px;
  font-weight: 900;
}
.worker-task-progress li.current .worker-task-number {
  color: #fff;
  background: var(--green-dark);
}
.worker-task-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.worker-task-progress .worker-instructions-cue {
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
  color: #2d7848;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.35;
}
.worker-task-progress .worker-instructions-cue b {
  display: inline-block;
  margin-left: 3px;
  font-size: 12px;
  transition: transform .18s ease;
}
.worker-task-progress details[open] .worker-instructions-cue b { transform: rotate(180deg); }
.worker-task-progress li.has-instructions summary em {
  color: #718078;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.worker-task-progress li.task-progress-submitted summary em,
.worker-task-progress li.task-progress-approved summary em { color: #2d7848; }
.worker-task-instructions {
  margin: 0 10px 10px 45px;
  padding: 10px 11px;
  border: 1px solid #dfe8e2;
  border-radius: 7px;
  background: #fff;
}
.worker-task-instructions > strong {
  display: block;
  margin-bottom: 5px;
  color: #30473a;
  font-size: 11.5px;
}
.worker-task-instructions p {
  margin: 0;
  color: #46574e;
  font-size: 11.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .worker-task-progress li.has-instructions summary { padding: 11px 10px; }
  .worker-task-instructions { margin-left: 10px; }
}

/* RC138 - White Collar Tasks */
.task-workspace-mode { display: grid; gap: 12px; }
.task-workspace-mode-switch { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid #dfe6e1; border-radius: 12px; background: #f2f5f2; width: fit-content; max-width: 100%; }
.task-workspace-mode-switch button { border: 0; background: transparent; color: #53645b; font-weight: 800; padding: 10px 14px; border-radius: 9px; }
.task-workspace-mode-switch button.active { background: #fff; color: #194d35; box-shadow: 0 1px 3px rgba(20,55,39,.1); }
.office-task-suite { display: grid; gap: 14px; }
.office-task-shell, .office-review-shell { display: grid; gap: 12px; }
.office-task-toolbar { display: grid; gap: 12px; }
.office-toolbar-row { display: flex; gap: 12px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.office-toolbar-row label, .office-task-toolbar > label { min-width: 190px; }
.office-task-create-card { display: grid; gap: 14px; }
.office-task-form-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(180px,.8fr) minmax(170px,.7fr); gap: 12px; align-items: start; }
.office-task-form-grid label { display: grid; gap: 6px; font-weight: 800; color: #31483c; min-width: 0; }
.office-task-form-grid input, .office-task-form-grid select, .office-task-form-grid textarea, .office-task-submit-box input, .office-task-submit-box textarea, .office-review-task textarea { width: 100%; border: 1px solid #d8e1db; border-radius: 9px; padding: 10px 11px; background: #fff; color: #17231d; min-width: 0; }
.office-task-title-field { grid-column: span 2; }
.office-task-time-field { grid-column: span 2; }
.office-task-description-field { grid-column: 1 / -1; }
.office-task-description-field textarea { min-height: 92px; resize: vertical; }
.office-task-form-actions { display: flex; justify-content: flex-end; }
.office-task-list { display: grid; gap: 10px; }
.office-task-card { border: 1px solid #dce5df; border-radius: 12px; background: #fff; padding: 14px; display: grid; gap: 11px; }
.office-task-card.is-current { border-color: #70b98a; background: #f5fbf7; box-shadow: inset 0 0 0 1px rgba(55,132,81,.08); }
.office-task-card.status-approved { background: #f7fbf8; }
.office-task-card.status-revision { border-color: #e4b76d; background: #fffaf1; }
.office-task-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: start; }
.office-task-number { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: #eaf1ec; color: #315644; font-weight: 900; }
.office-task-card.is-current .office-task-number, .office-task-card.status-approved .office-task-number { background: #26774a; color: #fff; }
.office-task-card-title { display: grid; gap: 4px; min-width: 0; }
.office-task-card-title strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.office-task-card-title small { color: #6b7971; line-height: 1.4; }
.office-task-status { border-radius: 999px; padding: 5px 8px; background: #edf2ee; color: #58665f; font-size: 11px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.status-in_progress .office-task-status { background: #e4f2e8; color: #237044; }
.status-paused .office-task-status, .status-revision .office-task-status { background: #fff0d7; color: #9b6116; }
.status-submitted .office-task-status { background: #e7eefb; color: #315f9a; }
.status-approved .office-task-status { background: #e3f3e8; color: #247347; }
.office-task-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.office-task-facts span { background: #f6f8f6; border-radius: 8px; padding: 9px 10px; display: grid; gap: 2px; color: #3b4e43; font-size: 12px; }
.office-task-facts b { color: #78857e; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.office-task-details { border-top: 1px solid #e6ece8; padding-top: 8px; }
.office-task-details summary { cursor: pointer; font-weight: 800; color: #315644; }
.office-task-details p { margin: 8px 0 0; color: #536159; line-height: 1.55; white-space: pre-wrap; }
.office-task-card-actions, .office-review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.danger-outline { border: 1px solid #e3b1b1; background: #fff; color: #a64040; border-radius: 8px; padding: 9px 11px; font-weight: 800; }
.office-task-submit-box { border-top: 1px solid #dfe7e2; padding-top: 12px; display: grid; gap: 10px; }
.office-task-submit-box h4 { margin: 0; }
.office-task-submit-box label, .office-review-task label { display: grid; gap: 6px; font-weight: 800; color: #31483c; }
.office-task-submit-box textarea { min-height: 82px; resize: vertical; }
.office-optional-evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.office-completion-summary, .office-revision-note { border-radius: 9px; padding: 10px 11px; background: #f6f8f6; }
.office-completion-summary strong, .office-revision-note strong { color: #315644; }
.office-completion-summary p, .office-revision-note p { margin: 5px 0 0; white-space: pre-wrap; line-height: 1.5; color: #526159; }
.office-revision-note { background: #fff4df; border: 1px solid #efd29e; }
.office-evidence-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.office-evidence-links a, .office-evidence-links .text-button { color: #1f7045; font-weight: 800; text-decoration: none; border: 0; background: transparent; padding: 0; }
.office-no-evidence { display: inline-block; margin-top: 7px; color: #7b8780; font-size: 12px; }
.office-review-person { display: grid; gap: 10px; }
.office-review-task-list { display: grid; gap: 10px; }
.office-review-task { border: 1px solid #e0e7e3; border-radius: 10px; padding: 12px; display: grid; gap: 9px; }
.office-review-task.status-submitted { border-color: #b8cbe9; background: #f8fbff; }
.office-review-task.status-approved { border-color: #c9e4d1; background: #f8fcf9; }
.office-review-task.status-revision { border-color: #ecd29f; background: #fffbf3; }
.office-review-task-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.office-review-task-head > div { display: grid; gap: 3px; min-width: 0; }
.office-review-task-head small { color: #6f7d75; }
.office-review-task-head > span { font-size: 11px; font-weight: 900; text-transform: uppercase; color: #607067; white-space: nowrap; }
.office-review-meta { display: flex; gap: 12px; flex-wrap: wrap; color: #58675f; font-size: 12px; }
.office-review-description { margin: 0; color: #526159; line-height: 1.5; }

@media (max-width: 900px) {
  .office-task-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .office-task-title-field, .office-task-time-field { grid-column: span 2; }
}
@media (max-width: 620px) {
  .task-workspace-mode-switch { width: 100%; }
  .task-workspace-mode-switch button { flex: 1; padding: 9px 8px; font-size: 12px; }
  .office-task-form-grid { grid-template-columns: 1fr; }
  .office-task-title-field, .office-task-time-field, .office-task-description-field { grid-column: 1; }
  .office-task-card-head { grid-template-columns: auto minmax(0,1fr); }
  .office-task-status { grid-column: 2; justify-self: start; }
  .office-task-facts { grid-template-columns: 1fr; }
  .office-optional-evidence-grid { grid-template-columns: 1fr; }
  .office-review-task-head { display: grid; }
  .office-toolbar-row { align-items: stretch; }
  .office-toolbar-row label, .office-task-toolbar > label { min-width: 0; width: 100%; }
  .office-toolbar-row .primary-button { width: 100%; }
}


/* RC142 - keep General Worker and White Collar task workspaces visually consistent */
.task-workspace-mode > .suite-section {
  width: min(100%, 820px);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.task-workspace-mode > .office-task-suite,
.task-workspace-mode > .task-suite {
  gap: 12px;
}
.task-workspace-mode .task-page-heading {
  margin-bottom: 12px;
}
.task-workspace-mode .task-page-heading h1 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.task-workspace-mode .task-page-heading p {
  font-size: 12px;
  line-height: 1.45;
  max-width: 68ch;
}
.office-task-suite .management-card,
.office-task-suite .office-task-card,
.office-task-suite .office-review-task {
  border-radius: 10px;
}
.office-task-suite .management-card {
  padding: 14px;
}
.office-task-suite .management-heading h2 {
  font-size: 15px;
}
.office-task-suite .management-heading p,
.office-task-suite .office-toolbar-row,
.office-task-suite .office-task-card-title small,
.office-task-suite .office-task-facts span,
.office-task-suite .office-review-meta {
  font-size: 12px;
}
.office-task-suite .office-task-card {
  padding: 12px;
  gap: 9px;
}
.office-task-suite .office-task-card-title strong {
  font-size: 13px;
}
.office-task-suite .office-task-number {
  width: 29px;
  height: 29px;
  font-size: 12px;
}
.office-task-suite .office-task-status {
  font-size: 10.5px;
  padding: 4px 7px;
}
.office-task-suite .office-task-form-grid input,
.office-task-suite .office-task-form-grid select,
.office-task-suite .office-task-form-grid textarea,
.office-task-suite .office-task-submit-box input,
.office-task-suite .office-task-submit-box textarea,
.office-task-suite .office-review-task textarea {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 12px;
}
.office-task-suite .office-toolbar-row .primary-button {
  min-height: 40px;
}
@media (max-width: 900px) {
  .task-workspace-mode > .suite-section {
    width: 100%;
    max-width: 100%;
  }
}

/* RC143 - White Collar task toolbar wording and hierarchy */
.office-task-toolbar-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.office-task-toolbar-copy { min-width:0; display:grid; gap:4px; }
.office-task-toolbar-copy h2 { margin:0; color:var(--v2-forest); font-size:16px; line-height:1.25; }
.office-task-toolbar-copy p { margin:0; color:var(--v2-muted); font-size:12px; line-height:1.45; }
.office-task-progress { flex:0 0 auto; display:grid; justify-items:end; gap:5px; padding-top:1px; }
.office-task-progress > span { color:var(--v2-muted); font-size:10.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.office-task-progress > strong { width:max-content; padding:4px 8px; border-radius:999px; color:#2c7147; background:#e9f5ed; font-size:11px; line-height:1.2; font-weight:900; }
.office-task-toolbar .office-toolbar-row { padding-top:1px; }
.office-task-toolbar .office-toolbar-row label { display:grid; gap:6px; font-size:12px; font-weight:800; color:#31483c; }
@media (max-width:620px) {
  .office-task-toolbar-header { display:grid; gap:10px; }
  .office-task-progress { justify-items:start; }
}

/* RC146 · General Worker Plan Builder total duration */
.task-plan-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:3px}
.task-plan-panel-head h3{margin:0}
.task-plan-total-duration{display:flex;align-items:baseline;gap:7px;white-space:nowrap;padding:7px 10px;border:1px solid #d9e5dd;border-radius:9px;background:#f5faf6;color:#355746}
.task-plan-total-duration span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em;color:#73847a}
.task-plan-total-duration strong{font-size:15px;color:#1f6b43}
@media(max-width:520px){.task-plan-panel-head{align-items:center}.task-plan-total-duration{padding:6px 8px}.task-plan-total-duration span{font-size:9px}.task-plan-total-duration strong{font-size:14px}}

/* RC147: restore clear Plan Builder add + drag affordances after RC146. */
.task-template-card { min-width: 0; }
.task-template-heading { min-width: 0; }
.task-template-heading > strong { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.task-template-drag-handle {
  flex: 0 0 auto;
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d2e0d7;
  border-radius: 7px;
  color: #587064;
  background: #fff;
  font-weight: 900;
  cursor: grab;
  user-select: none;
}
.task-template-drag-handle:active { cursor: grabbing; }
.task-template-actions {
  width: 100%;
  min-height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.task-template-actions .task-add-to-plan-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.daily-plan-dropzone { position: relative; }
.daily-plan-dropzone[data-task-plan-dropzone] { pointer-events: auto; }

/* RC148 · Inline evidence review */
.inline-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.inline-evidence-card {
  min-width: 0;
  border: 1px solid #d9e5dd;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 10px;
}
.inline-evidence-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.inline-evidence-heading strong {
  font-size: 0.95rem;
  color: #244c38;
}
.inline-evidence-heading small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6d7a73;
  font-size: 0.78rem;
}
.inline-evidence-loading {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed #cbd9d0;
  border-radius: 10px;
  background: #f5f8f6;
  color: #66736c;
  text-align: center;
}
.inline-evidence-image-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eef4f0;
  cursor: zoom-in;
  text-align: left;
}
.inline-evidence-image-button img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #edf1ee;
}
.inline-evidence-image-button span {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #43624f;
  background: #f6faf7;
}
.outstation-inline-evidence {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.outstation-inline-evidence .inline-evidence-card {
  max-width: 620px;
}
.verification-photo-inline {
  margin-top: 12px;
}
.verification-photo-inline .inline-evidence-card {
  max-width: 560px;
}
.sick-leave-evidence {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.sick-leave-evidence .inline-evidence-card {
  max-width: 520px;
}
.office-evidence-links .inline-evidence-card {
  width: 100%;
  margin-top: 8px;
}
.asset-inuse-card > .inline-evidence-card {
  margin-top: 10px;
}
.inline-evidence-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
}
.inline-evidence-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 28, 22, 0.78);
  cursor: zoom-out;
}
.inline-evidence-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.inline-evidence-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e8e5;
}
.inline-evidence-lightbox-head strong { color: #244c38; }
.inline-evidence-lightbox-head button {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #d9dfdb;
  background: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.inline-evidence-lightbox-panel > img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: calc(92vh - 70px);
  margin: 0 auto;
  object-fit: contain;
}
@media (max-width: 760px) {
  .inline-evidence-grid { grid-template-columns: 1fr; }
  .inline-evidence-image-button img { height: auto; max-height: 340px; object-fit: contain; }
  .inline-evidence-lightbox { padding: 8px; }
  .inline-evidence-lightbox-panel { width: 100%; max-height: 94vh; }
}

/* RC148 — inline evidence review */
.inline-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.inline-evidence-card{min-width:0;border:1px solid var(--line,#dbe5df);border-radius:14px;background:#fff;padding:10px}.inline-evidence-title{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:8px}.inline-evidence-title strong{font-size:.95rem}.inline-evidence-title small{color:var(--muted,#6e7d75);text-align:right}.inline-evidence-image-button{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:11px;overflow:hidden}.inline-evidence-image-button img{display:block;width:100%;height:220px;object-fit:cover;background:#eef3f0}.inline-evidence-card>span{display:block;margin-top:7px;font-size:.78rem;color:var(--muted,#6e7d75)}.inline-evidence-placeholder{height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#f4f7f5;border-radius:11px;color:var(--muted,#6e7d75)}.inline-evidence-error{display:flex;min-height:120px;align-items:center;justify-content:center;color:#a33}.inline-evidence-review-block{margin:14px 0}.inline-evidence-review-block>.inline-evidence-card{max-width:560px}.outstation-inline-map{margin-top:8px}.inline-evidence-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(17,28,23,.82);display:flex;align-items:center;justify-content:center;padding:22px}.inline-evidence-lightbox-panel{position:relative;max-width:min(1000px,95vw);max-height:92vh;background:#fff;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}.inline-evidence-lightbox-panel img{max-width:100%;max-height:78vh;object-fit:contain;border-radius:10px}.inline-evidence-lightbox-panel small{color:var(--muted,#6e7d75);padding:0 4px 2px}.inline-evidence-lightbox-close{position:absolute;right:18px;top:18px;width:42px;height:42px;border-radius:50%;border:1px solid #d5ded9;background:#fff;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.12)}.office-evidence-links .inline-evidence-card{margin-top:10px}
@media (max-width:720px){.inline-evidence-grid{grid-template-columns:1fr}.inline-evidence-image-button img,.inline-evidence-placeholder{height:auto;min-height:180px;max-height:360px}.inline-evidence-title{display:block}.inline-evidence-title small{display:block;text-align:left;margin-top:3px}.inline-evidence-lightbox{padding:10px}.inline-evidence-lightbox-panel{max-width:100%;padding:8px}.inline-evidence-lightbox-close{right:14px;top:14px}}
.inline-evidence-heading{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:8px}.inline-evidence-heading strong{font-size:.95rem}.inline-evidence-heading small{color:#6e7d75;text-align:right}.inline-evidence-loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:8px;background:#f4f7f5;border-radius:11px;color:#6e7d75}.inline-evidence-lightbox-backdrop{position:absolute;inset:0;border:0;background:transparent;cursor:zoom-out}.inline-evidence-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.inline-evidence-lightbox-head button{width:42px;height:42px;border-radius:50%;border:1px solid #d5ded9;background:#fff;font-size:28px;line-height:1;cursor:pointer}.outstation-inline-evidence{margin-top:12px}.sick-leave-evidence{display:grid;gap:8px;margin:10px 0}.verification-photo-inline{margin-top:12px}
@media (max-width:720px){.inline-evidence-heading{display:block}.inline-evidence-heading small{display:block;text-align:left;margin-top:3px}}

/* RC150 — one employee start time drives every planned task time */
.task-plan-setup-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(160px,.75fr) minmax(210px,.9fr);
  gap:12px;
  align-items:start;
  margin-top:15px;
}
.task-plan-setup-grid>label{
  display:grid;
  gap:6px;
  min-width:0;
  color:#435e50;
  font-size:.78rem;
  font-weight:800;
}
.task-plan-setup-grid select,
.task-plan-setup-grid input{
  width:100%;
  min-width:0;
  min-height:42px;
  box-sizing:border-box;
}
.task-plan-start-field{
  margin:-8px 0;
  padding:8px 10px 10px;
  border:1px solid #bdd8c9;
  border-radius:11px;
  background:#eff8f3;
}
.task-plan-start-field>span{
  color:#24563d;
  font-size:.82rem;
}
.task-plan-start-field small{
  color:#567264;
  font-size:.72rem;
  font-weight:650;
  line-height:1.35;
}
.task-plan-detail-grid{
  grid-template-columns:minmax(135px,.8fr) minmax(105px,.55fr) minmax(220px,1.25fr);
  align-items:stretch;
}
.task-plan-detail-grid>label{
  align-self:stretch;
  align-content:end;
}
.task-plan-auto-time{
  display:grid;
  align-content:center;
  gap:3px;
  min-width:0;
  min-height:58px;
  padding:8px 11px;
  box-sizing:border-box;
  border:1px solid #cfe1d7;
  border-radius:9px;
  background:#f2f8f5;
}
.task-plan-auto-time>span{
  color:#65786e;
  font-size:.69rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.task-plan-auto-time>strong{
  color:#234d38;
  font-size:.9rem;
  line-height:1.25;
}
.task-plan-auto-time>small{
  color:#6c7f75;
  font-size:.7rem;
  line-height:1.25;
}
@media(max-width:1100px){
  .task-plan-setup-grid{grid-template-columns:minmax(0,1fr) minmax(160px,.75fr)}
  .task-plan-start-field{grid-column:1/-1;margin:0}
  .task-plan-detail-grid{grid-template-columns:minmax(0,1fr) minmax(105px,.55fr)}
  .task-plan-auto-time{grid-column:1/-1}
}
@media(max-width:820px){
  .task-plan-setup-grid{grid-template-columns:1fr}
  .task-plan-start-field{grid-column:auto}
  .task-plan-detail-grid{grid-template-columns:1fr}
  .task-plan-auto-time{grid-column:auto;min-height:64px}
}

/* RC153 — deterministic, tidy General Worker plan-card layout. */
.task-plan-detailed-list>li .task-plan-detail-grid{
  grid-template-columns:minmax(0,1fr) minmax(92px,.34fr);
  grid-template-areas:
    "project project"
    "work duration"
    "time time";
  gap:10px;
  align-items:end;
}

/* RC154 — assigned vehicle and required tools stay visible to General Workers. */
.worker-visible-requirements{
  margin-top:10px;
}
.worker-visible-requirements div{
  border:1px solid #dce6df;
  background:#f7faf8;
}
.worker-visible-requirements dd{
  color:#213d2e;
  overflow-wrap:anywhere;
}
.worker-task-instructions .worker-visible-requirements{
  margin-bottom:0;
}
.worker-task-instruction-copy+ .worker-visible-requirements{
  margin-top:12px;
}
.task-plan-detailed-list>li .task-plan-project-field{
  grid-area:project;
}
.task-plan-detailed-list>li .task-plan-work-type-field{
  grid-area:work;
}
.task-plan-detailed-list>li .task-plan-detail-grid>label:not(.task-plan-project-field):not(.task-plan-work-type-field){
  grid-area:duration;
}
.task-plan-project-field select{
  border-color:#c7d9cf;
  background:#fff;
}
.task-plan-auto-time{
  grid-area:time;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"label note" "time note";
  align-items:center;
  column-gap:14px;
  min-height:66px;
  padding:10px 12px;
}
.task-plan-auto-time>span{
  grid-area:label;
}
.task-plan-auto-time>strong{
  grid-area:time;
  font-size:.95rem;
  white-space:nowrap;
}
.task-plan-auto-time>small{
  grid-area:note;
  align-self:stretch;
  display:flex;
  align-items:center;
  padding-left:14px;
  border-left:1px solid #cfe1d7;
  font-size:.74rem;
}
@media(max-width:420px){
  .task-plan-detailed-list>li .task-plan-detail-grid{
    grid-template-columns:minmax(0,1fr) minmax(82px,.32fr);
    gap:8px;
  }
  .task-plan-auto-time{
    grid-template-columns:1fr;
    grid-template-areas:"label" "time" "note";
    gap:3px;
  }
  .task-plan-auto-time>small{
    padding-left:0;
    border-left:0;
  }
}
.additional-work-card{margin-top:18px;padding:18px;border:1px solid #d6e2da;border-radius:16px;background:#f7fbf8;display:grid;gap:14px}.additional-work-card h3{margin:3px 0 4px;color:#173f2c}.additional-work-card p{margin:0;color:#5b6d63}.additional-work-sessions{display:grid;gap:8px}.additional-work-sessions article{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(170px,1fr) auto;gap:12px;align-items:center;padding:11px 13px;border-radius:12px;background:#fff;border:1px solid #deebe3}.additional-work-sessions span,.additional-work-sessions small{color:#66776d}.additional-work-total{padding:10px 12px;border-radius:10px;background:#e9f4ed!important;color:#244f37!important}.additional-work-card button{justify-self:start}@media(max-width:700px){.additional-work-sessions article{grid-template-columns:1fr}.additional-work-card button{width:100%}}
.approved-requests-page{display:grid;gap:18px}.approved-request-summary{display:grid;grid-template-columns:minmax(220px,1fr) minmax(140px,.35fr);gap:14px}.approved-request-summary>div{padding:17px 20px;border:1px solid #dbe4dd;border-radius:14px;background:linear-gradient(135deg,#f6faf7,#edf5ef);display:grid;gap:3px}.approved-request-summary span{font-size:.82rem;color:#66756c;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.approved-request-summary strong{font-size:1.35rem;color:#173f2c}.approved-request-toolbar{display:grid;grid-template-columns:minmax(170px,.65fr) minmax(230px,1.25fr) minmax(180px,.8fr) minmax(210px,.9fr);gap:12px;padding:16px}.approved-request-toolbar label{display:grid;gap:6px;font-size:.82rem;font-weight:700;color:#596a60}.approved-request-toolbar input,.approved-request-toolbar select{width:100%;min-height:44px;border:1px solid #cfdad3;border-radius:10px;background:#fff;padding:9px 11px;font:inherit;color:#243c30}.approved-request-groups{display:grid;gap:20px}.approved-date-heading{display:flex;justify-content:space-between;align-items:center;margin:0 4px 9px}.approved-date-heading strong{font-size:1.18rem;color:#173f2c}.approved-date-heading span{font-size:.86rem;color:#6a796f}.approved-request-list{display:grid;gap:10px}.approved-request-item{padding:0;overflow:hidden}.approved-request-item>summary{list-style:none;cursor:pointer;padding:15px 17px;display:grid;grid-template-columns:minmax(190px,.7fr) minmax(450px,1.3fr);gap:18px;align-items:center}.approved-request-item>summary::-webkit-details-marker{display:none}.approved-request-item>summary>div:first-child{display:grid;gap:3px}.approved-request-item>summary strong{color:#173f2c}.approved-request-item>summary span{color:#637168;font-size:.9rem}.approved-request-meta{display:grid;grid-template-columns:1fr 1.2fr .7fr auto;gap:12px;align-items:center}.approved-request-meta b{justify-self:end;padding:6px 12px;border-radius:999px;background:#dcefe2;color:#176038;font-size:.76rem;letter-spacing:.04em}.approved-request-detail{border-top:1px solid #e1e7e3;padding:18px;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(320px,1.1fr);gap:16px 22px;background:#fbfcfb}.approved-request-detail dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:13px}.approved-request-detail dl div,.approved-request-detail p{display:grid;gap:4px;margin:0}.approved-request-detail dt,.approved-request-detail p strong{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#708078}.approved-request-detail dd,.approved-request-detail p span{margin:0;color:#2b4035}.approved-inline-evidence{grid-column:2;grid-row:1/span 3}.approved-inline-evidence .inline-evidence-card{margin:0}.approved-requests-page .approval-feed-empty{padding:28px;display:grid;gap:6px;text-align:center}@media(max-width:1100px){.approved-request-toolbar{grid-template-columns:1fr 1fr}.approved-request-item>summary{grid-template-columns:1fr}.approved-request-detail{grid-template-columns:1fr}.approved-inline-evidence{grid-column:auto;grid-row:auto}}@media(max-width:700px){.approved-request-summary,.approved-request-toolbar{grid-template-columns:1fr}.approved-request-meta{grid-template-columns:1fr 1fr}.approved-request-meta b{justify-self:start}.approved-request-detail dl{grid-template-columns:1fr}}

/* RC168 WorkXP Supervisor Task Library category controls */
.workxp-task-category-filter{position:sticky;top:74px;z-index:8;background:var(--surface,#fff);border:1px solid #dfe8e2;border-radius:16px;padding:14px 16px;margin-bottom:14px;box-shadow:0 8px 22px rgba(18,53,38,.08)}
.workxp-task-category-head h3{margin:2px 0 4px;font-size:1.05rem}.workxp-task-category-head p{margin:0;color:#607168;font-size:.92rem}
.workxp-task-category-controls{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr);gap:12px;margin-top:12px;align-items:end}
.workxp-task-category-controls label{display:grid;gap:5px;font-weight:650}.workxp-task-category-controls select{min-height:44px;font-size:1rem;border-radius:10px;padding:0 12px}
.workxp-task-category-controls small{font-weight:400;color:#6b7b72}
@media(max-width:760px){.workxp-task-category-filter{top:62px}.workxp-task-category-controls{grid-template-columns:1fr}}

/* RC169 - WorkXP single-page Supervisor daily task board */
.task-board-shell{display:flex;flex-direction:column;gap:18px;min-width:0}
.task-board-library{position:sticky;top:70px;z-index:18;padding:18px;border:1px solid #cfe2d8;background:rgba(250,255,252,.98);box-shadow:0 8px 24px rgba(20,65,45,.08)}
.task-board-library-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.task-board-library-head h2{margin:2px 0 0;font-size:1.22rem}
.task-board-add-template{width:44px;height:44px;border-radius:12px;border:1px dashed #8fbea7;background:#fff;color:#286846;font-size:1.8rem;line-height:1;cursor:pointer}
.task-board-category-row{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}
.task-board-category{min-width:0}
.task-board-category-control{position:relative;min-height:48px;border:1px solid #d7e1dd;border-radius:10px;background:#fff;color:#17233b;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:800;cursor:pointer;overflow:hidden}
.task-board-category.is-active .task-board-category-control{border-color:#62a982;background:#edf9f2;color:#1f7047}
.task-board-category-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-board-category-chevron{font-size:1.12rem;line-height:1;color:#64748b;flex:0 0 auto;transform:translateY(-1px)}
.task-board-category.is-active .task-board-category-chevron{color:#1f7047}
.task-board-category select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit}
.task-board-library-tasks{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 2px;margin-top:4px;scrollbar-width:thin}
.task-board-library-tasks .task-template-card{flex:0 0 230px;min-height:132px;margin:0;padding:12px}
.task-board-library-tasks .task-template-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0}
.task-board-library .task-add-to-plan-button{display:none!important}
.task-board-template-editor{margin-top:14px;border-top:1px solid #dce8e2;padding-top:14px;max-height:70vh;overflow:auto}
.task-board-days{display:flex;flex-direction:column;gap:24px}
.task-board-day{min-width:0}
.task-board-date{display:flex;align-items:center;justify-content:center;gap:12px;margin:2px auto 12px;text-align:center}
.task-board-date label{display:flex;align-items:center;gap:8px;font-weight:800;color:#1e293b}
.task-board-date input{min-height:40px;border:1px solid #cfd9d5;border-radius:9px;padding:0 10px;background:#fff;font:inherit}
.task-board-date strong{font-size:.92rem;color:#64748b;font-weight:700}
.task-board-workers-scroll{overflow-x:auto;padding:2px 2px 10px;scrollbar-width:thin}
.task-board-workers{display:flex;align-items:stretch;gap:14px;min-width:max-content}
.task-board-worker-card{width:330px;min-width:330px;display:flex;flex-direction:column;gap:12px;border:1px solid #d7e0dc;border-radius:14px;background:#fff;padding:14px;box-shadow:0 4px 16px rgba(15,40,30,.05);min-height:330px}
.task-board-worker-card.is-dirty{border-color:#e5a6a6;box-shadow:0 0 0 1px rgba(185,65,65,.08),0 4px 16px rgba(15,40,30,.05)}
.task-board-worker-card.is-saved{border-color:#cfe3d8}
.task-board-worker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #edf1ef}
.task-board-worker-head>strong{font-size:1.05rem;color:#17233b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task-board-worker-head label{display:flex;align-items:center;gap:6px;font-size:.78rem;font-weight:800;color:#64748b;white-space:nowrap}
.task-board-worker-head input{width:96px;min-height:34px;border:1px solid #d4ded9;border-radius:8px;padding:0 7px;background:#fff;font:inherit;color:#17233b}
.task-board-locked{padding:7px 9px;border-radius:8px;background:#f7f7f8;color:#6b7280}
.task-board-worker-tasks{display:flex;flex-direction:column;gap:8px;flex:1;min-height:120px}
.task-board-empty{display:grid;place-items:center;min-height:92px;border:1.5px dashed #c7d7cf;border-radius:10px;color:#809188;font-weight:700;background:#fafcfb}
.task-board-task{border:1px solid #dbe4df;border-radius:10px;background:#fbfdfc;overflow:hidden;cursor:grab}
.task-board-task:active{cursor:grabbing}
.task-board-task-main{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:8px;align-items:center;padding:9px}
.task-board-task-number{display:grid;place-items:center;width:26px;height:26px;border-radius:999px;background:#e5f6ec;color:#206744;font-weight:900;font-size:.82rem}
.task-board-sequence-input{box-sizing:border-box;border:1px solid #b9dfc9;padding:0;text-align:center;line-height:24px;appearance:textfield;-moz-appearance:textfield;cursor:text}
.task-board-sequence-input::-webkit-outer-spin-button,.task-board-sequence-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.task-board-sequence-input:focus{outline:2px solid rgba(46,125,83,.22);border-color:#2e7d53;background:#fff}
.task-board-task-main strong{display:block;color:#1f2937;font-size:.9rem;line-height:1.25}
.task-board-task-main small{display:block;margin-top:3px;color:#6b7280;font-size:.76rem}
.task-board-task-remove{border:0;background:transparent;color:#a53a3a;font-size:1.25rem;cursor:pointer}
.task-board-task-details{border-top:1px solid #edf1ef}
.task-board-task-details summary{cursor:pointer;padding:6px 10px;color:#426553;font-size:.76rem;font-weight:800;list-style:none}
.task-board-task-details summary::-webkit-details-marker{display:none}
.task-board-task-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 10px 4px}
.task-board-task-edit-grid label{display:grid;gap:4px;font-size:.72rem;font-weight:800;color:#64748b}
.task-board-task-edit-grid label:first-child{grid-column:1/-1}
.task-board-task-edit-grid input,.task-board-task-edit-grid select{width:100%;min-height:34px;border:1px solid #d7e0dc;border-radius:8px;background:#fff;padding:0 8px;font:inherit;color:#1f2937}
.task-board-duration{display:flex;align-items:center;gap:5px}
.task-board-duration input{min-width:0}
.task-board-duration span{font-size:.75rem;color:#64748b}
.task-board-template-note{margin:4px 10px 10px;color:#819087;font-size:.72rem;line-height:1.35}
.task-board-card-footer{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:auto;padding-top:5px}
.task-board-save-state{font-size:.76rem;font-weight:800}
.task-board-save-state.is-dirty{color:#b34545}
.task-board-save-state.is-saved{color:#34845b}
.task-board-total{font-size:1.15rem;color:#1f2937;line-height:1}
.task-board-save{width:100%;min-height:42px}
.task-board-loading-line{display:flex;align-items:center;justify-content:center;gap:8px;color:#64748b;font-weight:700;padding:8px}
.task-board-worker-card.is-loading .admin-loading{min-height:160px}
@media(max-width:1000px){.task-board-category-row{grid-template-columns:repeat(2,minmax(160px,1fr))}.task-board-library{top:58px}.task-board-worker-card{width:310px;min-width:310px}}
@media(max-width:640px){.task-board-category-row{grid-template-columns:1fr 1fr;gap:8px}.task-board-category-button{font-size:.84rem;padding:0 10px}.task-board-category select{font-size:.78rem}.task-board-worker-card{width:88vw;min-width:88vw}.task-board-date{flex-wrap:wrap}.task-board-date strong{width:100%}}
.task-board-quick-template-form{display:grid;gap:12px;background:#fff;border:1px solid #d9e5df;border-radius:12px;padding:14px}
.task-board-quick-template-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.task-board-quick-template-head strong{display:block;font-size:1rem;color:#17233b}.task-board-quick-template-head small{display:block;margin-top:3px;color:#718078}.task-board-quick-template-head button{border:0;background:transparent;font-size:1.35rem;color:#64748b;cursor:pointer}
.task-board-quick-template-grid{display:grid;grid-template-columns:2fr 1fr 120px;gap:10px}.task-board-quick-template-grid label{display:grid;gap:5px;font-size:.78rem;font-weight:800;color:#64748b}.task-board-quick-template-grid .wide{grid-column:1/-1}.task-board-quick-template-grid input,.task-board-quick-template-grid select,.task-board-quick-template-grid textarea{width:100%;border:1px solid #d6e0db;border-radius:8px;padding:9px 10px;background:#fff;font:inherit;color:#1f2937}.task-board-quick-template-grid textarea{min-height:74px;resize:vertical}
@media(max-width:760px){.task-board-quick-template-grid{grid-template-columns:1fr}.task-board-quick-template-grid .wide{grid-column:auto}}

/* RC171 - compact single-page SV Task Library matching approved sketch */
.task-suite{padding-top:0!important}
.task-board-shell{gap:18px}
.task-board-library{overflow:visible;padding:16px 18px 12px;background:rgba(250,255,252,.99)}
.task-board-library-head{margin-bottom:10px}
.task-board-category-row{position:relative;display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;overflow:visible}
.task-board-category-menu{position:relative;min-width:0}
.task-board-category-menu>summary{list-style:none;min-height:48px;border:1px solid #d7e1dd;border-radius:10px;background:#fff;color:#17233b;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:800;cursor:pointer;user-select:none}
.task-board-category-menu>summary::-webkit-details-marker{display:none}
.task-board-category-menu[open]>summary{border-color:#62a982;background:#edf9f2;color:#1f7047}
.task-board-category-menu[open] .task-board-category-chevron{transform:rotate(180deg)}
.task-board-category-chevron{transition:transform .15s ease}
.task-board-category-dropdown{position:absolute;left:0;top:calc(100% + 6px);z-index:70;width:max(280px,100%);max-width:360px;max-height:440px;overflow:auto;background:#fff;border:1px solid #d7e1dd;border-radius:10px;box-shadow:0 14px 34px rgba(22,55,42,.16);padding:7px}
.task-board-subcategory-group+ .task-board-subcategory-group{border-top:1px solid #edf2ef}
.task-board-subcategory-label{padding:9px 9px 6px;color:#244b39;font-size:.82rem;font-weight:900}
.task-board-menu-task-list{display:grid;gap:5px;padding:0 3px 8px}
.task-board-menu-task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:38px;border:1px solid #e0e8e4;border-radius:8px;background:#fbfdfc;padding:6px 8px;cursor:grab}
.task-board-menu-task:hover{border-color:#8fc3a7;background:#f3faf6}
.task-board-menu-task:active{cursor:grabbing}
.task-board-menu-duration{font-size:.7rem;font-weight:900;color:#28724a;background:#e9f7ef;border-radius:999px;padding:3px 6px;white-space:nowrap}
.task-board-menu-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:800;color:#1f2937}
.task-board-menu-drag{color:#708078;font-size:.85rem}
.task-board-menu-empty{padding:2px 9px 9px;color:#9aa5a0;font-size:.73rem}
.task-board-library-hint{margin:9px 2px 0;color:#73817a;font-size:.76rem}
.task-board-library-tasks{display:none!important}
.task-page-heading{display:none!important}
.task-board-days{gap:24px}
.task-board-date{margin:0 auto 12px}
.task-board-worker-card{min-height:300px}
.task-board-card-footer{border-top:1px solid #edf1ef;padding-top:10px}
.task-board-total{font-size:1.18rem;font-weight:900}
@media(max-width:1000px){.task-board-category-row{grid-template-columns:repeat(2,minmax(160px,1fr))}.task-board-category-dropdown{max-width:min(360px,80vw)}}
@media(max-width:640px){.task-board-category-row{grid-template-columns:1fr 1fr;gap:8px}.task-board-category-menu>summary{padding:0 10px;font-size:.83rem}.task-board-category-dropdown{position:fixed;left:12px;right:12px;top:120px;width:auto;max-width:none;max-height:65vh}}

/* RC172: compact Task Library. Category dropdowns only show work types; saved tasks appear as a compact draggable strip after selection. */
.task-board-library{padding:12px 18px 11px}
.task-board-library-head{margin-bottom:8px}
.task-board-library-head h2{margin:0;font-size:1.16rem}
.task-board-category-menu.is-selected>summary{border-color:#62a982;background:#edf9f2;color:#1f7047}
.task-board-category-menu>summary small{font-size:.72rem;font-weight:700;color:#62806f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:105px}
.task-board-category-dropdown.task-board-subcategory-only{width:max(220px,100%);max-width:290px;max-height:360px;padding:6px;display:grid;gap:3px}
.task-board-subcategory-option{width:100%;min-height:38px;border:0;border-radius:7px;background:#fff;color:#244b39;text-align:left;padding:8px 10px;font:inherit;font-size:.86rem;font-weight:750;cursor:pointer}
.task-board-subcategory-option:hover,.task-board-subcategory-option.is-active{background:#edf9f2;color:#1f7047}
.task-board-selection-strip{margin-top:9px;border-top:1px solid #e4ece8;padding-top:9px}
.task-board-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;color:#365846;font-size:.82rem}
.task-board-selection-head span{display:flex;align-items:center;gap:6px;min-width:0}
.task-board-selection-head b{color:#8da096;font-weight:700}
.task-board-selection-head button{border:0;background:transparent;color:#7a8a82;font-size:1.1rem;line-height:1;cursor:pointer;padding:2px 5px}
.task-board-selection-tasks{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:thin}
.task-board-selection-tasks .task-board-menu-task{flex:0 0 auto;min-width:180px;max-width:260px}
.task-board-no-saved{margin:2px 0 7px;color:#6f7e76;font-size:.8rem}
.task-board-type-new{margin-top:6px;border:0;background:transparent;color:#2c7950;font-weight:800;font-size:.8rem;cursor:pointer;padding:3px 0}
.task-board-quick-create{display:grid;grid-template-columns:minmax(180px,1fr) 92px auto;gap:7px;align-items:center;margin-top:6px}
.task-board-quick-create>input,.task-board-quick-duration{min-height:38px;border:1px solid #d7e1dd;border-radius:8px;background:#fff}
.task-board-quick-create>input{padding:0 10px;font:inherit}
.task-board-quick-duration{display:flex;align-items:center;padding:0 8px;gap:4px}
.task-board-quick-duration input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit}
.task-board-quick-duration span{font-size:.75rem;color:#718078;font-weight:800}
.task-board-quick-create .secondary-button{min-height:38px;padding:0 13px}
.task-board-days{margin-top:10px}
@media(max-width:640px){
  .task-board-category-menu>summary small{display:none}
  .task-board-quick-create{grid-template-columns:1fr 84px}
  .task-board-quick-create .secondary-button{grid-column:1/-1}
}


/* RC173 - widen the General Worker planner and move the board upward */
.task-workspace-mode{gap:8px}
.task-workspace-mode > .task-suite{
  width:min(100%,1180px)!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.task-workspace-mode > .task-suite .task-board-shell{gap:10px}
.task-workspace-mode > .task-suite .task-board-library{
  padding:10px 14px 9px;
  top:62px;
}
.task-workspace-mode > .task-suite .task-board-library-head{margin-bottom:7px}
.task-workspace-mode > .task-suite .task-board-library-head h2{font-size:1.06rem}
.task-workspace-mode > .task-suite .task-board-add-template{width:42px;height:42px}
.task-workspace-mode > .task-suite .task-board-category-menu>summary{min-height:44px}
.task-workspace-mode > .task-suite .task-board-selection-strip{margin-top:7px;padding-top:7px}
.task-workspace-mode > .task-suite .task-board-days{margin-top:2px;gap:18px}
.task-workspace-mode > .task-suite .task-board-date{margin:0 auto 7px}
.task-workspace-mode > .task-suite .task-board-workers-scroll{padding-top:0}
@media(max-width:1220px){
  .task-workspace-mode > .task-suite{width:100%!important;max-width:100%!important}
}

/* RC175 - saved Task Library Project */
.task-board-quick-template-grid{grid-template-columns:1.7fr 1.15fr 1.15fr 110px}
.task-board-quick-create{grid-template-columns:minmax(180px,1fr) minmax(150px,210px) 92px auto}
.task-board-quick-create>select{min-height:38px;border:1px solid #d7e1dd;border-radius:8px;background:#fff;padding:0 9px;font:inherit;color:#1f2937;min-width:0}
@media(max-width:900px){.task-board-quick-template-grid{grid-template-columns:1fr 1fr}.task-board-quick-template-grid .wide{grid-column:1/-1}.task-board-quick-create{grid-template-columns:1fr 1fr}.task-board-quick-create .secondary-button{grid-column:auto}}
@media(max-width:620px){.task-board-quick-template-grid,.task-board-quick-create{grid-template-columns:1fr}.task-board-quick-template-grid .wide,.task-board-quick-create .secondary-button{grid-column:auto}}

/* RC176: one-time Project picker for legacy Task Library items */
.task-board-project-backdrop{position:fixed;inset:0;background:rgba(15,35,27,.28);display:grid;place-items:center;z-index:9999;padding:24px}.task-board-project-modal{width:min(440px,calc(100vw - 32px));background:#fffdf9;border:1px solid #d9e3dc;border-radius:16px;box-shadow:0 22px 60px rgba(20,48,37,.24);padding:18px}.task-board-project-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.task-board-project-modal-head small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;color:#6d857a;margin-bottom:4px}.task-board-project-modal-head strong{font-size:17px;color:#183c2f}.task-board-project-modal-head button{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#53665e}.task-board-project-modal p{font-size:13px;line-height:1.5;color:#607268;margin:14px 0}.task-board-project-modal label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#385748}.task-board-project-modal select{min-height:42px;border:1px solid #cbd8d1;border-radius:10px;background:#fff;padding:0 12px;font:inherit;color:#183c2f}.task-board-project-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}

/* RC178: edit assignment details directly inside each General Worker card. */
.task-board-task-edit-grid textarea{width:100%;min-height:68px;border:1px solid #d7e0dc;border-radius:8px;background:#fff;padding:8px;font:inherit;color:#1f2937;resize:vertical}
.task-board-task-edit-grid .task-board-field-wide{grid-column:1/-1}
.task-board-task-edit-grid select[data-board-meta="vehicle"],.task-board-task-edit-grid input[data-board-meta="tools"]{min-height:36px}
.task-board-task-details[open] summary{border-bottom:1px solid #f1f4f2}

/* RC180: compact per-task Done Editing flow */
.task-board-task-details.is-editing{border-top:1px solid #edf1ef}
.task-board-done-editing{grid-column:1/-1;min-height:36px;border:1px solid #2e5b45;border-radius:8px;background:#2e5b45;color:#fff;font:inherit;font-weight:800;cursor:pointer;margin-top:2px}
.task-board-done-editing:hover{filter:brightness(.97)}
.task-board-task-collapsed{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf1ef;padding:7px 9px}
.task-board-task-collapsed-meta{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
.task-board-task-collapsed-meta span{display:inline-flex;align-items:center;min-height:24px;padding:3px 7px;border-radius:999px;background:#eef6f1;color:#355e49;font-size:.69rem;font-weight:800;line-height:1.1}
.task-board-edit-again{flex:0 0 auto;min-height:28px;border:1px solid #cddbd3;border-radius:7px;background:#fff;color:#2e5b45;padding:4px 10px;font:inherit;font-size:.72rem;font-weight:800;cursor:pointer}
.task-board-edit-again:hover{background:#f4f8f6}

/* RC181: taller instruction editor for easier SV task entry. */
.task-board-task-edit-grid textarea[data-board-meta="instructions"]{
  min-height:120px;
  line-height:1.45;
}


/* RC183 - collapse the sticky Task Library after the SV scrolls into worker planning. */
.task-board-library-anchor{height:1px;margin:0;padding:0;pointer-events:none}
.task-board-library{transition:padding .16s ease,box-shadow .16s ease,background .16s ease}
.task-board-library.is-sticky-compact{padding:8px 10px;min-height:56px;background:rgba(250,255,252,.985);box-shadow:0 10px 26px rgba(20,65,45,.11)}
.task-board-library.is-sticky-compact .task-board-library-head{position:absolute;right:10px;top:8px;z-index:90;margin:0}
.task-board-library.is-sticky-compact .task-board-library-head h2{display:none}
.task-board-library.is-sticky-compact .task-board-add-template{width:40px;height:40px;border-radius:10px;font-size:1.55rem}
.task-board-library.is-sticky-compact .task-board-category-row{grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px;padding-right:52px}
.task-board-library.is-sticky-compact .task-board-category-menu>summary{min-height:40px;padding:0 11px;font-size:.84rem;border-radius:9px}
.task-board-library.is-sticky-compact .task-board-category-menu>summary small{font-size:.72rem}
.task-board-library.is-sticky-compact .task-board-category-dropdown{top:calc(100% + 5px)}
.task-board-library.is-sticky-compact .task-board-selection-strip{position:absolute;left:10px;right:10px;top:calc(100% + 6px);z-index:85;margin:0;padding:10px 12px;background:#fff;border:1px solid #d7e1dd;border-radius:10px;box-shadow:0 14px 34px rgba(22,55,42,.16);max-height:42vh;overflow:auto}
.task-board-library.is-sticky-compact .task-board-template-editor{position:absolute;left:10px;right:10px;top:calc(100% + 6px);z-index:86;margin:0;padding:12px;background:#fff;border:1px solid #d7e1dd;border-radius:10px;box-shadow:0 14px 34px rgba(22,55,42,.16);max-height:70vh;overflow:auto}
@media(max-width:1000px){
  .task-board-library.is-sticky-compact .task-board-category-row{display:flex;overflow-x:auto;gap:8px;padding-right:52px;scrollbar-width:thin}
  .task-board-library.is-sticky-compact .task-board-category-menu{flex:0 0 180px}
}
@media(max-width:640px){
  .task-board-library.is-sticky-compact{padding:7px 8px}
  .task-board-library.is-sticky-compact .task-board-library-head{right:8px;top:7px}
  .task-board-library.is-sticky-compact .task-board-add-template{width:38px;height:38px}
  .task-board-library.is-sticky-compact .task-board-category-row{padding-right:48px}
  .task-board-library.is-sticky-compact .task-board-category-menu{flex-basis:150px}
  .task-board-library.is-sticky-compact .task-board-selection-strip,.task-board-library.is-sticky-compact .task-board-template-editor{left:8px;right:8px}
}

/* RC188: General Worker task evidence uses the live WorkXP camera only. */
.task-camera-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  background: #fbfdfc;
}
.task-camera-copy { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.task-camera-copy strong { font-size: 15px; }
.task-camera-copy small { color:#617067; line-height:1.45; }
.task-camera-shell { margin:10px 0; max-height:52vh; }
.task-camera-actions { display:flex; gap:10px; margin-top:10px; }
.task-camera-actions > button { flex:1; }
.task-camera-open { width:100%; }
.task-camera-preview { margin:10px 0; }
.task-camera-preview img { max-height:360px; object-fit:cover; }
@media (max-width: 700px) {
  .task-camera-panel { padding:12px; }
  .task-camera-actions { flex-direction:column; }
  .task-camera-shell { aspect-ratio:3 / 4; max-height:58vh; }
}

/* RC189: Add Library Task now stores Category + Work Type explicitly. */
@media(min-width:901px){.task-board-quick-template-grid{grid-template-columns:1.7fr 1.1fr 1fr 1fr 110px}}

/* RC190 - Task Library is grouped by Project, not Category. Keep projects in one compact row. */
.task-board-category-row{
  display:flex!important;
  grid-template-columns:none!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  gap:10px!important;
  padding-bottom:2px;
  scrollbar-width:thin;
}
.task-board-category-menu{flex:0 0 220px;min-width:180px}
.task-board-category-dropdown{min-width:100%}
@media(max-width:640px){
  .task-board-category-row{display:flex!important;overflow-x:auto!important;gap:8px!important}
  .task-board-category-menu{flex:0 0 170px;min-width:170px}
}
@media(min-width:901px){
  .task-board-quick-template-grid{grid-template-columns:1.7fr 1.1fr 1.1fr 110px!important}
}

/* RC191 - Work Type dropdowns must escape the horizontally scrolling Project row. */
.task-board-category-dropdown.is-floating-project-dropdown{
  position:fixed!important;
  z-index:5000!important;
  max-height:min(360px,65vh)!important;
  overflow:auto!important;
  box-shadow:0 16px 38px rgba(22,55,42,.22)!important;
}


/* RC192 - Compact Project row: no horizontal scrolling, smaller project boxes, compact Work Type menu. */
.task-board-category-row{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(108px,1fr))!important;
  overflow:visible!important;
  gap:8px!important;
  padding-bottom:0!important;
}
.task-board-category-menu{
  flex:none!important;
  min-width:0!important;
  width:auto!important;
}
.task-board-category-menu>summary{
  min-height:42px!important;
  padding:0 10px!important;
  gap:6px!important;
  font-size:.84rem!important;
}
.task-board-category-menu>summary span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.task-board-category-dropdown.task-board-subcategory-only,
.task-board-category-dropdown.is-floating-project-dropdown{
  min-width:170px!important;
  width:190px!important;
  max-width:210px!important;
  max-height:300px!important;
}
.task-board-subcategory-option{
  padding:8px 10px!important;
  font-size:.82rem!important;
}
.task-board-library.is-sticky-compact .task-board-category-row{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(104px,1fr))!important;
  overflow:visible!important;
  gap:7px!important;
  padding-right:48px!important;
}
.task-board-library.is-sticky-compact .task-board-category-menu{
  flex:none!important;
  min-width:0!important;
}
@media(max-width:760px){
  .task-board-category-row,
  .task-board-library.is-sticky-compact .task-board-category-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow:visible!important;
  }
  .task-board-category-dropdown.task-board-subcategory-only,
  .task-board-category-dropdown.is-floating-project-dropdown{
    width:min(200px,calc(100vw - 24px))!important;
    min-width:0!important;
    max-width:min(210px,calc(100vw - 24px))!important;
  }
}

/* RC193 - Supervisors can add Work Type dropdown choices per Project. */
.task-board-add-worktype-choice{
  width:100%;
  border:0;
  border-top:1px solid #e3ebe6;
  background:#f7fbf8;
  color:#286846;
  padding:9px 10px;
  margin-top:3px;
  text-align:left;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
  border-radius:7px;
}
.task-board-add-worktype-choice:hover{background:#edf7f1}
.task-board-worktype-modal input{
  min-height:42px;
  border:1px solid #cbd8d1;
  border-radius:10px;
  background:#fff;
  padding:0 12px;
  font:inherit;
  color:#183c2f;
}

/* RC194 — QR asset custody flow */
.legacy-asset-board{display:none!important}
.asset-qr-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.asset-qr-toolbar-button{min-height:74px;display:flex!important;align-items:center;gap:12px;text-align:left;justify-content:flex-start!important;padding:14px 16px!important}
.asset-qr-toolbar-button span:last-child{display:flex;flex-direction:column;gap:2px}
.asset-qr-toolbar-button small{font-size:12px;font-weight:500;opacity:.82}
.asset-qr-action-icon{font-size:24px;line-height:1;width:32px;text-align:center}
.asset-qr-board{margin-top:14px}
.asset-qr-holding-card{padding:0;overflow:hidden}
.asset-card-static{width:100%;cursor:default;border:0;background:transparent;text-align:left}
.asset-qr-return-button{margin:0 14px 14px;width:calc(100% - 28px)}
.asset-qr-my-card{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:center;padding:18px;margin:12px 0 18px;border:1px solid #d8e2dc;border-radius:16px;background:#fffdf8}
.asset-qr-my-card h2{margin:4px 0 6px}.asset-qr-my-card p{margin:0;color:#6c746f;max-width:620px}
.asset-qr-code-wrap{display:flex;flex-direction:column;align-items:center;gap:8px}.asset-qr-code-wrap img{width:230px;height:230px;object-fit:contain;border:10px solid #fff;border-radius:12px;box-shadow:0 8px 28px rgba(30,62,47,.1)}
.asset-qr-code-wrap code{max-width:260px;font-size:10px;word-break:break-all;color:#68716d;text-align:center}
.asset-qr-my-card .asset-qr-actions{grid-column:1/-1}
.asset-qr-overlay{position:fixed;inset:0;z-index:9999;background:rgba(18,37,29,.58);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(3px)}
.asset-qr-modal{width:min(620px,100%);max-height:92vh;overflow:auto;background:#fffdf8;border-radius:20px;border:1px solid #dfe7e2;box-shadow:0 22px 60px rgba(11,31,22,.3);padding:20px}
.asset-qr-holder-modal{width:min(720px,100%)}
.asset-qr-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.asset-qr-modal-head h2{margin:3px 0 4px}.asset-qr-modal-head p{margin:0;color:#6d756f}
.asset-qr-close{border:0;background:transparent;font-size:26px;line-height:1;color:#5d6861;cursor:pointer;padding:4px 8px}
.asset-qr-scanner-shell{position:relative;aspect-ratio:1/1;max-width:430px;margin:0 auto;background:#111;border-radius:18px;overflow:hidden}.asset-qr-scanner-shell video{width:100%;height:100%;object-fit:cover}
.asset-qr-scan-frame{position:absolute;inset:16%;border:3px solid #eaf7ef;border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.25)}
.asset-qr-scan-help{text-align:center;color:#66726b;font-size:13px;margin:10px 0}
.asset-qr-manual{margin-top:12px;border-top:1px solid #e4e9e5;padding-top:10px}.asset-qr-manual summary{cursor:pointer;font-weight:700}.asset-qr-manual label{display:block;margin-top:10px}.asset-qr-manual input{width:100%}
.asset-qr-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.asset-qr-actions>*{min-width:120px}
.asset-qr-holder-assets{display:grid;gap:10px;margin:8px 0 16px}.asset-qr-choice{display:grid!important;grid-template-columns:auto auto minmax(0,1fr);gap:10px;align-items:center;border:1px solid #dbe4de;border-radius:12px;padding:12px;cursor:pointer;background:#fff}.asset-qr-choice.selected{border-color:#3b7d5c;background:#eef8f2}.asset-qr-choice input{width:18px;height:18px}.asset-qr-choice>span:last-child{display:flex;flex-direction:column;gap:3px}.asset-qr-choice small{color:#69736d}
.asset-qr-camera-shell{max-width:520px;margin:0 auto}.asset-qr-photo-preview{margin-top:4px}
.asset-qr-board .inline-evidence-card{margin-top:12px}
@media(max-width:760px){.asset-qr-toolbar{grid-template-columns:1fr}.asset-qr-toolbar-button{min-height:64px}.asset-qr-my-card{grid-template-columns:1fr}.asset-qr-code-wrap{order:2}.asset-qr-my-card .asset-qr-actions{order:3}.asset-qr-modal{padding:16px;border-radius:16px}.asset-qr-overlay{padding:10px}.asset-qr-actions{flex-direction:column}.asset-qr-actions>*{width:100%}.asset-qr-code-wrap img{width:210px;height:210px}}


/* RC195 — compact Asset Custody refinements */
.asset-custody-summary{
  margin-bottom:10px;
  gap:10px;
}
.asset-custody-summary article{
  min-height:84px;
  padding:11px 14px;
  gap:3px;
}
.asset-custody-summary strong{font-size:22px;line-height:1.05}
.asset-custody-summary small{font-size:11px;line-height:1.3}
.asset-qr-toolbar{
  gap:10px;
  margin:10px 0;
}
.asset-qr-toolbar-button{
  min-height:62px;
  padding:10px 14px!important;
}
.asset-qr-toolbar-button small{font-size:11px}
.asset-qr-action-icon{font-size:21px;width:28px}
.asset-qr-board{
  margin-top:10px;
  align-items:stretch;
}
.asset-qr-board .asset-board-column{
  height:100%;
  padding:12px;
}
.asset-qr-board .asset-board-help{
  min-height:0;
  margin:5px 0 10px;
  line-height:1.35;
}
.asset-qr-board .asset-board-empty{
  min-height:92px;
  padding:14px 11px;
}
.asset-qr-board .asset-card-select{
  padding:10px;
  grid-template-columns:30px minmax(0,1fr) auto;
  gap:8px;
}
.asset-qr-board .asset-card-icon{
  width:30px;
  height:30px;
  font-size:14px;
}
.asset-qr-board .asset-pending-card,
.asset-qr-board .asset-inuse-card{
  padding:10px;
}
.asset-qr-board .asset-handover-meta{
  margin:8px 0;
  gap:5px;
}
@media(max-width:760px){
  .asset-custody-summary article{min-height:0;padding:10px 12px}
  .asset-qr-toolbar{margin:8px 0}
  .asset-qr-toolbar-button{min-height:58px}
  .asset-qr-board{margin-top:8px}
}

/* RC196 — Asset Custody scroll overlap fix
   The Assets / Consumables switch remains in normal document flow so it cannot
   cover the Asset Custody heading or custody cards while the page is scrolled. */
.asset-module-switch-sticky{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  margin:-2px 0 0!important;
  padding:8px 0!important;
  background:transparent!important;
  backdrop-filter:none!important;
  border-bottom:1px solid rgba(225,232,228,.9)!important;
}

/* RC197 — keep Assets / Consumables sticky without covering Asset Custody content.
   The switch stays directly below the global top bar. The opaque background and
   lower guard area prevent headings/cards from showing through beneath it. */
.asset-module-switch-sticky{
  position:sticky!important;
  top:var(--shiftly-global-header-height)!important;
  z-index:145!important;
  margin:-2px 0 0!important;
  padding:8px 0 12px!important;
  background:#fafcfb!important;
  backdrop-filter:none!important;
  border-bottom:1px solid rgba(225,232,228,.95)!important;
  box-shadow:0 8px 14px -14px rgba(24,53,39,.45)!important;
  isolation:isolate;
}
.asset-module-switch-sticky::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:8px;
  background:#fafcfb;
  pointer-events:none;
}
@media(max-width:900px){
  .asset-module-switch-sticky{
    top:var(--shiftly-global-header-height)!important;
    padding-bottom:10px!important;
  }
  .asset-module-switch-sticky::after{bottom:-6px;height:6px}
}

/* RC199 - keep Outstation Check Out directly beside the attendance checkout action */
.outstation-checkout-inline{
  width:100%;
  margin:10px 0 0;
  padding:16px;
  border:1px solid #dbe5df;
  border-radius:16px;
  background:var(--v2-surface,#fffdf9);
  box-shadow:0 10px 28px rgba(31,65,50,.08);
  display:grid;
  gap:12px;
  scroll-margin-top:84px;
}
.outstation-checkout-inline .outstation-checkout-modal-heading{margin-bottom:0}
.outstation-checkout-inline .outstation-checkout-modal-heading h2{font-size:1.15rem}
.outstation-checkout-inline .outstation-mode-grid{margin-top:4px}
.outstation-checkout-inline .outstation-v2-title{margin-top:0}
.outstation-checkout-inline .outstation-v2-title h3{margin-top:0}
@media(max-width:700px){
  .outstation-checkout-inline{padding:13px;border-radius:14px;scroll-margin-top:72px}
  .outstation-checkout-inline .outstation-checkout-modal-heading h2{font-size:1.05rem}
}

/* RC201 - Platform Owner delete controls for Task Library items and Work Types. */
.task-board-menu-task{grid-template-columns:auto minmax(0,1fr) auto auto!important}
.task-board-library-delete,
.task-board-worktype-delete{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  min-width:28px;
  border:1px solid #e6c5c5;
  border-radius:7px;
  background:#fff8f8;
  color:#a73c3c;
  font:inherit;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.task-board-library-delete:hover,
.task-board-worktype-delete:hover{background:#fbeaea;border-color:#d99b9b;color:#842828}
.task-board-worktype-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:4px;align-items:center}
.task-board-worktype-row .task-board-subcategory-option{min-width:0}
.task-board-worktype-delete{width:30px;height:34px;min-width:30px}

/* RC203 - keep the Project row frozen while the SV plans worker tasks. */
.task-workspace-mode .task-board-library{
  overflow:visible!important;
}
.task-workspace-mode .task-board-category-row{
  position:sticky!important;
  top:calc(var(--shiftly-global-header-height, 54px) + 8px)!important;
  z-index:120!important;
  background:rgba(255,253,249,.985)!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
  border-radius:10px;
  box-shadow:0 1px 0 rgba(40,78,59,.10);
}
/* The parent Task Library is already sticky in compact mode, so pin the row
   to the top edge of that compact library instead of adding a second offset. */
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-row{
  top:0!important;
}
@media(max-width:760px){
  .task-workspace-mode .task-board-category-row{
    top:calc(var(--shiftly-global-header-height, 54px) + 6px)!important;
  }
  .task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-row{
    top:0!important;
  }
}

/* RC204 - keep the compact Project row visible below the sticky Task Planning / Ongoing Tasks tabs.
   RC203 used the same sticky top offset for both layers, so the Project row was actually
   sitting underneath the higher-z-index task tabs. Pin the compact Task Library below the
   task tabs instead. */
.task-workspace-mode > .task-suite .task-board-library{
  top:calc(var(--shiftly-global-header-height, 60px) + 64px)!important;
  z-index:130!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-row,
.task-workspace-mode .task-board-category-row{
  top:0!important;
}
@media(max-width:760px){
  /* On mobile the Task Planning / Ongoing Tasks tabs are not sticky, so keep the
     compact library directly beneath the global header. */
  .task-workspace-mode > .task-suite .task-board-library{
    top:calc(var(--shiftly-global-header-height, 58px) + 6px)!important;
  }
}

/* RC205 - Professional integrated sticky Project toolbar.
   When the Task Library collapses while scrolling, remove the floating-card look
   and make the Project row read as a deliberate toolbar directly beneath the
   Task Planning / Ongoing Tasks tabs. */
.task-workspace-mode > .task-suite .task-board-library.is-sticky-compact{
  top:calc(var(--shiftly-global-header-height, 60px) + 64px)!important;
  min-height:0!important;
  margin:0!important;
  padding:6px 8px!important;
  border:0!important;
  border-bottom:1px solid rgba(205,219,211,.95)!important;
  border-radius:0!important;
  background:rgba(250,252,251,.985)!important;
  box-shadow:0 8px 16px -16px rgba(24,53,39,.65)!important;
  backdrop-filter:blur(10px);
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-library-head{
  right:8px!important;
  top:6px!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-add-template{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:8px!important;
  font-size:1.25rem!important;
  background:#fff!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-row{
  position:relative!important;
  top:auto!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;
  gap:6px!important;
  padding:0 42px 0 0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-menu>summary{
  min-height:36px!important;
  padding:0 9px!important;
  border:1px solid #d7e1dc!important;
  border-radius:8px!important;
  background:#fff!important;
  font-size:.78rem!important;
  line-height:1.15!important;
  box-shadow:none!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-menu[open]>summary{
  border-color:#8db9a2!important;
  background:#eef7f1!important;
  color:#215d3f!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-menu>summary span:first-child{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-selection-strip,
.task-workspace-mode .task-board-library.is-sticky-compact .task-board-template-editor{
  left:8px!important;
  right:8px!important;
  top:calc(100% + 4px)!important;
  border-radius:10px!important;
  box-shadow:0 14px 34px rgba(22,55,42,.14)!important;
}
@media(max-width:760px){
  .task-workspace-mode > .task-suite .task-board-library.is-sticky-compact{
    top:calc(var(--shiftly-global-header-height, 58px) + 6px)!important;
    padding:6px!important;
  }
  .task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    padding-right:40px!important;
  }
  .task-workspace-mode .task-board-library.is-sticky-compact .task-board-category-menu>summary{
    min-height:36px!important;
    font-size:.78rem!important;
  }
}


/* RC206 - English / Bahasa Melayu language switch */
.workxp-language-toggle{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid #d9ddd6;
  border-radius:999px;
  background:#f8f7f3;
  flex:0 0 auto;
}
.workxp-language-toggle button{
  min-width:34px;
  height:28px;
  padding:0 9px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#647069;
  font:700 11px/1 inherit;
  letter-spacing:.04em;
  cursor:pointer;
}
.workxp-language-toggle button.active{
  background:#2e5a45;
  color:#fff;
  box-shadow:0 1px 2px rgba(27,61,45,.15);
}
.login-language-switch{
  position:fixed;
  top:18px;
  right:20px;
  z-index:5;
}
@media (max-width:700px){
  .topbar-actions{gap:6px;}
  .workxp-language-toggle{padding:2px;}
  .workxp-language-toggle button{min-width:30px;height:26px;padding:0 7px;font-size:10px;}
  .login-language-switch{top:12px;right:12px;}
}

/* RC209 - Flush sticky/frozen sections directly beneath the app header.
   Removes the visual spacer that made sticky page controls look detached/floating.
   This is intentionally global so page-level sticky contexts share one consistent edge. */
:root{
  --workxp-sticky-gap:0px;
  --workxp-secondary-sticky-height:52px;
}

/* Primary sticky/frozen rows: sit flush under the fixed top bar. */
.sticky-view-heading,
.view-sticky-context,
.documents-sticky-tabs,
.task-tabs-sticky,
.attendance-management-sticky,
.asset-module-switch-sticky{
  top:var(--shiftly-global-header-height)!important;
}

/* Remove artificial top spacing from sticky page contexts. */
.sticky-view-heading,
.view-sticky-context,
.task-tabs-sticky,
.documents-sticky-tabs,
.asset-module-switch-sticky{
  margin-top:0!important;
}

/* Where a second sticky layer is intentionally stacked beneath page tabs,
   keep it attached to the first layer with no extra floating gap. */
.sticky-document-heading{
  top:calc(var(--shiftly-global-header-height) + var(--workxp-secondary-sticky-height))!important;
  margin-top:0!important;
}

/* Task Planner: keep the compact Project toolbar attached directly beneath
   Task Planning / Ongoing Tasks instead of leaving the old 8-12px spacer. */
.task-workspace-mode > .task-suite .task-board-library,
.task-workspace-mode > .task-suite .task-board-library.is-sticky-compact{
  top:calc(var(--shiftly-global-header-height, 60px) + var(--workxp-secondary-sticky-height))!important;
}

/* Prevent sticky wrappers from creating an extra blank band above their content. */
.sticky-view-heading,
.view-sticky-context,
.documents-sticky-tabs,
.task-tabs-sticky,
.asset-module-switch-sticky{
  scroll-margin-top:0!important;
}

@media(max-width:760px){
  :root{--workxp-secondary-sticky-height:0px}
  .sticky-view-heading,
  .view-sticky-context,
  .documents-sticky-tabs,
  .attendance-management-sticky,
  .asset-module-switch-sticky{
    top:var(--shiftly-global-header-height)!important;
  }
  /* Task tabs are not sticky on small screens; the Project toolbar sits directly
     below the global header with no extra gap. */
  .task-workspace-mode > .task-suite .task-board-library,
  .task-workspace-mode > .task-suite .task-board-library.is-sticky-compact{
    top:var(--shiftly-global-header-height,58px)!important;
  }
}

/* RC210 - Manual OT Claim */
.ot-claim-page{display:flex;flex-direction:column;gap:18px}
.ot-claim-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:18px;align-items:start}
.ot-claim-form,.ot-my-claims,.ot-review-panel{min-width:0}
.ot-manual-notice{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:#f5f7f3;border:1px solid #dfe7df;margin:4px 0 14px}
.ot-manual-notice strong{font-size:.9rem;color:#2e4d3c;white-space:nowrap}
.ot-manual-notice span{font-size:.88rem;color:#627168;line-height:1.45}
.ot-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ot-form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#35473e;font-size:.9rem}
.ot-form-grid label small{font-weight:500;color:#819087}
.ot-form-grid input,.ot-form-grid textarea{width:100%;box-sizing:border-box}
.ot-form-grid textarea{min-height:110px;resize:vertical}
.ot-form-wide{grid-column:1/-1}
.ot-submit-button{margin-top:16px;width:100%}
.ot-claim-list,.ot-review-list{display:flex;flex-direction:column;gap:12px}
.ot-claim-item,.ot-review-item{border:1px solid #e2e8e3;border-radius:14px;background:#fff;padding:14px}
.ot-claim-item.status-approved{border-left:4px solid #4e8a69}
.ot-claim-item.status-rejected{border-left:4px solid #c66767}
.ot-claim-item.status-cancelled{border-left:4px solid #9aa39d;opacity:.82}
.ot-claim-item.status-pending{border-left:4px solid #d7a94d}
.ot-claim-item-head,.ot-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ot-claim-item-head>div:first-child,.ot-review-head>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.ot-claim-item-head strong,.ot-review-head strong{font-size:1rem;color:#283b31}
.ot-claim-item-head small,.ot-review-head small{color:#7b8881}
.ot-claim-hours{display:flex;align-items:baseline;gap:4px;white-space:nowrap;border-radius:12px;background:#f1f6f2;padding:7px 10px;color:#2f5a44}
.ot-claim-hours b{font-size:1.18rem}
.ot-claim-hours span{font-size:.78rem;font-weight:700;text-transform:uppercase}
.ot-claim-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 8px;font-size:.78rem;color:#86928b}
.ot-status-pill{font-weight:800;padding:4px 8px;border-radius:999px;font-size:.7rem;letter-spacing:.03em}
.ot-status-pill.status-pending{background:#fff4d9;color:#8f6b16}
.ot-status-pill.status-approved{background:#e9f5ed;color:#2f6a45}
.ot-status-pill.status-rejected{background:#fdeaea;color:#9c4444}
.ot-status-pill.status-cancelled{background:#eef1ef;color:#6e7772}
.ot-claim-item p,.ot-work-description p{margin:8px 0 0;color:#4f5f56;line-height:1.5}
.ot-review-note{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f7f8f7;display:flex;flex-direction:column;gap:3px}
.ot-review-note span,.ot-work-description span{font-size:.74rem;color:#87928c;text-transform:uppercase;font-weight:800;letter-spacing:.03em}
.ot-review-note strong{font-size:.88rem;color:#4a5a51}
.ot-claim-actions{display:flex;justify-content:flex-end;margin-top:12px}
.ot-review-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.ot-review-facts span{display:flex;flex-direction:column;gap:3px;padding:9px 10px;border-radius:10px;background:#f8faf8;min-width:0}
.ot-review-facts small{font-size:.7rem;color:#8a958f;text-transform:uppercase;font-weight:800}
.ot-review-facts strong{font-size:.88rem;color:#405148;overflow:hidden;text-overflow:ellipsis}
.ot-work-description{padding:10px 12px;border-radius:10px;background:#fafbfa;margin-bottom:12px}
.ot-work-description p{margin-top:4px}
.ot-review-remarks{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#43544b;font-size:.86rem}
.ot-review-remarks small{font-weight:500;color:#8a958f}
.ot-review-remarks textarea{min-height:70px;resize:vertical}
.ot-review-item .emergency-review-actions{margin-top:12px}
@media (max-width:980px){.ot-claim-layout{grid-template-columns:1fr}.ot-review-facts{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.ot-form-grid{grid-template-columns:1fr}.ot-form-wide{grid-column:auto}.ot-review-facts{grid-template-columns:1fr}.ot-claim-item-head,.ot-review-head{align-items:center}.ot-manual-notice{flex-direction:column;gap:4px}}


/* RC212 - Compact single-company header
   WorkXP remains the product brand in the sidebar. The active company is shown
   once in the top bar, avoiding duplicated company text and saving frozen space. */
:root{
  --shiftly-global-header-height:54px;
}
.sidebar-brand-row{
  min-height:48px!important;
  padding:0 4px 4px!important;
}
.sidebar-brand{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
}
.sidebar-brand small{
  display:none!important;
}
.app-topbar{
  min-height:54px!important;
  padding:5px 16px!important;
  gap:12px!important;
}
.topbar-left{
  gap:8px!important;
}
.topbar-context strong{
  font-size:12px!important;
  line-height:1.15!important;
  font-weight:800!important;
  max-width:min(39vw,430px)!important;
}
.app-topbar .profile-menu-toggle{
  min-height:38px!important;
  padding:3px 8px 3px 3px!important;
}
.app-topbar .profile-menu-toggle .avatar{
  width:30px!important;
  height:30px!important;
  flex-basis:30px!important;
}
.app-topbar .profile-summary strong{
  font-size:11.5px!important;
}
.app-topbar .profile-summary small{
  font-size:9.5px!important;
}
.sidebar-content.content-wrap{
  padding-top:68px!important;
}

@media(max-width:900px){
  :root{--shiftly-global-header-height:52px;}
  .app-topbar,.sidebar-collapsed .app-topbar{
    min-height:52px!important;
    padding:5px 9px!important;
  }
  .sidebar-content.content-wrap,.sidebar-collapsed .sidebar-content.content-wrap{
    padding-top:66px!important;
  }
  .topbar-context strong{
    max-width:34vw!important;
    font-size:11.5px!important;
  }
}
@media(max-width:520px){
  .topbar-context strong{
    max-width:29vw!important;
    font-size:11px!important;
  }
  .app-topbar .profile-summary strong{
    max-width:78px!important;
  }
}


/* RC216 - clickable links inside General Worker task instructions */
.task-instruction-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 3px 4px 0;
  padding: 6px 9px;
  border: 1px solid #bfd5c6;
  border-radius: 7px;
  background: #f4f8f5;
  color: #24583c;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.task-instruction-link:hover,
.task-instruction-link:focus-visible {
  background: #eaf3ed;
  border-color: #8fb59e;
  text-decoration: none;
}
.task-instruction-link.task-map-link {
  border-color: #a9cbb5;
  background: #eef7f1;
}
.current-task-heading p .task-instruction-link {
  margin-top: 7px;
}
@media (max-width: 620px) {
  .task-instruction-link {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }
}


/* RC218 - Task Library smooth sticky toolbar.
   Keep only the compact Project row sticky. The expanded selected-task strip and
   task editor stay in normal page flow so they cannot cover General Worker cards.
   This also removes the old scroll-triggered compact-state height change that
   caused the one-time upward jump. */
.task-workspace-mode > .task-suite .task-board-library-heading{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  margin:0!important;
  padding:10px 14px 8px!important;
  border-bottom-left-radius:10px!important;
  border-bottom-right-radius:10px!important;
  box-shadow:none!important;
}
.task-workspace-mode > .task-suite .task-board-library-heading .task-board-library-head{
  margin:0!important;
}
.task-workspace-mode > .task-suite .task-board-library-heading .task-board-library-head h2{
  margin:0!important;
  font-size:1.06rem!important;
}
.task-workspace-mode > .task-suite .task-board-library-toolbar{
  position:sticky!important;
  top:calc(var(--shiftly-global-header-height,60px) + var(--workxp-secondary-sticky-height,54px))!important;
  z-index:130!important;
  margin:0!important;
  padding:6px 42px 6px 8px!important;
  border:0!important;
  border-bottom:1px solid rgba(205,219,211,.95)!important;
  border-radius:0!important;
  background:rgba(250,252,251,.985)!important;
  box-shadow:0 8px 16px -16px rgba(24,53,39,.65)!important;
  backdrop-filter:blur(10px);
  overflow:visible!important;
}
.task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-row{
  position:relative!important;
  top:auto!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;
  gap:6px!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-menu>summary{
  min-height:36px!important;
  padding:0 9px!important;
  border:1px solid #d7e1dc!important;
  border-radius:8px!important;
  background:#fff!important;
  font-size:.78rem!important;
  line-height:1.15!important;
  box-shadow:none!important;
}
.task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-menu[open]>summary{
  border-color:#8db9a2!important;
  background:#eef7f1!important;
  color:#215d3f!important;
}
.task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-menu>summary span:first-child{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.task-workspace-mode > .task-suite .task-board-toolbar-add{
  position:absolute!important;
  right:6px!important;
  top:6px!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:8px!important;
  font-size:1.25rem!important;
  background:#fff!important;
  z-index:2!important;
}
.task-workspace-mode > .task-suite .task-board-selection-strip{
  position:relative!important;
  inset:auto!important;
  z-index:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  max-height:none!important;
  overflow:visible!important;
  background:#fff!important;
  border:1px solid #d7e1dd!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.task-workspace-mode > .task-suite .task-board-template-editor-flow{
  position:relative!important;
  inset:auto!important;
  z-index:auto!important;
  margin:0!important;
  padding:0!important;
  max-height:none!important;
  overflow:visible!important;
  border:0!important;
}
@media(max-width:760px){
  .task-workspace-mode > .task-suite .task-board-library-toolbar{
    top:var(--shiftly-global-header-height,58px)!important;
    padding:6px 40px 6px 6px!important;
  }
  .task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-menu>summary{
    min-height:36px!important;
    font-size:.78rem!important;
  }
  .task-workspace-mode > .task-suite .task-board-toolbar-add{
    right:4px!important;
    top:6px!important;
  }
}


/* RC219 - Keep Task Library Work Type menus attached to their Project buttons.
   The older fixed-position escape hatch is no longer needed with the RC218 sticky
   toolbar and caused menus to float over General Worker cards after scrolling. */
.task-workspace-mode > .task-suite .task-board-library-toolbar .task-board-category-dropdown.is-anchored-project-dropdown{
  position:absolute!important;
  top:calc(100% + 6px)!important;
  bottom:auto!important;
  max-height:min(360px,65vh)!important;
  overflow:auto!important;
  z-index:5000!important;
  box-shadow:0 14px 34px rgba(22,55,42,.16)!important;
}

/* RC220 - Dynamic Task Library sticky handoff.
   Normal state: keep the Project/Task Library toolbar sticky.
   Expanded state: let that toolbar scroll away and make the selected Work Type
   task strip sticky instead, so Supervisors can keep dragging the active tasks
   while moving through General Worker cards. Closing the selected strip returns
   sticky ownership to the Project toolbar. */
.task-workspace-mode > .task-suite .task-board-library-toolbar.has-expanded-task-list{
  position:relative!important;
  top:auto!important;
  z-index:2!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list{
  position:sticky!important;
  top:calc(var(--shiftly-global-header-height,60px) + var(--workxp-secondary-sticky-height,52px))!important;
  z-index:132!important;
  margin:8px 0 0!important;
  padding:10px 12px!important;
  max-height:min(260px,38vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  background:rgba(255,255,255,.985)!important;
  border:1px solid #d7e1dd!important;
  border-radius:10px!important;
  box-shadow:0 10px 24px rgba(22,55,42,.12)!important;
  backdrop-filter:blur(10px);
}
.task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-selection-head{
  position:sticky;
  top:-10px;
  z-index:2;
  margin:-10px -12px 7px;
  padding:10px 12px 7px;
  background:rgba(255,255,255,.985);
  border-bottom:1px solid rgba(220,229,224,.9);
}
.task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-selection-tasks{
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
@media(max-width:760px){
  .task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list{
    top:var(--shiftly-global-header-height,58px)!important;
    max-height:min(230px,36vh)!important;
    margin-top:6px!important;
    padding:9px 10px!important;
  }
  .task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-selection-head{
    top:-9px;
    margin:-9px -10px 7px;
    padding:9px 10px 7px;
  }
}

/* RC221 - mobile sidebar must be completely hidden when closed. */
@media (max-width: 900px) {
  .suite-sidebar {
    transition: transform .2s ease, opacity .16s ease, visibility .2s ease;
  }
  .sidebar-layout:not(.sidebar-mobile-open) .suite-sidebar {
    transform: translateX(calc(-100% - 48px)) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    box-shadow: none !important;
  }
  .sidebar-layout.sidebar-mobile-open .suite-sidebar {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 12px 0 30px rgba(25,44,34,.12) !important;
  }
}


/* RC222 - native mobile sidebar removal when closed.
   RC221 moved the fixed sidebar off-canvas, but some mobile compositors could still
   paint a sliver of the sidebar brand underneath the hamburger. The hidden attribute
   removes the closed mobile sidebar from layout/paint entirely. */
.suite-sidebar[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .mobile-menu-button {
    position: relative;
    z-index: 2;
    background: #fffdf9 !important;
  }
}

/* RC223 - Verification Photos employee sections + General Worker Daily Task photos */
.verification-photo-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.verification-photo-section-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line, #dfe5df);
  background: var(--card, #fff);
}
.verification-photo-section-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(25, 55, 42, 0.08);
}
.verification-photo-section-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}
.verification-photo-section-card strong {
  font-size: 1rem;
}
.verification-photo-section-card small,
.verification-photo-section-card em {
  font-style: normal;
  color: var(--muted, #68756d);
  line-height: 1.45;
}
.verification-photo-section-card em {
  font-weight: 700;
  color: var(--green-700, #2e5c46);
}
.verification-photo-section-card > b {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--muted, #68756d);
}
.verification-photo-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #edf5ef;
  color: #315b46;
  font-size: 1.2rem;
  font-weight: 800;
}
.verification-photo-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}
.verification-photo-section-heading h2 {
  margin: 3px 0 4px;
}
.verification-photo-section-heading p {
  margin: 0;
  color: var(--muted, #68756d);
}
.verification-task-date-group {
  margin-top: 18px;
}
.verification-task-date-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--line, #dfe5df);
}
.verification-task-date-heading span {
  color: var(--muted, #68756d);
  font-size: .9rem;
}
.verification-task-photo-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.verification-task-photo-card {
  display: grid;
  gap: 14px;
}
.verification-task-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.verification-task-photo-pair .inline-evidence-card {
  margin: 0;
  min-width: 0;
}
.verification-task-photo-missing {
  min-height: 120px;
  border: 1px dashed var(--line, #dfe5df);
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted, #68756d);
  background: rgba(255,255,255,.45);
}
.verification-task-photo-missing span {
  font-weight: 700;
  color: var(--text, #24362c);
}
.verification-task-reviewed {
  color: var(--muted, #68756d);
}
@media (max-width: 760px) {
  .verification-photo-section-grid,
  .verification-task-photo-pair {
    grid-template-columns: 1fr;
  }
  .verification-photo-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* RC226 - Daily Task Photos organised into date folders */
.verification-task-date-browser {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.verification-task-date-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line, #dfe5df);
  border-radius: 14px;
  background: #fbfdfb;
}
.verification-task-date-toolbar h3 {
  margin: 3px 0 4px;
  color: var(--text, #24362c);
}
.verification-task-date-toolbar p {
  margin: 0;
  color: var(--muted, #68756d);
  line-height: 1.45;
}
.verification-task-date-toolbar label {
  flex: 0 0 min(260px, 38vw);
  display: grid;
  gap: 6px;
  color: #415c4d;
  font-size: .8rem;
  font-weight: 800;
}
.verification-task-date-toolbar input[type="date"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6e0da;
  border-radius: 9px;
  padding: 0 11px;
  background: #fff;
  color: #233a2d;
  font: inherit;
}
.verification-task-date-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.verification-task-date-folder {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line, #dfe5df);
  background: #fff;
}
.verification-task-date-folder:hover {
  transform: translateY(-1px);
  border-color: #bfd2c5;
  box-shadow: 0 7px 20px rgba(25,55,42,.07);
}
.verification-task-date-folder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf5ef;
  color: #315b46;
  font-size: 1.1rem;
  font-weight: 800;
}
.verification-task-date-folder-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.verification-task-date-folder-copy strong {
  color: #203c2c;
  font-size: .98rem;
}
.verification-task-date-folder-copy small,
.verification-task-date-folder-copy em {
  color: var(--muted, #68756d);
  font-style: normal;
}
.verification-task-date-folder-copy em {
  color: #3d6a52;
  font-size: .8rem;
  font-weight: 700;
}
.verification-task-date-folder > b {
  color: #708078;
  font-size: 1.55rem;
  font-weight: 500;
}
.verification-task-date-view {
  display: grid;
  gap: 12px;
}
.verification-task-date-sticky {
  position: sticky;
  top: calc(var(--shiftly-global-header-height, 70px) + 8px);
  z-index: 116;
  margin: 2px 0 0;
  padding: 11px 14px;
  border: 1px solid #d5e1d9;
  border-radius: 12px;
  background: rgba(251, 253, 251, .97);
  box-shadow: 0 5px 16px rgba(24, 51, 38, .07);
  backdrop-filter: blur(8px);
}
.verification-task-date-sticky h2 {
  margin: 2px 0 2px;
  color: #173d2a;
  font-size: 1.05rem;
}
.verification-task-date-sticky p {
  margin: 0;
  color: var(--muted, #68756d);
  font-size: .82rem;
}
.verification-task-selected-date-heading {
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .verification-task-date-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .verification-task-date-toolbar label {
    flex-basis: auto;
    width: 100%;
  }
  .verification-task-date-folder-grid {
    grid-template-columns: 1fr;
  }
  .verification-task-date-sticky {
    top: calc(var(--shiftly-global-header-height, 70px) + 4px);
  }
}

/* WorkXP RC227 — flexible General Worker task flow */
.task-flow-helper {
  margin-top: 14px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid #d9e3dd;
  border-radius: 9px;
  background: #f7faf8;
  color: #506159;
  font-size: 12px;
  line-height: 1.5;
}
.task-flow-helper strong { color: #274b38; }
.task-flow-helper b { color: #2e6548; }
.carry-forward-button {
  border-color: #d6bd78 !important;
  color: #725112 !important;
  background: #fffaf0 !important;
}
.carry-forward-button:hover:not(:disabled) { background: #fff3d8 !important; }
.paused-current-actions {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
}
.paused-current-actions button:last-child {
  justify-self: stretch;
  min-width: 0;
}
.paused-task-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}
.paused-task-list .management-heading { margin-bottom: 0; }
.paused-task-list-grid {
  display: grid;
  gap: 9px;
}
.paused-task-list-grid article {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfdfcf;
  border-radius: 9px;
  background: #fffdf7;
}
.paused-task-list-grid article > div:first-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.paused-task-list-grid article > div:first-child > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #263a2e;
  font-size: 13px;
}
.paused-task-list-grid article > div:first-child > small,
.paused-task-active-note {
  color: #68756d;
  font-size: 11px;
  line-height: 1.45;
}
.paused-task-list-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.paused-task-list-actions button { min-height: 38px; }
.paused-task-active-note {
  grid-column: 1 / -1;
  padding-top: 2px;
  color: #7b6840;
}

.task-overallocated-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.task-overallocated-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 29, 24, .68);
}
.task-overallocated-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100% - 20px);
  overflow: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #ead6b2;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.task-overallocated-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8c4a1e;
  background: #fff0dd;
  font-size: 22px;
  font-weight: 900;
}
.task-overallocated-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.task-overallocated-copy .eyebrow { color: #a65421; }
.task-overallocated-copy h2 {
  margin: 0;
  color: #25372d;
  font-size: 19px;
  line-height: 1.3;
}
.task-overallocated-copy p {
  margin: 0;
  color: #526159;
  font-size: 12.5px;
  line-height: 1.5;
}
.task-overallocated-copy label {
  margin-top: 3px;
  display: grid;
  gap: 6px;
  color: #506159;
  font-size: 12px;
  font-weight: 800;
}
.task-overallocated-copy textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid #d8dfdb;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  resize: vertical;
}
.task-overallocated-actions {
  margin-top: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.task-overallocated-actions button {
  min-height: 44px;
  white-space: normal;
  line-height: 1.25;
}
.task-overallocated-copy > small {
  color: #6a766f;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .paused-task-list-grid article { grid-template-columns: 1fr; }
  .paused-task-list-actions { justify-content: stretch; }
  .paused-task-list-actions button { flex: 1 1 150px; }
  .paused-current-actions { grid-template-columns: 1fr; }
  .task-overallocated-modal { padding: 9px; }
  .task-overallocated-panel {
    padding: 15px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    border-radius: 12px;
  }
  .task-overallocated-icon { width: 38px; height: 38px; font-size: 18px; }
  .task-overallocated-copy h2 { font-size: 17px; }
  .task-overallocated-actions { grid-template-columns: 1fr; }
}

/* RC228: employee My Requests archive + clean live approval queues */
.my-requests-page{display:grid;gap:14px;max-width:1120px}
.my-request-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.my-request-summary>span{display:grid;gap:2px;padding:12px 14px;border:1px solid #dce7e0;border-radius:10px;background:#fff}
.my-request-summary strong{font-size:20px;color:#294338}.my-request-summary small{font-size:11px;color:#69786f;font-weight:800}
.my-request-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}
.my-request-toolbar label{display:grid;gap:6px;color:#536259;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.my-request-toolbar input,.my-request-toolbar select{width:100%;min-height:40px;padding:7px 9px;border:1px solid #ccd9d1;border-radius:7px;background:#fff;color:#263b30;font:inherit;font-size:13px;text-transform:none;letter-spacing:0}
.my-request-month-heading,.my-request-date-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.my-request-month-heading{padding:3px 2px}.my-request-month-heading strong{font-size:16px}.my-request-month-heading span{font-size:11px;color:#6b786f;font-weight:800}
.my-request-groups{display:grid;gap:14px}.my-request-groups>section{display:grid;gap:8px}.my-request-date-heading{padding:0 2px}.my-request-date-heading strong{font-size:13px;color:#344b40}.my-request-date-heading span{min-width:25px;height:25px;display:grid;place-items:center;border-radius:999px;background:#eef4f0;color:#496156;font-size:11px;font-weight:900}
.my-request-list{display:grid;gap:8px}.my-request-item{padding:0;overflow:hidden}.my-request-item>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px}.my-request-item>summary::-webkit-details-marker{display:none}.my-request-item>summary>div{display:grid;gap:3px;min-width:0}.my-request-item>summary strong{font-size:13px;color:#263c31}.my-request-item>summary small{font-size:11px;color:#6f7b74}.my-request-status{flex:0 0 auto;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:950;letter-spacing:.04em;text-transform:uppercase;background:#edf2ef;color:#56665d}.my-request-status.status-approved{background:#e4f5e9;color:#257244}.my-request-status.status-rejected{background:#fde9e9;color:#9a4040}.my-request-status.status-pending,.my-request-status.status-awaiting-mc{background:#fff3d8;color:#91631f}
.my-request-detail{border-top:1px solid #e8eeea;padding:13px 15px 15px;display:grid;gap:10px;background:#fbfdfc}.my-request-detail dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.my-request-detail dl>div{display:grid;gap:3px;padding:9px 10px;border:1px solid #e3ebe6;border-radius:8px;background:#fff}.my-request-detail dt{font-size:10px;color:#748178;text-transform:uppercase;font-weight:900;letter-spacing:.05em}.my-request-detail dd{margin:0;font-size:12px;color:#30463a}.my-request-detail p{margin:0;display:grid;gap:3px;color:#55655b;font-size:12px;line-height:1.5}.my-request-detail p strong{color:#344a3e}.my-request-evidence{max-width:420px}
@media(max-width:760px){.my-request-summary,.my-request-toolbar{grid-template-columns:1fr}.my-request-item>summary{align-items:flex-start}.my-request-detail dl{grid-template-columns:1fr}}

/* RC229: Missed Outstation Check-In */
.outstation-v2-icon.missed{background:#fff5da;color:#8a651c}
.missed-outstation-flow{gap:15px}
.missed-outstation-time{max-width:360px;display:grid;gap:6px;color:#4d5f55;font-size:12px;font-weight:850}
.missed-outstation-time input{width:100%;min-height:44px;padding:8px 11px;border:1px solid #d6e0da;border-radius:9px;background:#fff;font:inherit;font-size:16px;outline:none}
.missed-outstation-time input:focus{border-color:#72a985;box-shadow:0 0 0 3px rgba(78,148,100,.1)}
.missed-outstation-time small{color:#718078;font-size:11.5px;font-weight:500;line-height:1.45}
.missed-outstation-review-facts{border-color:#ead9aa!important;background:#fffbf1!important}

/* RC231: let employees apply for future leave after today's Check In. */
.v2-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.v2-apply-leave-action{border:1px solid #dfe8e2;background:#f7fbf8;border-radius:10px;padding:7px 10px;color:#365c46}
.standalone-leave-section{max-width:820px!important}
.standalone-leave-card{margin-top:14px}
.standalone-leave-card .leave-application-flow{margin-top:0}
.standalone-leave-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:16px}
.standalone-leave-actions .continue-button{margin:0!important;width:auto!important;min-width:190px}
@media(max-width:700px){
  .v2-panel-actions{width:100%;justify-content:flex-start}
  .standalone-leave-actions{flex-direction:column-reverse;align-items:stretch}
  .standalone-leave-actions .continue-button,.standalone-leave-actions .secondary-button{width:100%!important}
}

/* RC233: General Worker next-day task control, Skip and SV release. */
.gw-day-gate{display:grid;gap:16px;max-width:920px;margin:0 auto;border-color:#ead9aa;background:#fffdf7}
.gw-day-gate-heading{display:flex;align-items:flex-start;gap:13px}.gw-day-gate-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;background:#fff0c9;color:#8a651c;font-weight:950;font-size:18px}
.gw-day-gate-heading>div{display:grid;gap:5px}.gw-day-gate-heading h2{margin:0;font-size:20px}.gw-day-gate-heading p{margin:0;color:#65736b;line-height:1.5}
.gw-day-gate-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.gw-day-gate-summary>span{display:grid;gap:3px;padding:11px 12px;border:1px solid #e4e9e5;border-radius:10px;background:#fff;color:#6a786f;font-size:11px}.gw-day-gate-summary strong{color:#263e32;font-size:15px}
.gw-day-gate-task-list{display:grid;gap:8px}.gw-day-gate-task-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #e3e9e5;border-radius:10px;background:#fff}.gw-day-gate-task-list article>div:first-child{display:grid;gap:4px}.gw-day-gate-task-list small{color:#6d7a72}.gw-day-gate-actions,.gw-day-gate-footer,.gw-day-release-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gw-day-gate-footer{justify-content:flex-end;padding-top:2px}.gw-day-gate-actions button,.gw-day-release-actions button{min-height:38px}
.gw-day-release-review{margin-bottom:16px;border-color:#dce8e0}.gw-day-release-list{display:grid;gap:9px}.gw-day-release-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 13px;border:1px solid #e1e8e4;border-radius:10px;background:#fbfdfc}.gw-day-release-card>div:first-child{display:grid;gap:3px}.gw-day-release-card small,.gw-day-release-card p{margin:0;color:#6a786f;font-size:12px}.skip-task-button{border-color:#efd4cf!important;color:#954c43!important;background:#fff9f7!important}.summary-skipped{background:#f6efec!important;color:#83584f!important}.task-progress-skipped{opacity:.78}.task-review-card.status-skipped{border-color:#e7dad5}.task-review-card.status-skipped .task-review-status{color:#8b5c51}.task-skip-only{justify-content:flex-end;margin-top:9px}
@media(max-width:760px){.gw-day-gate-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-day-gate-task-list article,.gw-day-release-card{align-items:stretch;flex-direction:column}.gw-day-gate-actions,.gw-day-release-actions,.gw-day-gate-footer{width:100%}.gw-day-gate-actions button,.gw-day-release-actions button,.gw-day-gate-footer button{flex:1 1 auto}}

/* RC233.1 - revised General Worker next-day task control */
.pending-reschedule-review{margin-bottom:18px}
.pending-reschedule-list{display:grid;gap:12px}
.pending-reschedule-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--line,#dfe5df);border-radius:14px;background:#fff}
.pending-reschedule-main{min-width:0}
.pending-reschedule-main>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pending-reschedule-main strong{font-size:1rem}
.pending-reschedule-main small{display:block;width:100%;margin-top:2px;color:var(--muted,#66736b)}
.pending-reschedule-main p{margin:8px 0 0;color:var(--text,#24332b)}
.pending-reschedule-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.pending-reschedule-actions>span{font-size:.86rem;color:var(--muted,#66736b);font-weight:600}
.continue-later-button{white-space:nowrap}
.worker-pending-reschedule{margin-bottom:16px}
.worker-pending-reschedule-list{display:grid;gap:8px}
.worker-pending-reschedule-list article{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:11px 12px;border:1px solid var(--line,#dfe5df);border-radius:12px;background:var(--surface-soft,#f7f9f7)}
.worker-pending-reschedule-list article div{min-width:0}
.worker-pending-reschedule-list strong,.worker-pending-reschedule-list small{display:block}
.worker-pending-reschedule-list small{margin-top:3px;color:var(--muted,#66736b)}
.worker-pending-reschedule-list article>span{font-size:.8rem;font-weight:700;white-space:nowrap}
@media (max-width:760px){.pending-reschedule-card{grid-template-columns:1fr}.pending-reschedule-actions{justify-content:flex-start}.worker-pending-reschedule-list article{align-items:flex-start;flex-direction:column;gap:6px}}

/* RC233.8 White Collar attendance task flow */
.wc-modal-backdrop{position:fixed;inset:0;background:rgba(10,20,16,.58);z-index:9998;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.wc-modal{width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.25);padding:24px}
.wc-start-modal{width:min(720px,100%)}
.wc-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.wc-modal-head h2{margin:3px 0 6px;font-size:1.55rem}.wc-modal-head p{margin:0;color:#5b665f;line-height:1.5}
.wc-countdown{min-width:108px;border:1px solid #d9e1dc;border-radius:14px;padding:10px 14px;text-align:center;background:#f6faf7}.wc-countdown small{display:block;color:#66746c}.wc-countdown strong{font-size:1.35rem;letter-spacing:.04em}
.wc-start-grid{display:grid;gap:12px}.wc-start-grid label{display:grid;gap:6px;font-weight:600}.wc-start-grid label span b{color:#b43b3b}.wc-start-grid input,.wc-checkout-grid input,.wc-checkout-grid select,.wc-checkout-grid textarea,.wc-add-task-row input{width:100%;box-sizing:border-box;border:1px solid #cfd8d2;border-radius:10px;padding:10px 12px;font:inherit;background:#fff}
.wc-add-start-row{margin-top:10px}.wc-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.wc-failed-box{border:1px solid #e7bcbc;background:#fff7f7;border-radius:14px;padding:16px}.wc-failed-box strong{color:#9d2828}.wc-failed-box p{margin:6px 0 0;color:#633}
.white-collar-today-card{margin-top:18px;border-top:1px solid #e3e9e5;padding-top:18px}.wc-task-chip-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.wc-task-chip-list span{background:#f2f6f3;border:1px solid #dce5df;border-radius:999px;padding:7px 11px;font-size:.93rem}.wc-add-task-row{display:flex;gap:8px;margin-top:14px}.wc-add-task-row input{flex:1}
.wc-checkout-list{display:grid;gap:14px}.wc-checkout-task{border:1px solid #dce4df;border-radius:16px;padding:16px;background:#fbfdfb}.wc-checkout-task-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.wc-checkout-task-title>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e8f0eb;font-weight:700}.wc-checkout-task-title strong{font-size:1.02rem}.wc-checkout-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.wc-checkout-grid label{display:grid;gap:6px;font-size:.9rem;font-weight:600}.wc-completed-field{display:flex!important;align-items:center;gap:8px;align-self:end;padding:10px 0}.wc-completed-field input{width:auto}.wc-remarks-field{grid-column:span 3}.wc-remarks-field textarea{min-height:72px;resize:vertical}
@media(max-width:760px){.wc-modal-backdrop{padding:8px;align-items:flex-end}.wc-modal{border-radius:18px 18px 0 0;max-height:95vh;padding:18px}.wc-modal-head{flex-direction:column}.wc-countdown{align-self:flex-end}.wc-checkout-grid{grid-template-columns:1fr 1fr}.wc-remarks-field{grid-column:1/-1}.wc-add-task-row{flex-direction:column}.wc-modal-actions>*{flex:1 1 180px}}
@media(max-width:480px){.wc-checkout-grid{grid-template-columns:1fr}.wc-remarks-field{grid-column:auto}.wc-completed-field{align-self:auto}}

/* RC233.9 - White Collar Daily Tasks + shareable summary */
.daily-tasks-suite{display:grid;gap:18px}
.daily-task-toolbar{display:flex;align-items:end;gap:14px}
.daily-task-toolbar label{display:grid;gap:6px;font-weight:700;max-width:220px}
.daily-task-toolbar input{min-height:44px}
.daily-task-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.daily-task-history-item{appearance:none;border:1px solid #d8e0dc;background:#fff;border-radius:14px;padding:16px;text-align:left;display:grid;gap:6px;cursor:pointer;color:inherit}
.daily-task-history-item:hover,.daily-task-history-item.active{border-color:#5f7f6e;box-shadow:0 6px 18px rgba(31,65,49,.10)}
.daily-task-history-item span{font-weight:800;font-size:15px}
.daily-task-history-item strong{font-size:20px}
.daily-task-history-item small{color:#5b6b63}
.daily-task-summary-card{background:#fff;border:1px solid #d8e0dc;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(31,65,49,.08)}
.daily-task-summary-head{padding:20px 22px;border-bottom:1px solid #e4e9e6;background:linear-gradient(180deg,#f6faf8,#fff)}
.daily-task-summary-head h2{margin:4px 0;font-size:24px}
.daily-task-summary-head p{margin:0;color:#667085}
.daily-task-summary-table-wrap{overflow:auto}
.daily-task-summary-table{width:100%;border-collapse:collapse;min-width:980px}
.daily-task-summary-table th,.daily-task-summary-table td{padding:12px 14px;border-bottom:1px solid #edf0ee;text-align:left;vertical-align:top;font-size:14px}
.daily-task-summary-table th{background:#eef4f0;color:#284a39;font-size:12px;letter-spacing:.04em;text-transform:uppercase;position:sticky;top:0}
.daily-task-summary-table td:nth-child(2){font-weight:700;min-width:220px}
.daily-task-share-actions{display:flex;gap:10px;flex-wrap:wrap;padding:18px 22px 10px}
.daily-task-summary-card>.subtle-note{padding:0 22px 18px;margin:0}
.wc-checkout-grid label small{display:block;margin-top:5px;color:#667085;font-size:12px;font-weight:500}
@media(max-width:760px){
  .daily-task-toolbar{display:block}.daily-task-toolbar label{max-width:none}
  .daily-task-history-grid{grid-template-columns:1fr 1fr}
  .daily-task-summary-head{padding:16px}
  .daily-task-share-actions{padding:14px 16px 8px}
  .daily-task-summary-card>.subtle-note{padding:0 16px 16px}
}
@media(max-width:480px){.daily-task-history-grid{grid-template-columns:1fr}}

/* RC233.11 Overnight attendance / Missed Check Out */
.missed-checkout-card{margin-top:16px}
.missed-checkout-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.missed-checkout-form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}
.missed-checkout-form-grid input,.missed-checkout-form-grid textarea{width:100%;box-sizing:border-box}
@media (max-width:720px){.missed-checkout-form-grid{grid-template-columns:1fr}}

/* RC233.12 Resource & Asset Usage Tracking */
.resource-usage-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:10px;background:#f5f7f5;border:1px solid #e1e7e2;border-radius:14px}.resource-usage-subnav button{border:1px solid transparent;background:transparent;border-radius:10px;padding:10px 14px;font-weight:700;color:#365447;cursor:pointer}.resource-usage-subnav button.active{background:#fff;border-color:#d8e2da;box-shadow:0 2px 8px rgba(30,60,45,.06)}
.resource-usage-section{display:grid;gap:18px}.resource-usage-form{display:grid;gap:18px}.resource-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.resource-form-grid label{display:grid;gap:7px;font-weight:700}.resource-form-grid input,.resource-form-grid select,.resource-form-grid textarea,.resource-trip-row input{width:100%;border:1px solid #d9dfda;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.resource-form-grid textarea{min-height:90px;resize:vertical}.resource-span-2{grid-column:1/-1}.resource-form-actions{display:flex;justify-content:flex-end}.resource-task-links{border-top:1px solid #e5e9e6;padding-top:16px;display:grid;gap:10px}.resource-task-links h3,.resource-trip-heading h3{margin:0}.resource-task-links p,.resource-trip-heading p{margin:4px 0 0;color:#718077}.resource-task-link{display:grid;grid-template-columns:auto minmax(0,1fr) 160px;gap:12px;align-items:center;padding:12px;border:1px solid #e0e6e1;border-radius:12px;background:#fbfcfb}.resource-task-link span{display:grid;gap:2px}.resource-task-link small{color:#78857d}.resource-task-link input[type="number"]{border:1px solid #d9dfda;border-radius:9px;padding:9px 10px}.resource-trip-section{display:grid;gap:10px;border-top:1px solid #e5e9e6;padding-top:16px}.resource-trip-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.resource-trip-row{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(0,1fr) 130px auto;gap:9px;align-items:center}.resource-trip-row>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#edf4ef;color:#2f5b46;font-weight:800}.resource-usage-history{display:grid;gap:10px}.resource-usage-history-card{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border:1px solid #e0e6e1;border-radius:12px;padding:13px 14px;background:#fff}.resource-usage-history-card>div:first-child{display:grid;gap:4px}.resource-usage-history-card small{color:#7a867f}.resource-usage-history-meta{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end;color:#506159;font-size:.92rem}.resource-usage-empty{display:grid;gap:4px;text-align:center;padding:28px;border:1px dashed #d9e0db;border-radius:12px;color:#748078}.resource-usage-empty.compact{padding:16px}.resource-usage-empty strong{color:#334b3f}
@media(max-width:760px){.resource-form-grid{grid-template-columns:1fr}.resource-span-2{grid-column:auto}.resource-task-link{grid-template-columns:auto minmax(0,1fr)}.resource-task-link input[type="number"]{grid-column:2}.resource-trip-heading{display:grid}.resource-trip-row{grid-template-columns:30px 1fr}.resource-trip-row input,.resource-trip-row button{grid-column:2}.resource-usage-history-card{display:grid}.resource-usage-history-meta{justify-content:flex-start}.resource-form-actions .primary-button{width:100%}}

/* RC233.18 - White Collar add-task row desktop width fix */
.wc-add-task-row > input[data-wc-add-task-title]{
  flex:1 1 auto;
  min-width:0;
}
.wc-add-task-row > .primary-button[data-action="wc-add-task"]{
  width:auto;
  flex:0 0 auto;
  min-width:140px;
  padding-left:20px;
  padding-right:20px;
}
@media(max-width:760px){
  .wc-add-task-row > .primary-button[data-action="wc-add-task"]{
    width:100%;
    min-width:0;
  }
}

/* RC233.19 - restored Message of the Day */
.start-day-positive-message {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 15px 18px;
  border: 1px solid rgba(46,77,60,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(24,48,35,.06);
}
.start-day-positive-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(46,77,60,.09);
  font-size: 22px;
}
.start-day-positive-message div { display: grid; gap: 3px; }
.start-day-positive-message small { font-size: 11px; font-weight: 800; letter-spacing: .11em; opacity: .62; }
.start-day-positive-message strong { font-size: 15px; line-height: 1.45; }
@media (max-width: 640px) {
  .start-day-positive-message { margin-bottom: 14px; padding: 13px 14px; border-radius: 14px; }
  .start-day-positive-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; }
  .start-day-positive-message strong { font-size: 14px; }
}

/* RC233.22 - Attendance Resume Work visibility */
.attendance-date-table .resume-work-value,
.history-table-wrap .resume-work-value {
  display: inline-block;
  min-width: 112px;
  white-space: normal;
  line-height: 1.35;
  font-weight: 400;
  color: inherit;
}


/* RC233.25 - White Collar checkout auto total duration */
.wc-checkout-total-duration {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(46,77,60,.18);
  border-radius: 14px;
  background: rgba(46,77,60,.06);
}
.wc-checkout-total-duration span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #496456;
}
.wc-checkout-total-duration strong {
  font-size: 22px;
  line-height: 1.2;
  color: #234c39;
}
.wc-checkout-total-duration small {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #6f7f76;
}
@media (max-width: 640px) {
  .wc-checkout-total-duration { padding: 13px 14px; }
  .wc-checkout-total-duration strong { font-size: 20px; }
}


/* RC233.33 - Mobile Task Planner CSS parsing fix. Desktop is unchanged. */
.task-board-mobile-add,.task-board-mobile-search,.task-board-mobile-worker-summary,.task-board-mobile-worker-tabs{display:none}
@media (max-width:640px){
  .task-board-shell-mobile{max-width:100%;overflow-x:hidden}
  .task-board-shell-mobile .task-board-library-heading{margin-bottom:0!important;border-bottom:0!important;border-radius:14px 14px 0 0!important;padding:12px 14px 8px!important}
  .task-board-shell-mobile .task-board-library-toolbar{position:relative!important;top:auto!important;margin-top:0!important;border-radius:0 0 14px 14px!important;padding:8px 10px 10px!important;box-shadow:none!important}
  .task-board-shell-mobile .task-board-library-toolbar .task-board-category-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;overflow:visible!important;padding:0 48px 0 0!important}
  .task-board-shell-mobile .task-board-library-toolbar .task-board-category-menu{min-width:0!important;width:auto!important;flex:auto!important}
  .task-board-shell-mobile .task-board-library-toolbar .task-board-category-menu>summary{min-height:46px!important;font-size:.88rem!important;padding:0 11px!important}
  .task-board-shell-mobile .task-board-library-toolbar .task-board-category-dropdown{position:absolute!important;left:8px!important;right:8px!important;top:calc(100% + 6px)!important;width:auto!important;max-width:none!important;z-index:90!important;max-height:42vh!important;overflow:auto!important}
  .task-board-shell-mobile .task-board-selection-strip{position:relative!important;left:auto!important;right:auto!important;top:auto!important;margin:8px 0 10px!important;padding:10px!important;border:1px solid #d7e6de!important;border-radius:14px!important;background:#f7fbf8!important;box-shadow:none!important;max-height:none!important;overflow:visible!important}
  .task-board-shell-mobile .task-board-selection-head{margin-bottom:8px!important}
  .task-board-shell-mobile .task-board-selection-head small{font-weight:700;color:#6c7b73}
  .task-board-mobile-search{display:block!important;margin:0 0 8px!important}
  .task-board-mobile-search input{width:100%;min-height:42px;border:1px solid #d6dfda;border-radius:10px;padding:0 12px;background:#fff;font:inherit}
  .task-board-shell-mobile .task-board-selection-tasks{display:flex!important;flex-direction:column!important;gap:6px!important;max-height:260px!important;overflow-y:auto!important;overscroll-behavior:contain;padding-right:2px!important}
  .task-board-shell-mobile .task-board-menu-task{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:48px!important;padding:7px 8px!important;background:#fff!important;border:1px solid #dde6e1!important;border-radius:10px!important}
  .task-board-shell-mobile .task-board-menu-duration{display:none!important}
  .task-board-shell-mobile .task-board-menu-drag{grid-column:1!important;grid-row:1!important;font-size:1rem!important;color:#64748b!important}
  .task-board-shell-mobile .task-board-menu-title{grid-column:2!important;grid-row:1!important;white-space:normal!important;font-weight:800!important;font-size:.9rem!important}
  .task-board-shell-mobile .task-board-library-delete{display:none!important}
  .task-board-mobile-add{display:inline-flex!important;grid-column:3!important;grid-row:1!important;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:1px solid #c9ddd2;border-radius:9px;background:#edf6f0;color:#245b43;font-weight:900;font-size:.82rem}
  .task-board-shell-mobile .task-board-type-new,.task-board-shell-mobile .task-board-quick-create{margin-top:8px!important}
  .task-board-mobile-day{margin-top:10px!important}
  .task-board-mobile-date{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 4px!important}
  .task-board-mobile-date strong{width:auto!important;font-size:1rem!important;color:#536b7d!important}
  .task-board-mobile-date label{margin:0!important}
  .task-board-mobile-date input[type=date]{max-width:154px;min-height:38px;border:1px solid #d6dfda;border-radius:10px;padding:0 8px;background:#fff;font-weight:800}
  .task-board-mobile-worker-tabs{display:flex!important;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 9px;scroll-snap-type:x proximity}
  .task-board-mobile-worker-tabs::-webkit-scrollbar{display:none}
  .task-board-mobile-worker-tabs button{flex:0 0 auto;max-width:165px;min-height:40px;padding:0 14px;border:1px solid #d7dfdb;border-radius:999px;background:#f4f5f4;color:#44516a;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;scroll-snap-align:start}
  .task-board-mobile-worker-tabs button.active{background:#245d43;color:#fff;border-color:#245d43}
  .task-board-shell-mobile .task-board-workers-scroll{overflow:visible!important;padding:0!important}
  .task-board-shell-mobile .task-board-workers{display:block!important;min-width:0!important}
  .task-board-shell-mobile .task-board-worker-card{width:100%!important;min-width:0!important;min-height:0!important;padding:12px!important;border-radius:16px!important;gap:9px!important}
  .task-board-shell-mobile .task-board-worker-head{gap:8px!important;padding-bottom:7px!important}
  .task-board-shell-mobile .task-board-worker-head>strong{font-size:1.05rem!important}
  .task-board-shell-mobile .task-board-worker-head label{font-size:.74rem!important}
  .task-board-shell-mobile .task-board-worker-head input{width:90px!important;min-height:32px!important}
  .task-board-mobile-worker-summary{display:flex!important;align-items:center;gap:7px;margin:-2px 0 2px;color:#66758b;font-size:.78rem;font-weight:800}
  .task-board-mobile-worker-summary b{color:#a2ada7}
  .task-board-shell-mobile .task-board-worker-tasks{min-height:76px!important;gap:7px!important}
  .task-board-shell-mobile .task-board-task{border-radius:11px!important;padding:9px!important}
  .task-board-shell-mobile .task-board-task-main{gap:8px!important}
  .task-board-shell-mobile .task-board-task-main strong{font-size:.9rem!important;line-height:1.2!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .task-board-shell-mobile .task-board-task-main small{font-size:.76rem!important}
  .task-board-shell-mobile .task-board-task-number{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important}
  .task-board-shell-mobile .task-board-task.is-collapsed{padding:9px!important}
  .task-board-shell-mobile .task-board-task-collapsed-meta{font-size:.73rem!important;gap:5px!important;flex-wrap:wrap!important}
  .task-board-shell-mobile .task-board-task-details{padding-top:8px!important}
  .task-board-shell-mobile .task-board-task-details textarea{min-height:72px!important}
  .task-board-shell-mobile .task-board-card-footer{margin-top:2px!important}
  .task-board-shell-mobile .task-board-save{min-height:48px!important;border-radius:11px!important;font-size:.95rem!important}
}

/* RC233.34 - Mobile selected-task panel compaction only. Desktop unchanged. */
@media (max-width:640px){
  .task-board-shell-mobile .task-board-selection-strip{
    margin:6px 0 8px!important;
    padding:7px 8px 8px!important;
    border-radius:12px!important;
  }
  .task-board-shell-mobile .task-board-selection-head{
    margin-bottom:5px!important;
  }
  .task-board-mobile-search{
    margin:0 0 5px!important;
  }
  .task-board-mobile-search input{
    min-height:36px!important;
    padding:0 10px!important;
    border-radius:9px!important;
    font-size:.88rem!important;
  }
  .task-board-shell-mobile .task-board-selection-tasks{
    gap:4px!important;
    max-height:210px!important;
  }
  .task-board-shell-mobile .task-board-menu-task{
    min-height:40px!important;
    padding:5px 6px!important;
    gap:6px!important;
    border-radius:9px!important;
  }
  .task-board-shell-mobile .task-board-menu-title{
    font-size:.86rem!important;
    line-height:1.15!important;
  }
  .task-board-mobile-add{
    min-height:30px!important;
    padding:0 8px!important;
    font-size:.78rem!important;
  }
  .task-board-shell-mobile .task-board-type-new,
  .task-board-shell-mobile .task-board-quick-create{
    margin-top:5px!important;
  }
}

/* RC233.35 - Mobile selected-task scrolling refinement for iOS and Android. Desktop unchanged. */
@media (max-width:640px){
  .task-board-shell-mobile .task-board-selection-tasks{
    max-height:340px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
    scrollbar-gutter:stable;
  }
  .task-board-shell-mobile .task-board-menu-task{
    width:100%!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
  }
}


/* RC233.36 - Task Library selected-list visibility + desktop overlap fix. */
/* Desktop/tablet: give every selected task enough horizontal room so duration,
   title and delete controls never collide. */
@media (min-width:641px){
  .task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-selection-tasks{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2px 2px 6px!important;
    scrollbar-width:thin;
  }
  .task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-menu-task{
    flex:0 0 300px!important;
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
    grid-template-columns:18px auto minmax(0,1fr) 30px!important;
    gap:7px!important;
    box-sizing:border-box!important;
  }
  .task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-menu-title{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .task-workspace-mode > .task-suite .task-board-selection-strip.is-sticky-active-task-list .task-board-library-delete{
    position:static!important;
    grid-column:4!important;
    justify-self:end!important;
  }
}

/* Mobile: for normal-sized categories (up to 8 saved tasks), show every task
   in the page flow. Larger libraries retain the touch-scroll panel so very
   large categories do not push the worker planner excessively far down. */
@media (max-width:640px){
  .task-board-shell-mobile .task-board-selection-strip.task-board-mobile-all-visible .task-board-selection-tasks{
    max-height:none!important;
    overflow:visible!important;
    padding-right:0!important;
    scrollbar-gutter:auto!important;
    touch-action:auto!important;
  }
  .task-board-shell-mobile .task-board-selection-strip.task-board-mobile-long-list .task-board-selection-tasks{
    max-height:340px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
  }
}

/* RC233.37 Pending Reschedule removal */
.pending-reschedule-remove{border-color:#d7a7a7!important;color:#9b2f2f!important;background:#fff8f8!important}
.pending-reschedule-remove:hover{background:#fff0f0!important}

/* RC233.39 - Mobile Task Planning viewport containment.
   Prevent companies with many workers (for example FTA) from widening the
   mobile canvas. Worker tabs scroll inside the viewport instead. Desktop is unchanged. */
@media (max-width:640px){
  .task-workspace-mode,
  .task-workspace-mode > .task-suite,
  .task-workspace-mode .task-board-shell-mobile,
  .task-workspace-mode .task-board-mobile-day,
  .task-workspace-mode .task-board-workers-scroll,
  .task-workspace-mode .task-board-workers,
  .task-workspace-mode .task-board-worker-card{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .task-workspace-mode,
  .task-workspace-mode > .task-suite,
  .task-workspace-mode .task-board-shell-mobile{
    overflow-x:hidden!important;
  }
  .task-board-shell-mobile .task-board-mobile-worker-tabs{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    flex-wrap:nowrap!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x;
    scrollbar-width:none;
    box-sizing:border-box!important;
  }
  .task-board-shell-mobile .task-board-mobile-worker-tabs::-webkit-scrollbar{display:none!important}
  .task-board-shell-mobile .task-board-mobile-worker-tabs button{
    flex:0 0 auto!important;
    min-width:118px!important;
    max-width:165px!important;
    width:auto!important;
  }
  .task-board-shell-mobile .task-board-date,
  .task-board-shell-mobile .task-board-mobile-date,
  .task-board-shell-mobile .task-board-library-heading,
  .task-board-shell-mobile .task-board-library-toolbar,
  .task-board-shell-mobile .task-board-selection-strip{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}


/* RC233.43: first-login notification permission pre-prompt. */
.workxp-notification-permission-backdrop{
  position:fixed; inset:0; z-index:10050; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(19,36,29,.48); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
}
.workxp-notification-permission-card{
  width:min(440px,100%); background:#fff; border-radius:22px; padding:26px; box-shadow:0 24px 70px rgba(21,43,34,.26);
  border:1px solid rgba(46,77,60,.12);
}
.workxp-notification-permission-icon{
  width:54px; height:54px; display:grid; place-items:center; border-radius:16px; font-size:28px;
  background:#edf5f0; margin-bottom:16px;
}
.workxp-notification-permission-copy h2{margin:5px 0 9px; font-size:24px; line-height:1.2; color:#203a2e;}
.workxp-notification-permission-copy p{margin:0; color:#50645b; font-size:15px; line-height:1.55;}
.workxp-notification-permission-copy small{display:block; margin-top:10px; color:#718078; font-size:12px; line-height:1.45;}
.workxp-notification-permission-actions{display:flex; gap:10px; margin-top:22px; justify-content:flex-end;}
.workxp-notification-permission-actions button{min-height:44px;}
@media (max-width:600px){
  .workxp-notification-permission-backdrop{align-items:flex-end; padding:12px;}
  .workxp-notification-permission-card{border-radius:22px; padding:22px 18px 18px;}
  .workxp-notification-permission-copy h2{font-size:21px;}
  .workxp-notification-permission-actions{display:grid; grid-template-columns:1fr;}
  .workxp-notification-permission-actions .primary-button{grid-row:1;}
  .workxp-notification-permission-actions .secondary-button{grid-row:2;}
}

/* RC233.46 - Monthly Work Schedule */
.work-schedule-suite{max-width:1280px;margin:0 auto}.schedule-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.schedule-toolbar label{min-width:180px;display:grid;gap:6px}.schedule-toolbar input,.schedule-toolbar select,.schedule-day-editor select,.schedule-day-editor textarea{width:100%;min-height:44px}.schedule-summary{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}.schedule-summary span{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--border,#d9dfdc);border-radius:10px;background:#fff;font-size:.86rem}.schedule-summary b{font-size:1rem}.schedule-context{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:12px 2px}.schedule-context strong{font-size:1.05rem}.schedule-context span,.schedule-context small{color:var(--muted,#66746c)}.schedule-calendar-card{overflow-x:auto}.schedule-weekdays,.schedule-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:6px;min-width:700px}.schedule-weekdays{margin-bottom:6px}.schedule-weekdays span{text-align:center;font-weight:700;font-size:.82rem;color:var(--muted,#66746c);padding:4px}.schedule-day{position:relative;min-height:96px;border:1px solid var(--border,#d9dfdc);border-radius:10px;background:#fff;padding:10px;text-align:left;display:flex;flex-direction:column;gap:5px;cursor:pointer}.schedule-day>span{font-weight:700;font-size:.86rem}.schedule-day>strong{font-size:.92rem}.schedule-day>small{font-size:.72rem;color:var(--muted,#66746c)}.schedule-day>i{position:absolute;right:7px;bottom:7px;font-size:.68rem;font-style:normal;font-weight:700;padding:2px 6px;border-radius:999px;background:#fff;border:1px solid currentColor}.schedule-day.status-work{border-left:4px solid #2d6a4f}.schedule-day.status-off{border-left:4px solid #b7791f;background:#fffaf0}.schedule-day.status-rest{border-left:4px solid #64748b;background:#f8fafc}.schedule-day.selected{outline:2px solid #2e4d3c;outline-offset:1px}.schedule-day.empty{border:0;background:transparent;min-height:96px}.schedule-day.has-request{box-shadow:inset 0 0 0 1px #8b5cf6}.schedule-day-editor{margin-top:12px}.schedule-status-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.schedule-status-choice{min-height:70px;border:1px solid var(--border,#d9dfdc);border-radius:10px;background:#fff;text-align:left;padding:10px;display:grid;gap:4px}.schedule-status-choice small{color:var(--muted,#66746c)}.schedule-status-choice.active{outline:2px solid #2e4d3c}.schedule-pending-note{padding:12px;border:1px solid #c4b5fd;border-radius:10px;background:#faf5ff}.schedule-pending-note p{margin:4px 0 0}.schedule-request-queue,.schedule-own-requests{margin-top:12px}.schedule-request-list{display:grid;gap:10px}.schedule-request-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--border,#d9dfdc);border-radius:10px;background:#fff}.schedule-request-card>div:first-child{min-width:0}.schedule-request-card strong,.schedule-request-card small{display:block}.schedule-request-card small{margin-top:3px;color:var(--muted,#66746c)}.schedule-request-card p{margin:6px 0 0;overflow-wrap:anywhere}.schedule-request-actions{display:flex;gap:8px;flex:0 0 auto}
@media(max-width:700px){.schedule-toolbar{align-items:stretch}.schedule-toolbar label{min-width:100%;}.schedule-summary{margin-left:0;width:100%}.schedule-calendar-card{padding:10px}.schedule-weekdays,.schedule-calendar-grid{grid-template-columns:repeat(7,minmax(54px,1fr));gap:4px;min-width:430px}.schedule-day{min-height:78px;padding:7px}.schedule-day>strong{font-size:.75rem}.schedule-day>small{font-size:.64rem}.schedule-status-actions{grid-template-columns:1fr}.schedule-request-card{align-items:flex-start;flex-direction:column}.schedule-request-actions{width:100%}.schedule-request-actions button{flex:1}}

/* RC233.47 Monthly Schedule quick edit */
.schedule-quick-edit{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:10px 14px;position:relative;z-index:1}.schedule-quick-edit>div:first-child{display:grid;gap:3px}.schedule-quick-edit.is-active{border-color:#9bc5aa;background:#f5fbf7}.schedule-quick-statuses{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:relative;z-index:2}.schedule-quick-status{min-height:40px;min-width:76px;padding:7px 12px;position:relative;z-index:3;pointer-events:auto;border:1px solid var(--border,#d9dfdc);border-radius:10px;background:#fff;font-weight:800;cursor:pointer}.schedule-quick-status.status-off{background:#fff7f4}.schedule-quick-status.status-rest{background:#f4f7fb}.schedule-quick-status.active{outline:2px solid #2e4d3c;outline-offset:1px}.schedule-day.quick-editable{cursor:crosshair}.schedule-day.quick-editable:hover{outline:2px dashed #789986;outline-offset:1px}.schedule-day-editor .schedule-status-choice{cursor:pointer}.schedule-day-editor .schedule-status-choice:not(:disabled):hover{border-color:#789986;background:#f7faf8}
@media(max-width:700px){.schedule-quick-edit{align-items:stretch;flex-direction:column}.schedule-quick-statuses{display:grid;grid-template-columns:repeat(3,1fr)}.schedule-quick-statuses .primary-button{grid-column:1/-1}.schedule-quick-status{min-width:0}}

/* RC233.50 Company Roster */
.schedule-view-switch{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.schedule-view-switch button{border:1px solid var(--border-color,#cbd5e1);border-radius:10px;padding:11px 17px;background:transparent;color:inherit;font-weight:700;cursor:pointer}.schedule-view-switch button.active{background:#145e73;color:#fff;border-color:#145e73}.schedule-roster-card{padding:12px!important}.schedule-roster-scroll{overflow:auto;max-width:100%;max-height:65vh}.schedule-roster-table{border-collapse:separate;border-spacing:2px;width:max-content;min-width:100%;font-size:13px}.schedule-roster-table th,.schedule-roster-table td{text-align:center;min-width:35px;padding:3px}.schedule-roster-table thead th{position:sticky;top:0;background:var(--card-bg,#fff);z-index:2}.schedule-roster-table thead th small{display:block;font-weight:400;font-size:11px}.schedule-roster-table .schedule-roster-name{position:sticky;left:0;min-width:178px;max-width:220px;text-align:left;background:var(--card-bg,#fff);z-index:3;padding:7px 9px;box-shadow:2px 0 3px #0001}.schedule-roster-employee{background:transparent;border:0;color:inherit;text-decoration:underline;text-align:left;font-weight:700;cursor:pointer;white-space:normal}.schedule-roster-name small{display:block;opacity:.7}.schedule-roster-cell{width:33px;min-height:33px;border:1px solid transparent;border-radius:7px;cursor:pointer;font-weight:750;font-size:12px}.schedule-roster-cell.status-work{background:#d7f1e6;color:#135e43}.schedule-roster-cell.status-off{background:#fce5cd;color:#874412}.schedule-roster-cell.status-rest{background:#e4e7ee;color:#414a5d}.schedule-roster-cell:hover{outline:2px solid #16728b}.schedule-roster-table .is-sunday{background:#f3f4f6}@media(max-width:700px){.schedule-roster-table .schedule-roster-name{min-width:135px;max-width:170px}.schedule-roster-table th,.schedule-roster-table td{min-width:32px;padding:2px}}

/* RC233.51 weekly roster and full leave names */
.schedule-roster-weekbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;flex-wrap:wrap}
.schedule-roster-week-title{text-align:center;display:grid;gap:3px}.schedule-roster-week-title small{opacity:.72}
.schedule-roster-table.weekly{width:100%;table-layout:fixed;font-size:14px;border-spacing:3px}
.schedule-roster-table.weekly th,.schedule-roster-table.weekly td{min-width:0;padding:5px 3px}
.schedule-roster-table.weekly .schedule-roster-name{width:185px;min-width:150px;max-width:220px}
.schedule-roster-table.weekly .schedule-roster-cell{width:100%;min-height:45px;height:auto;padding:8px 3px;line-height:1.25;font-size:12px;overflow-wrap:break-word}
.schedule-roster-table.weekly .outside-month{opacity:.4;background:var(--card-bg,#fff)}
.schedule-roster-cell.status-annual-leave{background:#dbeafe;color:#1e40af}
.schedule-roster-cell.status-sick-leave{background:#fee2e2;color:#991b1b}
.schedule-roster-cell.status-emergency-leave{background:#f3e8ff;color:#6b21a8}
.schedule-roster-cell.leave-locked{cursor:default}
@media(max-width:780px){.schedule-roster-table.weekly{min-width:790px;table-layout:fixed}.schedule-roster-weekbar{justify-content:space-between}.schedule-roster-table.weekly .schedule-roster-cell{font-size:12px}}
/* RC233.62: Master calendar attendance indicators */
.schedule-roster-cell.status-on-time{background:#dcf4e4!important;color:#19653c!important;border-color:#b6dfc6!important}
.schedule-roster-cell.status-late{background:#fff0d8!important;color:#9b5100!important;border-color:#f4cf90!important}
.schedule-roster-cell.status-absent{background:#ffe2e0!important;color:#ac2424!important;border-color:#efadab!important}
.schedule-roster-cell.status-pending{background:#f0f1f3!important;color:#5c626c!important;border-color:#dde0e3!important}
.schedule-roster-cell.status-leave{background:#eae3fa!important;color:#5a3c92!important;border-color:#d5c6f1!important}
.schedule-roster-cell.status-off{background:#fae9da!important;color:#825321!important}
.schedule-roster-cell.status-rest{background:#e1eef9!important;color:#285d82!important}

/* RC233.66 - Group Master Daily Calendar dashboard (read-only) */
.gcd-dashboard{display:grid;gap:14px;color:#183d32}.gcd-toolbar{display:grid;grid-template-columns:minmax(155px,1fr) minmax(155px,1fr) minmax(250px,1.5fr) minmax(220px,1.5fr);gap:14px;padding:18px;background:#fff;border:1px solid #e4e8e4;border-radius:15px;align-items:start}.gcd-toolbar label,.gcd-views>span{display:grid;gap:6px;font-size:13px;font-weight:700}.gcd-toolbar input,.gcd-toolbar select{width:100%;height:43px;border:1px solid #dbe2dd;border-radius:9px;background:#fff;padding:8px 10px;font:inherit}.gcd-views{display:grid;gap:6px}.gcd-views .schedule-view-switch{display:flex;gap:4px;flex-wrap:wrap;border:1px solid #e1e6e1;border-radius:9px;padding:3px}.gcd-views .schedule-view-switch button{font-size:13px;padding:9px 11px;flex:1;white-space:nowrap}.gcd-search{display:grid;gap:8px}.gcd-filter-list{display:flex;gap:5px;flex-wrap:wrap}.gcd-filter-list button{border:1px solid #e1e7e2;background:#f9faf9;border-radius:8px;padding:5px 9px;font-size:12px;color:#214838}.gcd-filter-list button.active{background:#115b3f;color:#fff}.gcd-body{display:grid;grid-template-columns:202px minmax(0,1fr);gap:14px;align-items:start}.gcd-companies,.gcd-main,.gcd-footer{background:#fff;border:1px solid #e6e9e6;border-radius:13px}.gcd-companies{padding:14px 10px}.gcd-companies h3{font-size:17px;margin:3px 8px 15px}.gcd-company{display:flex;width:100%;align-items:center;gap:10px;text-align:left;background:transparent;border:0;border-bottom:1px solid #f0f2ef;padding:12px 8px;color:#234638;border-radius:8px;cursor:pointer}.gcd-company.active{background:#e3f5eb}.gcd-company-icon{width:31px;height:31px;border-radius:8px;background:#e5f3eb;display:grid;place-items:center;font-size:22px}.gcd-company strong{display:block;font-size:13px}.gcd-company small{display:block;color:#64756b;font-size:12px;padding-top:2px}.gcd-main{min-width:0;padding:10px}.gcd-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}.gcd-stat{display:grid;gap:3px;padding:14px 8px;border-radius:10px;background:#f4f6f5;text-align:center;min-height:76px}.gcd-stat strong{font-size:23px}.gcd-stat span{font-size:12px;color:#596d62}.gcd-work{background:#e6f7ef}.gcd-off{background:#fff1e7}.gcd-rest{background:#eaf1ff}.gcd-leave{background:#f5edff}.gcd-outstation{background:#e6f6f5}.gcd-table-wrap{width:100%;overflow-x:auto;border:1px solid #e8ebe8;border-radius:11px}.gcd-table{border-collapse:collapse;width:100%;min-width:730px;font-size:13px}.gcd-table th{background:#f7f8f6;text-align:left;font-size:12px;color:#33483e}.gcd-table th,.gcd-table td{padding:10px 12px;border-bottom:1px solid #edf0ec;vertical-align:middle}.gcd-table tr:last-child td{border-bottom:0}.gcd-num{color:#798780;width:25px}.gcd-company-tag{display:inline-block;background:#e9f4eb;color:#175a3d;border-radius:7px;padding:5px 8px;font-size:12px}.gcd-status{display:inline-block;min-width:85px;border-radius:7px;padding:6px 9px;text-align:center;font-size:12px;font-weight:700;background:#eff1f0}.gcd-status-on-time{background:#d8f6e9;color:#086146}.gcd-status-late{background:#ffe7ce;color:#91450d}.gcd-status-absent{background:#ffe0e1;color:#a52832}.gcd-status-off{background:#ffe9d7;color:#954e1c}.gcd-status-rest{background:#e3ecff;color:#385796}.gcd-status-leave{background:#eee2ff;color:#6737a7}.gcd-status-pending{background:#f0f1f2;color:#53605b}.gcd-view{background:#fff;border:1px solid #dce3dd;border-radius:8px;color:#214535;padding:7px 12px;font-weight:700;font-size:12px;white-space:nowrap}.gcd-detail{display:flex;justify-content:space-between;gap:15px;margin-top:12px;padding:15px;border:1px solid #e3eae5;border-radius:10px;background:#f8fbf9}.gcd-detail h3{margin:0}.gcd-detail p{margin:5px 0;font-size:13px}.gcd-footer{display:flex;flex-wrap:wrap;align-items:center;gap:13px;padding:14px;font-size:12px}.gcd-footer strong{margin-right:8px}@media(max-width:1050px){.gcd-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.gcd-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.gcd-body{grid-template-columns:minmax(0,1fr)}.gcd-companies{display:flex;overflow-x:auto;align-items:center}.gcd-companies h3{white-space:nowrap;font-size:14px;margin:0 8px}.gcd-company{min-width:145px}.gcd-toolbar{grid-template-columns:1fr}.gcd-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* RC233.68 - responsive Master Daily Calendar: mobile cards instead of sideways desktop table */
.gcd-mobile-list{display:none}
@media(max-width:650px){
 .gcd-dashboard{gap:10px}
 .gcd-body{gap:10px}
 .gcd-main{padding:9px;min-width:0}
 .gcd-toolbar{padding:12px;gap:10px}
 .gcd-toolbar input,.gcd-toolbar select{min-width:0}
 .gcd-companies{padding:8px;gap:4px}
 .gcd-company{min-width:120px;padding:8px;gap:6px}
 .gcd-company-icon{width:26px;height:26px;font-size:17px}
 .gcd-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .gcd-stat{min-height:66px;padding:9px 4px}
 .gcd-stat strong{font-size:21px}
 .gcd-stat span{font-size:12px}
 .gcd-table-wrap{display:none}
 .gcd-mobile-list{display:grid;gap:8px}
 .gcd-mobile-card{background:#fff;border:1px solid #e3eae4;border-radius:11px;padding:12px;min-width:0}
 .gcd-mobile-heading{display:flex;align-items:flex-start;gap:9px}
 .gcd-mobile-index{color:#738277;font-size:12px;min-width:15px;padding-top:3px}
 .gcd-mobile-person{display:grid;gap:4px;flex:1;min-width:0}
 .gcd-mobile-person strong{color:#173c30;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
 .gcd-mobile-person small{font-size:12px;color:#65766d}
 .gcd-mobile-heading>.gcd-status{flex-shrink:0;min-width:76px;padding:6px;font-size:11px}
 .gcd-mobile-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0 24px}
 .gcd-mobile-bottom .gcd-company-tag{font-size:12px;min-width:0;max-width:68%;overflow-wrap:anywhere}
 .gcd-mobile-bottom .gcd-view{flex-shrink:0;padding:8px 10px;min-height:35px}
 .gcd-mobile-empty{padding:16px;text-align:center;color:#64766d}
 .gcd-footer{padding:11px;gap:9px}
}
@media(max-width:365px){.gcd-mobile-heading>.gcd-status{min-width:64px}.gcd-mobile-bottom .gcd-company-tag{max-width:60%}}

/* RC233.69: Not Yet Due is neutral, not a missing-attendance warning. */
.gcd-status.not-due,.gcd-pill.not-due,.schedule-roster-status.not-due {background:#eef1f3;color:#52606b;}

/* RC233.70: OFF has a distinct purple identity; Late remains orange. */
.gcd-status-off,.gcd-off{background:#e8ddff!important;color:#62359b!important}
.schedule-roster-cell.status-off,.schedule-day.status-off,.schedule-quick-status.status-off,.schedule-quick-statuses .status-off,.schedule-status-choice.status-off{background:#e8ddff!important;color:#62359b!important;border-color:#c6adee!important}
.schedule-roster-cell.status-work,.schedule-roster-cell.status-working{background:#d7f1e6;color:#135e43}

/* RC233.72 unified month view and Google Calendar-inspired colour-coded agenda */
.wxc-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;position:relative;color:#1f2937}
.wxc-toolbar,.wxc-tools,.wxc-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wxc-toolbar{justify-content:space-between;margin-bottom:16px}.wxc-title h2{margin:0;font-size:24px}.wxc-title span,.wxc-note{color:#6b7280;font-size:13px}.wxc-tools label{font-size:12px;display:flex;align-items:center;gap:6px}.wxc-tools input,.wxc-tools select{max-width:180px;padding:8px;border:1px solid #d7dce3;border-radius:8px;background:white}.wxc-scroll{overflow-x:auto}.wxc-grid{min-width:700px}.wxc-weekhead,.wxc-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.wxc-weekhead span{text-align:center;padding:10px 3px;color:#64748b;font-size:13px;font-weight:600;border-bottom:1px solid #e5e7eb}.wxc-cell{min-height:135px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:7px 5px;overflow:hidden}.wxc-cell:nth-child(7n+1){border-left:1px solid #e5e7eb}.wxc-blank{background:#f9fafb}.wxc-today{background:#f9fbff}.wxc-date{background:transparent;border:0;font-size:14px;font-weight:600;min-height:26px;margin-bottom:5px;padding:2px 8px;cursor:pointer}.wxc-today .wxc-date{background:#2563eb;color:white;border-radius:999px}.wxc-cell-items{display:flex;flex-direction:column;gap:3px}.wxc-pill{border:0;text-align:left;border-radius:4px;padding:3px 5px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;min-width:0;width:100%}.wxc-more{border:0;background:transparent;color:#4b5563;text-align:left;font-size:12px;font-weight:700;cursor:pointer;padding:4px}.wxc-on-time{background:#bfeacf;color:#14532d}.wxc-late{background:#cce4ff;color:#164a91}.wxc-absent{background:#ffd5d8;color:#a11d29}.wxc-leave{background:#ffedac;color:#805700}.wxc-rest{background:#e7d5fc;color:#6b21a8}.wxc-off{background:#d8e7ef;color:#31596d}.wxc-pending{background:#ffe4c5;color:#92400e}.wxc-future{background:#e5e7eb;color:#6b7280}.wxc-legend{display:flex;flex-wrap:wrap;gap:8px 16px;padding-top:15px}.wxc-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:12px}.wxc-swatch{width:12px;height:12px;border-radius:3px;display:inline-block}.wxc-shade{position:fixed;inset:0;background:rgba(15,23,42,.30);z-index:9999;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;padding:7vh 14px}.wxc-agenda{background:white;max-width:580px;width:100%;border-radius:16px;padding:20px;box-shadow:0 20px 60px #11182735;max-height:85vh;display:flex;flex-direction:column}.wxc-agenda-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.wxc-agenda-heading h2{margin:0;font-size:20px}.wxc-agenda-heading p{margin:4px 0 0;color:#6b7280;font-size:13px}.wxc-close{font-size:28px;border:0;background:transparent;cursor:pointer}.wxc-agenda-list{overflow-y:auto;display:flex;flex-direction:column;gap:7px}.wxc-person{border-radius:8px;overflow:hidden;flex-shrink:0}.wxc-person-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:0;padding:11px 13px;text-align:left;color:inherit;font-size:14px;font-weight:600;cursor:pointer}.wxc-person-details{padding:3px 13px 12px;border-top:1px solid #ffffff70;font-size:13px;color:inherit}.wxc-person-details p{margin:7px 0}.wxc-chevron{font-size:20px}@media(max-width:720px){.wxc-wrap{padding:10px}.wxc-grid{min-width:630px}.wxc-cell{min-height:115px}.wxc-agenda{max-height:90vh;padding:15px}.wxc-shade{padding:3vh 10px}.wxc-toolbar{align-items:flex-start}}

/* RC233.73 - easier mobile calendar reading without horizontal scrolling */
@media(max-width:720px){.wxc-grid{min-width:0}.wxc-weekhead span{font-size:10px}.wxc-cell{min-height:105px;padding:4px 2px}.wxc-date{font-size:12px;padding:2px 5px}.wxc-pill{font-size:10px;padding:3px 2px}.wxc-more{font-size:10px;padding:3px 1px}.wxc-toolbar .wxc-tools{width:100%}.wxc-tools label{max-width:100%}.wxc-agenda{width:100%}}

/* RC233.78: Keep the mobile worker planning cards near the Task Library.
   Only the library ITEMS scroll; do not expand the entire library into the page. */
@media (max-width:640px){
  .task-workspace-mode > .task-suite .task-board-shell-mobile .task-board-selection-strip,
  .task-board-shell-mobile .task-board-selection-strip.task-board-mobile-long-list{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .task-workspace-mode > .task-suite .task-board-shell-mobile .task-board-selection-strip .task-board-selection-tasks,
  .task-board-shell-mobile .task-board-selection-strip.task-board-mobile-long-list .task-board-selection-tasks{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:auto!important;
    max-height:min(42dvh, 380px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    overscroll-behavior-y:auto!important;
    scrollbar-width:thin;
    padding-bottom:8px!important;
  }
  .task-board-shell-mobile .task-board-selection-tasks > *{
    flex-shrink:0!important;
  }
}

/* RC233.80 personal calendar */
.pcal-wrap{max-width:1280px}.pcal-toolbar{display:flex;gap:9px;align-items:center;justify-content:flex-end;margin:0 0 15px}.pcal-toolbar label{display:flex;gap:8px;align-items:center}.pcal-toolbar input{padding:9px;border:1px solid #d9e0e4;border-radius:9px}.pcal-grid{background:#fff;border:1px solid #dfe5e8;border-radius:13px;overflow:hidden}.pcal-head,.pcal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.pcal-head span{text-align:center;padding:12px 3px;font-weight:600;font-size:13px;border-bottom:1px solid #e4e9eb}.pcal-days{gap:3px;padding:4px;background:#fff}.pcal-day,.pcal-empty{min-height:114px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;border:1px solid transparent;border-radius:9px;padding:8px 3px;cursor:pointer}.pcal-day strong{font-size:12px;text-align:center;overflow-wrap:anywhere}.pcal-day small{font-size:10px;margin-top:8px}.pcal-number{position:absolute;top:7px;left:8px;font-weight:700;font-size:13px}.pcal-on-time{background:#d6f9df;color:#12592f}.pcal-late{background:#d5e7ff;color:#184e95}.pcal-absent{background:#ffd9dd;color:#ae192b}.pcal-leave{background:#fff0b0;color:#7e5300}.pcal-rest{background:#ecdefc;color:#6432a2}.pcal-off{background:#d9e8ef;color:#375e6c}.pcal-future,.pcal-empty{background:#edf0f3;color:#66717e;cursor:default}.pcal-today{outline:2px solid #17643f;outline-offset:-2px}.pcal-legend{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.pcal-legend span{display:flex;gap:5px;align-items:center;font-size:12px}.pcal-legend-dot{width:12px;height:12px;border-radius:50%;display:inline-block}.pcal-detail{background:#fff;border:1px solid #dfe5e8;border-radius:12px;padding:16px;margin-top:12px}.pcal-detail-heading{display:flex;align-items:center;justify-content:space-between}.pcal-detail-status{border-radius:8px;padding:12px;margin-top:10px;font-weight:700}.pcal-request{border-top:1px solid #ddd;padding-top:12px;display:grid;gap:9px}.pcal-request label{display:grid;gap:5px}.pcal-request select,.pcal-request textarea{padding:8px;border:1px solid #ccd6da;border-radius:8px}.pcal-leave-note{font-size:12px;color:#66717e}@media(max-width:700px){.pcal-head span{font-size:9px;padding:8px 0}.pcal-days{gap:2px}.pcal-day,.pcal-empty{min-height:76px;padding:18px 2px 4px}.pcal-day strong{font-size:9px}.pcal-number{top:3px;left:4px;font-size:10px}.pcal-day small{font-size:8px}.pcal-toolbar{justify-content:flex-start;flex-wrap:wrap}}


/* RC233.81: Group Master and Platform Owner mobile viewport containment.
   Keep wide records tables internally scrollable; never expand the page viewport. */
.group-master-section.gmv2-shell,
.group-master-section.gmv2-shell > *,
.group-master-section.gmv2-shell .gmv2-hero,
.group-master-section.gmv2-shell .gmv2-panel,
.group-master-section.gmv2-shell .gmv2-summary-grid,
.group-master-section.gmv2-shell .gmv2-summary-grid > *,
.group-master-section.gmv2-shell .gmv2-summary-grid > * > div,
.group-master-section.gmv2-shell .gmv2-company-grid,
.group-master-section.gmv2-shell .gmv2-company-card,
.group-master-section.gmv2-shell .group-company-detail,
.group-master-section.gmv2-shell .group-detail-grid,
.group-master-section.gmv2-shell .gmv2-attention-list,
.group-master-section.gmv2-shell .gmv2-attention-list > button {
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.group-master-section.gmv2-shell .gmv2-hero > div,
.group-master-section.gmv2-shell .gmv2-panel-heading > *,
.group-master-section.gmv2-shell .gmv2-attention-list > button > span,
.group-master-section.gmv2-shell .gmv2-company-card-top > * {
  min-width:0;
  max-width:100%;
}
.group-master-section.gmv2-shell .gmv2-hero p,
.group-master-section.gmv2-shell .gmv2-hero h1,
.group-master-section.gmv2-shell .gmv2-panel p,
.group-master-section.gmv2-shell .gmv2-attention-list strong,
.group-master-section.gmv2-shell .gmv2-attention-list small,
.group-master-section.gmv2-shell .gmv2-summary-grid small,
.group-master-section.gmv2-shell .gmv2-summary-grid em {
  overflow-wrap:anywhere;
}
.group-master-section.gmv2-shell .gmv2-attendance-table,
.group-master-section.gmv2-shell .history-table-wrap,
.group-master-section.gmv2-shell .table-wrap {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
@media (max-width:700px) {
  .group-master-section.gmv2-shell {width:100%;overflow-x:clip;}
  .group-master-section.gmv2-shell .gmv2-summary-grid {grid-template-columns:minmax(0,1fr);}
  .group-master-section.gmv2-shell .gmv2-hero {width:100%;}
  .group-master-section.gmv2-shell .gmv2-attention-list > button {grid-template-columns:auto minmax(0,1fr) auto;}
  .group-master-section.gmv2-shell .gmv2-company-stats {grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* RC233.86 group Saturday planner */
.sat86-page{max-width:100%;}.sat86-actions{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px}.sat86-actions label{display:flex;flex-direction:column;gap:5px}.sat86-company{margin-top:14px;padding:16px}.sat86-company-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.sat86-company-heading h2{font-size:1.08rem;margin:0}.sat86-company-heading label{display:flex;align-items:center;gap:9px}.sat86-scroll{overflow-x:auto;width:100%;margin-top:12px}.sat86-table{width:100%;border-collapse:collapse;min-width:480px}.sat86-table th,.sat86-table td{padding:8px 7px;border-bottom:1px solid var(--border-color,#ddd);text-align:center}.sat86-table thead th{white-space:nowrap;font-size:.85rem}.sat86-table tbody th{text-align:left;min-width:150px}.sat86-table tbody th small{display:block;opacity:.65;font-weight:normal;margin-top:2px}.sat86-cell{width:100%;min-width:66px;border:1px solid #d6dbe1;border-radius:7px;background:#f0f2f4;color:#334155;padding:8px 4px;font-weight:600;cursor:pointer}.sat86-cell.sat86-off{background:#e5e9fb;border-color:#acb8ed;color:#334d96}@media(max-width:650px){.sat86-company{padding:10px}.sat86-actions{gap:7px}.sat86-table th,.sat86-table td{padding:5px 3px}}

/* RC233.87 -- compact Saturday planner names-only view */
.sat86-company{padding:12px 14px;margin-top:10px;}
.sat86-company-heading h2{font-size:1rem;}
.sat86-scroll{margin-top:7px;}
.sat86-table th,.sat86-table td{padding:3px 5px;}
.sat86-table tbody th{min-width:150px;font-size:12.5px;font-weight:400;line-height:1.25;}
.sat87-employee-name{font-weight:400;display:block;white-space:normal;}
.sat86-table thead th{font-size:12px;font-weight:500;}
.sat86-cell{min-width:60px;padding:5px 3px;font-size:12px;font-weight:400;line-height:1.15;border-radius:6px;}
@media(max-width:650px){.sat86-table th,.sat86-table td{padding:3px 2px;}.sat86-table tbody th{min-width:120px;font-size:12px;}.sat86-cell{min-width:54px;padding:5px 2px;font-size:11.5px;}}

/* RC233.88: compact team-oriented Saturday planning sheet */
.sat88-page .sat88-sheet-scroll{overflow-x:auto;padding:8px;margin-top:10px}
.sat88-sheet{border-collapse:collapse;width:100%;min-width:770px;table-layout:fixed}
.sat88-sheet th,.sat88-sheet td{padding:4px 5px;border-bottom:1px solid #e1e6e2;text-align:left;font-size:12px;font-weight:400}
.sat88-sheet th:nth-child(1){width:19%}.sat88-sheet th:nth-child(2){width:15%}.sat88-sheet th:nth-child(3){width:14%}.sat88-sheet th:last-child{width:16%}
.sat88-sheet thead th{font-weight:500;background:#f4f6f4;position:sticky;top:0;z-index:1}
.sat88-sheet .sat88-group td{background:#e0eee5;color:#244a36;font-weight:600;padding:6px 9px}
.sat88-sheet .sat88-name{font-weight:400;line-height:1.3;white-space:normal}
.sat88-sheet input,.sat88-sheet select{width:100%;min-width:0;font-size:12px;padding:5px 4px;min-height:27px;height:auto;border:1px solid #d7dfd9;border-radius:4px}
.sat88-sheet .sat88-days{padding:2px}
.sat88-days-grid,.sat88-dates{display:grid;grid-template-columns:repeat(var(--sat88-days,5),minmax(46px,1fr));gap:3px}
.sat88-sheet .sat88-saturday-header{text-align:center}
.sat88-dates span{text-align:center;font-size:11px}
.sat88-sheet .sat86-cell{min-width:0;width:100%;padding:5px 1px;font-size:11px;border-radius:5px}
.sat88-options{display:flex;align-items:center;gap:3px}.sat88-options select{flex:1}.sat88-update{font-size:11px!important;padding:5px 6px!important;min-height:27px!important}
.sat88-alloc{margin:8px 0;padding:10px 12px}.sat88-alloc-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.sat88-alloc-grid label{display:flex;gap:7px;align-items:center;font-size:12px}

/* RC233.89: compact, readable team roster, staff inputs in separate editor */
.sat89-editor{margin:10px 0;padding:14px}
.sat89-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sat89-fields{display:grid;grid-template-columns:repeat(3,minmax(125px,1fr));gap:10px;margin-bottom:12px}
.sat89-fields label{font-size:12px;display:flex;flex-direction:column;gap:5px}
.sat89-fields input,.sat89-fields select{min-height:33px;padding:6px 8px;font-size:12px}
.sat88-sheet{min-width:690px}
.sat88-sheet th:nth-child(1){width:23%}.sat88-sheet th:nth-child(2){width:15%}.sat88-sheet th:nth-child(3){width:13%}.sat88-sheet th:last-child{width:6%}
.sat88-sheet td{padding-top:3px;padding-bottom:3px}
.sat88-sheet .sat89-simple{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.sat88-sheet .sat88-name{font-weight:400;font-size:11px}
.sat88-sheet .sat86-cell{padding:4px 0;font-size:10px;min-height:24px}
.sat89-edit{padding:4px 6px!important;font-size:10px!important;min-height:24px!important}
@media(max-width:650px){.sat89-fields{grid-template-columns:1fr}}

/* RC233.90 combined draft image preview */
.sat90-preview-backdrop{position:fixed;inset:0;background:rgba(12,22,19,.7);z-index:99990;display:flex;align-items:center;justify-content:center;padding:18px}
.sat90-preview-dialog{background:#fff;color:#1c2b26;border-radius:12px;width:min(1200px,98vw);max-height:94vh;overflow:auto;padding:14px;box-shadow:0 12px 55px rgba(0,0,0,.35)}
.sat90-preview-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.sat90-preview-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}
.sat90-preview-dialog img{display:block;width:100%;height:auto;border:1px solid #dce3df;border-radius:4px}

/* RC233.92 spreadsheet layout */
.sat88-sheet th:last-child{width:auto}
.sat88-sheet .sat92-name-layout{display:flex;align-items:center;gap:5px;justify-content:space-between}
.sat88-sheet .sat92-name-layout span{min-width:0;overflow-wrap:anywhere}
.sat88-sheet .sat92-team-select{max-width:22px;min-width:22px;width:22px;padding:2px 1px;border:0;background:transparent;color:#4a6a5a;cursor:pointer;font-size:10px}
.sat88-sheet .sat92-name-layout:focus-within .sat92-team-select,.sat88-sheet .sat92-name-layout:hover .sat92-team-select{max-width:75px;width:75px;border:1px solid #cad8d0;background:#fff}
.sat88-sheet .sat92-focus,.sat88-sheet .sat92-lunch{box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid transparent;background:transparent;border-radius:3px;font-weight:400;font-size:11px;padding:3px 2px;color:inherit;min-height:26px}
.sat88-sheet .sat92-focus:hover,.sat88-sheet .sat92-lunch:hover,.sat88-sheet .sat92-focus:focus,.sat88-sheet .sat92-lunch:focus{border-color:#abc6b7;background:#fff}
.sat88-sheet .sat86-cell{cursor:grab}
.sat88-sheet .sat86-cell:active{cursor:grabbing}

/* RC233.93: spreadsheet-like department roster */
.sat88-sheet .sat93-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sat88-sheet .sat93-plus{color:#267d49;border:0;background:transparent;font-size:21px;line-height:1;font-weight:500;min-width:30px;min-height:27px;cursor:pointer}
.sat88-sheet .sat93-plus:hover{background:#cce3d5;border-radius:4px}
.sat88-sheet .sat93-employee-name,.sat88-sheet .sat92-focus,.sat88-sheet .sat92-lunch{font-size:12px!important;font-weight:400!important;line-height:1.3}
.sat88-sheet .sat92-focus,.sat88-sheet .sat92-lunch{min-height:26px}
.sat93-add-panel{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:10px 0}
.sat93-add-panel .sat93-add-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.sat93-add-panel p{width:100%;margin:0}
.sat93-add-panel select{min-width:min(330px,100%);max-width:100%;padding:8px;border:1px solid #b8c9bf;border-radius:6px}

/* RC233.98C: fix attendance explanation as a full-width grid row. */
.attendance-checkin-reminder .attendance-checkin-explanation{grid-column:2/-1;grid-row:auto;min-width:0;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:2px;}
.attendance-checkin-reminder .attendance-checkin-explanation label{display:block;width:100%;line-height:1.4;white-space:normal;}
.attendance-checkin-reminder .attendance-checkin-explanation textarea{box-sizing:border-box;width:min(100%,560px);min-height:80px;resize:vertical;display:block;}
.attendance-checkin-reminder .attendance-checkin-explanation button{width:auto;min-width:180px;max-width:100%;white-space:normal;}
@media(max-width:680px){.attendance-checkin-reminder .attendance-checkin-explanation{grid-column:1/-1;}}

/* RC233.98E — Requests and homepage approval cards */
.request98e-home,.request98e-section,.request98e-summary{background:var(--surface,#fff);border:1px solid #dfe8e4;border-radius:16px;padding:18px;margin:16px 0;box-shadow:0 2px 8px rgba(20,45,33,.04)}
.request98e-header,.request98e-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.request98e-header h2,.request98e-section h2{margin:5px 0 12px;color:#203b32;font-size:1.15rem}.request98e-header button{align-self:center}.request98e-count{display:inline-block;background:#e6eefc;color:#225cbe;border-radius:999px;font-size:.82rem;padding:3px 9px}
.request98e-card{background:#fff;border:1px solid #dce7e3;border-radius:13px;padding:15px;margin:12px 0}.request98e-row strong{display:block;font-size:1rem}.request98e-row small{display:block;color:#63766e;margin-top:4px}.request98e-card p{color:#52655c;margin:12px 0;overflow-wrap:anywhere}.request98e-stage{font-size:.78rem;border-radius:999px;padding:5px 10px;background:#fff0cb;color:#805b00;white-space:nowrap}.request98e-stage.approved{background:#dcf5e7;color:#176b42}.request98e-stage.rejected{background:#fee4e4;color:#a62e2e}.request98e-card .emergency-review-actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}.request98e-card .emergency-review-actions button{min-width:100px;flex:1}.request98e-empty,.request98e-help{color:#64756d}.requests98e-hub{max-width:1080px;margin:0 auto;padding-bottom:40px}.request98e-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.request98e-summary strong{font-size:1.8rem;color:#225cbe}.request98e-summary .secondary-button{margin-left:auto}.request98e-tabs{display:flex;gap:8px;flex-wrap:wrap}.request98e-tabs button{border:1px solid #d2ddd8;background:#f7faf8;border-radius:9px;padding:9px 14px;cursor:pointer}.request98e-tabs button.active{background:#e5efff;border-color:#8caef6;color:#1758b6;font-weight:700}.request98e-other>.management-card{margin:14px 0}.request98e-section>.secondary-button{margin:8px 8px 0 0}
@media(max-width:560px){.request98e-home,.request98e-section{padding:12px}.request98e-header{align-items:flex-start}.request98e-row{gap:8px}.request98e-stage{white-space:normal}}

/* RC233.98F — compact homepage action layout following owner wireframe */
.request98e-home .request98f-home-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,34%);gap:20px;align-items:center;background:var(--surface,#fff);border:1px solid #dce7e3;border-radius:14px;padding:20px 22px;margin:12px 0;min-height:136px}
.request98f-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.request98f-info>strong{font-size:1.08rem;line-height:1.35;color:#18372e}
.request98f-info>small{display:block;font-size:.81rem;color:#63766e;line-height:1.45}
.request98f-type{margin-top:9px;font-size:.82rem;text-transform:uppercase;letter-spacing:.10em;font-weight:750;color:#46685b}
.request98f-reason{margin:4px 0 0!important;color:#52655c;font-size:.85rem;line-height:1.45;overflow-wrap:anywhere}
.request98f-reason span{font-weight:650;color:#375647}
.request98f-action-panel{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:18px;border-left:1px solid #e5ebe7;padding-left:22px;min-width:0}
.request98f-action-panel .request98e-stage{align-self:flex-end}
.request98e-home .request98f-action-panel .emergency-review-actions{display:flex;flex-wrap:nowrap;align-self:flex-end;justify-content:flex-end;gap:10px;margin:0;width:auto}
.request98e-home .request98f-action-panel .emergency-review-actions button{flex:0 0 auto;width:112px;min-width:0;max-width:112px;padding:9px 12px;border-radius:9px}
@media(max-width:680px){.request98e-home .request98f-home-card{grid-template-columns:1fr;gap:16px;padding:16px}.request98f-action-panel{border-left:0;border-top:1px solid #e5ebe7;padding-left:0;padding-top:12px;gap:12px;align-items:flex-start}.request98f-action-panel .request98e-stage{align-self:flex-start}.request98e-home .request98f-action-panel .emergency-review-actions{align-self:flex-start}.request98e-home .request98f-action-panel .emergency-review-actions button{width:110px;max-width:110px}}

/* RC233.98G - compact pending approvals based on owner markup */
.request98e-home{padding:12px 16px 10px;margin:12px 0}
.request98e-home .request98e-header{align-items:center;gap:8px}
.request98e-home .request98e-header h2{margin:2px 0 0;font-size:1.03rem;line-height:1.25}
.request98e-home .request98e-header .v2-kicker{font-size:.65rem;line-height:1.15}
.request98e-home .request98e-header>.secondary-button{padding:7px 12px;font-size:.78rem}
.request98e-home .request98e-count{font-size:.72rem;padding:2px 7px}
.request98e-home .request98f-home-card{gap:12px;padding:10px 16px;margin:9px 0 2px;min-height:0;align-items:center}
.request98e-home .request98f-info{gap:3px}
.request98e-home .request98f-info>strong{font-size:.9rem;line-height:1.23}
.request98e-home .request98f-info>small{font-size:.75rem;line-height:1.22}
.request98e-home .request98f-type{margin-top:5px;font-size:.76rem;line-height:1.25;letter-spacing:.08em}
.request98e-home .request98f-reason{margin:2px 0 0!important;font-size:.76rem;line-height:1.25}
.request98e-home .request98f-action-panel{gap:9px;padding-left:14px}
.request98e-home .request98f-action-panel .request98e-stage{font-size:.69rem;line-height:1.18;padding:4px 9px}
.request98e-home .request98f-action-panel .emergency-review-actions{gap:8px}
.request98e-home .request98f-action-panel .emergency-review-actions button{width:102px;max-width:102px;padding:6px 9px;font-size:.79rem;line-height:1.2}
@media(max-width:680px){
  .request98e-home{padding:10px 12px}
  .request98e-home .request98f-home-card{gap:8px;padding:10px 12px;margin-top:8px}
  .request98e-home .request98f-action-panel{padding:8px 0 0;gap:8px}
  .request98e-home .request98f-action-panel .emergency-review-actions button{width:98px;max-width:98px}
}

/* RC233.98J / Read-only payroll demo */
.payroll98j{max-width:1300px;margin:0 auto;padding:20px 8px 45px;color:#263e35}.payroll98j-title{margin-bottom:20px}.payroll98j-title h1{font-size:clamp(24px,3vw,34px);margin:5px 0 8px}.payroll98j-title p,.payroll98j-panelhead p{color:#73847a;margin:4px 0}.payroll98j-demo{font-size:11px;letter-spacing:.04em;background:#fff1d2;color:#855b12;border-radius:20px;padding:5px 9px;vertical-align:middle}.payroll98j-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:flex-end;background:white;border:1px solid #e4eae5;padding:18px;border-radius:15px;margin-bottom:14px}.payroll98j-toolbar label{font-size:12px;color:#697b70;font-weight:700;min-width:250px}.payroll98j-toolbar select{display:block;margin-top:7px;width:100%;border:1px solid #ced8ce;background:#fff;padding:10px 12px;border-radius:9px;color:#263e35}.payroll98j-period{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.payroll98j-period small,.payroll98j-period span{font-size:12px;color:#748178}.payroll98j-period strong{font-size:16px}.payroll98j-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.payroll98j-stats article{border:1px solid #e2e9e4;background:#fff;padding:18px;border-radius:14px;display:flex;flex-direction:column;gap:10px}.payroll98j-stats span{font-size:12px;color:#728076}.payroll98j-stats strong{font-size:23px}.payroll98j-panel{border:1px solid #e2e9e4;background:#fff;border-radius:16px;overflow:hidden}.payroll98j-panelhead{padding:19px 21px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e9ece8}.payroll98j-panelhead h2{font-size:19px;margin:0}.payroll98j-draft{font-size:12px;color:#875f1a;background:#fff2dc;padding:6px 10px;border-radius:20px;white-space:nowrap}.payroll98j-tablewrap{overflow-x:auto}.payroll98j table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.payroll98j th{text-align:left;color:#65776c;font-size:11px;letter-spacing:.03em;text-transform:uppercase;background:#f8faf7;padding:14px 13px}.payroll98j td{padding:13px;border-top:1px solid #edf0ed;vertical-align:top}.payroll98j td small{display:block;color:#96a298;margin-top:4px}.payroll98j-details summary{cursor:pointer;color:#2b6952;font-weight:700}.payroll98j-breakdown{position:relative;border:1px solid #e0e8df;border-radius:10px;padding:13px;min-width:250px;white-space:normal;margin-top:9px;background:#fafcf9}.payroll98j-breakdown div{display:flex;justify-content:space-between;gap:10px;margin:8px 0}.payroll98j-breakdown b{font-weight:500}.payroll98j-breakdown .payroll98j-total{border-top:1px solid #d9e2da;padding-top:10px}.payroll98j-breakdown p{color:#87948a;font-size:11px;white-space:normal}.payroll98j-footnote{color:#758478;font-size:12px;margin-top:15px}@media(max-width:760px){.payroll98j-toolbar{flex-direction:column;align-items:stretch}.payroll98j-toolbar label{min-width:0}.payroll98j-period{align-items:flex-start}.payroll98j-stats{grid-template-columns:repeat(2,1fr)}.payroll98j-stats strong{font-size:18px}.payroll98j-panelhead{flex-direction:column}}

/* RC233.98M: session-only payroll demo editing */
.payroll98m-btn{border:1px solid #bacfc3;background:white;color:#285a47;padding:7px 11px;border-radius:7px;font-size:12px;font-weight:650;cursor:pointer}.payroll98m-btn:hover{background:#eaf4ed}.payroll98m-primary{background:#2f6b50;color:white;border-color:#2f6b50}.payroll98m-primary:hover{background:#24573f}.payroll98m-editrow td{background:#f6faf7}.payroll98m-editform{max-width:920px;white-space:normal;padding:9px}.payroll98m-editform h3{font-size:16px;margin:0 0 16px}.payroll98m-editform h3 span{font-weight:400;font-size:12px;color:#73847a}.payroll98m-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.payroll98m-fields label{font-size:12px;color:#566a5c;font-weight:650}.payroll98m-fields input{display:block;width:100%;margin-top:6px;padding:9px;border-radius:8px;border:1px solid #c7d6cc;background:#fff;font-size:14px;box-sizing:border-box}.payroll98m-editform p{font-size:12px;color:#718477;margin:15px 0}.payroll98m-actions{display:flex;gap:8px}.payroll98m-message{background:#eef8f0;color:#275c3a;border:1px solid #cde4d1;padding:12px 15px;border-radius:9px;font-size:13px}

/* RC233.98S: Show the selected Daily Task Summary immediately below its date card. */
.daily-task-inline-summary{grid-column:1 / -1;min-width:0}

/* RC233.98T: compact Daily Task Summary only on phone-sized screens. */
@media (max-width: 600px) {
  .daily-task-summary-card { border-radius: 13px; box-shadow: 0 3px 12px rgba(31,65,49,.06); }
  .daily-task-summary-head { padding: 10px 12px 9px; }
  .daily-task-summary-head .eyebrow { font-size: 10px; line-height: 1.15; letter-spacing: .09em; }
  .daily-task-summary-head h2 { margin: 3px 0; font-size: 18px; line-height: 1.18; overflow-wrap: anywhere; }
  .daily-task-summary-head p { font-size: 12px; line-height: 1.2; }
  .daily-task-summary-table th, .daily-task-summary-table td { padding: 7px 8px; font-size: 12px; line-height: 1.3; }
  .daily-task-summary-table th { font-size: 10px; }
  .daily-task-summary-table td:nth-child(2) { min-width: 170px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
  .daily-task-share-actions { padding: 9px 12px 5px; gap: 7px; }
  .daily-task-share-actions .primary-button, .daily-task-share-actions .secondary-button {
    padding: 8px 11px; min-height: 36px; font-size: 12px; line-height: 1.2; width: auto;
  }
  .daily-task-summary-card > .subtle-note { padding: 0 12px 10px; font-size: 11px; line-height: 1.3; }
}

/* RC233.98U — payslip copied structurally from the supplied monochrome paper slip. */
.slip98u-wrap{margin:20px auto;max-width:850px;color:#101010}.slip98u-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;background:#f1f5f1;border:1px solid #dfe5de;border-radius:9px 9px 0 0}.slip98u-toolbar button{margin-left:6px;border:1px solid #c6cec6;border-radius:6px;background:white;padding:8px 12px;cursor:pointer}.slip98u-page{font-family:Arial,sans-serif;color:#111;background:#fff;padding:38px 46px 26px;box-shadow:0 2px 12px #00000016;font-size:11px;line-height:1.3}.slip98u-company{text-align:center;margin:0 0 24px}.slip98u-company b{display:block;font-size:13px}.slip98u-company small{font-size:10px;display:block;margin-top:6px}.slip98u-boundary{border:1px solid #444}.slip98u-period{text-align:center;font-weight:700;padding:5px 3px 9px;font-size:11px}.slip98u-info{display:grid;grid-template-columns:58% 42%;padding:8px 14px 17px;min-height:145px;gap:0}.slip98u-detail{display:grid;grid-template-columns:91px 10px 1fr;gap:4px;padding:2px 0;align-items:start}.slip98u-info>div:nth-child(2) .slip98u-detail{grid-template-columns:108px 10px 1fr}.slip98u-detail b{font-weight:700}.slip98u-two{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #444;min-height:216px}.slip98u-pane{display:flex;flex-direction:column;min-width:0}.slip98u-pane+ .slip98u-pane{border-left:1px solid #444}.slip98u-pane h3{font-size:11px;text-align:center;margin:0;padding:4px;border-bottom:1px solid #666}.slip98u-lines{padding:4px 14px 8px;flex:1}.slip98u-line{display:grid;grid-template-columns:92px 10px 1fr;gap:5px;padding:3px 0}.slip98u-number{text-align:right}.slip98u-total{padding:8px 14px 7px;font-weight:700}.slip98u-net{border-top:2px solid #222;display:grid;grid-template-columns:1fr 10px auto;gap:8px;padding:5px 14px 5px 60%;font-size:12px;align-items:center}.slip98u-sign{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:36px 15px 4px;font-size:10px;min-height:158px}.slip98u-signspace{height:65px}.slip98u-stamp{height:70px}.slip98u-signline{border-top:1px solid #333;margin-bottom:4px}.slip98u-watermark{text-align:center;font-size:9px;letter-spacing:.09em;color:#777;margin-top:16px}.slip98u-disclaimer{font-size:12px;color:#6c7770;margin:12px 0}.payroll98j td .payroll98m-btn{margin-bottom:5px}
@media(max-width:760px){.slip98u-wrap{overflow-x:auto}.slip98u-page{width:660px;min-width:660px;padding:26px 34px}.slip98u-toolbar{min-width:660px}.slip98u-disclaimer{min-width:660px}}
@media print{body *{visibility:hidden!important}.slip98u-page,.slip98u-page *{visibility:visible!important}.slip98u-page{position:absolute;top:0;left:0;width:100%;box-shadow:none;padding:12mm 14mm!important;min-width:0!important}.slip98u-watermark{color:#777}.slip98u-wrap{overflow:visible!important}@page{size:A4 portrait;margin:0}}

/* RC233.98X: compact Google Sheets-style payroll demo grid on desktop */
.payroll98w-panel{background:#fff;border:1px solid #d9e2dd;padding:12px;max-width:100%;overflow:hidden}
.payroll98w-panel>p{line-height:1.4;margin-bottom:10px}
.payroll98w-scroll{max-width:100%;overflow-x:auto;border:1px solid #cbd5d1;border-radius:5px;background:#fff}
.payroll98w-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}
.payroll98w-table th,.payroll98w-table td{box-sizing:border-box;border-right:1px solid #dce3e0;border-bottom:1px solid #dce3e0;padding:0!important;height:36px;text-align:left;vertical-align:middle;min-width:0;white-space:nowrap}
.payroll98w-table thead th{background:#edf2ee;color:#385344;font-size:10px;letter-spacing:.025em;text-transform:uppercase;font-weight:750;padding:8px 5px!important;position:sticky;top:0;z-index:2}
.payroll98w-table th:first-child{width:190px;position:sticky;left:0;z-index:3;padding:4px 8px!important;overflow:hidden;text-overflow:ellipsis;background:#f7faf7}
.payroll98w-table thead th:first-child{z-index:4;background:#e5eee7}
.payroll98w-table td{width:calc((100% - 190px)/7);background:#fff}
.payroll98w-table tbody tr:nth-child(even) td{background:#f7faf8}
.payroll98w-table tbody tr:nth-child(even) th:first-child{background:#eef5f0}
.payroll98w-table th small{font-size:10px;margin-top:2px}
.payroll98w-table input[type=number]{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;margin:0!important;padding:4px 7px!important;border:1px solid transparent!important;border-radius:0!important;background:transparent!important;text-align:right!important;font:inherit!important;font-size:12px!important;color:#233a2d!important;outline:none!important;box-shadow:none!important}
.payroll98w-table input[type=number]:focus{background:#fff!important;border:2px solid #227b50!important;box-shadow:inset 0 0 0 1px #227b50!important}
.payroll98w-table input[type=number]::-webkit-inner-spin-button,.payroll98w-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.payroll98w-table input[type=number]{-moz-appearance:textfield}
@media(max-width:880px){.payroll98w-table{min-width:850px}.payroll98w-table th:first-child{width:170px}.payroll98w-table td{width:97px}}

/* RC233.98Y: softer, interactive spreadsheet presentation */
.payroll98w-panel{background:#fff;border-color:#dce7df;border-radius:15px;box-shadow:0 4px 18px rgba(24,61,42,.05)}
.payroll98w-panel p{color:#627568;line-height:1.5}
.payroll98w-scroll{border-color:#dbe6df;border-radius:10px;box-shadow:0 1px 4px rgba(35,65,44,.06)}
.payroll98w-table thead th{background:#eaf3ed!important;color:#335946!important;border-color:#d9e8dd!important}
.payroll98w-table tbody tr:hover td,.payroll98w-table tbody tr:hover th{background:#eff8f2!important}
.payroll98w-table tbody tr:nth-child(even) td{background:#f9fbf9}
.payroll98w-table tbody th:first-child{font-weight:650;color:#375b44}
.payroll98w-table tbody td{position:relative;transition:background-color .11s ease}
.payroll98w-table tbody td.pg98y-selected{background:#edf9f1!important;box-shadow:inset 0 0 0 2px #268c56;z-index:1}
.payroll98w-table tbody td.pg98y-fill-preview{background:#d6f0df!important;box-shadow:inset 0 0 0 1px #5cae7a}
.payroll98w-table input[type=number]:focus{background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important}
.pg98y-fill-handle{position:absolute;right:-4px;bottom:-4px;width:10px;height:10px;background:#268c56;border:2px solid white;border-radius:3px;box-shadow:0 0 0 1px #268c56;cursor:crosshair;z-index:10;touch-action:none}
.payroll98w-actions{padding-top:6px}

/* RC233.98AE Employee Classification */
.class98ae-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.class98ae-filters button{font-size:12px}.class98ae-table-wrap{overflow-x:auto}.class98ae-table{width:100%;border-collapse:collapse;min-width:880px}.class98ae-table th,.class98ae-table td{padding:10px;border-bottom:1px solid var(--border,#ddd);text-align:left;vertical-align:top}.class98ae-table small{display:block;color:#64748b;margin-top:4px}.class98ae-table select,.class98ae-table input{width:100%;min-width:150px;padding:8px;border:1px solid #cbd5e1;border-radius:7px;background:var(--card-bg,#fff);color:inherit}.class98ae-table td:nth-child(5){min-width:220px}

/* AL2: integrated request actions and responsive native dialog */
.al2-request-card{border:1px solid #dce7df;border-radius:14px;background:#fff;overflow:hidden}.al2-request-card>.my-request-item{border:0;box-shadow:none;border-radius:0;margin:0}.al2-card-actions{padding:10px 14px 13px;border-top:1px solid #e8eeea;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.al2-card-actions small{color:#60736a;font-size:12px}.al2-card-actions>div{display:flex;gap:8px;flex-wrap:wrap}.al2-edit,.al2-withdraw,.al2-danger,.al2-cancel{font:inherit;font-weight:650;font-size:13px;border:1px solid #245740;border-radius:9px;padding:10px 14px;cursor:pointer;min-height:42px}.al2-edit{background:#245740;color:white}.al2-withdraw{background:white;color:#a33131;border-color:#e6b8b8}.al2-danger{background:#a33131;color:white;border-color:#a33131}.al2-cancel{background:white;color:#245740;border-color:#bdcec3}.al2-dialog{padding:0;border:0;border-radius:18px;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:#223e30;background:white;box-shadow:0 18px 60px #172d2655}.al2-dialog::backdrop{background:#15251d88}.al2-form{margin:0}.al2-form header{background:#245740;color:white;padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.al2-form header small{font-size:10px;letter-spacing:.08em;color:#d8eadf}.al2-form h2{font-size:20px;color:white;margin:5px 0 0}.al2-close{border:0;background:transparent;color:white;font-size:24px;cursor:pointer;line-height:1}.al2-body{padding:20px;display:grid;gap:15px}.al2-current{display:grid;gap:4px;padding:12px;background:#eef4ef;border-radius:10px}.al2-current small,.al2-current span{font-size:12px;color:#587064}.al2-body label{display:grid;gap:6px;font-size:13px;font-weight:650}.al2-body input,.al2-body textarea{font:inherit;border:1px solid #b9c9be;border-radius:9px;padding:10px;min-width:0;width:100%;box-sizing:border-box;background:white;color:#223e30}.al2-body input{min-height:44px}.al2-body p{font-size:13px;line-height:1.5;margin:0;color:#52665a}.al2-body .al2-message{color:#a33131}.al2-form footer{display:flex;gap:10px;padding:14px 20px;border-top:1px solid #e5ece6}.al2-form footer button{flex:1}.al2-form button:disabled{opacity:.6;cursor:wait}.my-request-status.status-withdrawn{background:#edf0ef;color:#54645b}@media(max-width:520px){.al2-card-actions>div{width:100%}.al2-card-actions>div button{flex:1}.al2-body{padding:16px}.al2-form footer{padding:12px 16px}}
