:root{
  --bg:#050b14;
  --panel:#071225;
  --card:#0b1a33;
  --border:rgba(255,255,255,.08);
  --text:#e8eefc;
  --muted:rgba(232,238,252,.7);
  --accent:#2bd4a5;
  --accent-blue:#2f6bff;
  --danger:#ff4d6d;
  --warning:#f6c453;
  --shadow:0 12px 32px rgba(0,0,0,.35);
  --radius:14px;
  --radius-sm:10px;
  --font:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  --topbar-bg: rgba(9,15,28,.7);
  --btn-bg: rgba(255,255,255,.05);
  --btn-bg-hover: rgba(255,255,255,.08);
  --surface-1: rgba(18,31,59,.6);
  --surface-2: rgba(18,31,59,.72);
  --surface-3: rgba(18,31,59,.92);
  --surface-4: rgba(18,31,59,.96);
  --input-bg: rgba(6,12,22,.55);
  --input-border: rgba(255,255,255,.10);
  --day-bg: rgba(6,12,22,.35);
  --day-border: rgba(255,255,255,.08);
  --day-num: rgba(232,238,252,.85);
  --overlay-bg: rgba(6,10,18,.68);
  --event-bg: rgba(6,12,22,.38);
  --event-border: rgba(255,255,255,.10);
  --table-row-hover: rgba(255,255,255,.03);
  --table-head-bg: rgba(255,255,255,.03);
  --dash-donut-track: rgba(255,255,255,.08);
}

html[data-theme="light"]{
  --bg:#f6f8ff;
  --panel:#ffffff;
  --card:#ffffff;
  --border:rgba(10,18,32,.10);
  --text:#0a1220;
  --muted:rgba(10,18,32,.64);
  --accent:#17b890;
  --accent-blue:#2f6bff;
  --danger:#d93b59;
  --warning:#c58a00;
  --shadow:0 12px 32px rgba(10,18,32,.12);
  --topbar-bg: rgba(255,255,255,.82);
  --btn-bg: rgba(10,18,32,.06);
  --btn-bg-hover: rgba(10,18,32,.10);
  --surface-1: rgba(255,255,255,.86);
  --surface-2: rgba(255,255,255,.92);
  --surface-3: rgba(255,255,255,.96);
  --surface-4: rgba(255,255,255,.98);
  --input-bg: rgba(255,255,255,.92);
  --input-border: rgba(10,18,32,.16);
  --day-bg: rgba(10,18,32,.03);
  --day-border: rgba(10,18,32,.12);
  --day-num: rgba(10,18,32,.92);
  --overlay-bg: rgba(10,18,32,.32);
  --event-bg: rgba(10,18,32,.03);
  --event-border: rgba(10,18,32,.12);
  --table-row-hover: rgba(10,18,32,.03);
  --table-head-bg: rgba(10,18,32,.04);
  --dash-donut-track: rgba(10,18,32,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(43,212,165,.20), transparent 55%),
    radial-gradient(900px 550px at 70% 0%, rgba(47,107,255,.18), transparent 55%),
    radial-gradient(900px 520px at 55% 120%, rgba(47,107,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(6,10,18,.92), var(--bg));
  background-attachment: fixed;
  color:var(--text);
}

body.modal-open{
  overflow:hidden;
}

body.map-full .layout{
  grid-template-columns:1fr;
  max-width:none;
  padding:10px;
}

body.map-full .sidebar{
  display:none;
}

body.map-full .grid{
  grid-template-columns:1fr;
}

body.map-full .grid > .card:last-child{
  display:none;
}

.map-legend-bottom{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  border:1px solid var(--border);
  background:var(--surface-1);
  border-radius:12px;
  padding:8px 10px;
  margin-top:10px;
  position:sticky;
  bottom:10px;
  z-index:2;
}

.legend-item.disponivel::before{background:rgba(140,155,180,.7)}
.legend-item.checkin-pendente::before{background:rgba(246,196,83,.95)}
.legend-item.pre-reservado::before{background:rgba(69,149,255,.95)}
.legend-item.checkin-done::before{background:rgba(43,212,165,.95)}
.legend-item.checkout-done::before{background:rgba(100,116,139,.95)}
.legend-item.atraso::before{background:rgba(255,77,109,.95)}
.legend-item.dot-red::before{background:rgba(255,77,109,.95)}
.legend-item.dot-blue::before{background:rgba(69,149,255,.95)}
.legend-item.dot-amber::before{background:rgba(245,158,11,.95)}

html[data-theme="light"] body{
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(23,184,144,.18), transparent 55%),
    radial-gradient(900px 550px at 70% 0%, rgba(47,107,255,.14), transparent 55%),
    radial-gradient(900px 520px at 55% 120%, rgba(23,184,144,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.95), var(--bg));
  background-attachment: fixed;
}

a{color:inherit}

.shell{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 18px;
  border-bottom:1px solid var(--border);
  background:var(--topbar-bg);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.2px;
}

.brand-stack{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.brand-sub{
  margin-top:-2px;
  margin-left:46px;
  font-size:11px;
  font-weight:900;
  letter-spacing:0;
  color:rgba(43,212,165,.95);
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:min(640px, 66vw);
  width:fit-content;
  border:1px solid rgba(43,212,165,.55);
  background:rgba(43,212,165,.10);
  padding:4px 10px;
  border-radius:999px;
}

.brand-logo{
  height:92px;
  width:auto;
  max-width:min(620px, 62vw);
  display:block;
  object-fit:contain;
}

.login-card .brand-logo{
  height:84px;
  max-width:620px;
}

.badge{
  font-size:8px;
  color:rgba(11,18,32,.95);
  background:var(--accent);
  padding:2px 6px;
  border-radius:999px;
  font-weight:800;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.user-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  line-height:1.1;
}

#pousadaLabel{
  font-size:11px;
  font-weight:800;
  opacity:.92;
}

.btn{
  appearance:none;
  border:1px solid var(--border);
  background:var(--btn-bg);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  transition:.15s;
}

.btn:hover{transform:translateY(-1px); background:var(--btn-bg-hover)}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none}

.btn-primary{
  background:linear-gradient(90deg, rgba(47,107,255,.98), rgba(43,212,165,.98));
  color:#06141f;
  border-color:rgba(47,107,255,.42);
}

.btn-primary:hover{filter:brightness(1.06)}

.btn-danger{
  background:rgba(255,77,109,.14);
  border-color:rgba(255,77,109,.45);
  color:rgba(255,230,234,.98);
}

.btn-danger:hover{filter:brightness(1.06)}

