/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  tab-size: 4; /* 3 */
  font-family: Inter, system-ui, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.sticky{
  position: sticky;
}
.flex{
  display: flex;
}
.table{
  display: table;
}
.table-row{
  display: table-row;
}
.grid{
  display: grid;
}
.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.border{
  border-width: 1px;
}
.uppercase{
  text-transform: uppercase;
}
.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ─────────────────────────────────────────────
   AMEA BRAND CSS VARIABLES
───────────────────────────────────────────── */
:root {
  /* Forest */
  --amea-forest:       #2C4A2E;
  --amea-forest-dark:  #1E3320;
  --amea-forest-light: #3D6B40;

  /* Cream */
  --amea-cream:        #F5F0E8;
  --amea-cream-muted:  #D4CFC5;

  /* Copper */
  --amea-copper:       #8B4513;
  --amea-copper-light: #A05C2A;
  --amea-copper-pale:  #F2E8DF;

  /* Semantic */
  --amea-success:  #4A7C59;
  --amea-warning:  #C49A3C;
  --amea-danger:   #8B3A3A;
  --amea-neutral:  #5A6B5C;

  /* Page */
  --background: #F9F7F4;
  --foreground: #2C4A2E;

  /* ── Booking module light-theme tokens ── */
  --bk-bg-page:     #F9F7F4;
  --bk-bg-card:     #FFFFFF;
  --bk-bg-header:   #F5F0E8;
  --bk-bg-hover:    #F0EBE1;
  --bk-bg-input:    #FFFFFF;

  --bk-text-heading:   #2C4A2E;
  --bk-text-body:      #374151;
  --bk-text-muted:     #5A6B5C;
  --bk-text-subtle:    #9CA3AF;

  --bk-border:         #E5E0D8;
  --bk-border-focus:   #2C4A2E;
  --bk-shadow-card:    0 1px 4px rgba(44,74,46,0.08), 0 4px 16px rgba(44,74,46,0.06);
  --bk-shadow-hover:   0 4px 20px rgba(44,74,46,0.12);

  --bk-radius-sm: 6px;
  --bk-radius-md: 10px;
  --bk-radius-lg: 14px;

  /* Booking status tokens – Amea palette */
  --bk-pending-bg:     rgba(196,154,60,0.12);
  --bk-pending-text:   #8A6A1A;
  --bk-pending-border: rgba(196,154,60,0.35);

  --bk-confirmed-bg:     rgba(44,74,46,0.10);
  --bk-confirmed-text:   #2C4A2E;
  --bk-confirmed-border: rgba(44,74,46,0.28);

  --bk-checkin-bg:     rgba(74,124,89,0.12);
  --bk-checkin-text:   #4A7C59;
  --bk-checkin-border: rgba(74,124,89,0.30);

  --bk-checkout-bg:     rgba(90,107,92,0.10);
  --bk-checkout-text:   #5A6B5C;
  --bk-checkout-border: rgba(90,107,92,0.25);

  --bk-cancelled-bg:     rgba(139,58,58,0.10);
  --bk-cancelled-text:   #8B3A3A;
  --bk-cancelled-border: rgba(139,58,58,0.28);

  /* Button */
  --bk-btn-primary-bg:    #2C4A2E;
  --bk-btn-primary-text:  #F5F0E8;
  --bk-btn-primary-hover: #1E3320;
  --bk-btn-accent-bg:     #8B4513;
  --bk-btn-accent-text:   #F5F0E8;
  --bk-btn-ghost-border:  #D4CFC5;
  --bk-btn-ghost-text:    #5A6B5C;
  --bk-btn-ghost-hover:   #F0EBE1;
}

/* ─────────────────────────────────────────────
   BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  background-color: var(--background);
  color: var(--amea-forest);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────
   BOOKING MODULE — LIGHT AMEA THEME
───────────────────────────────────────────── */

/* Old navbar (hidden — replaced by Sidebar) */
.navbar { display: none; }

/* Layout */
.main-content {
  padding: 2rem 2.5rem;
  max-width: 1200px;
}

.page-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bk-text-heading);
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--bk-text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--bk-text-muted);
  text-decoration: none;
  margin-bottom: 0.35rem;
  transition: color 0.12s;
}
.back-link:hover { color: var(--bk-text-heading); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1rem;
  border-radius: var(--bk-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.14s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--bk-btn-primary-bg);
  color: var(--bk-btn-primary-text);
}
.btn-primary:hover:not(:disabled) {
  background: var(--bk-btn-primary-hover);
  box-shadow: 0 4px 12px rgba(44,74,46,0.25);
}

.btn-secondary {
  background: var(--bk-bg-card);
  color: var(--bk-text-body);
  border: 1px solid var(--bk-border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bk-bg-hover); }

