:root{--brand:#0f766e;--dark:#0f172a;--muted:#64748b;--bg:#f8fafc;--card:#fff;--line:#e2e8f0;--red:#dc2626;--green:#16a34a;--amber:#d97706}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--dark)}a{text-decoration:none;color:inherit}.top{background:linear-gradient(135deg,#0f172a,#0f766e);color:white;padding:18px 5%}.nav{display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{font-weight:800;font-size:22px}.nav a{margin-left:14px;color:white;opacity:.95}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:35px;align-items:center;padding:60px 5%}.hero h1{font-size:44px;line-height:1.05;margin:0 0 15px}.hero p{font-size:18px;color:#e2e8f0}.btn{background:var(--brand);border:0;color:#fff;border-radius:14px;padding:13px 20px;font-weight:700;cursor:pointer;display:inline-block}.btn.secondary{background:#fff;color:var(--brand)}.btn.small{padding:8px 12px;border-radius:10px;font-size:13px}.wrap{max-width:1180px;margin:auto;padding:24px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.06)}.stat b{font-size:28px}.muted{color:var(--muted)}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#0f766e)}.login .card{width:min(94%,480px)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:13px;padding:13px;font-size:15px;background:white}.field textarea{min-height:90px}.layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:#0f172a;color:white;padding:18px;position:sticky;top:0;height:100vh}.sidebar .logo{font-size:19px;font-weight:800;margin-bottom:22px}.sidebar a{display:block;padding:12px;border-radius:12px;color:#dbeafe;margin:3px 0}.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.1);color:white}.main{padding:22px;overflow:auto}.bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.table{width:100%;border-collapse:collapse;background:white;border-radius:18px;overflow:hidden}.table th,.table td{padding:13px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}.table th{background:#f1f5f9}.badge{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#e2e8f0}.disponivel,.confirmada,.pago,.ativa{background:#dcfce7;color:#166534}.ocupado,.checkin{background:#dbeafe;color:#1d4ed8}.limpeza,.pendente,.em_atendimento{background:#fef3c7;color:#92400e}.manutencao,.cancelada,.inativa{background:#fee2e2;color:#991b1b}.checkout,.convertida{background:#ede9fe;color:#6d28d9}.actions{display:flex;gap:8px;flex-wrap:wrap}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.public-card-img{height:170px;border-radius:18px;background:linear-gradient(135deg,#ccfbf1,#fef9c3);display:grid;place-items:center;font-size:52px}.footer{text-align:center;padding:30px;color:var(--muted)}
@media(max-width:850px){.hero,.grid,.grid3,.layout,.formgrid{grid-template-columns:1fr}.sidebar{height:auto;position:relative}.hero h1{font-size:34px}.nav{align-items:flex-start;flex-direction:column}.nav a{margin:0 10px 0 0}.main{padding:14px}.table{display:block;overflow:auto}}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-top:16px}.gallery img{width:100%;height:120px;object-fit:cover;border-radius:14px}.sidebar hr{border:0;border-top:1px solid rgba(255,255,255,.15);width:100%}.badge.teste{background:#fef3c7;color:#92400e}.badge.bloqueada,.badge.inativa{background:#fee2e2;color:#991b1b}.badge.ativa{background:#dcfce7;color:#166534}.badge.reservado{background:#e0e7ff;color:#3730a3}


/* Correções v6.1 */
.loginbody{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#0f766e);padding:22px}
.loginbox{width:min(94vw,520px)}
.loginbox h1{margin:0 0 8px;font-size:34px;line-height:1.15}
.loginbox form{margin-top:18px}.full{width:100%;text-align:center;margin-top:10px}.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:10px 12px;border-radius:12px;font-weight:700}
.hero .card p,.hero .card .muted{color:#475569}.hero .card h2{color:#0f172a}
.brand img{object-fit:contain;background:white;padding:3px}
@media(max-width:850px){.loginbox h1{font-size:28px}.loginbody{align-items:start;padding-top:55px}.brand{font-size:20px;line-height:1.2}.brand img{height:34px!important}}


/* v6.6 - consumo e recibo */
.receipt{max-width:860px;margin:25px auto;background:white;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.receipt-head{display:flex;gap:18px;align-items:center}.receipt-head img{width:90px;max-height:80px;object-fit:contain}.totals{margin-left:auto;width:min(100%,320px);font-size:17px}.totals p{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0;margin:0}.printbody{background:#f1f5f9}.badge.ativo{background:#dcfce7;color:#166534}.badge.inativo{background:#fee2e2;color:#991b1b}
@media print{.no-print,.sidebar,.bar{display:none!important}body,.printbody{background:white}.receipt{box-shadow:none;border:0;margin:0;max-width:none;border-radius:0}.table th,.table td{font-size:12px;padding:8px}.grid3{grid-template-columns:repeat(3,1fr)}}

.success{background:#dcfce7;color:#166534;border:1px solid #86efac;padding:10px 14px;border-radius:12px;margin:10px 0}.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:10px 14px;border-radius:12px;margin:10px 0}
/* v7.0 - ajustes SaaS */
.masterbox{background:rgba(20,184,166,.16);border:1px solid rgba(45,212,191,.35);color:#ccfbf1;border-radius:14px;padding:12px;margin:0 0 12px;font-weight:700}.danger{background:#dc2626!important}.warn{background:#d97706!important}.info{background:#2563eb!important}

/* v7.2.6 - painel responsivo e identidade do cliente */
.menu-toggle{display:none;position:fixed;top:12px;left:12px;z-index:1200;border:0;background:#0f172a;color:#fff;width:44px;height:44px;border-radius:12px;font-size:24px;box-shadow:0 8px 20px rgba(15,23,42,.2)}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:1000}
.side-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px;min-height:58px}
.side-logo{width:52px;height:52px;border-radius:16px;background:#fff;display:grid;place-items:center;overflow:hidden;flex:0 0 52px;box-shadow:0 8px 22px rgba(0,0,0,.16)}
.side-logo img{width:100%;height:100%;object-fit:contain;padding:4px;background:#fff}.side-logo span{font-size:28px}.side-title{font-size:19px;font-weight:800;line-height:1.15;color:#fff;word-break:break-word}.hello-title{margin:0;font-size:28px;line-height:1.2}.sidebar-footer{margin-top:22px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);color:#94a3b8;font-size:13px;line-height:1.6}.sidebar-footer a{color:#93c5fd!important;padding:0!important;margin:0!important;border-radius:0!important}.side-nav hr{border:0;border-top:1px solid rgba(255,255,255,.15);width:100%;margin:10px 0}.sidebar .logo{display:none!important}
@media(max-width:850px){
  .menu-toggle{display:block}.layout{display:block}.main{padding-top:66px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(84vw,330px);height:100vh;z-index:1100;transform:translateX(-105%);transition:transform .22s ease;overflow:auto;padding:22px 18px}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-overlay{display:block}.side-brand{margin-top:46px}.sidebar a{font-size:18px;padding:14px 16px}.hello-title{font-size:24px}.bar{align-items:flex-start}.table{font-size:14px}.card{border-radius:18px;padding:18px}
}
@media(min-width:851px){.sidebar{overflow:auto}.main{min-width:0}.bar{position:relative}.sidebar-footer{position:sticky;top:calc(100vh - 90px);background:#0f172a}}

/* v7.2.7 - ajuste fino do painel responsivo */
.admin-body{background:#f8fafc}.app-layout{grid-template-columns:280px 1fr}.app-sidebar{padding:22px 18px;display:flex;flex-direction:column;gap:0}.side-brand{display:flex!important;align-items:center!important;gap:14px!important;margin-bottom:22px!important;min-height:auto!important}.side-logo{width:58px!important;height:58px!important;border-radius:18px!important;background:#fff!important;display:grid!important;place-items:center!important;overflow:hidden!important;flex:0 0 58px!important;box-shadow:0 8px 22px rgba(0,0,0,.16)!important}.side-logo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:5px!important;background:#fff!important}.side-logo span{font-size:30px}.side-title{font-size:20px!important;font-weight:800!important;line-height:1.15!important;color:#fff!important;word-break:break-word!important}.side-nav a{font-size:16px;padding:12px 13px;margin:4px 0}.side-nav hr{border:0;border-top:1px solid rgba(255,255,255,.15);width:100%;margin:10px 0}.sidebar-footer{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);color:#94a3b8;font-size:13px;line-height:1.6}.sidebar-footer a{color:#93c5fd!important;padding:0!important;margin:0!important;border-radius:0!important;display:inline!important}.app-main{min-width:0}.app-bar{background:transparent;padding:0;margin-bottom:18px}.hello-title{margin:0!important;font-size:28px!important;line-height:1.2!important}.mobile-topbar{display:none}.hamburger{appearance:none;border:0;background:rgba(255,255,255,.12);color:#fff;width:44px;height:44px;border-radius:12px;font-size:24px;line-height:1;display:grid;place-items:center}.mobile-title{font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:1000}.sidebar .logo{display:none!important}.footer a{color:#0f766e;font-weight:700}
@media(max-width:850px){
  .mobile-topbar{display:flex;position:fixed;left:0;right:0;top:0;z-index:1200;align-items:center;gap:12px;background:#0f172a;padding:10px 14px;box-shadow:0 8px 24px rgba(15,23,42,.22)}
  .layout.app-layout{display:block;min-height:100vh}.app-main{padding-top:74px!important}.app-sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:min(82vw,320px)!important;height:100vh!important;z-index:1100!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;overflow:auto!important;padding:78px 18px 22px!important;background:#0f172a!important}.sidebar-open .app-sidebar{transform:translateX(0)!important}.sidebar-open .sidebar-overlay{display:block!important}.side-brand{margin-bottom:18px!important}.side-logo{width:54px!important;height:54px!important;flex-basis:54px!important}.side-title{font-size:20px!important}.side-nav a{font-size:18px!important;padding:14px 16px!important}.hello-title{font-size:24px!important}.card{border-radius:18px;padding:18px}.grid,.grid3,.formgrid{grid-template-columns:1fr!important}.table{display:block;overflow:auto}.menu-toggle{display:none!important}
}


/* v7.2.8 - padrão comercial estável do painel */
.admin-body{background:#f8fafc!important;overflow-x:hidden!important}
.admin-body .mobile-topbar{display:none!important}
.admin-body .app-layout{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;min-height:100vh!important;background:#f8fafc!important}
.admin-body .app-sidebar{background:linear-gradient(180deg,#061226 0%,#0f172a 100%)!important;color:#fff!important;padding:28px 24px 22px!important;height:100vh!important;position:sticky!important;top:0!important;overflow-y:auto!important;z-index:20!important;box-shadow:16px 0 45px rgba(2,6,23,.08)!important;display:flex!important;flex-direction:column!important}
.admin-body .side-brand{display:flex!important;align-items:center!important;gap:14px!important;margin:0 0 28px!important;min-height:72px!important}
.admin-body .side-logo{width:64px!important;height:64px!important;min-width:64px!important;border-radius:20px!important;background:#fff!important;display:grid!important;place-items:center!important;overflow:hidden!important;box-shadow:0 14px 34px rgba(0,0,0,.22)!important}
.admin-body .side-logo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:6px!important;background:#fff!important;display:block!important}
.admin-body .side-logo span{font-size:32px!important;line-height:1!important}
.admin-body .side-title{font-size:22px!important;font-weight:900!important;line-height:1.12!important;color:#fff!important;letter-spacing:-.02em!important;word-break:normal!important;overflow-wrap:anywhere!important}
.admin-body .side-nav{display:block!important}
.admin-body .side-nav a{display:flex!important;align-items:center!important;gap:12px!important;color:#e5edf8!important;font-size:17px!important;font-weight:600!important;padding:14px 16px!important;margin:5px 0!important;border-radius:16px!important;transition:.18s ease!important;background:transparent!important}
.admin-body .side-nav a:hover,.admin-body .side-nav a.active{background:rgba(59,130,246,.16)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(147,197,253,.12)!important}
.admin-body .side-nav hr{border:0!important;border-top:1px solid rgba(255,255,255,.13)!important;width:100%!important;margin:16px 0!important}
.admin-body .sidebar-footer{margin-top:auto!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.14)!important;color:#94a3b8!important;font-size:14px!important;line-height:1.65!important}
.admin-body .sidebar-footer a{display:inline!important;color:#60a5fa!important;font-weight:800!important;padding:0!important;margin:0!important;background:transparent!important;border-radius:0!important}
.admin-body .app-main{padding:34px 34px 42px!important;min-width:0!important;overflow-x:hidden!important}
.admin-body .app-bar{background:transparent!important;margin:0 0 22px!important;padding:0!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important}
.admin-body .hello-title{font-size:32px!important;font-weight:900!important;letter-spacing:-.03em!important;margin:0!important;color:#0f172a!important;line-height:1.2!important}
.admin-body .card{border-radius:24px!important;border:1px solid #e2e8f0!important;box-shadow:0 14px 38px rgba(15,23,42,.06)!important}
.admin-body .btn{border-radius:14px!important}
.admin-body .table{border-radius:18px!important;overflow:hidden!important}
.admin-body .menu-toggle{display:none!important}
.admin-body .sidebar-overlay{display:none!important}
.admin-body .hamburger{appearance:none!important;border:0!important;background:rgba(255,255,255,.12)!important;color:#fff!important;width:44px!important;height:44px!important;border-radius:14px!important;font-size:24px!important;line-height:1!important;display:grid!important;place-items:center!important;box-shadow:none!important}
.admin-body .mobile-title{font-weight:900!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:16px!important}
.admin-body .sidebar .logo{display:none!important}
.footer a{color:#0f766e!important;font-weight:800!important}
@media(max-width:850px){
  .admin-body .mobile-topbar{display:flex!important;position:fixed!important;left:0!important;right:0!important;top:0!important;z-index:1200!important;align-items:center!important;gap:12px!important;background:#0f172a!important;padding:10px 14px!important;min-height:64px!important;box-shadow:0 10px 28px rgba(2,6,23,.25)!important}
  .admin-body .app-layout{display:block!important;min-height:100vh!important}
  .admin-body .app-main{padding:88px 16px 30px!important;width:100%!important}
  .admin-body .app-sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:min(86vw,360px)!important;max-width:360px!important;height:100vh!important;z-index:1100!important;transform:translateX(-105%)!important;transition:transform .24s ease!important;overflow-y:auto!important;padding:88px 20px 24px!important;border-right:1px solid rgba(255,255,255,.08)!important}
  .admin-body.sidebar-open .app-sidebar{transform:translateX(0)!important}
  .admin-body.sidebar-open .sidebar-overlay{display:block!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.58)!important;z-index:1000!important}
  .admin-body .side-brand{margin-bottom:24px!important;min-height:62px!important}
  .admin-body .side-logo{width:58px!important;height:58px!important;min-width:58px!important;border-radius:18px!important}
  .admin-body .side-title{font-size:21px!important}
  .admin-body .side-nav a{font-size:18px!important;padding:15px 16px!important;margin:6px 0!important}
  .admin-body .hello-title{font-size:26px!important;line-height:1.25!important}
  .admin-body .grid,.admin-body .grid3,.admin-body .formgrid{grid-template-columns:1fr!important}
  .admin-body .bar{display:block!important}
  .admin-body .card{border-radius:22px!important;padding:20px!important;margin-bottom:16px!important}
  .admin-body .table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}
  .admin-body .actions{gap:8px!important}
}


/* v7.3.0 - notificações visuais sem alteração no banco */
.admin-body .notif{position:relative;margin-left:auto;z-index:50}
.admin-body .notif summary{list-style:none;cursor:pointer;position:relative;width:48px;height:48px;border-radius:16px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 10px 24px rgba(15,23,42,.08);display:grid;place-items:center}
.admin-body .notif summary::-webkit-details-marker{display:none}
.admin-body .notif-icon{font-size:22px;line-height:1}
.admin-body .notif-count{position:absolute;right:-6px;top:-6px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.admin-body .notif-box{position:absolute;right:0;top:58px;width:min(340px,calc(100vw - 32px));background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 18px 46px rgba(15,23,42,.16);padding:14px;z-index:80}
.admin-body .notif-box h4{margin:0 0 10px;color:#0f172a}
.admin-body .notif-box a{display:block;padding:12px 12px;border-radius:12px;background:#f8fafc;color:#0f172a;font-weight:700;margin:8px 0;text-decoration:none}
.admin-body .notif-box a:hover{background:#e0f2fe;color:#075985}
@media(max-width:850px){.admin-body .app-bar{display:flex!important;align-items:center!important;gap:12px!important}.admin-body .notif summary{width:44px;height:44px;border-radius:14px}.admin-body .notif-box{right:0;top:54px}}

/* v8.0 - padrão visual inspirado no SIGO, sem alteração de banco */
.admin-body{--nav:#121d31;--nav2:#1d2a3d;--accent:#a85128;--accent2:#c66a32;--paper:#f4f6fa;--ink:#172033;background:var(--paper)!important;color:var(--ink)}
.admin-body .app-layout{grid-template-columns:284px minmax(0,1fr)!important}
.admin-body .app-sidebar{background:linear-gradient(180deg,var(--nav),var(--nav2))!important;padding:22px 16px!important}
.admin-body .side-brand{padding:4px 0 20px!important;margin-bottom:10px!important;border-bottom:1px solid rgba(255,255,255,.1)!important;position:relative}
.admin-body .side-logo{width:56px!important;height:56px!important;min-width:56px!important;border-radius:17px!important;background:linear-gradient(135deg,var(--accent2),#d98545)!important;color:#fff!important;box-shadow:none!important}
.admin-body .side-logo .brand-letter{font-size:25px;font-weight:900}
.admin-body .side-logo img{padding:4px!important;border-radius:14px}
.admin-body .side-brand-text{min-width:0;flex:1}.admin-body .side-title{font-size:20px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-body .side-subtitle{color:#aeb8c8;font-size:13px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-body .sidebar-close{display:none;border:0;background:rgba(255,255,255,.11);color:#fff;border-radius:13px;width:42px;height:42px;font-size:28px;line-height:1}
.admin-body .nav-section{font-size:11px;letter-spacing:.14em;font-weight:900;color:#9ca7b8;margin:22px 12px 8px}
.admin-body .side-nav a{border-radius:14px!important;padding:13px 15px!important;font-size:16px!important;margin:4px 0!important}
.admin-body .side-nav a>span{display:inline-flex;width:26px;justify-content:center;font-size:18px}
.admin-body .side-nav a.active{background:linear-gradient(90deg,var(--accent2),#74361f)!important;color:#fff!important;box-shadow:0 10px 26px rgba(168,81,40,.28)!important}
.admin-body .app-main{padding:30px 34px 48px!important}.admin-body .hello-title{font-size:30px!important}.admin-body .card{padding:28px!important;margin-bottom:22px!important;background:#fff!important}
.admin-body .card h3{font-size:24px;margin-top:0}.admin-body .card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.admin-body .btn{background:#138579!important;color:#fff!important;border:0!important;font-weight:800!important}.admin-body .btn:hover{filter:brightness(.95)}.admin-body .btn.secondary{background:#64748b!important}.admin-body .btn.info{background:#2563eb!important}.admin-body .btn.success{background:#15803d!important}.admin-body .btn.warn{background:#d97706!important}.admin-body .btn.danger{background:#dc2626!important}
.admin-body .crud-toolbar{margin:12px 0 18px}.admin-body .crud-new-btn{min-width:112px}.admin-body form[hidden]{display:none!important}.admin-body .form-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.admin-body .table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:16px}.admin-body .table-scroll .table{min-width:760px;width:100%;display:table!important;overflow:visible!important;white-space:normal!important}.admin-body .table th{background:#eef2f8!important;color:#182033!important;font-size:14px}.admin-body .table td,.admin-body .table th{padding:15px 14px!important;vertical-align:middle}.admin-body .actions-stack{display:flex!important;flex-wrap:wrap;gap:7px;min-width:190px}.admin-body .badge.cancelado{background:#e2e8f0;color:#475569}
@media(max-width:850px){
 .admin-body .mobile-topbar{min-height:72px!important}.admin-body .app-main{padding:94px 14px 32px!important}.admin-body .app-sidebar{width:min(88vw,360px)!important;padding:20px 16px 26px!important}.admin-body .sidebar-close{display:block}.admin-body .side-brand{padding-top:0!important}.admin-body .card{padding:20px 18px!important;border-radius:20px!important}.admin-body .hello-title{font-size:24px!important;max-width:calc(100vw - 90px)}.admin-body .card h3{font-size:22px}.admin-body .table-scroll{margin:0 -2px}.admin-body .side-nav a{font-size:17px!important;padding:14px 15px!important}
}