.btn-ghost{
  background:transparent;
}

.btn-sm{
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
}

.layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:18px;
  padding:18px;
  width:100%;
  max-width:none;
  margin:0;
  flex:1;
}

.sidebar{
  border:1px solid var(--border);
  background:var(--surface-1);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
  position:sticky;
  top:18px;
  max-height:calc(100vh - 36px);
  overflow:auto;
  display:flex;
  flex-direction:column;
}

.nav-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  margin:10px 10px 8px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav a{
  text-decoration:none;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--text);
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
}

.nav-ico{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  opacity:.9;
}

.nav-ico svg{
  width:18px;
  height:18px;
  display:block;
}

.nav a:hover{
  background:var(--btn-bg);
  border-color:var(--border);
}

.nav a.active{
  background:rgba(43,212,165,.12);
  border-color:rgba(43,212,165,.28);
}

.sidebar-support{
  margin-top:auto;
  margin-bottom:6px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(120px 80px at 20% 0%, rgba(47,107,255,.22), transparent 60%),
    radial-gradient(120px 80px at 80% 40%, rgba(43,212,165,.18), transparent 60%),
    rgba(0,0,0,.10);
}

.content{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.embed-frame-wrap{
  width:100%;
}

.embed-frame{
  width:100%;
  height:calc(100vh - 220px);
  height:calc(100dvh - 220px);
  border:0;
  border-radius:var(--radius);
  background:var(--panel);
}

html[data-embed="1"] body{
  background:transparent !important;
  background-attachment:initial !important;
}

html[data-embed="1"] .topbar,
html[data-embed="1"] .sidebar,
html[data-embed="1"] .workspace-head{
  display:none !important;
}

html[data-embed="1"] .layout{
  grid-template-columns:1fr !important;
  padding:0 !important;
  gap:0 !important;
}

html[data-embed="1"] .content{
  gap:0 !important;
}

.workspace-head{
  border:1px solid rgba(47,107,255,.28);
  background:
    linear-gradient(135deg, rgba(47,107,255,.20), rgba(43,212,165,.14)),
    var(--surface-2);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.workspace-title{
  margin:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.01em;
}

.workspace-sub{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

#workspaceHead{
  border:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  padding:0;
  align-items:flex-start;
  gap:8px;
}

#workspaceHead .workspace-title{
  display:none;
}

#workspaceHead .workspace-sub{
  margin:0 0 8px 2px;
  font-size:12px;
}

.btn-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-color:rgba(47,107,255,.38);
  background:rgba(47,107,255,.14);
  font-weight:800;
}

.btn-home:hover{
  background:rgba(47,107,255,.22);
}

.dash-view{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.dash-headline-title{
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
}

.dash-kpis{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}

.dash-kpi{
  background:
    linear-gradient(135deg, rgba(47,107,255,.16), rgba(43,212,165,.10)),
    var(--surface-2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  min-height:78px;
}

.dash-kpi-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(47,107,255,.18);
  border:1px solid rgba(47,107,255,.22);
}

.dash-kpi-icon svg{
  width:22px;
  height:22px;
  display:block;
}
.dash-kpi-label{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
}

.dash-kpi-value{
  font-size:22px;
  font-weight:1000;
  line-height:1.1;
}

.dash-kpi-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.dash-row3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
}

.dash-bottom{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
}

.dash-panel{
  background:var(--surface-2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
  box-shadow:var(--shadow);
}

.dash-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.dash-panel-title{
  font-weight:1000;
  font-size:14px;
}

.dash-list{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dash-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.12);
}

.dash-item-link{
  cursor:pointer;
}

.dash-item-link:hover{
  border-color: rgba(43,212,165,.22);
}

.dash-item-left{
  min-width:0;
}

.dash-item-title{
  font-weight:900;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.dash-item-sub{
  font-size:12px;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.dash-badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(43,212,165,.14);
  border:1px solid rgba(43,212,165,.22);
  color:var(--accent);
  white-space:nowrap;
}

.dash-item-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.dash-item-action{
  white-space:nowrap;
}

.dash-pending{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dash-pending-item{
  width:100%;
  text-align:left;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.12);
  color:inherit;
  cursor:pointer;
}

.dash-pending-item:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.dash-pending-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.dash-pending-sub{
  font-size:12px;
  margin-top:4px;
}

.hosp-mini-cal{
  margin-top:10px;
}

.hosp-cal-wrap{
  overflow-x:auto;
  padding-bottom:8px;
}

.hosp-cal-grid{
  display:grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto auto;
  gap:10px 10px;
  align-items:start;
  min-width: 640px;
}

.hosp-cal-left{
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.12);
  font-weight:1000;
  display:flex;
  align-items:center;
}

.hosp-cal-head{
  display:flex;
  gap:6px;
  align-items:stretch;
}

.hosp-cal-hcell{
  width:46px;
  flex:0 0 auto;
  padding:10px 0 9px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.12);
  text-align:center;
}

.hosp-cal-hcell .n{
  font-weight:1000;
  font-size:13px;
  line-height:1.05;
}

.hosp-cal-hcell .w{
  font-weight:900;
  font-size:11px;
  opacity:.7;
  line-height:1.1;
  margin-top:2px;
}

.hosp-cal-body{
  position:relative;
}

.hosp-cal-cells{
  display:flex;
  gap:6px;
  align-items:stretch;
}

.hosp-cal-cell{
  width:46px;
  flex:0 0 auto;
  height:44px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
}

.hosp-cal-bar{
  position:absolute;
  top:6px;
  left:var(--bar-left);
  width:var(--bar-width);
  height:32px;
  border-radius:999px;
  background:rgba(43,212,165,.14);
  border:1px solid rgba(43,212,165,.22);
  box-shadow:0 0 0 2px rgba(43,212,165,.14) inset;
  display:flex;
  align-items:center;
  padding:0 12px;
  overflow:hidden;
}

