/* THRev Console V0.34 — internal application shell on Flat Able Bootstrap 5. */
:root{
  --threv-console-bg:#f5f7fb;
  --threv-console-sidebar:#111827;
  --threv-console-card:#fff;
  --threv-console-border:#e6eaf0;
}
body{background:var(--threv-console-bg)}
.pc-sidebar{background:var(--threv-console-sidebar)}
.pc-sidebar .navbar-content{padding-bottom:32px}
.threv-brand-name{letter-spacing:-.02em}
.threv-nav-disabled{opacity:.45;pointer-events:none}
.threv-console-context{display:flex;gap:8px;align-items:center;min-width:420px}
.threv-console-context select{height:36px;border:1px solid var(--threv-console-border);border-radius:9px;background:#fff;color:#334155;padding:0 30px 0 10px;font-size:13px;max-width:230px}
.threv-console-context #consoleCompany{min-width:170px}
.threv-console-context #consoleHotel{min-width:210px}
.threv-user-button{display:flex;align-items:center;gap:8px;border:1px solid var(--threv-console-border)}
.threv-user-avatar{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:rgba(var(--threv-brand-primary-rgb),.12);color:var(--threv-brand-primary);font-size:12px;font-weight:800}
.threv-env-badge{font-size:10px;letter-spacing:.05em}
.threv-page-heading{min-height:64px}
.threv-console-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.threv-console-kpi{background:var(--threv-console-card);border:1px solid var(--threv-console-border);border-radius:14px;padding:18px;min-width:0;box-shadow:0 2px 12px rgba(15,23,42,.035)}
.threv-console-kpi .label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:700}
.threv-console-kpi .label i{font-size:21px;color:var(--threv-brand-primary)}
.threv-console-kpi .value{font-size:28px;line-height:1.1;font-weight:780;letter-spacing:-.035em;margin-top:10px;color:#111827}
.threv-console-kpi .meta{font-size:12px;color:#64748b;margin-top:7px}
.threv-console-section-title{font-size:16px;font-weight:750;margin:0}
.threv-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.threv-module-card{display:flex;gap:13px;align-items:flex-start;padding:16px;border:1px solid var(--threv-console-border);border-radius:13px;background:#fff;color:#1f2937;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.threv-module-card:hover{transform:translateY(-1px);border-color:#cbd5e1;box-shadow:0 8px 24px rgba(15,23,42,.06);color:#111827}
.threv-module-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;background:rgba(var(--threv-brand-primary-rgb),.09);color:var(--threv-brand-primary);font-size:20px}
.threv-module-card strong{display:block;font-size:14px}.threv-module-card small{display:block;margin-top:4px;color:#64748b;line-height:1.45}
.threv-status-list{display:grid;gap:10px}.threv-status-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef1f4}.threv-status-row:last-child{border-bottom:0}
.threv-status-name{font-size:13px;font-weight:650}.threv-status-meta{font-size:12px;color:#64748b;margin-top:2px}.threv-status-badge{height:max-content}
.threv-clone-banner{border:1px solid #fedf89;background:#fffcf5;border-radius:12px;padding:12px 14px;color:#854a0e;font-size:13px;display:flex;gap:10px;align-items:flex-start}
.threv-clone-banner i{font-size:20px;flex:0 0 auto}
.threv-login-body{min-height:100vh;background:radial-gradient(circle at top right,rgba(var(--threv-brand-primary-rgb),.12),transparent 34%),#f5f7fb;display:grid;place-items:center;padding:24px}
.threv-login-wrap{width:min(100%,430px)}
.threv-login-brand{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:18px;color:#111827;font-size:21px;font-weight:800}
.threv-login-card{border:1px solid var(--threv-console-border);border-radius:18px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.08);padding:28px}
.threv-login-card h1{font-size:25px;letter-spacing:-.035em;margin:0}.threv-login-card .sub{color:#64748b;margin:7px 0 22px}
.threv-login-card label{font-size:13px;font-weight:650;color:#475569;margin-bottom:14px}.threv-login-card input{margin-top:6px}
.threv-login-foot{text-align:center;color:#94a3b8;font-size:11px;margin-top:14px}
@media(max-width:1199.98px){.threv-console-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.threv-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.threv-console-context{min-width:0}.threv-console-context #consoleCompany{min-width:140px}.threv-console-context #consoleHotel{min-width:170px}}
@media(max-width:767.98px){.threv-console-context{display:none}.threv-console-grid,.threv-module-grid{grid-template-columns:1fr}.threv-page-heading{min-height:0}}

/* V0.34.1 — one Console shell for legacy functional modules. */
.threv-brand-logo-wrap{display:inline-flex;align-items:center;max-width:150px;min-width:34px;height:42px}
.threv-brand-logo{display:block;max-width:145px;max-height:38px;width:auto;height:auto;object-fit:contain}
.threv-brand-logo-wrap.login{height:54px;max-width:210px}
.threv-brand-logo-wrap.login .threv-brand-logo{max-width:205px;max-height:52px}
body[data-pc-sidebar-theme="light"] .pc-sidebar{background:#fff!important}
body[data-pc-sidebar-theme="light"] .threv-brand{color:#111827}
body[data-pc-sidebar-theme="light"] .threv-product-tag{color:#64748b;border-color:#e2e8f0}

.threv-console-module{min-width:0}
.threv-console-module .wrap,
.threv-console-module main.wrap,
.threv-console-module .performance-wrap{width:100%;max-width:none;margin:0;padding:0}
.threv-console-module > main:first-child{margin-top:0}
.threv-console-module .topbar,
.threv-console-module .topbar-context{display:none!important}
.threv-console-module .card{border:1px solid var(--threv-console-border);border-radius:14px;box-shadow:0 2px 12px rgba(15,23,42,.035);background:#fff}
.threv-console-module .page-title{letter-spacing:-.025em}
.threv-console-module .section-title{letter-spacing:-.015em}
.threv-console-module .table-scroll{border-radius:10px;max-width:100%;overflow:auto}
.threv-console-module table{background:#fff}
.threv-console-module th{white-space:nowrap}
.threv-console-module input:not([type="checkbox"]):not([type="radio"]),
.threv-console-module select,
.threv-console-module textarea{border-radius:8px;border-color:#dbe2ea}
.threv-console-module button.primary,
.threv-console-module .btn.primary{background:var(--threv-brand-primary)!important;border-color:var(--threv-brand-primary)!important;color:#fff!important}
.threv-console-module button.primary:hover,
.threv-console-module .btn.primary:hover{background:var(--threv-brand-strong)!important;border-color:var(--threv-brand-strong)!important}
.threv-console-module button.secondary,
.threv-console-module .btn.secondary{background:#eef2f6;color:#334155;border-color:#e2e8f0}
.threv-console-module a{color:var(--threv-brand-strong)}
.threv-console-module .eyebrow{color:var(--threv-brand-strong)}
.threv-console-module .metric-card{border-color:var(--threv-console-border)}
.threv-console-module .analytics-message{border-radius:12px}
.threv-console-module .performance-tabs .performance-tab.active{color:var(--threv-brand-strong);border-color:var(--threv-brand-primary)}

/* Data Core historically had global header/main CSS. The Console version is scoped. */
.threv-module-data-core .data-core-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.threv-module-data-core .data-core-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* Branding settings preview. */
.threv-brand-preview{min-height:150px;border:1px solid var(--threv-console-border);border-radius:14px;padding:22px;background:#111827;display:flex;align-items:center;justify-content:center}
.threv-brand-preview.light{background:#fff}
.threv-brand-preview .preview-brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:20px;font-weight:800}
.threv-brand-preview.light .preview-brand{color:#111827}
.threv-color-swatch{width:42px;height:42px;border-radius:12px;border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.threv-settings-note{border:1px solid #bae6fd;background:#f0f9ff;color:#0c4a6e;border-radius:12px;padding:12px 14px;font-size:13px}
@media print{
  .pc-sidebar,.pc-header,.threv-page-heading{display:none!important}
  .pc-container{margin-left:0!important}
  .pc-container .pc-content{padding:0!important}
  .threv-console-module .card{box-shadow:none!important;break-inside:avoid}
}
.threv-console-module{background:transparent!important;color:#1d2733}
.threv-console-module a:hover{text-decoration:none}

/* V0.34.2 — THRev-owned responsive sidebar controller. */
body.threv-mobile-menu-open{overflow:hidden}
.threv-sidebar-overlay{
  position:fixed;
  inset:0;
  z-index:1028;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:rgba(15,23,42,.48);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  cursor:default;
}
@media(max-width:1024px){
  .pc-sidebar{z-index:1029}
  .pc-sidebar.mob-sidebar-active{left:0!important;box-shadow:12px 0 34px rgba(15,23,42,.22)}
  .pc-sidebar .navbar-content{height:calc(100vh - 74px);overflow-y:auto;overscroll-behavior:contain}
  #mobile-collapse{position:relative;z-index:1}
}

/* V0.34.4 — continuous accessibility scale + stable top-menu controls. */
:root{
  --threv-font-scale:1;
  --threv-ui-font-size:calc(14px * var(--threv-font-scale));
  --threv-label-font-size:calc(13px * var(--threv-font-scale));
  --threv-small-font-size:calc(12px * var(--threv-font-scale));
}
.pc-header,.pc-sidebar,.pc-container{font-size:var(--threv-ui-font-size)}
.pc-header .btn,.pc-header select,.pc-sidebar .pc-link{font-size:var(--threv-ui-font-size)}
.threv-console-module table,
.threv-console-module input:not([type="range"]),
.threv-console-module select,
.threv-console-module textarea,
.threv-console-module button,
.threv-console-module .btn{font-size:var(--threv-ui-font-size)!important}
.threv-console-module label{font-size:var(--threv-label-font-size)!important}
.threv-console-module .small,
.threv-console-module small{font-size:var(--threv-small-font-size)!important}
.threv-font-size-control{position:relative}
.threv-font-toggle{min-width:40px;font-weight:750;border-color:var(--threv-console-border)}
.threv-font-panel{position:absolute;right:0;top:calc(100% + 9px);z-index:1060;width:min(280px,calc(100vw - 24px));padding:14px;border:1px solid var(--threv-console-border);border-radius:13px;background:#fff;box-shadow:0 18px 44px rgba(15,23,42,.16)}
.threv-font-panel[hidden]{display:none!important}
.threv-font-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.threv-font-panel-head output{font-variant-numeric:tabular-nums;color:var(--threv-brand-strong);font-weight:750}
.threv-font-slider-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-top:12px;color:#64748b;font-size:12px}
.threv-font-slider-row input[type="range"]{width:100%;accent-color:var(--threv-brand-primary)}
.threv-font-slider-row .threv-font-big{font-size:19px;font-weight:750;color:#334155}
.threv-user-button:not(.show):focus:not(:focus-visible){box-shadow:none!important;outline:0!important;background:#fff!important;color:inherit!important}
.threv-user-button:not(.show):active{background:#f8fafc!important;color:inherit!important}

.threv-back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:1035;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--threv-brand-primary-rgb),.28);
  border-radius:14px;
  background:#fff;
  color:var(--threv-brand-strong);
  box-shadow:0 10px 28px rgba(15,23,42,.14);
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,box-shadow .18s ease;
}
.threv-back-to-top[hidden]{display:none!important}
.threv-back-to-top.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
.threv-back-to-top:hover{box-shadow:0 14px 34px rgba(15,23,42,.20);color:var(--threv-brand-primary)}
.threv-back-to-top i{font-size:21px}

/* Defensive containment: a legacy module may not make the Console shell wider. */
.pc-container,.pc-content,.threv-console-module,.threv-console-module .card{min-width:0;max-width:100%}
.threv-console-module img,.threv-console-module canvas,.threv-console-module svg{max-width:100%}

@media(max-width:767.98px){
  .threv-env-badge,.threv-badge-console{display:none!important}
    .threv-user-button{padding-left:6px;padding-right:6px}
  .threv-back-to-top{right:14px;bottom:14px;width:42px;height:42px}
}

/* V0.34.5 — Flat Able header/dropdown specificity fix.
   Flat Able declares `.pc-header ul { display:inline-flex; }`, which is more
   specific than Bootstrap's `.dropdown-menu { display:none; }`. As a result,
   header dropdown <ul> elements stayed visible even when Bootstrap correctly
   removed `.show` and set aria-expanded=false. Keep Bootstrap dropdown
   semantics authoritative inside the Console header. */
.pc-header .dropdown-menu {
  display: none;
}
.pc-header .dropdown-menu.show {
  display: block;
}


/* V0.34.6 — consistent async/chart loading state. */
.threv-loading-host{position:relative!important}
.threv-loading-overlay{position:absolute;inset:0;z-index:20;min-height:110px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border-radius:inherit;background:rgba(255,255,255,.88);color:#64748b;text-align:center;pointer-events:none;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}
.threv-loading-overlay[hidden]{display:none!important}
.threv-loading-spinner{width:30px;height:30px;border:3px solid rgba(var(--threv-brand-primary-rgb),.18);border-top-color:var(--threv-brand-primary);border-radius:50%;animation:threv-loading-spin .72s linear infinite}
.threv-loading-label{font-size:12px;font-weight:650;letter-spacing:.01em}
@keyframes threv-loading-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.threv-loading-spinner{animation-duration:1.8s}}
