:root { font: 16px/1.5 Inter, system-ui, sans-serif; color: #172738; background: #f4f6f9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #142b42; color: white; }
.header-inner, main { max-width: 74rem; margin: auto; padding-inline: 1.25rem; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand span { color: #8ce2cf; }
a { color: inherit; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a { padding: .45rem .7rem; border-radius: .5rem; color: #d5e5f4; }
nav a[aria-current] { background: #2d4b62; color: white; }
main { padding-block: 1.6rem 3rem; }
h1 { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -.035em; }
h2 { margin: 0 0 .7rem; font-size: 1.15rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 1.25rem; align-items: start; }
.sections { display: grid; gap: 1rem; }
fieldset, aside, .card { border: 1px solid #d2dce5; background: white; border-radius: .85rem; margin: 0; min-width: 0; padding: 1.15rem; }
legend { background: white; padding: .1rem .6rem; border-radius: .35rem; color: #155a53; font-size: 1.12rem; font-weight: 750; }
aside { position: sticky; top: 1rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: .3rem; font-size: .87rem; font-weight: 650; }
input, select, textarea, button { font: inherit; padding: .55rem .7rem; border-radius: .5rem; min-width: 0; }
input, select, textarea { width: 100%; background: white; color: #172738; border: 1px solid #a9bacb; }
output { display: block; border: 1px solid #d2dce5; border-radius: .5rem; padding: .55rem .7rem; background: #f4f6f9; font-variant-numeric: tabular-nums; }
textarea { resize: vertical; }
button { border: 1px solid #086257; background: #086257; color: white; cursor: pointer; font-weight: 700; }
button.secondary { background: white; color: #086257; }
aside button { width: 100%; margin-top: .5rem; }
:focus-visible { outline: 3px solid #247eae; outline-offset: 2px; }
dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem .8rem; margin: 0 0 .8rem; font-size: .9rem; }
dt, .storage, .room-note { color: #455d72; }
dd { margin: 0; overflow-wrap: anywhere; }
.storage, .room-note { font-size: .8rem; }
.room-note { align-self: end; margin: 0; }
.hotel-group { border: 1px solid #d2dce5; border-radius: .65rem; padding: .8rem; margin-bottom: .7rem; }
.hotel-group:last-child { margin-bottom: 0; }
.hotel-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.hotel-heading h3 { margin: 0; font-size: 1rem; }
.room-row { display: grid; gap: .55rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.4fr) auto; align-items: end; margin-bottom: .7rem; }
.room-row .room-note { grid-column: 1 / -1; }
@media (max-width: 960px) { .room-row { grid-template-columns: 1fr 1fr; } .room-row > label:first-child { grid-column: 1 / -1; } }
[role=status]:empty { display: none; }
.card { max-width: 46rem; }
.card + .card { margin-top: 1rem; }
.actions { align-self: end; }
#records button { display: block; margin-top: .7rem; width: 100%; text-align: left; }
#tetapan .card ul { margin: 0 0 1rem; padding-left: 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .3rem 0; }
.setting-buttons, #tetapan .actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.setting-buttons button { padding: .3rem .55rem; font-size: .85rem; }
.package-extra { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem; margin-bottom: .6rem; }
.role-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
#role-label { margin: 0 0 .6rem; font-weight: 650; }
.agent-record { padding: .55rem 0; margin: 0; border-bottom: 1px solid #d2dce5; }
.agent-record-row { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid #d2dce5; }
.agent-record-row .agent-record { border: 0; }
#records .agent-record-row button { width: auto; margin: .25rem 0; }
.postpone-fields { padding: .65rem .8rem; background: #f4f6f9; }
.postpone-fields legend { font-size: .9rem; }
.change-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid #d2dce5; }
.change-row p { margin: 0; }
.home-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.home-sort { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin-bottom: 1rem; }
.home-filters button[aria-pressed=true] { background: #086257; color: white; }
.home-filters strong { margin-left: .25rem; font-variant-numeric: tabular-nums; }
.home-issues { color: #455d72; font-size: .88rem; }
.whatsapp-card { margin-top: 1rem; }
#whatsapp-text, #terms-form textarea { margin-bottom: .6rem; }
.check-label { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.check-label input { width: auto; }
.schedule-tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: .8rem; }
.schedule-scroll { max-width: 100%; overflow: auto; margin-top: .7rem; border: 1px solid #d2dce5; border-radius: .65rem; background: white; }
#schedule-table { border-collapse: separate; border-spacing: 0; font-size: .85rem; }
#schedule-table th, #schedule-table td { min-width: 5.3rem; padding: .45rem; border: solid #d2dce5; border-width: 0 1px 1px 0; text-align: left; vertical-align: top; }
#schedule-table thead th { background: #e9eff5; color: #243d55; }
#schedule-table th:first-child { min-width: 8.5rem; position: sticky; left: 0; background: #e9eff5; z-index: 1; }
#schedule-table td { height: 3.1rem; }
#schedule-table .busy { background: #e6f5ee; }
#schedule-table .overlap { background: #ffebcb; }
.schedule-overlap-label { display: block; color: #743b04; font-size: .75rem; font-weight: 700; }
.schedule-job { display: block; width: 100%; margin: .2rem 0; padding: .25rem .35rem; overflow-wrap: anywhere; white-space: normal; text-align: left; font-size: .8rem; color: #07483f; }
button.schedule-job { background: white; }
.schedule-day { display: block; color: #455d72; font-size: .75rem; }
@media (max-width: 740px) { .layout { grid-template-columns: 1fr; } aside { position: static; } }
@media (max-width: 460px) { .header-inner { flex-wrap: wrap; padding-block: .65rem; } .grid { grid-template-columns: 1fr; } }
