@import url("fonts/be-vietnam-pro.css");
:root {
  --forest: #17332a;
  --green: #1f6f50;
  --orange: #e07a2f;
  --canvas: #f6f2e9;
  --border: #e6decb;
  --ink: #1d2a24;
  --muted: #5f655e;
  --mint: #e3efe8;
  --font: "Be Vietnam Pro", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px var(--font);
  display: flex;
  min-height: 100vh;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.content {
  padding: 28px 32px 40px;
  flex: 1;
  min-width: 0;
}
.side {
  width: 232px;
  flex: 0 0 232px;
  background: var(--forest);
  color: #c5d6cc;
  padding: 24px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #456657 var(--forest);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 0;
  color: #fff;
}
.brand:hover {
  text-decoration: none;
}
.brand > b {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex: none;
}
.brand span {
  font-size: 17px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 12px;
  color: #9fb8ab;
  font-weight: 400;
  margin-top: 2px;
}
.brand span {
  min-width: 0;
}
.brand .brand-user {
  color: #f6f2e9;
  font-weight: 600;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8faa9c;
  padding: 16px 12px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #c5d6cc;
  font-weight: 500;
  font-size: 14px;
}
.sidebar-link:hover {
  background: #21443a;
  color: #fff;
  text-decoration: none;
}
.sidebar-link.active {
  background: var(--canvas);
  color: var(--forest);
  font-weight: 700;
}
.sidebar-account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #345347;
}
.sidebar-account small {
  display: block;
  font-size: 10px;
  color: #9fb8ab;
  margin-top: 4px;
}
.sidebar-account summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.sidebar-account summary::marker {
  content: "";
}
.sidebar-account button {
  background: transparent;
  border: 0;
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.sidebar-account form {
  margin: 0;
}
.demo-footer {
  padding: 0 32px 16px;
  color: var(--muted);
  font-size: 11px;
}
.mobile-nav {
  display: none;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
}
p {
  line-height: 1.7;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #8a8f87;
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.heading p {
  margin: 6px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: 600 14px var(--font);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  text-decoration: none;
  background: #164d38;
}
.button.secondary {
  background: #fff;
  border-color: #d9d1bf;
  color: var(--ink);
}
.quiet {
  background: none;
  border: 0;
  color: var(--green);
  padding: 5px;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  padding: 12px 16px;
  background: #fbf8f1;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #efe8d8;
  vertical-align: middle;
  max-width: 300px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #fbf8f1;
}
td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.empty {
  padding: 60px 24px;
  text-align: center;
}
.search {
  padding: 14px 16px 0;
}
.search > div {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.search input {
  max-width: 400px;
}
.search select {
  width: auto;
  max-width: 100%;
}
.count {
  padding: 0 16px;
  font-size: 13px;
}
.pagination {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid #efe8d8;
  font-size: 12px;
}
.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d1bf;
  border-radius: 999px;
  color: #3d4a43;
}
.pagination .current {
  background: var(--mint);
  border-color: #9cc3ae;
  color: #174f3a;
}
.pagination .summary {
  margin-right: auto;
  color: var(--muted);
}
.editor {
  max-width: 820px;
  padding: 24px;
  margin-top: 24px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field label {
  display: block;
  margin-bottom: 10px;
}
.wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d1bf;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  min-height: 40px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
textarea {
  resize: vertical;
}
.errorlist {
  color: #a83b2d;
  padding-left: 18px;
  font-size: 12px;
}
.message {
  padding: 12px 16px;
  border: 1px solid #9cc3ae;
  background: var(--mint);
  border-radius: 10px;
}
.login {
  max-width: 460px;
  margin: 60px auto;
  padding: 32px;
}
.login label {
  display: block;
  margin-bottom: 10px;
}
.login .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  cursor: pointer;
}
.login .remember input {
  flex: none;
  width: 14px;
  height: 14px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}
.login .remember-help {
  display: block;
  color: #6b716c;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.account-editor .field {
  margin-bottom: 24px;
}
.editor input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-right: 8px;
}
.account-editor .field > div {
  display: grid;
  gap: 10px;
}
.account-editor .help {
  font-size: 12px;
}
.account-editor label {
  overflow-wrap: anywhere;
}
.account-editor input[type="password"] {
  max-width: 100%;
}
/* Customer directory — Customers.png desktop geometry, live registration data. */
.directory-heading {
  margin-bottom: 20px;
}
.directory-heading h1 {
  margin: 0;
}
.directory-heading > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.directory-meta {
  font-size: 14px;
  color: var(--muted);
}
.page-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  min-height: 36px;
}
.page-tabs > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a8f87;
  text-transform: uppercase;
}
.tab-set {
  display: inline-flex;
  gap: 2px;
  background: #ebe4d4;
  padding: 3px;
  border-radius: 11px;
}
.tab-set > a,
.tab-set > span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.tab-set .selected {
  background: white;
  color: var(--forest);
  box-shadow: 0 1px 2px #17332a1f;
}
.tab-set [aria-disabled="true"] {
  color: #77796f;
  cursor: not-allowed;
}
.directory-actions {
  display: flex;
  gap: 10px;
}
.directory-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.searchbox {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9d1bf;
  border-radius: 10px;
  padding: 0 12px;
  flex: 1 1 280px;
  max-width: 426px;
  color: var(--muted);
}
.searchbox input {
  border: 0;
  padding: 0;
  outline: none;
  min-width: 0;
  min-height: 0;
  background: transparent;
}
.searchbox:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.searchbox input:focus-visible {
  outline: none;
}
.filter-chip {
  height: 36px;
  min-height: 36px;
  width: auto;
  max-width: 170px;
  border-radius: 999px;
  font-size: 13px;
  padding: 0 11px;
  color: #3d4a43;
  cursor: pointer;
}
.filter-chip.is-set {
  background: var(--mint);
  border-color: #9cc3ae;
  color: #174f3a;
}
.directory-filters .apply-filter {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}
.clear-filters {
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}
.directory-table {
  min-width: 1000px;
}
.directory-table td {
  height: 77px;
}
.directory-table th:first-child {
  width: 26%;
}
.customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  color: #174f3a;
  flex: none;
  font-weight: 700;
  font-size: 13px;
}
.customer-name {
  color: var(--ink);
  font-weight: 700;
}
.customer-cell > div {
  min-width: 0;
}
.customer-source {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 15px;
}
.phone-link .ico {
  width: 16px;
  height: 16px;
}
.tour-name {
  font-weight: 600;
  color: var(--ink);
}
.tour-date,
.registration-time {
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  background: #eee9dd;
  color: #5a5243;
}
.tag-deposit {
  background: #fff0d9;
  color: #8b551a;
}
.tag-paid {
  background: var(--mint);
  color: #174f3a;
}
.tag-cancelled,
.tag-refund {
  background: #fbe7e3;
  color: #9d3e30;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--green);
}
.icon-button:hover {
  background: var(--mint);
}
.directory-note {
  font-size: 13px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-actions details {
  position: relative;
}
.row-actions summary {
  cursor: pointer;
  font-size: 12px;
}
.row-actions details[open] > div {
  position: absolute;
  right: 0;
  z-index: 2;
  min-width: 150px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px #17332a20;
}
.mobile-customers {
  display: none;
}
.mobile-count {
  display: none;
}
@media (width < 1280px) {
  .side {
    width: 76px;
    flex-basis: 76px;
    padding: 20px 10px;
    gap: 16px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand span,
  .nav-label,
  .sidebar-link span,
  .sidebar-account summary span {
    display: none;
  }
  .sidebar-link {
    justify-content: center;
    padding: 0;
    min-height: 42px;
  }
  .sidebar-link .ico {
    width: 20px;
    height: 20px;
  }
  .sidebar-account summary {
    justify-content: center;
    padding-inline: 0;
  }
  .content {
    padding: 24px 24px 36px;
  }
  .demo-footer {
    padding-inline: 24px;
  }
  .nav {
    gap: 5px;
  }
  .nav .sidebar-link:first-child {
    margin-top: 0;
  }
}
@media (max-width: 1100px) {
  h1 {
    font-size: 26px;
  }
  .directory-filters {
    gap: 8px;
  }
  .filter-chip {
    max-width: 150px;
  }
}
@media (max-width: 600px) {
  .side {
    display: none;
  }
  .content {
    padding: 20px 16px 90px;
  }
  .demo-footer {
    padding: 0 16px 85px;
  }
  .heading {
    align-items: flex-start;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .editor {
    padding: 20px;
  }
  .directory-heading {
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
  }
  .directory-heading h1 {
    font-size: 24px;
  }
  .directory-heading > div:first-child {
    gap: 0;
  }
  .directory-meta {
    display: none;
  }
  .mobile-count {
    display: block;
    color: var(--muted);
    font-size: 13px;
  }
  .page-tabs {
    display: none;
  }
  .directory-actions .export-button {
    display: none;
  }
  .add-customer {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 13px;
  }
  .add-customer .ico {
    width: 24px;
    height: 24px;
  }
  .add-customer span {
    display: none;
  }
  .directory-card {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .directory-filters {
    padding: 0 4px 12px;
    border: 0;
    gap: 8px;
  }
  .searchbox {
    flex-basis: 100%;
    max-width: none;
    flex-grow: 1;
    height: 48px;
    margin-bottom: 6px;
  }
  .filter-chip {
    max-width: calc(50% - 4px);
    height: 38px;
    min-height: 38px;
  }
  .directory-desktop {
    display: none;
  }
  .mobile-customers {
    display: block;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
  }
  .mobile-customer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #efe8d8;
    min-height: 89px;
  }
  .mobile-customer:last-child {
    border-bottom: 0;
  }
  .mobile-customer > div {
    flex: 1;
    min-width: 0;
  }
  .mobile-customer .customer-name {
    display: block;
    font-size: 16px;
  }
  .mobile-customer .phone-link {
    font-size: 14px;
    margin-top: 3px;
  }
  .mobile-customer .tour-date {
    font-size: 11px;
    margin-top: 3px;
    display: block;
  }
  .mobile-call {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  .mobile-customers .empty {
    padding: 32px 16px;
  }
  .directory-pagination {
    flex-wrap: wrap;
    margin-top: 12px;
    border: 0;
    padding: 12px 4px;
  }
  .directory-pagination .summary {
    width: 100%;
    margin-bottom: 4px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    min-height: 70px;
    padding: 10px 4px max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px #17332a08;
  }
  .mobile-nav > a,
  .mobile-nav summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted);
    cursor: pointer;
  }
  .mobile-nav [aria-current="page"] {
    color: var(--green);
    font-weight: 700;
  }
  .mobile-nav summary {
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-more {
    position: absolute;
    bottom: 100%;
    right: 8px;
    max-height: 70vh;
    overflow: auto;
    width: 240px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 -5px 30px #17332a20;
    padding: 12px;
  }
  .mobile-more a {
    display: block;
    padding: 10px;
  }
  .login {
    padding: 20px;
    margin-top: 24px;
  }
  .search > div {
    flex-wrap: wrap;
  }
}
/* Keep visually hidden table headings inside their scroll container. */
.sr-only {
  left: 0;
  top: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}
.table-wrap {
  position: relative;
}
.directory-table {
  table-layout: fixed;
  min-width: 1060px;
}
.directory-table th:first-child {
  width: 26%;
}
.directory-table th:nth-child(2) {
  width: 15%;
}
.directory-table th:nth-child(3) {
  width: 17%;
}
.directory-table th:nth-child(4) {
  width: 12%;
}
.directory-table th:nth-child(5) {
  width: 12%;
}
.directory-table th:nth-child(6) {
  width: 12%;
}
.directory-table th:last-child {
  width: 6%;
}
.directory-table .tour-date,
.directory-table .registration-time {
  white-space: nowrap;
}
.directory-note > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.icon-button {
  flex: none;
}
.customer-source {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-name {
  line-height: 1.4;
}
.directory-heading h1 {
  line-height: 1.2;
}
.muted {
  color: var(--muted);
}
.directory-chips {
  display: contents;
}
.searchbox {
  background: #fff;
  flex-basis: 260px;
  min-width: 0;
}
.directory-filters #id_tour {
  width: 64px;
}
.directory-filters #id_tour.is-set {
  width: 140px;
}
.directory-filters #id_month {
  width: 130px;
}
.directory-filters #id_status {
  width: 136px;
}
.directory-filters #id_day_type {
  width: 98px;
}
.directory-filters #id_source {
  width: 82px;
}
.directory-filters #id_state {
  width: 145px;
}
.directory-filters .apply-filter {
  padding-inline: 11px;
}
@media (max-width: 600px) {
  .directory-filters .searchbox {
    flex-basis: 100%;
  }
  .directory-chips {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 1px 1px 4px;
    scrollbar-width: thin;
  }
  .directory-chips > * {
    flex: none;
    max-width: none;
  }
  .directory-filters #id_tour {
    width: 112px;
  }
  .directory-filters #id_month {
    width: 145px;
  }
  .directory-filters #id_status {
    width: 150px;
  }
  .directory-filters #id_day_type {
    width: 130px;
  }
  .directory-filters #id_source {
    width: 100px;
  }
  .clear-filters {
    align-self: center;
  }
  .directory-filters {
    padding-bottom: 12px;
  }
}
/* Native controls retain readable labels; allow wrapping instead of clipping. */
.directory-filters #id_tour{width:82px}.directory-filters #id_tour.is-set{width:170px}.directory-filters #id_status{width:170px}.directory-filters #id_day_type{width:120px}.directory-filters #id_source{width:100px}.directory-filters #id_state{width:170px}.month-chip{display:inline-flex;align-items:center;gap:8px;height:36px;border:1px solid #D9D1BF;border-radius:999px;padding:0 11px;background:#fff;color:#3D4A43;font-size:13px;white-space:nowrap}.directory-filters .month-chip #id_month{width:130px;border:0;padding:0;border-radius:0;min-height:30px;height:30px;background:transparent}.searchbox{flex-basis:320px}
@media(max-width:600px){.directory-filters .searchbox{flex-basis:100%}.directory-filters #id_tour{width:90px}.directory-filters #id_tour.is-set{width:170px}.month-chip{height:38px}}

/* Company asset supplied for the CRM sidebar; keep the existing shell size. */
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; flex: none; }
.brand-initial { display: inline-grid; place-items: center; background: var(--accent, #e07a2f); color: #fff; font-weight: 800; font-size: 18px; }
