:root {
  --bg: #f3f6fb;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --text: #142033;
  --muted: #6b7a90;
  --line: rgba(20, 32, 51, 0.09);
  --line-strong: rgba(20, 32, 51, 0.15);
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --accent: #c49a53;
  --success: #14805e;
  --warning: #d79d19;
  --danger: #d8485f;
  --sidebar: #0f172a;
  --sidebar-2: #16213d;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(196, 154, 83, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
a { color: inherit; }
small, .text-secondary, .text-muted { color: var(--muted) !important; }
.container-fluid { max-width: 1740px; }

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.22), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(196,154,83,.18), transparent 24%),
    linear-gradient(135deg, #09111f 0%, #0f172a 55%, #172545 100%);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(360px, .88fr);
}
.login-brand-panel {
  color: #fff;
  padding: 72px 72px 54px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before,
.login-brand-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}
.login-brand-panel::before {
  width: 360px; height: 360px;
  background: rgba(37,99,235,.14);
  top: -120px; right: -80px;
}
.login-brand-panel::after {
  width: 280px; height: 280px;
  background: rgba(196,154,83,.12);
  bottom: -100px; left: -100px;
}
.login-brand-panel h1 {
  font-size: clamp(2.8rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 1.04;
  margin: 0 0 16px;
}
.login-brand-panel .lead {
  color: rgba(255,255,255,.8);
  max-width: 620px;
  font-size: 1.06rem;
}
.login-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  color: #eef4ff;
  font-weight: 600;
}
.login-feature-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  max-width: 680px;
}
.login-feature-card {
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.login-feature-card i {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login-card {
  width: 100%;
  max-width: 560px;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 30px;
  box-shadow: 0 20px 70px rgba(0,0,0,.2);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.eyebrow, .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--accent);
  font-weight: 800;
}
.input-group-text {
  border-radius: 16px 0 0 16px;
  border-color: var(--line);
  background: #f8fbff;
}
.input-group > .form-control,
.input-group > .form-select { border-color: var(--line); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 290px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 22%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  min-height: 100vh;
  z-index: 1020;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 10px 20px;
}
.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 25px rgba(14,165,233,.22);
}
.brand-name { font-weight: 800; font-size: 1.08rem; }
.brand-sub { color: rgba(255,255,255,.62); font-size: .84rem; }
.sidebar-section-title {
  padding: 0 14px 10px;
  color: rgba(255,255,255,.44);
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.sidebar-nav { display: grid; gap: 8px; }
.sidebar .nav-link {
  position: relative;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.sidebar .nav-link i { width: 18px; text-align: center; }
.sidebar .nav-link span { font-weight: 600; }
.sidebar .nav-link small {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .68rem;
}
.sidebar .nav-link:hover {
  transform: translateX(2px);
  background: rgba(255,255,255,.07);
}
.sidebar .nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(59,130,246,.22), rgba(14,165,233,.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
}
.sidebar .nav-link.disabled { opacity: .54; cursor: default; }
.sidebar-footer {
  margin-top: auto;
  padding: 18px 10px 8px;
}
.sidebar-footer-card {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.sidebar-footer-card .btn { border-radius: 14px; }
.app-main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 30px 0;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mobile-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm);
}
.page-title {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: -.03em;
}
.page-content { padding: 24px 30px 34px; }
.user-chip,
.glass-chip {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  font-weight: 800;
}

.hero-band {
  margin-bottom: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #182848 70%, #1d4ed8 100%);
  color: #fff;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-md);
}
.hero-band .hero-title { font-size: clamp(1.45rem, 2.1vw, 2.3rem); font-weight: 900; }
.hero-band .hero-subtitle { color: rgba(255,255,255,.78); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.panel-card,
.metric-card,
.mini-stat,
.form-section,
.kpi-strip,
.planner-toolbar,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.panel-card .card-header,
.panel-card .card-footer {
  background: transparent;
  border-color: var(--line);
  padding: 18px 22px;
}
.panel-card .card-body { padding: 22px; }
.metric-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.metric-card::after {
  content: '';
  position: absolute;
  inset: auto -24px -24px auto;
  width: 90px;
  height: 90px;
  background: rgba(37,99,235,.05);
  border-radius: 50%;
}
.metric-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.42rem;
  flex-shrink: 0;
}
.metric-label { font-size: .92rem; color: var(--muted); font-weight: 600; }
.metric-value { font-size: 1.95rem; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.mini-stat {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-stat span { color: var(--muted); font-weight: 600; }
.mini-stat strong { font-size: 1.25rem; font-weight: 800; }
.kpi-strip {
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
}
.summary-pill,
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
}

.card { border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.table-responsive { border-radius: 0 0 24px 24px; }
.table-modern thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  color: #41506a;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.table-modern td,
.table-modern th { padding: 16px 18px; }
.table-modern tbody tr { transition: background .15s ease; }
.table-modern tbody tr:hover { background: rgba(37,99,235,.03); }
.table-modern tbody tr + tr td { border-color: rgba(20,32,51,.05); }

.form-label { font-size: .84rem; font-weight: 800; color: #42526a; margin-bottom: 8px; }
.form-control,
.form-select {
  min-height: 46px;
  border-radius: 16px;
  border-color: var(--line);
  background: #fff;
  padding: 10px 14px;
  box-shadow: none;
}
textarea.form-control { min-height: 116px; }
.form-control:focus,
.form-select:focus {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
}
.form-section {
  padding: 22px;
  height: 100%;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.form-section-title i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37,99,235,.1);
  color: var(--primary);
}
.form-hint { color: var(--muted); font-size: .87rem; }

.btn {
  border-radius: 15px;
  font-weight: 700;
  padding: 10px 16px;
  border-width: 1px;
}
.btn-lg { padding: 13px 18px; border-radius: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); }
.btn-light {
  background: #fff;
  border-color: var(--line);
}
.badge { padding: 7px 10px; border-radius: 999px; font-weight: 700; }

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}
.status-confirmed { background: var(--success); }
.status-pending { background: var(--warning); }
.status-cancelled { background: var(--danger); }

.booking-ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 800;
}
.data-stack { display: grid; gap: 4px; }
.data-stack strong { font-size: .94rem; }
.data-stack small { color: var(--muted); }