.hosp-cal-bar-label{
  color:var(--accent);
  font-weight:1000;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dash-month-chip{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(47,107,255,.10);
  border:1px solid rgba(47,107,255,.18);
  color:var(--text);
  white-space:nowrap;
}

.dash-fin{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.dash-fin-stats{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

.dash-fin-val{
  font-weight:1000;
  font-size:14px;
  margin-top:2px;
}

.dash-fin-val.ok{
  color:var(--accent);
}

.dash-fin-val.warn{
  color:var(--warning, #F5A524);
}

.dash-donut{
  width:120px;
  height:120px;
  position:relative;
  flex:0 0 auto;
}

.dash-donut-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:conic-gradient(var(--dash-donut-track) 0 100%);
  border:none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  box-shadow:
    0 14px 30px rgba(0,0,0,.30),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

.dash-donut-center{
  position:absolute;
  inset:18px;
  border-radius:50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.10)),
    var(--panel);
  border:none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 10px 18px rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
}

.dash-donut-pct{
  font-weight:1000;
  font-size:18px;
}

.dash-shortcuts{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.dash-tile{
  appearance:none;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(47,107,255,.14), rgba(43,212,165,.10)),
    rgba(0,0,0,.12);
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:92px;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
}

.dash-tile:hover{
  border-color:rgba(47,107,255,.22);
}

html[data-theme="light"] .dash-kpi,
html[data-theme="light"] .dash-panel{
  border-color:var(--border);
}

html[data-theme="light"] .dash-item,
html[data-theme="light"] .dash-pending-item{
  border-color:var(--border);
  background:rgba(10,18,32,.03);
}

html[data-theme="light"] .dash-tile{
  border-color:var(--border);
  background:
    linear-gradient(135deg, rgba(47,107,255,.10), rgba(23,184,144,.06)),
    rgba(255,255,255,.92);
}

html[data-theme="light"] .dash-tile:hover{
  border-color:rgba(47,107,255,.28);
}

.dash-tile-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(47,107,255,.16);
  border:1px solid rgba(47,107,255,.22);
}

.dash-tile-icon svg{
  width:22px;
  height:22px;
  display:block;
}
.dash-tile-title{
  font-weight:900;
  font-size:12px;
  text-align:center;
}

.dash-shortcuts-mini{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.dash-footer{
  text-align:center;
  font-size:12px;
  padding:10px 0 2px;
}

.dev-line{
  margin-top:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}

.dev-wa{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:2px;
  text-decoration:none;
  color:inherit;
  font-weight:900;
}

.dev-wa:hover{
  text-decoration:underline;
}

.dev-wa-ico{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#25D366;
}

.dev-wa-ico svg{
  width:16px;
  height:16px;
  display:block;
}

.dev-wa-text{
  letter-spacing:.02em;
}

@media (max-width: 1080px){
  .dash-kpis{ grid-template-columns:repeat(2, 1fr); }
  .dash-row3{ grid-template-columns:1fr; }
  .dash-bottom{ grid-template-columns:1fr; }
}

.tar-room-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tar-top{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:10px;
  align-items:end;
}

@media (max-width: 980px){
  .tar-top{grid-template-columns:1fr}
}

.tar-month-nav{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.tar-month-label{
  font-weight:1000;
  font-size:14px;
  line-height:1.1;
}

.fin-top{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fin-filters{
  display:grid;
  grid-template-columns: 160px 160px 1fr;
  gap:10px;
  align-items:end;
}

@media (max-width: 980px){
  .fin-filters{grid-template-columns:1fr 1fr}
}

.fin-kpis{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px;
}

@media (max-width: 980px){
  .fin-kpis{grid-template-columns:1fr 1fr}
}

.fin-kpi{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.fin-kpi-val{
  font-weight:1000;
  font-size:18px;
  letter-spacing:.01em;
}

.fin-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

@media (max-width: 980px){
  .fin-grid{grid-template-columns:1fr}
}

.fin-panel{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  border-radius:14px;
  padding:12px;
}

.fin-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.fin-presets{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.fin-donut-row{
  margin-top:12px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.fin-donut{
  width:120px;
  height:120px;
  border-radius:999px;
  background:transparent;
  border:1px solid rgba(255,255,255,.10);
  position:relative;
  box-shadow:var(--shadow);
}

.fin-donut::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:999px;
  background:var(--donut-bg, conic-gradient(rgba(255,255,255,.10) 0 100%));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  pointer-events:none;
}

.fin-donut-hole{
  position:absolute;
  inset:16px;
  border-radius:999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.10)),
    var(--surface-2);
  border:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.fin-donut-big{
  font-weight:1000;
  font-size:20px;
  letter-spacing:.01em;
}

.fin-donut-legend{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:190px;
}

.fin-cell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.fin-cell-main{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fin-open-link{
  flex:0 0 auto;
  font-size:12px;
  font-weight:900;
  color:rgba(43,212,165,.95);
  border:1px solid rgba(43,212,165,.35);
  background:rgba(43,212,165,.08);
  padding:4px 10px;
  border-radius:999px;
  text-decoration:none;
}

.fin-open-link:hover{
  background:rgba(43,212,165,.14);
  border-color:rgba(43,212,165,.55);
}

.fin-legend-item{
  display:grid;
  grid-template-columns: 16px 1fr auto;
  gap:10px;
  align-items:center;
}

.fin-legend-swatch{
  width:12px;
  height:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
}

.fin-swatch-paid{
  background:rgba(43,212,165,.95);
}

.fin-swatch-open{
  background:rgba(255,77,109,.95);
}

.fin-candle-chart{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
  border-radius:12px;
  padding:12px;
  overflow:auto;
}

.fin-candle-track{
  display:flex;
  gap:10px;
  align-items:flex-end;
  min-height:190px;
  width:max-content;
  padding-bottom:18px;
}

.fin-candle{
  width:22px;
  position:relative;
  height:190px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.fin-wick{
  position:absolute;
  bottom:18px;
  width:2px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
}

.fin-body{
  position:absolute;
  bottom:18px;
  width:12px;
  border-radius:6px;
  background:rgba(43,212,165,.70);
  border:1px solid rgba(43,212,165,.40);
}

.fin-body.open{
  background:rgba(255,77,109,.46);
  border-color:rgba(255,77,109,.38);
}

.fin-x{
  position:absolute;
  bottom:0;
  font-size:10px;
  font-weight:900;
  color:var(--muted);
  width:42px;
  text-align:center;
  white-space:nowrap;
}

.fin-bars{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.fin-bar-row{
  display:grid;
  grid-template-columns: 64px 1fr 100px;
  gap:10px;
  align-items:center;
}

.fin-bar{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}

.fin-bar-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(47,107,255,.95), rgba(43,212,165,.95));
}

.right{
  text-align:right;
}

.tar-room-chip{
  appearance:none;
  border:1px solid var(--border);
  background:var(--btn-bg);
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  line-height:1;
}

.tar-room-chip[data-selected="true"]{
  border-color:rgba(47,107,255,.45);
  background:linear-gradient(90deg, rgba(47,107,255,.22), rgba(43,212,165,.14));
}

.tar-actions{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.tar-calendar-wrap{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:auto;
  background:var(--surface-1);
}

.tar-calendar{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
}

.tar-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(92px, 1fr));
  gap:8px;
}

@media (max-width: 980px){
  .tar-grid{grid-template-columns:repeat(7, minmax(76px, 1fr))}
}

.tar-weekhead{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  padding:8px 6px;
  text-align:center;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.tar-weekhead{position:sticky; top:0; z-index:2}
.tar-calendar-wrap{max-height:520px}

.tar-cell{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(6,12,22,.35);
  border-radius:12px;
  min-height:74px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  padding:10px 10px 8px;
  position:relative;
  transition:.12s;
}

.tar-cell:hover{
  filter:brightness(1.06);
}

.tar-cell.weekend{
  background:rgba(246,196,83,.06);
}

.tar-cell.empty{
  background:transparent;
  border:1px dashed rgba(255,255,255,.10);
  cursor:default;
}

.tar-cell.selected{
  border-color:rgba(47,107,255,.55);
  box-shadow:0 0 0 3px rgba(47,107,255,.16);
}

.tar-cell-top{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.tar-cell-date{
  font-weight:1000;
  font-size:14px;
  color:var(--text);
  line-height:1;
}

.tar-cell-wd{
  font-weight:900;
  font-size:11px;
  color:var(--muted);
  line-height:1;
}

.tar-price{
  font-weight:1000;
  font-size:13px;
  color:var(--text);
  line-height:1;
}

.tar-tooltip{
  position:fixed;
  z-index:10050;
  width:300px;
  border:1px solid var(--border);
  background:var(--surface-4);
  box-shadow:var(--shadow);
  border-radius:14px;
  padding:10px;
  pointer-events:none;
}

.grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
}

.card{
  border:1px solid var(--border);
  background:var(--surface-1);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}

.card h2{
  margin:0 0 10px;
  font-size:16px;
}

.muted{color:var(--muted)}

.login-wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.login-card{
  width:100%;
  max-width:460px;
  border:1px solid var(--border);
  background:var(--surface-2);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}

.login-card h1{
  margin:0 0 8px;
  font-size:20px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}

.field label{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--input-border);
  background:var(--input-bg);
  color:var(--text);
  outline:none;
}

.password-field{
  position:relative;
}

.password-field .input{
  padding-right:48px;
}

.password-toggle{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.password-toggle:hover{
  background:rgba(255,255,255,.08);
  color:var(--text);
}

.password-toggle:focus-visible{
  outline:2px solid rgba(43,212,165,.45);
  outline-offset:2px;
}

.password-toggle svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.input:focus{
  border-color:rgba(43,212,165,.55);
  box-shadow:0 0 0 3px rgba(43,212,165,.16);
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
}

.error{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,77,109,.35);
  background:rgba(255,77,109,.12);
  color:#ffd4dc;
  font-weight:700;
  display:none;
}

.toast{
  position:fixed;
  right:18px;
  bottom:18px;
  background:var(--surface-3);
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  box-shadow:var(--shadow);
  display:none;
  max-width:420px;
}

.segmented{
  display:inline-flex;
  border:1px solid var(--border);
  background:var(--btn-bg);
  border-radius:999px;
  padding:3px;
  gap:3px;
}

.segmented-btn{
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  transition:.15s;
}

.segmented-btn:hover{background:var(--btn-bg-hover)}
.segmented-btn.active{
  background:rgba(43,212,165,.18);
  border-color:rgba(43,212,165,.28);
}

.map-wrap{
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:auto;
  max-height: calc(100vh - 320px);
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.map-scrollbar{
  margin-top:10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow-x:auto;
  overflow-y:hidden;
  background:var(--surface-2);
  height:18px;
}

.map-scrollbar-inner{
  height:12px;
  width:0;
}

.map-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.map-legend{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.legend-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--btn-bg);
  font-weight:900;
  font-size:11px;
  line-height:1;
}

.legend-item::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--muted);
}

.legend-item.legend-bar::before{
  width:28px;
  height:10px;
  border-radius:999px;
  background:rgba(140,155,180,.12);
  border:1px solid rgba(140,155,180,.20);
  box-sizing:border-box;
}

.legend-item.legend-bar.checkin-pendente::before{
  background:linear-gradient(90deg, rgba(246,196,83,.26), rgba(246,196,83,.12));
  border-color:rgba(246,196,83,.35);
}

.legend-item.legend-bar.pre-reservado::before{
  background:linear-gradient(90deg, rgba(69,149,255,.26), rgba(69,149,255,.12));
  border-color:rgba(69,149,255,.35);
}

.legend-item.legend-bar.checkin-done::before{
  background:linear-gradient(90deg, rgba(43,212,165,.46), rgba(43,212,165,.18));
  border-color:rgba(43,212,165,.55);
}

.legend-item.legend-bar.checkout-done::before{
  background:linear-gradient(90deg, rgba(100,116,139,.40), rgba(100,116,139,.16));
  border-color:rgba(148,163,184,.55);
}

.legend-item.legend-bar.atraso::before{
  background:linear-gradient(90deg, rgba(255,77,109,.40), rgba(255,77,109,.16));
  border-color:rgba(255,77,109,.55);
}

.legend-item.legend-bar.bloqueado::before{
  background:linear-gradient(90deg, rgba(148,158,174,.26), rgba(148,158,174,.12));
  border-color:rgba(148,158,174,.35);
}

.legend-item.confirmada::before{background:rgba(246,196,83,.95)}
.legend-item.pendente::before{background:rgba(246,196,83,.95)}
.legend-item.bloqueado::before{background:rgba(148,158,174,.95)}

.map-grid{
  display:flex;
  flex-direction:column;
  min-width: 980px;
  width: max-content;
}

.map-row{
  display:grid;
  border-bottom:1px solid rgba(255,255,255,.06);
  width:max-content;
}

html[data-theme="light"] .map-row{
  border-bottom:1px solid rgba(10,18,32,.08);
}

.map-header{
  position:sticky;
  top:0;
  z-index:5;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 12px rgba(0,0,0,.22);
}

.map-header .map-room-cell{
  z-index: 8;
  box-shadow: 1px 0 0 var(--border), 4px 0 12px rgba(0,0,0,.18);
}

.map-room-cell{
  position:sticky;
  left:0;
  z-index:4;
  background:var(--surface-2);
  border-right:1px solid var(--border);
  padding:10px 10px;
  font-weight:900;
  font-size:12px;
  box-shadow: 1px 0 0 var(--border), 4px 0 12px rgba(0,0,0,.12);
}

.map-room-cell small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-weight:800;
}

.map-day-cell{
  padding:8px 6px;
  border-right:1px solid rgba(255,255,255,.06);
  font-size:11px;
  color:var(--muted);
  text-align:center;
  background:var(--surface-1);
}

.map-day-cell.map-weekend{
  background:rgba(246,196,83,.06);
}

html[data-theme="light"] .map-day-cell{
  border-right:1px solid rgba(10,18,32,.06);
}

.map-day-cell strong{
  display:block;
  color:var(--text);
  font-size:12px;
}

.map-cells{
  display:grid;
  position:relative;
  background:var(--surface-1);
}

.map-cell{
  border-right:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  min-height:44px;
}

.map-cell{
  cursor:crosshair;
}

.map-cell.map-selected{
  background:rgba(43,212,165,.12);
  box-shadow: inset 0 0 0 1px rgba(43,212,165,.35);
}

.map-cell.map-selected.map-weekend{
  background:rgba(43,212,165,.10);
}

.map-cell.map-selected.map-today-col{
  box-shadow: inset 0 0 0 1px rgba(43,212,165,.45), inset 0 0 0 999px rgba(69,149,255,.08);
}

.map-cell.map-weekend{
  background:rgba(246,196,83,.05);
}

html[data-theme="light"] .map-cell{
  border-right:1px solid rgba(10,18,32,.06);
  border-bottom:1px solid rgba(10,18,32,.06);
}

.map-bar{
  position:absolute;
  top:7px;
  height:28px;
  border-radius:10px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:12px;
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  user-select:none;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.map-bar-code{
  font-size:11px;
  opacity:.92;
  flex:0 0 auto;
}

.map-bar-name{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.map-bar.confirmada{
  background:linear-gradient(90deg, rgba(43,212,165,.26), rgba(43,212,165,.12));
  border-color:rgba(43,212,165,.28);
}

.map-bar.pendente{
  background:linear-gradient(90deg, rgba(246,196,83,.26), rgba(246,196,83,.12));
  border-color:rgba(246,196,83,.28);
}

.map-bar.bloqueado{
  background:linear-gradient(90deg, rgba(148,158,174,.26), rgba(148,158,174,.12));
  border-color:rgba(148,158,174,.35);
}

.map-bar.pre-reservado{
  background:linear-gradient(90deg, rgba(69,149,255,.26), rgba(69,149,255,.12));
  border-color:rgba(69,149,255,.35);
}

.map-bar.checkin-pendente{
  background:linear-gradient(90deg, rgba(246,196,83,.26), rgba(246,196,83,.12));
  border-color:rgba(246,196,83,.35);
}

.map-bar.checkin-done{
  background:linear-gradient(90deg, rgba(43,212,165,.46), rgba(43,212,165,.18));
  border-color:rgba(43,212,165,.55);
}

.map-bar.checkout-done{
  background:linear-gradient(90deg, rgba(100,116,139,.40), rgba(100,116,139,.16));
  border-color:rgba(148,163,184,.55);
}

.map-bar.checkout-late{
  background:linear-gradient(90deg, rgba(255,77,109,.40), rgba(255,77,109,.16));
  border-color:rgba(255,77,109,.55);
}

.map-bar.checkout-late .map-bar-code,
.map-bar.checkout-late .map-bar-name{
  color:var(--text);
}

.map-pay-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  flex:0 0 auto;
  box-shadow:0 0 0 2px rgba(255,255,255,.10);
}

.map-pay-dot.unpaid{
  background:rgba(255,77,109,.95);
}

.map-pay-dot.paid-pending-checkin{
  background:rgba(69,149,255,.95);
}

.map-pay-dot.partial{
  background:rgba(245,158,11,.95);
}

.map-bar:hover{filter:brightness(1.06)}

.map-today-col{
  background:rgba(69,149,255,.08);
}

.map-popover{
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  z-index:10020;
  background:var(--overlay-bg);
  backdrop-filter: blur(6px);
  align-items:center;
  justify-content:center;
  padding:12px;
}

.map-popover-panel{
  width:min(1120px, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  display:flex;
  flex-direction:column;
  border:1px solid var(--border);
  background:var(--surface-4);
  box-shadow:var(--shadow);
  border-radius:16px;
  padding:12px;
  overflow:hidden;
}

.map-popover-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--border);
  padding-bottom:10px;
}

.map-popover-title{
  font-weight:1000;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.map-popover-body{
  padding-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow-y:auto;
  flex:1 1 auto;
  min-height:0;
}

.map-detail-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.map-detail-name{
  font-size:18px;
  font-weight:1000;
  line-height:1.15;
  margin-top:2px;
}

.map-detail-sub{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.map-detail-meta{
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:210px;
}

.map-detail-code{
  font-weight:900;
  letter-spacing:.02em;
}

.map-detail-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.map-detail-span-2{
  grid-column:1 / -1;
}

@media (max-width: 760px){
  .map-popover-panel{width:min(640px, calc(100vw - 24px))}
  .map-detail-grid{grid-template-columns:1fr}
  .map-detail-span-2{grid-column:auto}
  .map-detail-meta{text-align:left; min-width:auto}
}

.map-popover-actions{
  padding-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.map-popover-actions .btn{
  white-space:nowrap;
}

.map-popover-foot{
  padding-top:12px;
  margin-top:10px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.map-bar.inhouse{
  box-shadow:0 0 0 3px rgba(43,212,165,.12);
}

.map-bar.clip-left{
  border-top-left-radius:0;
  border-bottom-left-radius:0;
}

.map-bar.checkout-soon{
  box-shadow:0 0 0 3px rgba(246,196,83,.10);
}

.drawer-overlay{
  display:none;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  z-index:10000;
  background:var(--overlay-bg);
  backdrop-filter: blur(6px);
  align-items:stretch;
  justify-content:flex-end;
}

.drawer{
  width:min(430px, 94vw);
  height:100%;
  border-left:1px solid var(--border);
  background:var(--surface-4);
  box-shadow:var(--shadow);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.drawer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--border);
  padding-bottom:10px;
}

.drawer-title{
  font-weight:1000;
  font-size:14px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.drawer-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.drawer-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  border-top:1px solid var(--border);
  padding-top:12px;
}

.calendar-shell{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.calendar-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.calendar-toolbar h2{
  margin:0;
  font-size:16px;
}

.calendar-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}

.day{
  border:1px solid var(--day-border);
  background:var(--day-bg);
  border-radius:12px;
  padding:10px;
  min-height:86px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.day .num{
  font-weight:900;
  font-size:12px;
  color:var(--day-num);
}

.day.today{
  border-color:rgba(43,212,165,.35);
  box-shadow:0 0 0 3px rgba(43,212,165,.12);
}

.pill{
  margin-top:8px;
  border-radius:10px;
  padding:8px 9px;
  font-weight:900;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
  user-select:none;
}

.pill.pendente{background:rgba(246,196,83,.16); border:1px solid rgba(246,196,83,.28)}
.pill.confirmada{background:rgba(43,212,165,.14); border:1px solid rgba(43,212,165,.28)}
.pill.bloqueado{background:rgba(255,77,109,.12); border:1px solid rgba(255,77,109,.26)}

.pill small{color:var(--muted); font-weight:800}

.mini-badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.mini-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--btn-bg);
  font-weight:900;
  font-size:11px;
  line-height:1;
  max-width:100%;
}

.mini-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  flex:0 0 auto;
}

.mini-tag{
  opacity:.92;
  flex:0 0 auto;
}

.mini-count{
  color:var(--muted);
  font-weight:900;
  margin-left:2px;
}

.mini-badge.confirmada{
  background:rgba(43,212,165,.14);
  border-color:rgba(43,212,165,.22);
}
.mini-badge.confirmada .mini-dot{background:rgba(43,212,165,.95)}

.mini-badge.pendente{
  background:rgba(246,196,83,.16);
  border-color:rgba(246,196,83,.22);
}
.mini-badge.pendente .mini-dot{background:rgba(246,196,83,.95)}

.mini-badge.bloqueado{
  background:rgba(255,77,109,.12);
  border-color:rgba(255,77,109,.22);
}
.mini-badge.bloqueado .mini-dot{background:rgba(255,77,109,.95)}

.reservation-modal{
  display:none;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  z-index:9999;
  background:var(--overlay-bg);
  backdrop-filter: blur(6px);
  overflow:auto;
}

.reservation-content{
  border:1px solid var(--border);
  background:var(--surface-4);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  max-height:calc(100vh - 40px);
  overflow:auto;
}

.event-item{
  border:1px solid var(--event-border);
  border-radius:12px;
  padding:10px;
  background:var(--event-bg);
}

.event-item h4{
  margin:0 0 6px;
  font-size:14px;
}

.event-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}

.table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:var(--radius);
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:860px;
}

.table th,
.table td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}

