:root {
  --navy-950: #031b38;
  --navy-900: #052a54;
  --navy-800: #0b3c6e;
  --teal-700: #007d7e;
  --teal-600: #009d9c;
  --teal-500: #08b3ae;
  --teal-100: #daf5f2;
  --ice: #f3f8f8;
  --white: #fff;
  --muted: #6f7f8b;
  --line: #dfe8e9;
  --red: #b94242;
  --amber: #b17a12;
  --green: #218765;
  --shadow: 0 16px 45px rgba(5, 42, 84, .1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color: var(--navy-950); background: var(--ice); }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.admin-login { display: grid; min-height: 100vh; grid-template-columns: minmax(440px, 1.1fr) minmax(430px, .9fr); }
.login-visual { position: relative; display: flex; min-height: 100vh; justify-content: space-between; flex-direction: column; padding: 48px clamp(45px, 7vw, 105px); overflow: hidden; color: white; background: linear-gradient(135deg, rgba(3,27,56,.92),rgba(5,42,84,.75)), url("assets/images/hero-vitoria.png") center/cover; }
.login-visual::after { position: absolute; right: -140px; bottom: -180px; width: 470px; height: 470px; content: ""; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); }
.login-brand { position: relative; z-index: 1; width: 210px; }
.admin-logo { display: block; width: 100%; height: 72px; background: url("assets/images/logo-amorim-branca-v2.png") left center/contain no-repeat; }
.login-visual h1 { position: relative; z-index: 1; max-width: 720px; margin: 14px 0 18px; font-size: clamp(2.7rem,5vw,5.6rem); letter-spacing: -.065em; line-height: .93; }
.login-visual p { position: relative; z-index: 1; max-width: 580px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.03rem; line-height: 1.7; }
.login-eyebrow, .section-kicker { color: var(--teal-600); font-size: .69rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.login-eyebrow { color: #7ce5df; }
.login-features { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 25px; color: rgba(255,255,255,.82); font-size: .77rem; font-weight: 700; }
.login-features span::first-letter { color: #7ce5df; }
.login-panel { display: grid; min-height: 100vh; padding: 40px; background: white; place-items: center; }
.login-card { width: min(420px,100%); }
.login-icon { display: grid; width: 55px; height: 55px; margin-bottom: 26px; color: white; background: linear-gradient(135deg,var(--navy-900),var(--teal-600)); border-radius: 16px; box-shadow: 0 12px 28px rgba(0,157,156,.2); place-items: center; font-size: .8rem; font-weight: 900; }
.login-card h2 { margin: 9px 0 7px; font-size: 2rem; letter-spacing: -.045em; }
.login-card > p:not(.form-message) { margin: 0 0 30px; color: var(--muted); font-size: .85rem; }
.login-card label { display: grid; margin-top: 17px; color: var(--navy-900); gap: 7px; font-size: .75rem; font-weight: 800; }
.login-card input { width: 100%; min-height: 50px; padding: 0 15px; color: var(--navy-950); background: #f9fbfb; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.login-card input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(8,179,174,.13); }
.password-field { position: relative; }
.password-field button { position: absolute; top: 6px; right: 7px; width: 38px; height: 38px; color: var(--muted); background: transparent; border: 0; }
.password-field input { padding-right: 50px; }
.back-site { display: block; margin-top: 22px; color: var(--muted); font-size: .76rem; text-align: center; }
.back-site:hover { color: var(--teal-600); }
.form-message { min-height: 18px; margin: 10px 0 0; color: var(--red); font-size: .72rem; }

.admin-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-size: .76rem; font-weight: 850; transition: .2s ease; }
.admin-button.primary { color: white; background: linear-gradient(135deg,var(--teal-600),var(--teal-500)); box-shadow: 0 8px 18px rgba(8,179,174,.18); }
.admin-button.primary:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(8,179,174,.25); }
.admin-button.secondary { color: var(--navy-900); background: white; border-color: var(--line); }
.admin-button.secondary:hover { border-color: #a7dcd8; }
.admin-button.wide { width: 100%; margin-top: 10px; min-height: 50px; }
.admin-button.compact { min-height: 40px; white-space: nowrap; }
.admin-button:disabled { cursor: wait; opacity: .65; }

.admin-app { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 255px; flex-direction: column; color: white; background: var(--navy-950); box-shadow: 10px 0 35px rgba(3,27,56,.08); }
.sidebar-brand { display: flex; height: 98px; align-items: center; padding: 18px 25px; border-bottom: 1px solid rgba(255,255,255,.08); gap: 12px; }
.sidebar-brand .admin-logo { width: 58px; height: 54px; flex: 0 0 auto; background-position: left center; background-size: auto 54px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-family: Georgia,serif; font-size: 1rem; letter-spacing: .11em; }
.sidebar-brand small { margin-top: 3px; color: #67d7d2; font-size: .48rem; letter-spacing: .23em; }
.admin-nav { display: grid; padding: 27px 15px; gap: 6px; }
.admin-nav button, .sidebar-bottom a, .sidebar-bottom button { display: flex; width: 100%; min-height: 49px; align-items: center; padding: 0 16px; color: rgba(255,255,255,.65); background: transparent; border: 0; border-radius: 10px; gap: 13px; font-size: .79rem; font-weight: 750; text-align: left; }
.admin-nav button span, .sidebar-bottom span { width: 20px; color: #63d6d1; font-size: 1rem; text-align: center; }
.admin-nav button:hover, .admin-nav button.active { color: white; background: rgba(8,179,174,.15); }
.admin-nav button.active { box-shadow: inset 3px 0 0 var(--teal-500); }
.sidebar-bottom { margin-top: auto; padding: 18px 15px 25px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-bottom a:hover, .sidebar-bottom button:hover { color: white; }

.admin-workspace { min-height: 100vh; margin-left: 255px; }
.admin-topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 82px; align-items: center; padding: 0 clamp(22px,4vw,55px); background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.admin-topbar > div:first-of-type { display: grid; }
.topbar-date { color: var(--muted); font-size: .63rem; }
.admin-topbar > div > strong { margin-top: 2px; font-size: .92rem; }
.topbar-actions { display: flex; align-items: center; margin-left: auto; gap: 11px; }
.quick-sale { min-height: 39px; margin-right: 14px; padding: 0 15px; color: var(--teal-700); background: #e5f8f6; border: 0; border-radius: 9px; font-size: .72rem; font-weight: 850; }
.admin-user-avatar { display: grid; width: 38px; height: 38px; color: white; background: linear-gradient(135deg,var(--navy-800),var(--teal-600)); border-radius: 10px; place-items: center; font-size: .63rem; font-weight: 900; }
.admin-user { display: grid; }
.admin-user strong { font-size: .72rem; }
.admin-user small { max-width: 170px; overflow: hidden; color: var(--muted); font-size: .59rem; text-overflow: ellipsis; }
.sidebar-toggle { display: none; width: 40px; height: 40px; margin-right: 12px; color: var(--navy-900); background: white; border: 1px solid var(--line); border-radius: 9px; }

.admin-main { padding: 40px clamp(22px,4vw,55px) 75px; }
.admin-view { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 25px; }
.view-heading h1 { margin: 6px 0 4px; font-size: clamp(2rem,3vw,2.8rem); letter-spacing: -.055em; }
.view-heading p { margin: 0; color: var(--muted); font-size: .78rem; }

.stat-grid { display: grid; margin-bottom: 24px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.stat-card { display: flex; min-height: 125px; align-items: center; padding: 20px; background: white; border: 1px solid rgba(5,42,84,.07); border-radius: 15px; box-shadow: 0 5px 18px rgba(5,42,84,.04); gap: 13px; }
.stat-card.accent { color: white; background: linear-gradient(135deg,var(--navy-900),#0a5278); }
.stat-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; color: var(--teal-700); background: var(--teal-100); border-radius: 12px; place-items: center; font-size: .72rem; font-weight: 900; }
.stat-card.accent .stat-icon { color: white; background: rgba(255,255,255,.14); }
.stat-card div { min-width: 0; }
.stat-card small, .stat-card em { display: block; color: var(--muted); font-size: .6rem; font-style: normal; }
.stat-card.accent small, .stat-card.accent em { color: rgba(255,255,255,.65); }
.stat-card strong { display: block; margin: 3px 0; overflow: hidden; font-size: 1.45rem; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-grid { display: grid; margin-bottom: 24px; grid-template-columns: minmax(0,1.4fr) minmax(330px,.8fr); gap: 20px; }
.admin-card { background: white; border: 1px solid rgba(5,42,84,.07); border-radius: 17px; box-shadow: 0 6px 22px rgba(5,42,84,.045); }
.revenue-chart-card, .occupancy-card { min-height: 375px; padding: 25px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 20px; }
.card-heading h2 { margin: 4px 0 0; font-size: 1.1rem; letter-spacing: -.03em; }
.card-heading > strong { color: var(--teal-700); font-size: 1rem; }
.card-heading button { color: var(--teal-700); background: transparent; border: 0; font-size: .68rem; font-weight: 850; }
.revenue-chart { display: flex; height: 265px; align-items: end; padding: 15px 8px 0; border-bottom: 1px solid var(--line); gap: clamp(12px,3vw,35px); }
.chart-column { display: flex; height: 100%; min-width: 35px; flex: 1; align-items: center; justify-content: flex-end; flex-direction: column; gap: 8px; }
.chart-column strong { color: var(--muted); font-size: .57rem; }
.chart-bar { width: min(44px,80%); min-height: 5px; background: linear-gradient(180deg,var(--teal-500),var(--teal-700)); border-radius: 8px 8px 2px 2px; box-shadow: 0 6px 15px rgba(8,179,174,.15); }
.chart-column span { color: var(--muted); font-size: .59rem; text-transform: capitalize; }
.occupancy-list { display: grid; gap: 18px; }
.occupancy-item { display: grid; gap: 7px; }
.occupancy-item > div:first-child { display: flex; justify-content: space-between; gap: 15px; }
.occupancy-item strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.occupancy-item small { color: var(--muted); font-size: .6rem; white-space: nowrap; }
.occupancy-track { height: 7px; overflow: hidden; background: #eaf0f1; border-radius: 99px; }
.occupancy-track span { display: block; height: 100%; background: linear-gradient(90deg,var(--teal-500),var(--teal-700)); border-radius: inherit; }
.recent-card { padding: 25px; }

.toolbar { display: flex; min-height: 62px; align-items: center; margin-bottom: 16px; padding: 10px 13px; background: white; border: 1px solid var(--line); border-radius: 13px; gap: 11px; }
.search-control { display: flex; width: min(390px,100%); align-items: center; gap: 7px; }
.search-control span { color: var(--muted); font-size: 1.1rem; }
.search-control input { width: 100%; height: 38px; color: var(--navy-950); background: transparent; border: 0; outline: none; font-size: .75rem; }
.toolbar select { height: 40px; padding: 0 32px 0 11px; color: var(--navy-900); background: #f7fafa; border: 1px solid var(--line); border-radius: 8px; font-size: .7rem; }
.result-count { margin-left: auto; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 16px; color: #81909a; background: #f7fafa; border-bottom: 1px solid var(--line); font-size: .57rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 16px; color: var(--navy-900); border-bottom: 1px solid #edf2f2; font-size: .68rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfd; }
.cell-title { display: flex; align-items: center; min-width: 210px; gap: 11px; }
.cell-thumb, .client-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; background: #e5f5f3; border-radius: 10px; background-position: center; background-size: cover; place-items: center; color: var(--teal-700); font-weight: 900; }
.cell-title strong, .cell-title small { display: block; }
.cell-title strong { max-width: 250px; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.cell-title small { margin-top: 3px; color: var(--muted); font-size: .59rem; }
.table-action { min-width: 32px; height: 32px; color: var(--navy-900); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; }
.table-action:hover { color: var(--teal-700); border-color: #9dd8d4; }
.status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: .57rem; font-weight: 850; white-space: nowrap; }
.status.pending { color: #8a620f; background: #fff2cc; }
.status.confirmed, .status.active { color: #147153; background: #dcf5eb; }
.status.cancelled, .status.inactive { color: #a04444; background: #fbe3e3; }
.source-label { color: var(--navy-800); background: #e9f1fa; }
.empty-row { padding: 42px 20px; color: var(--muted); text-align: center; }
.mini-progress { width: 100px; height: 6px; overflow: hidden; background: #edf1f2; border-radius: 99px; }
.mini-progress span { display: block; height: 100%; background: var(--teal-500); }
.booking-summary { display: flex; flex-wrap: wrap; margin: -2px 0 15px; gap: 8px; }
.booking-summary span { padding: 7px 11px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .65rem; }
.booking-summary strong { color: var(--navy-900); }
.report-note { display: flex; align-items: flex-start; margin-bottom: 18px; padding: 17px 20px; color: #69521a; background: #fff9e8; border: 1px solid #f2e1a8; border-radius: 12px; gap: 12px; font-size: .7rem; }
.report-note span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; color: white; background: #d2a329; border-radius: 50%; place-items: center; font-weight: 900; }
.report-note p { margin: 1px 0 0; line-height: 1.55; }

.admin-dialog { width: min(720px,calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; overflow: hidden; background: white; border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.admin-dialog.large { width: min(1060px,calc(100% - 30px)); }
.admin-dialog::backdrop { background: rgba(3,27,56,.62); backdrop-filter: blur(4px); }
.admin-dialog form { display: flex; max-height: calc(100vh - 40px); flex-direction: column; }
.dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 5px 0 0; font-size: 1.45rem; letter-spacing: -.04em; }
.dialog-x { width: 38px; height: 38px; color: var(--muted); background: #f2f6f6; border: 0; border-radius: 10px; font-size: 1.4rem; }
.dialog-scroll { overflow-y: auto; padding: 24px 26px; }
.dialog-scroll fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.dialog-scroll fieldset:last-child { margin-bottom: 0; }
.dialog-scroll legend { width: 100%; margin-bottom: 15px; padding-bottom: 9px; color: var(--navy-900); border-bottom: 1px solid var(--line); font-size: .77rem; font-weight: 900; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-grid label { display: grid; align-content: start; color: var(--navy-900); gap: 6px; font-size: .65rem; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--navy-950); background: #f9fbfb; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: .72rem; font-weight: 500; resize: vertical; }
.form-grid textarea { line-height: 1.5; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { background: white; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(8,179,174,.1); }
.form-grid label > small { color: var(--muted); font-size: .57rem; font-weight: 500; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .check-label { display: flex; min-height: 42px; align-items: center; padding: 0 11px; background: #f3f8f8; border-radius: 8px; gap: 8px; }
.form-grid .check-label input { width: 16px; min-height: 16px; accent-color: var(--teal-600); }
.dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; padding: 16px 26px; background: #f8fbfb; border-top: 1px solid var(--line); gap: 9px; }
.dialog-footer .form-message { margin-right: auto; }
.booking-detail-summary { margin-bottom: 20px; padding: 18px; color: var(--navy-900); background: #edf8f7; border-radius: 11px; font-size: .72rem; line-height: 1.7; }
.booking-detail-summary strong { display: block; font-size: .95rem; }

.admin-toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; max-width: 390px; padding: 13px 18px; color: white; background: var(--navy-950); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; font-size: .72rem; }
.admin-toast.show { opacity: 1; transform: translateY(0); }
.admin-toast.error { background: #8d3232; }

@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(3,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .occupancy-card { min-height: auto; }
}

@media (max-width: 940px) {
  .admin-login { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-workspace { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .admin-main { padding-top: 28px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .login-panel { padding: 26px; }
  .admin-topbar { height: 70px; padding-inline: 15px; }
  .topbar-date, .admin-user { display: none; }
  .quick-sale { margin-right: 0; }
  .admin-main { padding: 24px 15px 55px; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .view-heading .admin-button { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 105px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar select, .toolbar .admin-button { width: 100%; }
  .result-count { margin-left: 0; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: auto; }
  .dialog-header, .dialog-scroll, .dialog-footer { padding-inline: 18px; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .dialog-footer .form-message { width: 100%; margin: 0; }
  .revenue-chart-card, .occupancy-card, .recent-card { padding: 18px; }
  .revenue-chart { gap: 5px; }
}

/* Painel inspirado na referência de gestão da Amorim Turismo */
.admin-body { background: #f4f7f8; }
.admin-sidebar { width: 218px; background: linear-gradient(180deg,#031f41 0%,#062d5a 55%,#05264d 100%); box-shadow: 8px 0 30px rgba(3,31,65,.08); }
.sidebar-brand { height: 88px; padding: 15px 20px; gap: 10px; }
.sidebar-brand .admin-logo { width: 50px; height: 48px; background-size: auto 48px; }
.sidebar-brand strong { font-size: .91rem; }
.sidebar-brand small { font-size: .43rem; }
.admin-nav { padding: 19px 13px; gap: 4px; }
.admin-nav button, .sidebar-bottom > a, .sidebar-bottom > button { min-height: 43px; padding: 0 13px; border-radius: 7px; gap: 10px; font-size: .71rem; }
.admin-nav button span, .sidebar-bottom > a span, .sidebar-bottom > button span { width: 18px; font-size: .87rem; }
.admin-nav button:hover, .admin-nav button.active { background: linear-gradient(90deg,rgba(8,179,174,.28),rgba(8,179,174,.12)); }
.admin-nav button.active { box-shadow: inset 3px 0 0 #1ce0d2, 0 7px 22px rgba(0,0,0,.08); }
.sidebar-bottom { padding: 13px 13px 18px; }
.sidebar-help { position: relative; margin-top: 12px; padding: 15px; overflow: hidden; background: linear-gradient(145deg,rgba(7,66,116,.95),rgba(4,42,83,.95)); border: 1px solid rgba(102,216,211,.22); border-radius: 10px; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.sidebar-help::after { position: absolute; right: -25px; bottom: -28px; width: 75px; height: 75px; content: ""; border: 1px solid rgba(91,218,210,.16); border-radius: 50%; }
.sidebar-help-icon { display: grid; width: 25px; height: 25px; margin-bottom: 9px; color: #d9fffb; background: rgba(8,179,174,.27); border-radius: 7px; place-items: center; font-size: .7rem; font-weight: 900; }
.sidebar-help strong { display: block; font-size: .66rem; }
.sidebar-help p { margin: 5px 0 11px; color: rgba(255,255,255,.58); font-size: .56rem; line-height: 1.5; }
.sidebar-help a { position: relative; z-index: 1; display: flex; width: 100%; min-height: 32px; align-items: center; justify-content: center; padding: 0 10px; color: white; background: #00a7a5; border-radius: 6px; font-size: .58rem; font-weight: 850; }
.sidebar-help a:hover { color: white; background: #08b9b5; }

.admin-workspace { margin-left: 218px; }
.admin-topbar { height: 70px; padding: 0 clamp(20px,3vw,38px); background: rgba(255,255,255,.97); }
.topbar-date { font-size: .57rem; }
.admin-topbar > div > strong { font-size: .82rem; }
.quick-sale { min-height: 36px; padding: 0 14px; color: #007b7c; background: #e6f8f6; border: 1px solid #d5f1ee; border-radius: 7px; font-size: .65rem; }
.admin-user-avatar { width: 36px; height: 36px; border-radius: 8px; }
.admin-main { padding: 27px clamp(20px,3vw,38px) 55px; }
.view-heading { margin-bottom: 22px; }
.dashboard-heading { align-items: center; }
.dashboard-heading h1 { margin: 4px 0; font-size: clamp(1.55rem,2.3vw,2.1rem); }
.dashboard-heading p { font-size: .7rem; }
.section-kicker { color: #009a98; font-size: .58rem; letter-spacing: .13em; }
.admin-card { border-color: #e2e9eb; border-radius: 10px; box-shadow: 0 5px 18px rgba(11,47,76,.035); }
.card-heading { margin-bottom: 15px; }
.card-heading h2 { margin-top: 3px; font-size: .9rem; }
.card-heading button { min-height: 30px; padding: 0 10px; color: #008f8e; background: white; border: 1px solid #b8e0dd; border-radius: 6px; font-size: .56rem; }

.dashboard-top-grid { display: grid; margin-bottom: 16px; grid-template-columns: minmax(0,1.62fr) minmax(285px,.72fr); gap: 16px; }
.dashboard-tours-card, .dashboard-sales-card { min-height: 360px; }
.dashboard-tours-card { overflow: hidden; padding-top: 19px; }
.dashboard-tours-card > .card-heading { padding: 0 19px; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-tours-table th { padding: 10px 13px; background: #f8fafb; font-size: .49rem; }
.dashboard-tours-table td { padding: 11px 13px; font-size: .58rem; }
.dashboard-tours-table tbody tr:hover { background: #f8fcfc; }
.dashboard-tour { display: flex; min-width: 170px; align-items: center; gap: 9px; }
.dashboard-tour-thumb { width: 44px; height: 34px; flex: 0 0 auto; background-color: #dbe9ea; border-radius: 6px; background-repeat: no-repeat; }
.dashboard-tour strong, .dashboard-tour small, .dashboard-tours-table td > strong, .dashboard-tours-table td > small { display: block; }
.dashboard-tour strong { max-width: 180px; overflow: hidden; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-tour small, .dashboard-tours-table td > small { margin-top: 3px; color: var(--muted); font-size: .5rem; }
.dashboard-tours-table .mini-progress { width: 62px; height: 4px; margin-top: 5px; }
.dashboard-tours-table .status { min-height: 20px; padding: 0 7px; font-size: .47rem; }
.dashboard-row-actions { display: flex; gap: 4px; }
.dashboard-row-actions a, .dashboard-row-actions button { display: grid; width: 25px; height: 25px; color: #607783; background: white; border: 1px solid #dfe7e9; border-radius: 6px; place-items: center; font-size: .59rem; }
.dashboard-row-actions a:hover, .dashboard-row-actions button:hover { color: #008f8e; border-color: #9fd8d4; }

.dashboard-sales-card { display: flex; padding: 19px; flex-direction: column; }
.recent-sales-feed { display: grid; align-content: start; flex: 1; gap: 2px; }
.recent-sale-item { display: grid; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef2f2; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; }
.recent-sale-avatar { display: grid; width: 32px; height: 32px; overflow: hidden; color: #006e70; background: #dff4f1 center/cover; border-radius: 50%; place-items: center; font-size: .52rem; font-weight: 900; }
.recent-sale-item > div:nth-child(2) { min-width: 0; }
.recent-sale-item strong, .recent-sale-item small, .recent-sale-item time, .sale-state { display: block; }
.recent-sale-item > div:nth-child(2) strong { overflow: hidden; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-sale-item small { max-width: 165px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .46rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-sale-item time { margin-top: 2px; color: #9aa7ad; font-size: .44rem; }
.recent-sale-item > div:last-child { text-align: right; }
.recent-sale-item > div:last-child strong { color: #0a3359; font-size: .58rem; }
.sale-state { margin-top: 3px; color: #00845e; font-size: .47rem; font-weight: 850; }
.sale-state.pending { color: #b0790e; }
.sale-state.cancelled { color: #ad4545; }
.sales-feed-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: .54rem; }
.sales-feed-total strong { color: #008b89; font-size: .66rem; }
.dashboard-empty { margin: auto; padding: 25px 10px; color: var(--muted); font-size: .62rem; text-align: center; }
.dashboard-empty.compact { margin: 0; padding: 18px 5px; }

.dashboard-analysis-grid { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(310px,.78fr); gap: 16px; }
.sales-summary-card, .audience-card { min-height: 385px; padding: 20px; }
.period-chip { padding: 7px 10px; color: #687b86; background: #f8fafa; border: 1px solid #e0e8e9; border-radius: 6px; font-size: .51rem; }
.sales-summary-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4px; gap: 18px; }
.sales-summary-heading small, .sales-summary-heading span, .sales-summary-heading strong { display: block; }
.sales-summary-heading small { color: var(--muted); font-size: .5rem; }
.sales-summary-heading > div > strong { margin: 2px 0; color: #0a3359; font-size: 1.15rem; }
.sales-summary-heading span { color: #159776; font-size: .51rem; font-weight: 750; }
.sales-summary-heading > strong { color: #008b89; font-size: .68rem; }
.revenue-canvas-wrap { position: relative; height: 175px; }
#revenue-chart-canvas { display: block; width: 100%; height: 100%; }
.summary-metrics { display: grid; margin: 8px -20px -20px; border-top: 1px solid #e8eeee; grid-template-columns: repeat(4,1fr); }
.summary-metrics > div { position: relative; min-height: 67px; padding: 14px 10px 12px 42px; border-right: 1px solid #edf1f2; }
.summary-metrics > div:last-child { border-right: 0; }
.summary-metrics small, .summary-metrics strong, .summary-metrics em { display: block; }
.summary-metrics small { color: var(--muted); font-size: .46rem; }
.summary-metrics strong { margin-top: 3px; font-size: .65rem; }
.summary-metrics em { margin-top: 2px; overflow: hidden; color: #98a4aa; font-size: .42rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.metric-icon { position: absolute; top: 15px; left: 10px; display: grid; width: 25px; height: 25px; border-radius: 7px; place-items: center; font-size: .48rem; font-weight: 900; }
.metric-icon.teal { color: #008f8d; background: #e1f5f3; }
.metric-icon.blue { color: #3976b9; background: #e9f1fb; }
.metric-icon.violet { color: #7655b1; background: #f0eafa; }
.metric-icon.amber { color: #ad7708; background: #fff3d5; }

.audience-card { display: flex; flex-direction: column; }
.audience-overview { display: grid; align-items: center; margin: 0 0 15px; padding: 4px 0 18px; border-bottom: 1px solid #e9eeee; grid-template-columns: 132px 1fr; gap: 18px; }
.audience-donut { --client-share: 50%; position: relative; display: grid; width: 120px; height: 120px; background: conic-gradient(#0a4e85 0 var(--client-share),#08aaa8 var(--client-share) 100%); border-radius: 50%; place-items: center; }
.audience-donut::after { position: absolute; width: 78px; height: 78px; content: ""; background: white; border-radius: 50%; }
.audience-donut > div { position: relative; z-index: 1; text-align: center; }
.audience-donut strong, .audience-donut small { display: block; }
.audience-donut strong { color: #0b345a; font-size: 1rem; }
.audience-donut small { color: var(--muted); font-size: .46rem; }
.audience-legend { display: grid; gap: 10px; }
.audience-legend span { display: grid; align-items: center; color: var(--muted); font-size: .52rem; grid-template-columns: 8px 32px 1fr; gap: 5px; }
.audience-legend i { width: 7px; height: 7px; border-radius: 50%; }
.audience-legend strong { color: #0b345a; font-size: .62rem; }
.clients-dot { background: #0a4e85; }
.passengers-dot { background: #08aaa8; }
.seats-dot { background: #d4a62c; }
.recent-clients-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.recent-clients-heading strong { font-size: .6rem; }
.recent-clients-heading small { color: var(--muted); font-size: .46rem; }
.dashboard-clients-list { display: grid; }
.dashboard-client { display: grid; align-items: center; padding: 7px 0; border-bottom: 1px solid #eef2f2; grid-template-columns: 29px minmax(0,1fr) auto; gap: 8px; }
.dashboard-client:last-child { border-bottom: 0; }
.dashboard-client .client-avatar { width: 28px; height: 28px; border-radius: 50%; font-size: .46rem; }
.dashboard-client > div { min-width: 0; }
.dashboard-client strong, .dashboard-client small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-client strong { font-size: .54rem; }
.dashboard-client small { margin-top: 2px; color: var(--muted); font-size: .43rem; }
.dashboard-client time { color: #8f9da5; font-size: .44rem; white-space: nowrap; }

@media (max-width: 1180px) {
  .dashboard-top-grid, .dashboard-analysis-grid { grid-template-columns: 1fr; }
  .dashboard-tours-card, .dashboard-sales-card, .sales-summary-card, .audience-card { min-height: auto; }
  .recent-sales-feed { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; }
}

@media (max-width: 940px) {
  .admin-sidebar { width: 218px; }
  .admin-workspace { margin-left: 0; }
}

@media (max-width: 650px) {
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading .admin-button { width: 100%; }
  .admin-main { padding-inline: 13px; }
  .dashboard-tours-card { margin-inline: -1px; }
  .recent-sales-feed { grid-template-columns: 1fr; }
  .summary-metrics { grid-template-columns: repeat(2,1fr); }
  .summary-metrics > div:nth-child(2) { border-right: 0; }
  .summary-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #edf1f2; }
  .audience-overview { grid-template-columns: 105px 1fr; }
  .audience-donut { width: 96px; height: 96px; }
  .audience-donut::after { width: 62px; height: 62px; }
  .topbar-actions .quick-sale { padding-inline: 9px; font-size: .58rem; }
}

/* Central de segurança e privacidade */
.security-summary-grid { display:grid; margin-bottom:16px; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.security-stat { display:flex; min-height:118px; align-items:center; padding:18px; gap:14px; }
.security-stat-icon { display:grid; width:42px; height:42px; flex:0 0 auto; border-radius:11px; place-items:center; font-size:1rem; font-weight:900; }
.security-stat-icon.teal { color:#008f8d; background:#e1f5f3; }
.security-stat-icon.blue { color:#3976b9; background:#e9f1fb; }
.security-stat-icon.violet { color:#7655b1; background:#f0eafa; }
.security-stat-icon.amber { color:#ad7708; background:#fff3d5; }
.security-stat small,.security-stat strong,.security-stat p { display:block; }
.security-stat small { color:var(--muted); font-size:.56rem; }
.security-stat strong { margin:3px 0; color:#0a3359; font-size:1.35rem; }
.security-stat p { margin:0; color:#87979f; font-size:.49rem; line-height:1.45; }
.security-posture { display:grid; align-items:start; margin-bottom:16px; padding:22px; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:24px; }
.security-posture > div { display:flex; gap:14px; }
.security-shield { display:grid; width:48px; height:48px; flex:0 0 auto; color:#007f7d; background:linear-gradient(145deg,#dff7f4,#eefbf9); border:1px solid #ccece8; border-radius:14px; place-items:center; font-size:1.1rem; font-weight:950; }
.security-posture h2 { margin:5px 0 7px; color:#092f54; font-size:1rem; }
.security-posture p { margin:0; color:var(--muted); font-size:.61rem; line-height:1.65; }
.security-posture ul { display:grid; margin:0; padding:0; list-style:none; gap:9px; }
.security-posture li { display:flex; align-items:center; color:#4f6570; font-size:.57rem; gap:8px; }
.security-posture li span { display:grid; width:19px; height:19px; color:#008a73; background:#e4f7f1; border-radius:6px; place-items:center; font-size:.49rem; font-weight:900; }
.legacy-warning { grid-column:1/-1; padding:11px 13px!important; color:#835b08!important; background:#fff7df; border:1px solid #f2dfaa; border-radius:7px; }
.security-management-grid,.security-bottom-grid { display:grid; margin-bottom:16px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.security-panel { min-width:0; padding:19px; }
.security-panel .table-wrap { margin:0 -19px -19px; }
.security-panel table { min-width:580px; }
.security-panel th { padding:10px 12px; background:#f8fafb; font-size:.47rem; }
.security-panel td { padding:11px 12px; font-size:.54rem; }
.security-panel td strong,.security-panel td small { display:block; }
.security-panel td small { margin-top:3px; color:var(--muted); font-size:.44rem; }
.severity { display:inline-flex; min-height:21px; align-items:center; padding:0 8px; border-radius:999px; font-size:.47rem; font-weight:850; }
.severity.low { color:#24735f; background:#e4f5ef; }
.severity.medium { color:#91650d; background:#fff1d1; }
.severity.high { color:#a04e1c; background:#fff0e6; }
.severity.critical { color:#a23745; background:#fde8eb; }
.access-log,.security-event-list { display:grid; max-height:340px; overflow:auto; }
.access-log article,.security-event-list article { display:grid; align-items:center; padding:11px 0; border-bottom:1px solid #edf2f2; grid-template-columns:30px minmax(0,1fr) auto; gap:9px; }
.access-log article:last-child,.security-event-list article:last-child { border-bottom:0; }
.access-log-icon { display:grid; width:28px; height:28px; color:#008e8c; background:#e5f6f4; border-radius:8px; place-items:center; font-size:.6rem; }
.access-log strong,.access-log p,.security-event-list strong,.security-event-list p { display:block; overflow:hidden; margin:0; text-overflow:ellipsis; white-space:nowrap; }
.access-log strong,.security-event-list strong { color:#163b5b; font-size:.56rem; }
.access-log p,.security-event-list p { margin-top:3px; color:var(--muted); font-size:.46rem; }
.access-log time,.security-event-list time { color:#8d9aa1; font-size:.45rem; white-space:nowrap; }
.event-dot { width:11px; height:11px; margin-left:7px; background:#8ba4af; border:3px solid #edf4f6; border-radius:50%; box-sizing:content-box; }
.event-dot.info { background:#00a19e; }
.event-dot.warning { background:#d59b24; }
.event-dot.high { background:#d06c35; }
.event-dot.critical { background:#bf4054; }
.security-legal-note { margin-top:2px; }

@media (max-width:1180px) {
  .security-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .security-management-grid,.security-bottom-grid { grid-template-columns:1fr; }
}

@media (max-width:750px) {
  .security-summary-grid { grid-template-columns:1fr; }
  .security-posture { grid-template-columns:1fr; }
  .security-heading { align-items:stretch; }
  .security-heading .admin-button { width:100%; }
}
