:root { --bg:#0b0d10; --panel:#15191f; --panel2:#1d232b; --line:#2b333d; --text:#f4f6f8; --muted:#9ba6b2; --red:#b61f2a; --gold:#c9a24a; --green:#39b36b; --danger:#e05252; --radius:8px; }
* { box-sizing:border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:var(--bg); color:var(--text); letter-spacing:0; }
a { color:inherit; text-decoration:none; }
input, select, textarea, button { font:inherit; }
.auth-body { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at top, #20252c, #0b0d10 58%); }
.auth-card { width:min(420px,100%); background:rgba(21,25,31,.92); border:1px solid var(--line); border-radius:8px; padding:28px; box-shadow:0 24px 80px rgba(0,0,0,.4); }
.auth-logo { width:112px; height:112px; display:block; object-fit:contain; margin:0 auto 14px; }
.auth-card h1 { margin:0; font-size:28px; text-align:center; }
.auth-card p { color:var(--muted); text-align:center; margin:8px 0 22px; }
.shell { min-height:100vh; display:grid; grid-template-columns:270px 1fr; }
.sidebar { background:#0f1217; border-right:1px solid var(--line); padding:18px; position:sticky; top:0; height:100vh; overflow:auto; }
.brand { display:flex; gap:12px; align-items:center; padding-bottom:18px; border-bottom:1px solid var(--line); }
.brand img { width:46px; height:46px; object-fit:contain; }
.brand strong, .topbar strong { display:block; }
.brand small, .topbar small { display:block; color:var(--muted); margin-top:3px; font-size:12px; }
.nav { display:grid; gap:6px; margin-top:18px; }
.nav a { padding:11px 12px; border-radius:8px; color:#dbe1e8; }
.nav a:hover { background:var(--panel2); }
.main { padding:22px; min-width:0; padding-bottom:82px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:12px; }
.icon-button { display:none; background:var(--panel2); border:1px solid var(--line); color:var(--text); border-radius:8px; width:42px; height:42px; }
.button { border:1px solid var(--line); background:var(--panel2); color:var(--text); border-radius:8px; padding:10px 14px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; min-height:40px; }
.button.primary { background:var(--red); border-color:#d33b45; color:white; }
.button.ghost { background:transparent; }
.button.tiny { min-height:30px; padding:6px 10px; font-size:13px; }
.button.full { width:100%; }
.notice { padding:12px 14px; border-radius:8px; margin-bottom:14px; border:1px solid var(--line); }
.notice.success { background:rgba(57,179,107,.12); border-color:rgba(57,179,107,.4); }
.notice.error { background:rgba(224,82,82,.12); border-color:rgba(224,82,82,.4); }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:4px 0 18px; }
.page-head h1 { margin:0; font-size:28px; }
.page-head p { margin:6px 0 0; color:var(--muted); }
.metric-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.metric, .panel, .timeclock-card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:16px; }
.metric span { display:block; color:var(--muted); font-size:13px; }
.metric strong { display:block; margin-top:8px; font-size:26px; }
.metric-link { color:var(--text); text-decoration:none; transition:border-color .15s ease, background .15s ease, transform .15s ease; }
.metric-link:hover { border-color:#3a4654; background:#1b2129; transform:translateY(-1px); }
.metric small { display:block; margin-top:8px; color:var(--muted); font-size:12px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.panel h2 { margin:0; font-size:18px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:720px; }
th,td { padding:12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:var(--muted); font-weight:600; font-size:13px; }
.form, .form-grid { display:grid; gap:14px; }
.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
label { display:grid; gap:7px; color:#dce3ea; font-size:14px; }
input, select, textarea { width:100%; background:#0f1318; border:1px solid var(--line); color:var(--text); border-radius:8px; padding:11px 12px; outline:none; }
input:focus, select:focus, textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,162,74,.12); }
.span-2 { grid-column:span 2; }
.form-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:10px; }
.field-error { color:#ff9b9b; }
.pill { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; padding:7px 10px; font-size:12px; }
.pill.warn { border-color:rgba(201,162,74,.5); color:#f3d17a; }
.timeclock-card { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.timeclock-card form { display:grid; gap:12px; }
.clock-button { border:0; border-radius:8px; color:white; padding:20px; font-size:20px; font-weight:700; cursor:pointer; min-height:78px; }
.clock-button.in { background:var(--green); }
.clock-button.out { background:var(--red); }
.error-page { margin:40px auto; max-width:680px; }
.bottom-nav { display:none; }
@media (max-width:1100px) { .metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { .shell { display:block; } .sidebar { position:fixed; left:-285px; z-index:20; transition:left .2s ease; width:270px; } .sidebar.open { left:0; } .main { padding:14px; padding-bottom:86px; } .topbar { position:sticky; top:0; z-index:10; } .icon-button { display:inline-grid; place-items:center; } .metric-grid, .form-grid, .timeclock-card { grid-template-columns:1fr; } .span-2 { grid-column:auto; } .page-head { align-items:flex-start; flex-direction:column; } .bottom-nav { display:grid; grid-template-columns:repeat(3,1fr); position:fixed; bottom:0; left:0; right:0; background:#10141a; border-top:1px solid var(--line); z-index:30; } .bottom-nav a { text-align:center; padding:13px 8px; color:#dbe1e8; font-size:13px; } table { min-width:640px; } }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.detail-grid .wide { grid-column:1/-1; }
.stack { display:grid; gap:14px; align-content:start; }
.subform { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-top:4px; }
.subform .button { justify-self:start; }
.compact table { min-width:560px; }
.row-actions { display:flex; gap:8px; flex-wrap:wrap; }
.muted { color:var(--muted); margin:0; }
.post-order-list { display:grid; gap:10px; }
.post-order { background:#0f1318; border:1px solid var(--line); border-radius:8px; padding:12px; }
.post-order strong { display:inline-block; margin-right:8px; }
.post-order p { color:#d9e0e7; white-space:normal; margin:10px 0 0; }
@media (max-width:900px) { .detail-grid, .subform { grid-template-columns:1fr; } .detail-grid .wide, .subform .span-2 { grid-column:auto; } }
.actions-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.inline-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.inline-form select { width:auto; min-width:130px; padding:7px 9px; }
.segment-form { border-top:1px solid var(--line); padding-top:12px; }
.shift-planner .assignment-create { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr auto; gap:12px; align-items:end; }
.shift-planner table input, .shift-planner table select { min-width:150px; padding:8px 9px; }
.segment-details { border-top:1px solid var(--line); padding-top:12px; }
.segment-details summary { cursor:pointer; color:#f4f6f8; font-weight:700; padding:8px 0; }
.segment-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:10px; }
.check-row { display:flex; align-items:center; gap:8px; color:var(--muted); }
.check-row input { width:auto; }
@media (max-width:1100px) { .shift-planner .assignment-create, .segment-form-grid { grid-template-columns:1fr; } }
.button.danger { border-color:rgba(224,82,82,.55); color:#ffb4b4; }
.button.danger:hover { background:rgba(224,82,82,.12); }
td.row-actions form { display:inline-flex; }
.icon { width:18px; height:18px; flex:0 0 auto; }
.button .icon { margin-right:6px; }
.button.tiny .icon, .button.danger .icon { margin-right:0; width:16px; height:16px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.quick-clock-panel { margin-bottom:18px; border-color:rgba(201,162,74,.28); }
.quick-clock-panel h2 { display:flex; align-items:center; gap:8px; }
.quick-clock-list { display:grid; gap:10px; }
.quick-clock-item { display:grid; grid-template-columns:1fr auto minmax(260px,auto); gap:10px; align-items:center; background:#0f1318; border:1px solid var(--line); border-radius:8px; padding:12px; }
.quick-clock-item form { display:flex; gap:8px; align-items:center; }
.quick-clock-item .clock-button { min-height:42px; padding:10px 14px; font-size:15px; }
.quick-clock-item form input[name="note"] { min-width:150px; }
.quick-clock-item strong, .quick-clock-item small { display:block; }
.quick-clock-item small { color:var(--muted); margin-top:4px; }
@media (max-width:760px) { .quick-clock-item { grid-template-columns:1fr; } .quick-clock-item form { width:100%; } .quick-clock-item form input[name="note"] { width:100%; min-width:0; } .quick-clock-item .button, .quick-clock-item .clock-button { width:100%; } }
/* UI polish 2026-06-25 */
.icon { width:18px !important; height:18px !important; max-width:18px; max-height:18px; display:inline-block; vertical-align:middle; flex:0 0 18px; }
.icon-button { place-items:center; padding:0; }
.icon-button .icon { margin:0; }
.button { gap:7px; white-space:nowrap; }
.button .icon { margin-right:0; }
.button.icon-only { width:36px; min-width:36px; height:34px; min-height:34px; padding:0; gap:0; }
.button.icon-only .icon, .button.tiny.icon-only .icon, .button.danger.icon-only .icon { width:16px !important; height:16px !important; margin:0; }
.row-actions { display:flex; gap:8px; align-items:center; flex-wrap:nowrap; }
.row-actions form { display:inline-flex; margin:0; }
.shift-planner .assignment-create .button.primary { min-height:44px; padding:10px 14px; align-self:end; }
.shift-planner .assignment-create .button.primary .icon { width:18px !important; height:18px !important; }
.shift-planner table input, .shift-planner table select { min-width:0; width:100%; }
.shift-planner table th:nth-child(1), .shift-planner table td:nth-child(1) { width:15%; }
.shift-planner table th:nth-child(2), .shift-planner table td:nth-child(2) { width:15%; }
.shift-planner table th:nth-child(5), .shift-planner table td:nth-child(5) { width:110px; }
.shift-planner table th:nth-child(6), .shift-planner table td:nth-child(6) { width:92px; }
.quick-clock-panel { display:grid; gap:14px; margin-bottom:18px; border-color:rgba(201,162,74,.28); }
.quick-clock-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.quick-clock-header h2 { display:flex; align-items:center; gap:8px; margin:0 0 4px; font-size:18px; }
.quick-clock-header .button { flex:0 0 auto; }
.quick-clock-list { display:grid; gap:10px; }
.quick-clock-card { display:grid; grid-template-columns:minmax(220px,1fr) auto; gap:12px; align-items:center; background:#0f1318; border:1px solid var(--line); border-radius:8px; padding:12px; }
.quick-clock-meta strong, .quick-clock-meta small { display:block; }
.quick-clock-meta small { color:var(--muted); margin-top:4px; }
.quick-clock-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.quick-clock-actions form { display:flex; align-items:center; gap:8px; margin:0; }
.quick-clock-actions input[name="note"] { width:220px; min-width:180px; padding:9px 10px; }
.quick-clock-actions .clock-button { min-height:40px; padding:9px 13px; font-size:14px; line-height:1; }
@media (max-width:900px) {
  .quick-clock-header, .quick-clock-card { grid-template-columns:1fr; display:grid; }
  .quick-clock-header .button { justify-self:start; }
  .quick-clock-actions { justify-content:flex-start; }
}
@media (max-width:760px) {
  .quick-clock-actions, .quick-clock-actions form { width:100%; }
  .quick-clock-actions input[name="note"] { width:100%; min-width:0; }
  .quick-clock-actions .clock-button { width:100%; }
  .row-actions { flex-wrap:wrap; }
}
/* Employee dashboard action center 2026-06-25 */
.dashboard-head { margin-bottom:14px; }
.work-console { display:grid; grid-template-columns:minmax(280px,.9fr) minmax(420px,1.4fr); gap:14px; margin-bottom:18px; }
.work-clock-card { display:grid; align-content:space-between; gap:18px; min-height:208px; border-color:rgba(201,162,74,.26); background:linear-gradient(145deg, #171c22, #101419); }
.work-clock-main { display:flex; align-items:center; gap:16px; }
.work-clock-icon { display:grid; place-items:center; width:62px; height:62px; border-radius:8px; background:rgba(201,162,74,.12); border:1px solid rgba(201,162,74,.34); color:#f3d17a; }
.work-clock-icon .icon { width:30px !important; height:30px !important; max-width:30px; max-height:30px; }
.eyebrow { margin:0 0 4px; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:0; }
.work-clock-main strong { display:block; font-size:34px; line-height:1; margin-bottom:10px; }
.work-clock-main span, .work-clock-main small { display:block; color:#dce3ea; }
.work-clock-main small { color:var(--muted); margin-top:4px; }
.work-clock-meta { border-top:1px solid var(--line); padding-top:12px; }
.work-clock-meta span { display:block; color:var(--muted); font-size:12px; margin-bottom:5px; }
.work-clock-meta strong { display:block; font-size:13px; color:#dce3ea; line-height:1.35; }
.action-tile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.action-tile { min-height:98px; display:grid; align-content:center; gap:7px; padding:14px; border-radius:8px; background:var(--panel); border:1px solid var(--line); color:var(--text); transition:background .16s ease, border-color .16s ease, transform .16s ease; }
.action-tile:hover { background:#1b2129; border-color:#3a4654; transform:translateY(-1px); }
.action-tile.primary { background:linear-gradient(145deg, rgba(182,31,42,.95), rgba(118,20,28,.95)); border-color:#d33b45; }
.action-tile span { width:36px; height:36px; display:grid; place-items:center; border-radius:8px; background:rgba(255,255,255,.06); color:#f4f6f8; }
.action-tile span .icon { width:20px !important; height:20px !important; max-width:20px; max-height:20px; }
.action-tile strong { font-size:15px; line-height:1.2; }
.action-tile small { color:var(--muted); line-height:1.25; }
.action-tile.primary small { color:rgba(255,255,255,.78); }
.mini-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.mini-stat { background:#101419; border:1px solid var(--line); border-radius:8px; padding:13px 14px; }
.mini-stat span { display:block; color:var(--muted); font-size:12px; margin-bottom:6px; }
.mini-stat strong { font-size:24px; }
@media (max-width:1120px) {
  .work-console { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .work-console { gap:12px; }
  .work-clock-card { min-height:auto; }
  .work-clock-main strong { font-size:30px; }
  .action-tile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .action-tile { min-height:104px; }
  .mini-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:480px) {
  .action-tile-grid, .mini-stat-grid { grid-template-columns:1fr; }
}
/* Profile and topbar polish 2026-06-25 */
.topbar { justify-content:flex-start; }
.topbar-user { min-width:0; flex:1; }
.topbar-user strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:16px; }
.topbar-user small { display:block; color:var(--muted); margin-top:3px; font-size:12px; }
.logout-form { margin:0; display:flex; flex:0 0 auto; }
.logout-button { color:#ffb4b4; }
.logout-button:hover { background:rgba(224,82,82,.12); border-color:rgba(224,82,82,.55); }
.profile-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:16px; align-items:start; }
.profile-card { display:grid; justify-items:center; text-align:center; gap:10px; }
.profile-avatar { width:96px; height:96px; display:grid; place-items:center; border-radius:8px; background:#0f1318; border:1px solid rgba(201,162,74,.35); color:#f3d17a; font-size:30px; font-weight:800; }
.profile-card h2 { margin:4px 0 0; font-size:22px; }
.profile-card p { margin:0 0 8px; color:var(--muted); }
.profile-details { display:grid; gap:12px; }
.profile-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
.profile-list div { background:#0f1318; border:1px solid var(--line); border-radius:8px; padding:12px; }
.profile-list dt { color:var(--muted); font-size:12px; margin-bottom:5px; }
.profile-list dd { margin:0; font-weight:700; overflow-wrap:anywhere; }
.profile-note { border:1px solid rgba(201,162,74,.35); background:rgba(201,162,74,.08); border-radius:8px; padding:12px; color:#f0e1b3; }
.profile-note a { color:#fff; text-decoration:underline; }
@media (max-width:760px) {
  .profile-layout { grid-template-columns:1fr; }
  .profile-list { grid-template-columns:1fr; }
}
/* Admin time clock 2026-06-25 */
.admin-clock-summary { display:grid; gap:14px; margin-bottom:16px; }
.admin-clock-summary .inline-form { justify-content:space-between; }
.admin-clock-summary .inline-form label { min-width:220px; }
.admin-clock-stats { margin-bottom:0; }
.admin-clock-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin-clock-card { display:grid; gap:14px; border-color:var(--line); }
.admin-clock-card.is-working { border-color:rgba(57,179,107,.42); }
.admin-clock-card.is-done { border-color:rgba(88,166,255,.34); }
.admin-clock-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.admin-clock-card h2 { margin:0; font-size:18px; }
.admin-clock-card p { margin:4px 0 0; color:var(--muted); }
.admin-clock-card small { display:block; color:var(--muted); margin-top:4px; }
.status-dot { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:6px 9px; font-size:12px; white-space:nowrap; border:1px solid var(--line); color:var(--muted); }
.status-stack { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.status-dot.on { color:#bdf4d1; border-color:rgba(57,179,107,.55); background:rgba(57,179,107,.12); }
.status-dot.off { color:#ffcab0; border-color:rgba(224,82,82,.35); background:rgba(224,82,82,.08); }
.status-dot.done { color:#c7ddff; border-color:rgba(88,166,255,.45); background:rgba(88,166,255,.10); }
.status-dot.warn { color:#ffe3a3; border-color:rgba(230,174,58,.42); background:rgba(230,174,58,.10); }
.admin-clock-current { padding:10px 12px; border-radius:8px; background:#0f1318; border:1px solid var(--line); color:#dce3ea !important; }
.admin-clock-form { display:grid; gap:10px; }
.admin-clock-form .clock-button { min-height:52px; padding:13px; font-size:16px; }
.admin-working-panel { margin-bottom:18px; }
.working-list-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.working-list-grid.status-list-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.working-list-grid h3 { margin:0 0 8px; font-size:15px; color:#dce3ea; }
.working-person { display:grid; gap:2px; margin:0 0 8px; padding:10px 12px; border-radius:8px; background:#0f1318; border:1px solid var(--line); }
.working-person strong { font-size:14px; }
.working-person span { color:var(--muted); font-size:12px; }
.working-person.on { border-color:rgba(57,179,107,.38); }
.working-person.off { border-color:rgba(224,82,82,.24); }
.working-person.done { border-color:rgba(88,166,255,.28); }
@media (max-width:900px) {
  .admin-clock-grid, .working-list-grid, .working-list-grid.status-list-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .admin-clock-summary .inline-form, .admin-clock-summary .inline-form label, .admin-clock-summary .inline-form .button { width:100%; }
  .admin-clock-card-head { display:grid; }
  .status-dot { justify-self:start; }
  .status-stack { justify-content:flex-start; }
}
/* Smart time clock and schedule calendar 2026-06-26 */
.smart-clock-card { display:grid; gap:16px; border-color:rgba(201,162,74,.30); background:linear-gradient(145deg,#171c22,#101419); }
.smart-clock-header { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:start; }
.smart-clock-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:8px; background:rgba(201,162,74,.12); border:1px solid rgba(201,162,74,.34); color:#f3d17a; }
.smart-clock-icon .icon { width:28px !important; height:28px !important; max-width:28px; max-height:28px; }
.smart-clock-header h2 { margin:0 0 5px; font-size:22px; }
.smart-clock-body { display:grid; gap:5px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#0f1318; }
.smart-clock-body p { margin:0; color:#dce3ea; font-weight:700; }
.smart-clock-body small { color:var(--muted); }
.smart-clock-form { display:grid; gap:12px; }
.smart-clock-form .clock-button { width:100%; display:flex; align-items:center; justify-content:center; gap:10px; }
.clock-button.disabled, .clock-button:disabled { background:#2c333c; color:#98a4b1; cursor:not-allowed; }
.schedule-preview-panel { margin-top:18px; }
.timeline-list { display:grid; gap:10px; }
.timeline-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#0f1318; }
.timeline-item strong, .timeline-item small { display:block; }
.timeline-item small { color:var(--muted); margin-top:4px; }
.schedule-actions .button:first-child .icon { transform:rotate(180deg); }
.schedule-calendar-panel { margin-bottom:16px; }
.schedule-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.calendar-weekday { color:var(--muted); font-size:12px; font-weight:700; padding:0 4px 4px; text-align:center; }
.calendar-day { min-height:154px; display:grid; grid-template-rows:auto 1fr; gap:8px; background:#0f1318; border:1px solid var(--line); border-radius:8px; padding:10px; }
.calendar-day.is-muted { opacity:.45; }
.calendar-day.is-today { border-color:rgba(201,162,74,.58); box-shadow:0 0 0 1px rgba(201,162,74,.14) inset; }
.calendar-date { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.calendar-date strong { font-size:18px; }
.calendar-date span { color:var(--muted); font-size:12px; }
.calendar-events { display:grid; gap:7px; align-content:start; }
.calendar-event { display:grid; gap:2px; padding:8px; border-radius:8px; border:1px solid var(--line); background:#151a20; }
.calendar-event strong { font-size:13px; }
.calendar-event span, .calendar-event small { font-size:11px; color:var(--muted); }
.calendar-event.state-working { border-color:rgba(57,179,107,.45); background:rgba(57,179,107,.10); }
.calendar-event.state-completed { border-color:rgba(88,166,255,.38); background:rgba(88,166,255,.09); }
.calendar-event.state-not_started { border-color:rgba(230,174,58,.38); background:rgba(230,174,58,.08); }
.calendar-event.state-missed, .calendar-event.state-no_show, .calendar-event.state-needs_checkout { border-color:rgba(224,82,82,.34); background:rgba(224,82,82,.08); }
.calendar-empty { color:#687482; font-size:12px; }
.schedule-detail-grid { align-items:start; }
@media (max-width:980px) {
  .schedule-calendar { grid-template-columns:1fr; }
  .calendar-weekday { display:none; }
  .calendar-day { min-height:auto; }
}
@media (max-width:760px) {
  .smart-clock-header { grid-template-columns:1fr; }
  .smart-clock-icon { width:48px; height:48px; }
  .timeline-item { display:grid; }
}
.calendar-event span + span { margin-top:1px; }
.calendar-event span:nth-of-type(n+2) { color:#c7d0da; }
.schedule-detail-grid table { min-width:820px; }
/* Admin dashboard operations and receivables */
.ops-week-panel, .pending-invoices-panel { margin-bottom:18px; }
.ops-week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.ops-day { min-height:156px; display:grid; align-content:start; gap:8px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#0f1318; }
.ops-day.is-active { border-color:rgba(201,162,74,.6); box-shadow:0 0 0 1px rgba(201,162,74,.12) inset; }
.ops-day-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.ops-day-head strong { font-size:15px; }
.ops-day-head span { color:var(--muted); font-size:12px; white-space:nowrap; }
.ops-venue-row { display:grid; gap:3px; padding:8px; border:1px solid rgba(43,51,61,.85); border-radius:8px; background:#151a20; }
.ops-venue-row strong { font-size:13px; }
.ops-venue-row span, .ops-venue-row small { color:var(--muted); font-size:11px; line-height:1.35; }
.invoice-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.invoice-card { display:grid; gap:7px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#0f1318; }
.invoice-card:hover { border-color:rgba(201,162,74,.5); }
.invoice-card span, .invoice-card small { color:var(--muted); font-size:12px; }
.invoice-card strong { font-size:22px; }
@media (max-width:1200px) { .ops-week-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .invoice-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .ops-week-grid, .invoice-strip { grid-template-columns:1fr; } .ops-day { min-height:auto; } }
/* Payroll operations */
.payroll-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.payroll-filter-panel, .payroll-summary-panel, .payroll-detail-panel, .payroll-payments-panel { margin-bottom:18px; }
.payroll-filters label { min-width:190px; }
.payroll-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.payroll-person-card { display:grid; gap:5px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#0f1318; }
.payroll-person-card span, .payroll-person-card small { color:var(--muted); font-size:12px; }
.payroll-person-card strong { font-size:16px; }
.payroll-person-card b { font-size:24px; color:#fff; }
.payroll-table td strong + small { display:block; color:var(--muted); margin-top:4px; font-size:12px; }
.payroll-pay-form { display:grid; grid-template-columns:92px 138px 110px 110px 140px auto; gap:7px; align-items:center; min-width:760px; }
.payroll-pay-form input { padding:8px 9px; min-height:36px; font-size:13px; }
.payroll-pay-form .button { min-height:36px; white-space:nowrap; }
@media (max-width:1200px) { .payroll-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .payroll-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .payroll-summary-grid, .payroll-metrics { grid-template-columns:1fr; } .payroll-pay-form { grid-template-columns:1fr; min-width:240px; } .payroll-table { min-width:980px; } }
/* Employee payroll view */
.my-payroll-panel { margin-bottom:18px; }
.payroll-entry-list { display:grid; gap:10px; }
.payroll-entry-card { display:grid; grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(110px,.7fr)) auto; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:8px; background:#0f1318; }
.payroll-entry-card div { display:grid; gap:4px; }
.payroll-entry-card span, .payroll-entry-card small { color:var(--muted); font-size:12px; }
.payroll-entry-card b { font-size:18px; color:#fff; }
.payroll-entry-card .status-dot { justify-self:end; }
@media (max-width:900px) { .payroll-entry-card { grid-template-columns:1fr 1fr; } .payroll-entry-card .status-dot { justify-self:start; } }
@media (max-width:560px) { .payroll-entry-card { grid-template-columns:1fr; } }
/* Remember device login */
.remember-device-row { align-items:flex-start; background:#0f1318; border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.remember-device-row span { display:grid; gap:3px; color:#dce3ea; }
.remember-device-row small { color:var(--muted); line-height:1.25; }

/* SMS settings test */
.sms-test-panel { margin-top:18px; }
.sms-config-list { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.sms-test-form { margin-top:10px; }
.sms-test-form label { min-width:260px; }
.pill.on { border-color:rgba(57,179,107,.55); color:#bdf4d1; background:rgba(57,179,107,.12); }
@media (max-width:760px) { .sms-test-form, .sms-test-form label, .sms-test-form .button { width:100%; } }

.sms-recent-panel { margin-top:18px; }
.sms-recent-table { min-width:760px; }

.weekly-close-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.button[disabled], .clock-button[disabled] { opacity:.5; cursor:not-allowed; }
@media (max-width:1100px) { .weekly-close-summary-grid { grid-template-columns:1fr; } }
.weekly-close-summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.weekly-lock-card { border-color:rgba(201,162,74,.28); }
.checklist-list { display:grid; gap:8px; }
.checkline { display:flex; align-items:center; gap:8px; margin:0; color:var(--muted); line-height:1.3; }
.checkline span { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:999px; border:1px solid var(--line); font-size:11px; font-weight:800; flex:0 0 auto; }
.checkline.is-ok span { color:#bdf4d1; border-color:rgba(57,179,107,.55); background:rgba(57,179,107,.12); }
.checkline.is-pending span { color:#ffe3a3; border-color:rgba(230,174,58,.42); background:rgba(230,174,58,.10); }
@media (max-width:1280px) { .weekly-close-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .weekly-close-summary-grid { grid-template-columns:1fr; } }