
/* =========================================================
   TENNANT OPERATIONS CENTER — INTERFACE GLOBAL V2
   Padronização visual compartilhada entre todos os módulos
========================================================= */

:root{
  --ui-radius-lg:18px;
  --ui-radius-md:14px;
  --ui-radius-sm:10px;
  --ui-gap:12px;
  --ui-header-height:104px;
  --ui-shadow:0 12px 28px rgba(0,0,0,.20);
  --ui-border:color-mix(in srgb,var(--accent,#00b7ef) 34%,transparent);
}

*{box-sizing:border-box}

html,body{
  scroll-behavior:smooth;
  text-rendering:optimizeLegibility;
}

body{
  min-width:0;
  overflow-x:hidden;
}

.page{
  width:100%;
  max-width:1800px;
  margin:0 auto;
  padding:14px;
}

.hero{
  min-height:var(--ui-header-height);
  border-radius:var(--ui-radius-lg)!important;
  border:1px solid var(--ui-border)!important;
  box-shadow:var(--ui-shadow)!important;
  padding:16px 20px!important;
}

.hero h1{
  margin:0 0 5px!important;
  font-size:clamp(24px,2vw,32px)!important;
  line-height:1.05!important;
}

.hero p{
  margin:0 0 6px!important;
  color:var(--muted,#a9c0cf)!important;
}

.logo,.header-logo-box{
  width:112px!important;
  min-width:112px!important;
  height:68px!important;
  border-radius:var(--ui-radius-md)!important;
}

.logo img,.header-logo{
  max-width:92px!important;
  max-height:48px!important;
}

.kpis{
  gap:var(--ui-gap)!important;
  margin:var(--ui-gap) 0!important;
}

.kpis article,.kpi{
  min-height:104px;
  border-radius:var(--ui-radius-md)!important;
  padding:14px 15px!important;
  box-shadow:var(--ui-shadow)!important;
}

.kpis span,.kpi span{
  font-size:12px!important;
  font-weight:800!important;
}

.kpis strong,.kpi strong{
  display:block;
  margin-top:6px!important;
  font-size:clamp(28px,2.5vw,36px)!important;
  line-height:1!important;
}

.toolbar{
  border-radius:var(--ui-radius-md)!important;
  padding:11px!important;
  gap:9px!important;
  box-shadow:var(--ui-shadow)!important;
}

input,select,textarea,button{
  min-height:40px;
}

input,select,textarea{
  border-radius:var(--ui-radius-sm)!important;
}

.panel,.alert-card,.alerts article,.critical-card,.critical-item,.action-row,.order-card{
  border-radius:var(--ui-radius-md)!important;
  box-shadow:var(--ui-shadow)!important;
}

.panel{
  padding:15px!important;
}

.panel-title h2,.section-heading h2,.section-title h2{
  font-size:20px!important;
}

button,.primary,.fullscreen-button,.import-label{
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease;
}

button:hover,.primary:hover,.fullscreen-button:hover,.import-label:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
}

button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent,#00b7ef);
  outline-offset:2px;
}

.ui-status-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:8px;
  margin:10px 0 12px;
}

.ui-status-item{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 11px;
  border:1px solid var(--ui-border);
  border-radius:12px;
  background:color-mix(in srgb,var(--panel,#0b2b42) 92%,transparent);
  box-shadow:0 7px 16px rgba(0,0,0,.13);
}

.ui-status-dot{
  width:9px;
  height:9px;
  min-width:9px;
  border-radius:50%;
  background:#71808a;
  box-shadow:0 0 8px currentColor;
}

.ui-status-item.online .ui-status-dot{background:#2dd4a3;color:#2dd4a3}
.ui-status-item.warning .ui-status-dot{background:#ffd100;color:#ffd100}
.ui-status-item.offline .ui-status-dot{background:#ff6475;color:#ff6475}
.ui-status-copy{min-width:0}
.ui-status-copy span{
  display:block;
  font-size:8px;
  color:var(--muted,#a9c0cf);
  text-transform:uppercase;
  letter-spacing:.05em;
}
.ui-status-copy strong{
  display:block;
  margin-top:2px;
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ui-loading{
  position:fixed;
  z-index:99999;
  right:16px;
  bottom:16px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--ui-border);
  background:var(--panel,#0b2b42);
  box-shadow:var(--ui-shadow);
  font-size:10px;
  font-weight:800;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:.2s ease;
}
.ui-loading.show{opacity:1;transform:none}
.ui-spinner{
  width:14px;height:14px;border-radius:50%;
  border:2px solid rgba(255,255,255,.22);
  border-top-color:var(--accent,#00b7ef);
  animation:uiSpin .75s linear infinite;
}
@keyframes uiSpin{to{transform:rotate(360deg)}}

.ui-fullscreen-button{
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--ui-border);
  border-radius:999px;
  color:var(--text,#fff);
  background:color-mix(in srgb,var(--accent,#00b7ef) 13%,transparent);
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

@media(max-width:1100px){
  .ui-status-strip{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:760px){
  .page{padding:9px}
  .hero{min-height:auto!important;padding:12px!important}
  .logo,.header-logo-box{
    width:82px!important;min-width:82px!important;height:52px!important
  }
  .logo img,.header-logo{max-width:66px!important;max-height:38px!important}
  .ui-status-strip{grid-template-columns:1fr}
}

@media(min-resolution:1.2dppx){
  .page{max-width:1700px}
}

html.tv .ui-status-strip,
html.tv-mode .ui-status-strip{
  margin:0!important;
  gap:4px!important;
}

html.tv .ui-status-item,
html.tv-mode .ui-status-item{
  min-height:35px!important;
  padding:5px 7px!important;
}

html.tv .ui-status-copy span,
html.tv-mode .ui-status-copy span{font-size:5px!important}

html.tv .ui-status-copy strong,
html.tv-mode .ui-status-copy strong{font-size:7px!important}

html.tv .ui-fullscreen-button,
html.tv-mode .ui-fullscreen-button{font-size:7px!important;min-height:26px!important;padding:4px 7px!important}