html[data-theme="light"] .table th,
html[data-theme="light"] .table td{
  border-bottom:1px solid rgba(10,18,32,.08);
}

.table th{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  background:var(--table-head-bg);
  position:sticky;
  top:0;
  z-index:1;
}

.table tr:hover td{
  background:var(--table-row-hover);
}

.table th.actions-col,
.table td.actions-col{
  min-width:260px;
  text-align:right;
}

.table-actions{
  display:grid;
  grid-template-columns:repeat(2, max-content);
  justify-content:end;
  gap:8px;
}

.table-actions .btn{
  white-space:nowrap;
}

.fnrh-sheet{
  width:190mm;
  max-width:100%;
  margin:0 auto;
  border:1px solid rgba(148,158,174,.35);
  background:#fff;
  border-radius:12px;
  padding:10px;
  line-height:1.15;
  color:#0f172a;
  box-shadow:0 18px 40px rgba(15,23,42,.10);
  page-break-inside:avoid;
}

.fnrh-top{
  display:grid;
  grid-template-columns:170px 1fr 120px;
  align-items:center;
  gap:8px;
}

.fnrh-brand-name{
  font-weight:1000;
  font-size:16px;
  letter-spacing:.02em;
  line-height:1;
}

.fnrh-brand-booking{color:#0f172a}
.fnrh-brand-now{color:#10b981}

.fnrh-brand-badge{
  margin-top:5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 9px;
  border-radius:999px;
  border:1px solid rgba(148,158,174,.35);
  background:#f8fafc;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  color:#0f172a;
}

.fnrh-top-center{
  text-align:center;
}

.fnrh-main-title{
  font-weight:1000;
  font-size:11px;
  letter-spacing:.02em;
}

.fnrh-subtitle{
  margin-top:2px;
  font-size:8px;
  color:#64748b;
}

.fnrh-num-box{
  border:1px solid rgba(148,158,174,.35);
  border-radius:10px;
  background:#f8fafc;
  padding:6px 9px;
  text-align:center;
}

.fnrh-num-label{
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  color:#475569;
}

.fnrh-num-value{
  margin-top:2px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.04em;
  color:#0f172a;
}

.fnrh-block{
  margin-top:8px;
  border:1px solid rgba(148,158,174,.28);
  border-radius:12px;
  background:#fff;
  padding:8px;
}

.fnrh-block-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-bottom:6px;
}

.fnrh-ico{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1e293b;
}

.fnrh-ico svg{
  width:16px;
  height:16px;
  display:block;
  shape-rendering:geometricPrecision;
  vector-effect:non-scaling-stroke;
}

.fnrh-block-title{
  font-weight:1000;
  font-size:10px;
  letter-spacing:.12em;
  color:#0f172a;
}

.fnrh-row{
  display:grid;
  gap:6px;
  margin-top:6px;
}

.fnrh-block .fnrh-row:first-of-type{margin-top:0}

.fnrh-cols-1{grid-template-columns:1fr}
.fnrh-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.fnrh-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
.fnrh-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}
.fnrh-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr))}

