:root {
  --ink: #e8f4ec;
  --muted: #9aafa1;
  --line: #2b4035;
  --page: #09120e;
  --surface: #101d17;
  --primary: #36c979;
  --primary-dark: #23975a;
  --teal: #55dfb0;
  --amber: #e7b750;
  --violet: #83c69e;
}

html { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page); font-family: "Noto Sans Thai", Tahoma, "Segoe UI", sans-serif; font-size: 0.95rem; }
.app-container { max-width: 1320px; }
.app-header { background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.app-navbar { min-height: 80px; padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.brand:hover { color: var(--ink); }
.brand small { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; margin-top: .15rem; text-transform: uppercase; }
.brand-mark { align-items: center; background: linear-gradient(135deg, var(--primary), #78e8a8); border-radius: 10px; color: #072010; display: inline-flex; font-size: 1.2rem; height: 38px; justify-content: center; width: 38px; }
.navbar-toggler { border: 1px solid var(--line); color: var(--ink); font-size: 1.4rem; padding: .25rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(22, 102, 216, .15); }
.navbar-nav { gap: .25rem; }
.nav-link { border-radius: 8px; color: #58667d; font-weight: 600; padding: .6rem .8rem !important; }
.nav-link i { margin-right: .3rem; }
.nav-link:hover, .nav-link:focus { background: #edf4ff; color: var(--primary); }
.navbar-help { color: var(--muted); font-size: .85rem; text-decoration: none; }
.navbar-help i { margin-right: .3rem; }
.navbar-help:hover { color: var(--primary); }
.app-main { min-height: calc(100vh - 137px); padding: 2.5rem 0 3.5rem; }
.app-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 1.25rem 0; }
.app-footer span { margin-left: 1rem; }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.page-heading.narrow { max-width: 900px; margin-left: auto; margin-right: auto; }
.page-heading h1, .confirmation-card h1 { color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; margin: .15rem 0 .55rem; }
.home-heading-subtitle { color: #fff; }
.eyebrow { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .13em; margin: 0; text-transform: uppercase; }
.btn { align-items: center; border-radius: 8px; display: inline-flex; font-weight: 650; gap: .35rem; justify-content: center; padding: .52rem .9rem; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); box-shadow: 0 3px 10px rgba(22, 102, 216, .16); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-light { background: #fff; border-color: var(--line); color: #45536b; }
.btn-light:hover { background: #f7f9fc; border-color: #d4dce8; color: var(--ink); }
.btn-danger { box-shadow: none; }
.btn-icon { height: 34px; padding: 0; width: 34px; }
.back-link { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--primary); }
.app-alert { align-items: center; border: 0; border-radius: 10px; box-shadow: 0 5px 16px rgba(15, 83, 48, .08); display: flex; gap: .65rem; margin-bottom: 1.5rem; }
.content-card, .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 20px rgba(35, 55, 85, .035); }
.content-card { overflow: hidden; }
.content-card-header { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding: 1.25rem 1.35rem; }
.content-card-header h2, .directory-toolbar h2, .form-section h2 { font-size: 1.04rem; font-weight: 750; letter-spacing: -.015em; margin: 0 0 .2rem; }
.content-card-header p, .directory-toolbar p, .form-section p { color: #fff; font-size: .84rem; margin: 0; }
.stat-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 1rem; min-height: 126px; padding: 1.25rem; }
.stat-icon { align-items: center; border-radius: 12px; display: inline-flex; font-size: 1.4rem; height: 46px; justify-content: center; width: 46px; }
.stat-card span, .stat-card small { color: var(--muted); display: block; font-size: .78rem; }
.stat-card strong { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -.05em; line-height: 1.15; }
.stat-card-primary .stat-icon { background: #eaf3ff; color: var(--primary); }.stat-card-teal .stat-icon { background: #e6f8f5; color: var(--teal); }.stat-card-amber .stat-icon { background: #fff4e0; color: var(--amber); }.stat-card-violet .stat-icon { background: #f0edff; color: var(--violet); }
.app-table { --bs-table-bg: transparent; --bs-table-hover-bg: #f8fbff; color: #344158; }
.app-table thead th { background: #fbfcfe; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .04em; padding: .75rem 1.35rem; text-transform: uppercase; white-space: nowrap; }
.app-table td { border-color: var(--line); padding: .95rem 1.35rem; vertical-align: middle; }
.app-table small { color: var(--muted); font-size: .78rem; }
.customer-name { color: var(--ink); font-weight: 750; text-decoration: none; }.customer-name:hover { color: var(--primary); }
.directory-toolbar { align-items: center; display: flex; gap: 1rem; justify-content: space-between; padding: 1.25rem 1.35rem; }
.count-badge { background: #eaf3ff; border-radius: 999px; color: var(--primary); font-size: .75rem; padding: .25rem .5rem; vertical-align: middle; }
.search-form { display: flex; gap: .5rem; max-width: 620px; width: 100%; }.search-form select { flex: 0 0 145px; }.search-form .service-category-search { flex-basis: 165px; }.search-form input { min-width: 0; }
.form-control, .form-select, .input-group-text { border-color: #dce3ee; border-radius: 8px; color: var(--ink); min-height: 42px; }.input-group > .form-control { border-radius: 8px 0 0 8px; }.input-group-text { background: #f8fafc; border-radius: 0 8px 8px 0; color: var(--muted); }
.form-control:focus, .form-select:focus { border-color: #8cbbf5; box-shadow: 0 0 0 .2rem rgba(22, 102, 216, .12); }
.form-label { font-size: .86rem; font-weight: 700; margin-bottom: .38rem; }.form-label.required::after { color: #d33751; content: " *"; }.text-danger { font-size: .8rem; }
.app-main .text-muted { color: #fff !important; }.service-category-field { background: #14291d; border: 1px solid #3d6e4b; border-radius: 10px; padding: .9rem; }.service-category-field .form-label { color: #fff; }.service-category-field .form-label i { color: #7de4a5; margin-right: .3rem; }
.form-card { margin: 0 auto; max-width: 900px; padding: 1.7rem; }.form-section { border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; padding-bottom: 1.6rem; }.form-section-title { align-items: center; display: flex; gap: .75rem; margin-bottom: 1.25rem; }.form-section-title > span { align-items: center; background: #edf4ff; border-radius: 8px; color: var(--primary); display: inline-flex; height: 32px; justify-content: center; width: 32px; }
.page-heading.history-form-heading, .form-card.history-form-card { max-width: 1320px; }
.form-card:has(form[action*="CreateHistory"]), .form-card:has(form[action*="EditHistory"]) { max-width: 1320px; }
.form-actions { align-items: center; display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.5rem; }
.empty-state { color: var(--muted); padding: 3.5rem 1.5rem; text-align: center; }.empty-state > i { color: #aab7ca; display: block; font-size: 2.2rem; margin-bottom: .7rem; }.empty-state h3 { color: var(--ink); font-size: 1.05rem; font-weight: 750; }.empty-state p { margin-bottom: 1rem; }.empty-state.compact { padding: 2.5rem 1.25rem; }.empty-state.compact p { margin-bottom: .4rem; }
.appointment-list { padding: .5rem 1.35rem; }.appointment-item { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; gap: .8rem; padding: .8rem 0; text-decoration: none; }.appointment-item:last-child { border-bottom: 0; }.appointment-item:hover strong { color: var(--primary); }.appointment-date { align-items: center; background: #edf4ff; border-radius: 8px; color: var(--primary); display: inline-flex; flex: 0 0 43px; flex-direction: column; height: 43px; justify-content: center; line-height: 1; text-align: center; }.appointment-date small { font-size: .67rem; margin-top: .12rem; }.appointment-item > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }.appointment-item small { color: var(--muted); font-size: .78rem; }.appointment-item > i { color: #aab7ca; }
.customer-heading { align-items: center; }.customer-identity { align-items: center; display: flex; gap: 1rem; margin-top: 1rem; }.avatar { align-items: center; background: linear-gradient(135deg, #1768db, #60a9fa); border-radius: 50%; color: white; display: inline-flex; font-size: 1.5rem; font-weight: 800; height: 58px; justify-content: center; width: 58px; }.page-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.customer-identity .text-muted { color: #fff !important; }
.detail-list { margin: 0; padding: .2rem 1.35rem .6rem; }.detail-list > div { border-bottom: 1px solid var(--line); padding: .9rem 0; }.detail-list > div:last-child { border: 0; }.detail-list dt { color: var(--muted); font-size: .76rem; font-weight: 650; margin-bottom: .25rem; }.detail-list dt i { color: var(--primary); margin-right: .35rem; }.detail-list dd { color: #354158; margin: 0; }.preserve-lines { white-space: pre-line; }
.history-list { padding: .4rem 1.35rem 1rem; }.history-item { border-bottom: 1px solid var(--line); display: flex; gap: 1rem; padding: 1.15rem 0; }.history-item:last-child { border: 0; }.history-date { align-items: center; background: #f3f6fa; border-radius: 10px; color: #52627a; display: flex; flex: 0 0 58px; flex-direction: column; height: 64px; justify-content: center; line-height: 1; text-align: center; }.history-date strong { color: var(--ink); font-size: 1.25rem; }.history-date small { font-size: .7rem; margin-top: .18rem; }.history-date span { color: var(--muted); font-size: .65rem; margin-top: .12rem; }.history-content { flex: 1; min-width: 0; }.history-title { align-items: flex-start; display: flex; gap: .75rem; justify-content: space-between; }.history-title h3 { font-size: .98rem; font-weight: 750; margin: 0; }.history-content p { color: #536179; font-size: .87rem; margin: .3rem 0 .5rem; }.amount { color: var(--teal); font-size: .82rem; font-weight: 700; white-space: nowrap; }.history-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: .76rem; gap: .8rem; }.history-meta i { color: var(--primary); }.history-actions { display: flex; gap: .3rem; }.history-actions form { margin: 0; }.link-danger { color: #c13751; font-size: .85rem; text-decoration: none; }.link-danger:hover { color: #991f36; text-decoration: underline; }
.service-category-badge { align-items: center; border-radius: 999px; display: inline-flex; font-size: .7rem; font-weight: 750; gap: .3rem; line-height: 1; margin-top: .35rem; padding: .32rem .52rem; white-space: nowrap; }.service-category-badge.air-conditioning { background: #153b4d; color: #7de4ff; }.service-category-badge.window-film { background: #34285a; color: #c9b5ff; }.service-category-badge.car-accessories { background: #49381a; color: #ffd77c; }.service-category-picker { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.5rem; }.service-category-choice { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; color: var(--ink); display: grid; gap: .25rem .8rem; grid-template-columns: auto 1fr; padding: 1rem 1.1rem; text-decoration: none; transition: .18s ease; }.service-category-choice > span { align-items: center; border-radius: 10px; display: inline-flex; font-size: 1.15rem; grid-row: span 2; height: 42px; justify-content: center; width: 42px; }.service-category-choice strong { font-size: .95rem; }.service-category-choice small { color: #fff; }.service-category-choice:hover, .service-category-choice.active { border-color: var(--primary); box-shadow: 0 8px 22px rgba(0, 0, 0, .2); color: #fff; transform: translateY(-1px); }.service-category-choice.air-conditioning > span { background: #153b4d; color: #7de4ff; }.service-category-choice.window-film > span { background: #34285a; color: #c9b5ff; }.service-category-choice.car-accessories > span { background: #49381a; color: #ffd77c; }.service-history-table { --bs-table-color: #d8e8de; --bs-table-border-color: var(--line); }.service-history-group { border-top: 1px solid var(--line); }.service-history-group-heading { background: #14251c; display: flex; justify-content: space-between; padding: .85rem 1.35rem; }.service-history-group-heading h3 { color: #fff; font-size: .92rem; font-weight: 750; margin: 0 0 .15rem; }.service-history-group-heading h3 i { color: var(--primary); margin-right: .35rem; }.service-history-group-heading p, .service-history-group-empty { color: #fff; font-size: .8rem; margin: 0; }.service-history-group-empty { padding: 1rem 1.35rem; }
.history-category-tabs { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1rem; }.history-category-tab { align-items: center; background: #102218; border: 1px solid var(--line); border-radius: 9px; color: #d8e8de; display: flex; font-size: .8rem; font-weight: 700; gap: .45rem; min-width: 0; padding: .65rem .75rem; text-decoration: none; }.history-category-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.history-category-tab strong { background: rgba(255,255,255,.1); border-radius: 999px; color: #fff; font-size: .72rem; margin-left: auto; min-width: 1.6rem; padding: .12rem .4rem; text-align: center; }.history-category-tab.air-conditioning i { color: #7de4ff; }.history-category-tab.window-film i { color: #c9b5ff; }.history-category-tab.car-accessories i { color: #ffd77c; }.history-category-tab:hover, .history-category-tab.active { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(77, 235, 143, .18); color: #fff; }.history-category-tab.active { background: #163b25; }
.confirmation-card { margin-top: 4rem; max-width: 580px; text-align: center; }.confirmation-card > p:not(.eyebrow) { color: #58667d; line-height: 1.7; }.confirmation-icon { align-items: center; border-radius: 50%; display: inline-flex; font-size: 1.8rem; height: 62px; justify-content: center; margin-bottom: 1rem; width: 62px; }.confirmation-icon.danger { background: #ffedf0; color: #d33751; }.confirmation-details { background: #f8fafc; border-radius: 10px; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.4rem 0; padding: 1rem; text-align: left; }.confirmation-details dt { color: var(--muted); font-size: .75rem; font-weight: 650; }.confirmation-details dd { font-weight: 700; margin: .15rem 0 0; }.confirmation-card .form-actions { justify-content: center; }
.customer-groups { padding: 0 1.35rem 1.35rem; }.customer-group { border: 1px solid var(--line); border-radius: 12px; margin-top: 1rem; overflow: hidden; }.customer-group-heading { align-items: center; background: #fbfcfe; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: .9rem 1rem; }.customer-group-heading h3 { color: var(--ink); font-size: .95rem; font-weight: 750; margin: 0 0 .15rem; }.customer-group-heading h3 i { color: var(--primary); margin-right: .3rem; }.customer-group-heading p, .customer-group-empty { color: var(--muted); font-size: .8rem; margin: 0; }.customer-group-empty { padding: 1rem; }
.service-items-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: .55rem; }.service-items-table-wrap { border: 1px solid var(--line); border-radius: 9px; }.service-items-table { min-width: 680px; }.service-items-table thead th { background: #f8fafc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 750; padding: .65rem .75rem; }.service-items-table td { border-color: var(--line); padding: .55rem .45rem; vertical-align: middle; }.service-items-table td:first-child, .service-items-table th:first-child { padding-left: .75rem; }.service-items-table td:last-child, .service-items-table th:last-child { padding-right: .75rem; }.service-items-table .form-control { min-height: 38px; }.service-items-table .price-column { min-width: 150px; }.service-items-table .action-column { width: 52px; }
.history-line-items { border: 1px solid var(--line); border-radius: 8px; margin: .7rem 0; }.history-line-items .table { --bs-table-bg: transparent; min-width: 430px; }.history-line-items th { background: #f8fafc; color: var(--muted); font-size: .7rem; font-weight: 750; }.history-line-items th, .history-line-items td { border-color: var(--line); padding: .45rem .6rem; vertical-align: middle; }.history-line-items tr:last-child td { border-bottom: 0; }.history-actions { align-items: flex-start; }
.history-item { display: grid; gap: 1rem; grid-template-columns: 58px minmax(0, 1fr); }.history-date { grid-column: 1; grid-row: 1 / span 2; }.history-content { grid-column: 2; grid-row: 1; width: 100%; }.history-actions { grid-column: 2; grid-row: 2; justify-self: start; }.history-invoice-action { grid-column: 2; grid-row: 2; justify-self: end; }.history-line-items, .history-line-items .table { width: 100%; }
.app-header { background: rgba(10, 22, 16, .94); }.brand, .brand:hover { color: var(--ink); }.nav-link { color: #b5c9bc; }.nav-link:hover, .nav-link:focus { background: #173525; color: #6de7a1; }.navbar-help { color: var(--muted); }.navbar-help:hover { color: #6de7a1; }.navbar-toggler { border-color: var(--line); color: var(--ink); }
body { background: radial-gradient(circle at top right, #173b27 0, transparent 31rem), radial-gradient(circle at bottom left, #10291c 0, transparent 32rem), var(--page); }.app-footer { background: #0a1510; }.content-card, .form-card { box-shadow: 0 12px 32px rgba(0, 0, 0, .24); }.btn-light { background: #172a20; border-color: #365341; color: #d9ebdf; }.btn-light:hover { background: #203a2b; border-color: #49735a; color: #fff; }.btn-primary, .btn-primary:hover, .btn-primary:focus { color: #fff; }.back-link { color: #a5b9ac; }.back-link:hover { color: #72e8a5; }
.stat-card { background: var(--surface); box-shadow: 0 10px 25px rgba(0, 0, 0, .16); }.stat-card-primary .stat-icon { background: #153a25; color: #61e99d; }.stat-card-teal .stat-icon { background: #123a30; color: var(--teal); }.stat-card-amber .stat-icon { background: #3c3118; color: var(--amber); }.stat-card-violet .stat-icon { background: #20372a; color: var(--violet); }.count-badge { background: #153b26; color: #75eba7; }
.app-table { --bs-table-color: #d8e8de; --bs-table-border-color: var(--line); --bs-table-hover-bg: #172c20; color: #d8e8de; }.app-table thead th, .customer-group-heading { background: #14251c; }.customer-name { color: #eef8f1; }.customer-name:hover { color: #71e8a5; }.form-control, .form-select, .input-group-text { background-color: #0b1711; border-color: #344d3e; color: var(--ink); }.input-group-text { background-color: #13251b; color: var(--muted); }.form-control::placeholder { color: #71877a; }.form-control:focus, .form-select:focus { background-color: #0d1d15; border-color: #62de98; box-shadow: 0 0 0 .2rem rgba(54, 201, 121, .16); color: #f0faf3; }.form-section-title > span, .appointment-date { background: #153a25; color: #68e89e; }
.brand-mark, .avatar { color: #fff; }.detail-list dd, .history-content p { color: #c9d9cf; }.history-date { background: #172a20; color: #b7c9bd; }.history-line-items th, .service-items-table thead th { background: #14251c; }.history-line-items .table, .service-items-table { --bs-table-color: #d8e8de; --bs-table-border-color: var(--line); }.history-line-items td, .service-items-table td { color: #d8e8de; }.empty-state > i, .appointment-item > i { color: #6a8978; }.confirmation-card > p:not(.eyebrow) { color: #b8c9bd; }.confirmation-details { background: #14251c; }.confirmation-icon.danger { background: #3a2026; }.app-alert.alert-success { background: #123622; color: #c8f4d7; }.app-alert.alert-success .btn-close { filter: invert(1); }
.directory-toolbar-stacked { align-items: center; display: grid; grid-template-columns: 1fr auto; max-width: none; }.directory-toolbar-stacked .search-form { grid-column: 1 / -1; max-width: none; }.customer-type-selector { background: #0b1711; border: 1px solid #314b3a; border-radius: 10px; display: inline-flex; gap: .25rem; padding: .3rem; }.customer-type-option { border-radius: 7px; color: #a8c0ae; font-size: .87rem; font-weight: 750; padding: .5rem .8rem; text-decoration: none; }.customer-type-option:hover { background: #183525; color: #85edb0; }.customer-type-option.active { background: var(--primary); box-shadow: 0 3px 10px rgba(54, 201, 121, .2); color: #fff; }.customer-type-option i { margin-right: .25rem; }
@media (max-width: 991.98px) { .navbar-collapse { padding-top: .75rem; }.navbar-help { display: block; padding: .7rem .8rem; }.page-heading { align-items: flex-start; flex-direction: column; }.customer-heading { align-items: flex-start; }.search-form { max-width: 100%; }.directory-toolbar { align-items: flex-start; flex-direction: column; }.app-main { padding-top: 1.5rem; } }
@media (max-width: 575.98px) { .directory-toolbar-stacked { display: flex; }.customer-type-selector { width: 100%; }.customer-type-option { flex: 1; text-align: center; }.directory-toolbar-stacked .search-form { width: 100%; } }
.brand { display: inline-flex; margin: 0; padding: 0; }
.brand-logo { display: block; height: 62px; max-width: 55vw; object-fit: cover; object-position: center; width: 230px; }
.nav-logout { background: transparent; border: 0; font-family: inherit; font-size: inherit; width: 100%; }
.queue-filter { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem; }
.queue-filter .form-control { width: 154px; }
.quick-search-card { align-items: center; background: linear-gradient(120deg, #112d1d, #183e28); border: 1px solid #3b6b4b; border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); display: grid; gap: 1rem; grid-template-columns: auto minmax(0, 1fr) minmax(300px, .9fr); padding: 1.15rem 1.35rem; }.quick-search-icon { align-items: center; background: #1e5935; border-radius: 11px; color: #78eca9; display: flex; font-size: 1.35rem; height: 48px; justify-content: center; width: 48px; }.quick-search-copy .eyebrow { margin-bottom: .2rem; }.quick-search-copy h2 { color: var(--ink); font-size: 1.06rem; font-weight: 800; margin: 0 0 .15rem; }.quick-search-copy p:not(.eyebrow) { color: #fff; font-size: .84rem; margin: 0; }.quick-plate-form { align-items: center; display: flex; gap: .5rem; }.quick-plate-form .form-control { min-width: 0; }.quick-plate-form .btn { white-space: nowrap; }
@media (max-width: 767.98px) { .quick-search-card { align-items: flex-start; grid-template-columns: auto 1fr; }.quick-plate-form { grid-column: 1 / -1; width: 100%; }.quick-plate-form .form-control { flex: 1; } }
@media (max-width: 767.98px) { .service-category-picker { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .history-category-tabs { grid-template-columns: 1fr; } }
.queue-days { padding: 0 1.35rem 1.35rem; }
.queue-day { border: 1px solid var(--line); border-radius: 12px; margin-top: 1rem; overflow: hidden; }
.queue-day-header { align-items: center; background: #14251c; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding: .85rem 1rem; }
.queue-day-header div { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem; }.queue-day-header i { color: var(--primary); }.queue-day-header strong { color: var(--ink); }.queue-day-header span { color: var(--muted); font-size: .8rem; }
.queue-table { min-width: 810px; }.queue-number { align-items: center; background: #153a25; border-radius: 7px; color: #73e9a4; display: inline-flex; font-size: .76rem; font-weight: 800; height: 30px; justify-content: center; width: 34px; }.queue-row-muted { opacity: .64; }
.queue-actions { display: flex; gap: .35rem; justify-content: flex-end; }.queue-actions form { margin: 0; }.appointment-status { border-radius: 999px; display: inline-block; font-size: .73rem; font-weight: 750; padding: .3rem .55rem; white-space: nowrap; }.appointment-status.scheduled { background: #153b26; color: #79efa9; }.appointment-status.completed { background: #153234; color: #69dfdf; }.appointment-status.cancelled { background: #3c2428; color: #f3a2ac; }
.appointment-toast-container { z-index: 1100; }.appointment-reminder { background: #10251a; border: 1px solid #3c6c4c; box-shadow: 0 16px 42px rgba(0, 0, 0, .38); color: var(--ink); min-width: min(380px, calc(100vw - 2rem)); }.appointment-reminder .toast-header { background: #173d27; border-bottom-color: #3c6c4c; color: #dff7e6; }.appointment-reminder .toast-header i { color: #80efac; }.appointment-reminder .btn-close { filter: invert(1); }.reminder-list { border-top: 1px solid #315540; }.reminder-list a { border-bottom: 1px solid #315540; color: #e2f5e8; display: block; font-size: .85rem; padding: .55rem 0; text-decoration: none; }.reminder-list a:hover { color: #75eba7; }.reminder-list a span { color: #a0baaa; display: block; font-size: .76rem; padding-left: 3.1rem; }
.auth-page { align-items: center; background: radial-gradient(circle at 15% 15%, #1b5632 0, transparent 26rem), radial-gradient(circle at 90% 85%, #123d29 0, transparent 28rem), #07110b; display: flex; justify-content: center; padding: 1.5rem; }.auth-main { width: 100%; }.login-card { background: rgba(15, 31, 22, .96); border: 1px solid #2e5940; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .42); margin: 0 auto; max-width: 480px; padding: 2.1rem; }.login-brand { border-bottom: 1px solid #294534; margin: -2.1rem -2.1rem 1.8rem; padding: 1.1rem 2.1rem; }.login-brand img { display: block; height: 100px; margin: 0 auto; max-width: 100%; object-fit: cover; object-position: center; width: 360px; }.login-heading { margin-bottom: 1.55rem; }.login-heading h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; margin: .25rem 0 .45rem; }.login-heading p:not(.eyebrow) { color: #afc4b6; margin: 0; }.input-with-icon { position: relative; }.input-with-icon i { color: #79dfa4; left: .85rem; position: absolute; top: .72rem; z-index: 2; }.input-with-icon .form-control { padding-left: 2.5rem; }.login-submit { min-height: 46px; }
@media (max-width: 575.98px) { .brand-logo { height: 50px; max-width: 58vw; width: 190px; }.queue-days { padding: 0 .85rem .85rem; }.queue-day-header { align-items: flex-start; flex-direction: column; }.queue-filter { width: 100%; }.queue-filter .form-control { flex: 1; width: auto; }.login-card { padding: 1.45rem; }.login-brand { margin: -1.45rem -1.45rem 1.45rem; padding: 1rem 1.45rem; }.login-brand img { height: 82px; width: 100%; } }
@media (max-width: 575.98px) { .app-main { padding-bottom: 2rem; }.app-footer span { display: block; margin: .25rem 0 0; }.page-heading h1 { font-size: 1.7rem; }.page-heading .btn-lg { width: 100%; }.form-card { border-radius: 10px; padding: 1.1rem; }.search-form { flex-wrap: wrap; }.search-form select { flex: 0 0 100%; }.search-form input { flex: 1; width: 40%; }.app-table th:nth-child(2), .app-table td:nth-child(2), .customer-table th:nth-child(4), .customer-table td:nth-child(4) { display: none; }.app-table thead th, .app-table td { padding-left: .85rem; padding-right: .85rem; }.customer-identity { align-items: flex-start; }.page-actions { width: 100%; }.page-actions .btn { flex: 1; }.history-list { padding-left: .85rem; padding-right: .85rem; }.history-item { gap: .6rem; }.history-date { flex-basis: 47px; }.history-actions { flex-direction: column; }.history-title { flex-direction: column; gap: .2rem; }.confirmation-details { grid-template-columns: 1fr; }.form-actions .btn { flex: 1; } }
.invoice-line-items-wrap { border: 1px solid var(--line); border-radius: 9px; }.invoice-line-items-table { --bs-table-color: #d8e8de; --bs-table-border-color: var(--line); min-width: 760px; }.invoice-line-items-table thead th { background: #14251c; color: var(--muted); font-size: .74rem; font-weight: 750; padding: .65rem .75rem; }.invoice-line-items-table td { border-color: var(--line); padding: .55rem .45rem; vertical-align: middle; }.invoice-line-items-table .form-control { min-height: 36px; }.invoice-quantity-col { min-width: 100px; }.invoice-price-col { min-width: 140px; }.invoice-total-col { min-width: 125px; }.invoice-remove-col { width: 50px; }.invoice-line-total { color: #83ecad; font-weight: 750; white-space: nowrap; }.invoice-totals-preview { border-top: 1px solid var(--line); margin: 1rem 0 0 auto; max-width: 340px; padding-top: .55rem; }.invoice-totals-preview > div { display: flex; justify-content: space-between; padding: .35rem .15rem; }.invoice-totals-preview strong { color: var(--ink); }.invoice-grand-total-preview { background: #174b2d; border-radius: 7px; color: #e9fff0; font-size: 1rem; margin-top: .35rem; padding: .55rem .7rem !important; }.invoice-grand-total-preview strong { color: #89efb1; }.invoice-list-table { --bs-table-bg: #fff; --bs-table-color: #183324; --bs-table-border-color: #b8cbbb; color: #183324; }.invoice-list-table thead th { --bs-table-bg: #14251c; background: #14251c; color: #c3d9ca; font-size: .74rem; font-weight: 750; padding: .75rem 1rem; }.invoice-list-table tbody td { --bs-table-bg: #fff; background: #fff; border-color: #b8cbbb; color: #183324 !important; padding: .8rem 1rem; }.invoice-list-table tbody td strong { color: #102d1c; }.invoice-list-table tbody tr:hover > * { --bs-table-bg: #eef8f0; background: #eef8f0; color: #102d1c !important; }
.history-invoice-action { align-self: flex-start; display: flex; }
.warranty-status { border-radius: 999px; font-weight: 700; padding: .18rem .45rem; }.warranty-status.active { background: #153b26; color: #83efae; }.warranty-status.due { background: #4a3a16; color: #ffdb7b; }.warranty-status.expired { background: #44262b; color: #ffb4bd; }
.warranty-month-year { display: grid; gap: .45rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
.warranty-help { align-items: center; color: #b7cdbd; display: flex; font-size: .74rem; gap: .35rem; justify-content: space-between; margin-top: .35rem; }.warranty-help i { color: #8ae9ae; margin-right: .2rem; }.warranty-help .btn-link { color: #a9d9b7; font-size: .74rem; padding: 0; text-decoration: underline; }
.thai-date-picker { display: grid; gap: .45rem; grid-template-columns: minmax(64px, .6fr) minmax(0, 1.45fr) minmax(86px, .9fr); }
.queue-filter .thai-date-picker { width: 330px; }
@media (max-width: 575.98px) { .queue-filter .thai-date-picker { width: 100%; } }
.supervisor-badge { align-items: center; background: #173d2a; border-radius: 999px; color: #aaf0c4; display: inline-flex; font-size: .7rem; font-weight: 750; gap: .28rem; margin: .35rem 0 0 .35rem; padding: .32rem .52rem; }
.service-items-table { min-width: 1280px; table-layout: fixed; }.service-items-table th:first-child, .service-items-table td:first-child { min-width: 360px; width: 36%; }.service-items-table .quantity-column { min-width: 100px; width: 100px; }.service-items-table .price-column { min-width: 175px; width: 175px; }.service-items-table .discount-column { min-width: 150px; width: 150px; }.service-items-table .total-column { min-width: 125px; width: 125px; }.service-items-table th:nth-child(6), .service-items-table td:nth-child(6) { min-width: 220px; width: 220px; }.service-items-table td.service-line-total { --bs-table-bg: #174b2d; background: #174b2d !important; box-shadow: inset 0 0 0 9999px #174b2d !important; color: #fff !important; font-size: .98rem; font-weight: 800; text-shadow: 0 0 10px rgba(118, 255, 168, .24); white-space: nowrap; }.service-items-footer { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-top: .75rem; }.service-items-footer > div { align-items: center; display: flex; gap: .8rem; }.service-items-footer strong { color: #86edaf; white-space: nowrap; }
@media (max-width: 575.98px) { .service-items-footer { align-items: flex-start; flex-direction: column; }.service-items-footer > div { justify-content: space-between; width: 100%; } }
@media (max-width: 575.98px) {
    .history-list { padding-left: .85rem; padding-right: .85rem; }
    .history-item { display: grid; gap: .75rem; grid-template-columns: 58px minmax(0, 1fr); }
    .history-date { grid-row: 1 / span 3; height: 64px; width: 58px; }
    .history-content { grid-column: 2; min-width: 0; }
    .history-actions { align-items: center; flex-direction: row; grid-column: 2; grid-row: 2; }
    .history-actions .btn { min-height: 42px; }
    .history-invoice-action { grid-column: 2; grid-row: 3; width: 100%; }
    .history-invoice-action .btn { justify-content: center; width: 100%; }
    .history-meta { gap: .5rem; }
    .history-meta .warranty-status { display: inline-flex; line-height: 1.45; max-width: 100%; white-space: normal; }
}
.service-category-choice { gap: .7rem; grid-template-columns: minmax(0, 1fr) auto; padding: .8rem .9rem; }
.service-category-choice-main { align-items: center; color: inherit; display: grid; gap: .25rem .8rem; grid-template-columns: auto minmax(0, 1fr); text-decoration: none; }
.service-category-choice-main > span:first-child { align-items: center; border-radius: 10px; display: inline-flex; font-size: 1.15rem; grid-row: span 2; height: 42px; justify-content: center; width: 42px; }
.service-category-choice-copy { display: grid; gap: .2rem; }.service-category-search-link { white-space: nowrap; }
.service-category-choice.air-conditioning .service-category-choice-main > span:first-child { background: #153b4d; color: #7de4ff; }
.service-category-choice.window-film .service-category-choice-main > span:first-child { background: #34285a; color: #c9b5ff; }
.service-category-choice.car-accessories .service-category-choice-main > span:first-child { background: #49381a; color: #ffd77c; }

.viewer-banner { align-items: center; background: #eef8f0; border: 1px solid #b8d7c0; border-radius: .85rem; color: #24542e; display: flex; gap: .75rem; margin-bottom: 1rem; padding: .85rem 1rem; }
.viewer-banner i { font-size: 1.25rem; }
.viewer-mode .editor-only,
.viewer-mode a.btn[href*="/Create"],
.viewer-mode a.btn[href*="/Edit"],
.viewer-mode a.btn[href*="/Delete"],
.viewer-mode form[action*="/Create"],
.viewer-mode form[action*="/Edit"],
.viewer-mode form[action*="/Delete"],
.viewer-mode form[action*="/Complete"],
.viewer-mode form[action*="/Cancel"] { display: none !important; }
