* { box-sizing: border-box; }
:root { font-family: "Segoe UI", system-ui, sans-serif; color: #192c27; background: #f4f6f1; color-scheme: light; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid #dce4dc; }
.top-inner, .brand, .modes, .toolbar, .shift-heading, .off { display: flex; align-items: center; }
.top-inner, .toolbar { justify-content: space-between; gap: 16px; }
.top-inner { min-height: 75px; }
.brand { gap: 12px; }
.brand span:not(.mark) { display: block; color: #52665c; font-size: .875rem; }
.mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #1c5142; color: #fff; font-family: Georgia, serif; }
button, input, select, textarea { font: inherit; }
button { min-height: 40px; padding: 7px 14px; border: 1px solid #cbd7cd; border-radius: 8px; background: #fff; color: inherit; cursor: pointer; font-weight: 650; }
button:hover { background: #e8f0e9; }
:focus-visible { outline: 3px solid #b06916; outline-offset: 3px; }
.modes { background: #edf2ed; border-radius: 10px; padding: 4px; }
.modes button { border-color: transparent; background: transparent; }
.modes [aria-pressed="true"], .primary { background: #1c5142; color: #fff; border-color: #1c5142; }
.primary:hover, .modes [aria-pressed="true"]:hover { background: #143d32; }
.intro { margin-top: 26px; padding: clamp(21px, 5vw, 51px); display: flex; justify-content: space-between; align-items: end; gap: 25px; border-radius: 21px; color: #fff; background: radial-gradient(ellipse at 83% 0%, #367760, transparent 60%), #183e34; }
.eyebrow { color: #ffe0a6; font-size: .875rem; font-weight: 750; letter-spacing: .12em; }
h1 { margin: 7px 0 12px; font: 500 clamp(2.25rem, 5.5vw, 4.2rem)/1.01 Georgia, serif; letter-spacing: -.045em; }
.intro-copy p:last-child { margin-bottom: 0; color: #e0ede5; }
.date-panel { display: grid; gap: 8px; min-width: 220px; padding: 17px; border: 1px solid #8cb39f; border-radius: 12px; background: #214a3d; }
.date-panel span { font-size: .875rem; color: #ffe0a6; }
.date-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-navigation { display: flex; gap: 4px; }
.date-navigation button { display: grid; place-items: center; width: 40px; padding: 0; border-color: #8cb39f; background: transparent; }
.date-navigation button:hover { background: #376451; }
.date-navigation button span { font-size: 1.5rem; line-height: 1; }
label { display: block; font-size: .875rem; font-weight: 700; }
input, select, textarea { min-width: 0; width: 100%; padding: 9px 11px; border: 1px solid #bdcbbf; border-radius: 8px; background: #fff; color: #192c27; }
select { appearance: none; padding-right: 2.25rem; background: linear-gradient(45deg, transparent 50%, #315747 50%) right 16px center / 6px 6px no-repeat, linear-gradient(135deg, #315747 50%, transparent 50%) right 10px center / 6px 6px no-repeat, #fff; }
.toolbar { margin: 23px 0 16px; align-items: end; }
.filter { width: min(100%, 310px); }
.filter label { margin-bottom: 5px; }
.staff-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.staff-button { border-radius: 999px; font-size: .875rem; }
.staff-button[aria-pressed="true"] { border-color: #1c5142; background: #1c5142; color: #fff; }
.staff-button[aria-pressed="true"]:hover { background: #143d32; }
.admin-roster { display: grid; gap: 12px; }
.admin-person { min-width: 0; padding: 14px 16px; border: 1px solid #dae4db; border-radius: 14px; background: #fff; }
.admin-person-heading { display: flex; align-items: center; gap: 12px; }
.admin-person-heading h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.employee-position { margin: 5px 0 0; color: #52665c; font-size: .875rem; }
.admin-shifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 10px; margin-top: 10px; }
.admin-shift { min-width: 0; padding: 10px 12px; border-radius: 8px; background: #f4f6f1; overflow-wrap: anywhere; }
.admin-shift h3, .admin-shift p { margin: 0 0 5px; }
.admin-shift h3 { font-size: .9rem; }
.off { flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #f8e9ce; color: #634817; }
.off h2 { margin: 0 5px 0 0; font-size: 1rem; }
.off-name { display: flex; gap: 9px; align-items: center; padding: 5px 10px; border-radius: 8px; background: #fff8ea; font-weight: 650; }
.shift { background: white; border: 1px solid #dae4db; border-radius: 14px; margin-top: 18px; overflow: hidden; }
.shift-heading { min-height: 62px; gap: 10px; margin: 0; padding: 10px 16px; font-size: 1.15rem; font-weight: 700; background: #f8edda; cursor: pointer; list-style: none; }
.shift-heading::-webkit-details-marker { display: none; }
.shift-heading:focus-visible { outline-offset: -4px; }
.shift-chevron { width: 9px; height: 9px; margin: 0 3px 0 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.shift[open] .shift-chevron { transform: translateY(2px) rotate(225deg); }
.prep .shift-heading { background: #e1f0e6; }
.evening .shift-heading { background: #e8eaf7; }
.shift-icon { width: 32px; text-align: center; font-size: 1.45rem; }
.count { margin-left: auto; font-size: .875rem; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 15px; vertical-align: top; border-bottom: 1px solid #ebefeb; }
tr:last-child td { border-bottom: 0; }
th { background: #fafbf9; color: #455b51; font-size: .875rem; white-space: nowrap; }
td:first-child { min-width: 125px; }
td:nth-child(2), td:nth-child(3) { width: 155px; }
td small { display: block; color: #52665c; font-size: .875rem; margin-top: 3px; }
.hours, .break { font-size: .9rem; font-variant-numeric: tabular-nums; }
.hours { font-weight: 650; }
.break, .empty, footer { color: #52665c; }
.tasks { margin: 0; padding-left: 18px; }
.tasks li + li { margin-top: 4px; }
.empty { padding: 0 17px; }
.edit { min-height: 34px; padding: 4px 10px; font-size: .875rem; }
footer { margin: 26px 0; font-size: .875rem; }
footer span { margin-inline: 4px; }
dialog { width: min(600px, calc(100% - 28px)); max-height: 90vh; padding: 22px; border: 1px solid #bdcbbf; border-radius: 16px; color: inherit; }
dialog::backdrop { background: #152b24a8; }
dialog h2, dialog p { margin: 0 0 7px; }
dialog label { margin: 13px 0 5px; }
dialog label span { font-weight: 400; }
.time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
#shift-help { margin: 12px 0 8px; color: #52665c; font-size: .875rem; }
.shift-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.shift-tab { padding-inline: 4px; font-size: .875rem; }
.shift-tab[aria-selected="true"] { background: #1c5142; color: #fff; border-color: #1c5142; }
.shift-fields { min-width: 0; margin: 9px 0 0; padding: 0 10px 9px; border: 1px solid #dae4db; border-radius: 8px; }
.shift-fields label :is(input, textarea) { margin-top: 4px; }
.shift-fields :disabled { background: #edf2ed; color: #52665c; cursor: not-allowed; }
.editor-error { margin-top: 10px; color: #9c2825; font-size: .875rem; }
.required-mark { color: #9c2825; }
.field-help { color: #52665c; font-size: .875rem; }
#nickname-help { margin: 4px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.danger { margin-right: auto; color: #9c2825; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 24px); }
  .intro { display: grid; align-items: start; }
  .date-panel { min-width: 0; }
  .toolbar { flex-wrap: wrap; }
  .filter { flex: 1 1 175px; }
  table { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody { display: block; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 13px 15px; border-bottom: 1px solid #ebefeb; }
  tbody tr:last-child { border-bottom: 0; }
  tbody td { padding: 0; border: 0; overflow-wrap: anywhere; }
  tbody td:nth-child(2), tbody td:nth-child(3) { width: auto; }
  tbody td:nth-child(2)::before, tbody td:nth-child(3)::before { display: block; font-size: .875rem; font-weight: 650; color: #52665c; }
  tbody td:nth-child(2)::before { content: "Waktu kerja"; }
  tbody td:nth-child(3)::before { content: "Rehat"; }
  tbody td:first-child, tbody td:nth-child(n+4) { grid-column: 1 / -1; }
}

.demo-notice { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: #f8e9ce; color: #634817; }