.fnrh-span-2{grid-column:span 2}
.fnrh-uf input{text-transform:uppercase}

.fnrh-field label{
  display:block;
  font-size:7.5px;
  font-weight:900;
  letter-spacing:.12em;
  color:#64748b;
  text-transform:uppercase;
  margin-bottom:3px;
}

.fnrh-field input{
  width:100%;
  height:24px;
  padding:5px 7px;
  border-radius:10px;
  border:1px solid rgba(148,158,174,.28);
  background:#fff;
  color:#0f172a;
  outline:none;
  font-size:10px;
}

.fnrh-field input:focus{
  border-color:rgba(16,185,129,.65);
  box-shadow:0 0 0 3px rgba(16,185,129,.14);
}

.fnrh-choices{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding-top:0;
}

.fnrh-choices.fnrh-choices-wide{
  gap:12px;
}

.fnrh-choice{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.08em;
  color:#0f172a;
  white-space:nowrap;
}

.fnrh-choice input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
  margin:0;
  padding:0;
  border:0;
  appearance:none;
  -webkit-appearance:none;
}

.fnrh-box{
  width:11px;
  height:11px;
  border:1px solid rgba(148,158,174,.55);
  border-radius:3px;
  background:#fff;
  display:inline-block;
  position:relative;
}