.btn-ghost {
  background: transparent;
  color: var(--bk-btn-ghost-text);
  border: 1px solid var(--bk-btn-ghost-border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bk-btn-ghost-hover);
  color: var(--bk-text-body);
}

/* ── Status badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-sm { font-size: 0.68rem; padding: 0.12rem 0.45rem; }

.badge-pending    { background: var(--bk-pending-bg);    color: var(--bk-pending-text);    border-color: var(--bk-pending-border); }
.badge-confirmed  { background: var(--bk-confirmed-bg);  color: var(--bk-confirmed-text);  border-color: var(--bk-confirmed-border); }
.badge-checked-in { background: var(--bk-checkin-bg);    color: var(--bk-checkin-text);    border-color: var(--bk-checkin-border); }
.badge-checked-out{ background: var(--bk-checkout-bg);   color: var(--bk-checkout-text);   border-color: var(--bk-checkout-border); }
.badge-cancelled  { background: var(--bk-cancelled-bg);  color: var(--bk-cancelled-text);  border-color: var(--bk-cancelled-border); }

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bk-bg-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--bk-shadow-card);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--bk-shadow-hover); }

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--bk-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-icon { color: var(--bk-text-muted); }
.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--bk-text-heading);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.stat-sub { font-size: 0.72rem; color: var(--bk-text-muted); }

/* Colored left-border accents */
.stat-card-total    { border-left: 3px solid var(--amea-forest); }
.stat-card-revenue  { border-left: 3px solid var(--amea-copper); }
.stat-card-checkin  { border-left: 3px solid var(--amea-success); }
.stat-card-checkout { border-left: 3px solid var(--amea-neutral); }
.stat-card-cancelled{ border-left: 3px solid var(--amea-danger); }

/* ── Toolbar / Filters ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bk-bg-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-md);
  box-shadow: var(--bk-shadow-card);
}

.filters { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.filter-icon { color: var(--bk-text-muted); flex-shrink: 0; }

.filter-select {
  background: var(--bk-bg-input);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  color: var(--bk-text-body);
  padding: 0.38rem 0.7rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.14s;
}
.filter-select:focus { border-color: var(--bk-border-focus); }

.view-toggle { display: flex; gap: 0.25rem; }
.toggle-btn {
  padding: 0.38rem 0.8rem;
  border-radius: var(--bk-radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--bk-border);
  color: var(--bk-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.13s;
}
.toggle-btn.active {
  background: var(--bk-bg-header);
  color: var(--bk-text-heading);
  border-color: var(--amea-cream-muted);
  font-weight: 600;
}
.toggle-btn:not(.active):hover {
  background: var(--bk-bg-hover);
  color: var(--bk-text-body);
}

/* ── Booking table ── */
.table-wrapper {
  background: var(--bk-bg-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  overflow: hidden;
  box-shadow: var(--bk-shadow-card);
}

.booking-table { width: 100%; border-collapse: collapse; }

.booking-table thead { background: var(--bk-bg-header); }
.booking-table th {
  padding: 0.75rem 1.1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bk-text-muted);
  border-bottom: 1px solid var(--bk-border);
}

.th-sortable { cursor: pointer; user-select: none; }
.th-sortable:hover { color: var(--bk-text-heading); }
.th-sortable { display: table-cell; }
.th-sortable svg { display: inline; vertical-align: middle; margin-left: 4px; }
.sort-icon-inactive { opacity: 0.3; }

.table-row { border-bottom: 1px solid var(--bk-border); transition: background 0.1s; }
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: #FAFAF8; }

.booking-table td {
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  vertical-align: middle;
  color: var(--bk-text-body);
}

.td-guest { display: flex; flex-direction: column; gap: 0.12rem; }
.guest-name { font-weight: 600; color: var(--bk-text-heading); }
.booking-code { font-size: 0.7rem; color: var(--bk-text-muted); font-family: monospace; }

.room-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(44,74,46,0.08);
  color: var(--amea-forest);
  border-radius: var(--bk-radius-sm);
  padding: 0.18rem 0.55rem;
  font-weight: 700;
  font-size: 0.75rem;
}
.room-name { font-weight: 400; color: var(--bk-text-muted); }

.td-date { color: var(--bk-text-muted); font-size: 0.82rem; }
.td-price { font-weight: 700; color: var(--amea-copper); }

