/* AXIA — acabamento cromático do ambiente de gestão (27/10/2026)
 * Carregado após os estilos antigos, sem alterar regras de negócio. */
.lb-workspace {color:#292e35;font-family:'DM Sans',Inter,Segoe UI,Arial,sans-serif}
.lb-workspace .lb-top {
 background:radial-gradient(ellipse at 92% 6%,#4b4742 0%,transparent 33%),linear-gradient(112deg,#14181d 0%,#252a30 70%,#3a3d40 100%);
 color:#f7f7f7;border:1px solid #545352;border-radius:16px;
 box-shadow:0 9px 26px #11151922;
}
.lb-workspace .lb-kicker {color:#e8c58a;letter-spacing:.17em}
.lb-workspace .lb-top h1 {color:#f8f8fa}
.lb-workspace .lb-top p {color:#cfd2d7}
.lb-workspace .lb-context {border-color:#dadde0;background:#fff}
.lb-workspace .lb-right {color:#8b6b44}
.lb-workspace .lb-panel {border-color:#dfdfe1;background:#fff;box-shadow:0 3px 16px #13171c09}
.lb-workspace h2,.lb-workspace h3 {color:#272c33}
.lb-workspace p,.lb-workspace .lb-heading p {color:#697079}
.lb-workspace label {color:#545b64}
.lb-workspace input,.lb-workspace select,.lb-workspace textarea {
 border-color:#cdd1d6;color:#2a3036;background:#fff;
}
.lb-workspace input:focus,.lb-workspace select:focus,.lb-workspace textarea:focus {
 outline:2px solid #c7a472;box-shadow:0 0 0 3px #e0c69c33;
}
.lb-workspace input[type="checkbox"] {accent-color:#b28c59}
.lb-workspace button:not(.secondary):not(.outline):not(.danger) {
 background:#22272e;border:1px solid #333941;color:#fff;
}
.lb-workspace button:not(.secondary):not(.outline):not(.danger):hover {
 background:#363b42;border-color:#ba9867;filter:none;
}
.lb-workspace button.secondary,.lb-workspace .lg-controls .secondary,
.lb-workspace .lb-remove {
 background:#eeeff0;color:#30363f;border:1px solid #d6d8db;
}
.lb-workspace button.secondary:hover {background:#e1e2e3}
.lb-workspace .lb-table-wrap {border-color:#dedfe2}
.lb-workspace th {background:#f2f2f3;color:#656b74}
.lb-workspace td {color:#38404a;border-top-color:#e5e6e7}
.lb-workspace td strong {color:#252c34}
.lb-workspace td small {color:#797e87}
.lb-workspace .lb-muted,.lb-workspace .lb-org span {color:#7a808a}
.lb-workspace .lb-metrics>div,.lb-workspace .lg-metrics>div {
 background:#f5f4f2;border:1px solid #e4dfd7;border-radius:11px;
}
.lb-workspace .lb-metrics small,.lb-workspace .lg-metrics small {color:#7e7467}
.lb-workspace .lb-metrics strong,.lb-workspace .lg-metrics strong {color:#252b32}
.lb-workspace .lb-metrics>div:before,.lb-workspace .lg-metrics>div:before {
 content:"";display:block;width:30px;height:2px;background:#c7a16b;border-radius:2px;margin-bottom:9px;
}
.lb-workspace .lb-status {background:#f2ede5;color:#795e38}
.lb-workspace .lb-notice:not(.lb-error) {border-color:#e5dac9;background:#f8f4ec;color:#5f4d35}
.lb-workspace .lb-error {background:#fff2ef;border-color:#f0d8d1;color:#a04439}
.lb-workspace .lb-org {border-bottom-color:#e2e2e4}
.lb-workspace .lb-extra,.lb-workspace .lb-team-item {border-color:#e4e1dc;background:#faf9f7}
.lb-workspace .lb-pdfrow {background:#faf9f7;border-color:#e4e1dc}
.lb-workspace .lb-legacy-item {border-bottom-color:#e6e6e7}
.lb-workspace .lb-legacy-item input {accent-color:#bb925e}
.lb-workspace .lb-glosa-recover,.lb-workspace .lg-recovery {
 background:#f6f4f0;border:1px solid #e8dfd2;
}
.lb-workspace .lg-tab,.lb-workspace .lg-tab:not(.active) {
 background:#f4f2ef;color:#594d3e;border:1px solid #dfd2bf;
}
.lb-workspace .lg-tab:hover:not(.active){background:#eee8de;border-color:#b99563}
.lb-workspace .lg-tab.active,.lb-workspace .lg-tab.active:hover {
 background:#262b31;color:#f4dfbb;border:1px solid #b8945f;
 box-shadow:0 3px 10px #23283016;
}
.lb-workspace .lg-record {background:#fff;border-color:#e1e1e2}
.lb-workspace .lg-record-top strong {color:#262c34}
.lb-workspace .lg-record-top p,.lb-workspace .lg-record-bottom {color:#636b75}
.lb-workspace .lg-record-top small {color:#818690}
.lb-workspace .lg-amount {color:#8b663b}
.lb-workspace .lg-record-bottom {border-bottom-color:#e6e6e7}
.lb-workspace .lg-controls .secondary {background:#eeeff0;color:#333840}
.lb-workspace .lg-filters label {color:#555e67}
.lb-workspace .lg-filters input,.lb-workspace .lg-filters select {border-color:#d4d6d9}
.lb-workspace .lg-status {color:#616870}
/* Acabamento em páginas antigas, conservando cores funcionais de erro e sucesso */
.sidebar #navOperations {border-left-color:transparent;margin:0;border-radius:11px}
.sidebar #navOperations.active {border-left:3px solid #c9a876;padding-left:9px}
#page-doctor .docHero,#page-doctor .docHeader,.financeSelector .financeSelectHero {
 background:linear-gradient(112deg,#191c22,#33383f)!important;
}
#page-doctor .docTabs button.active {background:#282d33;color:#f4dfbc;box-shadow:0 3px 12px #24282e18}
#page-doctor .docRefresh {background:#f4f2ed;color:#4f4231;border-color:#d9c7ad}
.financeScopeControl select {color:#30363e}
@media(max-width:700px){
 .lb-workspace .lb-top{padding:21px}
 .lb-workspace .lg-tab{min-height:43px}
}

/* O controle de abas não deve herdar o botão primário global. */
.lb-workspace .lg-tab:not(.active) {
 background:#f4f2ef!important;color:#594d3e!important;
 border-color:#dfd2bf!important;
}
.lb-workspace .lg-tab:not(.active):hover {
 background:#eee6d9!important;border-color:#bc9969!important;
}
.lb-workspace .lg-tab.active {
 background:#272c32!important;color:#f5dfba!important;
 border-color:#b8945f!important;
}

/* QA visual 27/10/2026: barra móvel compacta, inclusive com cadastros abertos. */
@media(max-width:650px){
 #appView .sidebar{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  height:55px!important;min-height:55px!important;max-height:55px!important;
  overflow-x:auto!important;overflow-y:hidden!important;padding:7px!important;
 }
 #appView .sidebar #adminNav:not([hidden]){
  display:flex!important;flex:0 0 auto!important;flex-flow:row nowrap!important;
  align-items:center!important;align-self:center!important;
  height:41px!important;min-height:0!important;width:max-content!important;max-width:none!important;
  margin:0!important;padding:0!important;gap:5px!important;order:initial!important;
  border:0!important;background:transparent!important;box-shadow:none!important;position:static!important;
 }
 #appView .sidebar #adminNav .navButton{
  display:block!important;flex:0 0 auto!important;width:auto!important;
  min-height:40px!important;height:40px!important;white-space:nowrap!important;
  margin:0!important;padding:9px 11px!important;border-radius:8px!important;
  background:#ffffff11!important;color:#ecebea!important;
 }
 #appView .sidebar #adminNav .navButton.active{
  background:#d7b78622!important;color:#f4dec0!important;border-left:2px solid #c9a876!important;
 }
}
/* Janela de importação consistente com a identidade AXIA. */
#modal .dialog{border:1px solid #d8c5a9;box-shadow:0 18px 55px #090b1066}
#modal #modalTitle{font-family:'DM Sans',Inter,'Segoe UI',Arial,sans-serif;font-weight:750;letter-spacing:-.015em;color:#252a31}
#modal.modalBackdrop{background:#10141bc2}
#page-institution-workspace #lbDoctorAllowed{accent-color:#b28c59!important}

/* AXIA — ambiente leve com champagne, prata e marca d'água discreta.
   Apenas estilos: mantém intactos formulários, interações e permissões. */
#appView .content {
 position:relative;
 isolation:isolate;
 background:
   radial-gradient(ellipse 74% 47% at 86% 15%, rgba(211,177,126,.23) 0%, transparent 72%),
   radial-gradient(ellipse 56% 65% at 2% 76%, rgba(187,195,204,.31) 0%, transparent 73%),
   repeating-linear-gradient(133deg, transparent 0px, transparent 95px, rgba(163,144,115,.032) 96px, transparent 97px),
   linear-gradient(136deg,#f2f0ec 0%,#eae6de 49%,#f1eee9 100%);
}
#appView .content::before {
 content:"";
 position:absolute;
 top:36px;
 right:0;
 width:min(890px,76vw);
 height:930px;
 pointer-events:none;
 z-index:0;
 background:url("/axia-watermark.svg") no-repeat center / contain;
 opacity:.30;
 filter:grayscale(.1);
}
#appView .main {
 position:relative;
 z-index:1;
 background:transparent!important;
}
#appView .topbar {
 position:relative;
 z-index:2;
 background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(250,247,241,.98));
 border-bottom:1px solid #ddd3c5;
}
#appView .lb-workspace .lb-top {
 position:relative;
 overflow:hidden;
 border-color:#655644;
 background:
   radial-gradient(ellipse 60% 160% at 98% 0%,rgba(186,143,83,.35),transparent 65%),
   linear-gradient(112deg,#23282d 0%,#31333a 48%,#544638 100%);
 box-shadow:0 11px 28px #4840351b;
}
#appView .lb-workspace .lb-top::after {
 content:"";
 position:absolute;
 right:-75px;
 top:-95px;
 width:320px;
 height:320px;
 border:1px solid rgba(232,199,148,.17);
 border-radius:50%;
 box-shadow:0 0 0 42px rgba(223,190,146,.045),0 0 0 92px rgba(222,196,159,.04);
 pointer-events:none;
}
#appView .lb-workspace .lb-context {
 background:linear-gradient(100deg,rgba(255,254,251,.97),rgba(246,240,230,.97));
 border:1px solid #d9c9b4;
 border-left:3px solid #c5a170;
 box-shadow:0 7px 20px #54452f0a;
}
#appView .lb-workspace .lb-panel {
 background:linear-gradient(150deg,rgba(255,254,251,.98),rgba(250,248,244,.98));
 border:1px solid #e1d9cd;
 box-shadow:0 6px 18px rgba(74,57,35,.065);
}
#appView .lb-workspace .lb-panel h2 {
 color:#302d2a;
}
#appView .lb-workspace .lb-panel:hover {
 border-color:#d7c4a6;
}
#appView .lb-workspace .lb-table-wrap {
 background:#fffdfa;
}
#appView .lb-workspace th {
 background:#f4efe7;
 color:#766b5d;
}
#appView .lb-workspace .lb-status {
 background:#eee4d5;
 color:#765637;
}
#appView .lb-workspace button:not(.secondary):not(.outline):not(.danger) {
 background:linear-gradient(115deg,#2f3134,#51463c);
 border-color:#665644;
 color:#fffaf2;
}
#appView .lb-workspace button:not(.secondary):not(.outline):not(.danger):hover {
 background:linear-gradient(115deg,#343439,#6d5944);
 border-color:#d1b186;
}
@media(max-width:700px){
 #appView .content {
  background:
   radial-gradient(ellipse 95% 45% at 96% 17%,rgba(211,177,126,.22),transparent 75%),
   linear-gradient(140deg,#f1eeea,#eee9e1 58%,#f2f0ec);
 }
 #appView .content::before {
  top:95px;right:-85px;width:420px;height:500px;opacity:.18;
 }
 #appView .lb-workspace .lb-top::after{right:-148px;top:-120px}
 #appView .lb-workspace .lb-context{border-left-width:3px}
}