.fnrh-choice input:checked + .fnrh-box::after{
  content:"";
  position:absolute;
  left:3px;
  top:-1px;
  width:4px;
  height:7px;
  border:2px solid #10b981;
  border-top:0;
  border-left:0;
  transform:rotate(45deg);
}

.fnrh-choice-text{
  display:inline-block;
}

.fnrh-table{
  border:1px solid rgba(148,158,174,.28);
  border-radius:10px;
  overflow:hidden;
}

.fnrh-table-head,
.fnrh-table-row{
  display:grid;
  grid-template-columns:28px 2.2fr 1.3fr 1.3fr 1.3fr;
}

.fnrh-table-head{
  background:#f8fafc;
  border-bottom:1px solid rgba(148,158,174,.22);
}

.fnrh-table-row{
  border-bottom:1px solid rgba(148,158,174,.18);
  background:#fff;
}

.fnrh-table-row:last-child{
  border-bottom:none;
}

.fnrh-table-cell{
  padding:4px 6px;
  border-right:1px solid rgba(148,158,174,.18);
  font-size:9.5px;
  color:#0f172a;
  display:flex;
  align-items:center;
  min-height:24px;
}

.fnrh-table-cell:last-child{
  border-right:none;
}

.fnrh-table-head .fnrh-table-cell{
  font-size:8px;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
}

