:root {
  --ink: #211a30;
  --ink-soft: #514966;
  --muted: #8b849d;
  --line: #e9e5f1;
  --paper: #fff;
  --canvas: #f5f3fa;
  --lavender: #efecf8;
  --purple: #7353e8;
  --purple-dark: #21123b;
  --purple-deep: #190d2d;
  --purple-soft: #ede9ff;
  --gold: #ffb51b;
  --gold-soft: #fff4d9;
  --green: #1d9b72;
  --green-soft: #e2f6ef;
  --red: #d75165;
  --red-soft: #ffebee;
  --blue: #4778d3;
  --blue-soft: #e8f0ff;
  --shadow: 0 14px 40px rgba(37, 24, 67, .07);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
}

.inhouse-own-card, .inhouse-manager-panel, .inhouse-history-panel, .inhouse-export-panel, .inhouse-salary-panel, .inhouse-monthly-panel { margin-top: 16px; }
.inhouse-own-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; }
.inhouse-own-body > div > b { display: block; font: 800 14px "Manrope",sans-serif; }
.inhouse-own-body > div > small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.attendance-own-times { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: var(--ink-soft); font-size: 10px; }
.inhouse-manager-panel td a, .inhouse-history-panel td a { display: inline-block; margin-left: 5px; color: var(--purple); font-size: 9px; font-weight: 700; }
.inhouse-export-controls { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inhouse-export-controls > .field-label { min-width: 180px; }
.inhouse-export-buttons { display: flex; gap: 8px; margin-left: auto; }
.inhouse-payroll-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inhouse-payroll-toolbar > .field-label { min-width: 165px; }
.inhouse-payroll-table { min-width: 1050px; }
.inhouse-payroll-money { width: 125px; min-width: 100px; height: 34px; padding: 0 8px; }
.inhouse-payroll-note { width: 155px; min-width: 130px; height: 34px; padding: 0 8px; }
.inhouse-payroll-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px; }
.inhouse-payroll-footer .field-label { width: min(420px, 100%); }
.payslip-note { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #f8f6fc; color: var(--ink-soft); font-size: 10px; }
.payslip-card { margin:0 0 16px; overflow:hidden; border:1px solid #e9e3f1; border-radius:16px; box-shadow:0 8px 24px rgba(38,20,62,.055); }
.payslip-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px 24px 18px; border-bottom:1px solid #efebf4; background:linear-gradient(120deg,#fff 0%,#fbf9fe 100%); }
.payslip-head > div { min-width:0; }
.payslip-head .eyebrow-dark { margin:0 0 8px; font-size:9px; }
.payslip-head h3 { margin:0 0 7px; color:#28183f; font:800 18px/1.35 "Manrope",sans-serif; letter-spacing:-.025em; }
.payslip-head p { margin:4px 0 0; color:#81788f; font-size:10px; line-height:1.5; }
.payslip-head .button { flex:none; }
.payslip-card .payslip-total { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:18px 22px; padding:16px 19px; border-radius:12px; background:#f4f0fa; }
.payslip-total span { color:#766c86; font-size:11px; font-weight:600; }
.payslip-total b { color:#352050; font:800 21px "Manrope",sans-serif; letter-spacing:-.03em; }
.payslip-card .table-wrap { margin:0 22px; overflow-x:auto; border:1px solid #eeeaf4; border-radius:10px; }
.payslip-table { width:100%; min-width:690px; border-collapse:collapse; }
.payslip-table th { padding:11px 13px; background:#faf9fc; color:#92899f; font-size:8px; font-weight:800; letter-spacing:.11em; text-align:left; }
.payslip-table td { padding:13px; border-top:1px solid #f0edf4; color:#393248; font-size:10px; vertical-align:middle; }
.payslip-table td b { color:#2d1c47; }
.payslip-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 24px 19px; color:#92899f; font-size:9px; }
.payslip-foot b { color:#16805e; font-size:9px; }
.payslip-toolbar { display:flex; align-items:center; gap:16px; padding:16px 20px; margin-bottom:14px; border:1px solid var(--line); }
.payslip-toolbar > div { display:flex; flex-direction:column; gap:4px; flex:1; }
.payslip-toolbar > div small,.freelancer-transfer-bar small { color:var(--ink-soft); font-size:11px; }
.payslip-toolbar .field-label { min-width:150px; }
.freelancer-transfer-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:14px 0; padding:16px 18px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(110deg,#fff 0%,#f6f2ff 100%); }
.freelancer-transfer-bar > div { display:flex; flex-direction:column; gap:5px; }
.freelancer-payslip { overflow:hidden; border-top:3px solid var(--gold); }
.freelancer-payslip .payslip-total { background:linear-gradient(120deg,#24133f,#41246a); color:white; border-radius:12px; padding:16px 20px; }
.freelancer-payslip .payslip-total span { color:#e1d8f1; }
.freelancer-payslip .payslip-total b { color:#fff; }
.freelancer-payslip .payslip-head h3 { font-size:17px; }
.freelancer-payslip .payslip-table th { white-space:nowrap; }
.advance-documents-panel { margin-top:16px; }
.advance-documents-panel .table-wrap { margin-bottom:0; }
.advance-return-panel { margin-top:14px; padding:16px; border:1px solid #e9e2f2; border-radius:12px; background:linear-gradient(130deg,#fff 0%,#fbf9ff 100%); }
.advance-return-copy { display:flex; align-items:flex-start; gap:12px; }
.advance-return-mark { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:10px; color:#6e4ee5; background:#eee9ff; font-size:18px; }
.advance-return-copy b { color:#322147; font:800 12px "Manrope",sans-serif; }
.advance-return-copy p { max-width:550px; margin:5px 0 0; color:#807790; font-size:10px; line-height:1.55; }
.advance-upload-controls { display:flex; align-items:center; gap:9px; margin:14px 0 0 46px; }
.advance-upload-controls input { min-width:0; flex:1; color:#635a73; font:10px "DM Sans",sans-serif; }
.advance-documents-list { margin-top:13px; padding:14px 16px; border:1px solid #eeeaf4; border-radius:12px; background:#fff; }
.advance-documents-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; color:#35234d; font-size:11px; }
.advance-doc-card { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid #f0edf4; }
.advance-doc-icon { display:grid; place-items:center; flex:none; width:37px; height:37px; border-radius:10px; background:#f3effa; color:#6544d7; font:800 9px "Manrope",sans-serif; }
.advance-doc-card > div { display:grid; gap:4px; min-width:0; flex:1; }
.advance-doc-card b { overflow:hidden; color:#3d334c; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.advance-doc-card small { color:#938a9f; font-size:8px; }
.advance-doc-card .button { flex:none; }
@media print { .sidebar,.topbar,.payslip-toolbar,.no-print,.freelancer-transfer-bar { display:none!important; } .app-shell { display:block!important; } .main-area { width:100%!important; } .page-content { width:100%!important; max-width:none!important; padding:0!important; background:white!important; } .payslip-card { break-inside:avoid; box-shadow:none!important; border:1px solid #ddd; margin-bottom:18px; } }

@media (max-width: 700px) {
  .payslip-toolbar,.freelancer-transfer-bar { align-items:stretch; flex-direction:column; }
  .payslip-head { flex-direction:column; padding:17px; }
  .payslip-head .button { align-self:flex-start; }
  .payslip-card .payslip-total { margin:14px 14px; padding:14px; }
  .payslip-total b { font-size:18px; }
  .payslip-card .table-wrap { margin:0 14px; }
  .payslip-foot { align-items:flex-start; flex-direction:column; padding:14px 17px 17px; }
  .advance-upload-controls { align-items:stretch; flex-direction:column; margin-left:0; }
  .advance-upload-controls .button { width:100%; }
  .inhouse-own-body { align-items: stretch; flex-direction: column; }
  .inhouse-own-body > .button { width: 100%; }
  .inhouse-export-controls > .field-label { min-width: calc(50% - 6px); flex: 1; }
  .inhouse-export-buttons { width: 100%; margin-left: 0; }
  .inhouse-export-buttons .button { flex: 1; }
  .inhouse-payroll-footer { align-items: stretch; flex-direction: column; }
  .inhouse-payroll-footer .button { width: 100%; }
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(430px, .95fr); background: white; }
.auth-art { min-height: 100vh; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 5.4vw 34px; color: white; background: radial-gradient(circle at 75% 25%, rgba(255,255,255,.1), transparent 31%), linear-gradient(145deg, var(--purple-deep), var(--purple-dark) 58%, var(--purple-dark)); }
.auth-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.15) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.15) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(145deg, black, transparent 78%); }
.auth-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.auth-orb-one { width: 500px; height: 500px; right: -170px; top: 15%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 85px rgba(255,255,255,.02); }
.auth-orb-two { width: 220px; height: 220px; right: 16%; bottom: 12%; border-color: rgba(255,181,27,.2); }
.auth-brand-wrap { z-index: 1; width: 280px; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
.auth-logo { display: block; width: 100%; height: auto; }
.auth-art-copy { z-index: 1; max-width: 600px; margin-bottom: 12vh; }
.eyebrow, .auth-kicker, .topbar-overline { font-size: 10px; letter-spacing: .18em; font-weight: 700; }
.eyebrow.light { color: #c2b4fb; }
.auth-art-copy h1 { font: 800 clamp(44px, 5.5vw, 74px)/1.02 "Manrope", sans-serif; letter-spacing: -.055em; margin: 22px 0 18px; }
.auth-art-copy h1 em { color: var(--gold); font-style: normal; }
.auth-art-copy p { color: #c4bbd3; font-size: 15px; max-width: 360px; line-height: 1.7; }
.auth-art-foot { z-index: 1; display: flex; align-items: center; gap: 10px; color: #b6adc5; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #54d4a3; box-shadow: 0 0 0 4px rgba(84,212,163,.12); }
.auth-panel { display: grid; place-items: center; padding: 48px; }
.auth-form-wrap { width: min(100%, 420px); }
.auth-kicker { display: flex; align-items: center; gap: 12px; color: var(--purple); }
.kicker-line { width: 24px; height: 2px; background: var(--gold); }
.auth-form-wrap h2 { font: 800 34px/1.15 "Manrope", sans-serif; letter-spacing: -.04em; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.auth-form-wrap > .muted { margin: 0 0 28px; font-size: 14px; }
.login-form { display: grid; gap: 17px; }
.login-form label, .field-label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; color: #554c67; }
.login-form input, .field-input, .field-select, .field-textarea { width: 100%; outline: none; border: 1px solid #e3deed; background: white; border-radius: 10px; height: 46px; padding: 0 14px; color: var(--ink); transition: border .18s, box-shadow .18s; }
.login-form input:focus, .field-input:focus, .field-select:focus, .field-textarea:focus { border-color: #a294ef; box-shadow: 0 0 0 3px rgba(115,83,232,.1); }
.button { border: 0; border-radius: 9px; height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 12px; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--purple); color: white; box-shadow: 0 5px 14px rgba(115,83,232,.2); }
.button-primary:hover { background: #6041d1; box-shadow: 0 8px 18px rgba(115,83,232,.25); }
.button-wide { width: 100%; height: 48px; margin-top: 4px; font-size: 13px; }
.button-light { background: #fff; border: 1px solid var(--line); color: #514966; }
.button-light:hover { border-color: #c8bdf2; background: #fcfbff; }
.button-dark { background: var(--purple-dark); color: #fff; }
.button-gold { background: var(--gold); color: #261b33; }
.button-outline { border: 1px solid #ddd6ec; background: white; color: var(--ink-soft); }
.button-danger { background: var(--red-soft); color: var(--red); }
.button-small { height: 32px; padding: 0 10px; font-size: 11px; }
.form-error { color: #b83148; background: var(--red-soft); border-radius: 8px; font-size: 12px; padding: 10px 12px; }
.auth-foot { margin-top: 38px; color: #aaa3b5; font-size: 10px; }
.auth-mobile-brand { display: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0,1fr); }
.sidebar { height: 100vh; min-height: 650px; position: sticky; top: 0; display: flex; flex-direction: column; background: var(--purple-dark); color: white; padding: 18px 13px 13px; z-index: 20; }
.sidebar-brand { background: transparent; width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: flex-start; border-radius: 0; padding: 0; margin: 0 0 16px; }
.sidebar-brand img { display: block; width: 100%; max-width: 100%; max-height: 44px; object-fit: contain; object-position: left center; }
.workspace-pill { display: flex; align-items: center; gap: 10px; padding: 11px 10px; margin-bottom: 13px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); }
.workspace-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--gold); background: rgba(255,181,27,.13); font-size: 16px; }
.workspace-pill b { display: block; font-size: 9px; letter-spacing: .12em; }
.workspace-pill small { display: block; margin-top: 3px; color: #a99dbb; font-size: 9px; }
.pill-chevron { margin-left: auto; color: #a99dbb; }
.nav-scroll { overflow-y: auto; flex: 1; padding: 1px 1px 12px; scrollbar-color: #4b386c transparent; scrollbar-width: thin; }
.nav-group { margin-top: 18px; }
.nav-group-label { padding: 0 11px; margin: 0 0 7px; color: #9384ac; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: #c6bdd6; text-align: left; min-height: 40px; padding: 0 11px; border-radius: 8px; margin: 2px 0; font-size: 12px; font-weight: 600; }
.nav-link:hover { background: rgba(255,255,255,.06); color: white; }
.nav-link.active { background: #39255e; color: white; box-shadow: inset 2px 0 0 var(--gold); }
.nav-icon { display: grid; place-items: center; width: 17px; color: #a79abf; font-size: 15px; }
.nav-link.active .nav-icon { color: var(--gold); }
.nav-count { margin-left: auto; background: var(--gold); color: #281a3a; font-size: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; }
.sidebar-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 4px 0; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 4px 9px; }
.avatar { display: grid; place-items: center; flex: none; border-radius: 50%; width: 34px; height: 34px; font: 800 10px "Manrope", sans-serif; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-gold { background: var(--gold); color: #27183b; }
.avatar-purple { color: var(--purple); background: #e9e4ff; }
.avatar-mint { color: #1b8160; background: #dff5ed; }
.avatar-rose { color: #b84761; background: #ffe7ec; }
.user-chip-text { min-width: 0; flex: 1; }
.user-chip-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px "Manrope", sans-serif; }
.user-chip-text small { display: block; color: #a79db8; margin-top: 3px; font-size: 9px; }
.icon-button { position: relative; border: 1px solid var(--line); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: white; color: #625a75; }
.icon-button:hover { border-color: #c7bdf0; color: var(--purple); }
.icon-button.quiet { border: 0; background: transparent; color: #b2a7c6; width: 29px; height: 29px; }
.sidebar-version { display: flex; align-items: center; gap: 8px; padding: 8px 5px 2px; color: #9084a5; font-size: 9px; }
.sidebar-version .live-dot { width: 6px; height: 6px; }
.main-area { min-width: 0; }
.topbar { height: 82px; background: rgba(255,255,255,.97); border-bottom: 1px solid #ebe7f2; display: flex; align-items: center; gap: 22px; padding: 0 34px; position: sticky; top: 0; z-index: 12; }
.topbar-title { min-width: 180px; }
.topbar-overline { color: #a49cb1; font-size: 8px; }
.topbar-title h1 { font: 800 19px "Manrope", sans-serif; letter-spacing: -.035em; margin: 4px 0 0; }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.global-search { width: clamp(190px, 24vw, 345px); height: 38px; display: flex; align-items: center; gap: 8px; background: #f6f4fa; border: 1px solid #eeeaf5; border-radius: 9px; padding: 0 10px; color: #8b83a0; }
.global-search span { font-size: 18px; line-height: 0; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.global-search input::placeholder { color: #a7a0b5; }
.global-search kbd { color: #a59db1; border: 1px solid #e6e1ee; background: white; border-radius: 4px; padding: 2px 4px; font: 9px "DM Sans",sans-serif; }
.sync-button { height: 37px; font-size: 10px; }
.sync-icon { font-size: 16px; color: var(--purple); }
.notification-button { font-size: 16px; }
.notification-button i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); top: 8px; right: 8px; border: 1px solid white; }
.menu-button { display: none; }
.page-content { max-width: 1640px; margin: 0 auto; padding: 26px 34px 46px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-head h2 { font: 800 24px/1.2 "Manrope", sans-serif; letter-spacing: -.045em; margin: 0 0 6px; }
.page-head p { color: var(--muted); font-size: 12px; margin: 0; }
.eyebrow-dark { color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .15em; margin-bottom: 9px; }
.page-head-actions { display: flex; gap: 8px; align-items: center; }
.event-export-tools { display: flex; align-items: end; gap: 7px; flex-wrap: wrap; }
.event-export-tools label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.event-export-tools input { height: 34px; min-width: 120px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }
.payroll-export-actions { display: flex; gap: 7px; align-items: center; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin: 0 0 20px; }
.metric-card { position: relative; overflow: hidden; border: 1px solid #ebe7f2; background: white; border-radius: 12px; min-height: 105px; padding: 17px 17px 14px; box-shadow: 0 3px 12px rgba(35,18,59,.025); }
.metric-card:after { content: ""; position: absolute; right: -18px; bottom: -30px; width: 95px; height: 95px; border-radius: 50%; background: var(--metric-glow, #f1edff); opacity: .85; }
.metric-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #8e879c; font-size: 10px; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--metric-bg, var(--purple-soft)); color: var(--metric-color, var(--purple)); font-size: 14px; }
.metric-value { position: relative; z-index: 1; font: 800 26px "Manrope", sans-serif; letter-spacing: -.05em; margin-top: 9px; }
.metric-caption { position: relative; z-index: 1; color: #a19aaf; font-size: 9px; margin-top: 2px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(275px,.9fr); gap: 17px; align-items: start; }
.panel { border: 1px solid #ebe7f2; background: white; border-radius: 12px; box-shadow: 0 3px 12px rgba(35,18,59,.025); }
.panel-head { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid #f0edf5; }
.panel-head h3 { font: 800 13px "Manrope",sans-serif; margin: 0; letter-spacing: -.02em; }
.panel-head p { margin: 4px 0 0; color: #a099ae; font-size: 10px; }
.panel-body { padding: 16px 18px; }
.text-link { color: var(--purple); font-weight: 700; font-size: 10px; background: none; border: 0; padding: 4px; }
.text-link:hover { text-decoration: underline; }
.event-list { display: grid; }
.event-list-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #f1eef6; cursor: pointer; transition: background .15s; }
.event-list-row:last-child { border-bottom: 0; }
.event-list-row:hover { background: #fcfbff; }
.date-tile { width: 55px; border-right: 1px solid #ebe7f2; padding-right: 12px; text-align: center; }
.date-tile b { display: block; font: 800 21px "Manrope",sans-serif; line-height: 1.05; }
.date-tile span { display: block; margin-top: 4px; color: #a199af; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.event-row-title { font: 700 12px "Manrope",sans-serif; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #9790a5; font-size: 9px; }
.event-row-sub .dotsep { width: 3px; height: 3px; border-radius: 50%; background: #bbb4c8; }
.event-row-trailing { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }
.mini-avatars { display: flex; align-items: center; }
.mini-avatar { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -5px; border: 2px solid white; border-radius: 50%; color: #5a4a91; background: #ebe7fa; font: 800 8px "Manrope",sans-serif; }
.mini-avatar:first-child { margin-left: 0; }
.mini-avatar.gold { color: #735117; background: #ffefc5; }
.mini-avatar.more { background: #f4f1f9; color: #8c829d; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; white-space: nowrap; padding: 5px 8px; font-size: 9px; line-height: 1; font-weight: 700; }
.badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-purple { background: var(--purple-soft); color: #6a50ca; }
.badge-gold { background: var(--gold-soft); color: #9b6b00; }
.badge-green { background: var(--green-soft); color: #21815f; }
.badge-red { background: var(--red-soft); color: #bd435b; }
.badge-blue { background: var(--blue-soft); color: #426cb8; }
.badge-gray { background: #f1eff5; color: #807991; }
.focus-list { display: grid; gap: 10px; }
.focus-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 9px; background: #faf9fc; border: 1px solid #f1eef6; }
.focus-mark { width: 7px; height: 30px; flex: none; border-radius: 10px; background: var(--purple); }
.focus-mark.gold { background: var(--gold); }
.focus-mark.green { background: #49b990; }
.focus-mark.red { background: #e87586; }
.focus-text { min-width: 0; flex: 1; }
.focus-text b { display: block; font: 700 10px "Manrope",sans-serif; line-height: 1.4; }
.focus-text small { display: block; color: #9c95aa; font-size: 9px; margin-top: 4px; line-height: 1.4; }
.focus-arrow { color: #aea5bc; font-size: 15px; }
.progress-summary { margin-top: 15px; padding: 13px; border-radius: 10px; background: linear-gradient(130deg,#f2efff,#fbfaff); }
.progress-summary-top { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #7e7591; }
.progress-summary-top b { color: var(--purple); }
.progress-track { height: 5px; background: #ded8f2; border-radius: 10px; margin: 10px 0 7px; overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#987ff4,#6f4fe2); }
.progress-caption { color: #a59db2; font-size: 8px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(195px,1fr)); gap: 9px; }
.quick-action { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border: 1px solid #eeeaf4; background: #fff; border-radius: 9px; transition: border .16s, transform .16s, background .16s; }
.quick-action:hover { border-color: #d3c9f4; background: #fcfbff; transform: translateY(-1px); }
.quick-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--purple); background: var(--purple-soft); font-size: 14px; }
.quick-action > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-action b { display: block; color: #4e455f; font: 700 10px "Manrope",sans-serif; }
.quick-action small { display: block; color: #a19aae; font-size: 8px; margin-top: 4px; }
.quick-arrow { color: #aaa2b6; font-size: 11px; }
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; gap: 9px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0edf5; }
.table-search { height: 36px; display: flex; align-items: center; gap: 8px; border: 1px solid #e9e5f0; border-radius: 8px; padding: 0 11px; background: white; min-width: 210px; color: #a49db1; }
.table-search input { border: 0; outline: 0; min-width: 0; flex: 1; font-size: 10px; color: var(--ink); }
.filter-select { height: 36px; border: 1px solid #e9e5f0; border-radius: 8px; padding: 0 10px; background: white; color: #6e667f; font-size: 10px; outline: 0; }
.table-count { margin-left: auto; color: #9790a4; font-size: 10px; }
.payroll-toolbar .field-label { display: grid; gap: 5px; color: #716881; font-size: 8px; font-weight: 700; }
.payroll-toolbar .filter-select { min-width: 145px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.data-table th { text-align: left; color: #a29bae; background: #fbfaff; font-size: 8px; letter-spacing: .12em; font-weight: 800; padding: 12px 14px; border-bottom: 1px solid #eeeaf5; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #f0edf5; font-size: 10px; color: #554d67; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfbff; }
.table-event b { display: block; color: var(--ink); font: 700 11px "Manrope",sans-serif; }
.table-event small { display: block; color: #a199af; margin-top: 4px; font-size: 9px; }
.table-code { font: 700 9px ui-monospace,monospace; color: #7767aa; white-space: nowrap; }
.temporary-code-note { display: block; margin: 4px 0 0; color: #9c7300; font-size: 8px; white-space: nowrap; }
.table-date b { display: block; color: #50475f; font-size: 10px; white-space: nowrap; }
.table-date small { display: block; color: #a19aad; font-size: 9px; margin-top: 4px; }
.table-person { display: flex; align-items: center; gap: 7px; min-width: 120px; }
.table-person .avatar { width: 24px; height: 24px; font-size: 8px; }
.table-person span { font-size: 9px; }
.table-statuses { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.detail-button { border: 1px solid #e8e3f0; background: white; border-radius: 7px; padding: 7px 9px; color: #71687f; font-weight: 700; font-size: 9px; }
.detail-button:hover { color: var(--purple); border-color: #cfc5f1; }
.empty-state { padding: 34px 20px; text-align: center; color: #928aa1; font-size: 12px; }
.empty-state .empty-icon { font-size: 24px; color: #a395e4; margin-bottom: 10px; }
.configure-tabs-panel { margin-bottom: 17px; padding: 0 16px; }
.configure-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 13px; }
.configure-section-head h2 { font: 800 19px "Manrope",sans-serif; margin: 0 0 4px; }
.configure-section-head p { color: var(--muted); font-size: 11px; margin: 0; }
.configure-tabs { display: flex; gap: 6px; overflow-x: auto; }
.configure-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 15px 14px 13px; color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; }
.configure-tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.configure-layout { display: grid; grid-template-columns: minmax(310px, .95fr) minmax(390px, 1.05fr); gap: 16px; align-items: start; }
.configure-color-panel { grid-row: span 2; }
.configure-color-form { padding: 18px; display: grid; gap: 18px; }
.configure-color-grid { display: grid; gap: 12px; }
.configure-color-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.configure-color-row span { display: grid; gap: 4px; }
.configure-color-row b { font-size: 12px; }
.configure-color-row small { color: var(--muted); font: 11px ui-monospace,monospace; }
.configure-color-row input[type=color] { width: 48px; height: 38px; padding: 3px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.configure-assets { display: grid; gap: 16px; }
.configure-asset-card { overflow: hidden; }
.configure-asset-body { display: flex; gap: 16px; align-items: center; padding: 16px; }
.configure-asset-preview { display: grid; place-items: center; width: 124px; height: 76px; flex: 0 0 auto; border-radius: 9px; background: var(--purple-dark); overflow: hidden; }
.configure-asset-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.configure-asset-preview.favicon-preview { width: 76px; height: 76px; background: var(--canvas); border: 1px solid var(--line); }
.configure-asset-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.configure-asset-controls small { width: 100%; color: var(--muted); font-size: 10px; }
.configure-storage-note { grid-column: 1 / -1; margin: 0; }
.role-select-panel { padding: 16px; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 18px; align-items: end; margin-bottom: 14px; }
.role-select-panel p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0 0 3px; }
.role-permission-panel { margin-bottom: 13px; }
.role-permission-list { padding: 0 17px 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.role-permission-row { min-height: 61px; display: flex; gap: 11px; align-items: flex-start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.role-permission-row.locked { background: var(--canvas); cursor: default; }
.role-permission-row > span:last-child { display: grid; gap: 4px; }
.role-permission-row b { color: var(--ink-soft); font: 700 10px ui-monospace,monospace; }
.role-permission-row small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.role-checkbox { position: relative; width: 17px; height: 17px; flex: 0 0 auto; }
.role-checkbox input { position: absolute; opacity: 0; width: 17px; height: 17px; margin: 0; }
.role-checkbox i { display: block; width: 17px; height: 17px; border: 1px solid #d7d1e2; background: white; border-radius: 5px; }
.role-checkbox input:checked + i { border-color: var(--purple); background: var(--purple); }
.role-checkbox input:checked + i::after { content: "✓"; color: white; display: block; text-align: center; font: 800 12px/16px sans-serif; }
.role-checkbox input:focus-visible + i { outline: 3px solid rgba(115,83,232,.22); }
.configure-role-actions { display: flex; justify-content: flex-end; gap: 9px; margin: 15px 0; }
.empty-state b { display: block; color: #625a73; margin-bottom: 5px; }
.kanban-scroll { overflow-x: auto; padding-bottom: 8px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(205px, 1fr)); gap: 11px; min-width: 1080px; align-items: start; }
.kanban-column { min-height: 290px; border: 1px solid #e9e5f0; border-radius: 11px; background: #f4f2f8; padding: 9px; transition: background .18s, border .18s; }
.kanban-column.drag-over { background: #ede9ff; border-color: #a899ee; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 10px; }
.kanban-head b { color: #5e566e; font: 800 10px "Manrope",sans-serif; }
.kanban-count { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: white; color: #938ba1; font-size: 9px; font-weight: 800; }
.kanban-card { border: 1px solid #ebe7f1; background: white; border-radius: 9px; padding: 12px; margin-bottom: 8px; box-shadow: 0 2px 6px rgba(43,29,73,.03); cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.kanban-card-code { font: 700 8px ui-monospace,monospace; color: #8f80c3; }
.kanban-card h4 { margin: 7px 0 6px; font: 700 11px/1.4 "Manrope",sans-serif; }
.kanban-card p { margin: 0; color: #9c95a9; font-size: 9px; line-height: 1.5; }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0edf5; margin-top: 11px; padding-top: 9px; }
.due { color: #938ba1; font-size: 8px; }
.due.overdue { color: var(--red); }
.drag-note { color: #aaa3b4; font-size: 9px; margin-top: 11px; }
.status-board { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: minmax(175px,1.5fr) minmax(170px,1fr) minmax(150px,1fr) auto; gap: 14px; align-items: center; padding: 14px 15px; border-bottom: 1px solid #f0edf5; }
.status-row:last-child { border-bottom: 0; }
.status-row-title b { display: block; font: 700 11px "Manrope",sans-serif; }
.status-row-title small { display: block; margin-top: 4px; color: #9b94a9; font-size: 9px; }
.status-track-mini { display: flex; align-items: center; gap: 4px; }
.track-step { flex: 1; min-width: 10px; height: 4px; border-radius: 10px; background: #eae6f0; }
.track-step.done { background: #8b75e8; }
.track-step.current { background: var(--gold); }
.status-track-label { color: #968ea3; font-size: 9px; }
.calendar-code-panel { margin-bottom: 13px; }
.calendar-sync-status { display: grid; gap: 4px; margin: -10px 0 13px; padding: 10px 13px; border: 1px solid #e3ddf0; border-radius: 10px; background: #fff; color: #554b67; font-size: 11px; }
.calendar-sync-status small { color: var(--muted); font-size: 10px; }
.calendar-sync-status.is-muted { background: #faf9fc; color: var(--muted); }
.calendar-sync-status.is-error { border-color: #f0caca; background: #fff8f8; color: #a33a3a; }
.calendar-sync-status.is-error small { color: #9f6666; }
.queue-panel-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.month-filter { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.month-filter .filter-select { min-width: 150px; height: 35px; }
.calendar-code-list { padding: 0 15px; }
.calendar-code-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.95fr); align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid #f0edf5; }
.calendar-code-meta b { display: block; font: 700 11px "Manrope",sans-serif; }
.calendar-code-meta small { display: block; color: #9891a6; margin-top: 5px; font-size: 9px; }
.calendar-code-suggestion { display: inline-block; margin-top: 8px; padding: 4px 7px; color: #856719; background: #fff7df; border-radius: 5px; font-size: 8px; }
.calendar-code-form { display: grid; grid-template-columns: minmax(150px,1fr) auto; gap: 10px; align-items: end; }
.calendar-code-form .field-label { display: grid; gap: 5px; }
.calendar-code-form .field-input { height: 36px; font-size: 10px; }
.calendar-code-form > button { white-space: nowrap; }
.calendar-code-actions { display: grid; gap: 10px; }
.calendar-code-actions .calendar-code-form { grid-template-columns: minmax(150px,1fr) auto; }
.calendar-promotion-tools { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.calendar-promotion-tools .field-label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }
.calendar-promotion-tools .field-input, .duration-edit-form .field-input { height: 36px; min-width: 145px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.duration-edit-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fcfbfe; }
.duration-edit-form .field-label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.duration-edit-form > small { flex-basis: 100%; color: var(--muted); font-size: 9px; }
.calendar-code-empty { padding: 22px; }
.calendar-code-empty b { display: block; margin-bottom: 4px; }
.role-note { background: #fffaf0; border: 1px solid #f6eac8; border-radius: 9px; padding: 12px 14px; color: #8d7132; font-size: 10px; line-height: 1.55; margin-bottom: 13px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.8fr); gap: 15px; }
.rate-account-form { display: grid; grid-template-columns: minmax(170px,1.2fr) minmax(145px,1fr) minmax(145px,.9fr) auto; align-items: end; gap: 10px; padding: 14px 0 18px; border-bottom: 1px solid #f0edf5; }
.rate-account-form > .field-label { display: grid; gap: 6px; }
.rate-account-form .field-select, .rate-account-form .field-input { height: 37px; font-size: 10px; }
.rate-account-form .rate-input-wrap { height: 37px; }
.rate-account-list { padding-top: 14px; }
.rate-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.rate-list-head b { font: 700 10px "Manrope",sans-serif; }
.rate-list-head small { color: #9b94a9; font-size: 8px; }
.rate-account-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0edf5; }
.rate-account-row:last-child { border-bottom: 0; }
.rate-account-row b { display: block; font: 700 10px "Manrope",sans-serif; }
.rate-account-row small { display: block; margin-top: 4px; color: #9b94a9; font-size: 8px; }
.rate-account-row strong { font-size: 10px; color: #51456a; white-space: nowrap; }
.account-create-panel { margin-bottom: 13px; }
.account-create-form { display: grid; grid-template-columns: minmax(160px,1fr) minmax(190px,1.15fr) minmax(160px,.9fr) minmax(180px,1fr) auto; gap: 11px; align-items: end; }
.account-create-form .field-label { display: grid; gap: 5px; }
.account-create-form .field-input, .account-create-form .field-select { height: 38px; font-size: 10px; }
.account-create-form .field-label small { font-size: 8px; color: #9b94a9; }
.account-list-panel { margin-top: 13px; }
.profile-layout { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(360px,1.1fr); gap: 15px; align-items: start; }
.profile-form { display: grid; gap: 13px; padding: 16px; }
.profile-form .field-label { display: grid; gap: 6px; }
.profile-form .field-input { min-height: 38px; font-size: 11px; }
.profile-form .field-input[readonly] { background: #f7f5fa; color: #898198; }
.profile-form .field-label small { color: #9b94a9; font-size: 9px; }
.profile-avatar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #f0edf5; }
.profile-avatar-row > small { color: #9b94a9; font-size: 9px; }
.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; background: #eee9ff; color: var(--purple); font: 800 18px "Manrope",sans-serif; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-file-button { position: relative; overflow: hidden; }
.profile-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-documents { display: grid; gap: 10px; padding: 15px; }
.profile-document-card { display: grid; grid-template-columns: 34px minmax(120px,1fr) auto auto auto; gap: 8px; align-items: center; padding: 12px; border: 1px solid #eeeaf5; border-radius: 9px; background: #fcfbfe; }
.profile-document-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #fff5d7; color: #ad8010; font-size: 16px; }
.profile-document-info b { display: block; font: 700 10px "Manrope",sans-serif; }
.profile-document-info small, .profile-document-hint { display: block; margin-top: 4px; color: #9b94a9; font-size: 8px; }
.profile-privacy-note { display: grid; gap: 4px; margin: 0 15px 15px; padding: 11px 12px; border-radius: 8px; background: #f8f6fc; color: #736987; font-size: 9px; line-height: 1.5; }
.profile-privacy-note b { color: #4e416b; }
.staff-directory-panel { margin-bottom: 13px; }
.staff-directory-table { min-width: 720px; }
.staff-person { min-width: 190px; }
.staff-person .staff-photo { width: 34px; height: 34px; object-fit: cover; }
.staff-person > span:last-child { display: grid; gap: 3px; }
.staff-person b { font: 700 10px "Manrope",sans-serif; }
.staff-person small, .staff-contact small { color: #9991a7; font-size: 8px; }
.staff-contact { display: grid; gap: 4px; }
.staff-contact b { font-size: 9px; font-weight: 500; }
.staff-doc-status { display: flex; flex-wrap: wrap; gap: 5px; }
.staff-doc-status .badge { white-space: nowrap; }
.account-role-cell { display: flex; gap: 7px; min-width: 220px; }
.account-role-cell .field-select { min-width: 125px; height: 32px; font-size: 9px; }
.account-role-cell .button { white-space: nowrap; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 265px; }
.account-actions .button { white-space: nowrap; }
.rate-table-row { display: grid; grid-template-columns: minmax(120px,1fr) minmax(150px,1.1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #f0edf5; padding: 14px 0; }
.rate-table-row:last-child { border-bottom: 0; }
.rate-table-row b { font: 700 11px "Manrope",sans-serif; }
.rate-table-row small { display: block; color: #9b94a9; font-size: 9px; margin-top: 4px; }
.rate-input-wrap { display: flex; align-items: center; height: 36px; border: 1px solid #e9e5f0; border-radius: 8px; padding: 0 9px; gap: 6px; color: #9b94a9; font-size: 9px; }
.rate-input-wrap input { border: 0; outline: 0; min-width: 0; width: 100%; text-align: right; color: #4a405c; font-size: 11px; font-weight: 700; }
.rate-note { color: #9991a7; line-height: 1.6; font-size: 10px; }
.rate-info { padding: 15px; border: 1px solid #eee9f5; background: #faf9fd; border-radius: 9px; margin-top: 12px; }
.rate-info b { display: block; font: 700 10px "Manrope",sans-serif; margin-bottom: 5px; }
.kpi-layout { display: grid; grid-template-columns: minmax(270px,.75fr) minmax(0,1.4fr); gap: 16px; align-items: start; }
.kpi-form { padding: 18px; }
.kpi-form h3 { margin: 0 0 5px; font: 800 14px "Manrope",sans-serif; }
.kpi-form > p { margin: 0 0 18px; font-size: 10px; color: #9b94a9; line-height: 1.5; }
.form-stack { display: grid; gap: 12px; }
.form-stack label { display: grid; gap: 6px; font-size: 10px; font-weight: 700; color: #655c76; }
.field-select { height: 38px; font-size: 10px; }
.field-textarea { height: auto; min-height: 78px; padding: 10px 12px; resize: vertical; font-size: 10px; }
.kpi-score { display: flex; gap: 7px; }
.score-button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e9e5f0; color: #aba4b6; background: white; font-size: 14px; }
.score-button.selected { color: #9b6b00; border-color: #f4dc9a; background: #fff5db; }
.review-list { display: grid; }
.review-account-filter { min-width: min(260px, 42vw); display: grid; gap: 4px; font-size: 9px; font-weight: 700; color: #716980; }
.review-account-filter .field-select { min-width: 0; }
.review-row { padding: 14px 16px; border-bottom: 1px solid #f0edf5; display: flex; align-items: flex-start; gap: 12px; }
.review-row:last-child { border-bottom: 0; }
.review-score { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff3d4; color: #946900; font: 800 14px "Manrope",sans-serif; flex: none; }
.review-content { min-width: 0; flex: 1; }
.review-content b { font: 700 10px "Manrope",sans-serif; }
.review-content small { display: block; color: #9f98ad; font-size: 9px; margin-top: 4px; }
.review-content p { color: #6f667f; font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
.performance-instruction { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 15px 17px; }
.performance-instruction > div:nth-child(2) { min-width: 0; flex: 1; }
.performance-instruction b { font: 700 11px "Manrope",sans-serif; }
.performance-instruction p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.performance-hint-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; flex: none; background: var(--purple-soft); color: var(--purple); font-size: 15px; }
.performance-panel { overflow: hidden; margin-bottom: 16px; }
.performance-panel > .panel-head { min-height: 62px; }
.performance-summary { display: flex; align-items: center; gap: 15px; padding: 18px; border-bottom: 1px solid #f0edf5; }
.performance-summary > div:last-child { min-width: 0; }
.performance-summary > div:last-child > b { font: 800 13px "Manrope",sans-serif; }
.performance-summary p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.performance-grade { display: grid; place-items: center; align-content: center; gap: 2px; width: 72px; height: 72px; flex: none; border-radius: 16px; }
.performance-grade b { font: 800 20px "Manrope",sans-serif; }
.performance-grade small { font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.performance-green { color: #167958; background: var(--green-soft); }
.performance-red { color: #b33c50; background: var(--red-soft); }
.performance-grade-small { width: 48px; height: 42px; border-radius: 10px; }
.performance-grade-small b { font-size: 13px; }
.performance-focus { padding: 16px 18px; background: #fbfaff; border-bottom: 1px solid #f0edf5; }
.performance-focus h4, .completed-performance-list > h4 { margin: 0 0 10px; color: #817992; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.performance-focus-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #efebf5; color: #635a73; font-size: 10px; }
.performance-focus-positive { margin: 0; color: #228265; font-size: 10px; }
.performance-text-green { color: var(--green); }
.performance-text-red { color: var(--red); }
.performance-history { display: grid; }
.performance-review { padding: 14px; border: 1px solid #eeeaf4; border-radius: 10px; background: white; }
.performance-history .performance-review { border: 0; border-bottom: 1px solid #f0edf5; border-radius: 0; }
.performance-history .performance-review:last-child { border-bottom: 0; }
.performance-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.performance-review-head > div { min-width: 0; flex: 1; }
.performance-review-head > div > b { display: block; color: #443b55; font: 700 11px "Manrope",sans-serif; }
.performance-review-head > div > b small { display: inline-block; margin-left: 5px; color: #9890a5; font: 500 9px "DM Sans",sans-serif; }
.performance-review-head > div > small { display: block; margin-top: 5px; color: #9c95a9; font-size: 9px; }
.performance-criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.performance-criterion { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; border: 1px solid #f0edf5; border-radius: 7px; color: #776f87; font-size: 9px; }
.performance-criterion b { color: #51476a; white-space: nowrap; }
.performance-note { margin: 10px 0 0; padding: 10px 11px; border-radius: 8px; background: #faf9fd; color: #777087; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.performance-note b { color: #554c67; }
.performance-empty { margin: 14px; }
.performance-clear-step { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; padding: 14px; border: 1px solid #e9e4f2; border-radius: 10px; background: #fbfaff; }
.performance-clear-step > div { min-width: 0; flex: 1; }
.performance-clear-step b { font: 700 11px "Manrope",sans-serif; }
.performance-clear-step p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.performance-complete-banner { margin: 14px 0; padding: 12px 14px; border: 1px solid #c9eadc; border-radius: 9px; background: var(--green-soft); color: #167958; font-size: 10px; font-weight: 700; line-height: 1.5; }
.performance-cancelled-banner { color: #b33c50; background: var(--red-soft); border-color: #f6d8dd; }
.completed-performance-list { display: grid; gap: 8px; margin: 15px 0; }
.completed-performance-list > h4 { margin: 0; }
.event-performance-form { display: grid; gap: 12px; margin-top: 14px; }
.performance-guide { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.performance-assignment-forms { display: grid; gap: 12px; }
.performance-assignment-form { display: grid; gap: 12px; padding: 14px; border: 1px solid #ebe7f2; border-radius: 10px; background: #fff; }
.performance-assignment-title { display: flex; align-items: center; gap: 9px; }
.performance-assignment-title > div { display: grid; gap: 3px; }
.performance-assignment-title b { font: 700 11px "Manrope",sans-serif; }
.performance-assignment-title small { color: var(--muted); font-size: 9px; }
.performance-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.performance-score-grid label { display: grid; gap: 5px; color: #716881; font-size: 9px; font-weight: 700; }
.performance-score-grid .field-select { height: 36px; font-size: 9px; }
.performance-assignment-form .field-textarea { min-height: 64px; }
.performance-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #eeeaf4; }
.performance-form-footer > span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(25,13,45,.42); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.detail-drawer { width: min(680px, 100%); height: 100%; background: #fff; overflow-y: auto; box-shadow: -20px 0 50px rgba(20,11,39,.15); animation: slidein .22s ease-out; }
.camera-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(25,13,45,.66); backdrop-filter: blur(5px); }
.camera-dialog { width: min(480px, 100%); max-height: min(94vh, 850px); overflow-y: auto; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(15,8,30,.28); }
.camera-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.camera-dialog-head h2 { margin: 5px 0 3px; font: 800 17px "Manrope",sans-serif; letter-spacing: -.035em; }
.camera-dialog-head p { margin: 0; color: var(--muted); font-size: 11px; }
.camera-stage { width: 100%; aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #180d2b; }
.camera-stage video, .camera-stage img { width: 100%; height: 100%; object-fit: cover; }
.camera-guidance { margin: 12px 0 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.camera-timestamp-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.camera-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.attendance-evidence { display: grid; gap: 3px; margin-top: 6px; }
.attendance-proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #8e879b; font-size: 9px; }
.attendance-proof-row a { color: var(--purple); font-weight: 700; text-decoration: none; }
.attendance-proof-row small { color: #aaa3b5; font-size: 8px; }
@keyframes slidein { from { transform: translateX(24px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }
.drawer-head { padding: 23px 25px 18px; border-bottom: 1px solid #eeeaf4; position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.drawer-head-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.drawer-head h2 { margin: 0; font: 800 19px "Manrope",sans-serif; letter-spacing: -.04em; }
.drawer-head p { margin: 6px 0 0; color: #8e879b; font-size: 10px; }
.drawer-close { border: 1px solid #eee9f4; width: 32px; height: 32px; border-radius: 8px; background: white; color: #867e93; font-size: 16px; }
.drawer-tabs { display: flex; gap: 18px; overflow-x: auto; margin-top: 17px; border-bottom: 1px solid #ede9f3; }
.drawer-tab { border: 0; border-bottom: 2px solid transparent; padding: 8px 1px 10px; color: #a19aae; background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; }
.drawer-tab.active { border-color: var(--purple); color: var(--purple); }
.drawer-content { padding: 22px 25px 30px; }
.detail-hero { border-radius: 11px; padding: 17px; background: linear-gradient(130deg,#24143f,#3a2662); color: white; position: relative; overflow: hidden; }
.detail-hero:after { content: ""; position: absolute; width: 140px; height: 140px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -35px; top: -55px; box-shadow: 0 0 0 20px rgba(255,255,255,.04),0 0 0 42px rgba(255,255,255,.025); }
.detail-hero .eyebrow { color: #c1b1f8; font-size: 8px; }
.detail-hero h3 { position: relative; z-index: 1; font: 700 16px "Manrope",sans-serif; margin: 8px 0 5px; }
.detail-hero p { position: relative; z-index: 1; margin: 0; color: #c7bdd8; font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.detail-info { padding: 12px; border: 1px solid #eeeaf4; border-radius: 9px; }
.detail-info small { display: block; color: #a29bae; font-size: 8px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.detail-info b { display: block; color: #4e455f; font-size: 10px; margin-top: 7px; line-height: 1.4; }
.drawer-section-title { margin: 22px 0 10px; font: 800 11px "Manrope",sans-serif; display: flex; align-items: center; justify-content: space-between; }
.assignment-list { display: grid; gap: 8px; }
.assignment-card { display: flex; align-items: center; gap: 10px; border: 1px solid #eeeaf4; border-radius: 9px; padding: 10px; }
.assignment-card .avatar { width: 30px; height: 30px; }
.assignment-meta { flex: 1; min-width: 0; }
.assignment-meta b { display: block; font: 700 10px "Manrope",sans-serif; }
.assignment-meta small { display: block; color: #9991a6; font-size: 9px; margin-top: 3px; }
.assignment-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.workflow-card { border: 1px solid #eeeaf4; border-radius: 10px; overflow: hidden; }
.workflow-card-head { padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; background: #fbfaff; border-bottom: 1px solid #eeeaf4; }
.workflow-card-head b { font: 700 10px "Manrope",sans-serif; }
.workflow-card-body { padding: 13px; }
.workflow-meta { margin-top: 9px; color: #9a93a8; font-size: 9px; }
.workflow-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.group-form { display: flex; gap: 7px; margin-top: 11px; }
.group-form input { min-width: 0; flex: 1; height: 34px; border: 1px solid #e8e3ef; border-radius: 7px; padding: 0 9px; outline: none; font-size: 9px; }
.assignment-form { display: grid; gap: 12px; padding: 13px; border: 1px solid #e9e3f3; border-radius: 10px; margin-top: 10px; background: #fcfbfe; }
.assignment-form-intro b { display: block; color: #453a5c; font: 700 11px "Manrope",sans-serif; }
.assignment-form-intro small { display: block; margin-top: 4px; color: #9991a7; font-size: 9px; }
.assignment-form-fields { display: grid; grid-template-columns: minmax(160px,1.2fr) minmax(110px,.8fr) minmax(140px,1fr); gap: 8px; }
.assignment-form-fields label { display: grid; gap: 5px; color: #716881; font-size: 8px; font-weight: 700; }
.assignment-form-fields select { width: 100%; min-width: 0; height: 36px; font-size: 9px; border: 1px solid #e9e5f0; border-radius: 7px; background: white; color: #625a74; padding: 0 8px; }
.assignment-skill-picker { min-width: 0; border: 0; border-top: 1px solid #eeeaf4; margin: 0; padding: 10px 0 0; }
.assignment-skill-picker legend { padding: 0 7px 0 0; color: #5a506e; font-size: 9px; font-weight: 700; }
.assignment-skill-picker legend span { color: #a09aad; margin-left: 5px; font-size: 8px; font-weight: 500; }
.assignment-skill-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.assignment-skill-option { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #ece8f3; border-radius: 8px; background: white; cursor: pointer; }
.assignment-skill-option:has(input:checked) { border-color: #a995f0; background: #f6f2ff; }
.assignment-skill-option input { accent-color: var(--purple); }
.assignment-skill-option b { display: block; color: #5b526e; font-size: 8px; }
.assignment-skill-option small { display: block; margin-top: 2px; color: #9d95aa; font-size: 8px; }
.assignment-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid #eeeaf4; }
.assignment-fee-hint { display: grid; gap: 4px; color: #928a9f; font-size: 8px; }
.assignment-fee-hint b { color: #6652bb; }
.assignment-wrap { display: grid; gap: 0; }
.skill-rate-list { display: grid; gap: 8px; }
.skill-rate-row, .skill-add-form { display: grid; grid-template-columns: minmax(100px,1fr) minmax(130px,.8fr) auto; align-items: center; gap: 7px; }
  .skill-rate-row .field-input, .skill-add-form .field-input { height: 35px; padding: 0 9px; font-size: 9px; }
.skill-add-form { border-top: 1px solid #eeeaf4; padding-top: 12px; margin-top: 12px; }
.copy-box { border: 1px dashed #ddd6ea; border-radius: 9px; padding: 11px; background: #fcfbfe; color: #746b85; font-size: 9px; line-height: 1.6; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
.toast-root { position: fixed; right: 22px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: min(400px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid #ded8eb; border-left: 3px solid var(--purple); border-radius: 9px; background: white; color: #4d455d; box-shadow: var(--shadow); font-size: 11px; animation: toastup .18s ease-out; }
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
@keyframes toastup { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #ddd7ee; border-top-color: var(--purple); border-radius: 50%; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 230px minmax(0,1fr); }
  .topbar { padding: 0 22px; }
  .page-content { padding: 22px; }
  .global-search { width: 210px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.3fr) minmax(250px,.85fr); }
  .status-row { grid-template-columns: minmax(145px,1.2fr) minmax(130px,1fr) auto; }
  .status-row .status-track-mini { display: none; }
}
@media (max-width: 850px) {
  .configure-layout { grid-template-columns: 1fr; }
  .configure-color-panel { grid-row: auto; }
  .configure-storage-note { grid-column: auto; }
  .role-permission-list { grid-template-columns: 1fr; }
  .role-select-panel { grid-template-columns: 1fr; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; padding: 28px; align-content: start; }
  .auth-mobile-brand { display: block; width: 190px; background: var(--purple-dark); padding: 9px 12px; border: 0; border-radius: 0; margin: 3vh auto 7vh; }
  .auth-mobile-brand img { width: 100%; display: block; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 258px; transform: translateX(-105%); transition: transform .22s; box-shadow: 15px 0 40px rgba(20,11,39,.16); }
  .sidebar.open { transform: translateX(0); }
  .main-area { min-height: 100vh; }
  .topbar { height: 70px; padding: 0 16px; gap: 12px; }
  .menu-button { display: grid; }
  .topbar-title { min-width: 0; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-overline { display: none; }
  .global-search { width: 36px; padding: 0 10px; border: 0; background: transparent; }
  .global-search input, .global-search kbd { display: none; }
  .global-search span { font-size: 21px; }
  .sync-button { width: 38px; padding: 0; }
  .sync-button > span:last-child { display: none; }
  .notification-button { display: none; }
  .page-content { padding: 19px 16px 34px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid,.kpi-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .configure-tabs-panel { padding: 0 8px; }
  .configure-tab { padding: 13px 9px 11px; font-size: 11px; }
  .configure-asset-body { align-items: flex-start; flex-direction: column; }
  .configure-role-actions { flex-direction: column-reverse; }
  .configure-role-actions .button { width: 100%; }
  .auth-panel { padding: 22px; }
  .auth-mobile-brand { margin-bottom: 5vh; }
  .auth-form-wrap h2 { font-size: 30px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head-actions { width: 100%; }
  .page-head-actions .button { flex: 1; }
  .event-export-tools { width: 100%; }
  .metrics-grid { gap: 9px; }
  .metric-card { padding: 13px; min-height: 100px; }
  .metric-value { font-size: 23px; }
  .panel-head { padding: 0 13px; }
  .panel-body { padding: 13px; }
  .event-list-row { grid-template-columns: 48px minmax(0,1fr); padding: 12px; gap: 10px; }
  .date-tile { width: 43px; padding-right: 8px; }
  .date-tile b { font-size: 18px; }
  .event-row-trailing { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .table-toolbar { flex-wrap: wrap; }
  .table-search { flex: 1; min-width: 100%; }
  .table-count { margin-left: 0; }
  .status-row { grid-template-columns: 1fr auto; padding: 12px; gap: 9px; }
  .status-row > :nth-child(3) { grid-column: 1; }
  .calendar-code-row { grid-template-columns: 1fr; gap: 12px; }
  .calendar-code-form { grid-template-columns: 1fr; }
  .calendar-code-form > button { justify-self: start; }
  .calendar-code-actions .calendar-code-form { grid-template-columns: 1fr; }
  .calendar-promotion-tools { align-items: start; flex-direction: column; }
  .detail-drawer { width: 100%; }
  .camera-backdrop { padding: 10px; }
  .camera-dialog { padding: 15px; border-radius: 13px; }
  .drawer-head { padding: 17px 16px 13px; }
  .drawer-content { padding: 16px; }
  .drawer-tabs { gap: 14px; }
  .detail-grid { gap: 8px; }
  .assignment-form-fields { grid-template-columns: 1fr 1fr; }
  .assignment-form-fields label:first-child { grid-column: 1 / -1; }
  .assignment-form-footer { align-items: stretch; flex-direction: column; }
  .payroll-toolbar .field-label { min-width: calc(50% - 8px); }
  .skill-rate-row, .skill-add-form { grid-template-columns: 1fr 1fr; }
  .skill-rate-row button, .skill-add-form button { grid-column: 2; justify-self: end; }
  .group-form { flex-direction: column; }
  .group-form input { width: 100%; height: 38px; }
  .rate-account-form { grid-template-columns: 1fr 1fr; }
  .rate-account-form > .field-label:first-child, .rate-account-form > button { grid-column: 1 / -1; }
  .rate-list-head { align-items: flex-start; flex-direction: column; }
  .rate-account-row { grid-template-columns: minmax(0,1fr) auto; }
  .rate-account-row button { grid-column: 2; grid-row: 1; }
  .rate-account-row strong { grid-column: 1; grid-row: 2; }
  .review-account-filter { min-width: 100%; margin-top: 9px; }
  .performance-instruction { align-items: flex-start; padding: 12px; }
  .performance-summary { align-items: flex-start; padding: 14px; }
  .performance-grade { width: 60px; height: 60px; }
  .performance-score-grid, .performance-criteria { grid-template-columns: 1fr; }
  .performance-clear-step { align-items: flex-start; flex-wrap: wrap; }
  .performance-clear-step .button { margin-left: 46px; }
  .performance-form-footer { align-items: stretch; flex-direction: column; }
  .account-create-form { grid-template-columns: 1fr 1fr; }
  .account-create-form > button { grid-column: 1 / -1; }
  .account-role-cell { flex-direction: column; min-width: 125px; }
  .account-actions { min-width: 180px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-document-card { grid-template-columns: 32px minmax(85px,1fr) auto auto; }
  .profile-document-hint { grid-column: 2 / -1; }
  .rate-table-row { grid-template-columns: 1fr auto; }
  .rate-table-row .rate-input-wrap { grid-column: 1; grid-row: 2; }
}

/* Multi-day crew mapping */
.assignment-days { margin: -2px 0 8px 40px; border-left: 2px solid #eeeaf4; padding-left: 10px; display: grid; gap: 4px; }
.day-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #faf8fd; }
.day-row.is-today { background: #fff7df; }
.day-row-main { flex: 1; display: grid; gap: 1px; font-size: 12px; }
.day-row-main small { color: #776c8a; font-size: 11px; }
.day-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip-option { cursor: pointer; }
.day-chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip-option span { display: inline-block; padding: 5px 10px; border: 1px solid #ddd6ec; border-radius: 999px; font-size: 12px; background: #fff; }
.day-chip-option input:checked + span { background: #7353e8; border-color: #7353e8; color: #fff; }
.day-chip-option input:disabled + span { opacity: .6; cursor: not-allowed; }
.day-chip-option input:focus-visible + span { outline: 2px solid #ffb51b; outline-offset: 2px; }
.assignment-day-picker { border: 1px solid #eeeaf4; border-radius: 9px; padding: 10px; margin: 10px 0; }
.assignment-day-picker legend span { color: #776c8a; font-size: 11px; font-weight: 400; }
.day-editor summary { cursor: pointer; font-size: 12px; color: #7353e8; padding: 4px 0; }
.day-editor-actions { margin: 8px 0 4px; }

/* Attendance correction */
.day-row { flex-wrap: wrap; }
.day-row.needs-action { background: #fff1f0; }
.day-row .day-correction, .assignment-days.single .day-correction { flex-basis: 100%; }
.correction-note { color: #8a5a00; font-size: 11px; }
.day-correction summary { cursor: pointer; font-size: 12px; color: #7353e8; padding: 2px 0; }
.day-correction form { display: grid; gap: 8px; padding: 8px 0; }
.correction-result { display: flex; gap: 14px; font-size: 12px; }
.correction-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11px; }
.correction-times[hidden] { display: none; }
.assignment-days.single { margin-left: 0; border-left: 0; padding-left: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attendance-banner { background: #fff7df; border: 1px solid #f0d58a; border-radius: 9px; padding: 8px 10px; font-size: 12px; margin: 8px 0; }

/* Manual event */
.manual-event-panel { padding: 0; margin-bottom: 14px; }
.manual-event-panel > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 13px; }
.manual-event-panel > summary span { color: #776c8a; font-weight: 400; font-size: 12px; margin-left: 6px; }
.manual-event-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 4px 18px 18px; }
.manual-event-form .field-label small { color: #776c8a; font-weight: 400; }
.manual-event-check { display: flex; align-items: center; gap: 8px; align-self: end; }
.manual-event-form .inline-form-error, .manual-event-form .muted, .manual-event-actions { grid-column: 1 / -1; }

/* In-house punctuality */
.punctuality-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.punctuality-row:empty { display: none; }

/* Kode CRM queue */
.crm-queue-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff7df; border: 1px solid #f0d58a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.queue-panel-tools .table-search { min-width: 220px; }
.calendar-code-row[hidden] { display: none; }