.timeline-list { display: grid; gap: 14px; }
.timeline-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.planner-toolbar {
  padding: 18px 20px;
  margin-bottom: 18px;
}
.planner-grid {
  display: grid;
  gap: 16px;
}
.room-lane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.room-lane-head {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, #fbfdff, #f6f9fd);
  border-bottom: 1px solid var(--line);
}
.room-dropzone {
  min-height: 108px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.room-dropzone.drag-over {
  background: rgba(37,99,235,.05);
  outline: 2px dashed rgba(37,99,235,.28);
  outline-offset: -10px;
}
.booking-chip {
  min-width: 260px;
  max-width: 360px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
  padding: 14px;
  cursor: grab;
}
.booking-chip[data-status="1"] { border-left: 4px solid #198754; }
.booking-chip[data-status="2"] { border-left: 4px solid #ffc107; }
.booking-chip[data-status="3"] { border-left: 4px solid #0dcaf0; }
.booking-chip[data-status="4"] { border-left: 4px solid #64748b; }
.booking-chip[data-status="0"] { border-left: 4px solid #dc3545; }
.chip-title { font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.chip-meta { color: var(--muted); font-size: .85rem; }
.empty-state {
  padding: 40px 28px;
  text-align: center;
}
.empty-state i {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  color: var(--primary);
  background: rgba(37,99,235,.1);
}

@media (max-width: 1199.98px) {
  .page-content, .topbar { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 991.98px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 16px 50px rgba(0,0,0,.3);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }
  .app-main { width: 100%; }
  .topbar { padding-top: 18px; }
  .topbar-actions { display: none; }
}
@media (max-width: 767.98px) {
  .page-content, .topbar { padding-left: 16px; padding-right: 16px; }
  .hero-band { padding: 22px 18px; border-radius: 22px; }
  .form-section, .panel-card .card-body { padding: 18px; }
  .table-modern td, .table-modern th { padding: 13px 14px; }
  .room-dropzone { padding: 12px; }
  .booking-chip { min-width: 100%; max-width: 100%; }
  .login-feature-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Macsoftlabs Premium Teal Design Pack
   Merged from new_booking.php into global app.css
   Use these classes across bookings, supplier payments and reports.
   ========================================================= */

:root{
  --brand:#0f766e;
  --brand-dark:#0b5e58;
  --brand-soft:#ecf8f6;
  --brand-rgb:15,118,110;
  --accent:#d4af37;
  --gold:#d4af37;
  --bg:#f4f7fb;
  --bg-2:#eef4f8;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
  --line:rgba(15,23,42,.08);
  --line-strong:rgba(15,23,42,.15);
  --primary:var(--brand);
  --primary-2:var(--brand-dark);
  --success:#14805e;
  --warning:#d79d19;
  --danger:#d8485f;
  --sidebar:#0f172a;
  --sidebar-2:#16213d;
  --shadow:0 12px 35px rgba(15,23,42,.08);
  --shadow-soft:0 12px 35px rgba(15,23,42,.08);
  --shadow-sm:0 10px 30px rgba(15,23,42,.05);
  --shadow-md:0 18px 40px rgba(15,23,42,.08);
  --radius-sm:14px;
  --radius:18px;
  --radius-xl:24px;
  --radius-lg:28px;
}

html,body{
  background:linear-gradient(180deg,#f7fafc 0%,#eef4f8 100%);
  color:var(--text);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
}

body.page-padded,
body.costing-page,
body.supplier-page{
  padding:18px;
}

/* Page containers */
.page-shell{
  width:calc(100% - 20px);
  max-width:none;
  margin:0 auto;
}
.page-shell-wide{
  width:98%;
  max-width:1920px;
  margin:0 auto;
}

/* Premium hero used by new_booking.php and supplier pages */
.hero-card{
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.15), transparent 28%),
    linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);
  color:#fff;
  border-radius:24px;
  padding:28px 30px;
  box-shadow:var(--shadow);
  margin-bottom:22px;
  position:relative;
  overflow:hidden;
}
.hero-card:after{
  content:"";
  position:absolute;
  right:-60px;
  top:-60px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
}
.hero-title{
  margin:0;
  font-size:30px;
  font-weight:800;
  letter-spacing:.2px;
}
.hero-subtitle{
  margin-top:8px;
  color:rgba(255,255,255,.88);
  font-size:14px;
}
.hero-stats{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
}
.hero-pill{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  padding:10px 14px;
  min-width:150px;
  backdrop-filter:blur(4px);
}
.hero-pill .label{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.8px;
  color:rgba(255,255,255,.7);
  font-weight:600;
}
.hero-pill .value{
  display:block;
  font-size:18px;
  font-weight:800;
  margin-top:4px;
  color:#fff;
}

/* Layouts */
.layout-grid{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:22px;
  align-items:start;
}
@media (max-width:1300px){
  .layout-grid{ grid-template-columns:1fr; }
}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:20px;
}
@media (max-width:1100px){
  .summary-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px){
  .summary-grid{ grid-template-columns:1fr; }
}

.grid-3,.grid-4,.grid-6{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}
.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.grid-6{ grid-template-columns:repeat(6,minmax(0,1fr)); }
@media (max-width:1200px){ .grid-6{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px){ .grid-4,.grid-3,.grid-6{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .grid-4,.grid-3,.grid-6{ grid-template-columns:1fr; } }

/* Cards and panels */
.content-card,.sidebar-card,.day-card,.booking-card,.notice-box,.app-card{
  background:var(--card);
  border:1px solid rgba(15,23,42,.05);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.content-card{ padding:24px; }
.sidebar-card{
  padding:22px;
  position:sticky;
  top:18px;
}
.booking-card{ padding:20px; margin-bottom:20px; }
.notice-box{
  padding:18px;
  margin-bottom:20px;
  border:1px solid #f0d9a7;
  background:#fffaf0;
}
.app-card{ padding:20px; margin-bottom:20px; }

.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.section-title h3{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#12212f;
}
.section-title small{
  color:var(--muted);
  font-size:12px;
}

.soft-panel{
  background:linear-gradient(180deg,#fbfefe 0%,#f8fbfd 100%);
  border:1px solid #e3edf2;
  border-radius:18px;
  padding:18px;
  margin-bottom:18px;
}
.soft-panel-title{
  font-size:14px;
  font-weight:800;
  margin:0 0 12px;
  color:#13303a;
  display:flex;
  align-items:center;
  gap:8px;
}

.field-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 14px 10px;
  transition:.18s ease;
  min-height:88px;
}
.field-card:hover{
  border-color:rgba(var(--brand-rgb),.35);
  box-shadow:0 10px 24px rgba(var(--brand-rgb),.08);
}
.field-card label,
.modal-body label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.7px;
  font-weight:700;
  color:#5f6b7a;
  margin-bottom:8px;
}

/* Forms */
.form-control,
.form-select,
select.form-control,
textarea.form-control{
  border-radius:12px;
  border:1px solid #d8e0e7;
  box-shadow:none;
  min-height:42px;
  font-size:13px;
  padding:10px 12px;
}
.form-control:focus,
.form-select:focus{
  border-color:rgba(var(--brand-rgb),.45);
  box-shadow:0 0 0 3px rgba(var(--brand-rgb),.10);
}
textarea.form-control{
  min-height:90px;
  resize:vertical;
}
.wide-note{ min-height:110px; }
.readonly-box{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  min-height:42px;
  font-size:13px;
}

/* Buttons */
.btn{
  border-radius:12px;
  font-weight:700;
  padding:10px 16px;
  box-shadow:none;
}
.btn-hero{ background:#fff; color:var(--brand); border:none; }
.btn-hero:hover{ background:#f3faf9; color:var(--brand-dark); }
.btn-brand,
.btn-primary.btn-brand{
  background:var(--brand);
  color:#fff;
  border:1px solid transparent;
}
.btn-brand:hover,
.btn-brand:focus{
  background:var(--brand-dark);
  color:#fff;
}
.btn-soft{
  background:var(--brand-soft);
  color:var(--brand-dark);
  border:1px solid rgba(var(--brand-rgb),.14);
}
.btn-soft:hover,
.btn-soft:focus{
  background:#dff4ef;
  color:var(--brand-dark);
}
.btn-gold{
  background:linear-gradient(135deg,#e7c75c,#cda737);
  color:#2b2209;
  border:1px solid transparent;
}
.btn-gold:hover{ color:#2b2209; opacity:.95; }
.btn-danger-soft{
  background:#fff2f0;
  color:#a93226;
  border:1px solid #f3c2bc;
}
.btn-mini{
  padding:7px 12px;
  font-size:12px;
  border-radius:10px;
}
.mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  border-radius:10px;
  border:none;
  margin-right:4px;
  color:#fff;
  font-weight:700;
  transition:.18s ease;
}
.mini-btn:hover{ transform:translateY(-1px); opacity:.95; }
.mini-notes{ background:#64748b; }
.mini-dup{ background:#0284c7; }
.mini-remove{ background:#dc2626; }

/* Action bars */
.action-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin:18px 0 16px;
}
.action-left,.action-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.day-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Day cards / accordions */
.day-card{
  margin-bottom:18px;
  overflow:hidden;
}
.day-header{
  padding:18px 20px;
  border-bottom:1px solid #edf2f7;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbfc 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.day-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.day-badge{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  box-shadow:0 10px 20px rgba(var(--brand-rgb),.18);
}
.day-title{
  font-size:18px;
  font-weight:800;
  margin:0;
  color:#102532;
}
.day-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}
.day-body{ padding:18px 20px 20px; }
.itinerary-box{
  padding:14px 16px;
  border:1px solid #e8eef3;
  border-radius:14px;
  background:#f9fcfd;
  margin-bottom:14px;
}
.itinerary-box .label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#708090;
  font-weight:800;
  margin-bottom:6px;
}

/* Booking meta */
.booking-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
.booking-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
@media (max-width:1100px){ .booking-meta{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px){ .booking-meta{ grid-template-columns:1fr; } }
.meta-item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  background:linear-gradient(180deg,#fbfefe 0%,#f8fbfd 100%);
}
.meta-item .k{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#708090;
  font-weight:800;
}
.meta-item .v{
  display:block;
  margin-top:4px;
  font-size:15px;
  font-weight:700;
  color:#102532;
}

/* Tables */
.table-wrap,
.line-table-wrap{
  border:1px solid #e7edf2;
  border-radius:16px;
  overflow:auto;
  background:#fff;
}
.table-payments,
.line-table{
  width:100%;
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  min-width:1200px;
}
.table-payments thead th,
.line-table thead th,
.table-modern.teal-head thead th{
  position:sticky;
  top:0;
  background:var(--brand);
  color:#fff;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
  border:none !important;
  padding:12px 8px !important;
  white-space:nowrap;
}
.table-payments tbody td,
.line-table tbody td{
  vertical-align:middle !important;
  padding:10px 8px !important;
  border-top:1px solid #eef2f6 !important;
  background:#fff;
}
.line-table tbody td{ padding:8px !important; }
.line-table tbody tr.main_row:hover td,
.table-payments tbody tr:hover td{
  background:#fbfffe;
}
.line-table .form-control{
  min-height:36px;
  padding:6px 10px;
  font-size:12px;
  border-radius:10px;
}
.notes_row td{ background:#fafcfe !important; }
.notes_row input{
  background:#fffef8;
  border-style:dashed;
}
.table-clean{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(15,23,42,.05);
}
.table-clean .table{ margin-bottom:0; }
.table-clean .table thead th{
  background:var(--brand);
  color:#fff;
  border:none !important;
}

/* Metrics and totals */
.metric-box{
  background:#fff;
  border:1px solid rgba(15,23,42,.05);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
}
.metric-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#708090;
  font-weight:800;
  margin-bottom:6px;
}
.metric-value{
  font-size:24px;
  font-weight:800;
  color:#102532;
  line-height:1.1;
}
.metric-help{
  margin-top:6px;
  color:#7a8796;
  font-size:12px;
}
.totals-stack{ display:grid; gap:12px; }
.sticky-actions{
  margin-top:18px;
  display:grid;
  gap:10px;
}
.sticky-actions .btn{
  width:100%;
  padding:12px 16px;
  font-size:14px;
}

/* Chips and helper text */
.subtle-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-size:12px;
  font-weight:700;
  margin-right:6px;
  margin-bottom:6px;
  border:1px solid rgba(var(--brand-rgb),.12);
}
.helper-note{
  padding:12px 14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px dashed #d6dee6;
  color:#607080;
  font-size:12px;
  line-height:1.55;
  max-width:560px;
}
.accordion-placeholder{
  color:#8693a2;
  font-size:13px;
}

/* Status and payment badges */
.pay-badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.3px;
}
.pay-badge.unpaid{ background:#fff0f0; color:#c0392b; }
.pay-badge.partial{ background:#fff7e6; color:#b9770e; }
.pay-badge.paid{ background:#eafaf1; color:#1e8449; }

/* Modals */
.modal-content{
  border-radius:18px;
  border:none;
  box-shadow:0 24px 70px rgba(15,23,42,.20);
  overflow:hidden;
}
.modal-header.pro-header{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  border:0;
}
.modal-header.pro-header .close{
  color:#fff;
  opacity:1;
  text-shadow:none;
}
.modal-footer{
  border-top:1px solid #eef2f6;
  background:#fbfdff;
}

/* Validation and alerts */
.validation-box{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff4f2;
  border:1px solid #f4c7c3;
  color:#8b1e12;
}
.validation-box ul{
  margin:8px 0 0 18px;
  padding:0;
}

/* List header */
.list-view-head{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  border-radius:22px;
  padding:24px;
  box-shadow:var(--shadow);
  margin-bottom:20px;
  text-align:center;
}

/* Drag / sortable helpers */
.ui-sortable-placeholder{
  visibility:visible !important;
  background:#eef8f6 !important;
  border:2px dashed #7bc6b8 !important;
  height:56px !important;
}
.sortable-day-placeholder{
  visibility:visible !important;
  background:#eef8f6 !important;
  border:2px dashed #7bc6b8 !important;
  border-radius:18px !important;
  min-height:120px !important;
  margin-bottom:18px !important;
}

/* Utility helpers */
.text-right{ text-align:right !important; }
.text-center{ text-align:center !important; }
.text-left{ text-align:left !important; }
.no-margin{ margin:0 !important; }
.mb-0{ margin-bottom:0 !important; }
.mt-10{ margin-top:10px !important; }
.mt-12{ margin-top:12px !important; }
.mt-14{ margin-top:14px !important; }
.mt-18{ margin-top:18px !important; }

@media (max-width:767px){
  body.page-padded,
  body.costing-page,
  body.supplier-page{ padding:12px; }
  .hero-card{ padding:22px 18px; border-radius:20px; }
  .hero-title{ font-size:23px; }
  .hero-pill{ min-width:100%; }
  .content-card,.sidebar-card,.app-card,.booking-card{ padding:16px; }
  .day-header,.day-body{ padding:16px; }
}