.fnrh-table-n{
  justify-content:center;
  color:#64748b;
  font-weight:900;
}

.fnrh-table .fnrh-table-cell input{
  height:18px;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font-size:10px;
}

.fnrh-table .fnrh-table-cell input:focus{
  box-shadow:none;
}

.fnrh-trip-other{
  display:flex;
  align-items:center;
  gap:6px;
}

.fnrh-trip-other-label{
  font-size:7.5px;
  font-weight:1000;
  letter-spacing:.12em;
  color:#94a3b8;
}

.fnrh-trip-other input{
  width:140px;
  height:18px;
  padding:0 6px;
  border-radius:10px;
  border:1px solid rgba(148,158,174,.28);
  background:#fff;
  color:#0f172a;
  outline:none;
  font-size:10px;
}

.fnrh-sign{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  align-items:end;
}

.fnrh-sign-text{
  font-size:9px;
  color:#475569;
  line-height:1.25;
}

.fnrh-sign-label{
  font-size:8px;
  font-weight:1000;
  letter-spacing:.12em;
  color:#64748b;
  text-align:center;
}

.fnrh-sign-line{
  margin-top:8px;
  border-bottom:1px solid rgba(148,158,174,.55);
  padding-bottom:4px;
}

.fnrh-signature{
  width:100%;
  height:24px;
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  font-family:"Segoe Script","Brush Script MT",cursive;
  font-size:18px !important;
  text-align:center;
  padding:0 !important;
}

.fnrh-footer{
  margin-top:8px;
  font-size:8px;
  color:#94a3b8;
  text-align:center;
  line-height:1.2;
}

@page{
  size:A4;
  margin:6mm;
}

@media print{
  body{background:#fff !important; -webkit-print-color-adjust:exact; print-color-adjust:exact}
  html, body{overflow:visible !important}
  *{scrollbar-width:none !important}
  *::-webkit-scrollbar{width:0 !important; height:0 !important}
  body.print-fnrh #fnrhMsg{display:none !important}
  body.print-fnrh .fnrh-sheet{
    padding:9px;
  }
  body.print-fnrh .fnrh-block{
    margin-top:7px;
    padding:7px;
  }
  body.print-fnrh .shell{display:none !important}
  body.print-fnrh #moveModal{display:none !important}
  body.print-fnrh #reservaModal{
    display:block !important;
    position:static !important;
    width:auto !important;
    height:auto !important;
    background:transparent !important;
    backdrop-filter:none !important;
    overflow:visible !important;
  }
  body.print-fnrh .reservation-content{
    border:none !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    width:auto !important;
    max-width:none !important;
    max-height:none !important;
    overflow:visible !important;
  }
  body.print-fnrh #printFnrhBtn,
  body.print-fnrh #saveFnrhBtn,
  body.print-fnrh #closeReservaModal{
    display:none !important;
  }
  body.print-fnrh #reservaTitle,
  body.print-fnrh #reservaSub{
    display:none !important;
  }
  body.print-fnrh .fnrh-sheet{
    background:#fff !important;
    box-shadow:none !important;
    break-inside:avoid;
    page-break-inside:avoid;
    zoom:var(--fnrh-print-scale, 1);
    transform:none !important;
  }
  body.print-fnrh .fnrh-block{
    break-inside:avoid;
    page-break-inside:avoid;
  }
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--btn-bg);
  font-weight:900;
  font-size:12px;
  line-height:1;
}

.chip.confirmada{border-color:rgba(43,212,165,.25); background:rgba(43,212,165,.12)}
.chip.pendente{border-color:rgba(246,196,83,.25); background:rgba(246,196,83,.12)}
.chip.pre_reservado{border-color:rgba(69,149,255,.30); background:rgba(69,149,255,.14)}
.chip.bloqueado{border-color:rgba(148,158,174,.32); background:rgba(148,158,174,.16)}
.chip.cancelada{border-color:rgba(255,77,109,.25); background:rgba(255,77,109,.10)}

.finance-status-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:2px;
}

.finance-progress{
  width:100%;
  height:8px;
  border-radius:999px;
  margin-top:10px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  overflow:hidden;
}

html[data-theme="light"] .finance-progress{
  background:rgba(10,18,32,.08);
}

.finance-progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(47,107,255,.95), rgba(43,212,165,.95));
  transition:width .2s ease;
}

.finance-quick-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 10px;
}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative; height:auto; top:0}
  .grid{grid-template-columns:1fr}
}

