/* Sửa màu, font, khoảng cách và bố cục ở đây. File này được đọc trực tiếp, không cần build. */
:root {
 --navy: #142b47;
 --navy-dark: #0e2038;
 --orange: #f1763c;
 --orange-dark: #d95c24;
 --background: #f3f6fa;
 --surface: #fff;
 --text: #172d45;
 --muted: #697b8e;
 --border: #e1e8f0;
 --waiting: #19775a;
 --new: #2c65a2;
 --late: #c4473c;
 --radius: 14px;
 font-family: Inter, 'Segoe UI', Arial, sans-serif;
 color: var(--text);
 background: var(--background);
 font-size: 16px;
}
* {
 box-sizing: border-box;
}
[hidden] {
 display: none !important;
}
body {
 margin: 0;
}
button,
input,
select {
 font: inherit;
}
button {
 cursor: pointer;
}
button:disabled {
 cursor: default;
 opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
 outline: 3px solid #f8a678;
 outline-offset: 3px;
}
a {
 color: var(--new);
}
h1,
h2,
h3,
p {
 margin-top: 0;
}
h1 {
 font-size: clamp(1.65rem, 3vw, 2.1rem);
 letter-spacing: -0.035em;
 margin-bottom: 10px;
}
h2 {
 font-size: 1.15rem;
 margin-bottom: 10px;
}
h3 {
 font-size: 1.1rem;
}
p {
 color: var(--muted);
 line-height: 1.65;
}
small {
 font-size: 0.875rem;
}
label {
 display: grid;
 gap: 8px;
 color: var(--text);
 font-size: 0.925rem;
 font-weight: 600;
}
input,
select {
 width: 100%;
 min-width: 0;
 min-height: 44px;
 border: 1px solid #cfd9e5;
 border-radius: 8px;
 padding: 10px 12px;
 background: white;
 color: var(--text);
 font-weight: 400;
}
input[type='file'] {
 padding: 12px;
}
input[type='date'] {
 min-width: 150px;
}
.btn {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 gap: 8px;
 min-height: 42px;
 padding: 10px 16px;
 border: 1px solid var(--border);
 border-radius: 8px;
 background: white;
 color: var(--text);
 font-size: 0.925rem;
 font-weight: 600;
 white-space: normal;
}
.btn:hover:not(:disabled) {
 background: #edf2f8;
}
.btn.primary {
 background: var(--orange);
 color: white;
 border-color: var(--orange);
}
.btn.primary:hover:not(:disabled) {
 background: var(--orange-dark);
}
.btn.danger {
 background: #fff2ef;
 color: #b7332b;
 border-color: #f3cbc6;
}
.btn.small {
 padding: 7px 11px;
 font-size: 0.875rem;
 min-height: 36px;
}
.loading {
 display: grid;
 place-content: center;
 min-height: 100vh;
 color: var(--muted);
}
.login-page {
 min-height: 100vh;
 display: grid;
 place-items: center;
 padding: 24px;
 background: var(--navy-dark);
}
.login-card {
 width: min(100%, 420px);
 background: white;
 padding: 38px;
 border-radius: 20px;
 box-shadow: 0 20px 60px #0003;
}
.login-card h1 {
 margin-top: 25px;
}
.login-card form,
.system-form,
#import-form {
 display: grid;
 gap: 18px;
}
.login-card .btn {
 width: 100%;
}
.brand-mark {
 display: inline-grid;
 place-items: center;
 flex-shrink: 0;
 width: 42px;
 height: 42px;
 background: var(--orange);
 border-radius: 10px;
 color: white;
 font-size: 1.8rem;
}
.error-text {
 color: #ba382e;
 margin: 18px 0 0;
 overflow-wrap: anywhere;
}
.app-shell {
 display: flex;
 min-height: 100vh;
}
.sidebar {
 width: 248px;
 position: fixed;
 inset: 0 auto 0 0;
 display: flex;
 flex-direction: column;
 z-index: 20;
 background: var(--navy);
 padding: 28px 18px 18px;
 color: white;
 overflow-y: auto;
}
.brand {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 0 5px 28px;
}
.brand strong {
 display: block;
 font-size: 1rem;
 letter-spacing: 0.03em;
}
.brand small {
 display: block;
 color: #a9b9cc;
 margin-top: 5px;
}
.nav-caption {
 color: #8da4bf;
 font-size: 0.75rem;
 letter-spacing: 0.09em;
 padding: 12px 10px 4px;
}
nav {
 display: grid;
 gap: 5px;
}
.nav-button {
 display: block;
 width: 100%;
 text-align: left;
 background: transparent;
 border: 0;
 color: #cad7e6;
 padding: 13px 15px;
 border-radius: 8px;
 font-size: 0.925rem;
 margin-bottom: 5px;
}
.nav-button:hover {
 background: #ffffff0d;
}
.nav-button.active {
 background: #ffffff14;
 box-shadow: inset 3px 0 var(--orange);
 color: white;
}
.sidebar-system {
 margin-top: 30px;
 padding: 18px 12px;
 border-top: 1px solid #ffffff17;
}
.sidebar-system strong,
.sidebar-system small {
 display: block;
 overflow-wrap: anywhere;
}
.sidebar-system small {
 color: #9db0c5;
 margin-top: 8px;
}
.account {
 margin-top: auto;
 padding: 20px 10px 0;
 border-top: 1px solid #ffffff17;
 display: grid;
 gap: 8px;
}
.account small {
 color: #a9b9cc;
 overflow-wrap: anywhere;
}
.account .btn {
 margin-top: 7px;
 background: transparent;
 color: #cad7e6;
 border-color: #ffffff24;
}
.app-content {
 min-width: 0;
 flex: 1;
 margin-left: 248px;
}
.topbar {
 min-height: 75px;
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 18px 36px;
 background: white;
 border-bottom: 1px solid var(--border);
 font-size: 0.925rem;
}
#today {
 margin-left: auto;
 color: var(--muted);
}
#menu-button {
 display: none;
}
.workspace {
 padding: 35px;
 max-width: 1600px;
 margin: auto;
}
.page-heading {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 20px;
 margin-bottom: 28px;
}
.page-heading p {
 margin: 0;
}
.eyebrow {
 display: block;
 color: var(--orange-dark);
 font-weight: 700;
 font-size: 0.75rem;
 letter-spacing: 0.12em;
 margin-bottom: 12px;
}
.heading-actions,
.modal-actions {
 display: flex;
 gap: 10px;
 flex-wrap: wrap;
 align-items: center;
}
.panel {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: var(--radius);
 margin-bottom: 24px;
 overflow: hidden;
}
.panel-heading {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 16px;
 padding: 22px 24px;
 border-bottom: 1px solid var(--border);
}
.panel-heading h2 {
 margin: 0;
}
.panel-heading p {
 margin: 6px 0 0;
 font-size: 0.925rem;
}
.onboard-grid {
 display: grid;
 grid-template-columns: 1.15fr 1fr;
 gap: 24px;
}
.onboarding-card,
.integration-card {
 padding: 32px;
}
.onboarding-card h2,
.integration-card h2 {
 font-size: 1.5rem;
}
.onboarding-card ol {
 padding-left: 24px;
 color: var(--muted);
 line-height: 2;
}
.integration-card {
 background: var(--navy);
 color: white;
}
.integration-card p {
 color: #bbcce0;
 padding: 12px 0;
 border-bottom: 1px solid #ffffff18;
}
.stats-grid {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: 18px;
 margin-bottom: 24px;
}
.stat {
 padding: 22px;
 background: white;
 border: 1px solid var(--border);
 border-radius: var(--radius);
 border-top: 3px solid var(--navy);
}
.stat span,
.stat small {
 color: var(--muted);
 display: block;
}
.stat strong {
 display: block;
 font-size: 2.3rem;
 margin: 13px 0 9px;
 font-weight: 650;
}
.stat.waiting {
 border-top-color: var(--waiting);
}
.stat.new {
 border-top-color: var(--new);
}
.stat.late {
 border-top-color: var(--late);
}
.overview-grid {
 display: grid;
 grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
 gap: 24px;
}
.locker-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
 gap: 10px;
 padding: 24px;
 max-height: 520px;
 overflow-y: auto;
}
.locker-slot {
 min-height: 90px;
 padding: 14px 6px;
 background: #f4f7fb;
 border: 1px solid #e3eaf2;
 border-radius: 9px;
 color: #71849a;
}
.locker-slot:disabled {
 opacity: 1;
}
.locker-slot strong {
 display: block;
 font-size: 1.4rem;
 margin-bottom: 10px;
}
.locker-slot span {
 display: block;
 font-size: 0.875rem;
 overflow-wrap: anywhere;
}
.locker-slot.waiting {
 background: #edf8f2;
 border-color: #c3e4d7;
 color: var(--waiting);
}
.locker-slot.new {
 background: #edf4fe;
 border-color: #c7daf0;
 color: var(--new);
}
.locker-slot.late {
 background: #fff0ed;
 border-color: #f2c6c0;
 color: var(--late);
}
.legend {
 display: flex;
 flex-wrap: wrap;
 gap: 18px;
 padding: 0 24px 8px;
 color: var(--muted);
 font-size: 0.875rem;
}
.legend .waiting {
 color: var(--waiting);
}
.legend .new {
 color: var(--new);
}
.legend .late {
 color: var(--late);
}
#occupancy {
 padding: 8px 24px 12px;
}
.event-row {
 display: flex;
 flex-wrap: wrap;
 align-items: flex-start;
 gap: 12px;
 padding: 18px 24px;
 border-bottom: 1px solid var(--border);
}
.event-row:last-child {
 border-bottom: 0;
}
.event-row strong {
 font-size: 0.925rem;
}
.event-row p {
 font-size: 0.875rem;
 margin: 5px 0 0;
 overflow-wrap: anywhere;
}
.event-row small {
 color: var(--muted);
 margin-left: auto;
}
.event-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}
.filter-bar {
 display: flex;
 align-items: flex-end;
 flex-wrap: wrap;
 gap: 18px;
 padding: 22px 24px;
}
.search-label {
 flex: 1;
 min-width: 180px;
}
.filter-bar .muted {
 margin-left: auto;
 padding-bottom: 12px;
}
.table-wrap {
 overflow-x: auto;
}
table {
 width: 100%;
 border-collapse: collapse;
 text-align: left;
 font-size: 0.925rem;
}
th {
 color: var(--muted);
 background: #f9fbfe;
 font-size: 0.875rem;
 font-weight: 600;
 padding: 15px 20px;
 white-space: nowrap;
}
td {
 padding: 17px 20px;
 border-top: 1px solid var(--border);
 vertical-align: middle;
}
.person-name {
 min-width: 150px;
 font-weight: 600;
}
.mono {
 font-family: ui-monospace, Consolas, monospace;
}
.slot-pill {
 display: inline-block;
 border: 1px solid var(--border);
 background: #f4f7fb;
 padding: 7px 9px;
 border-radius: 7px;
 font-weight: 600;
}
.badge {
 display: inline-block;
 padding: 6px 10px;
 border-radius: 6px;
 font-size: 0.875rem;
 font-weight: 600;
 white-space: nowrap;
}
.badge.waiting {
 background: #e8f6ef;
 color: var(--waiting);
}
.badge.new {
 background: #eaf2fe;
 color: var(--new);
}
.badge.late {
 background: #fff0ed;
 color: var(--late);
}
.badge.done {
 background: #eff2f6;
 color: #607080;
}
.pending-label {
 display: block;
 margin-top: 7px;
 color: #b85a22;
}
.empty-table,
.empty-state {
 padding: 30px 24px;
 text-align: center;
}
.muted {
 color: var(--muted);
 font-size: 0.925rem;
}
.settings-list {
 padding: 4px 24px;
}
.settings-list > div {
 display: grid;
 grid-template-columns: minmax(120px, 1fr) 2fr;
 gap: 20px;
 padding: 15px 0;
 border-bottom: 1px solid var(--border);
}
dt {
 color: var(--muted);
 font-size: 0.925rem;
}
dd {
 margin: 0;
 overflow-wrap: anywhere;
}
.setup-note {
 font-size: 0.925rem;
 background: #f8fafc;
 padding: 18px 24px;
 margin: 0;
}
.danger-panel {
 padding: 24px;
 display: flex;
 justify-content: space-between;
 gap: 20px;
 align-items: center;
 border-color: #f3d4cf;
}
.danger-panel p {
 margin: 0;
}
.endpoint-url {
 display: block;
 background: #edf2f8;
 color: var(--navy);
 padding: 20px;
 margin: 24px;
 border-radius: 8px;
 overflow-wrap: anywhere;
 line-height: 1.8;
}
.endpoint-codes {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 25px;
 padding: 10px 24px 24px;
}
.endpoint-codes strong {
 color: var(--orange-dark);
 font-family: ui-monospace, monospace;
}
.endpoint-codes p {
 margin: 10px 0 0;
}
.notice {
 border: 1px solid #f3d4cf;
 border-radius: 9px;
 padding: 14px 18px;
 margin-bottom: 22px;
 display: flex;
 justify-content: space-between;
 gap: 15px;
 align-items: center;
}
.notice.error {
 background: #fff2ef;
 color: #a7352d;
}
dialog {
 width: min(560px, calc(100% - 32px));
 max-height: calc(100dvh - 48px);
 overflow-y: auto;
 padding: 28px;
 border: 1px solid var(--border);
 border-radius: 16px;
 color: var(--text);
 background: white;
 box-shadow: 0 20px 90px #0a193b40;
}
dialog::backdrop {
 background: #0c1d35a6;
}
.dialog-heading {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 margin-bottom: 15px;
}
.dialog-heading h2 {
 margin: 0;
 font-size: 1.35rem;
}
.form-pair {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 15px;
}
.modal-actions {
 margin-top: 24px;
 justify-content: flex-end;
}
.record-detail {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 180px;
 gap: 20px;
}
.record-detail img {
 max-width: 100%;
 height: auto;
}
.record-detail dl {
 display: grid;
 gap: 8px;
}
.record-detail dd {
 margin-bottom: 8px;
}
.qr-url {
 overflow-wrap: anywhere;
 font-size: 0.875rem;
 background: #f3f6fa;
 border-radius: 8px;
 padding: 14px;
 margin-top: 20px;
}
.toast {
 position: fixed;
 right: 24px;
 bottom: 24px;
 max-width: min(440px, calc(100% - 48px));
 padding: 17px 22px;
 background: var(--navy);
 color: white;
 border-radius: 10px;
 box-shadow: 0 8px 35px #0003;
 z-index: 100;
 line-height: 1.6;
}
.toast.error {
 background: #a7352d;
}
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}
@media (max-width: 1150px) {
 .stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
 }
 .overview-grid {
  grid-template-columns: 1fr;
 }
 .workspace {
  padding: 25px;
 }
}
@media (max-width: 800px) {
 .sidebar {
  transform: translateX(-100%);
  transition: transform 0.2s;
  top: 70px;
 }
 .sidebar.mobile-open {
  transform: translateX(0);
  box-shadow: 10px 0 35px #0003;
 }
 .app-content {
  margin-left: 0;
 }
 .topbar {
  padding: 15px 18px;
  min-height: 70px;
 }
 #menu-button {
  display: inline-flex;
 }
 #today {
  display: none;
 }
 .workspace {
  padding: 22px 16px;
 }
 .onboard-grid,
 .endpoint-codes {
  grid-template-columns: 1fr;
 }
 .heading-actions {
  width: 100%;
 }
 .panel-heading {
  padding: 18px;
  flex-wrap: wrap;
 }
 .filter-bar {
  padding: 18px;
 }
 .settings-list > div {
  grid-template-columns: 1fr;
  gap: 8px;
 }
 .danger-panel {
  flex-direction: column;
  align-items: flex-start;
 }
}
@media (max-width: 460px) {
 .stat {
  padding: 15px;
 }
 .stats-grid {
  gap: 10px;
 }
 .record-detail,
 .form-pair {
  grid-template-columns: 1fr;
 }
 dialog {
  padding: 20px;
 }
 .login-card {
  padding: 28px;
 }
 .heading-actions .btn {
  flex: 1;
 }
 .endpoint-url {
  margin: 18px;
 }
 .event-row small {
  margin-left: 0;
 }
}
@media (prefers-reduced-motion: reduce) {
 .sidebar {
  transition: none;
 }
}
