/* OPTec Mobile V1 — identidade e usabilidade, sem alterar regras de negocio. */
:root { color-scheme: dark; }
html { -webkit-text-size-adjust: 100%; }
.optec-mark { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.logo:has(.optec-mark) { padding:0; overflow:hidden; border:1px solid rgba(240,190,92,.5); background:#061422; }
.login-brand .logo:has(.optec-mark){ width:92px; height:92px; border-radius:23px; margin-bottom:18px; box-shadow:0 20px 54px rgba(220,159,46,.16); }
.login-brand h1{font-weight:850;letter-spacing:-.7px;color:#f8f1dc;}
.login-brand p{font-size:12px;color:#adbdcf;line-height:1.55;}
.login-card { border-color:rgba(225,173,82,.22); }
.login-card .field label { font-size:11px;color:#b5c5d6; }
.login-card .field input { min-height:50px;font-size:16px; }
.login-card .btn { min-height:50px;font-size:12px; }
.login-footer { font-size:10px;letter-spacing:.7px; }
.optec-install-button{display:block;margin:18px auto 4px;max-width:100%;padding:11px 18px;border:1px solid rgba(238,187,94,.38);border-radius:999px;background:rgba(244,195,103,.08);color:#f1cf8f;font-size:12px;font-weight:750;}
.optec-install-button:hover,.optec-install-button:focus-visible{background:rgba(244,195,103,.16);outline:2px solid #dcaa50;outline-offset:2px;}
.optec-install-help[hidden]{display:none!important;}
.optec-install-help{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:20px;}
.optec-install-scrim{position:absolute;inset:0;background:rgba(1,8,16,.82);backdrop-filter:blur(7px);}
.optec-install-card{position:relative;width:min(380px,100%);padding:26px 23px 23px;background:linear-gradient(150deg,#0b2339,#061321);border:1px solid rgba(240,192,105,.32);border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.6);text-align:center;}
.optec-install-card img{border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.28);}
.optec-install-card h2{margin:18px 0 10px;font-size:22px;}
.optec-install-card p{font-size:15px;line-height:1.6;color:#c2d3e5;}
.optec-install-close{position:absolute;top:10px;right:12px;border:0;background:transparent;color:#f4f8ff;font-size:26px;min-width:44px;min-height:44px;}
.optec-install-done{width:100%;min-height:46px;margin-top:10px;border:0;border-radius:12px;background:linear-gradient(130deg,#ffdc82,#c9953d);color:#071424;font-size:14px;font-weight:800;}
.mobile-brand-mini .optec-mini-mark,.mobile-drawer-logo .optec-mark{width:34px;height:34px;border-radius:9px;flex:none;}
.mobile-brand-mini{min-width:0;}
.mobile-brand-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mobile-drawer-logo:has(.optec-mark){background:transparent;box-shadow:0 6px 20px rgba(0,0,0,.3);}
.optec-drawer-install{display:block;width:100%;padding:13px 12px;text-align:left;margin:10px 0;border:1px solid rgba(240,192,105,.27);border-radius:12px;background:rgba(229,180,80,.07);color:#f7d68d;font-size:13px;}
@media (max-width:850px){
  .mobile-bottom-nav { bottom:max(7px,env(safe-area-inset-bottom)); left:max(7px,env(safe-area-inset-left)); right:max(7px,env(safe-area-inset-right)); border-color:rgba(239,188,95,.19); }
  .mobile-bottom-nav a {min-height:56px; font-size:11px!important; font-weight:700;}
  .mobile-bottom-nav a b {font-size:20px;}
  .mobile-bottom-nav .central-action{box-shadow:0 8px 24px rgba(252,193,71,.24);}
  .mobile-topbar{height:64px; padding-top:max(0px,env(safe-area-inset-top)); box-sizing:content-box;}
  .mobile-icon-btn{min-width:44px;min-height:44px;}
  .mobile-drawer-sheet{padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));}
  .mobile-drawer-content .nav a{font-size:14px;min-height:50px;}
  .mobile-drawer-content .menu-title{font-size:11px;}
  .mobile-drawer-user strong{font-size:14px;}
  .mobile-drawer-user small{font-size:12px;}
  .main{padding-bottom:calc(112px + env(safe-area-inset-bottom));}
  .panel-head p,.top p,.status-card p,.action-card small,.action-card span,.client-row-card p { font-size:clamp(11px,3vw,13px); }
  .field label,.review-item span,.detail-section .head p,.status-card h3,.client-row-card h3,.page-tab,.badge,.workflow-badge{ font-size:clamp(11px,2.8vw,14px); }
  .panel-body,.panel-head { padding:16px; }
  .btn,.field input,.field select,.field textarea {font-size:16px;}
  .btn{min-height:46px;}
  .field input,.field select,.field textarea{min-height:46px;}
  .action-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .action-card{min-height:98px;padding:13px;}
  .action-card strong{font-size:25px;}
  .mobile-quick-card a{font-size:12px;min-height:70px;}
  .mobile-quick-card>div strong{font-size:17px;}
  .mobile-quick-card>div small{font-size:12px;}
  .mobile-quick-card{bottom:calc(84px + env(safe-area-inset-bottom));max-height:75vh;overflow:auto;}
}
@media (max-width:370px){.mobile-bottom-nav a{font-size:10px!important;}.mobile-brand-mini span{max-width:156px;}}
@media (prefers-reduced-motion:reduce){.optec-install-help *{animation:none!important;transition:none!important;}}

/* OP Command Center — toque suave, sem flash retangular; nenhum fluxo alterado. */
:where(button, a, summary, [role="button"], .btn) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:where(button, a, summary, [role="button"], .btn):not(:disabled):active {
  filter: brightness(1.09);
}
:where(button, a, summary, [role="button"], .btn):focus-visible {
  outline: 2px solid #49cafa;
  outline-offset: 3px;
}
/* Respeita as transições já existentes. Não sobrescreve transform ou animações. */
@media (prefers-reduced-motion: reduce) {
  :where(button, a, summary, [role="button"], .btn):not(:disabled):active {
    filter: none;
  }
}