@media (max-width: 860px){
  body{
    background-attachment: scroll;
  }

  .topbar{
    position:sticky;
    top:0;
    z-index:120000;
    padding:calc(8px + env(safe-area-inset-top)) 12px 8px;
  }

  .brand-logo{
    height:54px;
    max-width:62vw;
  }

  .brand-sub{
    display:none;
  }

  .layout{
    gap:12px;
    padding:12px;
  }

  .sidebar{
    max-height:none;
    overflow:visible;
  }

  .workspace-head{
    padding:12px;
  }

  .embed-frame{
    height:calc(100dvh - 170px);
    border-radius:12px;
  }

  input, select, textarea{
    font-size:16px;
  }

  .reservation-modal{
    padding:12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .reservation-content{
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius:14px;
  }

  .drawer-overlay{
    padding:0;
  }

  .drawer{
    width:100vw;
    border-left:0;
    border-radius:0;
    padding-top:calc(14px + env(safe-area-inset-top));
    padding-bottom:calc(14px + env(safe-area-inset-bottom));
  }

  .map-popover-panel{
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .map-popover-body{
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }

  .table{
    min-width:720px;
  }
}

/* ================================================================
   CATEGORIAS E FOTOS (extranet/categorias.html)
   Booking Now · Lalibertech
   ================================================================ */
.bn-spin-inline {
  display:inline-block; width:18px; height:18px; border:3px solid rgba(255,255,255,.14);
  border-top-color:var(--accent); border-radius:50%; animation:bnSpin 0.8s linear infinite;
  margin-right:10px; vertical-align:-4px;
}
@keyframes bnSpin { to { transform: rotate(360deg); } }

.cat-head-row {
  display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap;
  padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid var(--border);
}
.cat-head-title { display:flex; gap:12px; align-items:center; }
.cat-foto-capa-mini {
  width:82px; height:82px; border-radius:12px; object-fit:cover; background:var(--surface-2);
  border:2px solid var(--border);
}
.cat-head-title h2 { margin:0; font-size:20px; letter-spacing:-.2px; }
.cat-head-title p { margin:4px 0 0 0; color:var(--muted); font-size:13.5px; line-height:1.5; }
.cat-head-badges { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.cat-badge {
  padding:5px 10px; border-radius:999px; font-size:12.5px; font-weight:600;
  background:var(--surface-2); color:var(--muted); border:1px solid var(--border);
  display:inline-flex; gap:6px; align-items:center;
}
.cat-badge b { color:var(--text); font-weight:700; }
.cat-badge.capa { border-color:rgba(43,212,165,.35); color:var(--accent); background:rgba(43,212,165,.08); }
.cat-badge.lotado { border-color:rgba(255,77,109,.35); color:var(--danger); background:rgba(255,77,109,.08); }

.cat-upload-shell {
  border:2px dashed var(--border); border-radius:var(--radius); padding:26px;
  background:linear-gradient(180deg, var(--surface-1), var(--surface-2));
  text-align:center; transition: all .2s ease;
  margin-bottom:14px;
}
.cat-upload-shell.hovering {
  border-color:var(--accent); background:rgba(43,212,165,.06);
  transform: translateY(-1px);
}
.cat-upload-shell.disabled {
  opacity:0.5; pointer-events:none; cursor:not-allowed;
  border-color:rgba(255,77,109,.3); background:rgba(255,77,109,.03);
}
.cat-upload-ico {
  font-size:34px; color:var(--accent); margin-bottom:8px; display:block;
}
.cat-upload-title { font-size:16px; font-weight:700; margin:0 0 4px 0; }
.cat-upload-sub { color:var(--muted); font-size:13.5px; margin:0 0 12px 0; }
.cat-upload-limite-hint {
  display:inline-flex; gap:8px; align-items:center;
  margin-top:10px; padding:6px 12px; border-radius:999px;
  background:var(--surface-3); color:var(--muted); font-size:12px; font-weight:600;
}
.cat-upload-limite-hint.lotado {
  background:rgba(255,77,109,.1); color:var(--danger); border:1px solid rgba(255,77,109,.25);
}
.cat-upload-input { display:none; }

.cat-galeria-grid {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap:12px; margin-bottom:10px;
}
.cat-foto-card {
  position:relative; aspect-ratio: 1/1; overflow:hidden; border-radius:12px;
  border:2px solid var(--border); background:var(--surface-2); transition:all .18s;
}
.cat-foto-card:hover { transform: translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.35); border-color:rgba(255,255,255,.14); }
.cat-foto-card.capa {
  border-color:rgba(43,212,165,.6);
  box-shadow: 0 0 0 2px rgba(43,212,165,.22), 0 10px 24px rgba(43,212,165,.08);
}
.cat-foto-img { width:100%; height:100%; object-fit:cover; display:block; }
.cat-foto-empty {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:14px; text-align:center; padding:10px; line-height:1.4;
}
.cat-foto-badge-capa {
  position:absolute; top:8px; left:8px; z-index:2;
  background:rgba(43,212,165,.95); color:#00261b;
  padding:4px 8px; border-radius:8px; font-size:11px; font-weight:800;
  display:inline-flex; gap:4px; align-items:center;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.cat-foto-actions {
  position:absolute; bottom:0; left:0; right:0; z-index:2;
  padding:8px; display:flex; gap:6px;
  background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75) 60%);
  opacity:0; transform: translateY(4px); transition: all .18s ease;
}
.cat-foto-card:hover .cat-foto-actions { opacity:1; transform: translateY(0); }
.cat-foto-btn {
  flex:1; padding:6px 4px; border:none; border-radius:7px; cursor:pointer;
  font-size:11.5px; font-weight:700; color:#fff; display:inline-flex; gap:4px;
  align-items:center; justify-content:center; background:rgba(255,255,255,.1);
  backdrop-filter: blur(6px); transition:all .15s;
}
.cat-foto-btn:hover { background:rgba(255,255,255,.18); }
.cat-foto-btn.capa-btn { background:rgba(43,212,165,.22); color: #80f0ce; }
.cat-foto-btn.capa-btn:hover { background:rgba(43,212,165,.4); color: #b4f6de; }
.cat-foto-btn.excluir-btn { background:rgba(255,77,109,.22); color: #ffb2c1; }
.cat-foto-btn.excluir-btn:hover { background:rgba(255,77,109,.45); color: #ffdbe2; }
.cat-foto-btn:disabled { opacity:0.5; cursor:not-allowed; pointer-events:none; }

.cat-metadados-row {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:12px; margin-top:14px; padding-top:14px; border-top:1px dashed var(--border);
}
.cat-meta-item {
  padding:10px 12px; border-radius:10px; background:var(--surface-1);
  border:1px solid var(--border);
}
.cat-meta-item label { display:block; font-size:11.5px; color:var(--muted); margin-bottom:3px; font-weight:600; text-transform:uppercase; letter-spacing:.3px; }
.cat-meta-item strong { font-size:14.5px; color:var(--text); }

/* ======== RESPONSIVO EXTRANET CATEGORIAS ======== */
@media (max-width: 620px) {
  .cat-head-title h2 { font-size:17px; }
  .cat-foto-capa-mini { width:66px; height:66px; border-radius:10px; }
  .cat-galeria-grid { grid-template-columns: repeat(2, 1fr); gap:9px; }
  .cat-upload-shell { padding:18px 12px; }
  .cat-foto-actions { opacity:1; transform: translateY(0); }
}