.status-select {
  background: var(--bk-bg-input);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  color: var(--bk-text-body);
  padding: 0.28rem 0.48rem;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
.status-select:focus { border-color: var(--bk-border-focus); }

.action-buttons { display: flex; gap: 0.35rem; }
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--bk-radius-sm);
  border: 1px solid var(--bk-border);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--bk-text-muted);
  transition: all 0.13s;
}
.action-btn:hover { background: var(--bk-bg-hover); border-color: var(--amea-cream-muted); }
.action-view:hover  { color: var(--amea-forest); }
.action-edit:hover  { color: var(--amea-copper); }
.action-delete:hover { color: var(--amea-danger); }

/* ── Room availability grid ── */
.availability-grid-wrapper {
  background: var(--bk-bg-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--bk-shadow-card);
}

.grid-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--bk-text-heading);
  text-transform: capitalize;
}

.availability-scroll { overflow-x: auto; }
.availability-table { border-collapse: collapse; min-width: 100%; }
.availability-table th, .availability-table td { border: 1px solid var(--bk-border); }

.room-col-header {
  background: var(--bk-bg-header);
  padding: 0.5rem 0.75rem;
  font-size: 0.68rem;
  color: var(--bk-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 90px;
}

.day-header {
  background: var(--bk-bg-header);
  text-align: center;
  padding: 0.3rem 0.2rem;
  min-width: 34px;
}
.day-header.today { background: rgba(44,74,46,0.10); }
.day-num { font-size: 0.78rem; font-weight: 700; color: var(--bk-text-heading); }
.day-name { font-size: 0.58rem; color: var(--bk-text-muted); text-transform: capitalize; }

.room-label-cell {
  background: var(--bk-bg-header);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}
.room-code { font-weight: 700; font-size: 0.82rem; color: var(--amea-forest); display: block; }
.room-name-sm { font-size: 0.68rem; color: var(--bk-text-muted); }

.day-cell { height: 26px; cursor: default; }
.day-cell.free { background: transparent; }
.day-cell.today-col { background: rgba(44,74,46,0.04); }

.day-cell.occupied-pending     { background: var(--bk-pending-bg); }
.day-cell.occupied-confirmed   { background: var(--bk-confirmed-bg); }
.day-cell.occupied-checked_in,
.day-cell.occupied-checked-in  { background: var(--bk-checkin-bg); }
.day-cell.occupied-checked_out,
.day-cell.occupied-checked-out { background: var(--bk-checkout-bg); }
.day-cell.occupied-cancelled   { background: var(--bk-cancelled-bg); }

.grid-legend { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--bk-text-muted); }
.legend-dot { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.legend-free { background: var(--bk-border); }

/* ── Booking form ── */
.form-card {
  background: var(--bk-bg-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  padding: 2rem;
  max-width: 700px;
  box-shadow: var(--bk-shadow-card);
}

.booking-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.38rem; }
.form-group-full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bk-text-muted);
  letter-spacing: 0.02em;
}
.required { color: var(--amea-danger); }

.form-input {
  background: var(--bk-bg-input);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  color: var(--bk-text-body);
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
  width: 100%;
}
.form-input:focus {
  border-color: var(--bk-border-focus);
  box-shadow: 0 0 0 3px rgba(44,74,46,0.10);
}
.form-input::placeholder { color: var(--bk-text-subtle); }

.form-textarea { resize: vertical; min-height: 80px; }

.form-error {
  background: var(--bk-cancelled-bg);
  border: 1px solid var(--bk-cancelled-border);
  color: var(--bk-cancelled-text);
  padding: 0.7rem 1rem;
  border-radius: var(--bk-radius-sm);
  font-size: 0.84rem;
}

.form-actions { display: flex; justify-content: flex-end; gap: 0.65rem; padding-top: 0.5rem; }

/* ── Detail card ── */
.detail-card {
  background: var(--bk-bg-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  padding: 2rem;
  box-shadow: var(--bk-shadow-card);
}

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.detail-item { display: flex; flex-direction: column; gap: 0.28rem; }
.detail-item-full { grid-column: 1 / -1; }

.detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bk-text-muted);
}
.detail-value { font-size: 0.92rem; color: var(--bk-text-body); }
.detail-price { font-size: 1.15rem; font-weight: 700; color: var(--amea-copper); }
.detail-mono { font-family: monospace; font-size: 0.83rem; color: var(--bk-text-muted); }
.detail-meta { font-size: 0.78rem; color: var(--bk-text-subtle); }
.booking-code-title { font-size: 0.95rem; font-weight: 400; color: var(--bk-text-muted); }

/* ── States ── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  color: var(--bk-text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bk-border);
  border-top-color: var(--amea-forest);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem;
  text-align: center;
  color: var(--bk-text-muted);
  background: var(--bk-bg-header);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem;
  text-align: center;
  color: var(--amea-danger);
}

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.7s linear infinite; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-content { padding: 1rem 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .toolbar { flex-direction: column; align-items: flex-start; }
}

