:root {
    --navy: #0B2342;
    --navy-2: #132f55;
    --navy-3: #1b3a63;
    --gold: #A77F41;
    --gold-light: #c5a36a;
    --gold-soft: #f2eadf;
    --cream: #f7f4ee;
    --paper: #ffffff;
    --ink: #172033;
    --muted: #687386;
    --line: #e2e6ec;
    --line-dark: #cdd4dd;
    --success: #1f7a5c;
    --success-bg: #e6f5ef;
    --warning: #9a6500;
    --warning-bg: #fff4d7;
    --danger: #b13a42;
    --danger-bg: #fdebed;
    --info: #23679d;
    --info-bg: #e9f3fb;
    --shadow-sm: 0 8px 24px rgba(11, 35, 66, .06);
    --shadow-md: 0 18px 50px rgba(11, 35, 66, .12);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --sidebar: 286px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #f4f6f9;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex: none; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: var(--sidebar);
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(167,127,65,.18), transparent 27%),
        linear-gradient(180deg, #071b34 0%, var(--navy) 58%, #07182e 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform .25s ease;
}
.sidebar-brand { padding: 26px 24px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-logo-wrap { background: #fff; border-radius: 15px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.sidebar-logo { width: 100%; height: 68px; object-fit: contain; }
.sidebar-subtitle { margin-top: 12px; color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.sidebar-nav { padding: 20px 16px; flex: 1; }
.nav-section { margin: 18px 12px 8px; color: rgba(255,255,255,.42); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255,255,255,.74);
    margin-bottom: 4px;
    transition: background .18s, color .18s, transform .18s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateX(2px); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(167,127,65,.30), rgba(167,127,65,.12)); box-shadow: inset 3px 0 0 var(--gold); }
.nav-link.active svg { color: var(--gold-light); }
.nav-link.new-booking { background: var(--gold); color: #fff; margin: 0 0 18px; justify-content: center; font-weight: 700; box-shadow: 0 12px 24px rgba(167,127,65,.20); }
.nav-link.new-booking:hover { background: #b88d49; transform: translateY(-1px); }
.sidebar-user { margin: 12px 16px 18px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.04); }
.user-row { display:flex; align-items:center; gap:10px; }
.user-avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--gold); font-weight:800; }
.user-name { font-size:13px; font-weight:700; }
.user-role { font-size:11px; color:rgba(255,255,255,.5); text-transform:capitalize; }
.logout-button { margin-top: 12px; width:100%; display:flex; gap:8px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.12); background:transparent; color:rgba(255,255,255,.7); border-radius:10px; padding:8px 10px; cursor:pointer; }
.logout-button:hover { color:#fff; background:rgba(255,255,255,.06); }

.app-main { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
    position: sticky; top: 0; z-index: 30;
    min-height: 78px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.topbar-left { display:flex; align-items:center; gap:14px; min-width:0; }
.mobile-menu { display:none; width:42px; height:42px; place-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--navy); cursor:pointer; }
.page-kicker { color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.page-title { margin:0; color:var(--navy); font-family: Georgia, "Times New Roman", serif; font-size:26px; line-height:1.15; font-weight:500; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.today-chip { padding:9px 13px; border-radius:999px; background:var(--cream); color:var(--muted); font-size:13px; border:1px solid #ece6db; }
.content { max-width: 1500px; margin: 0 auto; padding: 30px 32px 52px; }
.sidebar-overlay { display:none; position:fixed; inset:0; z-index:40; background:rgba(5,18,35,.55); backdrop-filter:blur(2px); }

.hero-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, #15365d 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.hero-panel::after { content:""; position:absolute; width:260px; height:260px; right:-90px; top:-110px; border:1px solid rgba(167,127,65,.35); border-radius:50%; box-shadow:0 0 0 34px rgba(167,127,65,.06), 0 0 0 74px rgba(167,127,65,.04); }
.hero-content { position:relative; z-index:1; display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.hero-eyebrow { color:var(--gold-light); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.18em; }
.hero-title { margin:6px 0 4px; color:#fff; font-family:Georgia,serif; font-size:31px; font-weight:500; }
.hero-copy { max-width:720px; margin:0; color:rgba(255,255,255,.68); }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; position:relative; z-index:2; }

.grid { display:grid; gap:20px; }
.grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.grid-main { grid-template-columns:minmax(0,1.75fr) minmax(320px,.75fr); }
.grid-sidebar { grid-template-columns:minmax(0,1fr) 360px; }
.span-2 { grid-column: span 2; }

.metric-card {
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:20px;
    box-shadow:var(--shadow-sm);
    position:relative;
    overflow:hidden;
}
.metric-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--gold); opacity:.75; }
.metric-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.metric-label { color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.metric-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; color:var(--gold); background:var(--gold-soft); }
.metric-value { margin-top:10px; color:var(--navy); font-family:Georgia,serif; font-size:30px; line-height:1; }
.metric-note { margin-top:8px; color:var(--muted); font-size:12px; }
.currency-lines { margin-top:9px; display:flex; flex-wrap:wrap; gap:8px; }
.currency-pill { border-radius:999px; padding:6px 9px; background:var(--cream); border:1px solid #ece6dc; color:var(--navy); font-weight:700; font-size:12px; }

.card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:19px 21px; border-bottom:1px solid var(--line); }
.card-title { margin:0; color:var(--navy); font-family:Georgia,serif; font-size:20px; font-weight:500; }
.card-subtitle { margin:3px 0 0; color:var(--muted); font-size:13px; }
.card-body { padding:21px; }
.card-footer { padding:15px 21px; border-top:1px solid var(--line); background:#fbfcfd; border-radius:0 0 var(--radius) var(--radius); }

.btn { appearance:none; border:1px solid transparent; border-radius:11px; min-height:42px; padding:9px 15px; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:700; font-size:13px; cursor:pointer; transition:transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { transform:translateY(-1px); }
.btn-primary { background:var(--navy); color:#fff; box-shadow:0 10px 22px rgba(11,35,66,.16); }
.btn-primary:hover { background:var(--navy-2); }
.btn-gold { background:var(--gold); color:#fff; box-shadow:0 10px 22px rgba(167,127,65,.18); }
.btn-gold:hover { background:#b68a47; }
.btn-light { background:#fff; color:var(--navy); border-color:var(--line); }
.btn-light:hover { border-color:var(--gold-light); }
.btn-soft { background:var(--gold-soft); color:#815f2a; border-color:#eadcc6; }
.btn-success { background:var(--success); color:#fff; }
.btn-danger { background:#fff; color:var(--danger); border-color:#efcdd1; }
.btn-danger:hover { background:var(--danger-bg); }
.btn-white { background:#fff; color:var(--navy); }
.btn-ghost-white { background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.15); }
.btn-sm { min-height:34px; padding:6px 10px; border-radius:9px; font-size:12px; }
.btn-icon { width:40px; padding:0; }
.btn-group { display:flex; flex-wrap:wrap; gap:9px; }

.form-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
.col-12 { grid-column:span 12; }
.col-8 { grid-column:span 8; }
.col-6 { grid-column:span 6; }
.col-4 { grid-column:span 4; }
.col-3 { grid-column:span 3; }
.col-2 { grid-column:span 2; }
.field { display:block; min-width:0; }
.field-label { display:block; margin-bottom:6px; color:#354156; font-size:12px; font-weight:750; letter-spacing:.015em; }
.field-help { display:block; margin-top:6px; color:var(--muted); font-size:11px; }
.input, .select, .textarea {
    width:100%;
    min-height:44px;
    border:1px solid var(--line-dark);
    border-radius:11px;
    background:#fff;
    color:var(--ink);
    padding:10px 12px;
    outline:none;
    transition:border-color .15s, box-shadow .15s, background .15s;
}
.textarea { resize:vertical; min-height:104px; }
.input:focus, .select:focus, .textarea:focus { border-color:var(--gold); box-shadow:0 0 0 4px rgba(167,127,65,.12); }
.input::placeholder, .textarea::placeholder { color:#9aa3b1; }
.input-readonly { background:#f5f7f9; color:var(--muted); }
.checkbox-row { display:flex; align-items:center; gap:9px; min-height:44px; }
.checkbox-row input { width:18px; height:18px; accent-color:var(--gold); }
.section-step { display:flex; gap:13px; align-items:flex-start; }
.step-number { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:var(--navy); color:#fff; font-family:Georgia,serif; }
.step-heading { margin:0; font-family:Georgia,serif; color:var(--navy); font-size:20px; font-weight:500; }
.step-copy { color:var(--muted); font-size:12px; margin-top:2px; }
.form-section { margin-bottom:20px; }
.form-actions { position:sticky; bottom:16px; z-index:15; margin-top:20px; padding:13px; border:1px solid var(--line); border-radius:15px; background:rgba(255,255,255,.92); backdrop-filter:blur(12px); box-shadow:0 16px 40px rgba(11,35,66,.13); display:flex; align-items:center; justify-content:space-between; gap:15px; }
.form-total { color:var(--muted); font-size:12px; }
.form-total strong { display:block; color:var(--navy); font-family:Georgia,serif; font-size:21px; }

.filter-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:end; padding:15px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); margin-bottom:18px; }
.filter-grow { flex:1 1 260px; }
.filter-small { flex:0 1 170px; }

.table-wrap { overflow-x:auto; }
.table { width:100%; border-collapse:collapse; min-width:760px; }
.table th { padding:12px 15px; background:#f8f9fb; color:#687386; font-size:10px; letter-spacing:.08em; text-transform:uppercase; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
.table td { padding:14px 15px; border-bottom:1px solid #edf0f3; vertical-align:middle; }
.table tr:last-child td { border-bottom:0; }
.table tbody tr:hover { background:#fcfbf8; }
.table-link { color:var(--navy); font-weight:800; }
.table-link:hover { color:var(--gold); }
.text-right { text-align:right !important; }
.text-center { text-align:center !important; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.micro { font-size:10px; }
.nowrap { white-space:nowrap; }
.strong { font-weight:800; }

.status-badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.status-success { color:var(--success); background:var(--success-bg); }
.status-warning { color:var(--warning); background:var(--warning-bg); }
.status-danger { color:var(--danger); background:var(--danger-bg); }
.status-info { color:var(--info); background:var(--info-bg); }
.status-neutral { color:#626b78; background:#eef1f4; }
.status-primary { color:var(--navy); background:#e9eef5; }

.list { display:flex; flex-direction:column; }
.list-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.list-item:first-child { padding-top:0; }
.list-item:last-child { border-bottom:0; padding-bottom:0; }
.list-main { min-width:0; }
.list-title { color:var(--navy); font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list-meta { color:var(--muted); font-size:12px; margin-top:3px; }
.list-time { min-width:74px; text-align:center; border-radius:11px; background:var(--cream); padding:8px; color:var(--navy); }
.list-time strong { display:block; font-size:13px; }
.list-time span { display:block; color:var(--muted); font-size:10px; }
.empty-state { padding:34px 20px; text-align:center; color:var(--muted); }
.empty-icon { width:52px; height:52px; display:grid; place-items:center; margin:0 auto 12px; border-radius:16px; background:var(--cream); color:var(--gold); }

.flash { display:flex; gap:12px; align-items:flex-start; padding:13px 15px; border-radius:13px; margin-bottom:18px; border:1px solid; }
.flash-success { color:#145c45; background:var(--success-bg); border-color:#bfe3d5; }
.flash-danger { color:#8f2931; background:var(--danger-bg); border-color:#f1cbd0; }
.flash ul { margin:4px 0 0 18px; padding:0; }

.booking-summary { display:flex; flex-wrap:wrap; gap:12px; }
.summary-chip { min-width:150px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.summary-chip span { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.summary-chip strong { display:block; color:var(--navy); margin-top:3px; }

.itinerary-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:16px 18px; border-radius:14px; background:linear-gradient(90deg,#f8f4ed,#fff); border:1px solid #eadfce; margin-bottom:16px; }
.day-card { border:1px solid var(--line); border-radius:16px; background:#fff; overflow:hidden; box-shadow:0 8px 24px rgba(11,35,66,.045); margin-bottom:14px; }
.day-card-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 17px; background:#f8f9fb; border-bottom:1px solid var(--line); }
.day-ident { display:flex; align-items:center; gap:12px; }
.day-number { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:var(--navy); color:#fff; font-family:Georgia,serif; font-size:17px; }
.day-title-preview { color:var(--navy); font-weight:800; }
.day-date-preview { color:var(--muted); font-size:11px; margin-top:1px; }
.day-card-body { padding:17px; }
.tour-section { margin-top:16px; padding:15px; border:1px dashed #d6c3a4; border-radius:14px; background:#fdfbf7; }
.tour-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px; }
.tour-row { display:grid; grid-template-columns:minmax(180px,2fr) 115px minmax(150px,1.3fr) 120px minmax(160px,1.5fr) 38px; gap:9px; align-items:end; padding:11px; background:#fff; border:1px solid var(--line); border-radius:12px; margin-top:9px; }
.tour-row .field-label { font-size:10px; }
.remove-icon { width:38px; height:42px; display:grid; place-items:center; border:1px solid #efcdd1; border-radius:10px; background:#fff; color:var(--danger); cursor:pointer; }
.remove-icon:hover { background:var(--danger-bg); }
.day-description-tip { margin-top:10px; color:var(--muted); font-size:11px; }

.timeline { position:relative; padding-left:30px; }
.timeline::before { content:""; position:absolute; top:10px; bottom:10px; left:10px; width:1px; background:#d9c7a8; }
.timeline-item { position:relative; padding:0 0 20px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-dot { position:absolute; left:-26px; top:5px; width:13px; height:13px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 5px var(--gold-soft); }
.timeline-card { border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.timeline-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:14px 16px; background:#f8f9fb; }
.timeline-body { padding:16px; }
.timeline-title { margin:0; color:var(--navy); font-family:Georgia,serif; font-size:19px; font-weight:500; }
.timeline-meta { display:flex; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:11px; margin-top:4px; }
.service-line { display:flex; justify-content:space-between; gap:14px; margin-top:13px; padding-top:13px; border-top:1px solid var(--line); }
.service-name { color:var(--navy); font-weight:800; }
.service-description { color:var(--muted); font-size:12px; margin-top:3px; white-space:pre-line; }
.price { color:var(--navy); font-weight:800; white-space:nowrap; }

.contact-stack { display:flex; flex-direction:column; gap:9px; }
.contact-item { display:flex; gap:10px; align-items:center; color:#445064; }
.contact-item svg { color:var(--gold); }

.detail-pair { display:grid; grid-template-columns:140px minmax(0,1fr); gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.detail-pair:last-child { border-bottom:0; }
.detail-pair dt { color:var(--muted); font-size:12px; }
.detail-pair dd { margin:0; color:var(--navy); font-weight:700; }

.payment-progress { height:9px; border-radius:999px; background:#e9edf1; overflow:hidden; margin:13px 0 8px; }
.payment-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--gold),#c49b5b); }
.money-large { color:var(--navy); font-family:Georgia,serif; font-size:27px; }
.balance-danger { color:var(--danger); font-weight:800; }

.operation-day { margin-bottom:18px; }
.operation-day-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 18px; color:#fff; background:var(--navy); border-radius:15px 15px 0 0; }
.operation-day-body { border:1px solid var(--line); border-top:0; border-radius:0 0 15px 15px; background:#fff; }
.operation-service { padding:16px 18px; border-bottom:1px solid var(--line); }
.operation-service:last-child { border-bottom:0; }
.operation-service-grid { display:grid; grid-template-columns:minmax(220px,1.2fr) minmax(0,2fr); gap:20px; }
.operation-assignment { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }

.report-value { color:var(--navy); font-family:Georgia,serif; font-size:22px; }
.report-lines { display:flex; flex-direction:column; gap:8px; }
.report-line { display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed var(--line); padding-bottom:8px; }
.report-line:last-child { border-bottom:0; padding-bottom:0; }

.pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:18px; }
.pagination-link { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--navy); font-weight:700; font-size:12px; }
.pagination-link.disabled { color:#9aa3b0; background:#f7f8fa; }
.pagination-meta { color:var(--muted); font-size:12px; }

.login-page { min-height:100vh; display:grid; grid-template-columns:minmax(420px, .85fr) minmax(520px,1.15fr); background:#fff; }
.login-brand { position:relative; overflow:hidden; padding:56px; display:flex; flex-direction:column; justify-content:space-between; color:#fff; background:linear-gradient(145deg,#07182e,var(--navy)); }
.login-brand::before { content:""; position:absolute; width:520px; height:520px; border:1px solid rgba(167,127,65,.26); border-radius:50%; right:-270px; top:-190px; box-shadow:0 0 0 55px rgba(167,127,65,.055),0 0 0 115px rgba(167,127,65,.035); }
.login-brand-inner { position:relative; z-index:1; }
.login-logo-box { width:min(480px,100%); padding:15px; border-radius:20px; background:#fff; box-shadow:0 24px 60px rgba(0,0,0,.22); }
.login-brand h1 { max-width:500px; margin:46px 0 12px; font-family:Georgia,serif; font-size:45px; line-height:1.1; font-weight:500; }
.login-brand p { max-width:520px; color:rgba(255,255,255,.66); font-size:16px; }
.login-brand-footer { position:relative; z-index:1; color:rgba(255,255,255,.5); font-size:12px; }
.login-panel { display:grid; place-items:center; padding:44px; background:#f6f7f9; }
.login-card { width:min(440px,100%); padding:34px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow-md); }
.login-kicker { color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.login-title { margin:7px 0 6px; color:var(--navy); font-family:Georgia,serif; font-size:31px; font-weight:500; }
.login-copy { margin:0 0 25px; color:var(--muted); }

@media (max-width: 1180px) {
    :root { --sidebar: 250px; }
    .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .grid-main, .grid-sidebar { grid-template-columns:1fr; }
    .tour-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tour-row .remove-icon { width:100%; }
}

@media (max-width: 860px) {
    .sidebar { transform:translateX(-100%); }
    body.sidebar-open .sidebar { transform:translateX(0); }
    body.sidebar-open .sidebar-overlay { display:block; }
    .app-main { width:100%; margin-left:0; }
    .mobile-menu { display:grid; }
    .topbar { padding:0 18px; min-height:70px; }
    .content { padding:22px 18px 42px; }
    .today-chip { display:none; }
    .hero-content { align-items:flex-start; flex-direction:column; }
    .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .col-12,.col-8,.col-6,.col-4,.col-3,.col-2 { grid-column:span 1; }
    .col-12 { grid-column:1/-1; }
    .operation-service-grid { grid-template-columns:1fr; }
    .login-page { grid-template-columns:1fr; }
    .login-brand { display:none; }
    .login-panel { min-height:100vh; padding:22px; }
}

@media (max-width: 560px) {
    .page-title { font-size:21px; }
    .topbar-actions .btn { display:none; }
    .grid-4,.grid-3,.grid-2 { grid-template-columns:1fr; }
    .form-grid { grid-template-columns:1fr; }
    .hero-panel { padding:23px 20px; }
    .hero-title { font-size:27px; }
    .card-header { align-items:flex-start; flex-direction:column; }
    .btn-group { width:100%; }
    .btn-group .btn { flex:1 1 auto; }
    .form-actions { position:static; align-items:stretch; flex-direction:column; }
    .form-actions .btn-group { flex-direction:column; }
    .filter-small { flex:1 1 140px; }
    .tour-row { grid-template-columns:1fr; }
    .operation-assignment { grid-template-columns:1fr; }
    .detail-pair { grid-template-columns:1fr; gap:2px; }
    .pagination-meta { display:none; }
    .login-card { padding:26px 21px; }
}

@media print {
    .sidebar,.topbar,.hero-actions,.filter-bar,.form-actions,.no-print,.sidebar-overlay { display:none !important; }
    .app-main { width:100%; margin:0; }
    .content { max-width:none; padding:0; }
    body { background:#fff; }
    .card,.metric-card { box-shadow:none; break-inside:avoid; }
}

.mt-18{margin-top:18px}.full{width:100%;justify-content:center}.empty-cell,.empty-state{text-align:center;color:#7a8493;padding:28px}.metric-card a{display:block;margin-top:10px;color:#a77f41;font-weight:700}.report-line small{display:block;color:#7b8492}.status-new{color:#935f12;background:#fff4da;padding:4px 8px;border-radius:99px}

.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.detail-grid > div { padding:13px 14px; border:1px solid var(--line); border-radius:12px; background:#fbfcfd; }
.detail-grid span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.detail-grid strong { display:block; margin-top:4px; color:var(--navy); }
.note-box { padding:15px; border:1px solid #e7dccb; border-radius:13px; background:#fcf8f1; }
.note-box p { margin:5px 0 0; white-space:pre-line; }
.privacy-note { padding:12px 14px; border-left:3px solid var(--gold); background:var(--gold-soft); color:#5f523e; font-size:12px; }
@media (max-width:860px){.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){.detail-grid{grid-template-columns:1fr;}}
