input, select { font-size: 16px !important; } /* evita zoom indesejado no iOS */
  :root{
    --bg: #EEF1F6;
    --panel: #FFFFFF;
    --ink: #1B2430;
    --muted: #6B7686;
    --line: #E4E7EC;
    --brand: #2F6F5E;
    --brand-dark: #234F42;
    --brand-soft: #E6F0EC;
    --warn: #B4552D;
    --warn-soft: #FBEAE0;
    --radius: 10px;
    --sidebar-bg: #0B2444;
    --sidebar-bg-2: #0E2C52;
    --header-bg: #081B33;
    font-size: 15px;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  .app{ display:flex; min-height:100vh; }

  /* Sidebar */
  .sidebar{
    width:220px;
    background:linear-gradient(180deg, var(--sidebar-bg-2), var(--sidebar-bg));
    color:#EAF2EF;
    padding:18px 12px;
    flex-shrink:0;
  }
  .brand{
    font-weight:700;
    font-size:1.05rem;
    letter-spacing:.2px;
    padding:0 10px 18px 10px;
    border-bottom:1px solid rgba(255,255,255,0.1);
    margin-bottom:14px;
    display:flex; align-items:center; gap:10px;
  }
  .brand .brand-mark{
    width:30px; height:30px; border-radius:8px;
    background:linear-gradient(135deg,#0B3D8C,#1a5fb4);
    display:flex; align-items:center; justify-content:center;
    font-size:.95rem; flex-shrink:0;
  }
  .brand small{display:block;font-weight:400;color:#9FB3CC;font-size:.7rem;margin-top:1px;}
  nav button{
    display:flex; align-items:center; gap:10px;
    width:100%;
    background:transparent;
    border:none;
    color:#C9D8EA;
    text-align:left;
    padding:8px 8px;
    border-radius:9px;
    font-size:.88rem;
    cursor:pointer;
    margin-bottom:3px;
  }
  nav button:hover{ background:rgba(255,255,255,0.06); }
  nav button.active{ background:rgba(255,255,255,0.1); color:#fff; font-weight:600; }
  nav .icon{
    width:28px; height:28px; border-radius:7px;
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:.85rem; flex-shrink:0;
  }
  .nav-group-title{
    font-size:.66rem; text-transform:uppercase; letter-spacing:.07em;
    color:#7C93B3; padding:14px 10px 6px 10px;
  }

  .form-sectioned{ display:flex; gap:24px; align-items:flex-start; }
  .form-sections-nav{ width:190px; flex-shrink:0; display:flex; flex-direction:column; gap:2px; }
  .form-section-btn{
    text-align:left; padding:10px 12px; border:none; background:transparent;
    border-radius:8px; font-size:.85rem; color:var(--muted); cursor:pointer; font-family:inherit;
  }
  .form-section-btn:hover{ background:#F4F6F9; }
  .form-section-btn.active{ background:var(--brand-soft); color:var(--brand-dark); font-weight:600; }
  .form-sections-content{ flex:1; min-width:0; }
  .form-section{ display:none; flex-wrap:wrap; gap:12px; }
  .form-section.active{ display:flex; }

  /* Topbar */
  .topbar{
    height:52px;
    background:var(--header-bg);
    color:#EAF2EF;
    display:flex; align-items:center; justify-content:space-between;
    padding:0 24px;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .topbar .empresa{ font-size:.85rem; font-weight:600; }
  .topbar .empresa small{ display:block; font-weight:400; color:#8FA3BE; font-size:.7rem; margin-top:1px; }
  .topbar .usuario{ font-size:.8rem; color:#9FB3CC; display:flex; align-items:center; gap:8px; }
  .topbar .avatar{
    width:26px; height:26px; border-radius:50%;
    background:linear-gradient(135deg,#0B3D8C,#1a5fb4);
    display:flex; align-items:center; justify-content:center; color:#fff; font-size:.72rem; font-weight:700;
  }
  .content-col{ flex:1; display:flex; flex-direction:column; min-width:0; }

  /* Main */
  main{ flex:1; padding:28px 34px; max-width:1150px; }
  h1{ font-size:1.4rem; margin:0 0 4px 0; }
  .subtitle{ color:var(--muted); margin-bottom:22px; font-size:.92rem; }

  .panel{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 1px 2px rgba(16,24,40,0.04);
  }
  .panel h2{ font-size:1rem; margin:0 0 14px 0; }

  .grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
  .stat{
    background:var(--brand-soft);
    border-radius:var(--radius);
    padding:14px 16px;
  }
  .stat .num{ font-size:1.5rem; font-weight:700; color:var(--brand-dark); }
  .stat .lbl{ font-size:.78rem; color:var(--muted); margin-top:2px; }
  .stat.alert{ background:var(--warn-soft); }
  .stat.alert .num{ color:var(--warn); }

  .tile-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:14px; margin-bottom:26px; }
  .tile{
    border:none; border-radius:12px; padding:16px; color:#fff; cursor:pointer;
    display:flex; flex-direction:column; justify-content:space-between; gap:18px;
    min-height:88px; text-align:left; font-family:inherit;
    box-shadow:0 2px 6px rgba(16,24,40,0.12);
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .tile:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(16,24,40,0.18); }
  .tile .tile-icon{
    width:32px; height:32px; border-radius:8px; background:rgba(255,255,255,0.2);
    display:flex; align-items:center; justify-content:center; font-size:1rem;
  }
  .tile .tile-label{ font-weight:600; font-size:.88rem; line-height:1.25; }

  form.inline{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin-bottom:18px; }
  .field{ display:flex; flex-direction:column; gap:4px; }
  .field label{ font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
  .field input, .field select{
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:7px;
    font-size:.9rem;
    min-width:130px;
    background:#fff;
  }
  .field input:focus, .field select:focus{ outline:2px solid var(--brand); outline-offset:1px; }

  button.primary{
    background:var(--brand);
    color:#fff;
    border:none;
    padding:9px 16px;
    border-radius:7px;
    font-size:.9rem;
    font-weight:600;
    cursor:pointer;
    height:37px;
  }
  button.primary:hover{ background:var(--brand-dark); }
  button.ghost{
    background:transparent;
    border:1px solid var(--line);
    padding:5px 10px;
    border-radius:6px;
    font-size:.78rem;
    cursor:pointer;
    color:var(--muted);
  }
  button.ghost:hover{ border-color:var(--warn); color:var(--warn); }

  table{ width:100%; border-collapse:collapse; font-size:.88rem; }
  th{ text-align:left; color:var(--muted); font-weight:600; font-size:.75rem; text-transform:uppercase; letter-spacing:.03em; padding:8px 10px; border-bottom:1px solid var(--line); }
  td{ padding:9px 10px; border-bottom:1px solid var(--line); }
  tr:last-child td{ border-bottom:none; }
  .empty{ color:var(--muted); font-style:italic; padding:16px 4px; font-size:.88rem; }

  .badge{ display:inline-block; padding:2px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
  .badge.low{ background:var(--warn-soft); color:var(--warn); }
  .badge.ok{ background:var(--brand-soft); color:var(--brand-dark); }
  .badge.danger{ background:#fbe3e3; color:#a02f2f; }
  .badge.neutral{ background:#eceff2; color:#555f6b; }

  .pdv-layout{ display:flex; gap:20px; align-items:flex-start; }
  .pdv-left{ flex:1; }
  .pdv-right{
    width:290px;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:18px;
    position:sticky;
    top:20px;
  }
  .cart-item{ display:flex; justify-content:space-between; align-items:center; font-size:.85rem; padding:7px 0; border-bottom:1px solid var(--line); gap:6px; }
  .cart-valor{ width:70px; padding:4px 6px; border:1px solid var(--line); border-radius:6px; font-size:.82rem; text-align:right; }
  .table-wrap{ overflow-x:auto; }
  .cart-total{ display:flex; justify-content:space-between; font-weight:700; font-size:1.05rem; margin-top:12px; padding-top:12px; border-top:2px solid var(--ink); }
  .cart-sub{ display:flex; justify-content:space-between; font-size:.88rem; color:var(--muted); padding:4px 0; }
  .adjust-row{ display:flex; justify-content:space-between; align-items:center; font-size:.85rem; padding:5px 0; gap:8px; }
  .adjust-row input{ width:90px; padding:5px 8px; border:1px solid var(--line); border-radius:6px; font-size:.85rem; text-align:right; }
  .toast{
    position:fixed; bottom:20px; right:20px;
    background:var(--header-bg); color:#fff;
    padding:12px 18px; border-radius:8px; font-size:.86rem;
    box-shadow:0 6px 20px rgba(0,0,0,0.2);
    opacity:0; transform:translateY(10px);
    transition:all .25s ease;
    pointer-events:none;
  }
  .toast.show{ opacity:1; transform:translateY(0); }
  /* Janelas flutuantes - TODAS as telas minimizáveis */
  .janela{ position:absolute; width:92%; max-width:1500px; height:88vh; max-height:960px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,0.35); display:flex; flex-direction:column; pointer-events:auto; overflow:hidden; }
  .janela-header{ display:flex; justify-content:space-between; align-items:center; padding:10px 14px; background:linear-gradient(90deg, var(--header-bg), var(--sidebar-bg)); color:#fff; cursor:default; user-select:none; }
  .janela-title{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:.9rem; }
  .janela-controls{ display:flex; gap:6px; }
  .janela-btn{ width:26px; height:26px; border:none; border-radius:4px; background:rgba(255,255,255,0.15); color:#fff; cursor:pointer; font-weight:700; }
  .janela-btn:hover{ background:rgba(255,255,255,0.25); }
  .janela-btn.janela-btn-close:hover{ background:#E74C3C; }
  .janela.maximizada{ width:100% !important; height:calc(100% - 40px) !important; max-width:100% !important; max-height:none !important; left:0 !important; top:0 !important; border-radius:0; }
  .janela.maximizada .janela-header{ cursor:default; }
  .janela-body{ flex:1; overflow-y:auto; padding:16px; background:var(--bg); }
  #barra-janelas{ position:fixed; bottom:0; left:220px; right:0; height:40px; background:rgba(11,36,68,0.97); display:flex; gap:6px; align-items:center; padding:0 10px; z-index:950; overflow-x:auto; border-top:1px solid rgba(255,255,255,0.1); }
  .barra-item{ display:flex; align-items:center; gap:6px; padding:6px 12px; border:none; border-radius:6px; background:rgba(255,255,255,0.12); color:#fff; font-size:.8rem; cursor:pointer; white-space:nowrap; }
  .barra-item.minimized{ opacity:0.7; }
  .barra-item:hover{ background:rgba(255,255,255,0.2); }

  .sped-wrapper{min-height:100%;}
  .sped-title{font-size:1rem;font-weight:700;color:#0B3D8C;margin-bottom:18px;border-bottom:1px solid #D8C2EB;padding-bottom:8px;}
  .small-title{margin-top:18px;margin-bottom:8px;}
  .sped-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .radio-row{display:block;padding:7px 0;color:#5d6270;cursor:pointer;}
  .radio-row input{margin-right:8px;accent-color:#9C27B0;}
  .sped-checklist{display:flex;flex-direction:column;gap:10px;}
  .sped-checklist label{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#ead5ee;border-left:20px solid #8E1598;color:#4d5260;cursor:pointer;}
  .sped-checklist input{accent-color:#9C27B0;}
  .sped-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:22px;padding-top:14px;border-top:1px solid #D8C2EB;}
  .sped-footer .fiscal-executar{margin-left:8px;}
  .sped-step-counter{font-size:.8rem;font-weight:500;opacity:.9;}
  .fiscal-step{width:100%;border:0;text-align:left;background:#fff;font-family:inherit;}
  .fiscal-step.active{background:#F3E8F9;color:#0B3D8C;border-bottom:2px solid #B018B9;}
  @media(max-width:900px){.sped-grid{grid-template-columns:1fr;}.sped-footer{flex-direction:column;align-items:stretch;}.sped-footer>div{display:flex;justify-content:flex-end;}}
  /* Fiscal wizard */
  .fiscal-wrapper{ background:#F3E8F9; border-radius:10px; overflow:hidden; border:1px solid #D8C2EB; }
  .fiscal-header{ background:#0B3D8C; color:#fff; padding:12px 16px; font-weight:700; display:flex; justify-content:space-between; align-items:center; }
  .fiscal-body{ display:flex; min-height:460px; }
  .fiscal-steps{ width:220px; background:#fff; border-right:1px solid #E6D5F3; overflow-y:auto; }
  .fiscal-step{ padding:10px 12px; border-bottom:1px solid #F0E6F8; cursor:pointer; font-size:.82rem; color:#6B7686; }
  .fiscal-step.active{ background:#F3E8F9; color:#0B3D8C; font-weight:600; border-left:4px solid #0B3D8C; }
  .fiscal-step small{ display:block; font-size:.7rem; opacity:.7; }
  .fiscal-content{ flex:1; padding:18px; background:#F9F0FF; }
  .fiscal-field{ margin-bottom:12px; }
  .fiscal-field label{ display:block; font-size:.8rem; font-weight:600; margin-bottom:4px; color:#4A4A4A; }
  .fiscal-field input, .fiscal-field select{ width:100%; max-width:320px; padding:7px 10px; border:1px solid #D8C2EB; border-radius:6px; background:#EDE2F5; font-size:.85rem; }
  .fiscal-executar{ background:#0B3D8C; color:#fff; border:none; padding:8px 16px; border-radius:6px; font-weight:600; cursor:pointer; position:absolute; bottom:12px; right:16px; display:flex; align-items:center; gap:6px; }
  .fiscal-tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px; }
  .fiscal-tile{ background:#0B3D8C; color:#fff; border:none; border-radius:10px; padding:16px; cursor:pointer; text-align:left; min-height:110px; display:flex; flex-direction:column; justify-content:space-between; }
  .fiscal-tile:hover{ background:#6A1B9A; }
  .chip-toggle{ background:#EDE2F5; color:#0B3D8C; border:1px solid #D8C2EB; border-radius:6px; padding:8px 14px; font-weight:600; font-size:.82rem; cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
  .chip-toggle::before{ content:''; width:10px; height:10px; border-radius:3px; background:#D8C2EB; display:inline-block; }
  .chip-toggle.active{ background:#0B3D8C; color:#fff; border-color:#0B3D8C; }
  .chip-toggle.active::before{ background:#fff; }
  .chip-list{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
  .chip{ background:#0B3D8C; color:#fff; border-radius:20px; padding:5px 8px 5px 12px; font-size:.78rem; display:inline-flex; align-items:center; gap:8px; }
  .chip button{ background:rgba(255,255,255,0.25); border:none; color:#fff; width:18px; height:18px; border-radius:50%; cursor:pointer; font-size:.7rem; line-height:1; }
  .chip button:hover{ background:rgba(255,255,255,0.45); }
  .sped-hint{ font-size:.74rem; color:#8B7B99; margin:2px 0 12px; }
  .fiscal-field[data-disabled="true"]{ opacity:.5; }
  .fiscal-tile small{ font-size:.65rem; opacity:.85; background:rgba(0,0,0,0.2); padding:2px 6px; border-radius:4px; align-self:flex-start; }
  @media (max-width:900px){ #barra-janelas{ left:0; } .janela{ width:95%; height:85vh; } .fiscal-body{ flex-direction:column; } .fiscal-steps{ width:100%; display:flex; overflow-x:auto; } }

  .loading{ color:var(--muted); font-size:.85rem; padding:10px 0; }

  /* ==== Login / Cadastro ==== */
  .login-screen{
    min-height:100vh; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(160deg, var(--header-bg), var(--sidebar-bg));
    padding:20px;
  }
  .login-card{
    background:var(--panel); border-radius:14px; padding:32px 28px;
    width:100%; max-width:380px; box-shadow:0 20px 50px rgba(0,0,0,0.3);
  }
  .login-brand{ font-size:20px; font-weight:700; color:var(--header-bg); margin-bottom:6px; text-align:center; }
  .login-sub{ font-size:13px; color:var(--muted); text-align:center; margin:0 0 22px 0; }
  .login-tabs{ display:flex; gap:6px; margin-bottom:18px; background:#F0F2F5; border-radius:8px; padding:4px; }
  .login-tab{ flex:1; text-align:center; padding:8px; border:none; background:transparent; border-radius:6px; font-size:.82rem; font-weight:600; color:var(--muted); cursor:pointer; }
  .login-tab.active{ background:#fff; color:var(--brand-dark); box-shadow:0 1px 3px rgba(0,0,0,0.1); }
  .login-form label{ display:block; font-size:12px; font-weight:600; color:var(--ink); margin:14px 0 6px 0; }
  .login-form input{ width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font-size:15px; box-sizing:border-box; }
  .login-form button.primary{ width:100%; margin-top:22px; height:42px; }
  .login-erro{ color:var(--warn); font-size:12px; text-align:center; margin:14px 0 0 0; min-height:14px; }
  .login-msg{ color:var(--brand-dark); font-size:12px; text-align:center; margin:14px 0 0 0; min-height:14px; }
  .topbar .spacer{ flex:1; }
  .topbar .btn-logout{
    background:rgba(255,255,255,0.1); border:none; color:#EAF2EF; padding:6px 14px;
    border-radius:6px; font-size:.78rem; font-weight:600; cursor:pointer;
  }
  .topbar .btn-logout:hover{ background:rgba(255,255,255,0.2); }
  @media (max-width: 900px){
    .app{ flex-direction:column; }
    .sidebar{ width:100%; }
    main{ padding:16px; }
    .form-sectioned{ flex-direction:column; }
    .form-sections-nav{ width:100%; flex-direction:row; overflow-x:auto; }
  }

  /* v10 - controles de janela reforçados */
  #janelas-container{position:fixed;inset:0 0 40px 220px;z-index:900;pointer-events:none;overflow:hidden;}
  #janelas-container .janela{pointer-events:auto;}
  #janelas-container .janela-header{position:relative;z-index:20;}
  #janelas-container .janela-controls{position:relative;z-index:30;pointer-events:auto;}
  #janelas-container .janela-btn{position:relative;z-index:31;pointer-events:auto;touch-action:none;}
  .janela.maximizada{left:0 !important;top:0 !important;width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;border-radius:0 !important;}

/* ==== PDV V32.1: alto contraste, comandos funcionais e layout responsivo ==== */
.pdv-shell{height:100%;min-height:620px;display:flex;flex-direction:column;background:#eef4f7;color:#14243a;overflow:hidden;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;}
.pdv-statusbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;background:#0c315d;color:#fff;border-bottom:1px solid rgba(255,255,255,.14);}
.pdv-status-group{display:flex;gap:8px;flex-wrap:wrap;min-width:0;}
.pdv-status-pill{display:inline-flex;gap:6px;align-items:center;padding:6px 9px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);border-radius:7px;font-size:.78rem;white-space:nowrap;}
.pdv-status-pill b{font-size:.67rem;text-transform:uppercase;letter-spacing:.03em;opacity:.75;}
.pdv-emissao-toggle{display:flex;flex-shrink:0;border-radius:7px;overflow:hidden;border:1px solid rgba(255,255,255,.25);}
.pdv-emissao-toggle button{border:0;padding:8px 11px;background:#1f4d79;color:#d7e6f3;font-size:.76rem;font-weight:700;cursor:pointer;}
.pdv-emissao-toggle button.active{background:#fff;color:#0c315d;}
.pdv-toolbar{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:7px;padding:10px 12px;background:#d9e6ee;border-bottom:1px solid #b9cad6;}
.pdv-action{min-height:54px;border:1px solid #9fb6c8;border-radius:7px;background:#fff;color:#183652;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:8px 10px;font-size:.76rem;font-weight:700;line-height:1.15;cursor:pointer;box-shadow:0 1px 2px rgba(15,45,70,.07);}
.pdv-action:hover{border-color:#38698f;background:#f4f9fc;}
.pdv-action-icon{width:27px;height:27px;border-radius:6px;background:#e5eef5;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0;}
.pdv-action.primary{background:#0b5aa2;border-color:#0b5aa2;color:#fff;}.pdv-action.primary .pdv-action-icon{background:rgba(255,255,255,.18);}
.pdv-action.success{background:#217346;border-color:#217346;color:#fff;}.pdv-action.success .pdv-action-icon{background:rgba(255,255,255,.18);}
.pdv-action.danger{background:#fff4f2;border-color:#dca69e;color:#8d3025;}
.pdv-contingencia .pdv-statusbar,.pdv-contingencia .pdv-footer{background:#633a69;}.pdv-contingencia .pdv-toolbar{background:#eaddea;}
.pdv-main{display:grid;grid-template-columns:minmax(360px,1fr) minmax(430px,48%);gap:12px;flex:1;min-height:0;padding:12px;overflow:hidden;}
.pdv-brand-panel,.pdv-cart-panel{background:#fff;border:1px solid #cbd8e2;border-radius:10px;box-shadow:0 2px 8px rgba(14,45,70,.08);min-height:0;}
.pdv-brand-panel{padding:28px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;overflow:auto;}
.pdv-brand-name{font-size:clamp(2rem,4vw,4.2rem);font-weight:900;color:#0b3d76;line-height:.95;letter-spacing:-.04em;max-width:100%;overflow-wrap:anywhere;}
.pdv-brand-subtitle{font-size:1.1rem;color:#52708a;font-weight:650;margin-top:8px;}
.pdv-overview-grid{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:26px 0 20px;}
.pdv-overview-grid>div{background:#f0f5f8;border:1px solid #d6e1e9;border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0;}
.pdv-overview-grid span{font-size:.67rem;text-transform:uppercase;color:#64798b;font-weight:700;}.pdv-overview-grid b{font-size:.95rem;color:#173b5c;overflow-wrap:anywhere;}
.pdv-entry-box{width:100%;max-width:720px;text-align:left;background:#f7fafc;border:1px solid #c6d7e3;border-radius:9px;padding:14px;}
.pdv-entry-box label{display:block;font-size:.76rem;font-weight:700;color:#29465f;margin-bottom:6px;}.pdv-entry-box>div{display:flex;gap:7px;}
.pdv-entry-box input{flex:1;min-width:0;padding:12px;border:2px solid #e18421;border-radius:6px;background:#fff;font-size:1rem!important;outline:none;}.pdv-entry-box input:focus{border-color:#0b5aa2;box-shadow:0 0 0 3px rgba(11,90,162,.12);}
.pdv-entry-box button{border:0;border-radius:6px;background:#0b5aa2;color:#fff;padding:0 15px;font-weight:700;cursor:pointer;}.pdv-entry-box small{display:block;color:#6c7c89;font-size:.7rem;margin-top:6px;}
.pdv-cart-panel{display:flex;flex-direction:column;overflow:hidden;}.pdv-cart-title{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#0c315d;color:#fff;font-weight:750;}.pdv-cart-title span:last-child{background:rgba(255,255,255,.16);border-radius:15px;padding:2px 9px;}
.pdv-cart-head,.pdv-cart-row{display:grid;grid-template-columns:minmax(160px,1fr) 52px 82px 88px 28px;gap:7px;align-items:center;}.pdv-cart-head{padding:7px 10px;background:#e4edf3;color:#557086;font-size:.65rem;text-transform:uppercase;font-weight:750;}.pdv-cart-list{flex:1;overflow:auto;background:#f8fbfc;}
.pdv-cart-row{padding:9px 10px;border-bottom:1px solid #dce6ed;font-size:.78rem;}.pdv-cart-row:nth-child(even){background:#f0f6f9;}.pdv-cart-row>span:nth-child(n+2){text-align:right;}.pdv-cart-row small{display:block;color:#738795;margin-top:2px;font-size:.68rem;}.pdv-cart-row button{width:25px;height:25px;border:0;border-radius:50%;background:#fae7e4;color:#a53b30;font-size:1rem;cursor:pointer;}
.pdv-empty-cart{padding:60px 20px;text-align:center;color:#718594;}.pdv-total{padding:15px 16px;background:#0c315d;color:#fff;display:flex;justify-content:space-between;align-items:center;}.pdv-total span{font-size:1.05rem;letter-spacing:.02em;}.pdv-total strong{font-size:1.65rem;}
.pdv-footer{display:flex;justify-content:space-between;gap:12px;background:#0c315d;color:#fff;padding:8px 14px;font-size:.75rem;font-weight:650;}
.pdv-opening{height:100%;min-height:500px;display:grid;place-items:center;background:linear-gradient(145deg,#e9f0f5,#f8fafc);padding:24px;}.pdv-opening-card{width:min(440px,100%);background:#fff;border:1px solid #cbd8e2;border-radius:13px;padding:30px;text-align:center;box-shadow:0 12px 34px rgba(14,45,70,.13);display:flex;flex-direction:column;gap:11px;}.pdv-opening-logo{font-size:2.3rem;font-weight:900;color:#0b3d76;overflow-wrap:anywhere;}.pdv-opening-card h2{margin:3px 0 0;}.pdv-opening-card p{margin:0;color:#6b7b88;}.pdv-opening-card button{width:100%;height:43px;}.pdv-opening-card small{color:#7a8995;}
.pdv-modal-overlay{position:fixed;inset:0;background:rgba(5,22,38,.58);display:flex;align-items:center;justify-content:center;padding:20px;z-index:2500;}.pdv-modal{width:100%;max-height:88vh;background:#fff;border-radius:11px;box-shadow:0 22px 70px rgba(0,0,0,.35);overflow:hidden;display:flex;flex-direction:column;}.pdv-modal-header{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:#0c315d;color:#fff;font-weight:750;}.pdv-modal-header button{width:30px;height:30px;border:0;border-radius:5px;background:rgba(255,255,255,.13);color:#fff;font-size:1.25rem;cursor:pointer;}
.pdv-admin-menu{display:grid;gap:7px;padding:12px;}.pdv-admin-menu button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #d1dde5;background:#f7fafc;border-radius:8px;padding:12px;font-size:1.2rem;cursor:pointer;}.pdv-admin-menu button:hover{border-color:#5f87a6;background:#eef5f9;}.pdv-admin-menu button span{display:flex;flex-direction:column;gap:2px;}.pdv-admin-menu button b{font-size:.86rem;color:#173b5c;}.pdv-admin-menu button small{font-size:.7rem;color:#6d8090;}.pdv-admin-menu button.danger{background:#fff6f4;border-color:#edc2bc;}
.pdv-modal-search{padding:12px;background:#e8f0f5;border-bottom:1px solid #cad8e2;}.pdv-modal-search input{width:100%;padding:11px;border:2px solid #e18421;border-radius:6px;background:#fff;outline:none;}.pdv-product-list,.pdv-doc-list{overflow:auto;max-height:58vh;padding:8px;}.pdv-product-list button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:1px solid #d9e3ea;background:#fff;border-radius:7px;padding:10px 12px;margin-bottom:6px;cursor:pointer;}.pdv-product-list button:hover{background:#eff6fa;border-color:#6c94b2;}.pdv-product-list button>span{display:flex;flex-direction:column;gap:2px;}.pdv-product-list button>span:last-child{text-align:right;}.pdv-product-list small,.pdv-doc-list small{font-size:.69rem;color:#738695;}.pdv-doc-list>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #dce5eb;padding:10px;}.pdv-doc-list>div>span{display:flex;flex-direction:column;gap:2px;}.pdv-doc-list>div>span:last-child{text-align:right;}.pdv-warning{background:#fff3cd;color:#755b00;padding:10px 12px;font-size:.75rem;border-top:1px solid #efd77b;}
.pdv-form-grid{display:grid;gap:12px;padding:16px;}.pdv-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:.75rem;font-weight:700;color:#40596d;}.pdv-form-grid input{padding:10px;border:1px solid #b8c9d5;border-radius:6px;}.pdv-modal-actions{display:flex;justify-content:flex-end;padding:12px 16px;border-top:1px solid #dbe4ea;}.pdv-modal-actions .primary{min-width:130px;}
.pdv-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px;}.pdv-summary-grid>div{background:#edf4f8;border:1px solid #d5e1e9;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:3px;}.pdv-summary-grid span{font-size:.7rem;text-transform:uppercase;color:#657b8c;font-weight:700;}.pdv-summary-grid b{font-size:1.4rem;color:#173b5c;}.pdv-modal-section{padding:0 15px 15px;overflow:auto;}.pdv-modal-section h3{font-size:.88rem;color:#29465f;}.pdv-summary-line{display:flex;justify-content:space-between;padding:8px 4px;border-bottom:1px solid #e1e8ed;font-size:.8rem;}
.pdv-payment-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#e8f0f5;color:#173b5c;font-size:1rem;}.pdv-payment-grid{display:grid;grid-template-columns:1fr 1fr;min-height:390px;overflow:auto;}.pdv-payment-methods{padding:10px;border-right:1px solid #d5e0e8;overflow:auto;}.pdv-payment-methods button{width:100%;display:flex;justify-content:space-between;border:1px solid #d5e0e8;background:#fff;padding:10px;margin-bottom:5px;border-radius:6px;cursor:pointer;}.pdv-payment-methods button.active{background:#0b5aa2;color:#fff;border-color:#0b5aa2;}.pdv-payment-entry{padding:18px;display:flex;flex-direction:column;gap:14px;background:#f7fafc;}.pdv-payment-entry>div{display:flex;justify-content:space-between;align-items:center;font-size:1rem;}.pdv-payment-entry>div b{font-size:1.4rem;color:#173b5c;}.pdv-payment-entry label{display:flex;flex-direction:column;gap:6px;font-size:.75rem;font-weight:700;color:#40596d;}.pdv-payment-entry input{padding:12px;border:2px solid #e18421;border-radius:6px;font-size:1.05rem!important;}.pdv-payment-entry small{font-size:.72rem;color:#6c7f8f;}.pdv-payment-auto-hint{display:block;font-weight:600;line-height:1.35;color:#49667d!important;}.pdv-payment-entry .primary{height:43px;}
@media(max-width:1100px){.pdv-toolbar{grid-template-columns:repeat(3,minmax(130px,1fr));}.pdv-main{grid-template-columns:1fr;overflow:auto;}.pdv-brand-panel{min-height:360px;}.pdv-cart-panel{min-height:420px;}.pdv-shell{overflow:auto;}.pdv-main{min-height:auto;}.pdv-overview-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:720px){.pdv-statusbar{align-items:stretch;flex-direction:column;}.pdv-emissao-toggle button{flex:1;}.pdv-toolbar{grid-template-columns:repeat(2,minmax(120px,1fr));}.pdv-main{padding:7px;}.pdv-brand-panel{padding:18px 10px;}.pdv-cart-head,.pdv-cart-row{grid-template-columns:minmax(120px,1fr) 42px 72px 74px 25px;font-size:.7rem;}.pdv-payment-grid{grid-template-columns:1fr;}.pdv-payment-methods{border-right:0;border-bottom:1px solid #d5e0e8;}.pdv-entry-box>div{flex-direction:column;}.pdv-entry-box button{height:42px;}}

/* ========================================================================== */
/* V32.2 — Interface Executiva Profissional                                   */
/* Inspirada nos padrões maduros do projeto Acesso Remoto, adaptada ao varejo. */
/* ========================================================================== */
:root{
  --bg:#f3f6fa;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --line-strong:#cbd5e1;
  --brand:#2563eb;
  --brand-dark:#1d4ed8;
  --brand-soft:#eff6ff;
  --success:#0f766e;
  --success-soft:#ecfdf5;
  --warn:#d97706;
  --warn-soft:#fffbeb;
  --danger:#dc2626;
  --danger-soft:#fef2f2;
  --purple:#7c3aed;
  --sidebar-bg:#081b33;
  --sidebar-bg-2:#0d2c50;
  --header-bg:#07192f;
  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --shadow-md:0 8px 24px rgba(15,23,42,.08);
  --shadow-lg:0 24px 70px rgba(2,12,27,.24);
  --sidebar-width:248px;
  --sidebar-collapsed-width:78px;
  --topbar-height:64px;
  font-size:15px;
}
html{background:var(--bg);scroll-behavior:smooth;}
body{background:radial-gradient(circle at 85% 0,rgba(37,99,235,.06),transparent 32%),var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;letter-spacing:-.005em;}
button,input,select,textarea{font-family:inherit;}
button{transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(37,99,235,.2)!important;outline-offset:2px!important;}
.hidden{display:none!important;}

/* Estrutura principal */
.app{min-height:100vh;background:transparent;}
.sidebar{width:var(--sidebar-width);height:100vh;position:sticky;top:0;z-index:1000;padding:18px 12px 24px;background:linear-gradient(180deg,#0d3158 0%,#081b33 64%,#061427 100%);border-right:1px solid rgba(255,255,255,.07);box-shadow:10px 0 30px rgba(2,12,27,.08);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;transition:width .2s ease,transform .2s ease;}
.sidebar::-webkit-scrollbar{width:5px}.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:8px;}
.brand{min-height:54px;padding:2px 9px 18px;margin-bottom:12px;font-size:1rem;font-weight:800;border-bottom:1px solid rgba(255,255,255,.10);gap:11px;white-space:nowrap;}
.brand .brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 7px 18px rgba(37,99,235,.28);flex:none;}
.brand .brand-mark img{width:38px!important;height:38px!important;border-radius:12px!important;box-shadow:0 7px 18px rgba(2,12,27,.3);}
.brand small{font-size:.69rem;color:#9fb5cf;letter-spacing:.015em;margin-top:2px;}
.sidebar nav{display:flex;flex-direction:column;gap:2px;}
.sidebar nav button{min-height:43px;padding:7px 9px;margin:0;border-radius:10px;color:#c9d9eb;font-size:.86rem;font-weight:560;gap:10px;white-space:nowrap;position:relative;}
.sidebar nav button:hover{background:rgba(255,255,255,.075);color:#fff;transform:translateX(1px);}
.sidebar nav button.active{background:linear-gradient(90deg,rgba(37,99,235,.28),rgba(37,99,235,.11));color:#fff;box-shadow:inset 3px 0 0 #60a5fa;font-weight:700;}
.sidebar nav .icon{width:31px;height:31px;border-radius:9px;font-size:.84rem;box-shadow:0 4px 12px rgba(2,12,27,.2);flex:none;}
.sidebar nav .nav-child-icon{width:23px!important;height:23px!important;font-size:.68rem!important;border-radius:7px!important;}
.nav-label{overflow:hidden;text-overflow:ellipsis;}
.nav-chevron{margin-left:auto;font-size:1.12rem;color:#8da7c3;line-height:1;}
.nav-group-children{margin:2px 0 5px 15px!important;padding:2px 0 2px 9px!important;border-left:1px solid rgba(148,163,184,.24)!important;}
.nav-group-children button{min-height:34px!important;padding:5px 7px!important;font-size:.78rem!important;}
.content-col{min-width:0;min-height:100vh;background:transparent;}
.topbar{height:var(--topbar-height);min-height:var(--topbar-height);position:sticky;top:0;z-index:850;background:rgba(7,25,47,.97);backdrop-filter:blur(16px);padding:0 22px;justify-content:flex-start;gap:13px;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 4px 18px rgba(2,12,27,.12);}
.topbar .empresa{font-size:.88rem;font-weight:760;color:#f8fafc;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.topbar .empresa small{font-size:.68rem;color:#8fa8c2;margin-top:2px;}
.topbar-actions{display:flex;align-items:center;gap:8px;min-width:0;}
.top-icon-btn,.top-search-btn,.connection-status,.topbar-secondary,.window-indicator{height:36px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);color:#dbeafe;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;}
.top-icon-btn{width:38px;font-size:1rem;flex:none;}
.top-icon-btn:hover,.top-search-btn:hover,.topbar-secondary:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.22);color:#fff;}
.top-search-btn{padding:0 10px;font-size:.75rem;min-width:150px;justify-content:flex-start;}
.top-search-btn>span{font-size:1.25rem;line-height:1}.top-search-btn>b{font-weight:650}.top-search-btn kbd{margin-left:auto;padding:2px 5px;border:1px solid rgba(255,255,255,.14);border-radius:5px;background:rgba(255,255,255,.08);font-size:.62rem;color:#a9bdd2;}
.connection-status{padding:0 9px;font-size:.69rem;cursor:default;}
.connection-status span{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.15)}.connection-status.offline span{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.15)}.connection-status.offline b{color:#fecaca;}
.window-indicator{width:36px;position:relative;font-size:.8rem;cursor:pointer;padding:0}.window-indicator b{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;border-radius:9px;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:.6rem;border:2px solid var(--header-bg);}
.topbar .usuario{height:36px;padding:0 9px 0 5px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.055);color:#d2dfec;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar .avatar{width:27px;height:27px;background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 4px 10px rgba(37,99,235,.25);flex:none;}
.topbar .btn-logout{height:36px;margin:0!important;padding:0 12px;border:1px solid rgba(255,255,255,.11);border-radius:9px;background:rgba(255,255,255,.07);}.topbar .btn-logout:hover{background:rgba(239,68,68,.18);border-color:rgba(248,113,113,.35);}
.topbar-secondary{padding:0 11px;font-size:.73rem;font-weight:700;}
.support-mode-badge{height:31px;display:inline-flex!important;align-items:center;padding:0 10px;background:#b45309;color:#fff;border-radius:8px;font-size:.68rem;font-weight:800;letter-spacing:.02em;}
.support-mode-badge[style*="display:none"],.support-mode-badge[style*="display: none"]{display:none!important;}
main{width:100%;max-width:1600px;padding:28px 30px 64px;}
main>h1,.janela-body h1{font-size:1.46rem;line-height:1.25;letter-spacing:-.025em;color:#0f172a;margin:0 0 5px;}
.subtitle{font-size:.87rem;color:var(--muted);margin-bottom:20px;}

/* Barra lateral recolhida */
body.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed-width);}
body.sidebar-collapsed .brand>span:last-child,body.sidebar-collapsed .sidebar .nav-label,body.sidebar-collapsed .sidebar .nav-chevron{display:none;}
body.sidebar-collapsed .brand{justify-content:center;padding-left:0;padding-right:0;}
body.sidebar-collapsed .sidebar nav button{justify-content:center;padding-left:8px;padding-right:8px;}
body.sidebar-collapsed .nav-group-children{margin-left:0!important;padding-left:0!important;border-left:0!important;}
body.sidebar-collapsed #janelas-container,body.sidebar-collapsed #barra-janelas{left:var(--sidebar-collapsed-width);}

/* Componentes globais */
.panel,.sped-panel{border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.97);padding:20px;box-shadow:var(--shadow-sm);margin-bottom:18px;}
.panel:hover{border-color:#d7e0ec;}
.panel h2,.sped-panel h2{font-size:1rem;color:#172033;letter-spacing:-.015em;margin:0 0 14px;}
.grid{gap:12px;margin-bottom:18px;}
.stat{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff!important;padding:16px 17px;box-shadow:var(--shadow-sm);}
.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand);}.stat.alert:before{background:var(--warn)}
.stat .num{font-size:1.38rem;color:#0f172a!important;letter-spacing:-.03em}.stat .lbl{font-size:.75rem;color:var(--muted);}
.tile-grid{gap:13px;}.tile{min-height:104px;border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:17px;box-shadow:0 7px 18px rgba(15,23,42,.12);overflow:hidden;position:relative;}.tile:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-35px;top:-42px;background:rgba(255,255,255,.12);}.tile:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(15,23,42,.18);}.tile .tile-label{font-size:.86rem;position:relative;z-index:1;}
.field{gap:6px;}.field label,.fiscal-field label{font-size:.69rem!important;text-transform:uppercase;letter-spacing:.045em;color:#526175!important;font-weight:750!important;}
.field input,.field select,.field textarea,.fiscal-field input,.fiscal-field select,.filters input,.filters select,.search-big{min-height:39px;border:1px solid var(--line-strong)!important;border-radius:9px!important;background:#fff!important;color:#0f172a;padding:8px 11px!important;box-shadow:inset 0 1px 1px rgba(15,23,42,.025);}
.field textarea{min-height:88px;resize:vertical;}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#94a3b8!important;}
.field input:focus,.field select:focus,.field textarea:focus,.fiscal-field input:focus,.fiscal-field select:focus{border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;outline:none!important;}
button.primary{height:39px;border-radius:9px;padding:0 16px;background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 5px 13px rgba(37,99,235,.18);font-size:.84rem;}.primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af)!important;transform:translateY(-1px);box-shadow:0 8px 18px rgba(37,99,235,.24);}
button.ghost{min-height:32px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:#475569;padding:5px 10px;font-weight:650;}.ghost:hover{border-color:#93b4e8;color:#1d4ed8;background:#eff6ff;}
.table-wrap{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);}
table{background:#fff;font-size:.84rem;}th{height:42px;padding:9px 12px;background:#f8fafc;color:#64748b;font-size:.68rem;font-weight:800;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1;}td{padding:10px 12px;border-bottom:1px solid #edf1f5;vertical-align:middle;}tbody tr:hover td{background:#f8fbff;}tbody tr:last-child td{border-bottom:0;}
.badge{padding:4px 9px;border-radius:999px;font-size:.68rem;font-weight:800;letter-spacing:.01em;}.badge.ok{background:#dcfce7;color:#166534}.badge.low,.badge.warn{background:#fef3c7;color:#92400e}.badge.danger,.badge.off{background:#fee2e2;color:#991b1b}.badge.neutral{background:#e2e8f0;color:#475569}.badge.info{background:#dbeafe;color:#1d4ed8;}
.empty{padding:22px;text-align:center;color:#748296;font-style:normal;background:linear-gradient(145deg,#fbfdff,#f8fafc);border:1px dashed #d8e0ea;border-radius:10px;}
.toast{z-index:4000;bottom:54px;right:22px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:#0f2744;box-shadow:0 14px 36px rgba(2,12,27,.27);font-weight:650;}

/* Janelas profissionais */
#janelas-container{position:fixed;left:var(--sidebar-width);right:0;top:var(--topbar-height);bottom:43px;z-index:900;pointer-events:none;overflow:hidden;transition:left .2s ease;}
#janelas-container .janela{pointer-events:auto;}
.janela{position:absolute;min-width:480px;min-height:340px;max-width:none;max-height:none;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(2,12,27,.18);display:flex;flex-direction:column;overflow:hidden;resize:none;transition:box-shadow .16s ease,border-color .16s ease;}
.janela.focused{border-color:#8db4ef;box-shadow:var(--shadow-lg);}
.janela-header{height:46px;min-height:46px;padding:0 9px 0 14px;background:linear-gradient(90deg,#0b2646,#10365f);border-bottom:1px solid rgba(255,255,255,.1);cursor:default;}
.janela-title{font-size:.82rem;font-weight:750;min-width:0;}.janela-title>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.janela-title .icon{width:26px!important;height:26px!important;border-radius:8px;display:grid;place-items:center;font-size:.74rem!important;box-shadow:0 4px 10px rgba(2,12,27,.25);}
.janela-controls{gap:4px}.janela-btn{width:32px;height:30px;border-radius:7px;background:transparent;color:#dce9f6;font-size:.82rem;}.janela-btn:hover{background:rgba(255,255,255,.13);}.janela-btn-close:hover{background:#dc2626!important;color:#fff;}
.janela-body{padding:20px;background:linear-gradient(180deg,#f7f9fc,#f3f6fa);overflow:auto;}
.janela.maximizada{left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;resize:none;}
.janela[data-window-size-locked="maximized"]{left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;resize:none!important;}
.janela[data-window-size-locked="maximized"] .janela-header{cursor:default!important;}
#barra-janelas{left:var(--sidebar-width);height:43px;padding:5px 10px;background:rgba(7,25,47,.98);backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.09);transition:left .2s ease;}
#barra-janelas:empty{display:none}.barra-item{height:32px;max-width:230px;padding:4px 10px;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:rgba(255,255,255,.075);color:#dce7f3;font-size:.72rem;overflow:hidden;}.barra-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.barra-item .icon{width:20px!important;height:20px!important;border-radius:6px;font-size:.65rem!important;display:grid;place-items:center;flex:none;}.barra-item:hover,.barra-item.active{background:rgba(37,99,235,.28);border-color:rgba(96,165,250,.46);}.barra-item.minimized{opacity:.58;}

/* Hub de módulos */
.module-hub{display:grid;gap:18px;}.module-hub-hero{min-height:150px;border-radius:18px;padding:25px 28px;display:flex;align-items:center;gap:20px;color:#fff;background:linear-gradient(125deg,var(--module-color),#0f2744);box-shadow:0 15px 36px color-mix(in srgb,var(--module-color) 24%,transparent);position:relative;overflow:hidden;}.module-hub-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-80px;top:-120px;background:rgba(255,255,255,.10);}.module-hub-icon{width:64px;height:64px;border-radius:18px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.18);display:grid;place-items:center;font-size:1.8rem;box-shadow:0 10px 25px rgba(0,0,0,.12);}.module-hub-hero div{position:relative;z-index:1}.module-hub-hero div>span{font-size:.66rem;font-weight:850;letter-spacing:.13em;opacity:.72}.module-hub-hero h1{font-size:1.85rem;color:#fff;margin:5px 0 4px}.module-hub-hero p{margin:0;color:rgba(255,255,255,.75);font-size:.85rem;}.module-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:13px}.module-card{min-height:86px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:12px;text-align:left;color:#172033;box-shadow:var(--shadow-sm);cursor:pointer;}.module-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--module-color) 45%,#cbd5e1);box-shadow:var(--shadow-md);}.module-card-icon{width:45px;height:45px;border-radius:12px;background:color-mix(in srgb,var(--module-color) 12%,white);color:var(--module-color);display:grid;place-items:center;font-size:1.1rem;font-weight:800;}.module-card>span:nth-child(2){display:flex;flex-direction:column;gap:4px}.module-card b{font-size:.84rem}.module-card small{font-size:.69rem;color:#8491a3}.module-card i{font-size:1.4rem;color:#a5b1c0;font-style:normal;}
.module-hub-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #d8e1eb;border-radius:13px;background:rgba(255,255,255,.84);box-shadow:var(--shadow-sm)}
.module-hub-toolbar label{display:grid;gap:5px;flex:1;max-width:520px}.module-hub-toolbar label>span,.module-hub-toolbar>div>span{font-size:.65rem;font-weight:850;color:#43566b;letter-spacing:.04em}.module-hub-toolbar label input{width:100%;min-height:40px;border:1px solid #cbd7e3;border-radius:9px;padding:8px 11px;background:#fff;color:#172033;outline:none}.module-hub-toolbar label input:focus{border-color:#4f8fd6;box-shadow:0 0 0 3px rgba(79,143,214,.12)}
.module-hub-toolbar>strong{padding:6px 10px;border-radius:999px;background:#eaf1f7;color:#496176;font-size:.66rem;white-space:nowrap}.module-hub-toolbar>div{display:grid;gap:2px}.module-hub-toolbar>div small{font-size:.65rem;color:#8190a0}.module-filter-empty{padding:24px;text-align:center;border:1px dashed #cbd6e1;border-radius:12px;background:#fafcfe;color:#718193;font-size:.78rem}.module-card[hidden]{display:none!important}.module-card small{line-height:1.35}
@media(max-width:680px){.module-hub-toolbar{align-items:stretch;flex-direction:column}.module-hub-toolbar label{max-width:none}.module-hub-toolbar>strong{align-self:flex-start}}


/* Dashboard executivo */
.dashboard-pro{display:grid;gap:17px;max-width:1540px;margin:0 auto;}
.dashboard-hero{min-height:178px;padding:25px 28px;border-radius:20px;background:linear-gradient(120deg,#0b2646 0%,#123d68 58%,#1d4ed8 120%);color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;box-shadow:0 20px 45px rgba(8,27,51,.2);position:relative;overflow:hidden;}.dashboard-hero:before,.dashboard-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}.dashboard-hero:before{width:270px;height:270px;right:-80px;top:-150px}.dashboard-hero:after{width:160px;height:160px;right:190px;bottom:-120px}.dashboard-hero>div{position:relative;z-index:1}.dashboard-eyebrow{display:block;font-size:.66rem;font-weight:850;letter-spacing:.15em;color:#93c5fd;margin-bottom:8px}.dashboard-hero h1{font-size:clamp(1.7rem,3vw,2.35rem);color:#fff;margin:0 0 6px;letter-spacing:-.04em}.dashboard-hero p{margin:0 0 10px;color:#c9daec;font-size:.88rem}.dashboard-hero small{font-size:.7rem;color:#8fb1d2;text-transform:capitalize}.dashboard-hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.dashboard-periods{display:flex;align-items:center;gap:3px;padding:4px;border-radius:10px;background:rgba(3,15,30,.28);border:1px solid rgba(255,255,255,.10)}.dashboard-periods button,.dashboard-action{height:32px;border:0;border-radius:7px;padding:0 10px;background:transparent;color:#c8d8e9;font-size:.68rem;font-weight:750;cursor:pointer;white-space:nowrap}.dashboard-periods button:hover,.dashboard-periods button.active{background:#fff;color:#143c65;box-shadow:0 3px 9px rgba(0,0,0,.12)}.dashboard-action{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08)}.dashboard-action:hover{background:rgba(255,255,255,.14);color:#fff}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.dashboard-kpi{min-height:132px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#fff;text-align:left;display:grid;grid-template-columns:42px 1fr;gap:11px;color:#172033;box-shadow:var(--shadow-sm);cursor:pointer;overflow:hidden;position:relative}.dashboard-kpi:after{content:"";position:absolute;width:85px;height:85px;border-radius:50%;right:-45px;top:-45px;background:var(--kpi-soft,#eff6ff)}.dashboard-kpi:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:#c8d6e7}.dashboard-kpi-icon{width:42px;height:42px;border-radius:12px;background:var(--kpi-soft,#eff6ff);color:var(--kpi-color,#2563eb);display:grid;place-items:center;font-size:.9rem;font-weight:850}.dashboard-kpi-content{display:flex;flex-direction:column;min-width:0;position:relative;z-index:1}.dashboard-kpi-content>small{font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:#728096}.dashboard-kpi-content>strong{font-size:1.16rem;line-height:1.2;margin:5px 0 3px;color:#101827;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi-content>em{font-size:.65rem;color:#8491a3;font-style:normal;line-height:1.25}.dashboard-kpi.blue{--kpi-color:#2563eb;--kpi-soft:#eff6ff}.dashboard-kpi.indigo{--kpi-color:#4f46e5;--kpi-soft:#eef2ff}.dashboard-kpi.teal{--kpi-color:#0f766e;--kpi-soft:#ecfdf5}.dashboard-kpi.green{--kpi-color:#16a34a;--kpi-soft:#f0fdf4}.dashboard-kpi.orange{--kpi-color:#d97706;--kpi-soft:#fffbeb}.dashboard-kpi.red{--kpi-color:#dc2626;--kpi-soft:#fef2f2}.dashboard-kpi.slate{--kpi-color:#475569;--kpi-soft:#f1f5f9}.dashboard-delta{display:flex;align-items:center;gap:3px;margin-top:auto;padding-top:8px;font-size:.62rem;font-weight:850}.dashboard-delta small{font-size:.57rem;color:#94a3b8;font-weight:600}.dashboard-delta.positive{color:#15803d}.dashboard-delta.negative{color:#dc2626}.dashboard-delta.neutral{color:#64748b}
.dashboard-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;box-shadow:var(--shadow-sm);min-width:0}.dashboard-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.dashboard-card h2{font-size:.91rem;margin:0 0 3px;color:#172033}.dashboard-card header p{font-size:.68rem;color:#8693a4;margin:0}.dashboard-card-value{font-size:.87rem;font-weight:800;color:#1d4ed8;background:#eff6ff;border-radius:8px;padding:6px 9px}.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,.75fr);gap:13px}.dashboard-secondary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.dashboard-line-chart{width:100%;overflow:hidden}.dashboard-line-chart svg{width:100%;min-height:240px;overflow:visible}.dashboard-grid-lines line{stroke:#e8edf3;stroke-width:1}.dashboard-grid-lines text,.dashboard-chart-x{fill:#8996a7;font-size:10px}.dashboard-chart-area{fill:rgba(37,99,235,.08)}.dashboard-chart-line{fill:none;stroke:#2563eb;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.dashboard-line-chart circle{fill:#fff;stroke:#2563eb;stroke-width:3}.dashboard-donut-layout{display:grid;grid-template-columns:145px 1fr;gap:18px;align-items:center;min-height:255px}.dashboard-donut{width:145px;height:145px;border-radius:50%;display:grid;place-items:center;position:relative}.dashboard-donut:after{content:"";position:absolute;width:91px;height:91px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #eef2f6}.dashboard-donut span{position:relative;z-index:1;text-align:center;display:flex;flex-direction:column}.dashboard-donut strong{font-size:1.25rem}.dashboard-donut small{font-size:.65rem;color:#8592a3}.dashboard-legend{display:grid;gap:9px;min-width:0}.dashboard-legend>div{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:.68rem}.dashboard-legend i{width:8px;height:8px;border-radius:3px}.dashboard-legend span{color:#586779;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-legend strong{font-size:.68rem;color:#1e293b}
.dashboard-alert-list,.dashboard-sales-list,.dashboard-stock-list{display:grid;gap:7px}.dashboard-alert{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:9px;text-align:left;color:#172033;cursor:pointer}.dashboard-alert>span{width:33px;height:33px;border-radius:9px;display:grid;place-items:center;font-weight:900;background:#f1f5f9;color:#475569}.dashboard-alert div{display:flex;flex-direction:column;gap:2px}.dashboard-alert b{font-size:.7rem}.dashboard-alert small{font-size:.61rem;color:#8290a1}.dashboard-alert i{font-size:1.15rem;color:#a3adba;font-style:normal}.dashboard-alert.warning>span{background:#fffbeb;color:#d97706}.dashboard-alert.danger>span{background:#fef2f2;color:#dc2626}.dashboard-alert.info>span{background:#eff6ff;color:#2563eb}.dashboard-alert.success>span{background:#ecfdf5;color:#0f766e}.dashboard-alert:hover{border-color:#b9c9dc;background:#fbfdff}.dashboard-sales-list>div,.dashboard-stock-list>div{min-height:43px;display:flex;align-items:center;gap:9px;padding:6px 2px;border-bottom:1px solid #edf1f5}.dashboard-sales-list>div:last-child,.dashboard-stock-list>div:last-child{border-bottom:0}.dashboard-sale-icon{width:31px;height:31px;border-radius:9px;background:#fff7ed;color:#ea580c;display:grid;place-items:center;flex:none}.dashboard-sales-list div>div,.dashboard-stock-list div>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.dashboard-sales-list b,.dashboard-stock-list b{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-sales-list small,.dashboard-stock-list small{font-size:.61rem;color:#8895a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-sales-list strong{font-size:.7rem;color:#0f766e;white-space:nowrap}.dashboard-stock-badge{min-width:31px;padding:4px 7px;border-radius:999px;background:#fef2f2;color:#dc2626;text-align:center;font-size:.68rem;font-weight:850}.dashboard-link{border:0;background:transparent;color:#2563eb;font-size:.67rem;font-weight:800;cursor:pointer}.dashboard-link:hover{text-decoration:underline}.dashboard-empty-success{min-height:190px!important;display:grid!important;place-content:center!important;text-align:center!important;border:0!important}.dashboard-empty-success span{width:42px;height:42px;border-radius:50%;background:#ecfdf5;color:#0f766e;display:grid;place-items:center;margin:0 auto;font-size:1.1rem;font-weight:900}.dashboard-empty-success p{font-size:.68rem;color:#738194;max-width:210px}.dashboard-shortcuts-card{padding-bottom:17px}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.dashboard-shortcuts button{min-height:75px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px;display:grid;grid-template-columns:37px 1fr;grid-template-rows:auto auto;column-gap:9px;text-align:left;cursor:pointer}.dashboard-shortcuts button>span{grid-row:1/3;width:37px;height:37px;border-radius:10px;background:color-mix(in srgb,var(--shortcut-color) 12%,white);color:var(--shortcut-color);display:grid;place-items:center;font-weight:850}.dashboard-shortcuts b{font-size:.7rem;align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-shortcuts small{font-size:.6rem;color:#909baa}.dashboard-shortcuts button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--shortcut-color) 42%,#cbd5e1);box-shadow:var(--shadow-md)}

/* Pesquisa global */
.commercial-search-layer{position:fixed;inset:0;z-index:5000;background:rgba(3,12,25,.62);backdrop-filter:blur(7px);display:flex;align-items:flex-start;justify-content:center;padding:9vh 18px 20px}.commercial-search-dialog{width:min(720px,100%);max-height:76vh;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(255,255,255,.3);border-radius:17px;box-shadow:0 30px 90px rgba(2,12,27,.38);overflow:hidden}.commercial-search-head{height:62px;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;padding:0 16px;border-bottom:1px solid var(--line)}.commercial-search-head>span{font-size:1.55rem;color:#2563eb}.commercial-search-head input{height:100%;border:0!important;outline:0!important;box-shadow:none!important;font-size:1rem!important;color:#0f172a;background:#fff!important}.commercial-search-head kbd{font-size:.62rem;padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;color:#758294}.commercial-search-summary{padding:9px 16px;background:#f8fafc;border-bottom:1px solid var(--line);font-size:.64rem;text-transform:uppercase;letter-spacing:.075em;font-weight:850;color:#7b8796}.commercial-search-results{overflow:auto;padding:8px}.commercial-search-results button{width:100%;min-height:57px;border:0;border-radius:10px;background:#fff;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:8px;text-align:left;cursor:pointer}.commercial-search-results button:hover{background:#f2f7ff}.commercial-search-icon{width:38px;height:38px;border-radius:10px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-weight:850}.commercial-search-results button>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}.commercial-search-results b{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.commercial-search-results small{font-size:.64rem;color:#7f8c9d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.commercial-search-results i{font-style:normal;color:#a5b0bd}.commercial-search-empty{min-height:220px;display:grid;place-content:center;text-align:center;color:#8793a2}.commercial-search-empty span{font-size:2rem}.commercial-search-empty p{font-size:.78rem}

/* Login */
.login-screen{position:relative;overflow:hidden;background:linear-gradient(135deg,#06162c 0%,#0c315d 52%,#1d4ed8 130%);}.login-screen:before{content:"";position:absolute;width:620px;height:620px;border-radius:50%;right:-210px;top:-300px;background:radial-gradient(circle,rgba(255,255,255,.13),rgba(255,255,255,0) 68%)}.login-screen:after{content:"Gestão comercial inteligente";position:absolute;left:7vw;bottom:8vh;color:rgba(255,255,255,.08);font-size:clamp(3rem,8vw,8rem);font-weight:900;letter-spacing:-.07em;white-space:nowrap}.login-card{position:relative;z-index:1;max-width:410px;padding:34px 32px;border:1px solid rgba(255,255,255,.45);border-radius:20px;box-shadow:0 30px 85px rgba(0,0,0,.32)}.login-brand{display:flex;align-items:center;justify-content:center;font-size:1.05rem;line-height:1.25}.login-brand img{width:54px!important;height:54px!important;border-radius:15px!important;box-shadow:0 10px 24px rgba(2,12,27,.18)}.login-sub{font-size:.78rem;margin-bottom:24px}.login-tabs{border-radius:10px;padding:4px;background:#f1f5f9}.login-tab{height:35px;border-radius:8px}.login-form label{font-size:.69rem;text-transform:uppercase;letter-spacing:.045em;color:#536174}.login-form input{height:42px;border-radius:9px;border-color:#cbd5e1}.login-form button.primary{height:43px;margin-top:20px}

/* Fiscal, relatórios e PDV com linguagem visual uniforme */
.fiscal-wrapper{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}.fiscal-header{background:linear-gradient(90deg,#4c1d95,#6d28d9);padding:13px 16px}.fiscal-body{background:#fff}.fiscal-steps{width:235px;background:#f8fafc;border-color:var(--line)}.fiscal-step{border-color:#e8edf3;color:#64748b}.fiscal-step.active{background:#f5f3ff;color:#6d28d9;border-left-color:#7c3aed}.fiscal-content{background:#fff;padding:20px}.fiscal-tile{background:linear-gradient(135deg,#6d28d9,#4f46e5);border-radius:13px;box-shadow:0 8px 18px rgba(109,40,217,.15)}.fiscal-tile:hover{background:linear-gradient(135deg,#5b21b6,#4338ca);transform:translateY(-2px)}.sped-title{color:#4f46e5;border-color:#ddd6fe}.sped-checklist label{background:#faf5ff;border-left:5px solid #7c3aed;border-radius:8px}.chip-toggle{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}.chip-toggle.active,.chip{background:#6d28d9;border-color:#6d28d9}.pdv-shell{background:#f1f5f9;border-radius:12px}.pdv-statusbar,.pdv-footer,.pdv-cart-title,.pdv-total,.pdv-modal-header{background:linear-gradient(90deg,#0b2646,#123d68)}.pdv-toolbar{background:#e8eef5;border-color:#d3dee9}.pdv-action{border-color:#cbd5e1;border-radius:9px;box-shadow:var(--shadow-sm)}.pdv-action:hover{border-color:#80a8d4;background:#f8fbff;transform:translateY(-1px)}.pdv-action.primary{background:#2563eb;border-color:#2563eb}.pdv-action.success{background:#0f766e;border-color:#0f766e}.pdv-brand-panel,.pdv-cart-panel{border-color:#d6dee8;border-radius:13px;box-shadow:var(--shadow-md)}.pdv-brand-name{color:#123d68}.pdv-entry-box{border-color:#ccd8e4;border-radius:11px}.pdv-entry-box input,.pdv-payment-entry input{border-color:#f59e0b}.pdv-entry-box input:focus,.pdv-payment-entry input:focus{border-color:#2563eb}.pdv-modal{border-radius:15px;box-shadow:0 30px 80px rgba(2,12,27,.36)}

/* Responsividade */
.mobile-sidebar-overlay{display:none;position:fixed;inset:0;z-index:980;background:rgba(2,12,27,.55);backdrop-filter:blur(3px)}
@media(max-width:1280px){.dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-secondary-grid{grid-template-columns:1fr 1fr}.dashboard-secondary-grid article:last-child{grid-column:1/-1}.dashboard-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1040px){.dashboard-main-grid{grid-template-columns:1fr}.dashboard-donut-layout{grid-template-columns:160px 1fr;min-height:auto}.top-search-btn{min-width:42px;width:42px;padding:0;justify-content:center}.top-search-btn>b,.top-search-btn>kbd{display:none}.connection-status b{display:none}.connection-status{width:34px;padding:0}.topbar .usuario>span:last-child{display:none}.topbar .usuario{width:38px;padding:0;justify-content:center}.dashboard-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){
  :root{--topbar-height:58px}.app{display:block}.sidebar{position:fixed;left:0;top:0;width:min(286px,86vw)!important;transform:translateX(-105%);box-shadow:20px 0 60px rgba(2,12,27,.35)}body.mobile-sidebar-open .sidebar{transform:translateX(0)}body.mobile-sidebar-open .mobile-sidebar-overlay{display:block}.content-col{min-height:100vh}.topbar{padding:0 12px;gap:8px}.topbar .empresa{font-size:.78rem}.topbar .empresa small{display:none}.topbar-actions{gap:5px}.window-indicator,.topbar-secondary{display:none!important}main{padding:18px 12px 64px}.dashboard-hero{align-items:flex-start;flex-direction:column;padding:21px}.dashboard-hero-actions{width:100%;align-items:stretch}.dashboard-periods{overflow-x:auto}.dashboard-periods button{flex:1}.dashboard-action{align-self:flex-end}.dashboard-kpi-grid{grid-template-columns:1fr 1fr}.dashboard-secondary-grid{grid-template-columns:1fr}.dashboard-secondary-grid article:last-child{grid-column:auto}.dashboard-shortcuts{grid-template-columns:1fr 1fr}.module-card-grid{grid-template-columns:1fr}.module-hub-hero{padding:21px}.module-hub-icon{width:52px;height:52px}.module-hub-hero h1{font-size:1.5rem}#janelas-container,body.sidebar-collapsed #janelas-container{left:0;top:var(--topbar-height);bottom:0}.janela{left:0!important;top:0!important;width:100%!important;height:100%!important;min-width:0;min-height:0;border-radius:0!important;resize:none}.janela-header{cursor:default}.janela-btn[data-min]{display:none}#barra-janelas{display:none!important}.janela-body{padding:14px 10px}.form-sectioned{flex-direction:column}.form-sections-nav{width:100%;flex-direction:row;overflow-x:auto;padding-bottom:5px}.form-section-btn{white-space:nowrap}.fiscal-body{flex-direction:column}.fiscal-steps{width:100%;display:flex;overflow-x:auto}.fiscal-step{min-width:170px}.commercial-search-layer{padding:5vh 10px 10px}.commercial-search-dialog{max-height:86vh}.pdv-shell{border-radius:0}}
@media(max-width:560px){.topbar .btn-logout{width:36px;padding:0;font-size:0}.topbar .btn-logout:after{content:"↪";font-size:1rem}.support-mode-badge{display:none!important}.dashboard-kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.dashboard-kpi{display:block;min-height:118px;padding:12px}.dashboard-kpi-icon{width:35px;height:35px;margin-bottom:8px}.dashboard-kpi-content>strong{font-size:1rem}.dashboard-delta small,.dashboard-kpi-content>em{display:none}.dashboard-main-grid,.dashboard-secondary-grid{gap:9px}.dashboard-card{padding:14px}.dashboard-donut-layout{grid-template-columns:1fr;justify-items:center}.dashboard-legend{width:100%}.dashboard-shortcuts{grid-template-columns:1fr}.dashboard-hero h1{font-size:1.55rem}.module-hub-hero{align-items:flex-start}.module-hub-icon{display:none}.panel{padding:14px}.janela-body h1{font-size:1.25rem}.topbar .empresa{max-width:145px}}
@media print{.sidebar,.topbar,#barra-janelas,.dashboard-hero-actions,.dashboard-shortcuts{display:none!important}.content-col,main{display:block!important;padding:0!important;max-width:none!important}.dashboard-hero{color:#111;background:#fff;border:1px solid #ddd;box-shadow:none}.dashboard-hero h1{color:#111}.dashboard-hero p,.dashboard-eyebrow{color:#555}.dashboard-kpi,.dashboard-card{break-inside:avoid;box-shadow:none}.dashboard-kpi-grid{grid-template-columns:repeat(3,1fr)}.dashboard-main-grid{grid-template-columns:1.5fr 1fr}.dashboard-secondary-grid{grid-template-columns:1fr 1fr}}

/* ========================================================================== */
/* V32.3 — PDV em tela inteira, ajustes comerciais e troco                   */
/* ========================================================================== */
.janela-body.pdv-window-body{padding:0!important;overflow:hidden!important;min-height:0;background:#e7edf4;}
.pdv-window-body .pdv-shell{height:100%;min-height:0!important;overflow:hidden!important;border-radius:0!important;}
.pdv-window-body .pdv-statusbar{padding:6px 10px;gap:8px;min-height:38px;}
.pdv-window-body .pdv-status-pill{padding:4px 7px;font-size:.7rem;}
.pdv-window-body .pdv-emissao-toggle button{padding:6px 9px;font-size:.69rem;}
.pdv-window-body .pdv-toolbar{grid-template-columns:repeat(10,minmax(72px,1fr));gap:5px;padding:6px 8px;}
.pdv-window-body .pdv-action{min-height:48px;padding:5px 6px;gap:5px;justify-content:center;text-align:center;flex-direction:column;font-size:.64rem;}
.pdv-window-body .pdv-action-icon{width:23px;height:23px;font-size:.86rem;}
.pdv-window-body .pdv-main{grid-template-columns:minmax(320px,40.5%) minmax(0,59.5%);gap:8px;padding:8px;overflow:hidden!important;min-height:0!important;}
.pdv-window-body .pdv-brand-panel{padding:12px;justify-content:flex-start;overflow:hidden;text-align:left;align-items:stretch;}
.pdv-window-body .pdv-brand-name{font-size:clamp(1.45rem,2.4vw,2.7rem);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;}
.pdv-window-body .pdv-brand-subtitle{font-size:.82rem;margin-top:4px;text-align:center;}
.pdv-window-body .pdv-overview-grid{grid-template-columns:repeat(2,1fr);gap:6px;margin:10px 0;}
.pdv-window-body .pdv-overview-grid>div{padding:7px 8px;}
.pdv-window-body .pdv-overview-grid span{font-size:.59rem;}
.pdv-window-body .pdv-overview-grid b{font-size:.83rem;}
.pdv-window-body .pdv-entry-box{padding:10px;max-width:none;}
.pdv-entry-fields{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(120px,.45fr) 86px;gap:7px;align-items:end;}
.pdv-entry-fields label{margin:0!important;min-width:0;}
.pdv-entry-fields label span{display:block;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pdv-window-body .pdv-entry-box input{width:100%;padding:9px 10px;font-size:.86rem!important;}
.pdv-window-body .pdv-entry-box button{height:38px;padding:0 9px;}
.pdv-keyboard-hints{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px;}
.pdv-keyboard-hints span{padding:5px 4px;border-radius:6px;background:#eaf1f6;color:#52697d;text-align:center;font-size:.61rem;white-space:nowrap;}
.pdv-keyboard-hints b{color:#123d68;}
.pdv-window-body .pdv-cart-title{padding:8px 11px;font-size:.78rem;}
.pdv-window-body .pdv-cart-panel{min-width:0;}
.pdv-window-body .pdv-cart-head,.pdv-window-body .pdv-cart-row{grid-template-columns:minmax(120px,1fr) 88px 100px 84px 56px;gap:5px;}
.pdv-window-body .pdv-cart-head{padding:5px 8px;font-size:.57rem;}
.pdv-window-body .pdv-cart-row{padding:6px 8px;font-size:.71rem;min-height:48px;}
.pdv-window-body .pdv-cart-row>span:nth-child(n+2){text-align:initial;}
.pdv-product-cell{min-width:0;overflow:hidden;}
.pdv-product-cell b,.pdv-product-cell small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pdv-qty-control{display:grid!important;grid-template-columns:25px 1fr 25px;align-items:center;gap:3px;text-align:center!important;}
.pdv-qty-control button,.pdv-row-actions button{width:24px!important;height:24px!important;border-radius:6px!important;background:#e6eef5!important;color:#123d68!important;font-weight:800;}
.pdv-qty-control button:hover,.pdv-row-actions button:hover{background:#d3e2ed!important;}
.pdv-price-button{width:100%!important;height:auto!important;min-height:34px;border:1px solid #c8d6e1!important;border-radius:7px!important;background:#fff!important;color:#173b5c!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;padding:3px 6px!important;cursor:pointer;}
.pdv-price-button:hover{border-color:#2563eb!important;background:#f4f8ff!important;}
.pdv-price-button b{font-size:.72rem;}.pdv-price-button small{font-size:.57rem!important;color:#64748b!important;margin:0!important;}
.pdv-line-total{font-weight:800;text-align:right!important;color:#123d68;}
.pdv-row-actions{display:flex!important;gap:4px;justify-content:flex-end;}
.pdv-row-actions button:last-child{background:#fae7e4!important;color:#a53b30!important;}
.pdv-window-body .pdv-total{padding:9px 12px;}
.pdv-window-body .pdv-total span{display:flex;flex-direction:column;font-size:.78rem;}
.pdv-window-body .pdv-total small{font-size:.55rem;opacity:.75;}
.pdv-window-body .pdv-total strong{font-size:1.3rem;}
.pdv-window-body .pdv-footer{padding:5px 10px;font-size:.65rem;}
.pdv-modal-body{overflow:auto;min-height:0;}
.pdv-adjust-summary{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px;background:#edf4f8;border-bottom:1px solid #d7e2ea;}
.pdv-adjust-summary span{display:flex;flex-direction:column;gap:3px;min-width:0;}.pdv-adjust-summary small{color:#64748b;font-size:.72rem;}.pdv-adjust-summary strong{font-size:1.35rem;color:#123d68;white-space:nowrap;}
.pdv-adjust-label{display:flex;flex-direction:column;gap:6px;padding:15px 16px 8px;font-size:.75rem;font-weight:750;color:#40596d;}
.pdv-adjust-label input{padding:11px;border:2px solid #f59e0b;border-radius:7px;font-size:1rem!important;}
.pdv-adjust-presets{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:5px 16px 10px;}
.pdv-adjust-presets button{border:1px solid #cbd8e2;border-radius:7px;background:#fff;padding:8px 3px;font-weight:750;color:#123d68;cursor:pointer;}
.pdv-adjust-help{margin:0 16px 12px;padding:9px;border-radius:7px;background:#f8fafc;color:#64748b;font-size:.71rem;}
.pdv-payment-summary{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;padding:10px;background:#edf4f8;border-bottom:1px solid #d7e2ea;}
.pdv-payment-summary>div{background:#fff;border:1px solid #d7e2ea;border-radius:8px;padding:7px;display:flex;flex-direction:column;gap:2px;min-width:0;}
.pdv-payment-summary span{font-size:.58rem;text-transform:uppercase;color:#64748b;font-weight:750;}.pdv-payment-summary b{font-size:.82rem;color:#123d68;white-space:nowrap;}
.pdv-payment-summary .total{background:#123d68;border-color:#123d68;}.pdv-payment-summary .total span,.pdv-payment-summary .total b{color:#fff;}
.pdv-payment-summary .discount b{color:#b91c1c;}.pdv-payment-summary .addition b{color:#047857;}.pdv-payment-summary .change{background:#ecfdf5;border-color:#86efac;}.pdv-payment-summary .change b{color:#047857;}.pdv-payment-summary .remaining{background:#fff7ed;border-color:#fdba74;}.pdv-payment-summary .remaining b{color:#c2410c;}
.pdv-sale-adjustment{display:grid;grid-template-columns:minmax(0,1fr) 78px 70px;gap:7px;padding:9px 12px;border-bottom:1px solid #d7e2ea;align-items:end;}
.pdv-sale-adjustment label{display:flex;flex-direction:column;gap:4px;font-size:.68rem;font-weight:750;color:#40596d;}.pdv-sale-adjustment input{padding:8px;border:1px solid #d09a3f;border-radius:6px;}.pdv-sale-adjustment button{height:35px;}
.pdv-window-body .pdv-payment-grid{grid-template-columns:.95fr 1.05fr;min-height:0;height:min(410px,54vh);overflow:hidden;}
.pdv-window-body .pdv-payment-methods{padding:7px;overflow:auto;}.pdv-window-body .pdv-payment-methods button{padding:7px 8px;margin-bottom:4px;font-size:.72rem;}
.pdv-window-body .pdv-payment-entry{padding:11px;gap:7px;overflow:auto;}.pdv-window-body .pdv-payment-entry input{padding:9px;font-size:.88rem!important;}.pdv-window-body .pdv-payment-entry button{min-height:34px;}
.pdv-payment-entry button.success{background:#0f766e;color:#fff;border:0;border-radius:7px;font-weight:750;}.pdv-payment-entry button.success:disabled{opacity:.45;cursor:not-allowed;}

@media(max-width:1250px){
  .pdv-window-body .pdv-toolbar{grid-template-columns:repeat(5,minmax(90px,1fr));}
  .pdv-window-body .pdv-action{min-height:42px;flex-direction:row;font-size:.61rem;}
  .pdv-window-body .pdv-main{grid-template-columns:minmax(290px,39%) minmax(0,61%);}
  .pdv-window-body .pdv-brand-name{font-size:1.55rem;}
  .pdv-window-body .pdv-brand-subtitle{display:none;}
  .pdv-window-body .pdv-overview-grid{margin:6px 0;}
  .pdv-keyboard-hints{grid-template-columns:repeat(2,1fr);}
}
@media(max-height:760px){
  .pdv-window-body .pdv-statusbar{padding:4px 8px;min-height:32px;}
  .pdv-window-body .pdv-toolbar{padding:4px 6px;gap:4px;}
  .pdv-window-body .pdv-action{min-height:38px;padding:3px 5px;}
  .pdv-window-body .pdv-action-icon{width:20px;height:20px;font-size:.75rem;}
  .pdv-window-body .pdv-main{padding:5px;gap:5px;}
  .pdv-window-body .pdv-brand-panel{padding:8px;}
  .pdv-window-body .pdv-overview-grid{margin:5px 0;gap:4px;}
  .pdv-window-body .pdv-overview-grid>div{padding:5px;}
  .pdv-window-body .pdv-entry-box{padding:7px;}
  .pdv-keyboard-hints{margin-top:5px;}
  .pdv-window-body .pdv-cart-row{min-height:42px;padding:4px 7px;}
  .pdv-window-body .pdv-footer{padding:3px 8px;}
}
@media(max-width:820px){
  .pdv-window-body .pdv-shell{overflow:hidden!important;}
  .pdv-window-body .pdv-main{grid-template-columns:minmax(240px,41%) minmax(0,59%)!important;overflow:hidden!important;min-height:0!important;}
  .pdv-window-body .pdv-toolbar{grid-template-columns:repeat(5,minmax(65px,1fr))!important;}
  .pdv-window-body .pdv-action span:last-child{display:none;}
  .pdv-window-body .pdv-action-icon{width:27px;height:27px;}
  .pdv-entry-fields{grid-template-columns:1fr!important;}
  .pdv-entry-fields button{height:34px!important;}
  .pdv-keyboard-hints{display:none;}
  .pdv-window-body .pdv-cart-head,.pdv-window-body .pdv-cart-row{grid-template-columns:minmax(100px,1fr) 70px 82px 72px 52px!important;}
  .pdv-payment-summary{grid-template-columns:repeat(3,1fr);}
}

/* ========================================================================== 
   V32.4 — Caixa persistente, segurança do PDV e diálogos profissionais
   ========================================================================== */
.f5-dialog-overlay{position:fixed;inset:0;z-index:25000;background:rgba(3,14,28,.62);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px}
.f5-dialog{width:min(520px,96vw);max-height:min(760px,92vh);overflow:hidden;background:#fff;border:1px solid #cbd7e2;border-radius:14px;box-shadow:0 28px 80px rgba(0,0,0,.38);display:flex;flex-direction:column}
.f5-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:linear-gradient(135deg,#07192f,#123d68);color:#fff}
.f5-dialog-header small{display:block;font-size:.58rem;letter-spacing:.14em;opacity:.7}.f5-dialog-header h3{margin:2px 0 0;font-size:1rem}.f5-dialog-header button{width:30px;height:30px;border:0;border-radius:7px;background:rgba(255,255,255,.12);color:#fff;font-size:1.15rem;cursor:pointer}
.f5-dialog-body{padding:18px;overflow:auto;color:#334155}.f5-dialog-body>p{margin:0 0 14px;line-height:1.5}.f5-dialog-label{display:flex;flex-direction:column;gap:7px;font-size:.76rem;font-weight:750;color:#40576b}.f5-dialog-label input,.f5-dialog-label textarea{width:100%;border:1px solid #bdccd8;border-radius:8px;padding:10px 11px;font:inherit;font-weight:500;color:#172d42;resize:vertical}.f5-dialog-label input:focus,.f5-dialog-label textarea:focus{outline:2px solid rgba(37,99,235,.2);border-color:#2563eb}.f5-dialog-label small{color:#b42318;min-height:16px}
.f5-dialog-actions{padding:12px 16px;background:#f4f7fa;border-top:1px solid #dce5ec;display:flex;justify-content:flex-end;gap:8px}.f5-dialog-actions button{min-height:38px;padding:0 15px;border-radius:8px;border:1px solid #c5d2dd;font-weight:750;cursor:pointer}.f5-dialog-actions .danger{background:#b42318;border-color:#b42318;color:#fff}.f5-dialog-actions .primary{background:#0b3d8c;border-color:#0b3d8c;color:#fff}.f5-dialog-actions .ghost{background:#fff;color:#334155}

.pdv-entry-fields-v324{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(110px,.55fr) minmax(145px,.8fr) 88px;gap:7px;align-items:end}.pdv-entry-fields-v324 label{min-width:0;margin:0!important}.pdv-entry-fields-v324 label span{display:block;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdv-entry-fields-v324 input{width:100%;height:38px}.pdv-entry-fields-v324 button{height:38px}
.pdv-form-stack{display:grid;gap:13px;padding:16px}.pdv-form-stack label,.pdv-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:.72rem;font-weight:750;color:#40596d}.pdv-form-stack input,.pdv-form-stack textarea,.pdv-form-stack select,.pdv-form-grid input,.pdv-form-grid textarea,.pdv-form-grid select{width:100%;padding:10px;border:1px solid #bdccd8;border-radius:7px;background:#fff;color:#173b5c;font:inherit}.pdv-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.pdv-form-grid .full{grid-column:1/-1}.pdv-form-grid .check{flex-direction:row;align-items:center;background:#f5f8fa;border:1px solid #dce5ec;padding:10px;border-radius:8px}.pdv-form-grid .check input{width:auto}
.pdv-recovery{text-align:center;padding:24px}.pdv-recovery-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#e9f2ff;color:#0b3d8c;font-size:2rem;margin:0 auto 10px}.pdv-recovery h3{margin:4px 0 8px;color:#173b5c}.pdv-recovery p{margin:0;color:#64748b;line-height:1.45}.pdv-recovery .pdv-modal-actions{padding:18px 0 0;background:transparent;border:0}
.pdv-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px}.pdv-summary-grid>div{border:1px solid #d6e1e9;border-radius:9px;padding:11px;background:#fff;display:flex;flex-direction:column;gap:4px}.pdv-summary-grid span{font-size:.62rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:750}.pdv-summary-grid b{font-size:1rem;color:#173b5c}.pdv-summary-grid .highlight{background:#123d68;border-color:#123d68}.pdv-summary-grid .highlight span,.pdv-summary-grid .highlight b{color:#fff}
.pdv-close-summary{margin:16px 16px 0;padding:15px;border:1px solid #b8c9d7;border-radius:10px;background:#edf4f8;display:flex;justify-content:space-between;align-items:center}.pdv-close-summary span{font-size:.72rem;text-transform:uppercase;font-weight:750;color:#52697d}.pdv-close-summary strong{font-size:1.45rem;color:#123d68}
.pdv-sale-adjustment-v324{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(190px,1fr) 72px 66px;gap:7px;padding:9px 12px;border-bottom:1px solid #d7e2ea;align-items:end}.pdv-sale-adjustment-v324 label{display:flex;flex-direction:column;gap:4px;font-size:.66rem;font-weight:750;color:#40596d}.pdv-sale-adjustment-v324 input{padding:8px;border:1px solid #d09a3f;border-radius:6px}.pdv-sale-adjustment-v324 button{height:35px}
.pdv-warning.danger{background:#fff1f0!important;color:#9f241c!important;border:1px solid #efb2ad!important}.pdv-confirm-box{margin:16px;padding:15px;border-radius:9px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12}.pdv-confirm-box p{margin:6px 0 0;line-height:1.45}.pdv-sale-success{text-align:center;padding:24px}.pdv-sale-success>div{width:62px;height:62px;border-radius:50%;background:#e4f8ef;color:#087451;display:grid;place-items:center;font-size:2rem;margin:0 auto}.pdv-sale-success h2{font-size:2rem;margin:10px 0 3px;color:#123d68}.pdv-sale-success p{font-weight:750;margin:0 0 6px;color:#334155}.pdv-sale-success small{color:#64748b}
.pdv-modal-actions .danger{background:#b42318!important;color:#fff!important;border-color:#b42318!important}.pdv-modal-actions .primary{background:#0b3d8c!important;color:#fff!important}
.pdv-opening-card .pdv-warning{margin:10px 0;text-align:left}
.pdv-opening-card.pdv-opening-unified{width:min(720px,100%);text-align:left;padding:32px;gap:18px}
.pdv-opening-card.pdv-opening-unified>.pdv-opening-brand{align-self:center}
.pdv-opening-terminal-pill{align-self:center;display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:#eaf4ff;color:#0b3d76;border:1px solid #bcd9f2;font-size:.72rem;font-weight:750;letter-spacing:.02em}
.pdv-opening-operators{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px;margin:4px 0}
.pdv-opening-operator-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px;border:1px solid #cbd8e2;border-radius:12px;background:#fff;cursor:pointer;font-weight:750;color:#173b5c;text-align:center;transition:border-color .15s,box-shadow .15s}
.pdv-opening-operator-card:hover{border-color:#8fb7dd}
.pdv-opening-operator-card.active{border-color:#0b3d8c;background:#eef4fc;box-shadow:0 0 0 2px rgba(11,61,140,.18)}
.pdv-opening-operator-card:disabled{opacity:.55;cursor:not-allowed}
.pdv-opening-operator-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#123d68;color:#fff;font-weight:900}
.pdv-opening-form{display:grid;gap:13px;margin-top:6px;padding-top:16px;border-top:1px solid #e1e9f0}
.pdv-opening-form label{display:grid;gap:5px;font-size:.76rem;font-weight:750;color:#40576b;text-align:left}
.pdv-opening-form input,.pdv-opening-form select,.pdv-opening-form textarea{box-sizing:border-box;min-height:42px;width:100%;padding:9px;border:1px solid #b9cce0;border-radius:7px;font:inherit}
.pdv-opening-static{min-height:42px;display:flex;align-items:center;padding:0 2px;color:#173b5c;font-weight:750}
.pdv-opening-form-row{display:grid;gap:13px}
@media(min-width:640px){.pdv-opening-form-row{grid-template-columns:1fr 1fr}}
.pdv-opening-mfa-note{margin:0;padding:10px 12px;border-radius:8px;background:#fff8e8;border:1px solid #ecd59c;color:#765413;font-size:.78rem}
.pdv-opening-form p{margin:0;font-size:.78rem;color:#5c7188}
.pdv-opening-form p[role=alert]{color:#a52620;min-height:16px}
.pdv-opening-form footer{display:flex;gap:10px}
.pdv-opening-form footer button{min-height:44px;flex:1}
.pdv-opening-footer{text-align:center;font-size:.72rem;color:#7a8995;line-height:1.5}

/* Impede rolagem da janela inteira do PDV; somente carrinho e modais rolam. */
.janela.maximizada .janela-body.pdv-window-body{height:calc(100% - 47px)!important;overflow:hidden!important}.pdv-window-body .pdv-shell{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}.pdv-window-body .pdv-main{height:auto!important;min-height:0!important}.pdv-window-body .pdv-cart-panel,.pdv-window-body .pdv-brand-panel{min-height:0!important}.pdv-window-body .pdv-cart-list{min-height:0!important;overflow:auto!important}

@media(max-width:1180px){.pdv-entry-fields-v324{grid-template-columns:minmax(170px,1.2fr) minmax(105px,.5fr) minmax(130px,.7fr)}.pdv-entry-fields-v324 button{grid-column:1/-1;height:32px}.pdv-sale-adjustment-v324{grid-template-columns:1fr 1.2fr 70px 64px}}
@media(max-width:820px){.pdv-entry-fields-v324{grid-template-columns:1fr 1fr}.pdv-entry-fields-v324 button{grid-column:1/-1}.pdv-summary-grid{grid-template-columns:repeat(2,1fr)}.pdv-form-grid{grid-template-columns:1fr}.pdv-sale-adjustment-v324{grid-template-columns:1fr 1fr}.pdv-sale-adjustment-v324 button{width:100%}}
@media(max-height:720px){.pdv-window-body .pdv-statusbar{min-height:28px!important;padding:3px 7px!important}.pdv-window-body .pdv-toolbar{padding:3px 5px!important}.pdv-window-body .pdv-action{min-height:34px!important}.pdv-window-body .pdv-main{padding:4px!important}.pdv-window-body .pdv-overview-grid{margin:3px 0!important}.pdv-window-body .pdv-entry-box{padding:5px!important}.pdv-window-body .pdv-footer{padding:2px 7px!important}.pdv-keyboard-hints{display:none!important}}

/* ========================================================================== 
   V33.0.1 — Campo principal limpo e mais alto no PDV
   ========================================================================== */
.pdv-entry-box-v3242{display:grid!important;gap:9px!important;padding:10px!important;background:linear-gradient(180deg,#fbfdff,#f5f8fb)!important;border:1px solid #c8d6e2!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.pdv-inline-product-results{position:relative;z-index:5}.pdv-inline-product-results:empty{display:none}.pdv-inline-product-results>div{border:1px solid #b8cde0;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(15,47,76,.18);max-height:246px;overflow:auto;padding:5px}.pdv-inline-product-results button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;border:0;border-bottom:1px solid #e2ebf2;background:#fff;padding:9px 11px;cursor:pointer}.pdv-inline-product-results button:last-child{border-bottom:0}.pdv-inline-product-results button:hover,.pdv-inline-product-results button:focus,.pdv-inline-product-results button.active,.pdv-inline-product-results button[aria-selected="true"]{background:#eaf4ff;outline:2px solid #60a5fa;outline-offset:-2px}.pdv-inline-product-name,.pdv-inline-product-stock{display:flex;flex-direction:column;gap:3px;min-width:0}.pdv-inline-product-name b{color:#103b63;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdv-inline-product-results small{font-size:.69rem;color:#60788d}.pdv-inline-product-stock{text-align:right}.pdv-inline-product-stock b{color:#0b5cab}.pdv-inline-product-empty{padding:12px!important;color:#667e91;text-align:center}

/* V34.9.172 — a navegação por produtos não recalcula a largura do PDV. */
.pdv-window-body :where(.pdv-brand-panel,.pdv-entry-box-v3242,.pdv-inline-product-results,.pdv-inline-product-results>div,.pdv-product-preview){width:100%;min-width:0;max-width:100%}
.pdv-inline-product-results{overflow:hidden}
.pdv-inline-product-results button{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr) 148px}
.pdv-inline-product-name,.pdv-inline-product-name b,.pdv-inline-product-name small,.pdv-inline-product-stock,.pdv-inline-product-stock small,.pdv-inline-product-stock b{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pdv-inline-product-name small,.pdv-inline-product-stock small,.pdv-inline-product-stock b{white-space:nowrap}
.pdv-product-preview-title b{flex:1;min-width:0;max-width:100%}
@media(max-width:900px){.pdv-inline-product-results button{grid-template-columns:minmax(0,1fr) 118px;gap:7px}}

/* V34.9.172 — mais espaço para resultados sem perder a pré-visualização. */
.pdv-window-body .pdv-brand-panel{grid-template-rows:auto minmax(0,1fr)!important}
.pdv-inline-product-results>div{max-height:300px}
.pdv-entry-help{display:flex!important;align-items:center;justify-content:center;min-height:20px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdv-entry-help span{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.pdv-entry-help{white-space:normal}}

/* V34.9.172 — pesquisa inferior com resultados sobre o carrinho. */
.pdv-window-body .pdv-main{grid-template-columns:minmax(360px,38%) minmax(0,62%)!important}
.pdv-window-body .pdv-brand-panel{display:block!important;min-width:0!important;padding:10px!important}
.pdv-preview-panel,.pdv-preview-panel #pdv-product-preview-area,.pdv-preview-panel .pdv-product-preview{width:100%;height:100%;min-width:0;min-height:0;max-width:100%}
.pdv-window-body .pdv-cart-panel{position:relative;overflow:hidden}
.pdv-cart-search-dock{position:relative;z-index:20;display:grid;gap:5px;padding:8px;border-top:1px solid #cbd8e4;background:#f5f8fb;box-shadow:0 -5px 16px rgba(15,47,75,.08)}
.pdv-cart-search-dock .pdv-entry-primary-row{display:grid;grid-template-columns:minmax(0,1fr) 152px!important;gap:8px}
.pdv-cart-search-dock .pdv-product-entry{min-width:0;margin:0}
.pdv-window-body .pdv-cart-search-dock #pdv-input{width:100%;height:48px!important;min-width:0;padding:9px 12px;font-size:1rem!important;border:2px solid #2563eb;border-radius:9px;background:#fff}
.pdv-window-body .pdv-cart-search-dock .pdv-add-item-button{height:48px!important}
.pdv-cart-search-dock #pdv-inline-product-results{position:absolute!important;left:8px;right:8px;bottom:100%;z-index:40;width:auto;max-width:none;overflow:visible}
.pdv-cart-search-dock #pdv-inline-product-results>div{max-height:330px;border:2px solid #2563eb;box-shadow:0 -16px 36px rgba(15,47,76,.24)}
.pdv-cart-search-dock .pdv-entry-help{min-height:16px;font-size:.6rem}
@media(max-width:900px){.pdv-window-body .pdv-main{grid-template-columns:minmax(280px,42%) minmax(0,58%)!important}.pdv-cart-search-dock .pdv-entry-primary-row{grid-template-columns:1fr!important}.pdv-window-body .pdv-cart-search-dock .pdv-add-item-button{height:38px!important}}
.pdv-entry-box-v3242>div{display:grid!important}
.pdv-entry-primary-row{grid-template-columns:minmax(0,1fr) 160px;gap:10px!important;align-items:stretch}
.pdv-product-entry{min-width:0;margin:0!important;display:flex!important;flex-direction:column;gap:5px;justify-content:stretch}
.pdv-product-entry>span{font-size:.72rem;font-weight:800;color:#1c3b57;letter-spacing:.01em;white-space:normal!important;overflow:visible!important}
.pdv-window-body .pdv-product-entry input{height:48px!important;padding:0 13px!important;border:2px solid #2563eb!important;border-radius:9px!important;background:#fff!important;font-size:.97rem!important;font-weight:650;color:#102f4c;box-shadow:0 0 0 3px rgba(37,99,235,.07)}
.pdv-window-body .pdv-product-entry input:focus{border-color:#0b4f96!important;box-shadow:0 0 0 4px rgba(37,99,235,.15)!important}
.pdv-product-entry-clean{gap:0!important}.pdv-product-entry-clean>span{display:none!important}.pdv-window-body .pdv-product-entry-clean input{height:56px!important;font-size:1.02rem!important;font-weight:700;padding:0 14px!important}
.pdv-window-body .pdv-add-item-button{height:62px!important;border-radius:12px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0 14px!important;background:linear-gradient(135deg,#0b4f96,#2563eb)!important;box-shadow:0 8px 18px rgba(37,99,235,.22)}
.pdv-add-item-button span{font-size:.86rem;font-weight:850}.pdv-add-item-button small{margin:0!important;color:rgba(255,255,255,.75)!important;font-size:.6rem!important;text-transform:uppercase;letter-spacing:.08em}

.pdv-entry-adjustment{gap:7px!important;padding:8px;border:1px solid #d8e2eb;border-radius:9px;background:#fff}
.pdv-entry-adjustment-head,.pdv-adjust-editor-title,.pdv-sale-adjustment-head{display:flex!important;align-items:flex-end;justify-content:space-between;gap:10px}
.pdv-entry-adjustment-head>span,.pdv-adjust-editor-title>span,.pdv-sale-adjustment-head>span{font-size:.72rem;font-weight:850;color:#1c3b57}
.pdv-entry-adjustment-head>small,.pdv-adjust-editor-title>small,.pdv-sale-adjustment-head>small{margin:0!important;font-size:.59rem!important;color:#718397!important;text-align:right}
.pdv-adjust-type-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
.pdv-adjust-type{min-height:34px!important;padding:5px 7px!important;border:1px solid #cbd7e2!important;border-radius:8px!important;background:#fff!important;color:#2e4b64!important;font-size:.62rem!important;font-weight:800!important;line-height:1.1;display:flex!important;align-items:center;justify-content:flex-start;gap:6px;cursor:pointer;box-shadow:0 1px 2px rgba(17,43,68,.05);transition:border-color .15s,background .15s,transform .15s,box-shadow .15s}
.pdv-adjust-type:hover{border-color:#7fa1bd!important;background:#f8fbfd!important;transform:translateY(-1px)}
.pdv-adjust-type>span{width:21px;height:21px;flex:0 0 21px;border-radius:6px;display:grid;place-items:center;background:#edf2f7;color:#29465f;font-size:.9rem;font-weight:900}
.pdv-adjust-type.acrescimo.active{border-color:#16835f!important;background:#e9f8f1!important;color:#096447!important;box-shadow:0 0 0 2px rgba(22,131,95,.1)}
.pdv-adjust-type.acrescimo.active>span{background:#16835f;color:#fff}
.pdv-adjust-type.desconto.active{border-color:#c56b16!important;background:#fff5e9!important;color:#9b4d08!important;box-shadow:0 0 0 2px rgba(197,107,22,.1)}
.pdv-adjust-type.desconto.active>span{background:#c56b16;color:#fff}
.pdv-entry-adjustment-fields{grid-template-columns:minmax(82px,.38fr) minmax(0,1fr);gap:7px!important}
.pdv-entry-adjustment-fields label,.pdv-adjust-fields label,.pdv-sale-adjustment-fields label{margin:0!important;min-width:0;display:flex!important;flex-direction:column;gap:4px;font-size:.63rem;font-weight:800;color:#40596d}
.pdv-entry-adjustment-fields label span{display:block;margin:0!important;white-space:normal!important;overflow:visible!important}
.pdv-window-body .pdv-entry-adjustment-fields input{height:36px!important;padding:0 9px!important;border:1px solid #bccbd7!important;border-radius:7px!important;font-size:.78rem!important;background:#fff!important}
.pdv-window-body .pdv-entry-adjustment-fields input:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.1)!important}
.pdv-entry-help{grid-template-columns:1fr auto;gap:8px!important;color:#64778a;font-size:.58rem;line-height:1.3}
.pdv-entry-help span:last-child{text-align:right}.pdv-entry-help b{color:#29465f}

.pdv-adjust-editor{display:grid;gap:12px;padding:16px;background:#fff}
.pdv-adjust-editor .pdv-adjust-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pdv-adjust-editor .pdv-adjust-type{min-height:42px!important;font-size:.7rem!important;padding:7px 10px!important}
.pdv-adjust-fields{display:grid;grid-template-columns:minmax(110px,.4fr) minmax(0,1fr);gap:10px}
.pdv-adjust-fields input{height:41px;padding:0 11px;border:1px solid #bdccd8;border-radius:8px;font:inherit;color:#173b5c}
.pdv-adjust-fields input:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}

.pdv-sale-adjustment-v324{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px 12px!important;background:#f7fafc}
.pdv-sale-adjustment-v324 .pdv-adjust-type-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.pdv-sale-adjustment-v324 .pdv-adjust-type{min-height:36px!important;justify-content:center;font-size:.61rem!important}
.pdv-sale-adjustment-fields{display:grid;grid-template-columns:100px minmax(160px,1fr) 82px 72px;gap:7px;align-items:end}
.pdv-sale-adjustment-fields input{height:36px;padding:0 9px;border:1px solid #bdccd8;border-radius:7px;font:inherit;color:#173b5c}
.pdv-sale-adjustment-fields button{height:36px!important;border-radius:7px!important}

@media(max-width:1180px){
  .pdv-entry-primary-row{grid-template-columns:minmax(0,1fr) 104px}
  .pdv-adjust-type{font-size:.56rem!important;padding:4px 5px!important;gap:4px}
  .pdv-adjust-type>span{width:18px;height:18px;flex-basis:18px;font-size:.76rem}
  .pdv-entry-adjustment-head>small{display:none}
  .pdv-entry-help{grid-template-columns:1fr}.pdv-entry-help span:last-child{text-align:left}
}
@media(max-width:900px){
  .pdv-entry-primary-row{grid-template-columns:1fr}.pdv-window-body .pdv-add-item-button{height:38px!important;flex-direction:row;gap:7px}.pdv-add-item-button small{display:none}
  .pdv-entry-adjustment-fields{grid-template-columns:1fr}
  .pdv-sale-adjustment-v324 .pdv-adjust-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pdv-sale-adjustment-fields{grid-template-columns:1fr 1fr}.pdv-sale-adjustment-fields button{width:100%}
}
@media(max-height:720px){
  .pdv-entry-box-v3242{gap:5px!important;padding:6px!important}.pdv-window-body .pdv-product-entry input{height:40px!important}.pdv-window-body .pdv-add-item-button{height:40px!important}.pdv-entry-adjustment{padding:5px;gap:4px!important}.pdv-adjust-type{min-height:28px!important}.pdv-window-body .pdv-entry-adjustment-fields input{height:31px!important}.pdv-entry-help{display:none!important}
}

/* ========================================================================== 
   V33.0.1 — Ajuste visual do campo principal no PDV
   ========================================================================== */
.product-image-editor{padding:22px;max-width:920px;margin:0 auto}.product-image-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.product-image-editor-head h3{margin:0 0 5px;color:#0b3d8c}.product-image-editor-head p{margin:0;color:#64748b;font-size:.85rem}.product-image-editor-head>span{background:#e8f0ff;color:#1d4f91;border:1px solid #bfd2ee;border-radius:18px;padding:6px 11px;font-size:.72rem;font-weight:700;white-space:nowrap}.product-image-editor-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,.75fr);gap:20px;background:#fff;border:1px solid #d5e0e9;border-radius:14px;padding:18px;box-shadow:0 10px 26px rgba(16,50,80,.08)}.product-image-preview-box{min-height:330px;border:2px dashed #bdcddd;border-radius:12px;background:linear-gradient(145deg,#f8fbfd,#eef4f8);display:grid;place-items:center;overflow:hidden}.product-image-preview-box img{width:100%;height:330px;object-fit:contain;background:#fff}.product-image-placeholder{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:#718397;padding:30px}.product-image-placeholder>span{font-size:3rem}.product-image-placeholder b{color:#29465f}.product-image-placeholder small{max-width:270px;line-height:1.45}.product-image-actions{display:flex;flex-direction:column;gap:11px;justify-content:center}.product-image-upload-button,.product-image-remove-button{border:0;border-radius:9px;padding:12px 15px;text-align:center;font-weight:800;cursor:pointer}.product-image-upload-button{background:linear-gradient(135deg,#0b4f96,#2563eb);color:#fff;box-shadow:0 7px 16px rgba(37,99,235,.2)}.product-image-remove-button{background:#fff1ef;color:#a33126;border:1px solid #efb4ad}.product-image-help{display:flex;flex-direction:column;gap:4px;background:#f5f8fb;border:1px solid #d8e2ea;border-radius:9px;padding:12px;color:#64748b;font-size:.78rem;line-height:1.4}.product-image-help b{color:#29465f}

/* O painel de inclusão ganha prioridade, mantendo a lista confortável. */
.pdv-window-body .pdv-main{grid-template-columns:minmax(520px,52%) minmax(0,48%)!important}.pdv-window-body .pdv-brand-panel{padding:10px!important}.pdv-window-body .pdv-overview-grid{grid-template-columns:repeat(4,1fr);margin:5px 0 8px!important}.pdv-window-body .pdv-overview-grid>div{padding:6px 8px!important}.pdv-window-body .pdv-product-entry input{height:64px!important;font-size:1.12rem!important}.pdv-entry-primary-row{grid-template-columns:minmax(0,1fr) 168px!important}.pdv-window-body .pdv-add-item-button{height:64px!important}.pdv-window-body .pdv-product-entry-clean input{height:64px!important}
.pdv-idle-brand{height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:34px;text-align:center;border:1px solid #d5e0e9;border-radius:12px;background:radial-gradient(circle at 50% 32%,#fff 0,#f5f9fd 48%,#eaf2f8 100%);overflow:hidden}.pdv-idle-brand-logo{width:min(72%,430px);height:min(42%,240px);min-height:116px;display:grid;place-items:center}.pdv-idle-brand-logo img{display:block;width:100%;height:100%;object-fit:contain}.pdv-idle-brand-logo>span{width:164px;height:164px;display:grid;place-items:center;border-radius:32px;background:linear-gradient(145deg,#0b3158,#1765aa);color:#fff;font-size:3.4rem;font-weight:900;letter-spacing:.06em;box-shadow:0 18px 42px rgba(14,55,92,.2)}.pdv-idle-brand-copy{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:560px}.pdv-idle-brand-copy>span{text-transform:uppercase;letter-spacing:.18em;color:#2b6da5;font-size:.68rem;font-weight:900}.pdv-idle-brand-copy h2{margin:0;color:#103d69;font-size:clamp(1.35rem,2.3vw,2.35rem);line-height:1.08}.pdv-idle-brand-copy b{display:flex;align-items:center;gap:7px;margin-top:4px;padding:7px 12px;border-radius:999px;background:#e7f8ee;color:#087451;font-size:.78rem}.pdv-idle-brand-copy b i{width:8px;height:8px;border-radius:50%;background:#19a765;box-shadow:0 0 0 4px rgba(25,167,101,.13)}.pdv-idle-brand-copy p{margin:2px 0 0;color:#64788b;font-size:.78rem}.pdv-product-preview-active{position:relative}.pdv-preview-company-mark{position:absolute;z-index:2;top:12px;right:12px;width:58px;height:42px;padding:5px;display:grid;place-items:center;border:1px solid #d9e4ec;border-radius:9px;background:rgba(255,255,255,.94);box-shadow:0 3px 10px rgba(15,47,75,.1)}.pdv-preview-company-mark img{display:block;width:100%;height:100%;object-fit:contain}.pdv-preview-company-mark>span{width:100%;height:100%;display:grid;place-items:center;border-radius:6px;background:#123d68;color:#fff;font-size:.7rem;font-weight:900}.pdv-product-preview-active .pdv-product-preview-title{padding-right:66px}
@media(max-width:900px),(max-height:720px){.pdv-idle-brand{gap:10px;padding:16px}.pdv-idle-brand-logo{height:38%;min-height:72px}.pdv-idle-brand-logo>span{width:92px;height:92px;border-radius:20px;font-size:2rem}.pdv-idle-brand-copy p{display:none}.pdv-preview-company-mark{top:7px;right:7px;width:46px;height:34px}.pdv-product-preview-active .pdv-product-preview-title{padding-right:48px}}
.pdv-idle-brand-expanded{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:18px 22px 20px}.pdv-idle-brand-expanded .pdv-idle-brand-logo{width:100%;height:100%;min-height:0;max-width:none}.pdv-idle-brand-expanded .pdv-idle-brand-logo img{width:94%;height:94%;max-width:none;max-height:none;object-fit:contain}.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:min(78%,460px);height:auto;max-height:94%;aspect-ratio:1;border-radius:clamp(30px,6vw,72px);font-size:clamp(4.5rem,10vw,9rem);box-shadow:0 24px 60px rgba(14,55,92,.22)}.pdv-idle-brand-expanded .pdv-idle-brand-copy{width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 16px;border:1px solid rgba(188,207,222,.8);border-radius:12px;background:rgba(255,255,255,.82);box-shadow:0 5px 18px rgba(15,47,75,.06)}.pdv-idle-brand-expanded .pdv-idle-brand-copy h2{min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(1rem,1.8vw,1.55rem)}.pdv-idle-brand-expanded .pdv-idle-brand-copy b{margin:0;white-space:nowrap}
@media(max-width:900px),(max-height:720px){.pdv-idle-brand-expanded{padding:10px;gap:7px}.pdv-idle-brand-expanded .pdv-idle-brand-logo{height:100%}.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:min(72%,300px);height:auto;font-size:clamp(3rem,8vw,6rem)}.pdv-idle-brand-expanded .pdv-idle-brand-copy{padding:8px 10px}.pdv-idle-brand-expanded .pdv-idle-brand-copy h2{font-size:.92rem}.pdv-idle-brand-expanded .pdv-idle-brand-copy b{font-size:.64rem;padding:5px 8px}}
.pdv-idle-brand-expanded .pdv-idle-brand-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;text-align:center}.pdv-idle-brand-expanded .pdv-idle-brand-copy h2{width:100%;text-align:center}.pdv-preview-panel #pdv-product-preview-area{display:flex;align-items:center;justify-content:center}.pdv-preview-panel #pdv-product-preview-area>.pdv-product-preview-active{width:100%;height:auto!important;min-height:178px;max-height:100%;align-self:center}.pdv-preview-panel #pdv-product-preview-area>.pdv-idle-brand-expanded{width:100%;height:100%}
@media(max-width:1250px){.pdv-preview-panel #pdv-product-preview-area>.pdv-product-preview-active{min-height:146px}}@media(max-width:900px),(max-height:720px){.pdv-preview-panel #pdv-product-preview-area>.pdv-product-preview-active{min-height:112px}.pdv-idle-brand-expanded .pdv-idle-brand-copy{gap:4px}}
.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:86%;height:86%;max-height:none;aspect-ratio:auto;border-radius:clamp(38px,7vw,92px);font-size:clamp(5rem,12vw,10rem)}.pdv-product-state{width:100%;height:100%;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(105px,28%) minmax(0,1fr);gap:16px;align-items:stretch}.pdv-product-brand-header{display:grid;grid-template-columns:minmax(110px,30%) minmax(0,1fr);align-items:center;gap:18px;min-width:0;padding:10px 18px;border-bottom:1px solid #dce6ed}.pdv-product-brand-logo{width:100%;height:100%;min-height:0;display:grid;place-items:center}.pdv-product-brand-logo img{width:100%;height:100%;object-fit:contain}.pdv-product-brand-logo>span{width:100%;height:100%;max-height:150px;display:grid;place-items:center;border-radius:28px;background:linear-gradient(145deg,#0b3158,#1765aa);color:#fff;font-size:clamp(2.4rem,5vw,5rem);font-weight:900}.pdv-product-brand-header h2{margin:0;min-width:0;text-align:center;color:#103d69;font-size:clamp(1.35rem,2.7vw,2.7rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdv-product-state>.pdv-product-preview-active{width:100%;height:auto!important;min-height:178px;max-height:100%;align-self:center}.pdv-product-preview-active .pdv-product-preview-title{padding-right:0}
@media(max-width:900px),(max-height:720px){.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:82%;height:82%;font-size:clamp(3rem,9vw,7rem)}.pdv-product-state{grid-template-rows:minmax(78px,25%) minmax(0,1fr);gap:8px}.pdv-product-brand-header{grid-template-columns:minmax(82px,26%) minmax(0,1fr);gap:9px;padding:6px 10px}.pdv-product-brand-logo>span{border-radius:18px;font-size:2.4rem}.pdv-product-brand-header h2{font-size:1.25rem}.pdv-product-state>.pdv-product-preview-active{min-height:112px}}
.pdv-window-body .pdv-brand-panel{position:relative!important;display:block!important;padding:0!important;overflow:hidden!important}.pdv-window-body .pdv-brand-panel>.pdv-preview-panel{position:absolute!important;inset:10px!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important}.pdv-window-body .pdv-preview-panel>#pdv-product-preview-area{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;display:block!important}.pdv-window-body #pdv-product-preview-area>.pdv-idle-brand-expanded,.pdv-window-body #pdv-product-preview-area>.pdv-product-state{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important}.pdv-idle-brand-expanded{grid-template-rows:minmax(0,1fr) auto!important}.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:82%!important;height:88%!important;max-width:none!important;max-height:none!important}.pdv-product-state{grid-template-rows:minmax(118px,30%) minmax(0,1fr)!important}.pdv-product-state>.pdv-product-preview-active{align-self:center!important;width:100%!important;height:auto!important}
@media(max-width:900px),(max-height:720px){.pdv-window-body .pdv-brand-panel>.pdv-preview-panel{inset:6px!important}.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:84%!important;height:86%!important}.pdv-product-state{grid-template-rows:minmax(92px,28%) minmax(0,1fr)!important}}
.pdv-idle-brand-expanded.has-company-image{display:block!important;padding:18px!important}.pdv-idle-brand-expanded.has-company-image .pdv-idle-brand-logo{width:100%!important;height:100%!important}.pdv-idle-brand-expanded.has-company-image .pdv-idle-brand-logo img{width:100%!important;height:100%!important;object-fit:contain!important}.pdv-idle-brand-expanded.uses-company-fallback{grid-template-rows:minmax(0,1fr) auto!important}.pdv-idle-fallback-name{margin:0;padding:10px 14px;width:100%;text-align:center;color:#103d69;font-size:clamp(1rem,2vw,1.7rem);white-space:nowrap;overflow:hidden}.pdv-product-state.has-company-image{grid-template-rows:minmax(92px,24%) minmax(0,1fr)!important;gap:4px}.pdv-product-state.has-company-image .pdv-product-brand-header{display:flex;align-items:center;justify-content:center;padding:4px 12px;border-bottom-color:transparent}.pdv-product-state.has-company-image .pdv-product-brand-logo{width:88%;height:100%}.pdv-product-state.has-company-image .pdv-product-brand-logo img{width:100%;height:100%;object-fit:contain}.pdv-product-state>.pdv-product-preview-active{align-self:start!important;margin-top:4px;border-color:transparent!important;background:transparent!important;box-shadow:none!important}.pdv-product-state>.pdv-product-preview-active .pdv-product-preview-image{border-color:transparent!important;background:transparent!important}.pdv-window-body .pdv-footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important}.pdv-window-body .pdv-footer>span:last-child{text-align:right}.pdv-footer-available{display:flex;align-items:center;justify-content:center;gap:6px;color:#a7f3d0;font-weight:800;white-space:nowrap}.pdv-footer-available i{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.18)}
@media(max-width:900px),(max-height:720px){.pdv-product-state.has-company-image{grid-template-rows:minmax(72px,22%) minmax(0,1fr)!important}.pdv-product-state>.pdv-product-preview-active{margin-top:2px}.pdv-footer-available{font-size:.62rem}}
.pdv-product-state.has-company-image{position:absolute!important;inset:0!important;display:block!important}.pdv-product-state.has-company-image .pdv-product-brand-header{position:absolute!important;top:0!important;left:0!important;right:0!important;height:34%!important;min-height:0!important;overflow:hidden!important}.pdv-product-state.has-company-image .pdv-product-brand-logo{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;overflow:hidden!important}.pdv-product-state.has-company-image .pdv-product-brand-logo img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}.pdv-product-state.has-company-image>.pdv-product-preview-active{position:absolute!important;top:40%!important;left:0!important;right:0!important;width:auto!important;margin:0!important;max-height:56%!important;overflow:hidden!important}
@media(max-width:900px),(max-height:720px){.pdv-product-state.has-company-image .pdv-product-brand-header{height:31%!important}.pdv-product-state.has-company-image>.pdv-product-preview-active{top:36%!important;max-height:62%!important}}

.pdv-product-preview{display:grid;grid-template-columns:206px minmax(0,1fr);min-height:178px;border:1px solid #d5e0e9;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 3px 10px rgba(15,47,75,.06)}.pdv-product-preview-image{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;border-right:1px solid #e0e7ed;background:#f8fafc}.pdv-product-preview-image img{width:166px;height:148px;object-fit:contain;border-radius:10px;background:#fff}.pdv-product-preview-image small{font-size:.58rem;color:#718397}.pdv-product-preview-placeholder{width:150px;height:132px;border-radius:12px;background:#edf3f7;color:#7890a3;display:grid;place-items:center;font-size:3rem}.pdv-product-preview-info{padding:14px 16px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:10px}.pdv-product-preview-title{display:flex;align-items:center;gap:8px;min-width:0}.pdv-product-preview-title b{font-size:1rem;color:#123d68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdv-product-preview-title span{font-size:.58rem;font-weight:800;border-radius:12px;padding:3px 7px}.pdv-product-preview-title .active{background:#e8f8ef;color:#087451;border:1px solid #9ed8b9}.pdv-product-preview-title .inactive{background:#f2f4f6;color:#64748b;border:1px solid #d7dde3}.pdv-product-preview-codes{display:flex;gap:14px;flex-wrap:wrap;color:#64748b;font-size:.7rem}.pdv-product-preview-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pdv-product-preview-metrics>div{background:#f5f8fb;border:1px solid #dce5ec;border-radius:8px;padding:9px 11px;display:flex;flex-direction:column;gap:3px}.pdv-product-preview-metrics span{font-size:.6rem;color:#64748b}.pdv-product-preview-metrics b{font-size:.94rem;color:#123d68}.pdv-product-preview-metrics>div:last-child b{color:#14804f}.pdv-product-preview-empty{color:#718397}.pdv-product-preview-empty .pdv-product-preview-info{justify-content:center}.pdv-product-preview-empty-text{font-size:.72rem;line-height:1.5;max-width:430px}@media(max-width:1250px){.pdv-window-body .pdv-main{grid-template-columns:minmax(465px,48%) minmax(0,52%)!important}.pdv-window-body .pdv-overview-grid{grid-template-columns:repeat(2,1fr)}.pdv-product-preview{grid-template-columns:160px minmax(0,1fr);min-height:146px}.pdv-product-preview-image img{width:122px;height:108px}.pdv-product-preview-placeholder{width:110px;height:98px;font-size:2.35rem}.pdv-entry-adjustment{grid-template-columns:1fr!important}.pdv-entry-adjustment-head{grid-column:auto}.pdv-entry-adjustment-fields{grid-template-columns:110px minmax(0,1fr)!important}.pdv-adjust-type{min-height:31px!important}.pdv-product-preview-metrics>div{padding:5px 6px}}
@media(max-width:900px){.pdv-window-body .pdv-main{grid-template-columns:minmax(360px,46%) minmax(0,54%)!important}.pdv-entry-primary-row{grid-template-columns:1fr!important}.pdv-window-body .pdv-add-item-button{height:46px!important}.pdv-window-body .pdv-product-entry-clean input{height:46px!important}.pdv-product-preview{grid-template-columns:116px minmax(0,1fr);min-height:112px}.pdv-product-preview-image img{width:86px;height:78px}.pdv-product-preview-placeholder{width:78px;height:72px;font-size:1.85rem}.pdv-product-preview-codes{display:none}.pdv-cash-manager{grid-template-columns:1fr}.pdv-cash-list{border-right:0;border-bottom:1px solid #d7e2ea;max-height:230px}.product-image-editor-grid{grid-template-columns:1fr}}
@media(max-height:720px){.pdv-product-preview{min-height:112px;grid-template-columns:116px minmax(0,1fr)}.pdv-product-preview-image{padding:6px}.pdv-product-preview-image img{width:84px;height:76px}.pdv-product-preview-placeholder{width:76px;height:68px;font-size:1.8rem}.pdv-product-preview-metrics{display:none}.pdv-product-preview-info{padding:6px 8px;gap:4px}.pdv-entry-adjustment{padding:4px!important}.pdv-entry-adjustment-head>small{display:none}.pdv-window-body .pdv-product-entry input{height:50px!important}.pdv-window-body .pdv-add-item-button{height:50px!important}.pdv-window-body .pdv-product-entry-clean input{height:50px!important}}
.pdv-product-search-item{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}.pdv-product-search-thumb{width:46px;height:46px;border:1px solid #d7e1e9;border-radius:8px;background:#f5f8fb;display:grid!important;place-items:center!important;overflow:hidden;font-size:1.35rem}.pdv-product-search-thumb img{width:100%;height:100%;object-fit:contain}.pdv-product-search-main{min-width:0!important;text-align:left}.pdv-product-search-main b,.pdv-product-search-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* V33.0.1 — auditoria funcional, notas e pesquisas profissionais */
.f5-picker{display:grid;gap:10px}.f5-picker>input{height:42px;border:1px solid #bdcbd7;border-radius:8px;padding:0 12px;font:inherit}.f5-picker>input:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.f5-picker-list{max-height:330px;overflow:auto;border:1px solid #d7e1e9;border-radius:9px;background:#f8fafc;padding:5px}.f5-picker-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:1px solid transparent;background:#fff;padding:9px 11px;border-radius:7px;margin-bottom:4px;text-align:left;color:#173b5c;cursor:pointer}.f5-picker-item:hover,.f5-picker-item.active{border-color:#2563eb;background:#edf4ff}.f5-picker-item small{color:#64748b}.f5-picker-empty{padding:24px;text-align:center;color:#718096}.f5-picker-error{min-height:16px;color:#b42318}
.fiscal-draft-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#eef3f6;color:#173b5c}.fiscal-draft-header{min-height:44px;padding:8px 14px;background:linear-gradient(90deg,#0b3d8c,#1556a8);color:#fff;display:flex;align-items:center;justify-content:space-between;font-weight:800}.fiscal-draft-header.green{background:linear-gradient(90deg,#26733b,#43a047)}.fiscal-draft-header>button{border:0;background:transparent;color:#fff;font-size:1.5rem;cursor:pointer}.fiscal-draft-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:0}.fiscal-draft-steps{overflow:auto;background:#e8f0f6;border-right:1px solid #c8d5df;padding:5px}.fiscal-draft-steps button{width:100%;position:relative;white-space:pre-line;text-align:left;border:0;border-left:4px solid transparent;border-radius:6px;background:transparent;color:#49657a;padding:10px 9px;margin-bottom:3px;font-weight:650;cursor:pointer}.fiscal-draft-steps button:hover{background:#fff}.fiscal-draft-steps button.active{background:#fff;border-left-color:#0b3d8c;color:#0b3d8c;box-shadow:0 2px 6px rgba(15,47,73,.08)}.fiscal-draft-steps.green button.active{border-left-color:#2e7d32;color:#256a2a}.fiscal-draft-steps button span{position:absolute;right:8px;top:8px}.fiscal-draft-content{padding:14px;overflow:auto;background:#f7fafc}.fiscal-draft-footer{padding:8px 12px;background:#dce5eb;border-top:1px solid #c4d1da;display:flex;justify-content:flex-end;gap:8px}.fiscal-draft-footer button,.fiscal-inline-add button,.fiscal-inline-actions button,.fiscal-item-entry button,.fiscal-lookup-row button{border:1px solid #b7c8d5;border-radius:7px;padding:8px 12px;font-weight:750;cursor:pointer}.fiscal-draft-footer .primary,.fiscal-inline-add .primary,.fiscal-inline-actions .primary,.fiscal-item-entry .primary,.fiscal-lookup-row .primary{background:#0b3d8c;border-color:#0b3d8c;color:#fff}.fiscal-draft-footer .green,.fiscal-item-entry .green,.fiscal-lookup-row .green,.fiscal-inline-add .green{background:#2e7d32;border-color:#2e7d32}.fiscal-draft-footer .ghost,.fiscal-item-entry .ghost,.fiscal-lookup-row .ghost{background:#fff;color:#26465e}.fiscal-lookup-row .danger{background:#b42318;color:#fff;border-color:#b42318}.fiscal-section-title{margin:0 0 10px;padding:7px 10px;border-radius:7px;background:#0b3d8c;color:#fff;font-weight:800}.fiscal-section-title.green{background:#2e7d32}.fiscal-form-grid{display:grid;gap:9px;margin-bottom:12px}.fiscal-form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.fiscal-form-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.fiscal-form-grid .span-2{grid-column:span 2}.fiscal-form-grid .span-3{grid-column:span 3}.fiscal-form-grid label,.fiscal-form-stack label,.fiscal-inline-add label,.fiscal-item-entry label{display:flex;flex-direction:column;gap:4px;font-size:.72rem;font-weight:800;color:#405a6e}.fiscal-form-grid input,.fiscal-form-grid select,.fiscal-form-stack input,.fiscal-form-stack select,.fiscal-form-stack textarea,.fiscal-inline-add input,.fiscal-item-entry input,.fiscal-item-entry select,.fiscal-lookup-row select,.fiscal-items-table input,.fiscal-items-table select{min-width:0;border:1px solid #b9c9d5;border-radius:7px;background:#fff;padding:8px;font:inherit;color:#173b5c}.fiscal-form-stack{display:grid;gap:10px}.fiscal-form-stack textarea{min-height:72px;resize:vertical}.fiscal-check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;background:#e8f0f6;border:1px solid #c7d6e1;border-radius:7px;padding:8px 10px;margin:8px 0 12px;font-size:.78rem!important}.fiscal-check.compact{margin:0;align-self:end}.fiscal-lookup-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin-bottom:12px}.fiscal-inline-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-bottom:8px}.fiscal-inline-add.narrow{grid-template-columns:180px auto;justify-content:start}.fiscal-inline-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}.fiscal-chip-list{display:flex;flex-wrap:wrap;gap:6px;min-height:34px;margin-bottom:12px}.fiscal-chip-list>span{display:inline-flex;align-items:center;gap:6px;background:#e8f0f6;border:1px solid #c6d5e0;border-radius:16px;padding:5px 8px;font-size:.72rem}.fiscal-chip-list button{border:0;background:transparent;color:#a53125;cursor:pointer;font-weight:900}.fiscal-chip-list small{color:#718397}.fiscal-item-entry{display:grid;grid-template-columns:minmax(220px,1fr) auto 95px 110px auto;gap:7px;align-items:end;margin-bottom:10px}.fiscal-items-table{border:1px solid #cad7e1;border-radius:8px;background:#fff;overflow:auto;max-height:390px}.fiscal-items-table table{width:100%;border-collapse:collapse;font-size:.77rem}.fiscal-items-table th{position:sticky;top:0;background:#e8f0f6;padding:7px;text-align:left}.fiscal-items-table td{border-top:1px solid #edf1f4;padding:6px}.fiscal-items-table .right{text-align:right}.fiscal-items-table td button{border:0;background:#fdecea;color:#a53125;border-radius:5px;cursor:pointer}.fiscal-items-table .empty{padding:45px;text-align:center;color:#718397}.fiscal-totals-line{display:flex;justify-content:space-between;gap:12px;background:#dfe9ef;border-radius:7px;padding:8px 10px;margin-top:8px}.fiscal-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.fiscal-summary-grid>div{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid #cedae3;border-radius:9px;padding:11px}.fiscal-summary-grid span{font-size:.66rem;text-transform:uppercase;color:#64748b;font-weight:800}.fiscal-summary-grid b{font-size:1rem;color:#173b5c}.fiscal-summary-grid .total{background:#0b3d8c;border-color:#0b3d8c}.fiscal-summary-grid .total span,.fiscal-summary-grid .total b{color:#fff}.fiscal-notice{background:#fff8e1;border:1px solid #e7c762;color:#755407;border-radius:8px;padding:10px;margin:10px 0;font-size:.76rem;line-height:1.45}.fiscal-details-card{display:grid;gap:4px;background:#fff;border:1px solid #d1dce4;border-radius:8px;padding:10px;margin-bottom:12px;font-size:.76rem}.disabled-area{opacity:.48;pointer-events:none}.admin-clean-form{padding:15px}.admin-check-list{display:grid;gap:7px}.admin-check-list label{display:flex;align-items:center;gap:7px;background:#eef3f6;border:1px solid #d2dde5;border-radius:7px;padding:8px;font-size:.78rem}.maintenance-safe{padding:16px}.maintenance-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#0b2646,#1556a8);color:#fff;border-radius:12px;padding:18px}.maintenance-hero small{opacity:.75}.maintenance-hero h2{margin:4px 0}.maintenance-hero p{margin:0;opacity:.82}.maintenance-hero>span{font-size:2.4rem}.maintenance-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.maintenance-kpis>div{background:#fff;border:1px solid #d3dee6;border-radius:9px;padding:10px;display:flex;flex-direction:column}.maintenance-kpis span{font-size:.65rem;text-transform:uppercase;color:#64748b}.maintenance-kpis b{font-size:1.25rem;color:#173b5c}.maintenance-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.maintenance-actions button{border:1px solid #bfcdd8;border-radius:7px;background:#fff;padding:9px 12px;font-weight:750;cursor:pointer}.maintenance-actions .primary{background:#0b3d8c;color:#fff;border-color:#0b3d8c}.maintenance-result{background:#fff;border:1px solid #d3dee6;border-radius:10px;padding:12px}.maintenance-result h3{margin:0 0 8px}.maintenance-checks{display:flex;flex-wrap:wrap;gap:7px}.maintenance-checks span{border-radius:16px;padding:5px 9px;font-size:.72rem}.maintenance-checks .ok{background:#e9f7ef;color:#17633e}.maintenance-checks .warn{background:#fff3e0;color:#99520a}.maintenance-alert,.maintenance-success{margin-top:10px;padding:9px;border-radius:7px}.maintenance-alert{background:#fdecea;color:#982c23}.maintenance-success{background:#e9f7ef;color:#17633e}
@media(max-width:900px){.fiscal-draft-layout{grid-template-columns:170px minmax(0,1fr)}.fiscal-form-grid.cols-4,.fiscal-form-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-item-entry{grid-template-columns:1fr 90px 100px}.fiscal-item-entry>button:first-of-type{grid-column:auto}.fiscal-summary-grid{grid-template-columns:repeat(2,1fr)}.maintenance-kpis{grid-template-columns:repeat(2,1fr)}}


/* ========================================================================== 
   V33.0.1 — Formulários organizados e títulos sem controles duplicados
   ========================================================================== */
.fiscal-draft-header{padding-right:16px!important}
.fiscal-draft-header>button{display:none!important}

/* Formulários administrativos e tributários */
.panel>form.grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;align-items:end!important;margin-bottom:0!important}
.panel>form.grid>.field{grid-column:span 3;min-width:0!important;width:100%!important}
.panel>form.grid>.field[style*="min-width:260px"]{grid-column:span 4}
.panel>form.grid>.field[style*="min-width:220px"]{grid-column:span 4}
.panel>form.grid>.field input,.panel>form.grid>.field select,.panel>form.grid>.field textarea{width:100%!important;min-width:0!important;box-sizing:border-box!important}
.panel>form.grid>div:not(.field){grid-column:span 2;display:flex!important;align-items:flex-end!important;gap:8px!important;min-width:0}
.panel>form.grid>div:not(.field) button{min-width:94px}

/* Assistentes fiscais */
.fiscal-form-grid{grid-auto-flow:row;align-items:end}
.fiscal-form-grid label,.fiscal-form-stack label,.fiscal-inline-add label,.fiscal-item-entry label{min-width:0}
.fiscal-form-grid input,.fiscal-form-grid select,.fiscal-form-stack input,.fiscal-form-stack select,.fiscal-form-stack textarea,.fiscal-inline-add input,.fiscal-item-entry input,.fiscal-item-entry select,.fiscal-lookup-row select{width:100%;box-sizing:border-box;min-height:42px}
.fiscal-form-grid.cols-4{grid-template-columns:repeat(12,minmax(0,1fr))}
.fiscal-form-grid.cols-4>label{grid-column:span 3}
.fiscal-form-grid.cols-4>label.span-2{grid-column:span 6}
.fiscal-form-grid.cols-4>label.span-3{grid-column:span 9}
.fiscal-form-grid.cols-3{grid-template-columns:repeat(12,minmax(0,1fr))}
.fiscal-form-grid.cols-3>label{grid-column:span 4}
.fiscal-form-grid.cols-3>label.span-2{grid-column:span 8}
.fiscal-form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fiscal-lookup-row{grid-template-columns:minmax(260px,1fr) auto auto auto;align-items:stretch}
.fiscal-lookup-row button{min-height:42px;white-space:nowrap}
.fiscal-item-entry{grid-template-columns:minmax(260px,1fr) auto 110px 130px auto;align-items:end}
.fiscal-inline-add{align-items:stretch}.fiscal-inline-add button{min-height:42px}

@media(max-width:1200px){
  .panel>form.grid>.field,.panel>form.grid>.field[style*="min-width:260px"],.panel>form.grid>.field[style*="min-width:220px"]{grid-column:span 6}
  .panel>form.grid>div:not(.field){grid-column:1/-1;justify-content:flex-start}
  .fiscal-form-grid.cols-4>label,.fiscal-form-grid.cols-4>label.span-2,.fiscal-form-grid.cols-4>label.span-3{grid-column:span 6}
  .fiscal-lookup-row{grid-template-columns:minmax(220px,1fr) auto auto}
  .fiscal-lookup-row button:last-child{grid-column:1/-1}
  .fiscal-item-entry{grid-template-columns:minmax(220px,1fr) auto 100px 115px}.fiscal-item-entry>button:last-child{grid-column:1/-1}
}
@media(max-width:760px){
  .panel>form.grid{grid-template-columns:1fr!important}.panel>form.grid>.field,.panel>form.grid>.field[style*="min-width"],.panel>form.grid>div:not(.field){grid-column:1/-1!important}
  .fiscal-form-grid.cols-4,.fiscal-form-grid.cols-3,.fiscal-form-grid.cols-2{grid-template-columns:1fr!important}.fiscal-form-grid.cols-4>label,.fiscal-form-grid.cols-4>label.span-2,.fiscal-form-grid.cols-4>label.span-3,.fiscal-form-grid.cols-3>label,.fiscal-form-grid.cols-3>label.span-2{grid-column:1/-1!important}
  .fiscal-lookup-row,.fiscal-item-entry,.fiscal-inline-add{grid-template-columns:1fr!important}.fiscal-lookup-row button,.fiscal-item-entry button,.fiscal-inline-add button{width:100%}
}

/* ========================================================================== 
   V33.0.1 — Ambientes, segurança, MFA e preparação para produção
   ========================================================================== */
.environment-badge{align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:.64rem;font-weight:900;letter-spacing:.08em;white-space:nowrap;border:1px solid transparent;box-shadow:0 2px 7px rgba(15,35,60,.1)}
.environment-badge.test{background:#fff3cd;color:#805b00;border-color:#e5c356}.environment-badge.production{background:#e5f8ed;color:#09663f;border-color:#8ed4ad}
.login-card>.environment-badge{margin:0 auto 14px}.topbar>.environment-badge{margin-left:10px}
.environment-test #appRoot::after,.environment-test #masterRoot::after{display:none!important;content:none}
.environment-critical-banner{position:fixed;left:0;right:0;top:0;z-index:40000;background:#a61b1b;color:#fff;padding:9px 14px;text-align:center;font-weight:800;box-shadow:0 4px 12px rgba(0,0,0,.25)}

.mfa-security-overlay{position:fixed;inset:0;z-index:35000;background:rgba(2,13,27,.76);backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px}
.mfa-security-card{width:min(720px,96vw);max-height:94vh;overflow:auto;background:#fff;border:1px solid #c9d6e2;border-radius:18px;box-shadow:0 35px 100px rgba(0,0,0,.45)}
.mfa-security-card>header{display:flex;gap:14px;align-items:center;padding:20px 22px;background:linear-gradient(135deg,#07192f,#123f70);color:#fff}
.mfa-security-card>header>span{width:50px;height:50px;border-radius:14px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:1.6rem}.mfa-security-card header small{font-size:.63rem;letter-spacing:.1em;opacity:.78}.mfa-security-card header h2{margin:3px 0 2px;font-size:1.25rem}.mfa-security-card header p{margin:0;opacity:.8;font-size:.78rem}
.mfa-security-body{padding:22px}.mfa-security-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;background:#f4f7fa;border-top:1px solid #dbe3ea}.mfa-security-card button{border:1px solid #c7d3dd;border-radius:8px;padding:10px 15px;font-weight:800;cursor:pointer}.mfa-security-card button.primary{background:#1556a8;color:#fff;border-color:#1556a8}.mfa-security-card button.ghost{background:#fff;color:#29465f}
.mfa-code-field{display:flex;flex-direction:column;gap:7px;font-size:.78rem;font-weight:800;color:#29465f}.mfa-code-field input{height:52px;border:2px solid #2365b7;border-radius:10px;padding:0 15px;font-size:1.35rem!important;font-weight:900;letter-spacing:.22em;text-align:center;color:#102e4b}.mfa-code-field small{min-height:18px;color:#a62e24;font-weight:700;letter-spacing:0}
.mfa-enrollment-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:center}.mfa-qr{border:1px solid #d5e0e8;border-radius:14px;background:#f8fafc;padding:14px;display:grid;place-items:center}.mfa-qr img{width:190px;height:190px;object-fit:contain}.mfa-enrollment-steps{display:grid;gap:13px}.mfa-enrollment-steps ol{margin:0;padding-left:20px;color:#425c70;line-height:1.7;font-size:.82rem}.mfa-enrollment-steps>label{display:flex;flex-direction:column;gap:5px;font-size:.72rem;font-weight:800;color:#425c70}.mfa-enrollment-steps code{display:block;padding:9px;border-radius:7px;background:#edf2f6;color:#173a58;word-break:break-all;font-size:.73rem}.mfa-blocking-icon{text-align:center;font-size:4rem;padding:24px}

.production-center{height:100%;overflow:auto;padding:18px;background:#f3f6fa;color:#18354f}.production-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;border-radius:16px;padding:23px 26px;color:#fff;box-shadow:0 16px 32px rgba(12,43,72,.18)}.production-hero.test{background:linear-gradient(135deg,#76500a,#d08a10)}.production-hero.production{background:linear-gradient(135deg,#073d31,#0f8061)}.production-eyebrow{font-size:.65rem;font-weight:900;letter-spacing:.14em;opacity:.8}.production-hero h1{margin:5px 0;font-size:1.55rem}.production-hero p{margin:0;opacity:.82}.production-score{min-width:160px;border-radius:13px;padding:14px 17px;text-align:center;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25)}.production-score strong{display:block;font-size:2rem}.production-score span{font-size:.7rem;font-weight:800}.production-score.ready{background:rgba(5,75,48,.35)}
.production-env-strip{display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding:9px 13px;margin:10px 0 14px;border-radius:9px;border:1px solid}.production-env-strip.test{background:#fff8df;color:#725100;border-color:#ead080}.production-env-strip.production{background:#eaf9f1;color:#0a6846;border-color:#9bd7b8}.production-env-strip b{font-size:.7rem;letter-spacing:.1em}.production-env-strip span{font-size:.7rem}
.production-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.production-status-card{display:flex;gap:11px;align-items:center;background:#fff;border:1px solid #d5e0e8;border-left:5px solid #8ba0b1;border-radius:12px;padding:12px;box-shadow:0 6px 15px rgba(22,48,70,.06);min-width:0}.production-status-card.ok{border-left-color:#169263}.production-status-card.warn{border-left-color:#d28a11}.production-status-card.error{border-left-color:#c63d32}.production-status-icon{width:40px;height:40px;border-radius:10px;background:#edf3f7;display:grid;place-items:center;font-size:1.2rem;flex:0 0 40px}.production-status-card>div{min-width:0}.production-status-card small{display:block;text-transform:uppercase;font-size:.57rem;color:#6a7e8f;font-weight:900}.production-status-card b{display:block;margin:2px 0;font-size:.91rem;color:#153958;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.production-status-card p{margin:0;font-size:.67rem;color:#6b7e8d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.production-columns{display:grid;grid-template-columns:1.25fr .75fr;gap:12px;margin-bottom:12px}.production-panel{background:#fff;border:1px solid #d4dfe7;border-radius:13px;box-shadow:0 7px 18px rgba(20,48,72,.06);padding:15px;margin-bottom:12px}.production-panel>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.production-panel header small{font-size:.57rem;color:#728596;font-weight:900;letter-spacing:.1em}.production-panel header h2{font-size:1rem;margin:2px 0;color:#173b5c}.production-panel button{border:1px solid #c4d1db;border-radius:7px;padding:8px 11px;font-weight:800;cursor:pointer}.production-panel button.primary{background:#1556a8;color:#fff;border-color:#1556a8}.production-panel button.ghost{background:#fff;color:#29465f}.production-panel button.danger{color:#a42d23;border-color:#e3b7b3}.production-panel button.wide{width:100%;margin-top:12px}.production-actions{display:flex;gap:7px;flex-wrap:wrap}
.production-checklist,.production-header-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.production-checklist li,.production-header-list li{display:flex;align-items:center;gap:9px;border:1px solid #e0e7ed;border-radius:8px;padding:8px 9px;background:#fafcfd}.production-checklist li>div{flex:1;min-width:0}.production-checklist b,.production-header-list b{font-size:.75rem;color:#29465f}.production-checklist small{display:block;font-size:.58rem;color:#748797}.production-check-icon{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-weight:900}.production-check-icon.ok{background:#e7f8ef;color:#0c704b}.production-check-icon.pending{background:#fff1df;color:#a35c06}.production-header-list li>span:first-child{width:22px;height:22px;border-radius:6px;background:#edf3f7;display:grid;place-items:center;color:#315b7b;font-weight:900}.production-header-list li>b{flex:1}
.production-pill{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:.56rem;font-weight:900;white-space:nowrap}.production-pill.ok{background:#e5f8ed;color:#087148}.production-pill.warn{background:#fff2dc;color:#9b5b0b}.production-pill.error{background:#fde9e7;color:#a12d24}.production-pill.neutral{background:#edf2f6;color:#5d7182}
.production-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.production-settings-grid .full{grid-column:1/-1}.production-switch{display:flex;align-items:flex-start;gap:10px;border:1px solid #d7e1e9;border-radius:10px;padding:11px;background:#fafcfd;cursor:pointer}.production-switch>input{display:none}.production-switch>span{width:38px;height:21px;border-radius:12px;background:#bdc9d2;position:relative;flex:0 0 38px;margin-top:1px}.production-switch>span::after{content:'';position:absolute;width:17px;height:17px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:.18s}.production-switch>input:checked+span{background:#18775a}.production-switch>input:checked+span::after{transform:translateX(17px)}.production-switch>input:disabled+span{opacity:.45}.production-switch div{min-width:0}.production-switch b{display:block;font-size:.76rem;color:#29465f}.production-switch small{display:block;margin-top:3px;font-size:.62rem;color:#718493;line-height:1.35}.production-switch.approval{background:#eef6ff;border-color:#c3d8ee}.production-field{display:flex;flex-direction:column;gap:5px;font-size:.7rem;font-weight:800;color:#405a6e}.production-field select,.production-field textarea{border:1px solid #bfcdd8;border-radius:8px;padding:9px;font:inherit;color:#173b5c;background:#fff}.production-field textarea{resize:vertical}.production-form-actions{display:flex;gap:8px;justify-content:flex-end}
.production-table-wrap{border:1px solid #d7e1e8;border-radius:9px;overflow:auto;max-height:330px}.production-table-wrap table{width:100%;border-collapse:collapse;font-size:.7rem}.production-table-wrap th{position:sticky;top:0;background:#eaf0f5;color:#456074;text-align:left;padding:8px;font-size:.59rem;text-transform:uppercase}.production-table-wrap td{border-top:1px solid #edf1f4;padding:8px;vertical-align:top}.production-table-wrap td b{display:block;color:#29465f}.production-table-wrap td small{display:block;color:#7b8c9a}.production-table-empty{text-align:center;color:#718493;padding:30px!important}.production-loading,.production-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#405a6e}.production-loading span{width:38px;height:38px;border:4px solid #d7e2ea;border-top-color:#1556a8;border-radius:50%;animation:production-spin .8s linear infinite}.production-empty>span{font-size:3rem}.production-empty h2{margin:0;color:#173b5c}.production-empty p{max-width:600px}.production-empty button{border:0;border-radius:8px;padding:10px 14px;background:#1556a8;color:#fff;font-weight:800;cursor:pointer}@keyframes production-spin{to{transform:rotate(360deg)}}

@media(max-width:1100px){.production-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.production-columns{grid-template-columns:1fr}.production-hero{align-items:flex-start}.production-score{min-width:130px}}
@media(max-width:720px){.environment-badge{display:none!important}.production-center{padding:8px}.production-hero{flex-direction:column;padding:18px}.production-score{width:100%}.production-status-grid{grid-template-columns:1fr}.production-settings-grid{grid-template-columns:1fr}.production-settings-grid .full{grid-column:1}.production-panel>header{align-items:flex-start;flex-direction:column}.mfa-enrollment-grid{grid-template-columns:1fr}.mfa-qr img{width:165px;height:165px}}
.production-readonly-notice{margin:-5px 0 12px;padding:9px 12px;border:1px solid #b7c8d7;border-radius:8px;background:#edf4fa;color:#355b77;font-size:.72rem;font-weight:800}


/* ========================================================================== 
   V33.4.0 — Cabeçalho, cadastros padronizados e configuração DFe segura
   ========================================================================== */
.topbar .usuario{max-width:min(460px,38vw)!important;overflow:visible!important;flex-shrink:1;min-width:0}
.topbar .usuario>span:last-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e6eef8;font-weight:650}
@media(min-width:1041px){.topbar-actions{flex-shrink:0}.topbar .usuario{width:auto!important}}

.standard-register-screen{background:#f5f7fb;min-height:100%;display:flex;flex-direction:column;font-family:'Segoe UI',sans-serif;padding:18px;gap:14px}
.standard-register-heading{background:transparent!important;color:#172033!important;padding:0!important;display:flex;align-items:center;justify-content:space-between;border:0!important;min-height:54px}
.standard-register-heading>div{display:flex;align-items:center;gap:12px}.standard-register-heading>div>span:last-child{font-size:1.35rem!important;font-weight:800!important}
.standard-register-search{padding:14px!important;display:flex;justify-content:flex-start!important;background:#fff;border:1px solid #d9e2ec;border-radius:13px;box-shadow:0 5px 18px rgba(15,41,70,.06)}
.standard-register-search>div{max-width:760px!important;width:100%!important}.standard-register-search input{background:#fff!important;border:1px solid #bdcad8!important;border-radius:9px!important;min-height:42px;padding:0 13px!important}.standard-register-search button{min-height:42px;border-radius:9px!important;background:#174ea6!important}
.standard-register-content{flex:1;padding:0!important;overflow:auto}.standard-register-content>div{gap:9px!important}.standard-register-content [data-edit-adm],.standard-register-content [data-edit-pessoa]{background:#fff!important;border:1px solid #dce4ed!important;border-left:4px solid #174ea6!important;border-radius:10px;box-shadow:0 3px 12px rgba(15,41,70,.05);padding:13px 15px!important}
.standard-register-footer{background:transparent!important;padding:0!important;display:flex;justify-content:flex-end;align-items:center;gap:8px!important}.standard-register-footer>[data-action="adicionar"]{background:#174ea6!important;border-radius:9px;padding:10px 15px!important}.standard-register-footer>div[onclick]{display:none!important}
.standard-profile-screen{padding:18px 18px 72px}.standard-profile-screen>h1{margin:0;color:#172033}.standard-profile-screen>.subtitle{margin:5px 0 16px}.standard-profile-screen>.panel{border-radius:13px;border:1px solid #d9e2ec;box-shadow:0 5px 18px rgba(15,41,70,.06)}

.dfe-config-page{padding:18px;background:#f5f7fb;min-height:100%}.dfe-config-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 21px;border-radius:15px;background:linear-gradient(135deg,#0b2d57,#174ea6);color:#fff;box-shadow:0 12px 30px rgba(11,45,87,.2);margin-bottom:16px}.dfe-config-hero small{font-size:.65rem;letter-spacing:.11em;color:#bed4f1;font-weight:800}.dfe-config-hero h2{margin:3px 0 4px;font-size:1.42rem}.dfe-config-hero p{margin:0;color:#d8e6f6;font-size:.8rem}.dfe-environment-badge{padding:8px 12px;border-radius:999px;background:#fff5cf;color:#825500;border:1px solid #f2cc59;font-size:.7rem;font-weight:850;white-space:nowrap}
.dfe-config-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:14px}.dfe-config-card{background:#fff;border:1px solid #d9e2ec;border-radius:14px;padding:17px;box-shadow:0 5px 18px rgba(15,41,70,.06)}.dfe-card-title{display:flex;align-items:center;gap:10px;margin-bottom:13px}.dfe-card-title>span{width:40px;height:40px;border-radius:11px;background:#e9f1ff;display:grid;place-items:center;font-size:1.15rem}.dfe-card-title h3{margin:0;color:#172033;font-size:1rem}.dfe-card-title small{display:block;color:#6b7d90;margin-top:2px;font-size:.68rem}
.dfe-status-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;margin-bottom:13px;font-size:.73rem}.dfe-status-line b{font-size:.78rem}.dfe-status-line span{color:#617386;text-align:right}.dfe-status-line.pending{background:#fff7e5;border:1px solid #f5ce70;color:#825500}.dfe-status-line.ok{background:#eaf8f1;border:1px solid #94d5b5;color:#126343}
.dfe-metadata{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}.dfe-metadata>div{padding:9px 10px;border-radius:9px;background:#f7f9fc;border:1px solid #e1e7ef;min-width:0}.dfe-metadata dt{font-size:.59rem;text-transform:uppercase;color:#6b7d90;font-weight:800}.dfe-metadata dd{margin:3px 0 0;color:#172033;font-size:.76rem;font-weight:700;overflow-wrap:anywhere}.dfe-secure-flow{padding:12px;border-radius:10px;background:#eef5ff;border:1px solid #c8daf3;color:#23435f;font-size:.72rem;line-height:1.45}.dfe-secure-flow b{color:#123d68}.dfe-secure-flow ol{margin:7px 0 0;padding-left:19px}.dfe-secure-flow li+li{margin-top:3px}
.dfe-integration-list{display:grid;gap:7px}.dfe-integration-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #e1e7ef;border-radius:9px;background:#f9fbfd;font-size:.72rem}.dfe-integration-list b{font-size:.65rem;padding:3px 7px;border-radius:999px}.dfe-integration-list b.ok{background:#def4e9;color:#126343}.dfe-integration-list b.pending{background:#fff0d2;color:#8a5600}.dfe-readonly-field{margin-top:13px;padding:11px;border-radius:10px;background:#f0f4f8;border:1px solid #d7e0e9}.dfe-readonly-field span,.dfe-readonly-field small{display:block;color:#65788b;font-size:.65rem}.dfe-readonly-field strong{display:block;color:#123d68;margin:3px 0;font-size:.9rem}
.dfe-document-settings{padding:17px;background:#f5f7fb;min-height:100%}.dfe-document-intro{background:#fff;border:1px solid #d9e2ec;border-radius:12px;padding:13px 15px;margin-bottom:12px}.dfe-document-intro h3{margin:0;color:#172033}.dfe-document-intro p{margin:4px 0 0;color:#6b7d90;font-size:.73rem}.dfe-document-settings .fiscal-form-grid{background:#fff;border:1px solid #d9e2ec;border-radius:12px;padding:14px}.dfe-document-settings input,.dfe-document-settings select{min-height:42px!important}
@media(max-width:980px){.dfe-config-grid{grid-template-columns:1fr}.dfe-metadata{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.dfe-config-hero{align-items:flex-start;flex-direction:column}.dfe-metadata{grid-template-columns:1fr}.standard-register-screen{padding:10px}.topbar .usuario{max-width:40px!important}}

/* ========================================================================== 
   V33.4.0 — Central de Homologação Fiscal
   ========================================================================== */
.homolog-center{padding:20px;display:grid;gap:16px;background:#f4f7fb;min-height:100%;color:#16283c}.homolog-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;border-radius:16px;background:linear-gradient(135deg,#0b2b52,#135493);color:#fff;box-shadow:0 14px 34px rgba(10,42,79,.18)}.homolog-hero span{font-size:.68rem;font-weight:850;letter-spacing:.12em;opacity:.78}.homolog-hero h1{margin:5px 0 4px;font-size:1.65rem}.homolog-hero p{margin:0;opacity:.84}.homolog-score{min-width:135px;text-align:center;padding:13px 18px;border-radius:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.17)}.homolog-score strong{display:block;font-size:1.7rem}.homolog-score span{font-size:.65rem;letter-spacing:0}.homolog-warning{display:flex;align-items:center;gap:14px;padding:12px 15px;border:1px solid #f3c065;background:#fff7e8;border-radius:10px;color:#75420b}.homolog-warning b{white-space:nowrap}.homolog-warning span{font-size:.78rem}.homolog-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.homolog-metric{background:#fff;border:1px solid #d9e3ed;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 12px rgba(16,48,78,.05)}.homolog-metric small{text-transform:uppercase;font-size:.62rem;color:#6b7e91;font-weight:800}.homolog-metric b{font-size:1.18rem;color:#123d68}.homolog-metric span{font-size:.7rem;color:#718194}.homolog-metric.ok{border-left:4px solid #15835d}.homolog-metric.warn{border-left:4px solid #d7841c}.homolog-columns{display:grid;grid-template-columns:1.03fr .97fr;gap:16px}.homolog-panel{background:#fff;border:1px solid #d7e1eb;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(13,45,75,.06)}.homolog-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid #e0e7ee;background:#fbfcfe}.homolog-panel header small{font-size:.61rem;color:#667b8e;font-weight:850;letter-spacing:.1em}.homolog-panel h2{font-size:1rem;margin:3px 0 0}.homolog-panel header>div:last-child{display:flex;gap:6px}.homolog-checklist{list-style:none;margin:0;padding:8px}.homolog-checklist li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border-bottom:1px solid #edf1f5}.homolog-checklist li:last-child{border-bottom:0}.homolog-checklist b,.homolog-checklist small{display:block}.homolog-checklist b{font-size:.78rem}.homolog-checklist small{font-size:.65rem;color:#738497;margin-top:2px}.homolog-checklist button{border:0;background:#edf4fb;color:#174d7d;border-radius:7px;padding:7px 10px;font-weight:750;cursor:pointer}.homolog-check-icon{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-weight:900}.homolog-check-icon.ok{background:#e4f7ef;color:#08724f}.homolog-check-icon.pending{background:#fff1dc;color:#b96308}.homolog-form{padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.homolog-form label{display:flex;flex-direction:column;gap:5px;font-size:.68rem;font-weight:800;color:#385167}.homolog-form input,.homolog-form select,.homolog-form textarea{width:100%;box-sizing:border-box;border:1px solid #c6d3df;border-radius:8px;background:#fff;padding:10px 11px;font:inherit;font-weight:500;color:#173750}.homolog-form input:focus,.homolog-form select:focus,.homolog-form textarea:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.11)}.homolog-form label small{font-weight:500;color:#75869a}.homolog-form .full{grid-column:1/-1}.homolog-form-actions{display:flex;gap:8px;justify-content:flex-end}.homolog-table-wrap{overflow:auto;max-height:390px}.homolog-table-wrap table{width:100%;border-collapse:collapse}.homolog-table-wrap th{position:sticky;top:0;background:#eef3f7;color:#587084;text-transform:uppercase;font-size:.6rem;text-align:left;padding:9px 11px;z-index:1}.homolog-table-wrap td{padding:10px 11px;border-top:1px solid #e7edf2;font-size:.72rem;vertical-align:top}.homolog-table-wrap td b,.homolog-table-wrap td small{display:block}.homolog-table-wrap td small{color:#7a8a98;margin-top:3px}.homolog-issue{display:inline-block;margin:2px 3px 2px 0;padding:3px 7px;border-radius:12px;background:#fff0dd;color:#9c5208;font-size:.61rem;font-weight:750}.homolog-pill{display:inline-flex;gap:4px;align-items:center;padding:4px 7px;border-radius:12px;font-size:.61rem;font-weight:800;white-space:nowrap}.homolog-pill.ok{background:#e5f7ef;color:#087451}.homolog-pill.pending{background:#fff0dd;color:#a65808}.homolog-empty{padding:34px;text-align:center;color:#758697}.homolog-empty.success{color:#087451;background:#f1fbf7}.homolog-detail-overlay{position:fixed;inset:0;z-index:26000;background:rgba(4,18,35,.55);display:flex;align-items:center;justify-content:center;padding:18px}.homolog-detail{width:min(620px,94vw);max-height:82vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 26px 80px rgba(0,0,0,.35)}.homolog-detail header{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;background:linear-gradient(135deg,#0b2b52,#135493);color:#fff}.homolog-detail header small{font-size:.6rem;letter-spacing:.1em}.homolog-detail h3{margin:3px 0 0}.homolog-detail header button{border:0;background:rgba(255,255,255,.12);color:#fff;width:32px;height:32px;border-radius:8px;cursor:pointer}.homolog-detail ul{margin:15px;padding:0 18px 0 34px}.homolog-detail li{margin:7px 0;color:#8a3d0b}.homolog-detail .fiscal-notice{margin:15px}.homolog-detail-success{margin:16px;padding:14px;border-radius:9px;background:#eaf9f2;color:#087451;font-weight:750}
@media(max-width:1050px){.homolog-columns{grid-template-columns:1fr}.homolog-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.homolog-center{padding:10px}.homolog-hero{align-items:flex-start;flex-direction:column}.homolog-score{width:100%;box-sizing:border-box}.homolog-metrics{grid-template-columns:1fr}.homolog-form{grid-template-columns:1fr}.homolog-form .full{grid-column:auto}.homolog-panel>header{align-items:flex-start;flex-direction:column}.homolog-warning{align-items:flex-start;flex-direction:column}}

/* ======================================================================
   V33.4.0 — Agente Fiscal Local
   ====================================================================== */
.fiscal-agent-center{padding:20px;display:grid;gap:16px;background:#f4f7fb;min-height:100%;color:#16283c}.agent-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;border-radius:16px;background:linear-gradient(135deg,#082846,#0c5f75);color:#fff;box-shadow:0 14px 34px rgba(5,44,63,.2)}.agent-hero small{font-size:.68rem;font-weight:850;letter-spacing:.12em;opacity:.8}.agent-hero h1{margin:5px 0 4px;font-size:1.65rem}.agent-hero p{margin:0;opacity:.84}.agent-hero-status{min-width:150px;display:flex;justify-content:flex-end}.agent-warning,.agent-error{display:flex;align-items:center;gap:14px;padding:12px 15px;border-radius:10px}.agent-warning{border:1px solid #f3c065;background:#fff7e8;color:#75420b}.agent-error{border:1px solid #e99a9a;background:#fff0f0;color:#8a2525}.agent-warning b,.agent-error b{white-space:nowrap}.agent-warning span,.agent-error span{font-size:.78rem}.agent-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.agent-metric{background:#fff;border:1px solid #d9e3ed;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 12px rgba(16,48,78,.05)}.agent-metric small{text-transform:uppercase;font-size:.62rem;color:#6b7e91;font-weight:800}.agent-metric b{font-size:1.18rem;color:#123d68}.agent-metric span{font-size:.7rem;color:#718194}.agent-metric.ok{border-left:4px solid #15835d}.agent-metric.warn{border-left:4px solid #d7841c}.agent-metric.danger{border-left:4px solid #c43f3f}.agent-columns{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.agent-panel{background:#fff;border:1px solid #d7e1eb;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(13,45,75,.06)}.agent-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid #e0e7ee;background:#fbfcfe}.agent-panel header small{font-size:.61rem;color:#667b8e;font-weight:850;letter-spacing:.1em}.agent-panel h2{font-size:1rem;margin:3px 0 0}.agent-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:14px;font-size:.66rem;font-weight:850;white-space:nowrap}.agent-badge.ok{background:#dff7eb;color:#08734f}.agent-badge.pending{background:#fff0dd;color:#a65a08}.agent-device-card{padding:16px}.agent-device-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.agent-device-card h3{margin:3px 0 0;font-size:1rem}.agent-device-card dl,.agent-certificate-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.agent-device-card dl>div,.agent-certificate-summary dl>div{padding:9px 10px;border:1px solid #e3eaf0;border-radius:8px;background:#fafcfe}.agent-device-card dt,.agent-certificate-summary dt{font-size:.6rem;text-transform:uppercase;color:#6c7f91;font-weight:800}.agent-device-card dd,.agent-certificate-summary dd{margin:4px 0 0;font-size:.72rem;font-weight:700;overflow-wrap:anywhere}.agent-device-status{margin-top:12px;padding:11px 12px;border-radius:8px;background:#eef6fb;display:flex;flex-direction:column;gap:4px}.agent-device-status b{font-size:.74rem;color:#174a70}.agent-device-status span{font-size:.67rem;color:#9c2f2f}.agent-certificate-summary{margin-top:13px;padding:13px;border:1px solid #d9e5ee;border-radius:10px;background:#f8fbfd}.agent-certificate-summary>div{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:.76rem;font-weight:800}.agent-install-steps{padding:16px 20px 7px}.agent-install-steps ol{margin:0;padding-left:22px}.agent-install-steps li{margin:8px 0;font-size:.75rem;line-height:1.45;color:#40586c}.agent-install-steps code{background:#e9f0f6;border-radius:4px;padding:2px 5px;color:#174e78}.agent-actions{display:flex;gap:8px;padding:8px 16px 14px;flex-wrap:wrap}.agent-pairing-box{margin:0 16px 14px;padding:14px;border:1px dashed #2e7ea0;border-radius:10px;background:#eff9fd;display:grid;gap:7px;text-align:center}.agent-pairing-box small{font-size:.61rem;color:#4d6c7e;font-weight:850;letter-spacing:.08em}.agent-pairing-box strong{font-size:1.85rem;letter-spacing:.16em;color:#0b5471}.agent-pairing-box span{font-size:.68rem;color:#547081}.agent-pairing-box button{justify-self:center}.agent-security-note{margin:0 16px 16px;padding:11px 12px;border-radius:8px;background:#edf8f2;color:#176044;display:flex;flex-direction:column;gap:4px}.agent-security-note b{font-size:.73rem}.agent-security-note span{font-size:.66rem}.agent-empty{padding:44px 20px;text-align:center;color:#738697;display:flex;flex-direction:column;gap:7px}.agent-empty b{color:#36536a}.agent-empty.compact{padding:27px}.agent-table-wrap{overflow:auto;max-height:390px}.agent-table-wrap table{width:100%;border-collapse:collapse}.agent-table-wrap th{position:sticky;top:0;background:#eef3f7;color:#587084;text-transform:uppercase;font-size:.6rem;text-align:left;padding:9px 11px;z-index:1}.agent-table-wrap td{padding:10px 11px;border-top:1px solid #e7edf2;font-size:.72rem;vertical-align:top}.agent-table-wrap td b,.agent-table-wrap td small{display:block}.agent-table-wrap td small{color:#7a8a98;margin-top:3px}.agent-job-status{display:inline-flex;padding:4px 7px;border-radius:12px;font-size:.61rem;font-weight:800}.agent-job-status.pending,.agent-job-status.processing{background:#fff0dd;color:#a65808}.agent-job-status.success{background:#e5f7ef;color:#087451}.agent-job-status.error,.agent-job-status.rejected{background:#ffe8e8;color:#a62e2e}.agent-table-hint{font-size:.66rem;color:#7b8c9b}.homolog-static-value{padding:10px 11px;border:1px solid #c6d3df;border-radius:8px;background:#f2f6f9;color:#173750;font-weight:700}
@media(max-width:1050px){.agent-columns{grid-template-columns:1fr}.agent-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.fiscal-agent-center{padding:10px}.agent-hero{align-items:flex-start;flex-direction:column}.agent-hero-status{justify-content:flex-start}.agent-metrics{grid-template-columns:1fr}.agent-device-card dl,.agent-certificate-summary dl{grid-template-columns:1fr}.agent-panel>header{align-items:flex-start;flex-direction:column}.agent-warning,.agent-error{align-items:flex-start;flex-direction:column}}

/* V33.4.0 — Teste de comunicação com a SEFAZ */
.agent-sefaz-test{padding:16px;display:grid;gap:11px}.agent-sefaz-test p{margin:0;color:#526a7d;font-size:.74rem;line-height:1.5}.agent-sefaz-test label{display:grid;gap:5px;font-size:.66rem;font-weight:800;color:#385167}.agent-sefaz-test select{width:100%;min-height:41px;border:1px solid #c7d5e1;border-radius:8px;background:#fff;padding:8px 10px;color:#173750;font:inherit}.agent-sefaz-test button{justify-self:start}.agent-inline-warning{color:#a45b0b;font-size:.66rem;font-weight:750}.agent-sefaz-state{margin:0 16px 12px;padding:13px 14px;border-radius:10px;border:1px solid #d8e3ec;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.agent-sefaz-state>div{display:flex;flex-direction:column;gap:4px}.agent-sefaz-state small{font-size:.59rem;font-weight:850;letter-spacing:.09em}.agent-sefaz-state b{font-size:.78rem}.agent-sefaz-state span,.agent-sefaz-state time{font-size:.65rem}.agent-sefaz-state time{white-space:nowrap}.agent-sefaz-state.neutral{background:#f6f9fb;color:#496276}.agent-sefaz-state.pending{background:#fff6e8;border-color:#efca88;color:#89500d}.agent-sefaz-state.ok{background:#eaf9f2;border-color:#9bd8bd;color:#096b4b}.agent-sefaz-state.warning{background:#fff2e1;border-color:#e7b66f;color:#8b4a08}.agent-sefaz-state.error{background:#fff0f0;border-color:#e7a3a3;color:#8d2929}
@media(max-width:680px){.agent-sefaz-state{flex-direction:column}.agent-sefaz-state time{white-space:normal}.agent-sefaz-test button{width:100%}}

/* ======================================================================
   V33.5.0 — Primeira NF-e modelo 55 em homologação
   ====================================================================== */
.fiscal-company-panel{overflow:visible}.agent-inline-list{margin:14px 16px 0;padding:11px 13px;border-radius:9px;display:flex;align-items:flex-start;gap:7px;font-size:.7rem}.agent-inline-list.warning{background:#fff6e7;border:1px solid #efc77e;color:#7c4b0d}.agent-inline-list b{white-space:nowrap}.agent-company-grid{padding:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.agent-company-grid label,.agent-pilot-grid label{display:grid;gap:5px;color:#3d556a;font-size:.66rem;font-weight:800}.agent-company-grid input,.agent-company-grid select,.agent-pilot-grid select{width:100%;box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid #c7d5e1;border-radius:8px;background:#fff;color:#173750;font:inherit;outline:none}.agent-company-grid input:focus,.agent-company-grid select:focus,.agent-pilot-grid select:focus{border-color:#3283b4;box-shadow:0 0 0 3px rgba(50,131,180,.13)}.agent-company-grid .span-2{grid-column:span 2}.agent-company-actions{display:flex;justify-content:flex-end;padding-top:3px}.agent-company-actions button{min-width:180px}.agent-nfe-pilot{padding-bottom:16px}.agent-pilot-scope{margin:16px 16px 0;padding:13px 14px;border-radius:10px;background:#edf7fb;border:1px solid #b9dce8;display:flex;flex-direction:column;gap:4px;color:#174d65}.agent-pilot-scope b{font-size:.76rem}.agent-pilot-scope span{font-size:.68rem;line-height:1.5}.agent-pilot-grid{padding:16px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr);gap:14px;align-items:stretch}.agent-pilot-summary{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;padding:12px 14px;border:1px solid #d8e2eb;border-radius:9px;background:#f8fafc;align-content:center}.agent-pilot-summary span{font-size:.62rem;text-transform:uppercase;color:#758797;font-weight:800}.agent-pilot-summary b{font-size:.72rem;color:#193c5b;text-align:right;overflow-wrap:anywhere}.agent-validation-block{margin:0 16px 12px;padding:12px 14px;border-radius:9px;display:flex;flex-direction:column;gap:5px}.agent-validation-block b{font-size:.74rem}.agent-validation-block span,.agent-validation-block li{font-size:.68rem;line-height:1.45}.agent-validation-block ul{margin:3px 0 0;padding-left:18px;max-height:180px;overflow:auto}.agent-validation-block.ok{background:#e9f8f1;border:1px solid #a6dac4;color:#096849}.agent-validation-block.warning{background:#fff5e5;border:1px solid #edc27a;color:#80500d}.agent-validation-block.error{background:#fff0f0;border:1px solid #e6a0a0;color:#872b2b}.agent-confirmation{margin:0 16px 12px;padding:12px 14px;border:1px solid #d5e0e9;border-radius:9px;background:#fafcfd;display:flex;align-items:flex-start;gap:10px;color:#3b5367;font-size:.7rem;line-height:1.45;cursor:pointer}.agent-confirmation input{margin-top:2px;accent-color:#176da0}.agent-nfe-pilot>.danger-safe{margin:0 16px;min-height:42px}.agent-nfe-pilot>.danger-safe:not(:disabled){background:linear-gradient(135deg,#0b6c94,#0b5681);border-color:#0b5681}.agent-nfe-pilot>.agent-inline-warning{display:block;margin:8px 16px 0}.agent-nfe-result{margin:14px 16px 0;padding:14px;border-radius:10px;border:1px solid #d7e2ea;display:grid;gap:5px}.agent-nfe-result small{font-size:.6rem;letter-spacing:.09em;font-weight:850}.agent-nfe-result b{font-size:.8rem}.agent-nfe-result span,.agent-nfe-result time{font-size:.67rem;line-height:1.45;overflow-wrap:anywhere}.agent-nfe-result.neutral{background:#f7f9fb;color:#4b6477}.agent-nfe-result.pending{background:#fff6e7;border-color:#edc47e;color:#82500b}.agent-nfe-result.ok{background:#e8f8f0;border-color:#9fd8bc;color:#086a49}.agent-nfe-result.warning{background:#fff1df;border-color:#e6b36c;color:#884a08}.agent-nfe-result.error{background:#fff0f0;border-color:#e4a1a1;color:#8c2929}.agent-download-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}.agent-download-actions button{background:#fff}.agent-device-status.warning{background:#fff3df}.agent-device-status.warning b,.agent-device-status.warning span{color:#85500e}
@media(max-width:1050px){.agent-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-pilot-grid{grid-template-columns:1fr}}
@media(max-width:680px){.agent-company-grid{grid-template-columns:1fr}.agent-company-grid .span-2{grid-column:auto}.agent-company-actions{justify-content:stretch}.agent-company-actions button,.agent-nfe-pilot>.danger-safe{width:100%}.agent-inline-list{flex-direction:column}.agent-pilot-summary{grid-template-columns:1fr}.agent-pilot-summary b{text-align:left}.agent-confirmation{align-items:flex-start}.agent-download-actions button{flex:1}}

/* V33.6.0 — seletores pesquisáveis de UF e município (catálogo IBGE local) */
.ibge-combobox-host{position:relative;min-width:0}
.ibge-combobox-host>input[role="combobox"]{padding-right:34px!important;background-image:linear-gradient(45deg,transparent 50%,#60708a 50%),linear-gradient(135deg,#60708a 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.ibge-combobox-list{display:none;position:absolute;z-index:10050;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid #b8c5d8;border-radius:8px;box-shadow:0 12px 28px rgba(15,39,74,.18);padding:5px}
.ibge-combobox-list.open{display:block}
.ibge-combobox-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:#fff;color:#10233f;padding:9px 10px;border-radius:6px;text-align:left;cursor:pointer;font:inherit}
.ibge-combobox-option:hover,.ibge-combobox-option.active{background:#eaf2ff}
.ibge-combobox-option b{font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibge-combobox-option span{font-size:.73rem;color:#66748a;white-space:nowrap}
.ibge-combobox-empty{padding:12px;color:#778399;font-size:.82rem;text-align:center}
.ibge-code-readonly{background:#eef3f9!important;color:#33445d!important;cursor:not-allowed}
.ibge-source-note{display:block;margin-top:5px;color:#68758a;font-size:.7rem}

/* V34.0.1 — organização profissional do assistente de produção fiscal */
.production-activation-panel{overflow:visible}
.production-activation-panel>header{align-items:flex-start}
.production-panel-subtitle{margin:5px 0 0;max-width:760px;color:#6b7e91;font-size:.7rem;line-height:1.45;font-weight:500}
.production-activation-alert{margin:16px 16px 0;padding:14px 16px;border:1px solid #efc270;border-radius:11px;background:#fff7e8;color:#75420b;display:flex;align-items:flex-start;gap:12px}
.production-activation-alert.is-active{border-color:#a7d9c1;background:#eaf8f1;color:#116244}
.production-alert-icon{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:rgba(180,83,9,.12);font-weight:950;font-size:.9rem}
.production-activation-alert.is-active .production-alert-icon{background:rgba(8,116,81,.12)}
.production-activation-alert>div:last-child{display:grid;gap:3px}.production-activation-alert b{font-size:.78rem}.production-activation-alert span{font-size:.68rem;line-height:1.45}
.production-activation-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px;padding:16px;align-items:start}
.production-config-form{display:grid;gap:13px;min-width:0}
.production-step-card,.production-checklist-card,.production-final-card{border:1px solid #d8e3ec;border-radius:12px;background:#fff;box-shadow:0 4px 12px rgba(16,48,78,.045)}
.production-step-card{padding:15px}
.production-step-card>header{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #e8eef3}
.production-step-card>header>span{width:27px;height:27px;flex:0 0 27px;border-radius:8px;display:grid;place-items:center;background:#e7f0fb;color:#12589c;font-size:.75rem;font-weight:950}
.production-step-card>header>div{display:grid;gap:3px}.production-step-card>header b{font-size:.78rem;color:#173b5c}.production-step-card>header small{font-size:.64rem;color:#748696;line-height:1.4}
.production-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.production-form-grid.compact{gap:8px}.production-form-grid .full{grid-column:1/-1}
.production-form-field{display:grid;gap:5px;min-width:0}.production-form-field>span{font-size:.63rem;font-weight:850;color:#435e73}.production-form-field>small{font-size:.56rem;color:#80909e;line-height:1.35}
.production-form-field input,.production-form-field textarea{width:100%;box-sizing:border-box;border:1px solid #c7d5e1;border-radius:8px;background:#fff;color:#173750;padding:9px 10px;min-height:40px;font:inherit;outline:none}
.production-form-field textarea{resize:vertical;line-height:1.45}.production-form-field input:focus,.production-form-field textarea:focus{border-color:#2f7fb4;box-shadow:0 0 0 3px rgba(47,127,180,.12)}
.production-form-field input:disabled,.production-form-field textarea:disabled{background:#f1f5f8;color:#6b7e8e}
.production-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.production-document-card{border:1px solid #d5e1eb;border-radius:10px;background:#f9fbfd;padding:12px;display:grid;gap:10px;min-width:0}
.production-document-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.production-document-title>div{display:grid;gap:1px}.production-document-title strong{font-size:.88rem;color:#123d68}.production-document-title small{font-size:.57rem;color:#7a8b99}
.production-mini-switch{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:.59rem;color:#496277}.production-mini-switch input{display:none}.production-mini-switch>span{width:31px;height:18px;border-radius:10px;background:#bdc8d1;position:relative}.production-mini-switch>span::after{content:'';position:absolute;width:14px;height:14px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.17s}.production-mini-switch input:checked+span{background:#17775a}.production-mini-switch input:checked+span::after{transform:translateX(13px)}.production-mini-switch input:disabled+span{opacity:.48}.production-mini-switch b{font-size:.58rem}
.production-next-number{padding:7px 9px;border-radius:7px;background:#eaf2f9;color:#49657a;font-size:.61rem}.production-next-number b{color:#0c5688}
.production-confirmation-list{display:grid;gap:8px}.production-confirmation-list>label{display:flex;align-items:flex-start;gap:10px;padding:10px 11px;border:1px solid #dae4ec;border-radius:9px;background:#fafcfd;cursor:pointer}.production-confirmation-list input{margin-top:3px;accent-color:#176da0}.production-confirmation-list span{display:grid;gap:2px}.production-confirmation-list b{font-size:.68rem;color:#29465f}.production-confirmation-list small{font-size:.59rem;color:#778a99;line-height:1.4}.production-note{margin-top:11px}
.production-save-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;border:1px solid #c9dbea;border-radius:11px;background:#eef6fc}.production-save-bar>div{display:grid;gap:2px}.production-save-bar b{font-size:.7rem;color:#245170}.production-save-bar small{font-size:.59rem;color:#6e8496}.production-save-bar button{min-width:220px;min-height:42px}
.production-readiness-column{display:grid;gap:13px;position:sticky;top:10px;min-width:0}
.production-checklist-card{overflow:hidden}.production-checklist-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;border-bottom:1px solid #e2e9ef;background:#f8fbfd}.production-checklist-card>header>div{display:grid;gap:3px}.production-checklist-card header small{font-size:.56rem;letter-spacing:.08em;font-weight:900;color:#6f8292}.production-checklist-card h3,.production-final-card h3{font-size:.82rem;margin:0;color:#173b5c}.production-check-count{display:inline-grid;place-items:center;min-width:40px;height:27px;padding:0 7px;border-radius:14px;background:#e6f4ec;color:#0b6c4c;font-size:.66rem;font-weight:900}.production-checklist-card ul{list-style:none;padding:0 15px;margin:0}.production-checklist-card li:last-child{border-bottom:0!important}
.production-final-card{padding:15px;display:grid;gap:11px;background:linear-gradient(180deg,#fbfdff,#f3f8fc);border-color:#bfd6e8}.production-final-card.danger{background:linear-gradient(180deg,#fffdfb,#fff5ee);border-color:#e7c1a6}.production-final-icon{width:37px;height:37px;border-radius:10px;background:#e4eff9;display:grid;place-items:center;font-size:1rem}.production-final-card.danger .production-final-icon{background:#fde8da}.production-final-card>div:nth-child(2){display:grid;gap:4px}.production-final-card>div:nth-child(2)>small{font-size:.55rem;letter-spacing:.08em;font-weight:900;color:#6b8193}.production-final-card p{margin:0;color:#687d8e;font-size:.62rem;line-height:1.45}.production-final-card button{min-height:42px}.production-final-hint{text-align:center;color:#83929e;font-size:.56rem}.production-security-note{margin-top:0}
@media(max-width:1150px){.production-activation-layout{grid-template-columns:1fr}.production-readiness-column{position:static;grid-template-columns:minmax(0,1fr) minmax(300px,.7fr)}.production-checklist-card{grid-row:span 2}}
@media(max-width:820px){.production-document-grid,.production-readiness-column{grid-template-columns:1fr}.production-checklist-card{grid-row:auto}.production-save-bar{align-items:stretch;flex-direction:column}.production-save-bar button{width:100%;min-width:0}}
@media(max-width:620px){.production-activation-layout{padding:10px}.production-activation-alert{margin:10px 10px 0}.production-form-grid{grid-template-columns:1fr}.production-form-grid .full{grid-column:auto}.production-step-card{padding:12px}.production-panel-subtitle{display:none}}

/* V34.0.3 — navegação colorida por sub-abas no Agente Fiscal */
.agent-tab-navigation{position:sticky;top:0;z-index:12;display:flex;gap:7px;padding:8px;background:rgba(244,247,251,.96);border:1px solid #d7e1eb;border-radius:13px;overflow-x:auto;box-shadow:0 6px 18px rgba(13,45,75,.08);backdrop-filter:blur(8px)}
.agent-tab-button{--tab-bg:#f4f7fa;--tab-fg:#426079;--tab-bd:#d8e1ea;--tab-hover:#eaf1f7;--tab-active:#0b4f96;--tab-shadow:rgba(11,79,150,.22);border:1px solid var(--tab-bd);background:var(--tab-bg);color:var(--tab-fg);border-radius:9px;min-height:42px;padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;cursor:pointer;font-size:.74rem;transition:.18s ease}
.agent-tab-button span{font-size:.92rem}.agent-tab-button b{font-weight:800}.agent-tab-button:hover{background:var(--tab-hover);color:var(--tab-active);border-color:color-mix(in srgb,var(--tab-active) 26%, #ffffff)}.agent-tab-button.active{background:var(--tab-active);color:#fff;border-color:var(--tab-active);box-shadow:0 5px 12px var(--tab-shadow)}
.agent-tab-button.tab-overview{--tab-bg:#eff6ff;--tab-fg:#345876;--tab-bd:#cfe0f6;--tab-hover:#e0efff;--tab-active:#2c6fb2;--tab-shadow:rgba(44,111,178,.24)}
.agent-tab-button.tab-emission{--tab-bg:#f4efff;--tab-fg:#5d4d7c;--tab-bd:#ddd2f5;--tab-hover:#ebe1ff;--tab-active:#7b57c8;--tab-shadow:rgba(123,87,200,.24)}
.agent-tab-button.tab-events{--tab-bg:#ecfdf8;--tab-fg:#2d6c63;--tab-bd:#c8eee3;--tab-hover:#ddfbf1;--tab-active:#1d8a73;--tab-shadow:rgba(29,138,115,.23)}
.agent-tab-button.tab-inutilization{--tab-bg:#fff6e8;--tab-fg:#7b6131;--tab-bd:#f0dfba;--tab-hover:#fff0d7;--tab-active:#d0901f;--tab-shadow:rgba(208,144,31,.24)}
.agent-tab-button.tab-contingency{--tab-bg:#fff1ee;--tab-fg:#83584e;--tab-bd:#f1d3cb;--tab-hover:#ffe4de;--tab-active:#d06a4f;--tab-shadow:rgba(208,106,79,.24)}
.agent-tab-button.tab-production{--tab-bg:#eefcf3;--tab-fg:#2c6b48;--tab-bd:#cbead5;--tab-hover:#def8e7;--tab-active:#299b5f;--tab-shadow:rgba(41,155,95,.24)}
.agent-tab-button.tab-diagnostics{--tab-bg:#edf5ff;--tab-fg:#1f4f7f;--tab-bd:#cfe0f2;--tab-hover:#deeeff;--tab-active:#0b4f96;--tab-shadow:rgba(11,79,150,.24)}
.agent-tab-content{display:grid;gap:16px;min-width:0;animation:agentTabFade .18s ease-out}@keyframes agentTabFade{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
.agent-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:5px 2px 0}.agent-section-heading small{font-size:.62rem;color:#60768a;font-weight:850;letter-spacing:.11em}.agent-section-heading h2{font-size:1.15rem;margin:3px 0}.agent-section-heading p{margin:0;color:#64798b;font-size:.73rem;line-height:1.45}
.agent-subtabs{display:flex;gap:5px;padding:4px;border:1px solid #cfdae4;border-radius:10px;background:#fff;flex-wrap:wrap}.agent-subtabs button{border:0;background:transparent;color:#526b80;border-radius:7px;padding:8px 13px;font-size:.7rem;font-weight:800;cursor:pointer}.agent-subtabs button:hover{background:#eef4f8}.agent-subtabs button.active{background:#143f6d;color:#fff;box-shadow:0 3px 8px rgba(20,63,109,.2)}
.agent-overview-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.agent-jobs-panel{min-width:0}
@media(max-width:1050px){.agent-tab-navigation{position:relative;top:auto}.agent-overview-grid{grid-template-columns:1fr}.agent-section-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:680px){.agent-tab-button{padding:8px 10px}.agent-tab-button span{display:none}.agent-subtabs{width:100%}.agent-subtabs button{flex:1}.agent-section-heading{padding-top:0}}


/* V34.1.0 — operação piloto fiscal acompanhada */
.production-pilot-panel{overflow:hidden;border-color:#bfd7c9;background:linear-gradient(180deg,#fbfffc,#f4faf6)}
.production-pilot-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid #dcebe2}.production-pilot-panel>header>div{display:grid;gap:3px}.production-pilot-panel>header small{font-size:.57rem;letter-spacing:.11em;font-weight:900;color:#5c7a68}.production-pilot-panel>header h2{font-size:.95rem;margin:0;color:#17452f}.production-pilot-panel>header p{font-size:.64rem;color:#687e70;margin:0;line-height:1.45}
.production-pilot-badge{padding:6px 10px;border-radius:14px;font-size:.61rem;font-weight:900;white-space:nowrap;background:#edf3f7;color:#536b7c}.production-pilot-badge.active{background:#dff5e7;color:#157044}.production-pilot-badge.suspended{background:#fff0e5;color:#a34d1d}.production-pilot-badge.draft{background:#e9f1f8;color:#315f86}
.production-pilot-progress{height:5px;background:#e5eee8;overflow:hidden}.production-pilot-progress span{display:block;height:100%;background:linear-gradient(90deg,#2d8e60,#50ad78);transition:width .25s ease}
.production-pilot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:15px}.production-pilot-grid article{display:grid;gap:5px;padding:12px;border:1px solid #d9e8df;border-radius:10px;background:#fff;min-width:0}.production-pilot-grid article>small{font-size:.54rem;letter-spacing:.08em;font-weight:900;color:#71877a}.production-pilot-grid article>b{font-size:.75rem;color:#244c37;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.production-pilot-state{font-size:.58rem;font-weight:800}.production-pilot-state.ok{color:#178150}.production-pilot-state.pending{color:#9a6a25}
.production-pilot-next{margin:0 15px 12px;padding:11px 13px;border-radius:9px;background:#eaf5ee;display:grid;gap:3px}.production-pilot-next span{font-size:.52rem;font-weight:900;letter-spacing:.1em;color:#5d7868}.production-pilot-next b{font-size:.67rem;color:#24543a;line-height:1.45}.production-pilot-warning{margin:0 15px 15px}
@media(max-width:1050px){.production-pilot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.production-pilot-panel>header{flex-direction:column}.production-pilot-grid{grid-template-columns:1fr}.production-pilot-badge{align-self:flex-start}}

/* V34.2.0 — rejeições fiscais detalhadas e arquivo local */
.fiscal-rejection-card{border:1px solid #efb8b8;border-radius:12px;background:#fff7f7;overflow:hidden;text-align:left}.fiscal-rejection-card>header{display:flex;gap:11px;align-items:center;padding:13px 15px;background:#fee8e8;border-bottom:1px solid #f3caca}.fiscal-rejection-card>header>span{width:34px;height:34px;border-radius:50%;background:#b42318;color:#fff;display:grid;place-items:center;font-weight:900;font-size:1rem}.fiscal-rejection-card header div{display:grid;gap:2px}.fiscal-rejection-card header small{font-size:.56rem;letter-spacing:.1em;color:#9f2d25;font-weight:900}.fiscal-rejection-card h3{margin:0;color:#7a271f;font-size:.88rem}.fiscal-rejection-card dl{margin:0;padding:4px 15px 10px}.fiscal-rejection-card dl>div{display:grid;grid-template-columns:145px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #f5dada}.fiscal-rejection-card dl>div:last-child{border-bottom:0}.fiscal-rejection-card dt{font-size:.62rem;font-weight:850;color:#804039}.fiscal-rejection-card dd{margin:0;font-size:.67rem;line-height:1.45;color:#4e3b39}.fiscal-result-overlay{position:fixed;inset:0;background:rgba(15,23,42,.52);z-index:5000;display:grid;place-items:center;padding:18px}.fiscal-result-dialog{width:min(720px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:15px;box-shadow:0 30px 80px rgba(15,23,42,.3);padding:18px;position:relative;display:grid;gap:13px}.fiscal-result-close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:1.45rem;color:#64748b;cursor:pointer}.fiscal-result-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.fiscal-storage-panel{margin-top:14px}.fiscal-storage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.fiscal-storage-grid .span-2{grid-column:1/-1}.fiscal-storage-grid label{display:grid;gap:5px;font-size:.65rem;font-weight:800;color:#435e73}.fiscal-storage-grid input[type=text],.fiscal-storage-grid input:not([type]){width:100%;box-sizing:border-box}.fiscal-processing-box{display:grid;place-items:center;text-align:center;gap:10px;padding:26px}.fiscal-processing-spinner{width:42px;height:42px;border:4px solid #dbe7f2;border-top-color:#0b4f96;border-radius:50%;animation:fiscalSpin .8s linear infinite}@keyframes fiscalSpin{to{transform:rotate(360deg)}}
@media(max-width:650px){.fiscal-rejection-card dl>div{grid-template-columns:1fr;gap:3px}.fiscal-storage-grid{grid-template-columns:1fr}.fiscal-storage-grid .span-2{grid-column:auto}}

/* V34.5.0 — áreas principais abertas como janelas */
#janelas-container .janela.always-on-top{box-shadow:0 22px 70px rgba(3,20,38,.34),0 0 0 2px rgba(11,79,150,.12)}
#janelas-container .janela.always-on-top .janela-header::after{content:none;display:none}
#janelas-container .janela.always-on-top .janela-title,#janelas-container .janela.always-on-top .janela-controls{position:relative;z-index:2}

.report-subtabs{display:flex;gap:8px;flex-wrap:wrap;padding:8px;border:1px solid #d7e1eb;background:#f7f9fc;border-radius:13px;margin:14px 0}
.report-subtab{--report-color:#475569;flex:1 1 145px;min-height:46px;border:1px solid color-mix(in srgb,var(--report-color) 32%,#fff);background:color-mix(in srgb,var(--report-color) 9%,#fff);color:var(--report-color);border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:850;cursor:pointer;transition:.18s ease}
.report-subtab:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--report-color) 15%,#fff)}
.report-subtab.active{background:var(--report-color);color:#fff;border-color:var(--report-color);box-shadow:0 6px 14px color-mix(in srgb,var(--report-color) 28%,transparent)}
.report-subtab span{font-size:1rem}
.financial-origin{display:grid;gap:2px}.financial-origin small{color:#718293;font-size:.68rem}
.backup-local-card{border:1px solid #cbd9e5;border-radius:12px;background:#f8fbfd;padding:13px;margin-bottom:12px}.backup-local-card header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.backup-local-card header b{font-size:.83rem;color:#173b5c}.backup-local-card header span{font-size:.62rem;font-weight:900;padding:4px 8px;border-radius:12px;background:#e7f5ed;color:#0d6b49}.backup-local-path{background:#fff;border:1px solid #d5e0e8;border-radius:8px;padding:9px 10px;font:600 .75rem Consolas,monospace;color:#29465f;overflow-wrap:anywhere}
@media(max-width:680px){#janelas-container .janela.always-on-top .janela-header::after{content:none;display:none}.report-subtab{flex-basis:120px}}

/* V34.5.0 — favoritos e acessos recentes nas janelas de áreas */
.module-card-wrap{position:relative;min-width:0}.module-card-wrap[hidden]{display:none!important}.module-card-wrap .module-card{width:100%;height:100%;padding-right:48px}.module-favorite-button{position:absolute;right:10px;top:8px;width:29px;height:29px;border:1px solid color-mix(in srgb,var(--module-color) 26%,#dbe3ec);border-radius:9px;background:#fff;color:#94a3b8;display:grid;place-items:center;font-size:1rem;cursor:pointer;z-index:2;box-shadow:0 3px 8px rgba(15,23,42,.08)}.module-favorite-button:hover{color:var(--module-color);border-color:color-mix(in srgb,var(--module-color) 45%,#fff)}.module-favorite-button.active{background:color-mix(in srgb,var(--module-color) 12%,#fff);color:var(--module-color);border-color:color-mix(in srgb,var(--module-color) 38%,#fff)}
.module-view-modes{display:flex;gap:5px;padding:4px;border:1px solid #d5e0ea;border-radius:10px;background:#f8fafc;white-space:nowrap}.module-view-modes button{border:0;border-radius:7px;background:transparent;color:#5e7184;padding:7px 10px;font-size:.65rem;font-weight:800;cursor:pointer}.module-view-modes button:hover{background:#edf3f7;color:#294b67}.module-view-modes button.active{background:#173f68;color:#fff;box-shadow:0 3px 8px rgba(23,63,104,.18)}
@media(max-width:900px){.module-hub-toolbar{flex-wrap:wrap}.module-view-modes{order:3;width:100%;overflow-x:auto}.module-view-modes button{flex:1}}


/* V34.5.0 — pesquisa global também localiza e abre áreas, módulos e relatórios */
.commercial-search-results button{--search-color:#2563eb;position:relative;border:1px solid transparent}
.commercial-search-results button.active,.commercial-search-results button:hover{background:color-mix(in srgb,var(--search-color) 8%,#fff);border-color:color-mix(in srgb,var(--search-color) 22%,#fff)}
.commercial-search-results button.active::before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:4px;background:var(--search-color)}
.commercial-search-results .commercial-search-icon{background:color-mix(in srgb,var(--search-color) 11%,#fff);color:var(--search-color)}
.commercial-search-help{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap;padding:8px 14px;border-top:1px solid var(--line);background:#f8fafc;color:#748194;font-size:.59rem}.commercial-search-help span{display:flex;align-items:center;gap:4px}.commercial-search-help kbd{min-width:20px;text-align:center;padding:2px 5px;border:1px solid #d8e0e8;border-radius:5px;background:#fff;color:#5b6878;font-size:.56rem;box-shadow:0 1px 1px rgba(15,23,42,.05)}
@media(max-width:620px){.commercial-search-help{justify-content:center;gap:10px}.commercial-search-summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}


/* V34.5.0 — gerenciador central de janelas abertas */
.window-manager-layer{position:fixed;inset:0;z-index:90000;background:rgba(4,17,31,.48);display:grid;place-items:center;padding:24px;backdrop-filter:blur(4px)}
.window-manager-dialog{width:min(760px,96vw);max-height:min(720px,90vh);overflow:hidden;border:1px solid #cbd8e5;border-radius:16px;background:#f8fbfd;box-shadow:0 30px 90px rgba(2,16,30,.36);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;color:#243d52}
.window-manager-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;background:linear-gradient(135deg,#0b2949,#123f6c);color:#fff}.window-manager-dialog>header>div{display:grid;gap:3px}.window-manager-dialog header small{font-size:.55rem;letter-spacing:.12em;font-weight:900;color:#b9d5ef}.window-manager-dialog h2{margin:0;font-size:1.15rem}.window-manager-dialog header p{margin:0;color:#d7e6f4;font-size:.7rem}.window-manager-close{width:34px;height:34px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font-size:.9rem}.window-manager-close:hover{background:#c62828;border-color:#c62828}
.window-manager-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:11px 14px;border-bottom:1px solid #dbe4ec;background:#fff}.window-manager-toolbar button{border:1px solid #cbd7e1;border-radius:8px;background:#f5f8fb;color:#36566e;padding:8px 11px;font-size:.68rem;font-weight:800;cursor:pointer}.window-manager-toolbar button:hover:not(:disabled){background:#e7f0f8;border-color:#9fb9ce}.window-manager-toolbar button:disabled{opacity:.42;cursor:not-allowed}
.window-manager-list{padding:12px 14px;overflow:auto;display:grid;align-content:start;gap:8px}.window-manager-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #d8e2eb;border-radius:11px;background:#fff;padding:6px}.window-manager-row.active{border-color:#87b8e4;box-shadow:0 0 0 2px rgba(37,99,235,.1)}.window-manager-row.minimized{background:#f1f4f7;opacity:.78}.window-manager-focus{border:0;background:transparent;display:flex;align-items:center;gap:11px;min-width:0;text-align:left;padding:5px;cursor:pointer;color:inherit}.window-manager-icon{width:35px;height:35px;border-radius:10px;color:#fff;display:grid;place-items:center;flex:none;box-shadow:0 4px 10px rgba(15,35,55,.16)}.window-manager-copy{display:grid;gap:2px;min-width:0}.window-manager-copy b{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.window-manager-copy small{font-size:.59rem;color:#718497}.window-manager-actions{display:flex;gap:5px}.window-manager-actions button{width:32px;height:31px;border:1px solid #d1dce5;border-radius:8px;background:#f7f9fb;color:#466176;cursor:pointer}.window-manager-actions button:hover{background:#e7f0f8}.window-manager-actions button:last-child:hover{background:#fee8e8;border-color:#efb9b9;color:#a92525}
.window-manager-empty{min-height:230px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;color:#667d90}.window-manager-empty>span{font-size:2.4rem;color:#9db0bf}.window-manager-empty b{font-size:.82rem}.window-manager-empty small{font-size:.65rem;max-width:380px;line-height:1.5}
.window-manager-dialog>footer{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:10px 15px;border-top:1px solid #dbe4ec;background:#fff;color:#60768a;font-size:.6rem}.window-manager-dialog footer kbd{border:1px solid #c9d4de;border-bottom-width:2px;border-radius:5px;background:#f3f6f8;padding:2px 5px;font:700 .58rem inherit;color:#35536b}.window-manager-dialog footer small{margin-left:auto;color:#76899a}
@media(max-width:680px){.window-manager-layer{padding:0}.window-manager-dialog{width:100%;height:100%;max-height:none;border-radius:0}.window-manager-toolbar button{flex:1}.window-manager-dialog>footer small{width:100%;margin-left:0}.window-manager-row{grid-template-columns:minmax(0,1fr) auto}}

/* V34.5.0 — eventos e recuperação fiscal de produção */
.production-events-panel{border-color:#b8d9cf;background:linear-gradient(180deg,#fbfffd,#f4fbf8)}
.production-events-panel>header{background:linear-gradient(90deg,#eefaf5,#f8fcfa);border-bottom-color:#d4e9e1}
.production-events-panel label{display:grid;gap:5px;margin-top:10px;font-size:.65rem;font-weight:800;color:#365f53}
.production-events-panel input,.production-events-panel select{width:100%;box-sizing:border-box}
.production-events-panel>button{margin-top:9px}
@media(max-width:680px){.production-events-panel .agent-columns{grid-template-columns:1fr}}

/* V34.6.0 — configuração fiscal por empresa no Painel Master */
.master-company-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 14px;padding:6px;border:1px solid #d4deea;background:#f5f8fb;border-radius:13px}.master-company-tabs button{border:1px solid transparent;background:transparent;color:#445b70;border-radius:9px;padding:10px 14px;font-weight:850;cursor:pointer}.master-company-tabs button:hover{background:#eaf1f7}.master-company-tabs button.active{background:#0b4f96;color:#fff;box-shadow:0 6px 15px rgba(11,79,150,.22)}.master-company-tabs button span{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:rgba(255,255,255,.18);font-size:.65rem;margin-left:4px}
.master-fiscal-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:20px;border-radius:15px;background:linear-gradient(135deg,#0b4f96,#173b5c);color:#fff;margin-bottom:14px;box-shadow:0 14px 30px rgba(11,79,150,.16)}.master-fiscal-hero small{font-size:.58rem;letter-spacing:.13em;font-weight:900;color:#c9e3ff}.master-fiscal-hero h2{margin:4px 0;font-size:1.25rem}.master-fiscal-hero p{margin:0;color:#dbeafe;font-size:.75rem}.master-fiscal-hero>span{padding:6px 10px;border-radius:14px;background:rgba(255,255,255,.13);font-weight:900;font-size:.65rem;white-space:nowrap}
.master-fiscal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.master-fiscal-grid.compact{grid-template-columns:1fr 1fr}.master-fiscal-card{border:1px solid #d5e0ea;border-radius:13px;background:#fff;padding:15px;display:grid;gap:12px;min-width:0;box-shadow:0 6px 18px rgba(25,50,75,.05)}.master-fiscal-card>header{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8eef4;padding-bottom:10px}.master-fiscal-card>header>span{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eaf3fb;font-size:1.15rem}.master-fiscal-card>header div{display:grid;gap:2px}.master-fiscal-card>header b{font-size:.86rem;color:#183a59}.master-fiscal-card>header small{font-size:.62rem;color:#6f8294}.master-fiscal-card.nfce{border-color:#c8dfd2}.master-fiscal-card.nfe{border-color:#d5d7f1}.master-fiscal-card.future{border-color:#eadabf}.master-fiscal-card .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.master-fiscal-card.general .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.master-fiscal-check{display:flex;align-items:flex-start;gap:8px;font-size:.7rem;font-weight:750;color:#425c72;line-height:1.4}.master-fiscal-check input{margin-top:2px}.master-secret-warning{display:flex;gap:8px;align-items:flex-start;border:1px solid #f1d29b;background:#fff8e8;border-radius:9px;padding:10px 11px;color:#76501c}.master-secret-warning b{font-size:.68rem;white-space:nowrap}.master-secret-warning span{font-size:.64rem;line-height:1.45}.master-fiscal-initial{margin:18px 0;border:1px solid #cad9e6;border-radius:12px;background:#f9fbfd;padding:12px}.master-fiscal-initial summary{cursor:pointer;font-weight:900;color:#173b5c}.master-fiscal-initial>p{font-size:.7rem;color:#667c8e;margin:8px 0 0}.master-certificate-card{border:1px solid #bdd8cc;border-radius:13px;background:linear-gradient(180deg,#fbfffd,#f3faf6);padding:16px;display:grid;gap:13px}.master-certificate-card>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.master-certificate-card>header small{font-size:.56rem;letter-spacing:.12em;font-weight:900;color:#527464}.master-certificate-card h3{margin:4px 0 0;color:#163f2d}.master-certificate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.master-certificate-grid>div{display:grid;gap:4px;border:1px solid #d8e7df;background:#fff;border-radius:9px;padding:10px;min-width:0}.master-certificate-grid span{font-size:.56rem;font-weight:850;color:#6a8074;text-transform:uppercase;letter-spacing:.05em}.master-certificate-grid b{font-size:.68rem;color:#244c38;overflow-wrap:anywhere}.master-certificate-admin-fields{grid-template-columns:1fr 2fr}.ok-text{color:#11754a!important}.warn-text{color:#a35a14!important}.master-fiscal-savebar{position:sticky;bottom:8px;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:14px;border:1px solid #cbd9e5;background:rgba(248,251,253,.96);backdrop-filter:blur(8px);border-radius:12px;padding:12px 14px;box-shadow:0 10px 25px rgba(25,50,75,.12)}.master-fiscal-savebar>div{display:grid;margin-right:auto}.master-fiscal-savebar b{font-size:.72rem;color:#29465f}.master-fiscal-savebar small{font-size:.61rem;color:#6c8091}.master-fiscal-savebar #mf-error{font-size:.65rem;color:#b42318}.master-fiscal-load-warning{border:1px solid #efc18b;background:#fff7e8;color:#865317;border-radius:9px;padding:10px 12px;margin-bottom:10px;font-size:.68rem}
@media(max-width:1050px){.master-fiscal-grid,.master-fiscal-grid.compact{grid-template-columns:1fr}.master-certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.master-company-tabs{display:grid;grid-template-columns:1fr}.master-fiscal-hero{flex-direction:column}.master-fiscal-card .grid,.master-fiscal-card.general .grid,.master-certificate-grid,.master-certificate-admin-fields{grid-template-columns:1fr}.master-fiscal-savebar{align-items:stretch;flex-direction:column}.master-fiscal-savebar button{width:100%}}


/* V34.6.8 — confirmação visual de versão e acesso direto à configuração fiscal */
.app-build-badge{
  display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 9px;
  border:1px solid rgba(37,99,235,.24);border-radius:999px;background:rgba(37,99,235,.08);
  color:#1d4ed8;font-size:.72rem;font-weight:800;letter-spacing:.02em;white-space:nowrap;
}
.login-card .app-build-badge{margin:4px 0 10px;}

/* V34.9.105 — entrada institucional EXATA e portais segregados */
.login-screen{padding:0!important;align-items:stretch!important;justify-content:stretch!important;background:#06152f!important}
.exata-landing{width:100%;min-height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#fff;background:radial-gradient(circle at 72% 42%,rgba(9,112,255,.22),transparent 32%),linear-gradient(135deg,#020b1d,#06275a 68%,#041329)}
.exata-landing-header{min-height:152px;padding:10px clamp(22px,5vw,78px);display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border-radius:0 0 42px 42px}
.exata-landing-brand{display:flex;align-items:center;min-width:0;flex:0 1 410px;height:132px}
.exata-landing-brand>img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}
.exata-landing-actions{display:grid;grid-template-columns:repeat(2,260px);gap:20px;align-items:center}
.exata-landing button{cursor:pointer;font:inherit;font-weight:850;border-radius:999px;padding:13px 24px;border:2px solid #125ed0;background:#fff;color:#07367a}
.exata-landing-actions .exata-landing-cta,.exata-hero-cta.exata-landing-cta{width:260px;min-height:56px;padding:0 22px 0 26px;display:inline-flex;align-items:center;justify-content:flex-start;gap:14px;border-radius:999px;font-size:.96rem;font-weight:850;line-height:1;letter-spacing:-.01em;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
.exata-landing-cta>span:first-child{min-width:0;flex:1 1 auto;white-space:nowrap;text-align:center}
.exata-landing-actions .exata-landing-cta.primary,.exata-hero-cta.exata-landing-cta.primary{background:linear-gradient(135deg,#1559e6 0%,#139cf5 68%,#1ab7ff 100%);border:2px solid transparent;color:#fff;box-shadow:0 9px 22px rgba(12,97,222,.22)}
.exata-landing-actions .exata-landing-cta.secondary{background:rgba(255,255,255,.94);border:2px solid #146de1;color:#07367a;box-shadow:0 7px 18px rgba(6,54,122,.06)}
.exata-landing-actions .exata-landing-cta:hover,.exata-hero-cta.exata-landing-cta:hover{transform:translateY(-2px)}
.exata-landing-actions .exata-landing-cta.primary:hover,.exata-hero-cta.exata-landing-cta.primary:hover{box-shadow:0 13px 28px rgba(12,97,222,.30)}
.exata-landing-actions .exata-landing-cta.secondary:hover{background:#fff;border-color:#0c88ef;box-shadow:0 10px 24px rgba(6,54,122,.10)}
.exata-cta-arrow{flex:0 0 auto;margin-left:auto;color:currentColor;font-size:1.75rem;font-weight:500;line-height:.8;transform:translateY(-1px)}
.exata-hero-cta.exata-landing-cta{width:232px;min-width:232px;min-height:54px;margin-top:29px;padding-left:24px;padding-right:20px}
.exata-landing-hero{position:relative;display:grid;grid-template-columns:minmax(410px,.9fr) minmax(550px,1.35fr);align-items:stretch;gap:12px;min-height:0;padding:0 0 0 clamp(34px,7vw,120px);overflow:hidden}
.exata-landing-copy{position:relative;z-index:2;align-self:center;padding:38px 0 46px}.exata-landing-copy>span{font-size:.76rem;font-weight:900;letter-spacing:.16em;color:#2bb8ff}.exata-landing-hero h1{max-width:700px;margin:16px 0 22px;font-size:clamp(2.5rem,4.55vw,5.15rem);line-height:.98;letter-spacing:-.045em}.exata-landing-hero p{max-width:740px;margin:0;font-size:clamp(1rem,1.38vw,1.28rem);line-height:1.7;color:#e4f0ff}.exata-landing-hero p mark{display:inline;padding:3px 7px;background:#0d8dff;color:#fff;font-weight:850;white-space:nowrap;box-decoration-break:clone;-webkit-box-decoration-break:clone}.exata-landing-hero p strong{color:#26a9ff;font-weight:900}.exata-hero-cta{margin-top:27px;min-width:190px}.exata-hero-photo{min-width:0;background-image:linear-gradient(90deg,#03152f 0%,rgba(3,21,47,.65) 10%,transparent 35%),url('../assets/hero-exata-operador-v2.png');background-position:center;background-size:cover;background-repeat:no-repeat}.exata-landing footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px clamp(24px,5vw,78px);border-top:1px solid rgba(73,157,255,.25);color:#49b9ff}.exata-landing footer button{padding:8px 16px;border:0;background:transparent;color:#8bbdfb;font-size:.75rem}
#portalLoginCard{align-self:center;justify-self:center;margin:auto;min-width:min(420px,calc(100vw - 30px));background:rgba(255,255,255,.97)}#portalLoginCard h1{font-size:1.15rem;text-align:center;color:#12365d;margin:2px 0 8px}.portal-back{border:0;background:transparent;color:#315a80;font-weight:800;cursor:pointer;padding:0 0 12px}.login-brand img{object-fit:cover;background:#020b1d}.partner-portal{min-height:100vh;background:#f3f7fb;color:#15395d}.partner-portal>header{height:78px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#061b3a;color:#fff}.partner-brand{display:flex;align-items:center;gap:12px}.partner-brand img{width:54px;height:54px;object-fit:cover;border-radius:50%}.partner-brand span{font-weight:900;display:grid}.partner-brand small{font-weight:500;color:#74c8ff}.partner-portal>header>div:last-child{display:flex;align-items:center;gap:14px}.partner-portal button{border:1px solid #8cb3da;border-radius:9px;padding:9px 14px;background:#fff;color:#173d66;font-weight:800}.partner-portal main{padding:24px}.partner-company-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.partner-company-card{background:#fff;border:1px solid #d4e0ec;border-radius:14px;padding:17px;display:grid;gap:7px;box-shadow:0 8px 24px rgba(14,46,80,.06)}.partner-company-card small{color:#70859b}.partner-empty{max-width:620px;margin:80px auto;background:#fff;border:1px solid #d7e2ed;border-radius:18px;padding:30px;text-align:center}
@media(max-width:1180px){.exata-landing-header{min-height:132px}.exata-landing-brand{flex-basis:350px;height:112px}.exata-landing-actions{grid-template-columns:repeat(2,225px);gap:12px}.exata-landing-actions .exata-landing-cta{width:225px;padding-inline:16px;font-size:.83rem}.exata-landing-hero{grid-template-columns:minmax(360px,.95fr) minmax(440px,1.1fr)}}
@media(max-width:850px){.exata-landing-header{border-radius:0 0 24px 24px;min-height:112px}.exata-landing-brand{flex-basis:300px;height:92px}.exata-landing-actions{grid-template-columns:1fr;gap:7px}.exata-landing-actions .exata-landing-cta{width:205px;min-height:38px;padding-inline:13px;font-size:.75rem}.exata-landing-actions .exata-cta-arrow{font-size:1.35rem}.exata-landing-hero{grid-template-columns:1fr;padding:35px 24px;background:linear-gradient(rgba(3,21,47,.88),rgba(3,21,47,.88)),url('../assets/hero-exata-operador-v2.png') center/cover}.exata-hero-photo{display:none}.exata-landing footer{align-items:flex-start;flex-direction:column}.exata-landing footer button{padding-left:0}}
@media(max-width:600px){.exata-landing-header{padding:10px 16px 14px;gap:8px;flex-direction:column;align-items:stretch}.exata-landing-brand{flex:none;width:100%;height:auto}.exata-landing-brand>img{height:auto;max-height:120px}.exata-landing-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.exata-landing-actions .exata-landing-cta{width:100%;min-height:44px;padding-inline:10px;font-size:clamp(.67rem,2.7vw,.8rem);gap:4px}.exata-landing-actions .exata-cta-arrow{font-size:1.2rem}.exata-landing-hero h1{font-size:2.55rem}.exata-landing-hero p{line-height:1.55}}
@media(max-width:360px){.exata-landing-actions{grid-template-columns:1fr}.exata-landing-actions .exata-landing-cta{min-height:40px}}
.company-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:260px;}
.company-row-actions button{white-space:nowrap;padding:8px 10px;}
.company-fiscal-action{background:#0B3D8C!important;}
.master-company-selectable-table tbody tr{cursor:pointer;outline:none}.master-company-selectable-table tbody tr:focus-visible{box-shadow:inset 0 0 0 2px rgba(37,99,235,.35)}.master-company-selectable-table tbody tr.selected td{background:#eff6ff!important}.master-company-selectable-table tbody tr.selected{box-shadow:inset 4px 0 0 #2563eb}.master-company-selection-actions{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:#f8fbff}.master-company-selection-actions>span{display:grid;gap:2px;min-width:0}.master-company-selection-actions>span b{color:#17324d;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-company-selection-actions>span small{color:#64748b;font-size:.7rem}.master-company-selection-actions>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.master-company-selection-actions.empty{color:#64748b;background:#fbfcfd}
@media(max-width:700px){.master-company-selection-actions{align-items:stretch;flex-direction:column}.master-company-selection-actions>div{justify-content:flex-start}.master-company-selection-actions button{flex:1}}

@media (max-width:900px){
  .company-row-actions{min-width:210px;}
  .company-row-actions button{width:100%;}
}

/* V34.6.8 — navegação enxuta e versão no rodapé lateral */
.sidebar{display:flex;flex-direction:column;}
.sidebar>nav{flex:1;min-height:0;}
.sidebar-footer{margin-top:auto;padding:14px 8px 0;border-top:1px solid rgba(255,255,255,.10);display:flex;justify-content:center;}
.sidebar-footer .app-build-badge{width:100%;border-color:rgba(147,197,253,.24);background:rgba(37,99,235,.16);color:#dbeafe;font-size:.66rem;}
body.sidebar-collapsed .sidebar-footer{padding-left:0;padding-right:0;}
body.sidebar-collapsed .sidebar-footer .app-build-badge{padding:3px 4px;font-size:.57rem;}

/* V34.6.8 — Movimentações de Saídas profissionais e NFC-e emitidas no PDV */
.mov-shell{display:flex;flex-direction:column;height:100%;min-height:0;background:#f4f7fb;color:#17324d}
.mov-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:linear-gradient(135deg,#123f78,#0b2f59);color:#fff;border-radius:13px 13px 0 0;box-shadow:0 8px 20px rgba(11,47,89,.16)}
.mov-topbar h2{margin:2px 0 0;font-size:1.15rem}.mov-topbar small{font-size:.58rem;font-weight:900;letter-spacing:.12em;color:#c9def4}.mov-top-actions{display:flex;gap:8px;flex-wrap:wrap}.mov-top-actions button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);color:#fff;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.mov-top-actions button.primary{background:#fff;color:#123f78}
.mov-content{display:flex;flex-direction:column;min-height:0;gap:12px;padding:14px 16px 16px}.mov-alert{padding:10px 12px;border-radius:9px;border:1px solid #e8bf77;background:#fff7e7;color:#805217;font-size:.72rem}.mov-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mov-kpis article{background:#fff;border:1px solid #d8e2ec;border-radius:11px;padding:12px 14px;box-shadow:0 5px 15px rgba(26,58,90,.05)}.mov-kpis span{display:block;color:#6a7f92;font-size:.61rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.mov-kpis b{display:block;margin-top:5px;color:#103f79;font-size:1.08rem}
.mov-filter-card{background:#fff;border:1px solid #d8e2ec;border-radius:12px;padding:12px;display:grid;gap:10px}.mov-status-tabs{display:flex;gap:7px;flex-wrap:wrap}.mov-status-tabs button{border:1px solid #d4dee8;background:#f8fafc;color:#38536d;border-radius:999px;padding:7px 12px;font-size:.66rem;font-weight:800;cursor:pointer}.mov-status-tabs button.active{background:#103f79;color:#fff;border-color:#103f79}.mov-search-row{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:9px}.mov-search-row input,.mov-advanced-filters input,.mov-advanced-filters select,.mov-inutil-grid input,.mov-inutil-grid select,.mov-inutil-dialog textarea{width:100%;border:1px solid #c7d4df;border-radius:8px;background:#fff;padding:10px 11px;color:#17324d;outline:none}.mov-search-row input:focus,.mov-advanced-filters input:focus,.mov-advanced-filters select:focus,.mov-inutil-grid input:focus,.mov-inutil-grid select:focus,.mov-inutil-dialog textarea:focus{border-color:#0c64ad;box-shadow:0 0 0 3px rgba(12,100,173,.12)}.mov-search-row button{border:1px solid #b8c9d9;background:#edf4fa;color:#174b78;border-radius:8px;padding:0 13px;font-weight:800;cursor:pointer}.mov-advanced-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.mov-advanced-filters label,.mov-inutil-grid label{display:grid;gap:4px;color:#526b81;font-size:.62rem;font-weight:800}
.mov-table-wrap{min-height:0;overflow:auto;background:#fff;border:1px solid #d5e0ea;border-radius:12px;box-shadow:0 8px 22px rgba(23,50,77,.06)}.mov-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.72rem}.mov-table th{position:sticky;top:0;z-index:2;background:#eaf1f7;color:#536b80;text-align:left;text-transform:uppercase;letter-spacing:.04em;font-size:.57rem;padding:10px 9px;border-bottom:1px solid #ccd9e4}.mov-table td{padding:10px 9px;border-bottom:1px solid #e4ebf1;vertical-align:middle}.mov-table tbody tr:hover>td{background:#f7fbfe}.mov-doc-cell{display:flex;align-items:center;gap:9px;min-width:180px}.mov-doc-cell>span:last-child{display:flex;flex-direction:column;gap:2px}.mov-doc-cell small{color:#718697;font-size:.61rem}.mov-doc-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;font-size:.92rem;background:#edf2f7}.mov-doc-icon.nfe{background:#e5efff}.mov-doc-icon.nfce{background:#e5f7ee}.mov-doc-icon.internal{background:#f3efe5}.mov-doc-icon.manual{background:#f0e8fa}.mov-key{display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis;color:#708596;font-size:.59rem;white-space:nowrap}.mov-row-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.mov-row-actions button,.mov-more-panel button,.mov-detail-dialog button,.mov-inutil-dialog button{border:1px solid #c5d3df;background:#fff;color:#204867;border-radius:7px;padding:6px 9px;font-size:.64rem;font-weight:800;cursor:pointer}.mov-row-actions button:hover,.mov-more-panel button:hover{background:#edf5fb;border-color:#8fb0ca}.mov-row-actions button.primary{background:#0b5795;color:#fff;border-color:#0b5795}.mov-more-row td{background:#f4f8fb!important;padding:8px 12px}.mov-more-panel{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.mov-more-panel small{color:#748797;font-size:.61rem}.mov-more-panel .danger-action,.danger-action{border-color:#e5a8a8;color:#a72121;background:#fff5f5}.mov-empty{text-align:center;color:#708394;padding:28px!important}.mov-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;color:#6e8294;font-size:.63rem;padding:1px 4px}.mov-footer b{color:#244c70}
.mov-overlay{position:fixed;inset:0;z-index:11000;background:rgba(10,31,52,.52);display:grid;place-items:center;padding:20px;backdrop-filter:blur(2px)}.mov-detail-dialog,.mov-inutil-dialog{width:min(920px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:15px;box-shadow:0 28px 70px rgba(7,31,55,.34);border:1px solid #c9d6e2}.mov-detail-dialog>header,.mov-inutil-dialog>header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#123f78;color:#fff}.mov-detail-dialog>header h3,.mov-inutil-dialog>header h3{margin:0;font-size:1rem}.mov-detail-dialog>header button,.mov-inutil-dialog>header button{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#fff}.mov-detail-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:13px;padding:14px}.mov-detail-summary,.mov-items,.mov-history{border:1px solid #d8e2eb;border-radius:11px;background:#fbfdff;padding:13px}.mov-detail-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.mov-detail-title h4{margin:0;color:#163f67}.mov-detail-summary dl{display:grid;grid-template-columns:130px 1fr;gap:7px 10px;margin:0}.mov-detail-summary dt{font-size:.62rem;font-weight:850;color:#6c8193}.mov-detail-summary dd{margin:0;font-size:.69rem;overflow-wrap:anywhere}.mov-full-key{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.62rem;word-break:break-all;background:#edf3f8;border-radius:7px;padding:8px}.mov-items{grid-column:1/-1;overflow:auto}.mov-items table{width:100%;border-collapse:collapse;font-size:.68rem}.mov-items th,.mov-items td{padding:7px;border-bottom:1px solid #e1e9ef;text-align:left}.mov-history{grid-column:1/-1;display:grid;gap:8px}.mov-history-item{border-left:4px solid #79a7ca;background:#fff;border-radius:7px;padding:9px 11px}.mov-history-item>div{display:flex;align-items:center;justify-content:space-between;gap:9px}.mov-history-item p{margin:4px 0 0;font-size:.65rem}.mov-history-item small,.mov-history-item em{font-size:.59rem;color:#6f8293}.mov-inutil-dialog{width:min(700px,96vw)}.mov-inutil-dialog>section{padding:15px;display:grid;gap:12px}.mov-inutil-warning{border:1px solid #e7c07e;background:#fff7e8;color:#7b521c;border-radius:9px;padding:10px;font-size:.68rem;line-height:1.45}.mov-inutil-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mov-inutil-dialog textarea{min-height:95px;resize:vertical}.mov-inutil-dialog .check{display:flex;align-items:flex-start;gap:8px;font-size:.68rem;color:#405a70}.mov-inutil-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:0 15px 15px}.mov-inutil-dialog footer .primary{background:#0b5795;color:#fff;border-color:#0b5795}
.pdv-issued-search{display:grid!important;grid-template-columns:1fr auto;gap:8px}.pdv-issued-search button{border:1px solid #b9cad8;background:#fff;color:#184e7b;border-radius:7px;padding:0 12px;font-weight:800}.pdv-issued-list{display:grid;gap:8px;padding:10px}.pdv-issued-doc{border:1px solid #d7e1ea;border-left:5px solid #cf9b42;border-radius:10px;background:#fff;padding:10px 12px;display:grid!important;gap:7px}.pdv-issued-doc.authorized{border-left-color:#259661}.pdv-issued-doc.cancelled{border-left-color:#b73d3d;background:#fffafa}.pdv-issued-doc-main{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.pdv-issued-doc-main>span{display:flex;flex-direction:column;gap:2px}.pdv-issued-doc-main>span:last-child{text-align:right}.pdv-issued-status{font-weight:800}.pdv-issued-key{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all;color:#718596!important}.pdv-issued-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pdv-issued-actions button{border:1px solid #c3d2df;background:#f8fbfd;color:#224e71;border-radius:7px;padding:6px 9px;font-size:.64rem;font-weight:800;cursor:pointer}.pdv-issued-actions button.danger{border-color:#e1a5a5;background:#fff3f3;color:#a32020}.pdv-issued-actions button:disabled{opacity:.6;cursor:wait}
@media(max-width:900px){.mov-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mov-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mov-detail-grid{grid-template-columns:1fr}.mov-items,.mov-history{grid-column:auto}.mov-table{min-width:900px}}@media(max-width:620px){.mov-topbar{align-items:flex-start;flex-direction:column}.mov-top-actions{width:100%}.mov-top-actions button{flex:1}.mov-kpis,.mov-advanced-filters,.mov-inutil-grid{grid-template-columns:1fr}.mov-search-row{grid-template-columns:1fr}.mov-detail-summary dl{grid-template-columns:1fr}.pdv-issued-search{grid-template-columns:1fr!important}.pdv-issued-search button{padding:9px}.pdv-issued-doc-main{flex-direction:column}.pdv-issued-doc-main>span:last-child{text-align:left}.pdv-issued-actions{justify-content:flex-start}}


/* V34.6.9 — identidade visual, estabilidade e RTC */
.dashboard-brand-home{display:grid;gap:18px;max-width:1480px;margin:0 auto}.dashboard-brand-hero{min-height:210px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;padding:28px 32px;border-radius:22px;color:#fff;background:linear-gradient(125deg,#0b2646,#134f86 62%,#2563eb);box-shadow:0 22px 50px rgba(8,32,58,.22);position:relative;overflow:hidden}.dashboard-brand-hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-100px;top:-170px;background:rgba(255,255,255,.08)}.dashboard-company-logo{width:132px;height:132px;border-radius:24px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);display:grid;place-items:center;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.18);position:relative;z-index:1}.dashboard-company-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.dashboard-company-logo span{font-size:2.6rem;font-weight:950}.dashboard-company-copy{position:relative;z-index:1}.dashboard-company-copy h1{margin:5px 0 7px;color:#fff;font-size:clamp(2rem,4vw,3.45rem);letter-spacing:-.05em}.dashboard-company-copy p{margin:0 0 12px;color:#d8e9f8;font-size:1rem}.dashboard-company-copy small{color:#a9c9e5;text-transform:capitalize}.dashboard-brand-settings{position:relative;z-index:1;align-self:start;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:10px 14px;font-weight:800}.dashboard-quick-panel{background:#fff;border:1px solid #d7e1eb;border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(23,50,77,.08)}.dashboard-quick-panel>header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}.dashboard-quick-panel header span{font-size:.65rem;font-weight:900;letter-spacing:.12em;color:#3972a5}.dashboard-quick-panel h2{margin:3px 0 0;color:#143e67}.dashboard-quick-panel header p{margin:0;color:#718395;font-size:.78rem}.dashboard-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard-quick-grid button{min-height:92px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;border:1px solid #d7e1eb;background:#fbfdff;border-radius:14px;padding:14px;color:#18344f;cursor:pointer;box-shadow:0 4px 12px rgba(23,50,77,.04)}.dashboard-quick-grid button:hover{transform:translateY(-2px);border-color:var(--shortcut-color);box-shadow:0 12px 25px rgba(23,50,77,.10)}.dashboard-quick-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;color:#fff;background:var(--shortcut-color);font-size:1.15rem}.dashboard-quick-grid b{display:block;font-size:.86rem}.dashboard-quick-grid small{display:block;margin-top:4px;color:#718395;font-size:.66rem;line-height:1.3}.dashboard-quick-grid i{font-size:1.3rem;color:#8ba0b3;font-style:normal}
.company-branding-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center;padding:20px;margin-bottom:16px;border:1px solid #d7e2ec;border-radius:15px;background:linear-gradient(120deg,#f7fbff,#eef5fb)}.company-branding-preview{width:150px;height:150px;display:grid;place-items:center;border-radius:18px;overflow:hidden;background:#fff;border:1px solid #cbd9e5;box-shadow:0 9px 22px rgba(18,63,120,.10)}.company-branding-preview img{width:100%;height:100%;object-fit:contain}.company-branding-preview span{font-size:2.4rem;font-weight:950;color:#164a78}.company-branding-copy small{font-size:.62rem;font-weight:900;letter-spacing:.12em;color:#3474a9}.company-branding-copy h2{margin:4px 0 5px}.company-branding-copy p{margin:0 0 12px;color:#607589}.company-branding-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.company-logo-picker{display:inline-flex;align-items:center;justify-content:center;border:1px solid #9db4c8;border-radius:8px;padding:9px 12px;background:#fff;color:#244e72;font-weight:800;cursor:pointer}.company-logo-picker input{display:none}.company-branding-actions #company-logo-status{font-size:.7rem;color:#657b8f}
.pdv-brand-identity{display:flex;align-items:center;justify-content:center;gap:18px;min-height:96px;margin-bottom:6px}.pdv-brand-logo{width:90px;height:90px;border-radius:18px;display:grid;place-items:center;overflow:hidden;background:#edf4fa;border:1px solid #cad8e4;flex:0 0 auto}.pdv-brand-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.pdv-brand-logo span{font-size:1.75rem;font-weight:950;color:#123d68}.pdv-opening-brand{display:flex;flex-direction:column;align-items:center;gap:8px}.pdv-opening-logo{width:94px;height:94px;border-radius:20px;display:grid;place-items:center;overflow:hidden;background:#edf4fa;border:1px solid #cad8e4}.pdv-opening-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.pdv-opening-logo span{font-size:1.7rem;font-weight:950;color:#123d68}.pdv-opening-brand>strong{font-size:1.35rem;color:#123d68}.pdv-window-body .pdv-brand-identity{min-height:82px;margin-bottom:2px}.pdv-window-body .pdv-brand-logo{width:74px;height:74px}.pdv-window-body .pdv-keyboard-hints{gap:9px}.pdv-window-body .pdv-keyboard-hints span{min-height:42px;display:flex;align-items:center;justify-content:center;border-radius:9px;font-size:.75rem;font-weight:750;background:#e5eef6;color:#244b6d}.pdv-window-body .pdv-keyboard-hints b{font-size:.8rem;margin-right:4px}
.product-advanced-fields{margin-top:14px;border:1px solid #d5cbea;border-radius:9px;background:#fff;overflow:hidden}.product-advanced-fields summary{display:flex;flex-direction:column;gap:2px;padding:12px 14px;cursor:pointer;background:#eee8f9;color:#3d2d64}.product-advanced-fields summary span{font-weight:850}.product-advanced-fields summary small{font-size:.7rem;color:#6b6081}.product-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.product-advanced-grid label{display:grid;gap:5px;font-size:.76rem}.product-advanced-grid input,.product-advanced-grid select,.product-advanced-grid textarea{width:100%;padding:8px;background:#f7f4fc;border:1px solid #d1c7e2;border-radius:5px}.product-advanced-grid textarea{min-height:74px}.product-advanced-grid .span-2{grid-column:1/-1}.product-rtc-summary{display:grid;gap:4px;margin-top:8px;padding:10px;border-radius:7px;background:#fff;border:1px solid #d8e3ec;font-size:.72rem}.product-rtc-summary span{color:#536c82}.product-rtc-summary em{font-style:normal;font-weight:800}.product-rtc-summary em.ready{color:#15803d}.product-rtc-summary em.pending{color:#b45309}
.rtc-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-radius:15px;background:linear-gradient(120deg,#4a176c,#7e22ce);color:#fff;margin-bottom:12px}.rtc-page-head span{font-size:.62rem;letter-spacing:.12em;font-weight:900;color:#e9d5ff}.rtc-page-head h1{margin:4px 0;color:#fff}.rtc-page-head p{margin:0;color:#eadcf7}.rtc-version-chip{padding:9px 12px;border:1px solid rgba(255,255,255,.25);border-radius:9px;background:rgba(255,255,255,.12);font-size:.72rem;font-weight:850}.rtc-notice{display:flex;gap:12px;align-items:center;padding:11px 13px;margin-bottom:12px;border:1px solid #d8c2ed;border-radius:10px;background:#faf5ff;color:#5b2b78}.rtc-notice span{font-size:.74rem}.rtc-panel-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}.rtc-panel-title h2{margin:0}.rtc-panel-title p{margin:3px 0 0;color:#6d7d8d;font-size:.75rem}.rtc-rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rtc-rule-grid label{display:grid;gap:5px;font-size:.72rem;font-weight:750;color:#435a70}.rtc-rule-grid input,.rtc-rule-grid select,.rtc-rule-grid textarea{width:100%;padding:9px;border:1px solid #cdd9e4;border-radius:7px;background:#fff}.rtc-rule-grid textarea{min-height:80px}.rtc-rule-grid label small{font-size:.61rem;color:#7a8c9c;font-weight:500}.rtc-rule-grid .span-2{grid-column:span 2}.rtc-form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.rtc-form-actions #rtc-form-status{font-size:.68rem;color:#8a5a16}.rtc-table td small{display:block;color:#75889a;margin-top:3px}.rtc-table td{vertical-align:top}
.mov-content{flex:1;overflow:hidden}.mov-table-wrap{flex:1;min-height:260px;max-height:none}.mov-footer>div{display:flex;gap:8px}.mov-footer .f4-btn,.mov-footer .f5-btn{min-height:42px;border:0;border-radius:9px;padding:0 17px;color:#fff;font-weight:850;box-shadow:0 6px 14px rgba(17,56,91,.15)}.mov-footer .f4-btn.secondary{background:#0f766e}.mov-footer .f5-btn.primary{background:#2563eb}.mov-footer .f4-btn:hover,.mov-footer .f5-btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
@media(max-width:980px){.dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-brand-hero{grid-template-columns:auto 1fr}.dashboard-brand-settings{grid-column:1/-1;justify-self:end}.rtc-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.dashboard-brand-hero{grid-template-columns:1fr;text-align:center}.dashboard-company-logo{margin:auto}.dashboard-brand-settings{justify-self:center}.dashboard-quick-grid{grid-template-columns:1fr}.dashboard-quick-panel>header{align-items:flex-start;flex-direction:column}.company-branding-card{grid-template-columns:1fr;text-align:center}.company-branding-preview{margin:auto}.company-branding-actions{justify-content:center}.pdv-brand-identity{flex-direction:column;gap:8px}.product-advanced-grid,.rtc-rule-grid{grid-template-columns:1fr}.product-advanced-grid .span-2,.rtc-rule-grid .span-2{grid-column:auto}}


/* V34.7.0 — padronização profissional de Entradas, NF-e e janelas operacionais */
.mov-topbar.entry-topbar{background:linear-gradient(135deg,#0b5f58,#0f766e 62%,#14967f)}
.entry-mov-shell .mov-top-actions button.primary{color:#0f665f}.entry-mov-shell .mov-status-tabs button.active{background:#0f766e;border-color:#0f766e}.entry-mov-shell .mov-search-row input:focus,.entry-mov-shell .mov-advanced-filters input:focus,.entry-mov-shell .mov-advanced-filters select:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.13)}
.mov-doc-icon.entry-nfe{background:#e3f5f0;color:#0f766e}.mov-doc-icon.entry-internal{background:#fff3df;color:#9a5b05}.mov-doc-icon.entry-purchase{background:#e8efff;color:#315eb1}.entry-footer>div{display:flex;gap:8px;flex-wrap:wrap}.entry-footer button{min-height:42px;border:0;border-radius:9px;padding:0 15px;color:#fff;font-weight:850;cursor:pointer;box-shadow:0 6px 14px rgba(17,56,91,.14)}.entry-import-btn{background:#7c3aed}.entry-purchase-btn{background:#0b5795}.entry-manual-btn{background:#0f766e}.entry-footer button:hover{transform:translateY(-1px);filter:brightness(1.05)}.entry-detail-dialog>header{background:#0f766e}.entry-detail-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 14px 14px}.entry-detail-actions .primary{background:#0f766e;color:#fff;border-color:#0f766e}
.fiscal-draft-header.professional{min-height:72px;padding:12px 17px;gap:18px}.fiscal-draft-header.professional>div:first-child{display:flex;flex-direction:column;gap:2px}.fiscal-draft-header.professional small{font-size:.56rem;letter-spacing:.13em;font-weight:900;color:#cfe1f5}.fiscal-draft-header.professional span{font-size:1rem}.fiscal-draft-header.professional p{margin:1px 0 0;font-size:.67rem;font-weight:500;color:#dce9f6}.fiscal-draft-header.green.professional small,.fiscal-draft-header.green.professional p{color:#d9f4df}.fiscal-header-chips{display:flex;align-items:center;gap:7px;flex:0 0 auto}.fiscal-header-chips b,.fiscal-header-chips span{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);border-radius:8px;padding:8px 10px;font-size:.72rem!important;white-space:nowrap}.fiscal-header-chips span{font-weight:900;color:#fff}.fiscal-draft-steps button.optional{opacity:.82}.fiscal-draft-steps button.optional:after{content:"opcional";display:block;margin-top:3px;font-size:.51rem;text-transform:uppercase;letter-spacing:.08em;color:#7a8d9e}.fiscal-draft-steps button.optional.active:after{color:inherit;opacity:.75}.entry-wizard-professional .fiscal-draft-content,.nfe-wizard-professional .fiscal-draft-content{background:linear-gradient(180deg,#f9fbfd,#f3f7fa)}
.manual-entry-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f4f7fb;color:#17324d}.manual-entry-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;background:linear-gradient(135deg,#0b5f58,#0f766e);color:#fff}.manual-entry-header small{font-size:.57rem;font-weight:900;letter-spacing:.12em;color:#d2f2ec}.manual-entry-header h2{margin:3px 0;font-size:1.15rem}.manual-entry-header p{margin:0;font-size:.7rem;color:#d9f2ee}.manual-entry-total{font-size:1.25rem;font-weight:900;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);border-radius:10px;padding:10px 14px}.manual-entry-content{overflow:auto;padding:15px;display:grid;gap:12px}.manual-entry-notice{padding:10px 12px;border:1px solid #efd08f;border-radius:9px;background:#fff8e8;color:#765315;font-size:.72rem}.manual-entry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.manual-entry-grid .span-2{grid-column:span 2}.manual-entry-grid label,.manual-entry-product-row label,.manual-entry-observation{display:grid;gap:5px;font-size:.68rem;font-weight:800;color:#49647a}.manual-entry-grid input,.manual-entry-grid select,.manual-entry-product-row input,.manual-entry-observation textarea{width:100%;box-sizing:border-box;border:1px solid #c7d4df;border-radius:8px;background:#fff;padding:10px;color:#17324d}.manual-entry-grid input:focus,.manual-entry-grid select:focus,.manual-entry-product-row input:focus,.manual-entry-observation textarea:focus{outline:0;border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.manual-entry-supplier{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:11px;border:1px solid #d3e2df;border-radius:10px;background:#f3fbf8}.manual-entry-supplier div{display:grid;gap:3px}.manual-entry-supplier span{font-size:.56rem;text-transform:uppercase;font-weight:900;color:#688177}.manual-entry-supplier b{font-size:.7rem}.manual-entry-section-title{padding:8px 11px;border-radius:8px;background:#0f766e;color:#fff;font-weight:850}.manual-entry-product-row{display:grid;grid-template-columns:minmax(220px,1fr) 110px 130px auto;gap:8px;align-items:end}.manual-entry-product-row button,.manual-entry-footer button{border:1px solid #bed0d7;border-radius:8px;padding:10px 13px;font-weight:850;cursor:pointer}.manual-entry-product-row .primary,.manual-entry-footer .primary{background:#0f766e;color:#fff;border-color:#0f766e}.manual-entry-table{min-height:180px;max-height:330px;overflow:auto;border:1px solid #d5e0e9;border-radius:10px;background:#fff}.manual-entry-table table{width:100%;border-collapse:collapse;font-size:.71rem}.manual-entry-table th{position:sticky;top:0;background:#e8f2f0;color:#567068;padding:8px;text-align:left;text-transform:uppercase;font-size:.57rem}.manual-entry-table td{padding:8px;border-top:1px solid #e5ecef}.manual-entry-table .right{text-align:right}.manual-entry-table .danger{border:0;border-radius:5px;background:#fdecea;color:#a52922;cursor:pointer}.manual-entry-summary{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:9px;background:#e4efed;color:#31554f}.manual-entry-observation textarea{min-height:74px;resize:vertical}.manual-entry-footer{display:flex;justify-content:flex-end;gap:9px;padding:9px 14px;background:#dfe8ed;border-top:1px solid #c8d4db}.manual-entry-footer .ghost{background:#fff;color:#244d6d}.entry-hub{min-height:100%;padding:22px;background:#f4f7fb}.entry-hub-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px;margin-bottom:14px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#0b5f58,#0f766e 65%,#169b85);box-shadow:0 15px 35px rgba(15,118,110,.17)}.entry-hub-hero small{font-size:.57rem;font-weight:900;letter-spacing:.12em;color:#d7f3ee}.entry-hub-hero h2{margin:4px 0 3px}.entry-hub-hero p{margin:0;color:#d9f2ee;font-size:.75rem}.entry-hub-hero>span{font-size:2.5rem}.entry-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.entry-hub-grid button{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:105px;border:1px solid #d7e1eb;border-left:6px solid var(--entry-color);border-radius:13px;background:#fff;padding:15px;text-align:left;color:#17324d;cursor:pointer;box-shadow:0 6px 18px rgba(23,50,77,.06)}.entry-hub-grid button:hover{transform:translateY(-2px);box-shadow:0 13px 26px rgba(23,50,77,.11)}.entry-hub-grid button>span{width:50px;height:50px;display:grid;place-items:center;border-radius:13px;color:#fff;background:var(--entry-color);font-size:1.25rem}.entry-hub-grid b{display:block}.entry-hub-grid small{display:block;margin-top:5px;color:#6d8193;line-height:1.35}.entry-hub-grid i{font-style:normal;font-size:1.5rem;color:#94a6b5}.entry-hub-note{margin-top:13px;border:1px solid #d8e2eb;border-radius:10px;background:#fff;padding:11px 13px;color:#64798c;font-size:.69rem}.entry-supplier-report{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;padding:15px;background:#f4f7fb}.entry-supplier-report>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-radius:12px;background:#0f766e;color:#fff}.entry-supplier-report header small{font-size:.56rem;letter-spacing:.12em;font-weight:900;color:#d7f3ee}.entry-supplier-report h2{margin:3px 0}.entry-supplier-report p{margin:0;font-size:.7rem;color:#d9f2ee}.entry-supplier-report header button{border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.12);color:#fff;padding:8px 12px;font-weight:800;cursor:pointer}
@media(max-width:900px){.manual-entry-grid,.manual-entry-supplier{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-entry-product-row{grid-template-columns:1fr 1fr}.manual-entry-product-row button{grid-column:1/-1}.entry-hub-grid{grid-template-columns:1fr}.fiscal-header-chips{display:none}}
@media(max-width:620px){.manual-entry-header{align-items:flex-start;flex-direction:column}.manual-entry-grid,.manual-entry-supplier{grid-template-columns:1fr}.manual-entry-grid .span-2{grid-column:auto}.manual-entry-product-row{grid-template-columns:1fr}.entry-footer{align-items:flex-start;flex-direction:column}.entry-footer>div{width:100%}.entry-footer button{flex:1}.entry-supplier-report>header{align-items:flex-start;flex-direction:column}}


/* V34.7.2 — Tributação assistida e refinamento integral da NF-e */
.tax-pro-page{height:100%;overflow:auto;background:#f3f6fa;padding:16px;display:flex;flex-direction:column;gap:13px;color:#17324d}.tax-pro-head{background:linear-gradient(135deg,#123d6a,#0b4c85);color:#fff;border-radius:15px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 10px 28px rgba(18,61,106,.15)}.tax-pro-head small{font-size:.58rem;letter-spacing:.16em;font-weight:900;color:#b9d8f2}.tax-pro-head h1{margin:4px 0;font-size:1.35rem}.tax-pro-head p{margin:0;color:#deedf8;font-size:.72rem}.tax-pro-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.tax-pro-badges span{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);border-radius:999px;padding:7px 10px;font-size:.63rem;font-weight:800}.tax-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tax-summary-cards article{background:#fff;border:1px solid #d9e3ec;border-radius:12px;padding:12px 14px;display:grid;gap:3px;box-shadow:0 4px 12px rgba(31,56,82,.04)}.tax-summary-cards small{font-size:.57rem;text-transform:uppercase;letter-spacing:.08em;color:#6a7f92;font-weight:900}.tax-summary-cards b{font-size:1.25rem;color:#0f3d68}.tax-summary-cards span{font-size:.64rem;color:#6a7f92}.tax-pro-card{background:#fff;border:1px solid #d7e1ea;border-radius:14px;padding:15px;box-shadow:0 6px 18px rgba(31,56,82,.05)}.tax-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.tax-card-title h2{margin:0;font-size:1rem;color:#153f67}.tax-card-title p{margin:3px 0 0;color:#687d90;font-size:.66rem}.tax-form{display:grid;gap:12px}.tax-grid{display:grid;gap:10px}.tax-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tax-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tax-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tax-grid .span-2{grid-column:span 2}.tax-grid .span-3{grid-column:span 3}.tax-form label,.nfe-item-editor label{display:grid;gap:5px;font-size:.65rem;font-weight:800;color:#294b69}.tax-form input,.tax-form select,.tax-form textarea,.nfe-item-editor input,.nfe-item-editor select{width:100%;min-height:38px;border:1px solid #c7d6e2;border-radius:8px;background:#fff;padding:8px 10px;color:#17324d;font:inherit}.tax-form textarea{min-height:76px;resize:vertical}.tax-form input:focus,.tax-form select:focus,.tax-form textarea:focus,.nfe-item-editor input:focus,.nfe-item-editor select:focus{outline:none;border-color:#2c6ed5;box-shadow:0 0 0 3px rgba(44,110,213,.12)}.tax-form label>small{font-size:.57rem;font-weight:500;color:#6d8295;min-height:12px}.tax-section{border:1px solid #e0e8ef;border-radius:11px;padding:12px;background:#f8fafc;display:grid;gap:10px}.tax-section>div:first-child h3{margin:0;color:#17466f;font-size:.84rem}.tax-section>div:first-child p{margin:2px 0 0;color:#718498;font-size:.62rem}.tax-advanced{border:1px solid #dbe5ed;border-radius:10px;overflow:hidden}.tax-advanced summary{cursor:pointer;padding:11px 13px;background:#edf3f7;color:#204c70;font-size:.68rem;font-weight:900}.tax-advanced[open] summary{border-bottom:1px solid #dbe5ed}.tax-advanced>.tax-grid{padding:12px}.tax-picker-field{display:grid;grid-template-columns:minmax(0,1fr) 40px}.tax-picker-field input{border-radius:8px 0 0 8px;background:#f8fafc}.tax-picker-field button{border:1px solid #1d5c93;border-radius:0 8px 8px 0;background:#0f4f83;color:#fff;font-weight:900;cursor:pointer}.tax-actions{display:flex;align-items:center;gap:9px}.tax-actions span{font-size:.62rem;color:#835f08}.tax-table-wrap{overflow:auto;border:1px solid #dce5ec;border-radius:10px;max-height:360px}.tax-table{width:100%;border-collapse:collapse;font-size:.66rem}.tax-table th{position:sticky;top:0;background:#eaf1f6;color:#345773;text-align:left;padding:9px 10px;font-size:.56rem;text-transform:uppercase;letter-spacing:.05em}.tax-table td{padding:9px 10px;border-top:1px solid #e4ebf0;vertical-align:top}.tax-table td small{display:block;color:#718498;margin-top:3px;max-width:350px}.tax-table button{margin-right:4px}.danger-text{color:#b42318!important}.tax-empty{border:1px dashed #c9d7e2;border-radius:10px;padding:24px;text-align:center;color:#6e8294;display:grid;gap:4px}.rtc-catalog-bar{background:#fff;border:1px solid #d7e1ea;border-radius:12px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.rtc-catalog-bar div:first-child{display:grid;gap:2px}.rtc-catalog-bar b{color:#15456f}.rtc-catalog-bar span{font-size:.61rem;color:#6b8093}.rtc-catalog-bar div:last-child{display:flex;gap:8px}.rtc-selected-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-radius:10px;background:#eef4f9;padding:10px}.rtc-selected-summary div{display:grid;gap:2px}.rtc-selected-summary small{font-size:.55rem;color:#6c8194;text-transform:uppercase;font-weight:900}.rtc-selected-summary b{font-size:.65rem;color:#173f64}.fiscal-draft-steps .optional-toggle{margin-top:8px;border:1px dashed #9cb4c8!important;background:#f6f9fb!important;color:#35607f!important;font-size:.6rem!important}.nfe-item-editor{border:1px solid #cbd9e4;border-radius:12px;background:#f8fafc;margin-top:12px;overflow:hidden}.nfe-item-editor>header{background:#e8f1f7;padding:11px 13px;display:flex;align-items:center;justify-content:space-between}.nfe-item-editor header small{font-size:.55rem;letter-spacing:.08em;color:#607c92;font-weight:900}.nfe-item-editor header h3{margin:2px 0 0;color:#153f66;font-size:.86rem}.nfe-item-editor-grid{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nfe-item-editor-card{background:#fff;border:1px solid #dbe5ed;border-radius:9px;padding:11px;display:grid;gap:8px}.nfe-item-editor-card.span-2{grid-column:span 2}.nfe-item-editor-card h4{margin:0;color:#17517e;font-size:.72rem}.nfe-item-editor>footer{padding:10px 12px;border-top:1px solid #dbe5ed;display:flex;justify-content:flex-end}.nfe-total-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.nfe-total-board article{border:1px solid #d8e3ec;background:#fff;border-radius:11px;padding:12px;display:grid;gap:8px}.nfe-total-board h3{margin:0 0 2px;color:#174971;font-size:.76rem}.nfe-total-board article>div{display:flex;align-items:center;justify-content:space-between;font-size:.65rem;color:#61788c}.nfe-total-board article>div b{color:#173f64}.nfe-total-board .strong{border-top:1px solid #e2e8ee;padding-top:7px}.nfe-total-board .grand-total{background:linear-gradient(135deg,#0e4d82,#2167b2);color:#fff;align-content:center;text-align:center}.nfe-total-board .grand-total h3,.nfe-total-board .grand-total span{color:#dcecf8}.nfe-total-board .grand-total>b{font-size:1.6rem}.nfe-payment-head{display:flex;align-items:end;gap:9px;margin-bottom:10px}.nfe-payment-head label{display:grid;gap:4px;font-size:.62rem;font-weight:800;color:#294b69}.nfe-payment-head input{width:110px}.nfe-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:11px;border-radius:10px;padding:11px}.nfe-payment-summary.ok{background:#e9f8ef;border:1px solid #b5e3c5}.nfe-payment-summary.warn{background:#fff7e2;border:1px solid #efd28b}.nfe-payment-summary div{display:grid;gap:2px}.nfe-payment-summary small{font-size:.56rem;color:#667e90;text-transform:uppercase;font-weight:900}.nfe-payment-summary b{font-size:.9rem;color:#173f64}.nfe-optional-groups{display:grid;gap:10px}.nfe-optional-groups details{border:1px solid #d8e3ec;border-radius:10px;overflow:hidden}.nfe-optional-groups summary{padding:10px 12px;background:#eef4f8;color:#245372;font-size:.68rem;font-weight:900;cursor:pointer}.nfe-optional-groups details>label{display:grid;gap:5px;padding:10px 12px;font-size:.65rem;color:#294b69;font-weight:800}.nfe-optional-groups textarea{min-height:70px;border:1px solid #c7d6e2;border-radius:8px;padding:8px}.fiscal-notice.neutral{background:#eef5fa;border-color:#cfdee9;color:#48687e}
@media(max-width:1000px){.tax-grid.cols-4,.rtc-selected-summary,.nfe-total-board{grid-template-columns:repeat(2,minmax(0,1fr))}.tax-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}.tax-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.nfe-item-editor-grid{grid-template-columns:1fr}.nfe-item-editor-card.span-2{grid-column:auto}}
@media(max-width:680px){.tax-pro-head,.rtc-catalog-bar{align-items:flex-start;flex-direction:column}.tax-pro-badges{justify-content:flex-start}.tax-summary-cards,.tax-grid.cols-2,.tax-grid.cols-3,.tax-grid.cols-4,.rtc-selected-summary,.nfe-total-board,.nfe-payment-summary{grid-template-columns:1fr}.tax-grid .span-2,.tax-grid .span-3{grid-column:auto}.nfe-payment-head{align-items:stretch;flex-direction:column}.nfe-payment-head input{width:100%}}


/* V34.7.3 — fluxo fiscal assistido */
.suggestion-control{display:grid;grid-template-columns:minmax(270px,auto) 1fr auto;align-items:center;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid #c6d7e8;border-radius:12px;background:#eef6ff;color:#27435e}.suggestion-control .fiscal-check{margin:0;font-weight:700}.suggestion-control span{font-size:12px;line-height:1.45}.devolution-panel{margin-top:14px;padding:14px;border:1px solid #f0c36a;border-radius:14px;background:#fff9ec}.devolution-panel textarea{min-height:76px}.manifest-shell{display:flex;flex-direction:column;height:100%;min-height:0;background:#f3f7fb}.manifest-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 24px;border-radius:16px;background:linear-gradient(120deg,#0b3d6d,#075985);color:#fff}.manifest-hero small{font-weight:800;letter-spacing:.12em;color:#bfe5ff}.manifest-hero h2{margin:4px 0 5px;font-size:25px}.manifest-hero p{margin:0;color:#e6f5ff}.manifest-hero .ghost{border-color:#bfe5ff;color:#fff;background:rgba(255,255,255,.12)}.manifest-form,.manifest-history{margin-top:14px;padding:18px;border:1px solid #d5e0ea;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(15,57,94,.07)}.manifest-notice{margin-bottom:14px;padding:11px 13px;border-left:4px solid #d59b26;border-radius:8px;background:#fff7df;color:#5b4215}.manifest-import{align-self:end;height:42px}.manifest-xml-summary{display:grid;gap:4px;margin-top:12px;padding:12px 14px;border-radius:10px;background:#eef8f6;border:1px solid #bce0d8}.manifest-xml-summary span{font-size:12px;color:#526778}.manifest-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}.manifest-history{display:flex;flex:1;min-height:230px;flex-direction:column;overflow:hidden}.manifest-table{flex:1;min-height:0;overflow:auto;border:1px solid #d8e2eb;border-radius:10px}.manifest-table table{width:100%;border-collapse:collapse}.manifest-table th{position:sticky;top:0;z-index:2;padding:10px;background:#eaf2f8;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.manifest-table td{padding:10px;border-top:1px solid #e3eaf0;vertical-align:top}.manifest-table .status-pill{display:inline-flex}.manifest-table .right{text-align:right}.manifest-key{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;word-break:break-all}.manifest-empty{display:grid;place-items:center;min-height:150px;color:#64748b}.accounting-picker-hint{font-size:11px;color:#60758a;margin-top:4px}
@media(max-width:900px){.suggestion-control{grid-template-columns:1fr}.manifest-hero{align-items:flex-start;flex-direction:column}.manifest-form,.manifest-history{padding:13px}.manifest-shell .fiscal-form-grid.cols-3{grid-template-columns:1fr}.manifest-shell .span-2,.manifest-shell .span-3{grid-column:auto}}

/* V34.7.6 — catálogo CFOP e emissão própria de NF-e de entrada */
.cfop-catalog-shell,.nfe-entry-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:#f4f7fb;color:#14324f}
.cfop-catalog-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;background:linear-gradient(125deg,#312e81,#4f46e5);color:#fff}
.cfop-catalog-hero small,.entry-issue-header small{font-size:10px;font-weight:900;letter-spacing:.14em;opacity:.82}.cfop-catalog-hero h2{margin:5px 0 4px;font-size:25px}.cfop-catalog-hero p{margin:0;opacity:.88}
.cfop-catalog-summary{min-width:150px;padding:13px 18px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:rgba(255,255,255,.1);text-align:center}.cfop-catalog-summary strong{display:block;font-size:25px}.cfop-catalog-summary span{font-size:12px}
.cfop-catalog-toolbar{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(145px,1fr)) auto;gap:12px;align-items:end;padding:16px 20px;background:#fff;border-bottom:1px solid #d7e1eb}.cfop-catalog-toolbar label{font-size:12px;font-weight:800;color:#405a70}.cfop-catalog-toolbar input,.cfop-catalog-toolbar select{width:100%;height:42px;margin-top:5px;border:1px solid #b8c9d8;border-radius:9px;background:#fff;padding:0 11px}.cfop-catalog-search>div{display:flex}.cfop-catalog-search>div input{border-radius:9px 0 0 9px}.cfop-catalog-search>div button{width:44px;margin-top:5px;border:0;border-radius:0 9px 9px 0;background:#4f46e5;color:#fff;font-size:20px}.cfop-catalog-check{height:42px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid #d3dfeb;border-radius:9px}.cfop-catalog-check input{width:auto;height:auto;margin:0}
.cfop-catalog-error{margin:12px 20px 0;padding:10px 14px;border-radius:8px;background:#fee2e2;color:#991b1b}.cfop-catalog-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;padding:14px 20px}.cfop-catalog-table-wrap{min-height:0;overflow:auto;background:#fff;border:1px solid #d5e0ea;border-radius:12px}.cfop-catalog-table{width:100%;border-collapse:collapse;font-size:13px}.cfop-catalog-table thead{position:sticky;top:0;z-index:2}.cfop-catalog-table th{padding:11px;background:#e9f0f7;text-align:left;color:#34516a}.cfop-catalog-table td{padding:10px 11px;border-top:1px solid #e7edf3;vertical-align:top}.cfop-catalog-table tbody tr{cursor:pointer}.cfop-catalog-table tbody tr:hover,.cfop-catalog-table tbody tr.selected{background:#eef2ff}.cfop-pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900}.cfop-pill.entrada{background:#dcfce7;color:#166534}.cfop-pill.saida{background:#ffedd5;color:#9a3412}.cfop-indicators{display:flex;flex-wrap:wrap;gap:4px}.cfop-indicators span{padding:3px 6px;border-radius:6px;background:#e0f2fe;color:#075985;font-size:10px;font-weight:800}.cfop-indicators span.return{background:#fef3c7;color:#92400e}
.cfop-catalog-detail{min-height:0;padding:18px;border:1px solid #d5e0ea;border-radius:12px;background:#fff;overflow:auto}.cfop-catalog-detail>small{font-weight:900;color:#6366f1}.cfop-catalog-detail h3{font-size:28px;margin:5px 0}.cfop-catalog-detail p{line-height:1.45}.cfop-catalog-detail dl div{padding:9px 0;border-top:1px solid #edf1f5}.cfop-catalog-detail dt{font-size:10px;font-weight:900;color:#6b7f91;text-transform:uppercase}.cfop-catalog-detail dd{margin:4px 0 0;font-weight:700}.cfop-detail-empty{height:100%;display:grid;place-content:center;text-align:center;color:#718497}.cfop-detail-empty span{font-size:35px;font-weight:900;color:#4f46e5}.cfop-catalog-footer{display:flex;justify-content:space-between;padding:10px 20px;background:#fff;border-top:1px solid #d7e1eb;color:#5c7184}
.entry-own-nfe-btn{background:#0369a1!important;color:#fff!important;border-color:#0369a1!important}.entry-footer .entry-own-nfe-btn{min-height:42px;font-weight:900}
.entry-issue-header{background:linear-gradient(125deg,#075985,#0ea5e9)!important}.entry-issue-header .fiscal-header-chips small{display:block;color:#dff6ff}.nfe-entry-step{display:flex;flex-direction:column;gap:15px}.section-title{display:flex;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid #d8e2eb}.section-title>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e0f2fe;color:#0369a1;font-size:17px;font-weight:900}.section-title b{display:block;font-size:17px}.section-title small{color:#61778a}.nfe-entry-notice{display:flex;gap:12px;padding:12px 14px;border:1px solid #bae6fd;border-radius:10px;background:#f0f9ff}.nfe-entry-notice b{white-space:nowrap;color:#075985}.supplier-picker{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px;border:1px solid #cbd8e4;border-radius:12px;background:#fff}.supplier-picker small,.supplier-picker b,.supplier-picker span{display:block}.supplier-picker b{font-size:16px;margin:3px 0}.supplier-picker span{color:#65798a}.suggestion-toggle{padding:11px 13px;border-radius:9px;background:#eaf3fa;font-weight:700}.validation-summary{padding:13px 15px;border-radius:10px}.validation-summary.ok{background:#dcfce7;color:#166534}.validation-summary.warning{background:#fff7ed;color:#9a3412}.validation-summary b,.validation-summary span{display:block}.validation-summary ul{margin:7px 0 0;padding-left:18px}.nfe-entry-add-row{display:grid;grid-template-columns:minmax(260px,1fr) 110px 130px auto auto;gap:9px;align-items:end}.nfe-entry-add-row label{font-weight:800}.nfe-entry-add-row input{width:100%;height:42px;margin-top:4px}.nfe-entry-items{min-height:180px;overflow:auto;border:1px solid #d4e0e9;border-radius:10px;background:#fff}.nfe-entry-items table{width:100%;border-collapse:collapse;font-size:12px}.nfe-entry-items th{position:sticky;top:0;padding:9px;background:#e6eff6;text-align:left}.nfe-entry-items td{padding:8px;border-top:1px solid #e4ebf1;vertical-align:middle}.nfe-entry-items td small{display:block;color:#657a8d}.nfe-entry-items input{width:70px;padding:6px}.nfe-entry-total-line{display:flex;justify-content:space-between;padding:12px 14px;border-radius:9px;background:#dce9f2;font-size:15px}.entry-total-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.entry-total-cards article{padding:17px;border:1px solid #d4e0e9;border-radius:12px;background:#fff}.entry-total-cards small,.entry-total-cards b{display:block}.entry-total-cards b{font-size:22px;margin-top:5px;color:#075985}.financial-reconcile{display:flex;justify-content:space-between;gap:15px;padding:14px;border-radius:10px}.financial-reconcile.ok{background:#dcfce7;color:#166534}.financial-reconcile.warning{background:#fff7ed;color:#9a3412}.nfe-entry-review{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.nfe-entry-review div{padding:14px;border:1px solid #d5e0e9;border-radius:10px;background:#fff}.nfe-entry-review small,.nfe-entry-review b{display:block}.step-nav{display:flex;gap:8px;margin-left:auto}
@media(max-width:1050px){.cfop-catalog-toolbar{grid-template-columns:1fr 1fr}.cfop-catalog-body{grid-template-columns:1fr}.cfop-catalog-detail{display:none}.nfe-entry-add-row{grid-template-columns:1fr 1fr}.entry-total-cards,.nfe-entry-review{grid-template-columns:1fr 1fr}}

/* V34.7.6 — saldos de estoque por origem e perfis reais */
.stock-origin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stock-origin-card{border:1px solid #d5e0eb;border-radius:12px;padding:14px;background:#fff;box-shadow:0 5px 14px rgba(16,61,104,.06);display:flex;flex-direction:column;gap:4px}.stock-origin-card small{font-size:.62rem;font-weight:900;letter-spacing:.08em}.stock-origin-card b{font-size:1.45rem}.stock-origin-card span{font-size:.7rem;color:#64748b}.stock-origin-card.fiscal{border-top:4px solid #2563eb}.stock-origin-card.internal{border-top:4px solid #f59e0b}.stock-origin-card.total{border-top:4px solid #16a34a}.stock-history-panel{margin-top:14px;border:1px solid #d7e2ec;border-radius:10px;background:#fff;overflow:hidden}.stock-history-head{padding:10px 12px;background:#edf4fa;display:flex;align-items:center;justify-content:space-between}.stock-history-panel .table-wrap{max-height:260px;overflow:auto}.stock-history-panel table{width:100%;font-size:.72rem}.stock-history-panel th{position:sticky;top:0;background:#123f70;color:#fff;z-index:1}.stock-history-panel th,.stock-history-panel td{padding:7px 8px;border-bottom:1px solid #e7edf3;text-align:left}@media(max-width:900px){.stock-origin-summary{grid-template-columns:1fr}}

/* V34.7.11 — atualização segura do PWA sem interromper o trabalho */
.f5-update-banner{position:fixed;left:50%;bottom:18px;z-index:2147483000;display:grid;grid-template-columns:42px minmax(220px,1fr) auto;align-items:center;gap:12px;width:min(880px,calc(100vw - 28px));padding:12px 14px;border:1px solid #b8cbe0;border-radius:13px;background:rgba(255,255,255,.98);box-shadow:0 18px 50px rgba(8,27,51,.24);color:#153553;transform:translate(-50%,calc(100% + 40px));opacity:0;pointer-events:none;transition:transform .22s ease,opacity .22s ease;backdrop-filter:blur(10px)}
.f5-update-banner.visible{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.f5-update-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#e8f1ff;color:#175fb8;font-size:1.35rem;font-weight:900}
.f5-update-copy{display:grid;gap:3px;min-width:0}.f5-update-copy strong{font-size:.85rem;color:#102f4c}.f5-update-copy span{font-size:.72rem;line-height:1.35;color:#60778d}
.f5-update-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.f5-update-actions button{min-height:36px;border:1px solid #c5d3e0;border-radius:8px;background:#f8fafc;color:#234968;padding:7px 11px;font-weight:800;font-size:.7rem;cursor:pointer}.f5-update-actions button:hover{background:#edf4fb}.f5-update-actions button.primary{background:#1764c0;border-color:#1764c0;color:#fff}.f5-update-actions button.primary:hover{background:#0f55a7}
@media(max-width:760px){.f5-update-banner{grid-template-columns:38px 1fr;bottom:10px}.f5-update-icon{width:38px;height:38px}.f5-update-actions{grid-column:1/-1;justify-content:stretch}.f5-update-actions button{flex:1}}

/* V34.7.11 — Manifestação do Destinatário integrada e importação assistida */
.dfe-shell,.dfe-map-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:#f4f7fb;color:#17324d}
.dfe-hero,.dfe-map-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px;background:linear-gradient(135deg,#0b3d73,#1259a8);color:#fff;border-radius:18px 18px 0 0}
.dfe-hero small,.dfe-map-header small{font-size:.68rem;letter-spacing:.14em;font-weight:800;color:#cfe6ff}.dfe-hero h2,.dfe-map-header h2{margin:5px 0 4px;font-size:1.55rem}.dfe-hero p,.dfe-map-header p{margin:0;color:#e7f2ff}.dfe-hero button{min-height:44px}
.dfe-toolbar{display:grid;grid-template-columns:1.25fr 1fr auto;gap:14px;align-items:end;padding:14px 18px;background:#fff;border:1px solid #d8e2ec;border-top:0}
.dfe-tabs{display:flex;gap:7px;flex-wrap:wrap}.dfe-tabs button{border:1px solid #cbd8e5;border-radius:999px;background:#fff;padding:8px 13px;font-weight:700;color:#31516d}.dfe-tabs button.active{background:#0b4c8c;color:#fff;border-color:#0b4c8c}
.dfe-search{display:flex}.dfe-search input{flex:1;min-width:220px;border:1px solid #b9cad9;border-radius:8px 0 0 8px;padding:10px 12px}.dfe-search button{border-radius:0 8px 8px 0}.dfe-sync-state{display:grid;gap:3px;font-size:.72rem;color:#667b8d;text-align:right}.dfe-sync-state b{color:#17324d}
.dfe-content{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 18px 18px}.dfe-table-wrap{min-height:0;overflow:auto;background:#fff;border:1px solid #d6e1eb;border-radius:12px}.dfe-table{width:100%;border-collapse:collapse}.dfe-table th{position:sticky;top:0;z-index:2;background:#eaf1f7;color:#31516d;text-transform:uppercase;font-size:.66rem;letter-spacing:.04em;text-align:left;padding:11px}.dfe-table td{padding:10px 11px;border-bottom:1px solid #e5edf3;vertical-align:top}.dfe-table tr{cursor:pointer}.dfe-table tr:hover,.dfe-table tr.selected{background:#eef7ff}.dfe-table small{display:block;margin-top:3px;color:#718395;max-width:260px;overflow:hidden;text-overflow:ellipsis}.dfe-table .right{text-align:right}
.dfe-detail{width:380px;max-width:38vw;min-height:0;overflow:auto;background:#fff;border:1px solid #cbd9e5;border-radius:12px;box-shadow:0 12px 30px rgba(22,49,78,.14)}.dfe-detail>header{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;background:#0b4c8c;color:#fff;border-radius:11px 11px 0 0}.dfe-detail>header h3{margin:2px 0 0;font-size:1rem}.dfe-detail>header small{font-size:.62rem;letter-spacing:.1em;color:#cfe6ff}.dfe-detail>header button{background:transparent;color:#fff;border:0;font-size:1.35rem}.dfe-detail dl{margin:0;padding:14px 17px;display:grid;gap:9px}.dfe-detail dl div{display:grid;grid-template-columns:95px 1fr;gap:8px}.dfe-detail dt{color:#6a7f91;font-size:.75rem}.dfe-detail dd{margin:0;overflow-wrap:anywhere;font-weight:650;font-size:.78rem}
.dfe-detail-actions,.dfe-artifact-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 17px 14px}.dfe-detail-actions button,.dfe-artifact-actions button{min-height:38px}.dfe-timeline{padding:0 17px 18px}.dfe-timeline h4{margin:4px 0 10px}.dfe-timeline span{display:block;position:relative;padding:5px 0 5px 22px;color:#778b9c;font-size:.78rem}.dfe-timeline span:before{content:'○';position:absolute;left:0}.dfe-timeline span.done{color:#166534;font-weight:700}.dfe-timeline span.done:before{content:'✓';color:#16a34a}
.dfe-map-header>div:last-child{display:grid;text-align:center;background:rgba(255,255,255,.12);padding:10px 16px;border-radius:12px}.dfe-map-header>div:last-child b{font-size:1.3rem}.dfe-map-header>div:last-child span{font-size:.7rem}.dfe-map-notice{padding:11px 18px;background:#fff8e6;border:1px solid #f2d28b;color:#7a5600;font-size:.78rem}.dfe-map-table{flex:1;min-height:0;overflow:auto;margin:14px 18px 0;background:#fff;border:1px solid #d5e0e9;border-radius:12px}.dfe-map-table table{width:100%;border-collapse:collapse}.dfe-map-table th{position:sticky;top:0;background:#eaf1f7;padding:10px;text-align:left;font-size:.68rem;text-transform:uppercase;color:#31516d}.dfe-map-table td{padding:10px;border-bottom:1px solid #e4ecf2;vertical-align:top;font-size:.78rem}.dfe-map-table tr.pending{background:#fffaf0}.dfe-map-table tr.mapped{background:#f5fff8}.dfe-map-table small{display:block;color:#718395;margin-top:3px}.dfe-map-table input{width:95px;padding:7px;border:1px solid #bfcfdd;border-radius:6px}.dfe-map-table td:last-child{white-space:nowrap}.dfe-map-table td:last-child button{margin:0 3px 4px 0;padding:7px 9px}.dfe-map-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 18px}.dfe-map-footer>div{display:flex;gap:12px;align-items:center}.dfe-map-footer span{font-size:.78rem;color:#607589}
@media(max-width:900px){.dfe-toolbar{grid-template-columns:1fr}.dfe-sync-state{text-align:left}.dfe-content{grid-template-columns:1fr}.dfe-detail{width:auto;max-width:none}.dfe-map-table{overflow:auto}}

/* V34.7.11 — Diagnóstico e Auditoria para preparação da Release Candidate */
.stabilization-audit-shell{padding:18px;background:#f3f6fb;min-height:100%;color:#10233f}
.diag-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-radius:22px;background:linear-gradient(135deg,#0f355f,#164f87);color:#fff;box-shadow:0 18px 38px rgba(15,53,95,.18)}
.diag-hero small,.diag-panel header small{display:block;font-size:11px;font-weight:900;letter-spacing:.12em;opacity:.75}
.diag-hero h1{margin:6px 0 4px;font-size:30px;line-height:1.1}.diag-hero p{margin:0;max-width:780px;opacity:.88}
.diag-score{min-width:150px;padding:18px 22px;text-align:center;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.11);border-radius:18px}.diag-score b{display:block;font-size:31px}.diag-score span{font-size:11px;font-weight:800}
.diag-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.diag-actions>span{margin-left:auto;font-size:12px;color:#607089}
.diag-actions button{min-height:42px;padding:0 16px;border-radius:10px;border:1px solid #bfd0e4;background:#fff;color:#153d68;font-weight:800}.diag-actions button.primary{background:#1769d2;color:#fff;border-color:#1769d2}.diag-actions button:disabled{opacity:.55;cursor:not-allowed}
.diag-alert{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:14px 18px;border-radius:12px}.diag-alert.danger{background:#fff0f0;border:1px solid #efb1b1;color:#8d2020}
.diag-kpis{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:12px;margin-bottom:14px}.diag-kpis article{padding:17px 18px;background:#fff;border:1px solid #d7e1ed;border-radius:15px;box-shadow:0 6px 18px rgba(28,55,88,.06)}.diag-kpis article>span{display:block;font-size:10px;font-weight:900;letter-spacing:.09em;color:#708198}.diag-kpis article>b{display:block;margin:6px 0 8px;font-size:20px;color:#113d6d}.diag-kpis article small{display:block}
.diag-pill{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:900}.diag-pill.ok{color:#087443;background:#daf7e8}.diag-pill.warn{color:#9a4f00;background:#fff0cf}
.diag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.diag-panel{background:#fff;border:1px solid #d6e1ed;border-radius:16px;overflow:hidden;box-shadow:0 7px 20px rgba(28,55,88,.05)}.diag-panel.full{margin-top:14px}.diag-panel header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid #e1e8f0;background:#fbfcfe}.diag-panel header h2{margin:3px 0 0;font-size:18px;color:#123a66}.diag-panel header>span{font-size:12px;color:#66778f;font-weight:700}
.diag-check-list{display:grid;padding:8px 18px 14px}.diag-check-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px dashed #dbe4ee}.diag-check-list>div:last-child{border-bottom:0}.diag-check-list span:first-child{font-size:13px;color:#53657c}.diag-check-list b{font-size:13px;text-align:right;color:#173e68}
.diag-last-error{margin:0 18px 16px;padding:12px 14px;border-radius:10px;background:#fff2f1;border:1px solid #f1c2bf;color:#8b2c28}.diag-last-error b,.diag-last-error span{display:block}.diag-last-error span{margin-top:4px;font-size:12px;word-break:break-word}
.diag-table-wrap{max-height:360px;overflow:auto}.diag-table-wrap.small{max-height:280px}.diag-table{width:100%;border-collapse:collapse;font-size:12px}.diag-table th{position:sticky;top:0;z-index:2;padding:11px 13px;text-align:left;background:#eaf1f7;color:#34516f;font-size:10px;letter-spacing:.04em}.diag-table td{padding:11px 13px;border-top:1px solid #e3eaf2;vertical-align:top}.diag-table td small{display:block;margin-top:3px;color:#77879a}.diag-table .right{text-align:right}.diag-issue{display:block;margin:2px 0;padding:3px 7px;border-radius:6px;background:#fff0dd;color:#8c5005;font-size:10px;font-weight:800}
.diag-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:150px;padding:22px;color:#5e7086;text-align:center}.diag-empty b{font-size:16px;color:#1d4d7b}.diag-empty.compact{min-height:95px}
@media(max-width:1100px){.diag-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.stabilization-audit-shell{padding:10px}.diag-hero{align-items:flex-start;flex-direction:column}.diag-score{width:100%}.diag-kpis{grid-template-columns:repeat(2,1fr)}.diag-grid{grid-template-columns:1fr}.diag-actions>span{width:100%;margin-left:0}.diag-table{min-width:760px}}

/* V34.8.1 — Cadastro e Estoque Profissional */
.duplicate-product-banner{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#eff6ff;border-bottom:1px solid #bfdbfe;color:#1e3a8a}.duplicate-product-banner>span{font-size:1.35rem}.duplicate-product-banner div{display:grid;gap:2px}.duplicate-product-banner small{color:#475569}.variation-button{border:1px solid #7c3aed;background:#f5f3ff;color:#6d28d9;border-radius:5px;padding:8px 13px;font-weight:600;cursor:pointer}.variation-button:hover{background:#ede9fe}.stock-section-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.stock-section-title h3{margin:0;color:#0B3D8C}.stock-section-title p{margin:4px 0 0;color:#64748b;font-size:.82rem}.stock-lock-badge{white-space:nowrap;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:999px;padding:6px 10px;font-size:.75rem;font-weight:700}.stock-control-card{margin-top:16px;background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:14px;display:grid;gap:11px}.stock-control-card>div:first-child{display:grid;gap:3px}.stock-control-card small{color:#64748b}.stock-control-options{display:flex;gap:9px;flex-wrap:wrap}.stock-control-options label{display:flex;align-items:center;gap:7px;border:1px solid #cbd5e1;border-radius:6px;padding:9px 13px;background:#f8fafc;cursor:pointer}.stock-control-options label.selected{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;font-weight:600}.stock-control-note{display:block;background:#fff7ed;border:1px solid #fed7aa;border-radius:5px;padding:8px;color:#9a3412!important}.lot-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:13px}.lot-settings-grid label{display:flex;align-items:center;gap:8px;font-size:.82rem;color:#334155}.lot-settings-grid input[type=number]{width:74px;margin-left:auto;padding:6px;border:1px solid #cbd5e1;border-radius:4px}.lot-editor,.lot-current-panel{margin-top:14px;background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:13px}.lot-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.lot-editor-head>div{display:grid;gap:2px}.lot-editor-head small{color:#64748b}.lot-table{width:100%;border-collapse:collapse;font-size:.8rem}.lot-table th,.lot-table td{padding:8px;border-bottom:1px solid #e2e8f0;text-align:left}.lot-table th{background:#f8fafc;color:#475569}.lot-table input{width:100%;min-width:90px;padding:7px;border:1px solid #cbd5e1;border-radius:4px;background:#fff}.lot-table tfoot th{background:#eef2ff;color:#3730a3}.danger-link{border:none;background:none;color:#dc2626;cursor:pointer;font-size:.76rem}.stock-readonly{width:100%;padding:8px;background:#eef2f6!important;border:1px solid #cbd5e1;border-radius:3px;color:#475569}.stock-health{margin-top:12px;padding:10px;border-radius:5px;font-size:.8rem}.stock-health.ok{background:#ecfdf5;color:#047857}.stock-health.warning{background:#fff7ed;color:#9a3412}.f5-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.52);display:flex;align-items:center;justify-content:center;z-index:1800;padding:20px}.f5-professional-modal{width:min(980px,97vw);max-height:94vh;background:#f8fafc;border-radius:10px;box-shadow:0 30px 100px rgba(15,23,42,.45);display:flex;flex-direction:column;overflow:hidden}.f5-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#0B3D8C;color:#fff;padding:14px 18px}.f5-modal-head>div{display:grid;gap:3px}.f5-modal-head small{opacity:.82}.f5-modal-head button{border:none;background:none;color:#fff;font-size:1.5rem;cursor:pointer}.f5-modal-body{padding:16px;overflow:auto;display:grid;gap:13px}.f5-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:11px 16px;background:#e2e8f0}.variation-base-card{display:grid;gap:3px;border:1px solid #c7d2fe;background:#eef2ff;border-radius:7px;padding:11px}.variation-base-card span,.variation-base-card small{color:#64748b}.safe-copy-note{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:6px;padding:9px 11px;font-size:.8rem}.conversion-totals{display:flex;gap:10px;flex-wrap:wrap}.conversion-totals span{background:#eef2ff;border:1px solid #c7d2fe;border-radius:6px;padding:8px 11px}.conversion-reason{display:grid;gap:5px}.conversion-reason textarea{min-height:80px;padding:9px;border:1px solid #cbd5e1;border-radius:5px}.lot-total-ok{color:#047857!important}.lot-total-error{color:#dc2626!important}.lot-entry-modal{width:min(880px,96vw)}
@media(max-width:800px){.lot-settings-grid{grid-template-columns:1fr}.stock-section-title{flex-direction:column}.stock-lock-badge{white-space:normal}.lot-table{min-width:720px}.f5-professional-modal{max-height:98vh}}

/* V34.8.1 — Lista e consultas profissionais de Produtos */
.product-results-area{flex:1;min-height:0;padding:14px 16px;overflow:auto;background:#f8fafc}
.product-detailed-list{display:grid;gap:7px}.product-detailed-row{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #dbe3ee;border-left:4px solid #0b4f96;border-radius:8px;padding:9px 12px;cursor:pointer;outline:none;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}.product-detailed-row:hover,.product-detailed-row:focus{border-color:#8db4ef;box-shadow:0 7px 20px rgba(15,50,90,.09);transform:translateY(-1px)}.product-detailed-row.inactive{border-left-color:#94a3b8;background:#f8fafc}.product-detailed-main{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.product-detailed-image{width:48px;height:48px;border-radius:9px;background:#fff;border:1px solid #d8e1e9;display:grid;place-items:center;overflow:hidden;flex:0 0 48px}.product-detailed-image img{width:100%;height:100%;object-fit:contain}.product-detailed-copy{display:grid;gap:2px;min-width:0}.product-detailed-copy>b{font-size:.88rem;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-detailed-copy small{font-size:.71rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-detailed-actions{display:flex;gap:8px;align-items:center;flex:none}.product-duplicate-button{border:1px solid #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:6px 9px;cursor:pointer;font-size:.72rem;font-weight:650}.product-duplicate-button:hover{background:#dbeafe}.product-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 8px;font-size:.67rem;font-weight:750}.product-status.active{background:#dcfce7;color:#166534;border:1px solid #86efac}.product-status.inactive{background:#e2e8f0;color:#475569;border:1px solid #cbd5e1}.product-list-empty{min-height:260px;display:grid;place-items:center;align-content:center;gap:5px;color:#64748b;text-align:center}.product-list-empty>div{font-size:2.8rem}.product-list-empty b{color:#334155}.product-list-empty span{font-size:.78rem}
.product-compact-wrap{min-width:900px;background:#fff;border:1px solid #dbe3ee;border-radius:9px;overflow:auto}.product-compact-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.75rem}.product-compact-table th{position:sticky;top:0;z-index:2;background:#edf3f9;color:#41566b;text-align:left;padding:9px 10px;border-bottom:1px solid #cfdbe5;white-space:nowrap}.product-compact-table td{padding:8px 10px;border-bottom:1px solid #edf1f5;color:#334155;white-space:nowrap}.product-compact-table tbody tr{cursor:pointer;outline:none}.product-compact-table tbody tr:hover,.product-compact-table tbody tr:focus{background:#eef6ff}.product-compact-table tbody tr:last-child td{border-bottom:0}.product-compact-name{display:flex;align-items:center;gap:8px;min-width:250px}.product-compact-name>img,.product-compact-name>span{width:32px;height:32px;border-radius:7px;border:1px solid #dbe3ee;background:#fff;display:grid;place-items:center;object-fit:contain}.product-compact-name>div{display:grid;gap:1px;min-width:0}.product-compact-name b{max-width:360px;overflow:hidden;text-overflow:ellipsis}.product-compact-name small{color:#738397}
.product-footer-bar{min-height:42px;background:#e7ebf0;border-top:1px solid #ccd6df;display:flex;justify-content:flex-end;align-items:stretch;gap:1px;flex-wrap:wrap}.product-footer-action,.product-footer-back{border:0;background:#0b4692;color:#fff;min-height:42px;padding:7px 12px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:.73rem}.product-footer-action:hover,.product-footer-back:hover{background:#083a79}.product-footer-action.ncm{background:#6d35d6}.product-footer-action.ncm:hover{background:#5c2abc}.product-footer-action b{font-size:.69rem}.product-footer-action span{border-left:1px solid rgba(255,255,255,.45);padding-left:8px}.product-footer-action em{font-style:normal;font-size:.61rem;background:rgba(255,255,255,.16);border-radius:999px;padding:2px 6px}.product-footer-back{font-size:1rem;padding-inline:14px}
.f5-global-modal-backdrop{position:fixed;inset:0;z-index:2147482000;background:rgba(8,24,43,.62);display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));backdrop-filter:blur(2px)}.f5-global-modal-backdrop>.f5-professional-modal{margin:0;max-height:calc(100dvh - 32px);width:min(1180px,calc(100vw - 32px));border:1px solid rgba(255,255,255,.25)}
.product-consult-dialog{height:min(780px,calc(100dvh - 32px))}.product-consult-toolbar{padding:12px 16px;background:#eef3f8;border-bottom:1px solid #d5e0e9;display:flex;align-items:center;justify-content:space-between;gap:12px}.product-consult-toolbar>div{display:flex;gap:7px;flex:1;max-width:720px}.product-consult-toolbar input{flex:1;min-width:220px;padding:9px 11px;border:1px solid #aebfce;border-radius:7px;background:#fff}.product-consult-toolbar button{border:0;border-radius:7px;background:#0b4f96;color:#fff;padding:9px 13px;cursor:pointer}.product-consult-toolbar small{color:#64748b;white-space:nowrap}.product-consult-body{min-height:0;flex:1;display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);overflow:hidden}.product-consult-body aside{overflow:auto;border-right:1px solid #dbe3ea;background:#f5f8fb;padding:9px;display:grid;align-content:start;gap:6px}.product-consult-item{border:1px solid #d7e1ea;border-radius:8px;background:#fff;text-align:left;padding:9px 10px;display:grid;gap:2px;cursor:pointer;color:#243448}.product-consult-item:hover{border-color:#8db4ef}.product-consult-item.selected{background:#eaf4ff;border-color:#438ad0;box-shadow:0 0 0 2px rgba(67,138,208,.12)}.product-consult-item b{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-consult-item small{font-size:.65rem;color:#718497}.product-consult-empty{padding:28px 12px;text-align:center;color:#718497;font-size:.76rem}.product-consult-body section{min-width:0;overflow:auto;background:#fff;padding:18px}.product-consult-placeholder{height:100%;display:grid;align-content:center;justify-items:center;text-align:center;gap:6px;color:#718497}.product-consult-placeholder span{font-size:2.6rem}.product-consult-placeholder b{color:#334155}.product-consult-summary{display:grid;gap:16px}.product-consult-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px}.product-consult-image{width:68px;height:68px;border-radius:12px;border:1px solid #d6e0e9;background:#f8fafc;display:grid;place-items:center;overflow:hidden;font-size:1.8rem}.product-consult-image img{width:100%;height:100%;object-fit:contain}.product-consult-title>div:nth-child(2){min-width:0}.product-consult-title span:first-child{font-size:.66rem;font-weight:750;color:#2563a5;text-transform:uppercase;letter-spacing:.08em}.product-consult-title h3{margin:3px 0;font-size:1.18rem;color:#142235;white-space:normal}.product-consult-title small{color:#718497}.product-consult-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.product-consult-kpis>div{border:1px solid #dbe3ea;border-radius:9px;background:#f8fafc;padding:11px;display:grid;gap:4px}.product-consult-kpis span,.product-consult-grid span{font-size:.65rem;color:#718497;text-transform:uppercase;letter-spacing:.04em}.product-consult-kpis b{font-size:1rem;color:#173455}.product-consult-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-consult-grid>div{border-bottom:1px solid #e6ebf0;padding:8px 2px;display:grid;gap:3px}.product-consult-grid b{font-size:.8rem;color:#243448}.product-consult-grid small{font-size:.67rem;color:#718497}.product-consult-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.product-consult-actions button{border-radius:7px;padding:9px 14px;cursor:pointer;font-weight:650}.product-consult-actions .primary{border:0;background:#0b4f96;color:#fff}.product-consult-actions .secondary{border:1px solid #93c5fd;background:#eff6ff;color:#1d4ed8}
.f5-ncm-review-dialog{height:min(760px,calc(100dvh - 32px))}.ncm-review-toolbar{padding:13px 16px;background:#eef2ff;border-bottom:1px solid #d8e0ea;display:grid;gap:11px}.ncm-review-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.ncm-review-controls button{border:1px solid #94a3b8;border-radius:6px;padding:7px 11px;background:#fff;color:#334155;cursor:pointer}.ncm-review-controls button.active{background:#0b4f96;color:#fff;border-color:#0b4f96}.ncm-review-controls button.refresh{background:#6d35d6;color:#fff;border-color:#6d35d6}.ncm-review-controls input{flex:1;min-width:250px;padding:8px 10px;border:1px solid #94a3b8;border-radius:6px;background:#fff}.ncm-review-body{flex:1;min-height:0;overflow:auto;padding:10px 16px;background:#f8fafc}.ncm-review-footer{background:#e5e7eb;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}.ncm-review-footer small{color:#475569}.ncm-review-footer button{background:#0b4f96;color:#fff;border:0;border-radius:6px;padding:8px 13px;cursor:pointer}
@media(max-width:850px){.product-footer-bar{justify-content:stretch}.product-footer-action{flex:1;justify-content:center}.product-footer-action em{display:none}.product-consult-body{grid-template-columns:1fr}.product-consult-body aside{max-height:210px;border-right:0;border-bottom:1px solid #dbe3ea}.product-consult-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.product-consult-grid{grid-template-columns:1fr}.f5-global-modal-backdrop{padding:8px}.f5-global-modal-backdrop>.f5-professional-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.product-consult-dialog,.f5-ncm-review-dialog{height:calc(100dvh - 16px)}.ncm-review-footer{align-items:flex-start}.product-detailed-row{align-items:flex-start}.product-detailed-actions{flex-direction:column;align-items:flex-end}}

/* V34.8.1 — Operações auditadas de estoque */
button.primary.soft{background:#e0edff!important;color:#174ea6!important;border:1px solid #9ec5fe!important}
button.primary.soft:hover{background:#cfe2ff!important}.compact-action{padding:5px 8px!important;font-size:.74rem!important}
.stock-operation-modal{width:min(820px,96vw)}.stock-operation-modal.compact{width:min(620px,96vw)}
.stock-operation-warning{display:flex;align-items:flex-start;gap:12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:11px 13px;color:#1e3a8a}.stock-operation-warning b{white-space:nowrap}.stock-operation-warning span{font-size:.82rem;line-height:1.45;color:#334155}
.stock-operation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stock-operation-grid label,.stock-operation-reason{display:grid;gap:5px}.stock-operation-grid label span,.stock-operation-reason>span{font-size:.78rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.035em}.stock-operation-grid input,.stock-operation-grid select,.stock-operation-reason select,.stock-operation-reason textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#0f172a}.stock-operation-grid input[readonly]{background:#eef2f7;color:#475569}.stock-operation-reason textarea{min-height:94px;resize:vertical}.stock-operation-reason small{font-size:.74rem;color:#64748b}
.inventory-difference{display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:center;border-radius:8px;padding:12px 14px;border:1px solid}.inventory-difference span{font-size:.8rem;font-weight:700}.inventory-difference b{grid-row:1/3;grid-column:2;font-size:1.35rem}.inventory-difference small{font-size:.75rem}.inventory-difference.positive{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.inventory-difference.negative{background:#fff1f2;border-color:#fecdd3;color:#be123c}.inventory-difference.neutral{background:#f8fafc;border-color:#e2e8f0;color:#64748b}
.lot-status-summary{display:grid;gap:4px;background:#f8fafc;border:1px solid #dbe3ee;border-radius:8px;padding:12px}.lot-status-summary span,.lot-status-summary small{color:#64748b}.lot-status-summary b{font-size:1.05rem;text-transform:capitalize}
.lot-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.7rem;font-weight:700;text-transform:capitalize;background:#e2e8f0;color:#334155}.lot-status-badge.ativo{background:#dcfce7;color:#166534}.lot-status-badge.bloqueado{background:#fee2e2;color:#991b1b}.lot-status-badge.quarentena{background:#fef3c7;color:#92400e}.lot-status-badge.vencido{background:#ffe4e6;color:#9f1239}.lot-status-badge.proximo_vencimento{background:#ffedd5;color:#9a3412}.lot-status-badge.esgotado,.lot-status-badge.arquivado{background:#e2e8f0;color:#475569}
@media(max-width:720px){.stock-operation-grid{grid-template-columns:1fr}.stock-operation-warning{flex-direction:column}.inventory-difference{grid-template-columns:1fr auto}}
.diag-lot-health{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:0 16px 14px}.diag-lot-health article{display:grid;gap:4px;background:#f8fafc;border:1px solid #dbe3ee;border-radius:7px;padding:10px}.diag-lot-health span{font-size:.72rem;color:#64748b;text-transform:uppercase;letter-spacing:.035em}.diag-lot-health b{font-size:1.2rem;color:#0f2f5f}@media(max-width:900px){.diag-lot-health{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.diag-lot-health{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V34.8.1 — estabilidade da janela de ajuste de inventário */
#f5-stock-modal-root{position:relative;z-index:2147482500}
#f5-stock-modal-root:empty{display:none}
#f5-stock-modal-root .f5-stock-operation-overlay{z-index:2147482500}
.inventory-adjustment-stable-modal{outline:none}
.inventory-draft-recovered{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #93c5fd;border-radius:7px;background:#eff6ff;color:#1e3a8a}
.inventory-draft-recovered b{white-space:nowrap}
.inventory-draft-recovered span{font-size:.82rem;color:#334155}
.inventory-modal-lock-note{margin-right:auto;align-self:center;font-size:.75rem;color:#475569;max-width:360px}
@media(max-width:720px){.inventory-modal-lock-note{display:none}}

/* V34.8.1 — Base da Vertical Farmácia */
.pharmacy-product-notice{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:0 0 14px;border:1px solid #8fd8c5;border-radius:10px;background:linear-gradient(135deg,#ecfdf8,#eff8ff);color:#124b45}.pharmacy-product-notice>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#0f766e;color:#fff;font-size:1.4rem}.pharmacy-product-notice b,.pharmacy-product-notice small{display:block}.pharmacy-product-notice small{margin-top:3px;color:#3d6f69}.pharmacy-form-section{max-width:1080px;margin:auto}.pharmacy-section-hero{display:flex;gap:16px;align-items:center;padding:18px;border-radius:14px;background:linear-gradient(125deg,#0c4a6e,#0f766e);color:#fff;box-shadow:0 12px 30px rgba(15,118,110,.18);margin-bottom:14px}.pharmacy-section-hero>span{display:grid;place-items:center;min-width:58px;height:58px;border-radius:16px;background:rgba(255,255,255,.14);font-size:2rem}.pharmacy-section-hero small{font-size:.7rem;letter-spacing:.12em;font-weight:800;color:#bff5e8}.pharmacy-section-hero h2{margin:2px 0 4px;font-size:1.3rem}.pharmacy-section-hero p{margin:0;color:#d9fff5;font-size:.84rem}.pharmacy-validation-summary{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #fdba74;border-radius:10px;background:#fff7ed;color:#9a3412;margin-bottom:14px}.pharmacy-validation-summary.ok{border-color:#86efac;background:#f0fdf4;color:#166534}.pharmacy-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #dbe7e4;border-radius:12px;background:#fff}.pharmacy-form-grid label,.pharmacy-registration-card>label,.pharmacy-full-field{display:flex;flex-direction:column;gap:5px;font-size:.8rem;color:#334155}.pharmacy-form-grid input,.pharmacy-form-grid select,.pharmacy-registration-card input,.pharmacy-registration-card textarea,.pharmacy-full-field textarea{width:100%;padding:9px 10px;border:1px solid #b8cbc7;border-radius:7px;background:#f8fffd;outline:none}.pharmacy-form-grid input:focus,.pharmacy-form-grid select:focus,.pharmacy-registration-card input:focus,.pharmacy-registration-card textarea:focus,.pharmacy-full-field textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.pharmacy-registration-card{margin-top:12px;padding:15px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}.pharmacy-registration-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.pharmacy-registration-head b,.pharmacy-registration-head small{display:block}.pharmacy-registration-head small{color:#64748b;margin-top:3px}.pharmacy-check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;font-weight:700;color:#0f4c47!important}.pharmacy-check input{width:auto!important}.pharmacy-rule-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}.pharmacy-rule-cards article{padding:11px;border:1px solid #dbe5e3;border-radius:9px;background:#fff;color:#64748b}.pharmacy-rule-cards article.active{border-color:#5eead4;background:#ecfdf5;color:#115e59}.pharmacy-rule-cards span,.pharmacy-rule-cards b{display:block}.pharmacy-rule-cards span{font-size:.69rem;text-transform:uppercase;letter-spacing:.04em}.pharmacy-rule-cards b{font-size:.82rem;margin-top:4px}.pharmacy-full-field{padding:14px;border:1px solid #dbe7e4;border-radius:12px;background:#fff}.pharmacy-stock-lock{display:flex;flex-direction:column;gap:3px;padding:11px 13px;margin:12px 0;border:1px solid #67e8f9;border-radius:9px;background:#ecfeff;color:#155e75}.pharmacy-stock-lock span{font-size:.78rem}.pharmacy-list-badge,.pharmacy-inline-badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#dff8f1;color:#0f766e;border:1px solid #99e7d4;font-weight:800;white-space:nowrap}.pharmacy-list-badge{padding:4px 8px;font-size:.72rem}.pharmacy-inline-badge{padding:2px 7px;font-size:.65rem;vertical-align:middle}.pharmacy-footer-note{font-size:.76rem;color:#0f766e;font-weight:700}.pdv-pharmacy-product{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;padding:6px 9px;border:1px solid #99e7d4;border-radius:8px;background:#effcf8;color:#0f6259;font-size:.73rem}.pdv-pharmacy-product span{font-weight:800}.pdv-pharmacy-product b{text-align:right}.pharmacy-diagnostic-panel{border-top:3px solid #0f766e!important}
@media(max-width:900px){.pharmacy-form-grid{grid-template-columns:1fr}.pharmacy-rule-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pharmacy-registration-head{flex-direction:column}.pharmacy-section-hero{align-items:flex-start}}

/* V34.8.1 — Perfis operacionais e módulos por segmento */
.company-segment-topbar{display:inline-flex;align-items:center;gap:5px;margin-left:9px;padding:3px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.68rem;font-style:normal;font-weight:700;vertical-align:middle;white-space:nowrap}
.master-segment-initial{margin-top:18px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.master-segment-initial>summary{padding:14px 16px;font-weight:800;cursor:pointer;background:#f8fafc}
.master-segment-initial>p{margin:12px 16px 0;color:#64748b;font-size:.86rem}
.company-segment-editor{padding:18px;background:#fff;border:1px solid #dbe4f0;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.master-segment-initial .company-segment-editor{border:0;box-shadow:none;border-radius:0}
.company-segment-hero{display:flex;align-items:flex-start;gap:14px;padding:16px;border-radius:12px;background:linear-gradient(135deg,#eef2ff,#f8fafc);border:1px solid #dbeafe;margin-bottom:16px}
.company-segment-hero>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#4338ca;color:#fff;font-size:1.45rem;box-shadow:0 8px 20px rgba(67,56,202,.2)}
.company-segment-hero small{display:block;font-weight:800;letter-spacing:.08em;color:#6366f1;font-size:.68rem}.company-segment-hero h2{margin:2px 0 5px;color:#172554}.company-segment-hero p{margin:0;color:#64748b;font-size:.85rem;line-height:1.45}
.company-segment-principal{max-width:520px;margin-bottom:16px}.company-segment-principal select{min-width:280px}.company-segment-principal small{display:block;margin-top:5px;color:#64748b}
.company-segment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.company-segment-card{position:relative;display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:10px;padding:14px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;cursor:pointer;transition:.18s ease;min-height:92px}.company-segment-card:hover{border-color:#818cf8;box-shadow:0 8px 22px rgba(79,70,229,.1);transform:translateY(-1px)}.company-segment-card.principal{border:2px solid #4f46e5;background:#eef2ff}.company-segment-card input{width:17px;height:17px;accent-color:#4f46e5}.company-segment-card-icon{font-size:1.55rem}.company-segment-card b{display:block;color:#1e293b}.company-segment-card small{display:block;margin-top:4px;color:#64748b;line-height:1.35}.company-segment-card em{align-self:start;padding:3px 7px;border-radius:999px;font-size:.65rem;font-style:normal;font-weight:800;white-space:nowrap}.company-segment-card em.ready{background:#dcfce7;color:#166534}.company-segment-card em.planned{background:#fef3c7;color:#92400e}.company-segment-card.unavailable{cursor:not-allowed;opacity:.72;background:#f8fafc}.company-segment-card.unavailable:hover{border-color:#dbe4f0;box-shadow:none;transform:none}.company-segment-card.unavailable input{cursor:not-allowed}
.company-segment-preview{margin-top:14px;padding:12px 14px;border:1px dashed #a5b4fc;border-radius:10px;background:#f8faff}.company-segment-preview b{display:block;color:#312e81}.company-segment-preview span{display:block;margin-top:4px;color:#334155}.company-segment-preview small{display:block;margin-top:6px;color:#64748b}
.company-segment-savebar{margin-top:16px;padding:14px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:16px;align-items:end}.company-segment-savebar label span{display:block;font-weight:700;margin-bottom:6px}.company-segment-savebar textarea{width:100%;min-height:78px;resize:vertical}.company-segment-savebar>div{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:440px}.company-segment-savebar small{color:#64748b;text-align:right}.company-segment-savebar #mes-error{color:#b91c1c;font-size:.8rem}
@media(max-width:760px){.company-segment-grid{grid-template-columns:1fr}.company-segment-savebar{grid-template-columns:1fr}.company-segment-savebar>div{align-items:stretch;max-width:none}.company-segment-savebar small{text-align:left}.company-segment-topbar{display:none}}

/* V34.8.2 — Pacientes e Prescritores da Vertical Farmácia */
.pharmacy-module-shell{max-width:1480px;margin:0 auto;padding:18px;color:#1e293b}
.pharmacy-module-hero{display:flex;align-items:center;gap:16px;padding:20px 22px;margin-bottom:16px;border:1px solid #99d8cb;border-radius:16px;background:linear-gradient(130deg,#064e3b,#0f766e 62%,#0c4a6e);color:#fff;box-shadow:0 14px 34px rgba(15,118,110,.18)}
.pharmacy-module-hero.compact{padding:16px 18px}
.pharmacy-module-hero-icon{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:16px;background:rgba(255,255,255,.15);font-size:1.9rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.pharmacy-module-hero>div:nth-child(2){min-width:0;flex:1}.pharmacy-module-hero small{display:block;color:#c7fff1;font-size:.68rem;font-weight:900;letter-spacing:.12em}.pharmacy-module-hero h1{margin:3px 0 5px;font-size:1.45rem}.pharmacy-module-hero p{margin:0;color:#e2fff8;font-size:.84rem;line-height:1.45}.pharmacy-module-hero-status{display:flex!important;flex:0 0 auto!important;min-width:190px!important;flex-direction:column;align-items:flex-end;padding-left:16px;border-left:1px solid rgba(255,255,255,.25)}.pharmacy-module-hero-status span{font-size:.7rem;font-weight:800;color:#bff5e8}.pharmacy-module-hero-status b{margin-top:4px;font-size:.92rem}.pharmacy-module-hero .ghost.light{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.1);color:#fff}.pharmacy-module-hero .ghost.light:hover{background:rgba(255,255,255,.2)}
.pharmacy-hub-kpis,.pharmacy-list-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.pharmacy-list-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.pharmacy-hub-kpis article,.pharmacy-list-kpis article{padding:15px 16px;border:1px solid #d9e8e4;border-radius:13px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.055)}.pharmacy-hub-kpis span,.pharmacy-list-kpis span{display:block;color:#64748b;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.pharmacy-hub-kpis b,.pharmacy-list-kpis b{display:block;margin-top:5px;color:#0f4c47;font-size:1.35rem}.pharmacy-hub-kpis small,.pharmacy-list-kpis small{display:block;margin-top:3px;color:#64748b;line-height:1.35}
.pharmacy-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pharmacy-hub-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px;border:1px solid #cfe4df;border-radius:15px;background:#fff;text-align:left;color:#1e293b;box-shadow:0 10px 26px rgba(15,23,42,.055);cursor:pointer;transition:.18s ease}.pharmacy-hub-card:hover{border-color:#2dd4bf;transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,118,110,.13)}.pharmacy-hub-card-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#e6fffa;color:#0f766e;font-size:1.55rem}.pharmacy-hub-card small{color:#0f766e;font-size:.65rem;font-weight:900;letter-spacing:.1em}.pharmacy-hub-card h2{margin:3px 0 5px;font-size:1rem}.pharmacy-hub-card p{margin:0;color:#64748b;font-size:.79rem;line-height:1.4}.pharmacy-hub-card aside{min-width:78px;padding-left:13px;border-left:1px solid #e2e8f0;text-align:right}.pharmacy-hub-card aside b,.pharmacy-hub-card aside span{display:block}.pharmacy-hub-card aside b{font-size:1.25rem;color:#0f766e}.pharmacy-hub-card aside span{font-size:.68rem;color:#64748b}.pharmacy-hub-card em{position:absolute;right:15px;bottom:11px;color:#0f766e;font-size:.7rem;font-style:normal;font-weight:800}
.pharmacy-roadmap-note,.pharmacy-privacy-note,.pharmacy-verification-note{display:flex;align-items:flex-start;gap:11px;padding:13px 15px;margin-top:15px;border:1px solid #f2d399;border-radius:12px;background:#fffaf0;color:#7c4a03}.pharmacy-roadmap-note>span,.pharmacy-privacy-note>span,.pharmacy-verification-note>span{font-size:1.15rem}.pharmacy-roadmap-note b,.pharmacy-roadmap-note p,.pharmacy-privacy-note b,.pharmacy-privacy-note p,.pharmacy-verification-note b,.pharmacy-verification-note p{display:block;margin:0}.pharmacy-roadmap-note p,.pharmacy-privacy-note p,.pharmacy-verification-note p{margin-top:3px;font-size:.78rem;line-height:1.4}.pharmacy-privacy-note{border-color:#bae6fd;background:#f0f9ff;color:#075985}.pharmacy-verification-note{border-color:#c4b5fd;background:#f5f3ff;color:#5b21b6}
.pharmacy-module-loading,.pharmacy-module-empty,.pharmacy-module-error{min-height:280px;display:flex;align-items:center;justify-content:center;gap:14px;padding:30px;border:1px dashed #9fd5ca;border-radius:16px;background:linear-gradient(145deg,#f7fffd,#f8fafc);text-align:center}.pharmacy-module-loading,.pharmacy-module-empty{flex-direction:column}.pharmacy-module-loading b,.pharmacy-module-empty h2,.pharmacy-module-error h2{margin:0;color:#0f4c47}.pharmacy-module-loading small,.pharmacy-module-empty p,.pharmacy-module-error p{margin:0;color:#64748b}.pharmacy-module-empty>span{font-size:2.4rem}.pharmacy-module-error{justify-content:flex-start;text-align:left;border-style:solid;border-color:#fecaca;background:#fff7f7}.pharmacy-module-error>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#dc2626;color:#fff;font-weight:900}.pharmacy-module-error>div{flex:1}.pharmacy-module-error h2{color:#991b1b}.pharmacy-spinner{width:34px;height:34px;border:4px solid #ccfbf1;border-top-color:#0f766e;border-radius:50%;animation:pharmacy-spin .8s linear infinite}@keyframes pharmacy-spin{to{transform:rotate(360deg)}}
.pharmacy-list-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto auto auto;gap:9px;align-items:center;margin-bottom:13px;padding:12px;border:1px solid #dbe7e4;border-radius:12px;background:#fff}.pharmacy-list-toolbar input[type=search]{width:100%;min-height:40px}.pharmacy-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dbe7e4;border-radius:9px;background:#f8fafc;color:#475569;font-size:.78rem;font-weight:700;white-space:nowrap}.pharmacy-toggle input{accent-color:#0f766e}
.pharmacy-data-card{overflow:hidden;border:1px solid #dbe7e4;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}.pharmacy-table-wrap{width:100%;overflow:auto}.pharmacy-table{width:100%;border-collapse:collapse;min-width:860px}.pharmacy-table th{padding:11px 12px;background:#f1f8f6;border-bottom:1px solid #dbe7e4;color:#395b55;font-size:.7rem;text-align:left;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}.pharmacy-table td{padding:11px 12px;border-bottom:1px solid #edf2f1;vertical-align:middle;font-size:.79rem}.pharmacy-table tbody tr:hover{background:#f8fffd}.pharmacy-table td b,.pharmacy-table td strong,.pharmacy-table td small{display:block}.pharmacy-table td small{margin-top:3px;color:#64748b}.pharmacy-table tbody tr:last-child td{border-bottom:0}.pharmacy-table-empty{padding:34px;text-align:center;color:#64748b}.pharmacy-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;border:1px solid;font-size:.68rem;font-weight:800;white-space:nowrap}.pharmacy-status.ok{border-color:#86efac;background:#f0fdf4;color:#166534}.pharmacy-status.warn{border-color:#fcd34d;background:#fffbeb;color:#92400e}.pharmacy-status.danger{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.pharmacy-status.muted{border-color:#cbd5e1;background:#f8fafc;color:#475569}.pharmacy-row-actions{display:flex;justify-content:flex-end;gap:6px;white-space:nowrap}.pharmacy-row-actions button{min-height:32px;padding:6px 9px;font-size:.72rem}
.pharmacy-selectable-table tbody tr[data-select-id]{cursor:pointer;outline:none}.pharmacy-selectable-table tbody tr[data-select-id]:focus-visible{box-shadow:inset 0 0 0 2px rgba(15,118,110,.35)}.pharmacy-selectable-table tbody tr.selected{background:#ecfdf8!important;box-shadow:inset 4px 0 0 #0f766e}.pharmacy-selectable-table tbody tr.selected td:first-child b{color:#0f766e}
.pharmacy-selection-actions{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-top:1px solid #dbe7e4;background:#f8fbfa}.pharmacy-selection-actions>span{display:grid;gap:2px;min-width:0}.pharmacy-selection-actions>span b{color:#1f3f3a;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pharmacy-selection-actions>span small{color:#64748b;font-size:.7rem}.pharmacy-selection-actions>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.pharmacy-selection-actions.empty{color:#64748b;background:#fbfcfd}.pharmacy-selection-actions button{min-height:34px}
@media(max-width:700px){.pharmacy-selection-actions{align-items:stretch;flex-direction:column}.pharmacy-selection-actions>div{justify-content:flex-start}.pharmacy-selection-actions button{flex:1}}

.pharmacy-editor{display:flex;flex-direction:column;gap:14px}.pharmacy-editor-section{padding:17px;border:1px solid #dbe7e4;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.045)}.pharmacy-editor-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #edf2f1}.pharmacy-editor-section>header small{display:block;color:#0f766e;font-size:.65rem;font-weight:900;letter-spacing:.09em}.pharmacy-editor-section>header h2{margin:3px 0 0;font-size:1rem;color:#1f3f3a}.pharmacy-editor-section>header>span{color:#64748b;font-size:.72rem}.pharmacy-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pharmacy-editor-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#334155;font-size:.76rem;font-weight:700}.pharmacy-editor-grid input,.pharmacy-editor-grid select,.pharmacy-editor-grid textarea{width:100%;min-height:39px;padding:8px 9px;border:1px solid #b8cbc7;border-radius:8px;background:#fbfffe;color:#1e293b;outline:none}.pharmacy-editor-grid textarea{min-height:92px;resize:vertical}.pharmacy-editor-grid input:focus,.pharmacy-editor-grid select:focus,.pharmacy-editor-grid textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.pharmacy-editor-grid .span-2{grid-column:span 2}.pharmacy-editor-grid .span-3{grid-column:span 3}.pharmacy-toggle-card{flex-direction:row!important;align-items:center!important;padding:10px 11px;border:1px solid #cfe4df;border-radius:10px;background:#f3fbf9;align-self:end}.pharmacy-toggle-card input{width:auto!important;min-height:auto!important;accent-color:#0f766e}.pharmacy-toggle-card b,.pharmacy-toggle-card small{display:block}.pharmacy-toggle-card small{margin-top:2px;color:#64748b;font-weight:400}.pharmacy-editor-actions{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:9px;padding:12px 14px;border:1px solid #dbe7e4;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 -8px 22px rgba(15,23,42,.06);backdrop-filter:blur(8px)}
@media(max-width:1100px){.pharmacy-hub-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.pharmacy-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pharmacy-editor-grid .span-3{grid-column:span 2}}
@media(max-width:820px){.pharmacy-module-shell{padding:10px}.pharmacy-module-hero{align-items:flex-start;flex-wrap:wrap}.pharmacy-module-hero-status{width:100%;min-width:0!important;align-items:flex-start;padding:9px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.25)}.pharmacy-hub-grid{grid-template-columns:1fr}.pharmacy-list-toolbar{grid-template-columns:1fr 1fr}.pharmacy-list-toolbar input[type=search]{grid-column:1/-1}.pharmacy-list-kpis{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:560px){.pharmacy-hub-kpis,.pharmacy-list-kpis{grid-template-columns:1fr 1fr}.pharmacy-hub-card{grid-template-columns:auto 1fr}.pharmacy-hub-card aside{grid-column:2;border-left:0;padding-left:0;text-align:left}.pharmacy-list-toolbar{grid-template-columns:1fr}.pharmacy-list-toolbar>*{grid-column:auto!important}.pharmacy-editor-grid{grid-template-columns:1fr}.pharmacy-editor-grid .span-2,.pharmacy-editor-grid .span-3{grid-column:span 1}.pharmacy-editor-section>header{flex-direction:column}.pharmacy-editor-actions{position:static}.pharmacy-module-hero .primary,.pharmacy-module-hero .ghost.light{width:100%}}
.pharmacy-status.info{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.pharmacy-table tr.inactive{opacity:.7;background:#f8fafc}.pharmacy-list-toolbar>label:first-child{display:flex;align-items:center;gap:10px;min-width:0}.pharmacy-list-toolbar>label:first-child>span{font-size:.74rem;font-weight:800;white-space:nowrap}.pharmacy-list-toolbar>label:first-child>div{display:flex;flex:1;min-width:0}.pharmacy-list-toolbar>label:first-child input{flex:1;border-radius:8px 0 0 8px}.pharmacy-list-toolbar>label:first-child button{border-radius:0 8px 8px 0;white-space:nowrap}
@media(max-width:820px){.pharmacy-list-toolbar>label:first-child{display:block}.pharmacy-list-toolbar>label:first-child>span{display:block;margin-bottom:5px}}

/* V34.8.3 — Receitas e Base Segura da Dispensação Farmacêutica */
.pharmacy-regulatory-banner{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;margin-bottom:14px;border:1px solid #f6c76d;border-radius:12px;background:#fff8e8;color:#7c4a03;box-shadow:0 6px 18px rgba(146,64,14,.05)}
.pharmacy-regulatory-banner>span{font-size:1.2rem}.pharmacy-regulatory-banner b,.pharmacy-regulatory-banner p{display:block;margin:0}.pharmacy-regulatory-banner p{margin-top:3px;font-size:.78rem;line-height:1.45}
.prescription-items-section [data-items],.dispensing-items{display:grid;gap:12px}.prescription-item-card{padding:14px;border:1px solid #d6e6e2;border-radius:12px;background:linear-gradient(145deg,#fbfffe,#f8fafc)}
.prescription-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #e4efec}.prescription-item-head>div{display:grid;gap:3px}.prescription-item-head small{color:#64748b;font-size:.73rem;line-height:1.35}
.prescription-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.prescription-summary article{padding:10px 11px;border:1px solid #d9e8e4;border-radius:9px;background:#f5fbfa}.prescription-summary span,.prescription-summary b{display:block}.prescription-summary span{color:#64748b;font-size:.66rem;font-weight:800;text-transform:uppercase}.prescription-summary b{margin-top:4px;color:#1f3f3a;font-size:.8rem}
.pharmacy-editor-grid .span-4{grid-column:span 4}.pharmacy-editor-section>label{display:flex;flex-direction:column;gap:5px;color:#334155;font-size:.76rem;font-weight:700}.pharmacy-editor-section>label textarea{width:100%;min-height:92px;padding:9px;border:1px solid #b8cbc7;border-radius:8px;background:#fbfffe;resize:vertical}
.pharmacy-list-toolbar>label{display:flex;flex-direction:column;gap:5px;color:#334155;font-size:.72rem;font-weight:800}.pharmacy-list-toolbar>label input,.pharmacy-list-toolbar>label select{min-height:40px;padding:8px 9px;border:1px solid #b8cbc7;border-radius:8px;background:#fff}.pharmacy-row-actions .primary.small{min-height:32px;padding:6px 9px;font-size:.72rem}
@media(max-width:1100px){.pharmacy-editor-grid .span-4{grid-column:span 2}.prescription-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pharmacy-editor-grid .span-4{grid-column:span 1}.prescription-summary{grid-template-columns:1fr}.prescription-item-head{flex-direction:column}.pharmacy-regulatory-banner{flex-direction:column}}

/* V34.8.4 — conversão de unidades, diagnóstico acionável e bloqueio sem perfil */
.dfe-map-table.conversion{overflow:auto}
.dfe-map-table.conversion table{min-width:1380px}
.dfe-conversion-controls{display:grid;grid-template-columns:130px 110px 82px;gap:6px;align-items:center}
.dfe-conversion-controls select,.dfe-conversion-controls input{min-width:0;height:36px;border:1px solid #cbd8e6;border-radius:8px;padding:0 9px;background:#fff;color:#153a62;font-weight:700}
.dfe-product-create-dialog{width:min(820px,calc(100vw - 28px))}
.dfe-commercial-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
.dfe-commercial-summary>div{border:1px solid #d6e1ec;background:#f7fafc;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.dfe-commercial-summary span{font-size:11px;text-transform:uppercase;color:#64778d;font-weight:800}
.dfe-commercial-summary b{color:#153a62}
.dfe-commercial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dfe-commercial-grid label{display:flex;flex-direction:column;gap:6px;color:#435b75;font-size:12px;font-weight:800}
.dfe-commercial-grid input,.dfe-commercial-grid select{height:40px;border:1px solid #cbd8e6;border-radius:9px;padding:0 10px;color:#153a62;background:#fff}
.dfe-price-warning{margin-top:14px;border:1px solid #f2c46d;background:#fff8e8;border-radius:10px;padding:11px 13px;display:flex;flex-direction:column;gap:3px;color:#7a4b00}
.diag-pending-summary{margin-top:12px;display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(255,255,255,.09);font-size:12px;color:#fff}
.diag-pending-summary.ok{display:inline-flex}
.diag-status-stack{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:55%}
.diag-status-stack small{text-align:right;color:#60748b;line-height:1.25}
.diag-last-error.detailed dl{display:grid;gap:7px;margin:10px 0}
.diag-last-error.detailed dl>div{display:grid;grid-template-columns:135px 1fr;gap:8px}
.diag-last-error.detailed dt{font-weight:800;color:#8e2d2d}
.diag-last-error.detailed dd{margin:0;color:#5f3030}
.diag-last-error details{margin-top:8px}
.diag-last-error pre{white-space:pre-wrap;max-height:220px;overflow:auto;background:#fff;border:1px solid #efc0c0;border-radius:8px;padding:9px;font-size:11px;color:#493535}
.diag-inline-warning,.diag-inline-info{margin:12px 16px 16px;border-radius:10px;padding:11px 12px;display:grid;gap:5px}
.diag-inline-warning{border:1px solid #f1c76f;background:#fff8e8;color:#754800}
.diag-inline-info{border:1px solid #cbdbea;background:#f5f9fc;color:#38536f}
.diag-inline-warning button,.diag-inline-info button{justify-self:start;margin-top:4px}
.operator-profile-required{min-height:calc(100vh - 120px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px;max-width:760px;margin:auto;color:#183d66}
.operator-profile-required>div{font-size:58px;margin-bottom:12px}.operator-profile-required small{letter-spacing:.12em;font-weight:900;color:#8a5b00}.operator-profile-required h1{font-size:30px;margin:8px 0}.operator-profile-required p{font-size:16px;line-height:1.6;max-width:680px}.operator-profile-required span{margin-top:12px;padding:9px 12px;border-radius:999px;background:#fff0cd;color:#744a00;font-weight:800}
@media(max-width:760px){.dfe-commercial-summary,.dfe-commercial-grid{grid-template-columns:1fr}.dfe-conversion-controls{grid-template-columns:1fr}.diag-last-error.detailed dl>div{grid-template-columns:1fr}.diag-status-stack{max-width:62%}}


/* V34.8.5 — segregação Administração da Empresa x Plataforma */
.company-users-screen,.company-user-form-screen{min-height:100%;background:#f4f7fb;padding:18px;color:#102a4c}
.company-users-hero,.company-user-form-screen>header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px;border-radius:18px;background:linear-gradient(135deg,#173b68,#0b2444);color:#fff;box-shadow:0 14px 32px rgba(11,36,68,.16)}
.company-users-hero small,.company-user-form-screen>header small{font-weight:800;letter-spacing:.12em;color:#bfd5ee}.company-users-hero h1,.company-user-form-screen>header h1{margin:4px 0;font-size:1.75rem}.company-users-hero p{margin:0;color:#dce8f6}.company-users-hero>span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:10px 14px;border-radius:999px;font-weight:700}
.company-access-security-note{margin:16px 0;display:flex;gap:14px;align-items:center;padding:16px 18px;border:1px solid #b9d7cd;border-left:5px solid #0f766e;border-radius:14px;background:#f0fdfa}.company-access-security-note>div:first-child{font-size:1.6rem}.company-access-security-note small{display:block;color:#0f766e;font-weight:800;letter-spacing:.08em}.company-access-security-note b,.company-access-security-note span{display:block}.company-access-security-note span{margin-top:3px;color:#456078}
.company-users-toolbar{display:flex;gap:12px;margin-bottom:14px}.company-users-toolbar input{flex:1;min-width:220px;padding:12px 14px;border:1px solid #cbd8e7;border-radius:12px;background:#fff}.company-users-card{background:#fff;border:1px solid #d8e2ee;border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(20,54,91,.07)}
.company-users-list{display:grid}.company-user-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px 17px;border-bottom:1px solid #e7eef6;cursor:pointer;transition:.15s}.company-user-row:hover{background:#f7faff}.company-user-row:last-child{border-bottom:0}.company-user-row.inactive{opacity:.66}.company-user-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e4eefb;color:#123e6e;font-weight:900;font-size:1.1rem}.company-user-copy b,.company-user-copy span,.company-user-copy small{display:block}.company-user-copy span{color:#526a85}.company-user-copy small{margin-top:3px;color:#74879d}.company-user-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.company-user-badges span{padding:5px 9px;border-radius:999px;background:#edf2f7;color:#53677d;font-size:.72rem;font-weight:800}.company-user-badges .active{background:#d9f7e8;color:#087443}.company-user-badges .inactive{background:#f2f4f7;color:#667085}.company-user-badges .protected{background:#fff1c9;color:#8b5200}.company-user-badges .access-scope.company{background:#e3ecff;color:#2d56a4}.company-users-footer{padding:12px;color:#60758d;text-align:right;font-size:.8rem}
.company-user-form{margin:16px auto 0;max-width:900px;background:#fff;border:1px solid #d8e2ee;border-radius:16px;padding:20px}.company-user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.company-user-form label{display:grid;gap:6px;font-weight:700;color:#294763}.company-user-form input,.company-user-form select{padding:11px 12px;border:1px solid #cbd8e7;border-radius:10px;background:#fff}.company-user-form small{font-weight:400;color:#6d8197}.company-user-form .span-2{grid-column:1/-1}.company-user-active{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.company-user-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.company-protected-admin{margin-top:16px;padding:14px;border:1px solid #f0c98c;border-radius:12px;background:#fff8e8}.company-protected-admin b,.company-protected-admin span{display:block}.company-protected-admin span{margin-top:4px;color:#74551f}.profile-security-boundary{margin:12px 0;padding:13px 15px;border-radius:12px;background:#f0fdfa;border:1px solid #b9d7cd}.profile-security-boundary b,.profile-security-boundary span{display:block}.profile-security-boundary b{color:#0f766e}.profile-security-boundary span{margin-top:3px;color:#526a85}.agent-company-scope{padding:5px 9px;border-radius:999px;background:#e6f5ef;color:#0f766e;font-size:.75rem;font-weight:800}

/* V34.9.16 — restrições organizadas pelas abas da barra lateral */
.profile-permission-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:10px;margin-bottom:8px}.profile-permission-search{display:grid;gap:5px;color:#38516b;font-size:.7rem;font-weight:800}.profile-permission-search input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #c8d5e3;border-radius:10px;background:#fff;color:#172b45;font:inherit}.profile-permission-search input:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.profile-permission-global-action{min-height:42px;white-space:nowrap}.profile-permission-help{margin:0 0 10px;color:#6b7f95;font-size:.72rem}.profile-permission-list{max-height:min(54vh,560px);overflow:auto;padding:8px;border:1px solid #d5e0eb;border-radius:13px;background:#f3f6fa;scrollbar-gutter:stable}.profile-permission-group{margin-bottom:8px;border:1px solid #d7e2ec;border-left:4px solid var(--permission-group-color);border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(20,50,83,.045);overflow:hidden}.profile-permission-group:last-of-type{margin-bottom:0}.profile-permission-group-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;background:#fff}.profile-permission-group-toggle{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:10px 12px;border:0;background:transparent;color:#193a5d;text-align:left;font:inherit;cursor:pointer}.profile-permission-group-toggle:hover{background:#f7faff}.profile-permission-group-toggle:focus-visible,.profile-permission-module-toggle:focus-visible,.profile-permission-group-action:focus-visible{position:relative;z-index:1;outline:3px solid rgba(37,99,235,.28);outline-offset:-3px}.profile-permission-group-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--permission-group-color) 12%,white);color:var(--permission-group-color);font-weight:900}.profile-permission-group-copy{display:block;min-width:0}.profile-permission-group-copy strong,.profile-permission-group-copy small{display:block}.profile-permission-group-copy strong{overflow:hidden;color:#173858;font-size:.88rem;text-overflow:ellipsis;white-space:nowrap}.profile-permission-group-copy small{margin-top:2px;color:#71849a;font-size:.65rem}.profile-permission-chevron{color:var(--permission-group-color);font-size:1rem;font-weight:900}.profile-permission-group-action{align-self:center;margin-right:10px;padding:7px 10px!important;white-space:nowrap;font-size:.68rem!important}.profile-permission-group-content{padding:8px;background:#f7f9fc;border-top:1px solid #e2e9f1}.profile-permission-module{margin-bottom:6px;border:1px solid #dbe4ee;border-radius:9px;background:#fff;overflow:hidden}.profile-permission-module:last-child{margin-bottom:0}.profile-permission-module-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:9px;width:100%;padding:9px 11px;border:0;background:#fff;color:#244564;text-align:left;font:inherit;cursor:pointer}.profile-permission-module-toggle:hover{background:#f3f7fc}.profile-permission-module-toggle>span:first-child{font-size:.76rem;font-weight:750}.profile-permission-module-toggle small{min-width:38px;padding:3px 7px;border-radius:999px;background:#edf3f9;color:#5a7189;text-align:center;font-size:.61rem;font-weight:850}.profile-permission-module-toggle>[data-modulo-indicador]{color:#6c8196;font-weight:900}.profile-permission-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px;padding:9px 12px 11px;border-top:1px solid #e5ebf2;background:#fbfcfe}.profile-permission-actions label{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:6px 7px;border-radius:7px;color:#334e68;font-size:.72rem;cursor:pointer}.profile-permission-actions label:hover{background:#edf4fb}.profile-permission-actions input{flex:0 0 auto;margin-top:2px;accent-color:var(--permission-group-color,#2563eb)}.profile-permission-actions span{line-height:1.35}.profile-permission-empty{padding:28px 16px;color:#72859a;text-align:center;font-size:.78rem}
@media(max-width:760px){.company-users-hero,.company-user-form-screen>header{align-items:flex-start;flex-direction:column}.company-users-toolbar{flex-direction:column}.company-user-row{grid-template-columns:42px 1fr}.company-user-badges{grid-column:1/-1;justify-content:flex-start}.company-user-form-grid{grid-template-columns:1fr}.company-user-form .span-2{grid-column:auto}}
@media(max-width:760px){.profile-permission-toolbar{grid-template-columns:1fr}.profile-permission-global-action{width:100%}.profile-permission-list{max-height:58vh;padding:6px}.profile-permission-group-head{grid-template-columns:1fr}.profile-permission-group-action{justify-self:stretch;margin:0 10px 9px}.profile-permission-actions{grid-template-columns:1fr}}

/* V34.8.6 — responsáveis técnicos e dispensação farmacêutica segura */
.pharmacy-regulatory-banner.safe{border-color:#9bd6c2;background:#effcf7;color:#0b5d49}.pharmacy-regulatory-banner.safe>span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#d4f5e8;color:#087455;font-weight:900}.pharmacy-regulatory-banner .ghost{margin-top:8px}
.responsible-permissions{display:flex;gap:5px;flex-wrap:wrap}.responsible-permissions span{display:inline-flex!important;align-items:center;padding:4px 7px;border-radius:999px;border:1px solid #d4dde6;background:#f8fafc;color:#64748b;font-size:.64rem;font-weight:850}.responsible-permissions span.ok{border-color:#a7ddc9;background:#effcf7;color:#087455}.responsible-permissions span.warn{border-color:#f2c87a;background:#fff8e8;color:#8a5300}.responsible-permissions span.off{text-decoration:line-through;opacity:.68}
.responsible-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.responsible-access-grid>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:13px;border:1px solid #d6e4e0;border-radius:12px;background:#f8fcfb;cursor:pointer}.responsible-access-grid input{margin-top:3px}.responsible-access-grid span,.responsible-access-grid b,.responsible-access-grid small{display:block}.responsible-access-grid b{color:#183f38}.responsible-access-grid small{margin-top:4px;color:#657b76;line-height:1.35}
.pharmacy-table tr.finalized{background:#f5fcf9}.pharmacy-table tr.reversed{background:#fffaf0}.pharmacy-finalization-proof{display:grid;gap:7px;margin-top:10px;padding:12px;border:1px solid #b9dccf;border-radius:10px;background:#f3fbf8}.pharmacy-finalization-proof b{color:#0b5d49}.pharmacy-finalization-proof small{color:#5d746e}.regulatory-queue-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#fff4d6;color:#815100;font-size:.68rem;font-weight:850}.regulatory-queue-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#d89100}.dispensing-finalization-note{padding:11px 13px;border-left:4px solid #0f766e;border-radius:9px;background:#effcf7;color:#174f43;font-size:.76rem;line-height:1.5}
@media(max-width:900px){.responsible-access-grid{grid-template-columns:1fr}.responsible-permissions{min-width:160px}}

/* V34.8.7 — Base multissegmento e cronograma seguro */
.company-segment-card.base-stage{border-color:#c7d2fe;background:linear-gradient(145deg,#fff,#f5f7ff)}
.company-segment-card em.base{background:#e0e7ff;color:#3730a3;border:1px solid #c7d2fe}
.vertical-roadmap-shell{--vertical-accent:#334155;display:grid;gap:16px;padding:6px;color:#15365f}
.vertical-roadmap-hero{position:relative;display:flex;align-items:center;gap:18px;min-height:132px;padding:24px;border-radius:20px;color:#fff;background:linear-gradient(135deg,var(--vertical-accent),#15365f);overflow:hidden;box-shadow:0 16px 35px rgba(15,23,42,.12)}
.vertical-roadmap-hero::after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-55px;top:-80px;background:rgba(255,255,255,.09)}
.vertical-roadmap-hero>div,.vertical-roadmap-hero>span{position:relative;z-index:1}
.vertical-roadmap-icon{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:18px;font-size:31px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2)}
.vertical-roadmap-hero small{display:block;font-weight:900;letter-spacing:.12em;opacity:.8;margin-bottom:5px}
.vertical-roadmap-hero h2{margin:0 0 5px;font-size:27px}.vertical-roadmap-hero p{margin:0;max-width:760px;line-height:1.5;color:#eef6ff}
.vertical-status{margin-left:auto;white-space:nowrap;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900}
.vertical-status.base{background:#d1fae5;color:#065f46}.vertical-status.planned{background:#fef3c7;color:#92400e}
.vertical-security-banner{display:flex;align-items:flex-start;gap:13px;padding:16px 18px;border:1px solid #bbf7d0;border-radius:16px;background:#f0fdf4}
.vertical-security-banner>span{font-size:24px}.vertical-security-banner b{display:block;color:#166534;margin-bottom:4px}.vertical-security-banner p{margin:0;color:#3f6651;line-height:1.5}
.vertical-roadmap-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.vertical-roadmap-summary>div{padding:15px;border:1px solid #dbe5f2;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.vertical-roadmap-summary small{display:block;color:#64748b;font-weight:800;letter-spacing:.06em;margin-bottom:7px}.vertical-roadmap-summary b{font-size:17px;color:#15365f}
.vertical-roadmap-section{border:1px solid #dbe5f2;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.vertical-roadmap-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid #e5edf6}
.vertical-roadmap-section>header small{font-weight:900;letter-spacing:.1em;color:var(--vertical-accent)}.vertical-roadmap-section>header h3{margin:3px 0 0;color:#15365f}
.vertical-roadmap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;padding:15px}
.vertical-roadmap-phase{border:1px solid #dbe5f2;border-radius:14px;padding:14px;background:#fbfdff;min-height:142px}
.vertical-roadmap-phase.concluida{border-color:#a7f3d0;background:#f0fdf4}.vertical-roadmap-phase.em_andamento{border-color:#bfdbfe;background:#eff6ff}.vertical-roadmap-phase.bloqueada{border-color:#fecaca;background:#fef2f2}
.vertical-roadmap-phase header{display:flex;align-items:flex-start;gap:10px}.vertical-roadmap-phase header>span{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#e7eef7;color:#334155;font-weight:900}
.vertical-roadmap-phase header>div{min-width:0;flex:1}.vertical-roadmap-phase header b{display:block;color:#15365f}.vertical-roadmap-phase header small{display:block;color:#64748b;margin-top:3px}.vertical-roadmap-phase header em{font-style:normal;font-size:10px;font-weight:900;text-transform:uppercase;color:#64748b}
.vertical-roadmap-phase p{margin:13px 0 0;color:#526783;line-height:1.48}.vertical-roadmap-phase footer{margin-top:12px;padding-top:10px;border-top:1px dashed #cbd5e1;color:#475569;font-size:12px;font-weight:700}
.vertical-roadmap-note{padding:16px 18px;border-radius:15px;background:#f8fafc;border:1px dashed #cbd5e1}.vertical-roadmap-note b{color:#15365f}.vertical-roadmap-note p{margin:5px 0 0;color:#526783;line-height:1.5}
.vertical-roadmap-empty{display:grid;place-items:center;min-height:280px;padding:35px;text-align:center;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc}.vertical-roadmap-empty>span{font-size:42px}.vertical-roadmap-empty h2{margin:10px 0 4px}.vertical-roadmap-empty p{max-width:620px;color:#64748b}
.vertical-roadmap-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.vertical-roadmap-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;padding:10px;border:1px solid #dbe5f2;border-radius:13px;background:#fff;color:#334155;font-weight:800;cursor:pointer}.vertical-roadmap-tabs button:hover,.vertical-roadmap-tabs button.selected{border-color:#93c5fd;background:#eff6ff}.vertical-roadmap-tabs button small{padding:3px 6px;border-radius:999px;background:#d1fae5;color:#065f46}
.roadmap-all .roadmap-segment{margin-bottom:15px}.roadmap-all [data-roadmap-content]{display:grid;gap:15px}
@media(max-width:900px){.vertical-roadmap-summary,.vertical-roadmap-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.vertical-roadmap-hero{align-items:flex-start;flex-wrap:wrap}.vertical-status{margin-left:0}}
@media(max-width:600px){.vertical-roadmap-summary,.vertical-roadmap-tabs{grid-template-columns:1fr}.vertical-roadmap-grid{grid-template-columns:1fr}.vertical-roadmap-section>header{align-items:flex-start;flex-direction:column}.vertical-roadmap-hero{padding:19px}.vertical-roadmap-icon{flex-basis:54px;height:54px}}

/* V34.8.8 — Comércio Geral: hub e auditoria de conclusão */
.commerce-hub-shell,.commerce-readiness-shell{padding:18px;background:#f5f8fc;min-height:100%;color:#12365f}
.commerce-hub-hero,.commerce-readiness-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;border-radius:22px;background:linear-gradient(135deg,#103f70,#0f5f73);color:#fff;box-shadow:0 18px 40px rgba(15,63,112,.16)}
.commerce-hub-hero small,.commerce-readiness-hero small{font-size:.72rem;font-weight:800;letter-spacing:.12em;opacity:.82}
.commerce-hub-hero h1,.commerce-readiness-hero h1{margin:6px 0 8px;font-size:2rem;color:#fff}
.commerce-hub-hero p,.commerce-readiness-hero p{margin:0;max-width:760px;line-height:1.55;color:#e8f3ff}
.commerce-hub-hero .primary,.commerce-readiness-toolbar .primary{white-space:nowrap}
.commerce-hub-metrics,.commerce-readiness-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.commerce-hub-metrics>div,.commerce-readiness-cards>div{padding:17px 18px;border:1px solid #d8e4f1;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(15,63,112,.06)}
.commerce-hub-metrics small,.commerce-readiness-cards small{display:block;color:#64748b;font-size:.69rem;font-weight:800;letter-spacing:.08em}
.commerce-hub-metrics b,.commerce-readiness-cards b{display:block;margin-top:7px;font-size:1.55rem;color:#123f70}
.commerce-hub-stage,.commerce-hub-modules,.commerce-audit-group{margin-top:16px;border:1px solid #d8e4f1;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,63,112,.06)}
.commerce-hub-stage>header,.commerce-hub-modules>header,.commerce-audit-group>header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #e4ecf5;background:#fbfdff}
.commerce-hub-stage h2,.commerce-hub-modules h2,.commerce-audit-group h2{margin:3px 0 0;color:#173f6b;font-size:1.1rem}
.commerce-hub-stage header small,.commerce-hub-modules header small,.commerce-audit-group header small{font-size:.68rem;font-weight:800;letter-spacing:.09em;color:#64748b}
.commerce-hub-stage header span,.commerce-audit-group>header>span{padding:6px 10px;border-radius:999px;background:#e5f2ff;color:#0f4c81;font-weight:800}
.commerce-stage-line{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;padding:18px;overflow:auto}
.commerce-stage-line article{position:relative;padding:14px;border:1px solid #dce6f1;border-radius:13px;background:#f8fafc;min-width:130px}
.commerce-stage-line article b,.commerce-stage-line article small{display:block}.commerce-stage-line article small{margin-top:5px;color:#64748b}
.commerce-stage-line article.done{background:#ecfdf5;border-color:#b7ead3}.commerce-stage-line article.active{background:#eff6ff;border-color:#93c5fd;box-shadow:inset 4px 0 #2563eb}
.commerce-hub-modules>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px}
.commerce-shortcut{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;padding:14px;border:1px solid #dce6f1;border-radius:14px;background:#fff;text-align:left;color:#173f6b}
.commerce-shortcut:hover{border-color:#76a9da;transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,63,112,.09)}
.commerce-shortcut>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eaf3fb;font-size:1.25rem}.commerce-shortcut b,.commerce-shortcut small{display:block}.commerce-shortcut small{margin-top:4px;color:#64748b;line-height:1.35}.commerce-shortcut i{font-style:normal;font-size:1.25rem}
.commerce-readiness-score{min-width:170px;padding:17px 20px;border:1px solid rgba(255,255,255,.25);border-radius:18px;background:rgba(255,255,255,.12);text-align:center}.commerce-readiness-score b{display:block;font-size:2rem;color:#fff}.commerce-readiness-score span{display:block;margin-top:3px;font-size:.78rem;font-weight:700;color:#eff7ff}.commerce-readiness-score.ready{background:rgba(16,185,129,.24)}
.commerce-readiness-alert{display:flex;align-items:flex-start;gap:14px;margin:16px 0;padding:16px 18px;border-radius:16px;border:1px solid}.commerce-readiness-alert>span{font-size:1.4rem}.commerce-readiness-alert b{display:block}.commerce-readiness-alert p{margin:4px 0 0;line-height:1.45}.commerce-readiness-alert.danger{background:#fff1f2;border-color:#fecdd3;color:#9f1239}.commerce-readiness-alert.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.commerce-readiness-alert.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.commerce-readiness-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.commerce-readiness-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;border:1px solid #d8e4f1;border-radius:15px;background:#fff}.commerce-readiness-toolbar>div{display:flex;gap:9px;flex-wrap:wrap}.commerce-readiness-toolbar small{color:#64748b;text-align:right}
.commerce-readiness-groups{display:grid;gap:16px;margin-top:16px}.commerce-audit-group>div{display:grid;gap:0}.commerce-audit-item{display:grid;grid-template-columns:92px 1fr;border-top:1px solid #e6edf5}.commerce-audit-item:first-child{border-top:0}.commerce-audit-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:15px 10px;background:#f8fafc;border-right:1px solid #e6edf5}.commerce-audit-status span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-weight:900}.commerce-audit-status small{font-size:.69rem;font-weight:800;text-align:center}.commerce-audit-item.approved .commerce-audit-status span{background:#d1fae5;color:#047857}.commerce-audit-item.warning .commerce-audit-status span{background:#fef3c7;color:#a16207}.commerce-audit-item.blocker .commerce-audit-status span{background:#fee2e2;color:#b91c1c}.commerce-audit-item.untested .commerce-audit-status span,.commerce-audit-item.na .commerce-audit-status span{background:#e2e8f0;color:#475569}
.commerce-audit-copy{padding:15px 17px}.commerce-audit-copy>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.commerce-audit-copy b,.commerce-audit-copy small{display:block}.commerce-audit-copy small{margin-top:3px;color:#64748b}.commerce-audit-copy p{margin:8px 0;color:#475569;line-height:1.45}.commerce-audit-evidence{padding:9px 11px;border-radius:10px;background:#f8fafc;color:#334155;font-size:.83rem;border-left:3px solid #cbd5e1}.commerce-audit-item.approved .commerce-audit-evidence{border-color:#34d399}.commerce-audit-item.warning .commerce-audit-evidence{border-color:#f59e0b}.commerce-audit-item.blocker .commerce-audit-evidence{border-color:#ef4444}
.commerce-audit-editor{display:grid;grid-template-columns:170px 1fr auto;gap:9px;margin-top:11px}.commerce-audit-editor select,.commerce-audit-editor input{min-width:0}.commerce-audit-editor.readonly{grid-template-columns:170px 1fr}.commerce-readiness-loading{display:grid;place-items:center;gap:8px;min-height:300px;color:#31587e}.commerce-readiness-loading span{font-size:2.2rem}
@media(max-width:1000px){.commerce-hub-metrics,.commerce-readiness-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-hub-modules>div{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-stage-line{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:700px){.commerce-hub-shell,.commerce-readiness-shell{padding:10px}.commerce-hub-hero,.commerce-readiness-hero{align-items:flex-start;flex-direction:column;padding:22px}.commerce-readiness-score{width:100%;box-sizing:border-box}.commerce-hub-metrics,.commerce-readiness-cards,.commerce-hub-modules>div{grid-template-columns:1fr}.commerce-readiness-toolbar{align-items:flex-start;flex-direction:column}.commerce-readiness-toolbar small{text-align:left}.commerce-audit-item{grid-template-columns:1fr}.commerce-audit-status{flex-direction:row;border-right:0;border-bottom:1px solid #e6edf5;justify-content:flex-start}.commerce-audit-editor{grid-template-columns:1fr}.commerce-audit-copy>header{flex-direction:column}.commerce-stage-line{grid-template-columns:repeat(2,minmax(150px,1fr))}}

/* V34.8.9 — layout global de janela: cabeçalho, conteúdo rolável e ações fixas */
.janela-body:not(.pdv-window-body){display:flex;flex-direction:column;min-height:0;overflow:hidden!important;padding:0!important}
.janela-body:not(.pdv-window-body)>*{flex:1;min-height:0;max-height:100%;overflow:auto}
.standard-register-screen{height:100%;min-height:0;overflow:hidden!important;box-sizing:border-box}
.standard-register-content{flex:1;min-height:0;overflow:auto;padding-bottom:8px}
.standard-register-footer,.fiscal-draft-footer,.manual-entry-footer,.f5-window-action-bar{flex:0 0 auto;position:relative;z-index:6;box-shadow:0 -6px 18px rgba(15,35,55,.08)}
.f5-window-layout{height:100%;min-height:0;display:flex!important;flex-direction:column;overflow:hidden!important;background:#f3f6fa;color:#17324d}
.f5-window-scroll{flex:1;min-height:0;overflow:auto;padding:16px 18px}
.f5-window-action-bar{min-height:54px;padding:8px 14px;border-top:1px solid #cbd7e2;background:#eef2f6;display:flex;align-items:center;justify-content:space-between;gap:10px}
.f5-window-action-bar>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.f5-window-action-bar button{border:1px solid #b9c9d8;border-radius:8px;background:#fff;color:#173b5c;padding:9px 13px;font-weight:800;cursor:pointer}
.f5-window-action-bar button.primary{background:#174ea6;border-color:#174ea6;color:#fff}.f5-window-action-bar button.danger{background:#b42318;border-color:#b42318;color:#fff}.f5-window-action-bar button:disabled{opacity:.55;cursor:not-allowed}
.purchase-screen-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 20px;background:linear-gradient(135deg,#0b2646,#174ea6);color:#fff}.purchase-screen-header.internal{background:linear-gradient(135deg,#0b5f58,#0f766e)}.purchase-screen-header.fiscal{background:linear-gradient(135deg,#17456f,#0b5795)}
.purchase-screen-header small{font-size:.58rem;font-weight:900;letter-spacing:.13em;opacity:.8}.purchase-screen-header h2{margin:3px 0;font-size:1.18rem}.purchase-screen-header p{margin:0;font-size:.72rem;opacity:.85}.purchase-screen-header>span{font-size:1.18rem;font-weight:900;border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:9px 12px;background:rgba(255,255,255,.1)}
.purchase-section{background:#fff;border:1px solid #d5e0e9;border-radius:12px;padding:14px;margin-bottom:13px}.purchase-section h3{margin:0 0 12px;color:#17456f;font-size:.95rem}
.purchase-form-grid,.purchase-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.purchase-form-grid .span-2,.purchase-payment-grid .span-2{grid-column:span 2}.purchase-form-grid .span-4{grid-column:1/-1}
.purchase-form-grid label,.purchase-payment-grid label,.purchase-item-entry label{display:flex;flex-direction:column;gap:5px;color:#4c657c;font-size:.68rem;font-weight:850}.purchase-form-grid input,.purchase-form-grid select,.purchase-form-grid textarea,.purchase-payment-grid input,.purchase-payment-grid select,.purchase-item-entry input{width:100%;box-sizing:border-box;border:1px solid #bdccda;border-radius:8px;background:#fff;padding:9px 10px;color:#17324d}.purchase-form-grid textarea{min-height:70px;resize:vertical}
.purchase-item-entry{display:grid;grid-template-columns:minmax(260px,2fr) minmax(95px,.65fr) minmax(125px,.8fr) auto;gap:8px;align-items:end;margin-bottom:8px}.purchase-item-entry .span-2{grid-column:auto}.purchase-item-entry button{height:39px;border:0;border-radius:8px;padding:0 14px;background:#174ea6;color:#fff;font-weight:850;cursor:pointer}
.purchase-section table,.purchase-detail-panel table,.purchase-installments table{width:100%;border-collapse:collapse;font-size:.72rem}.purchase-section th,.purchase-detail-panel th,.purchase-installments th{background:#edf3f8;color:#526c82;text-align:left;padding:8px;position:sticky;top:0}.purchase-section td,.purchase-detail-panel td,.purchase-installments td{border-top:1px solid #e3e9ef;padding:8px}.purchase-section .right,.purchase-detail-panel .right,.purchase-installments .right{text-align:right}.purchase-section td small{display:block;color:#738699}.danger-link{border:0!important;background:transparent!important;color:#b42318!important;padding:4px!important;cursor:pointer;text-decoration:underline}
.purchase-validation-summary{border:1px solid #ef9a9a;background:#fff1f0;color:#8c1d18;border-radius:10px;padding:11px 13px;margin-bottom:12px}.purchase-validation-summary ul{margin:7px 0 0;padding-left:18px}.purchase-validation-summary li{margin:3px 0}
.purchase-installments{margin-top:10px;border:1px solid #d7e1ea;border-radius:10px;overflow:auto}.purchase-installments input{width:100%;box-sizing:border-box;border:1px solid #c3d0dc;border-radius:6px;padding:7px}.purchase-installment-total{text-align:right;padding:9px 11px;background:#eef4f8;color:#49647a}.purchase-no-finance{border:1px solid #efc46a;background:#fff9e9;border-radius:9px;padding:11px}.purchase-no-finance p{margin:4px 0;color:#775817}.purchase-no-finance textarea{width:100%;min-height:60px;box-sizing:border-box}
.purchase-search-row{display:flex;gap:8px;margin-bottom:12px;align-items:center}.purchase-search-row input{flex:1;border:1px solid #bdccda;border-radius:9px;padding:10px}.purchase-search-row button{border:1px solid #b9c9d8;border-radius:8px;padding:10px 13px;background:#fff;font-weight:800;cursor:pointer}.purchase-search-row button.primary{background:#174ea6;color:#fff;border-color:#174ea6}
.purchase-mov-list{display:grid;gap:7px}.purchase-mov-card{width:100%;display:flex;justify-content:space-between;gap:15px;text-align:left;border:1px solid #d5e0e9;border-radius:10px;background:#fff;padding:11px 13px;cursor:pointer}.purchase-mov-card.active{border-color:#3f75c8;box-shadow:0 0 0 2px rgba(63,117,200,.12)}.purchase-mov-card span{display:flex;flex-direction:column;gap:3px}.purchase-mov-card small{color:#71869a}.purchase-mov-card .status-cancelled{color:#b42318}.purchase-mov-card .status-ok{color:#18864b}
.purchase-detail-panel{margin-top:13px;background:#fff;border:1px solid #cfdbe6;border-radius:12px;padding:14px}.purchase-detail-panel>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e0e7ee;padding-bottom:10px}.purchase-detail-panel h3{margin:2px 0}.purchase-detail-panel h4{color:#17456f;margin:14px 0 8px}.purchase-status{border-radius:18px;background:#e7f7ee;color:#167044;padding:5px 9px;font-size:.68rem;font-weight:850}.purchase-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.purchase-detail-grid article{display:flex;flex-direction:column;gap:4px;background:#f5f8fb;border:1px solid #e0e8ef;border-radius:8px;padding:9px}.purchase-detail-grid span{font-size:.59rem;text-transform:uppercase;color:#718499}.purchase-account-list{display:grid;gap:6px}.purchase-account-list>div{display:grid;grid-template-columns:1fr auto auto;gap:8px;background:#f5f8fb;border:1px solid #e0e8ef;border-radius:8px;padding:9px}.purchase-cancel-record{margin-top:12px;background:#fff0ef;border:1px solid #efb3ae;border-radius:9px;padding:10px;color:#84251e}
.lot-entry-modal input[type="date"],.stock-operation-modal input[type="date"]{min-width:150px;font-variant-numeric:tabular-nums}.inventory-adjustment-history{margin-bottom:13px}.stock-history-head>div{display:grid;gap:3px}.stock-history-head small{color:#6d8193;font-size:.68rem}
@media(max-width:760px){.purchase-form-grid,.purchase-payment-grid,.purchase-detail-grid{grid-template-columns:1fr 1fr}.purchase-form-grid .span-4{grid-column:1/-1}.purchase-item-entry{grid-template-columns:1fr 1fr}.purchase-item-entry label:first-child{grid-column:1/-1}.purchase-item-entry button{width:100%}.f5-window-action-bar{align-items:stretch}.f5-window-action-bar,.f5-window-action-bar>div{flex-wrap:wrap}.f5-window-action-bar button{flex:1}.purchase-search-row{flex-wrap:wrap}.purchase-search-row input{flex-basis:100%}}
@media(max-width:520px){.purchase-form-grid,.purchase-payment-grid,.purchase-detail-grid{grid-template-columns:1fr}.purchase-form-grid .span-2,.purchase-form-grid .span-4{grid-column:auto}.purchase-screen-header{align-items:flex-start;flex-direction:column}.purchase-item-entry{grid-template-columns:1fr}.purchase-item-entry label:first-child{grid-column:auto}.purchase-account-list>div{grid-template-columns:1fr}.standard-register-footer>*:not([data-action="adicionar"]):not(#btn-gravar-produto){display:none}.standard-register-footer::before{content:'Mais';margin-right:auto;border:1px solid #b9c9d8;border-radius:8px;background:#fff;padding:9px 13px;font-weight:800}}
.product-list-window{height:100%;min-height:0!important;overflow:hidden!important}.product-list-window>.product-results-area{flex:1;min-height:0;overflow:auto}.product-list-window>.product-footer-bar{flex:none;position:relative;z-index:8;box-shadow:0 -7px 18px rgba(15,35,55,.10)}

/* V34.8.9 final pré-deploy — Formas de Pagamento e Proteção e Recuperação */
.payment-catalog-shell,.protection-recovery-shell{height:100%;min-height:0;background:#f4f7fb}
.payment-catalog-header,.protection-recovery-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 26px;background:linear-gradient(120deg,#123b63,#185d8d);color:#fff;border-radius:16px;margin:16px}
.payment-catalog-header small,.protection-recovery-header small{font-weight:800;letter-spacing:.13em;opacity:.8}.payment-catalog-header h2,.protection-recovery-header h2{margin:5px 0;font-size:1.55rem}.payment-catalog-header p,.protection-recovery-header p{margin:0;opacity:.9}.payment-catalog-header>span,.protection-recovery-header>span{background:rgba(255,255,255,.14);padding:10px 14px;border-radius:12px;font-weight:800;white-space:nowrap}
.payment-toolbar{display:flex;gap:10px;align-items:center;margin:0 16px 14px}.payment-toolbar input{flex:1;min-width:220px;padding:11px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.payment-catalog-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0 16px 18px}.payment-catalog-grid:has(.payment-editor){grid-template-columns:minmax(0,1.6fr) minmax(330px,.8fr)}
.payment-catalog-grid section,.payment-editor,.protection-recovery-shell .f5-window-scroll>section{background:#fff;border:1px solid #dbe4ef;border-radius:14px;padding:16px;box-shadow:0 8px 24px rgba(15,42,66,.06)}.payment-catalog-grid td small{display:block;color:#64748b;margin-top:3px}.payment-editor header{display:flex;justify-content:space-between;align-items:center}.payment-editor header h3{margin:0}.payment-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}.payment-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:700;color:#334155}.payment-form-grid .span-2{grid-column:span 2}.payment-form-grid input,.payment-form-grid select{padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.payment-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}.payment-check-grid label{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:9px;font-size:.82rem}.payment-preview{padding:11px;border-radius:10px;background:#eef6ff;color:#164e7a}.payment-editor-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.payment-loading{padding:30px;color:#475569}.payment-catalog-shell .f5-window-action-bar span{color:#475569}
.protection-warning{margin:0 16px 16px!important;background:#fff7e5!important;border-color:#f4c96a!important}.protection-warning p{margin:6px 0 0;color:#745019}.protection-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 16px 16px}.protection-status-card{background:#fff;border:1px solid #dbe4ef;border-radius:14px;padding:15px;display:flex;flex-direction:column;gap:6px;min-width:0}.protection-status-card span{font-size:.78rem;font-weight:800;color:#475569}.protection-status-card b{color:#123b63;overflow-wrap:anywhere}.protection-status-card small{color:#64748b}.protection-content-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(380px,1.4fr);gap:14px;margin:0 16px 16px}.protection-checklist h3,.protection-evidence-form h3,.protection-history h3{margin-top:0}.protection-checklist>div{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-bottom:1px dashed #dbe4ef}.protection-checklist>div:last-child{border-bottom:0}.protection-checklist span{color:#64748b}.protection-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.protection-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:700;color:#334155}.protection-form-grid .span-2{grid-column:span 2}.protection-form-grid input,.protection-form-grid select,.protection-form-grid textarea{padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}.protection-form-grid textarea{resize:vertical}.protection-form-grid .protection-check{flex-direction:row;align-items:flex-start;background:#f8fafc;padding:10px;border-radius:9px;border:1px solid #e2e8f0}.protection-form-actions{display:flex;justify-content:flex-end;margin-top:14px}.protection-history{margin:0 16px 16px}.protection-history code{font-size:.72rem;overflow-wrap:anywhere}.protection-recovery-shell .f5-window-action-bar span{color:#475569}
@media(max-width:1100px){.protection-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.protection-content-grid{grid-template-columns:1fr}}@media(max-width:900px){.payment-catalog-grid:has(.payment-editor){grid-template-columns:1fr}.payment-catalog-header,.protection-recovery-header{align-items:flex-start;flex-direction:column}.payment-form-grid,.protection-form-grid{grid-template-columns:1fr}.payment-form-grid .span-2,.protection-form-grid .span-2{grid-column:auto}.protection-status-grid{grid-template-columns:1fr}}

/* ========================================================================== */
/* V34.9.0 — COMPACTAÇÃO GLOBAL DOS HUBS, assistentes e inclusão rápida      */
/* ========================================================================== */
.module-hub{gap:10px}
.module-hub-hero{min-height:88px;padding:14px 20px;gap:14px;border-radius:14px;box-shadow:0 8px 22px color-mix(in srgb,var(--module-color) 18%,transparent)}
.module-hub-hero:after{width:150px;height:150px;right:-45px;top:-78px}
.module-hub-icon{width:44px;height:44px;border-radius:12px;font-size:1.25rem}
.module-hub-hero div>span{font-size:.58rem;letter-spacing:.12em}
.module-hub-hero h1{font-size:1.35rem;margin:2px 0}
.module-hub-hero p{font-size:.74rem;line-height:1.3}
.module-hub-toolbar{padding:8px 10px;border-radius:11px;gap:10px}
.module-hub-toolbar label{gap:3px;max-width:470px}
.module-hub-toolbar label input{min-height:34px;padding:6px 10px}
.module-card-grid{gap:10px}
.module-card{min-height:76px;padding:10px 12px}
.module-card-icon{width:40px;height:40px}
/* Hubs específicos antigos também seguem o mesmo uso compacto de espaço. */
.entry-hub{padding:12px}
.entry-hub-hero,.generic-hub-hero{min-height:88px;padding:14px 18px;margin-bottom:10px;border-radius:14px}
.entry-hub-hero>span{font-size:1.8rem}
.entry-hub-grid{gap:10px}
.entry-hub-grid button{min-height:82px;padding:11px}

.lookup-add-field{display:grid;grid-template-columns:minmax(0,1fr) 38px 38px;gap:5px;align-items:stretch}
.lookup-add-field>input,.lookup-add-field>select{width:100%;min-width:0;border:1px solid #cbd7e3;border-radius:7px;padding:8px 10px;background:#fff;color:#172033}
.lookup-add-field>button{border:1px solid #b9c9db;border-radius:7px;background:#eef5ff;color:#0b5795;font-weight:900;font-size:1.05rem;cursor:pointer;display:grid;place-items:center}
.lookup-add-field>button:last-child{background:#0b5795;color:#fff;border-color:#0b5795}
.lookup-add-field>button:hover{filter:brightness(.96);transform:translateY(-1px)}
.purchase-lookup-block{display:grid;gap:5px}
.purchase-lookup-block>span{font-size:.72rem;font-weight:800;color:#38506a}

.f5-quick-lookup-layer{position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:30000;display:grid;place-items:center;padding:18px}
.f5-quick-lookup-dialog,.f5-unit-quick-dialog{width:min(680px,96vw);max-height:min(840px,94vh);background:#fff;border-radius:16px;box-shadow:0 28px 90px rgba(15,23,42,.35);overflow:hidden;display:flex;flex-direction:column}
.f5-quick-lookup-dialog>header,.f5-unit-quick-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:14px 17px;background:#0b3d8c;color:#fff}
.f5-quick-lookup-dialog header small,.f5-unit-quick-dialog header small{font-size:.58rem;letter-spacing:.13em;font-weight:850;opacity:.75}
.f5-quick-lookup-dialog header h3,.f5-unit-quick-dialog header h3{margin:2px 0 0;color:#fff;font-size:1.08rem}
.f5-quick-lookup-dialog header button,.f5-unit-quick-dialog header button{background:none;border:0;color:#fff;font-size:1.55rem;cursor:pointer}
.f5-quick-lookup-toolbar{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-bottom:1px solid #dce5ee;background:#f7faff}
.f5-quick-lookup-toolbar input{min-height:40px;border:1px solid #cbd7e3;border-radius:8px;padding:8px 11px}
.f5-quick-lookup-results{overflow:auto;padding:8px;display:grid;gap:5px;min-height:220px;flex:1 1 auto}
.f5-quick-lookup-results button{border:1px solid #e0e7ef;background:#fff;border-radius:9px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;color:#172033}
.f5-quick-lookup-results button span{display:grid;gap:3px}.f5-quick-lookup-results button small{color:#708196}
.f5-quick-lookup-results button.active,.f5-quick-lookup-results button:hover{border-color:#4f8fd6;background:#eef6ff}
.f5-quick-lookup-results button.selected{box-shadow:inset 3px 0 #0b5795}
.f5-quick-lookup-empty{padding:36px;text-align:center;color:#718193}
.f5-quick-lookup-dialog>footer{display:flex;gap:15px;justify-content:center;padding:9px 12px;background:#f1f5f9;border-top:1px solid #dce5ee;font-size:.68rem;color:#64748b}
.f5-quick-lookup-dialog kbd{padding:2px 5px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;margin-right:2px}

.purchase-wizard-layout{height:100%;min-height:0}
.purchase-wizard-body{min-height:0;flex:1;display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden;background:#eef4f8}
.purchase-wizard-steps{overflow:auto;padding:10px 8px;background:#e5edf4;border-right:1px solid #c9d7e4;display:flex;flex-direction:column;gap:5px}
.purchase-wizard-steps button{border:1px solid transparent;background:transparent;border-radius:9px;padding:9px 8px;display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;text-align:left;color:#36516c;cursor:pointer}
.purchase-wizard-steps button>span{width:27px;height:27px;border-radius:8px;background:#d5e2ed;display:grid;place-items:center;font-weight:900;font-size:.74rem}
.purchase-wizard-steps button div{display:grid;gap:2px}.purchase-wizard-steps button b{font-size:.76rem}.purchase-wizard-steps button small{font-size:.63rem;color:#6f8295;line-height:1.25}
.purchase-wizard-steps button i{width:19px;height:19px;border-radius:50%;background:#dc2626;color:#fff;display:grid;place-items:center;font-style:normal;font-size:.68rem;font-weight:900}
.purchase-wizard-steps button.active{background:#fff;border-color:#c7d8e7;box-shadow:0 4px 12px rgba(22,55,88,.08);color:#0b3d8c}
.purchase-wizard-steps button.active>span{background:#0b5795;color:#fff}
.purchase-wizard-content{padding:14px 16px}
.purchase-wizard-content>.purchase-section{margin:0;min-height:100%}
.purchase-lot-summary{display:grid;gap:10px}.purchase-lot-summary article{border:1px solid #d8e2ec;border-radius:10px;background:#fff;overflow:hidden}.purchase-lot-summary article header{display:flex;justify-content:space-between;padding:9px 12px;background:#f4f8fb;border-bottom:1px solid #e0e7ef}.purchase-lot-summary article header span{font-size:.67rem;font-weight:800;color:#0f766e}.purchase-lot-summary article>div{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #edf1f5;font-size:.75rem}.purchase-lot-summary article>div:last-child{border-bottom:0}
.purchase-step-empty{padding:30px;text-align:center;border:1px dashed #c4d2df;border-radius:10px;background:#fbfdff;color:#64748b}.purchase-step-empty b{display:block;color:#334155;margin-bottom:5px}
.purchase-total-cards{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px}.purchase-total-cards article{border:1px solid #d7e2ec;border-radius:10px;background:#fff;padding:13px;display:grid;gap:5px}.purchase-total-cards span{font-size:.67rem;color:#6f8193}.purchase-total-cards b{font-size:1.12rem;color:#0b3d8c}
.purchase-review-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:9px;margin-bottom:12px}.purchase-review-grid article{border:1px solid #d7e2ec;border-radius:9px;background:#fff;padding:10px;display:grid;gap:4px}.purchase-review-grid span{font-size:.64rem;color:#718193}.purchase-review-grid b{font-size:.8rem;color:#22384d}
.purchase-confirm-note{padding:11px 13px;border-radius:9px;background:#e8f5ef;border:1px solid #a8d9c4;color:#155e4b}.purchase-confirm-note p{margin:4px 0 0;font-size:.73rem;line-height:1.4}

.measurement-unit-shell{height:100%}.measurement-unit-header{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;background:linear-gradient(100deg,#4f46e5,#243b75);color:#fff}.measurement-unit-header small{font-size:.58rem;letter-spacing:.13em}.measurement-unit-header h2{color:#fff;margin:2px 0}.measurement-unit-header p{margin:0;font-size:.74rem;color:rgba(255,255,255,.78)}.measurement-unit-header>span{padding:7px 10px;border-radius:9px;background:rgba(255,255,255,.14);font-weight:800}
.measurement-unit-toolbar{display:flex;gap:8px;padding:10px 0}.measurement-unit-toolbar input{flex:1;min-height:39px;border:1px solid #cad6e1;border-radius:8px;padding:8px 11px}
.measurement-unit-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:12px;align-items:start}.measurement-unit-grid>section,.measurement-unit-grid>aside{border:1px solid #d8e2ec;border-radius:11px;background:#fff;overflow:hidden}.measurement-unit-grid>aside{padding:13px;position:sticky;top:0}
.measurement-unit-grid table small{display:block;color:#77889a;margin-top:2px}.unit-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.65rem;font-weight:800}.unit-status.active{background:#dcfce7;color:#166534}.unit-status.inactive{background:#f1f5f9;color:#64748b}
.measurement-unit-form{display:grid;gap:9px}.measurement-unit-form h3{margin:0 0 4px;color:#0b3d8c}.measurement-unit-form>label,.f5-unit-form-grid label{display:grid;gap:4px;font-size:.72rem;font-weight:750;color:#40566d}.measurement-unit-form input,.f5-unit-form-grid input{border:1px solid #cbd7e3;border-radius:7px;padding:8px 9px}.measurement-unit-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:5px}.measurement-unit-empty{padding:28px 12px;text-align:center;color:#718193}.measurement-unit-empty b{color:#334155}.measurement-unit-empty p{font-size:.73rem}
.f5-unit-quick-dialog{padding-bottom:0}.f5-unit-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;padding:14px}.f5-unit-form-grid .span-2{grid-column:span 2}.f5-unit-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;padding:0 14px 12px}.f5-unit-checks label{font-size:.72rem;color:#40566d}.f5-unit-quick-dialog>.safe-copy-note{margin:0 14px 12px}.f5-unit-quick-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;background:#f3f6f9;border-top:1px solid #dce5ee}

@media(max-width:900px){.purchase-wizard-body{grid-template-columns:1fr}.purchase-wizard-steps{flex-direction:row;border-right:0;border-bottom:1px solid #c9d7e4;overflow-x:auto}.purchase-wizard-steps button{min-width:175px}.purchase-total-cards,.purchase-review-grid{grid-template-columns:repeat(2,1fr)}.measurement-unit-grid{grid-template-columns:1fr}.measurement-unit-grid>aside{position:static}}
@media(max-width:620px){.module-hub-hero{min-height:72px;padding:11px 13px}.module-hub-hero p{display:none}.module-hub-icon{width:38px;height:38px}.module-hub-hero h1{font-size:1.15rem}.lookup-add-field{grid-template-columns:minmax(0,1fr) 36px 36px}.purchase-total-cards,.purchase-review-grid,.f5-unit-form-grid,.f5-unit-checks{grid-template-columns:1fr}.f5-unit-form-grid .span-2{grid-column:auto}.f5-quick-lookup-toolbar{grid-template-columns:1fr}.purchase-wizard-steps button{min-width:150px}.purchase-wizard-steps button small{display:none}}

.lookup-add-field button:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.35)}

/* V34.9.1 — HUBS SEM BANNER: foco integral nas opções e rotinas */
.f5-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.module-hub.module-hub-without-hero{height:100%;min-height:0;box-sizing:border-box;overflow:auto;padding:12px;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:10px;background:linear-gradient(180deg,#f7f9fc,#f3f6fa)}
.module-hub-without-hero .module-hub-toolbar{min-height:0;align-self:start;border-top:3px solid var(--module-color,#0b5795);background:#fff;box-shadow:0 5px 14px rgba(15,23,42,.05)}
.module-hub-without-hero .module-card-grid{align-content:start;grid-auto-rows:minmax(76px,max-content)}
.module-hub-without-hero .module-card-wrap{align-self:stretch}
.module-hub-without-hero .module-filter-empty{align-self:start}
/* Proteção contra renderizadores antigos de hubs que ainda tentem montar banners decorativos. */
.module-hub>.module-hub-hero,.entry-hub>.entry-hub-hero,.generic-hub>.generic-hub-hero{display:none!important}
.entry-hub{align-content:start}
.entry-hub-grid{align-content:start}
.people-hub .module-card{min-height:82px}
@media(max-width:680px){.module-hub.module-hub-without-hero{padding:8px}.module-hub-without-hero .module-hub-toolbar{padding:8px}.people-hub .module-card{min-height:76px}}

/* V34.9.2 — padronização das rotinas internas e foco no conteúdo */
.f5-routine-body{min-height:0;overflow:hidden;background:#f3f6fa}
.f5-routine-body>.f5-window-layout{height:100%}
.f5-routine-inline-title{margin:10px 16px 0!important;font-size:1.08rem!important;color:#17324d!important;line-height:1.2}
.f5-routine-inline-subtitle{margin:2px 16px 10px!important;font-size:.73rem!important;color:#6b7d90!important}
.f5-context-strip,.f5-legacy-context-strip{flex:0 0 auto!important;min-height:44px!important;max-height:64px!important;padding:8px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;overflow:hidden!important;border-bottom:1px solid rgba(15,23,42,.12)!important;box-shadow:none!important}
.f5-context-strip>div,.f5-legacy-context-strip>div{min-width:0}
.f5-context-strip small,.f5-context-strip p,.f5-legacy-context-strip small,.f5-legacy-context-strip p{display:none!important}
.f5-context-strip h1,.f5-context-strip h2,.f5-context-strip h3,.f5-legacy-context-strip h1,.f5-legacy-context-strip h2,.f5-legacy-context-strip h3{margin:0!important;font-size:1rem!important;line-height:1.2!important;color:inherit!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f5-context-strip>span,.f5-legacy-context-strip>span{font-size:.78rem!important;padding:5px 8px!important;white-space:nowrap}

/* Cadastro único de Pessoas */
.people-register-shell,.people-form-shell{height:100%;min-height:0}
.people-register-scroll{display:grid;grid-auto-rows:max-content;gap:10px}
.people-register-toolbar{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(150px,.55fr) minmax(130px,.45fr) auto;gap:8px;align-items:end;padding:2px 0 4px}
.people-search-block{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:6px}
.people-register-toolbar input,.people-register-toolbar select{min-height:40px;border:1px solid #cbd7e3;border-radius:8px;background:#fff;padding:8px 10px;font:inherit;color:#17324d}
.people-summary-row,.financial-summary-row{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px}
.people-summary-row article,.financial-summary-row article{padding:11px 13px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;display:grid;gap:3px;box-shadow:0 4px 12px rgba(15,23,42,.035)}
.people-summary-row span,.financial-summary-row span{font-size:.66rem;color:#6f8194;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.people-summary-row b,.financial-summary-row b{font-size:1.08rem;color:#17324d}.financial-summary-row small{font-size:.63rem;color:#74869a}.financial-summary-row article.warning{border-left:4px solid #f59e0b}.financial-summary-row article.success{border-left:4px solid #16a34a}
.people-table-panel,.financial-account-table{border:1px solid #d8e2ec;border-radius:11px;background:#fff;overflow:hidden}.people-table-panel table small,.financial-account-table table small{display:block;color:#718295;margin-top:3px}.person-role-list{display:flex;gap:4px;flex-wrap:wrap}.person-role-badge{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.61rem;font-weight:800}.role-fornecedor{background:#e0f2fe;color:#075985}.role-vendedor{background:#f3e8ff;color:#6b21a8}.role-transportadora{background:#ecfeff;color:#155e75}.role-tecnico{background:#ecfdf5;color:#166534}.role-contador{background:#fff7ed;color:#9a3412}
.people-form-body{flex:1;min-height:0;display:grid;grid-template-columns:225px minmax(0,1fr);overflow:hidden;background:#edf3f8}.people-form-steps{overflow:auto;padding:10px 8px;background:#e6edf4;border-right:1px solid #c9d7e4;display:flex;flex-direction:column;gap:5px}.person-step{border:1px solid transparent;background:transparent;border-radius:9px;padding:8px;display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;text-align:left;color:#36516c;cursor:pointer}.person-step>span{width:27px;height:27px;border-radius:8px;background:#d3e0eb;display:grid;place-items:center;font-weight:900;font-size:.72rem}.person-step div{display:grid;gap:2px}.person-step b{font-size:.75rem}.person-step small{font-size:.62rem;color:#6f8295;line-height:1.2}.person-step i{width:18px;height:18px;border-radius:50%;background:#dc2626;color:#fff;display:grid;place-items:center;font-style:normal;font-size:.65rem;font-weight:900}.person-step.active{background:#fff;border-color:#c4d5e4;color:#0b3d8c;box-shadow:0 4px 12px rgba(15,23,42,.06)}.person-step.active>span{background:#0b5795;color:#fff}.person-form-section{display:grid;gap:12px;max-width:1100px;margin:0 auto}.person-form-section h3{margin:0;color:#0b3d8c;font-size:1rem}.person-section-help{margin:0;color:#64748b;font-size:.73rem;line-height:1.45}.person-form-grid{display:grid;gap:10px}.person-form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.person-form-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.person-form-grid .span-2{grid-column:span 2}.person-form-grid .span-3{grid-column:span 3}.person-form-grid label{display:grid;gap:5px;font-size:.71rem;font-weight:750;color:#3f566d}.person-form-grid input,.person-form-grid select,.person-form-grid textarea{min-height:38px;border:1px solid #cbd7e3;border-radius:8px;background:#fff;padding:8px 10px;font:inherit;color:#172033}.person-form-grid textarea{min-height:86px;resize:vertical}.person-inline-check{display:flex!important;align-items:center;gap:7px;padding:10px;border:1px solid #dbe4ec;border-radius:8px;background:#fff}.person-inline-check input{min-height:0!important}.person-role-selector{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px}.person-role-selector label{border:1px solid #d8e2ec;border-radius:10px;background:#fff;padding:12px;display:grid;grid-template-columns:auto 30px 1fr;gap:7px;align-items:center;cursor:pointer}.person-role-selector label.selected{border-color:#4f46e5;background:#eef2ff;box-shadow:inset 3px 0 #4f46e5}.person-role-selector label>span{font-size:1.1rem}.person-role-selector label>b{font-size:.76rem}.person-config-sections fieldset{border:1px solid #d8e2ec;border-radius:10px;background:#fff;padding:12px;margin:0}.person-config-sections legend{padding:0 6px;font-size:.75rem;font-weight:850;color:#0b3d8c}.person-config-sections{gap:10px}.person-empty-section{padding:28px;border:1px dashed #c7d3df;border-radius:10px;text-align:center;color:#64748b;background:#fff}

/* V34.9.172 — controles nunca podem ultrapassar a própria coluna. */
.janela :where(.field,.fiscal-field,.person-form-grid>*,.financial-form-grid>*,[class$="-form-grid"]>*,[class$="-editor-grid"]>*){min-width:0}
.janela :where(.person-form-grid,.financial-form-grid,[class$="-form-grid"],[class$="-editor-grid"]) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%;min-width:0;max-width:100%}
.janela :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-width:0;max-width:100%}

/* Financeiro organizado */
.financial-account-shell,.financial-movements-shell{height:100%;min-height:0}.financial-account-shell>.f5-window-scroll,.financial-movements-shell>.f5-window-scroll{display:grid;grid-auto-rows:max-content;gap:10px}.financial-summary-row{grid-template-columns:repeat(3,minmax(150px,1fr))}.financial-account-toolbar{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(145px,.5fr) minmax(150px,.5fr) auto;gap:8px;align-items:center}.financial-account-toolbar input,.financial-account-toolbar select{min-height:40px;border:1px solid #cbd7e3;border-radius:8px;background:#fff;padding:8px 10px;font:inherit}.financial-inline-editor{border:1px solid #cbd9e5;border-radius:11px;background:#fff;overflow:hidden}.financial-inline-editor>header{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;background:#edf4fa;border-bottom:1px solid #d7e2ec}.financial-inline-editor>header div{display:grid;gap:2px}.financial-inline-editor>header b{color:#0b3d8c}.financial-inline-editor>header small{color:#6f8193;font-size:.66rem}.financial-account-form{padding:12px}.financial-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.financial-form-grid .span-2{grid-column:span 2}.financial-form-grid label{display:grid;gap:5px;font-size:.7rem;font-weight:750;color:#40566c}.financial-form-grid input,.financial-form-grid select,.financial-form-grid textarea{min-height:38px;border:1px solid #cbd7e3;border-radius:8px;padding:8px 10px;background:#fff;font:inherit}.financial-form-grid textarea{min-height:74px}.financial-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.financial-row-actions{display:flex;gap:5px;flex-wrap:wrap}.financial-account-table table td:first-child b{display:block}.financial-account-table table td:first-child small{max-width:320px}

@media(max-width:1000px){.people-register-toolbar,.financial-account-toolbar{grid-template-columns:1fr 1fr}.people-search-block,.people-register-toolbar .primary,.financial-account-toolbar .primary{grid-column:span 2}.people-summary-row{grid-template-columns:repeat(2,1fr)}.person-role-selector{grid-template-columns:repeat(2,1fr)}.person-form-grid.cols-4,.person-form-grid.cols-3,.financial-form-grid{grid-template-columns:repeat(2,1fr)}.person-form-grid .span-3{grid-column:span 2}}
@media(max-width:720px){.people-form-body{grid-template-columns:1fr}.people-form-steps{flex-direction:row;border-right:0;border-bottom:1px solid #c9d7e4;overflow-x:auto}.person-step{min-width:165px}.people-summary-row,.financial-summary-row,.people-register-toolbar,.financial-account-toolbar,.person-role-selector,.person-form-grid.cols-4,.person-form-grid.cols-3,.financial-form-grid{grid-template-columns:1fr}.people-search-block,.people-register-toolbar .primary,.financial-account-toolbar .primary,.person-form-grid .span-2,.person-form-grid .span-3,.financial-form-grid .span-2{grid-column:auto}.f5-window-action-bar{align-items:flex-start;flex-direction:column}.f5-window-action-bar>div{width:100%;justify-content:flex-end}}

/* V34.9.3 — auditoria de lotes e cancelamento seguro de entradas */
.lot-existing-note{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:10px 0;padding:10px 12px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1e3a5f}.lot-existing-note b{white-space:nowrap}.lot-existing-note span{font-size:.78rem;line-height:1.4;color:#486581}.lot-pending{display:inline-flex;padding:3px 7px;border-radius:999px;background:#fff4e5;color:#9a5800;font-size:.7rem;font-weight:800}.lot-edit-link{display:block;margin-top:5px;border:0;background:transparent;color:#0b5795;padding:0;font-weight:800;font-size:.72rem;cursor:pointer;text-decoration:underline}.purchase-cancelability{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc}.purchase-cancelability b{display:block;margin-bottom:3px}.purchase-cancelability p{margin:0;color:#64748b;font-size:.78rem}.purchase-cancelability>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-weight:900}.purchase-cancelability.ready{border-color:#86efac;background:#f0fdf4}.purchase-cancelability.ready>span{background:#16a34a;color:#fff}.purchase-cancelability.legacy,.purchase-cancelability.paid{border-color:#fed7aa;background:#fff7ed}.purchase-cancelability.legacy>span,.purchase-cancelability.paid>span{background:#ea580c;color:#fff}.purchase-cancelability.cancelled{border-color:#cbd5e1;background:#f1f5f9}.purchase-cancelability.cancelled>span{background:#64748b;color:#fff}.purchase-cancel-modal{width:min(760px,94vw);max-height:88vh}.purchase-cancel-preview{display:grid;gap:12px}.purchase-cancel-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.purchase-cancel-preview-grid article{padding:9px;border:1px solid #d9e2ec;border-radius:8px;background:#f8fafc}.purchase-cancel-preview-grid span{display:block;color:#64748b;font-size:.7rem}.purchase-cancel-preview-grid b{display:block;margin-top:3px}.purchase-cancel-effects{border:1px solid #d9e2ec;border-radius:9px;overflow:hidden}.purchase-cancel-effects>b{display:block;padding:9px 11px;background:#eef3f7}.purchase-cancel-effects>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 11px;border-top:1px solid #edf2f7}.purchase-cancel-effects>div span{font-weight:750}.purchase-cancel-effects>div small{max-width:58%;text-align:right;color:#64748b}.purchase-cancel-effects>p{padding:10px;margin:0;color:#64748b}.purchase-cancel-modal .stock-operation-reason{margin-top:2px}.purchase-cancel-modal .danger{background:#b42318;border-color:#b42318;color:#fff}
@media(max-width:720px){.lot-existing-note{flex-direction:column}.purchase-cancel-preview-grid{grid-template-columns:1fr 1fr}.purchase-cancel-effects>div{flex-direction:column}.purchase-cancel-effects>div small{max-width:none;text-align:left}}

/* V34.9.3 revisão pré-deploy — relatórios independentes e rotinas internas padronizadas */
.report-window-shell{--report-color:#2563eb;background:#f3f6fa}
.report-window-toolbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid #d6e1eb;background:#fff;box-shadow:0 4px 14px rgba(15,35,55,.05)}
.report-window-title{display:flex;align-items:center;gap:10px;min-width:180px}.report-window-title>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--report-color) 13%,#fff);color:var(--report-color);font-weight:900}.report-window-title b,.report-window-title small{display:block}.report-window-title b{color:#17324d;font-size:.92rem}.report-window-title small{margin-top:2px;color:#718398;font-size:.63rem}
.report-filter-inline{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}.report-filter-inline label{display:grid;gap:4px;font-size:.63rem;font-weight:800;color:#52677d}.report-filter-inline input{height:36px;border:1px solid #c5d2df;border-radius:8px;background:#fff;padding:6px 9px;color:#17324d}.report-filter-inline button{height:36px;border:1px solid #bdcad6;border-radius:8px;padding:0 12px;background:#fff;color:#29465f;font-weight:800;cursor:pointer}.report-filter-inline button.primary{background:var(--report-color);border-color:var(--report-color);color:#fff}
.report-window-scroll{display:grid!important;grid-auto-rows:max-content;gap:12px;padding:14px 16px!important}.report-window-scroll>.grid{margin:0}.report-window-scroll>.panel{margin:0;overflow:visible}.report-window-scroll .table-wrap{max-height:none}.report-window-shell .f5-window-action-bar{border-top-color:color-mix(in srgb,var(--report-color) 24%,#cbd7e2)}.report-window-shell .f5-window-action-bar button.primary{background:var(--report-color);border-color:var(--report-color)}

.f5-standardized-routine{height:100%;min-height:0;max-width:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#f3f6fa;color:#17324d;box-sizing:border-box}
.f5-routine-scroll{flex:1;min-height:0;overflow:auto;padding:14px 16px;box-sizing:border-box;display:block}
.f5-standardized-routine>.f5-context-strip,.f5-standardized-routine>.f5-legacy-context-strip{border-radius:0!important;margin:0!important;box-sizing:border-box;width:100%}
.f5-routine-context-strip{background:#fff!important;color:#17324d!important;border-bottom:1px solid #d5e0ea!important}
.f5-routine-context-strip .pharmacy-module-hero-icon,.f5-routine-context-strip .vertical-roadmap-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px!important;font-size:1rem!important;background:color-mix(in srgb,currentColor 8%,#eef3f7)!important;box-shadow:none!important}
.f5-routine-context-strip .pharmacy-module-hero-status{min-width:0!important;padding:0!important;border:0!important;display:block!important}.f5-routine-context-strip .pharmacy-module-hero-status span{display:none!important}.f5-routine-context-strip .pharmacy-module-hero-status b{font-size:.72rem!important;color:#0f766e!important;margin:0!important}
.f5-routine-context-strip .production-score,.f5-routine-context-strip .diag-score{min-width:120px!important;padding:6px 10px!important;border-radius:8px!important;box-shadow:none!important}.f5-routine-context-strip .production-score strong,.f5-routine-context-strip .diag-score b{font-size:1rem!important}.f5-routine-context-strip .production-score span,.f5-routine-context-strip .diag-score span{font-size:.58rem!important}
.f5-routine-group-pharmacy .pharmacy-module-shell{max-width:none!important;margin:0!important;padding:0!important}.f5-routine-group-pharmacy .f5-routine-scroll>.pharmacy-module-list,.f5-routine-group-pharmacy .f5-routine-scroll>.pharmacy-editor,.f5-routine-group-pharmacy .f5-routine-scroll>.pharmacy-hub-grid,.f5-routine-group-pharmacy .f5-routine-scroll>.pharmacy-list-toolbar,.f5-routine-group-pharmacy .f5-routine-scroll>.pharmacy-list-kpis{margin-left:0!important;margin-right:0!important}
.f5-routine-group-management .company-users-screen,.f5-routine-group-management .company-user-form-screen{padding:0!important}.f5-routine-group-management .company-users-hero,.f5-routine-group-management .company-user-form-screen>header{border-radius:0!important;box-shadow:none!important}.f5-routine-group-management .standard-profile-screen{height:100%;min-height:0}.f5-routine-group-management .f5-routine-scroll>.company-access-security-note{margin-top:0}
.f5-routine-group-security .production-center,.f5-routine-group-security .stabilization-audit-shell,.f5-routine-group-security .vertical-roadmap-shell{padding:0!important;max-width:none!important;margin:0!important}.f5-routine-group-security .production-hero,.f5-routine-group-security .diag-hero,.f5-routine-group-management .vertical-roadmap-hero{border-radius:0!important;box-shadow:none!important}
.f5-routine-group-fiscal .tax-pro-head,.f5-routine-group-fiscal .rtc-page-head,.f5-routine-group-fiscal .master-fiscal-hero,.f5-routine-group-fiscal .dfe-config-hero{border-radius:0!important;box-shadow:none!important;margin:0!important}.f5-routine-group-fiscal .fiscal-wrapper{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.f5-routine-group-fiscal .fiscal-wrapper>.fiscal-body{flex:1;min-height:0;overflow:hidden}.f5-routine-group-fiscal .fiscal-wrapper>.fiscal-body .fiscal-content{min-height:0;overflow:auto}
.f5-generated-context-strip h2{margin:0!important;font-size:1rem!important}.f5-detected-action-bar{position:relative!important;bottom:auto!important;margin:0!important;border-radius:0!important}

@media(max-width:820px){.report-window-toolbar{align-items:flex-start;flex-direction:column}.report-filter-inline{width:100%;justify-content:flex-start}.report-window-title{min-width:0}.f5-routine-scroll{padding:10px}.f5-context-strip,.f5-legacy-context-strip{max-height:72px!important}}
@media(max-width:560px){.report-filter-inline label{flex:1 1 130px}.report-filter-inline input{width:100%;box-sizing:border-box}.report-filter-inline button{flex:1}.report-window-title small{display:none}}

/* V34.9.4 — acabamento profissional das centrais e janelas internas */
.f5-professional-center{height:100%;min-height:0;overflow:auto;padding:12px;box-sizing:border-box;background:linear-gradient(180deg,#f7f9fc 0,#f2f6fa 100%);display:grid;grid-auto-rows:max-content;align-content:start;gap:10px;color:#17324d}
.f5-center-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid #d7e1eb;border-top:3px solid #7c3aed;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(15,35,55,.05)}
.pharmacy-operations-center .f5-center-toolbar{border-top-color:#0f8b7d}.f5-center-toolbar label{display:grid;gap:4px;flex:1;max-width:620px}.f5-center-toolbar label>span{font-size:.65rem;font-weight:850;color:#4a6076;letter-spacing:.03em}.f5-center-toolbar input{width:100%;min-height:38px;border:1px solid #c9d6e2;border-radius:8px;padding:7px 10px;background:#fff;color:#17324d;outline:none}.f5-center-toolbar input:focus{border-color:#4b83c5;box-shadow:0 0 0 3px rgba(75,131,197,.12)}
.f5-center-toolbar-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.f5-center-toolbar-meta span,.f5-center-toolbar-meta b{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;font-size:.65rem;white-space:nowrap}.f5-center-toolbar-meta span{background:#eef3f8;color:#536b80}.f5-center-toolbar-meta b{background:#f3e8ff;color:#6d28d9}.pharmacy-operations-center .f5-center-toolbar-meta b{background:#dcfce7;color:#0f766e}
.f5-center-summary{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px}.pharmacy-center-summary{grid-template-columns:repeat(5,minmax(120px,1fr))}.f5-center-summary article{min-width:0;padding:11px 13px;border:1px solid #d8e2ec;border-radius:11px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.035);border-left:4px solid #7c3aed}.pharmacy-center-summary article{border-left-color:#0f8b7d}.f5-center-summary span,.f5-center-summary small{display:block}.f5-center-summary span{font-size:.62rem;font-weight:850;color:#6d7f92;text-transform:uppercase;letter-spacing:.04em}.f5-center-summary b{display:block;margin-top:3px;color:#17324d;font-size:1.12rem}.f5-center-summary small{margin-top:2px;color:#7b8c9e;font-size:.62rem}
.f5-center-sections{display:grid;gap:10px}.f5-center-section{border:1px solid #d8e2ec;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(15,23,42,.04)}.f5-center-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e4ebf2;background:#fbfcfe}.f5-center-section>header h2{margin:0;color:#17324d;font-size:.88rem}.f5-center-section>header p{margin:2px 0 0;color:#718296;font-size:.65rem}.f5-center-section>header>span{padding:4px 8px;border-radius:999px;background:#eef3f8;color:#5d7185;font-size:.61rem;font-weight:800;white-space:nowrap}
.f5-center-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:9px}.pharmacy-center-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.f5-center-card{min-width:0;min-height:76px;display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:10px;border:1px solid #dce5ed;border-radius:10px;background:#fff;color:#17324d;text-align:left;cursor:pointer;transition:.16s ease}.f5-center-card:hover{border-color:#9cb8d3;background:#f8fbff;transform:translateY(-1px);box-shadow:0 7px 16px rgba(15,42,66,.08)}.pharmacy-center-card:hover,.pharmacy-center-grid .f5-center-card:hover{border-color:#7dd3c7;background:#f4fffc}.f5-center-card-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#f2eaff;color:#6d28d9;font-weight:900}.pharmacy-center-grid .f5-center-card-icon{background:#e6fffa;color:#0f766e}.f5-center-card-copy{min-width:0;display:grid;gap:3px}.f5-center-card-copy b{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.f5-center-card-copy small{color:#718296;font-size:.61rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.f5-center-card-metric{max-width:88px;padding:4px 7px;border-radius:999px;background:#eef3f8;color:#536b80;font-size:.58rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.f5-center-card i{font-size:1.1rem;color:#9aabba;font-style:normal}.f5-center-empty{padding:22px;border:1px dashed #c9d6e2;border-radius:10px;background:#fff;text-align:center;color:#718296;font-size:.75rem}
.f5-center-notice,.roadmap-security-note{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#1e3a5f}.f5-center-notice>span,.roadmap-security-note>span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#fff}.f5-center-notice b,.roadmap-security-note b{font-size:.75rem}.f5-center-notice p,.roadmap-security-note p{margin:2px 0 0;color:#526b82;font-size:.65rem;line-height:1.35}

/* Janelas fiscais: menos espaço, formulário e regras com hierarquia uniforme */
.f5-routine-group-fiscal .f5-routine-scroll{display:grid;grid-auto-rows:max-content;gap:10px;padding:12px!important}.f5-routine-group-fiscal .f5-routine-scroll>.panel,.f5-routine-group-fiscal .panel{margin:0;border-radius:12px;padding:14px;box-shadow:0 4px 14px rgba(15,23,42,.035)}.f5-routine-group-fiscal .f5-generated-context-strip{min-height:42px!important;max-height:50px!important}.f5-routine-group-fiscal .grid{gap:10px}.f5-routine-group-fiscal .stat{min-height:74px}.f5-routine-group-fiscal table th{position:sticky;top:0;z-index:1}.f5-routine-group-fiscal .table-wrap{border:1px solid #e0e7ef;border-radius:10px;overflow:auto}.f5-routine-group-fiscal .rtc-page-head,.f5-routine-group-fiscal .tax-pro-head{min-height:46px!important;max-height:58px!important}.f5-routine-group-fiscal .rtc-notice{margin:0!important;border-radius:10px!important}.f5-routine-group-fiscal form button.primary{min-width:112px}

/* Farmácia: listas compactas e uniformes */
.f5-routine-group-pharmacy .pharmacy-module-hero.compact{min-height:46px!important;max-height:58px!important;padding:7px 12px!important;border-radius:0!important;background:#fff!important;color:#17324d!important;border-bottom:1px solid #d6e1eb!important;box-shadow:none!important}.f5-routine-group-pharmacy .pharmacy-module-hero.compact .pharmacy-module-hero-icon{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:.95rem!important}.f5-routine-group-pharmacy .pharmacy-module-hero.compact small,.f5-routine-group-pharmacy .pharmacy-module-hero.compact p{display:none!important}.f5-routine-group-pharmacy .pharmacy-module-hero.compact h1{font-size:.9rem!important;color:#17324d!important;margin:0!important}.f5-routine-group-pharmacy .pharmacy-module-hero.compact button{margin-left:auto}.f5-routine-group-pharmacy .pharmacy-list-kpis{gap:8px;margin:10px 12px!important}.f5-routine-group-pharmacy .pharmacy-list-kpis article{min-height:66px;padding:10px 12px}.f5-routine-group-pharmacy .pharmacy-list-kpis b{font-size:1.08rem}.f5-routine-group-pharmacy .pharmacy-list-toolbar{margin:0 12px 10px!important;padding:10px 12px!important;border-radius:11px}.f5-routine-group-pharmacy .pharmacy-data-card{margin:0 12px 12px!important;border-radius:11px}.f5-routine-group-pharmacy .pharmacy-roadmap-note{margin:0 12px 12px!important}.f5-routine-group-pharmacy .pharmacy-table-wrap{max-height:calc(100vh - 330px);overflow:auto}.f5-routine-group-pharmacy .pharmacy-table thead th{position:sticky;top:0;z-index:1}.f5-routine-group-pharmacy .pharmacy-module-shell{background:#f3f6fa}

/* Cronograma executivo */
.roadmap-executive-shell{height:100%;min-height:0;overflow:auto;padding:12px!important;display:grid;grid-auto-rows:max-content;align-content:start;gap:10px;background:#f3f6fa}.roadmap-executive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d8e2ec;border-top:3px solid #475569;border-radius:11px;background:#fff}.roadmap-executive-toolbar>div:first-child{display:grid;gap:2px}.roadmap-executive-toolbar span{font-size:.61rem;font-weight:850;color:#6c7e91;text-transform:uppercase;letter-spacing:.05em}.roadmap-executive-toolbar b{font-size:.92rem;color:#17324d}.roadmap-executive-toolbar small{font-size:.64rem;color:#74869a}.roadmap-version-chip{display:grid;justify-items:end;padding:6px 9px;border-radius:9px;background:#eef3f8}.roadmap-version-chip b{font-size:.8rem}.roadmap-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px}.roadmap-summary-grid article{padding:10px 12px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;border-left:4px solid #475569}.roadmap-summary-grid span,.roadmap-summary-grid small{display:block}.roadmap-summary-grid span{font-size:.6rem;font-weight:850;color:#6f8194;text-transform:uppercase}.roadmap-summary-grid b{display:block;margin-top:3px;font-size:1.08rem;color:#17324d}.roadmap-summary-grid small{font-size:.61rem;color:#7b8c9e}.roadmap-segment-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.roadmap-segment-tabs button{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;align-items:center;padding:8px 9px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;color:#40566d;text-align:left;cursor:pointer}.roadmap-segment-tabs button>span{grid-row:1/3;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#eef3f8}.roadmap-segment-tabs button b{font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roadmap-segment-tabs button small{font-size:.56rem;color:#788a9c}.roadmap-segment-tabs button.selected{border-color:var(--vertical-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--vertical-accent) 16%,transparent)}.roadmap-segment-tabs button.active-segment small{color:#15803d;font-weight:850}.roadmap-detail-section{border:1px solid #d8e2ec;border-radius:12px;background:#fff;overflow:hidden}.roadmap-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#fbfcfe}.roadmap-detail-head>div{display:flex;align-items:center;gap:9px}.roadmap-detail-head>div>span{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--vertical-accent) 12%,#fff)}.roadmap-detail-head small{display:block;color:#718296;font-size:.58rem}.roadmap-detail-head h3{margin:2px 0 0;font-size:.85rem;color:#17324d}.roadmap-phase-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px}.roadmap-phase-card{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;padding:10px;border:1px solid #dfe7ef;border-radius:10px;background:#fff}.roadmap-phase-card.concluida{border-left:4px solid #22c55e}.roadmap-phase-card.em_andamento{border-left:4px solid #3b82f6;background:#f8fbff}.roadmap-phase-card.planejada{border-left:4px solid #cbd5e1}.roadmap-phase-number{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#eef3f8;color:#52677d;font-size:.67rem;font-weight:900}.roadmap-phase-copy header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.roadmap-phase-copy header div{display:grid;gap:2px}.roadmap-phase-copy b{font-size:.72rem;color:#17324d}.roadmap-phase-copy small{font-size:.58rem;color:#718296}.roadmap-phase-copy em{font-size:.55rem;font-style:normal;font-weight:850;color:#52677d;white-space:nowrap}.roadmap-phase-copy p{margin:7px 0 0;color:#61758a;font-size:.63rem;line-height:1.4}.roadmap-phase-copy footer{margin-top:7px;padding-top:6px;border-top:1px dashed #dbe4ec;color:#718296;font-size:.58rem}

/* Gestão e Segurança: preservar informação, reduzir ornamentação */
.f5-routine-group-management .f5-routine-scroll,.f5-routine-group-security .f5-routine-scroll{padding:12px!important;display:grid;grid-auto-rows:max-content;gap:10px}.f5-routine-group-management .panel,.f5-routine-group-security .panel,.f5-routine-group-management section,.f5-routine-group-security section{box-shadow:0 4px 14px rgba(15,23,42,.035)}.f5-routine-group-management .company-users-hero,.f5-routine-group-security .production-hero,.f5-routine-group-security .diag-hero,.f5-routine-group-security .maintenance-hero{min-height:44px!important;max-height:62px!important;padding:8px 12px!important}.f5-routine-group-management .vertical-roadmap-shell{max-width:none!important}.f5-routine-group-security .production-grid,.f5-routine-group-security .diag-grid{gap:9px!important}.f5-routine-group-security .production-card,.f5-routine-group-security .diag-panel{border-radius:11px!important}

/* Relatórios: abertura independente e acabamento consistente */
.report-window-shell .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.report-window-shell .stat{min-height:72px;padding:10px 12px}.report-window-shell .panel{border-radius:11px;padding:13px}.report-window-shell .panel h2{font-size:.86rem;margin:0 0 9px}.report-window-shell table thead th{position:sticky;top:0;z-index:1}.report-window-shell .table-wrap{border:1px solid #e0e7ef;border-radius:9px;overflow:auto}.report-window-shell .empty{min-height:90px;display:grid;place-items:center}

@media(max-width:1100px){.f5-center-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pharmacy-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pharmacy-center-summary{grid-template-columns:repeat(3,minmax(120px,1fr))}.roadmap-segment-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.roadmap-phase-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.f5-center-toolbar,.roadmap-executive-toolbar{align-items:stretch;flex-direction:column}.f5-center-toolbar-meta{justify-content:flex-start}.f5-center-summary,.pharmacy-center-summary,.roadmap-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-center-card-grid,.pharmacy-center-grid,.roadmap-phase-list{grid-template-columns:1fr}.roadmap-segment-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-center-card-metric{max-width:72px}.report-window-shell .grid{grid-template-columns:1fr}}
@media(max-width:480px){.f5-center-summary,.pharmacy-center-summary,.roadmap-summary-grid,.roadmap-segment-tabs{grid-template-columns:1fr}.f5-professional-center,.roadmap-executive-shell{padding:8px!important}.f5-center-card{grid-template-columns:34px minmax(0,1fr) auto}.f5-center-card-metric{display:none}.roadmap-version-chip{justify-items:start}}


/* V34.9.4.2 — atualização discreta e Movimentações de Saídas compacta */
.f5-update-indicator{height:36px;border:1px solid rgba(96,165,250,.32);background:rgba(37,99,235,.14);color:#dbeafe;border-radius:9px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:.68rem;font-weight:850;white-space:nowrap}
.f5-update-indicator:hover{background:rgba(37,99,235,.24);border-color:rgba(147,197,253,.5);color:#fff}.f5-update-indicator.scheduled{background:rgba(15,118,110,.18);border-color:rgba(94,234,212,.3)}
.f5-update-popover{position:fixed;z-index:2147483000;width:min(330px,calc(100vw - 20px));padding:13px;border:1px solid #b9c9d8;border-radius:12px;background:#fff;color:#153553;box-shadow:0 18px 45px rgba(8,27,51,.25)}
.f5-update-popover[hidden]{display:none!important}.f5-update-popover header{display:flex;align-items:flex-start;gap:10px}.f5-update-popover header>span{width:34px;height:34px;flex:0 0 34px;border-radius:9px;display:grid;place-items:center;background:#e8f1ff;color:#175fb8;font-size:1.1rem;font-weight:900}.f5-update-popover header>div{display:grid;gap:3px}.f5-update-popover strong{font-size:.78rem;color:#102f4c}.f5-update-popover small{font-size:.66rem;line-height:1.4;color:#60778d}.f5-update-popover-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}.f5-update-popover-actions button{min-height:34px;border:1px solid #c5d3e0;border-radius:8px;background:#f8fafc;color:#234968;padding:7px 10px;font-weight:800;font-size:.66rem;cursor:pointer}.f5-update-popover-actions button.primary{background:#1764c0;border-color:#1764c0;color:#fff}
.f5-update-banner{display:none!important}
.mov-shell-compact{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden}.mov-command-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #d7e1eb;background:#fff;flex-wrap:wrap}.mov-command-bar .mov-status-tabs{flex:1}.mov-command-bar .mov-top-actions button{border:1px solid #c5d3df;background:#fff;color:#204867;border-radius:8px;padding:8px 11px;font-weight:800;cursor:pointer}.mov-command-bar .mov-top-actions button.primary{background:#0b5795;border-color:#0b5795;color:#fff}.mov-shell-compact .mov-content{overflow:auto!important;padding:12px 14px!important}.mov-shell-compact .mov-filter-card{padding:10px}.mov-shell-compact .mov-table-wrap{min-height:260px;flex:1}.mov-shell-compact>.mov-footer.f5-window-action-bar{margin:0;padding:8px 12px;border-top:1px solid #d5e0ea;background:#eef3f7}
@media(max-width:900px){.f5-update-indicator b{display:none}.f5-update-indicator{width:36px;padding:0;justify-content:center}.mov-command-bar{align-items:flex-start;flex-direction:column}.mov-command-bar .mov-top-actions{width:100%}.mov-command-bar .mov-top-actions button{flex:1}}

/* V34.9.4.3 — classificação fiscal da Pessoa e snapshot do destinatário NF-e */
.person-fiscal-guidance{display:grid;gap:4px;padding:11px 13px;border:1px solid #d6e2ed;border-radius:10px;background:#fff;color:#42566b}
.person-fiscal-guidance b{font-size:.78rem;color:#163c66}.person-fiscal-guidance span{font-size:.73rem;line-height:1.4}.person-fiscal-guidance small{font-size:.66rem;color:#64748b}
.person-fiscal-guidance.ready{border-color:#a7dfc3;background:#f0fdf6}.person-fiscal-guidance.pending{border-color:#f0cf8c;background:#fffaf0}
.required-mark{color:#b42318;font-size:.64rem;text-transform:uppercase;letter-spacing:.03em}
.nfe-recipient-fiscal-card{margin-top:10px;border:1px solid #cbdbea;border-radius:12px;background:#f8fbff;padding:12px;display:grid;gap:10px}
.nfe-recipient-fiscal-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.nfe-recipient-fiscal-card>header>div{display:grid;gap:3px}.nfe-recipient-fiscal-card>header b{font-size:.8rem;color:#0f3f75}.nfe-recipient-fiscal-card>header small{font-size:.66rem;color:#66788a;line-height:1.35}
.nfe-recipient-fiscal-status{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;font-size:.69rem}.nfe-recipient-fiscal-status.ok{background:#ecfdf3;color:#166534}.nfe-recipient-fiscal-status.warn{background:#fff7ed;color:#9a3412}.nfe-recipient-fiscal-status b{white-space:nowrap}
.people-table-panel td small{display:block;margin-top:3px;color:#728399;font-size:.63rem}
@media(max-width:800px){.nfe-recipient-fiscal-card>header{flex-direction:column}.person-form-grid.cols-3,.person-form-grid.cols-4{grid-template-columns:1fr}.person-form-grid .span-2,.person-form-grid .span-3{grid-column:auto}}


/* V34.9.5 — gate e evidências da Release Candidate do Comércio */
.commerce-rc-gate{margin:16px 0;border:1px solid #d7e2ef;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,63,112,.06)}
.commerce-rc-gate>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #e5edf6;background:#f8fbff}.commerce-rc-gate>header small{display:block;font-size:.68rem;font-weight:900;letter-spacing:.1em;color:#64748b}.commerce-rc-gate>header h2{margin:3px 0 4px;font-size:1.1rem;color:#153f6b}.commerce-rc-gate>header p{margin:0;color:#5b7088}.commerce-rc-gate>header>span{display:grid;place-items:center;min-width:58px;height:38px;border-radius:999px;font-weight:900;background:#e2e8f0;color:#334155}.commerce-rc-gate.ready>header{background:#ecfdf5}.commerce-rc-gate.ready>header>span{background:#d1fae5;color:#047857}.commerce-rc-gate.blocked>header{background:#fffaf0}.commerce-rc-gate.blocked>header>span{background:#fef3c7;color:#92400e}
.commerce-rc-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.commerce-rc-check-grid article{display:flex;gap:11px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #edf2f7}.commerce-rc-check-grid article:nth-child(odd){border-right:1px solid #edf2f7}.commerce-rc-check-grid article>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;flex:0 0 auto;font-weight:900}.commerce-rc-check-grid article.ok>span{background:#d1fae5;color:#047857}.commerce-rc-check-grid article.pending>span{background:#fef3c7;color:#92400e}.commerce-rc-check-grid b,.commerce-rc-check-grid small{display:block}.commerce-rc-check-grid b{color:#173f6b}.commerce-rc-check-grid small{margin-top:3px;line-height:1.35;color:#64748b}.commerce-rc-gate>footer{display:flex;gap:9px;flex-wrap:wrap;padding:14px 16px;background:#fbfdff;border-top:1px solid #e5edf6}.commerce-audit-highlight{outline:3px solid rgba(245,158,11,.45);outline-offset:-3px;animation:commerceRcPulse .8s ease-in-out 2}@keyframes commerceRcPulse{50%{background:#fffbeb}}
@media(max-width:760px){.commerce-rc-check-grid{grid-template-columns:1fr}.commerce-rc-check-grid article:nth-child(odd){border-right:0}.commerce-rc-gate>header{align-items:flex-start}.commerce-rc-gate>footer>*{width:100%}}


/* V34.9.5 RC2 — pessoa por tipo, retorno destacado e recarga autorizada */
.f5-window-action-bar button.back-list{background:#e0f2fe;border-color:#38bdf8;color:#075985;box-shadow:0 3px 10px rgba(14,116,144,.12)}
.f5-window-action-bar button.back-list:hover{background:#bae6fd;border-color:#0284c7;color:#0c4a6e}
.person-fiscal-guidance.ready{border-left:4px solid #0f766e}

/* V34.9.5 RC3 — Pessoa Física contribuinte e credenciadoras em Pessoas */
.role-credenciadora{background:#dcfce7;color:#166534}
.person-config-sections fieldset .safe-copy-note{margin-top:10px}

/* V34.9.5 RC5 — NF-e de Entrada unificada e recebimento detalhado */
.nfe-entry-unified .fiscal-draft-content{background:linear-gradient(180deg,#f9fbfd,#f3f7fa)}
.nfe-entry-unified .fiscal-draft-steps button.warning{color:#9a5800}
.nfe-entry-unified .fiscal-draft-steps button.warning span{color:#d97706}
.nfe-entry-unified .fiscal-details-card{margin:0;min-height:42px;justify-content:center}
.nfe-entry-unified .fiscal-details-card small,.nfe-entry-unified .fiscal-details-card b,.nfe-entry-unified .fiscal-details-card span{display:block}
.nfe-entry-unified .fiscal-details-card span{color:#6c8194;margin-top:2px}
.nfe-entry-unified .fiscal-items-table td small{display:block;color:#718397;margin-top:2px}
.nfe-entry-unified .fiscal-items-table .empty p{margin:5px 0 0}
.financial-row-actions .primary.compact{padding:6px 10px;border-radius:7px;background:#166534;color:#fff;border:1px solid #166534;font-weight:800;cursor:pointer}
.financial-row-actions .primary.compact:disabled{opacity:.5;cursor:not-allowed}
.financial-account-table td>small{display:block;margin-top:3px;color:#6b7f91}
.financial-receipt-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.58);display:grid;place-items:center;padding:18px}
.financial-receipt-dialog{width:min(880px,calc(100vw - 28px));max-height:calc(100dvh - 36px);background:#fff;border-radius:16px;box-shadow:0 28px 90px rgba(15,23,42,.38);overflow:hidden;display:flex;flex-direction:column;color:#18344f}
.financial-receipt-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:15px 18px;background:linear-gradient(120deg,#14532d,#16a34a);color:#fff}
.financial-receipt-dialog>header small{font-size:.58rem;letter-spacing:.13em;font-weight:900;color:#dcfce7}
.financial-receipt-dialog>header h3{margin:3px 0 2px;font-size:1.12rem;color:#fff}
.financial-receipt-dialog>header p{margin:0;font-size:.7rem;color:#e7f8ed}
.financial-receipt-dialog>header button{border:0;background:transparent;color:#fff;font-size:1.55rem;cursor:pointer}
.financial-receipt-scroll{overflow:auto;padding:15px 18px;background:#f8fafc}
.financial-receipt-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:13px}
.financial-receipt-summary article{border:1px solid #d8e3ec;background:#fff;border-radius:10px;padding:11px 12px;display:grid;gap:3px}
.financial-receipt-summary article.open{background:#ecfdf3;border-color:#86efac}
.financial-receipt-summary span{font-size:.58rem;text-transform:uppercase;letter-spacing:.06em;color:#687d90;font-weight:900}
.financial-receipt-summary b{font-size:1.15rem;color:#174b2b}
.financial-receipt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.financial-receipt-grid .span-2{grid-column:span 2}
.financial-receipt-grid label,.financial-overpayment label,.financial-renegotiation-fields label{display:grid;gap:5px;font-size:.66rem;font-weight:800;color:#2e506b}
.financial-receipt-grid input,.financial-receipt-grid select,.financial-receipt-grid textarea,.financial-overpayment select,.financial-renegotiation-fields input{width:100%;min-height:39px;border:1px solid #c6d5e0;border-radius:8px;background:#fff;padding:8px 9px;font:inherit;color:#17324d}
.financial-receipt-grid textarea{resize:vertical}
.financial-overpayment{margin-top:11px;padding:11px;border:1px solid #fdba74;border-radius:10px;background:#fff7ed;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:10px;align-items:end}
.financial-overpayment[hidden]{display:none}
.financial-overpayment p{margin:0;color:#9a3412;font-size:.68rem}
.financial-renegotiation{display:flex;align-items:center;gap:8px;margin-top:11px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:.72rem;font-weight:800;color:#27465f}
.financial-renegotiation-fields{margin-top:8px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:11px;align-items:end;padding:10px 12px;border-radius:9px;background:#eef6ff;border:1px solid #bfdbfe}
.financial-renegotiation-fields[hidden]{display:none}
.financial-renegotiation-fields small{color:#5d7488;font-size:.67rem;padding-bottom:8px}
.financial-receipt-calculation{margin-top:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.financial-receipt-calculation>div{border:1px solid #d7e2ea;border-radius:9px;background:#fff;padding:10px;display:grid;gap:3px}
.financial-receipt-calculation>div.excess{border-color:#fdba74;background:#fff7ed}
.financial-receipt-calculation>div[hidden]{display:none}
.financial-receipt-calculation span{font-size:.56rem;text-transform:uppercase;letter-spacing:.05em;color:#6b8093;font-weight:900}
.financial-receipt-calculation b{font-size:.88rem;color:#174b2b}
.financial-receipt-error{min-height:20px;margin-top:9px;color:#b42318;font-size:.72rem;font-weight:800}
.financial-receipt-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:11px 18px;background:#edf2f6;border-top:1px solid #d5e0e8}
.financial-receipt-dialog>footer button{border:1px solid #aebfcb;border-radius:8px;padding:9px 14px;font-weight:800;cursor:pointer}
.financial-receipt-dialog>footer .ghost{background:#fff;color:#294a63}
.financial-receipt-dialog>footer .primary{background:#166534;color:#fff;border-color:#166534}
.financial-receipt-dialog.history{width:min(760px,calc(100vw - 28px))}
.financial-receipt-history{display:grid;gap:8px}
.financial-receipt-history article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:11px;border:1px solid #d8e3eb;border-radius:10px;background:#fff}
.financial-receipt-history article.reversed{opacity:.72;background:#f1f5f9}
.financial-receipt-history article b,.financial-receipt-history article span,.financial-receipt-history article small,.financial-receipt-history article em{display:block}
.financial-receipt-history article span{margin-top:2px;color:#476279;font-size:.7rem}
.financial-receipt-history article small{margin-top:3px;color:#718397;font-size:.65rem}
.financial-receipt-history article em{margin-top:5px;color:#9f2d23;font-size:.64rem}
.financial-receipt-history article .danger{border:1px solid #b42318;background:#b42318;color:#fff;border-radius:7px;padding:7px 10px;font-weight:800;cursor:pointer}
@media(max-width:900px){.financial-receipt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.financial-receipt-calculation{grid-template-columns:repeat(2,minmax(0,1fr))}.financial-overpayment{grid-template-columns:1fr}.financial-receipt-history article{grid-template-columns:1fr auto}.financial-receipt-history article .danger{grid-column:1/-1}.nfe-entry-unified .fiscal-draft-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:620px){.financial-receipt-overlay{padding:6px}.financial-receipt-dialog{max-height:calc(100dvh - 12px);width:calc(100vw - 12px)}.financial-receipt-summary,.financial-receipt-grid,.financial-receipt-calculation{grid-template-columns:1fr}.financial-receipt-grid .span-2{grid-column:auto}.financial-renegotiation-fields{grid-template-columns:1fr}}

/* V34.9.5 RC5 — pesquisa financeira explícita e ações na visão consolidada */
.financial-search-form{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:6px;align-items:center;min-width:0}
.financial-search-form input{width:100%;min-width:0}
.financial-account-toolbar>.financial-search-form{min-width:0}
.financial-account-table .badge.neutral+ .badge.neutral{margin-left:4px}
/* V34.9.86 — ações financeiras visíveis abaixo de cada título */
.financial-account-table tbody tr{position:relative}
.financial-account-table tbody td{padding-bottom:54px}
.financial-account-table tbody td:last-child{position:absolute;left:0;right:0;bottom:0;width:auto;box-sizing:border-box;padding:8px 12px;background:#f6f9fc;border-top:1px solid #dbe5ee}
.financial-account-table tbody .financial-row-actions{min-height:30px;align-items:center}
.financial-account-table tbody .financial-row-actions button{min-height:30px}
.financial-account-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.financial-account-detail-grid>div,.financial-account-notes{display:grid;gap:4px;padding:11px 12px;border:1px solid #dbe4ee;border-radius:10px;background:#f8fafc}
.financial-account-detail-grid span{font-size:.68rem;font-weight:850;text-transform:uppercase;color:#64748b}
.financial-account-notes{margin-top:12px}.financial-account-notes p{margin:0;color:#475569}
@media(max-width:760px){.financial-account-detail-grid{grid-template-columns:1fr}.financial-account-table tbody td{padding-bottom:86px}}
@media(max-width:1000px){.financial-search-form{grid-column:span 2}.financial-account-toolbar>.financial-search-form{grid-column:span 2}}
@media(max-width:720px){.financial-search-form,.financial-account-toolbar>.financial-search-form{grid-column:auto;grid-template-columns:1fr}.financial-search-form button{width:100%}}


/* V34.9.5 RC6 — parcelamento obrigatório do PDV e correção de títulos legados */
.pdv-term-intro{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;margin-bottom:14px}.pdv-term-intro>div{display:flex;flex-direction:column;gap:3px}.pdv-term-intro small{font-size:.68rem;font-weight:800;letter-spacing:.08em;color:#475569}.pdv-term-intro b{font-size:1.05rem;color:#0f3f83}.pdv-term-intro p{grid-column:1/-1;margin:0;color:#475569;line-height:1.45}.pdv-term-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pdv-term-grid .span-2{grid-column:1/-1}.pdv-term-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#334155}.pdv-term-grid input,.pdv-term-grid select{min-height:42px;border:1px solid #cbd5e1;border-radius:9px;padding:8px 10px;background:#fff}.pdv-term-presets{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.pdv-term-presets button{border:1px solid #93c5fd;background:#eff6ff;color:#174ea6;border-radius:999px;padding:7px 12px;font-weight:800}.pdv-term-table{max-height:245px;overflow:auto;border:1px solid #dbe4ee;border-radius:12px}.pdv-term-table table{width:100%;border-collapse:collapse}.pdv-term-table th,.pdv-term-table td{padding:9px 10px;border-bottom:1px solid #e2e8f0;text-align:left}.pdv-term-table input{width:100%;min-height:36px;border:1px solid #cbd5e1;border-radius:7px;padding:6px}.pdv-term-check{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;margin-top:12px;padding:12px 14px;border-radius:11px;background:#fff7ed;border:1px solid #fed7aa}.pdv-term-check.ok{background:#ecfdf5;border-color:#a7f3d0}.pdv-term-check small{grid-column:1/-1;color:#64748b}.pdv-term-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:12px 0;padding:12px 14px;border:1px solid #93c5fd;border-radius:12px;background:#eff6ff}.pdv-term-summary>div{display:flex;flex-direction:column;gap:3px}.pdv-term-summary small{font-size:.68rem;font-weight:900;letter-spacing:.08em;color:#1d4ed8}.pdv-term-summary span{color:#475569}.pdv-term-callout{display:flex;flex-direction:column;gap:5px;padding:12px;border-radius:11px;background:#eff6ff;border:1px solid #bfdbfe;color:#334155}.financial-plan-overlay{position:fixed;inset:0;z-index:10060;background:rgba(2,15,35,.62);display:grid;place-items:center;padding:20px}.financial-plan-dialog{width:min(780px,96vw);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.34);overflow:hidden}.financial-plan-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;background:#0b3d8c;color:#fff}.financial-plan-dialog>header small{font-size:.68rem;font-weight:900;letter-spacing:.1em}.financial-plan-dialog>header h3{margin:3px 0;font-size:1.18rem}.financial-plan-dialog>header p{margin:0;color:#dbeafe}.financial-plan-dialog>header button{border:0;background:rgba(255,255,255,.15);color:#fff;border-radius:8px;width:34px;height:34px;font-size:1.3rem}.financial-plan-scroll{overflow:auto;padding:18px}.financial-plan-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.financial-plan-summary article{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #dbe4ee;border-radius:11px;background:#f8fafc}.financial-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.financial-plan-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}.financial-plan-grid input{min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:7px 9px}.financial-plan-table{margin-top:14px;border:1px solid #dbe4ee;border-radius:11px;overflow:auto;max-height:250px}.financial-plan-table table{width:100%;border-collapse:collapse}.financial-plan-table th,.financial-plan-table td{padding:9px 11px;border-bottom:1px solid #e2e8f0;text-align:left}.financial-plan-warning{padding:11px 13px;border-left:4px solid #f59e0b;background:#fffbeb;color:#713f12}.financial-plan-dialog>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 18px;border-top:1px solid #e2e8f0;background:#f8fafc}.financial-row-actions .warning{background:#d97706;color:#fff;border-color:#d97706}@media(max-width:720px){.pdv-term-grid,.financial-plan-grid,.financial-plan-summary{grid-template-columns:1fr}.pdv-term-grid .span-2{grid-column:auto}.pdv-term-intro{grid-template-columns:1fr}.pdv-term-intro p{grid-column:auto}.pdv-term-summary{align-items:flex-start;flex-direction:column}}


/* V34.9.5 RC7 — parcelamento elegante, rodapé fixo e condições com juros */
.pdv-modal-fixed-actions{flex:0 0 auto;display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;padding:13px 16px;border-top:1px solid #dbe4ea;background:#f8fafc;box-shadow:0 -8px 24px rgba(15,23,42,.07);position:relative;z-index:2}
.pdv-modal-fixed-actions button{min-height:40px;padding:8px 15px;border-radius:9px;font-weight:800}
.pdv-modal-fixed-actions .primary{background:#0b3d8c;color:#fff;border-color:#0b3d8c;min-width:160px}
.pdv-modal-fixed-actions .danger{color:#b42318;border-color:#fecaca;background:#fff}
.pdv-term-modal{height:min(92vh,860px)}
.pdv-term-modal>.pdv-modal-body{overflow:auto;padding:16px;min-height:0;background:#fff}
.pdv-term-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.pdv-term-catalog-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:12px}
.pdv-term-catalog-row label{display:flex;flex-direction:column;gap:6px;font-weight:800;color:#334155}
.pdv-term-catalog-row select{min-height:43px;border:1px solid #cbd5e1;border-radius:9px;padding:8px 10px;background:#fff}
.pdv-term-interest-note{display:flex;flex-direction:column;gap:3px;margin:12px 0;padding:11px 13px;border-left:4px solid #2563eb;border-radius:8px;background:#eff6ff;color:#334155}
.pdv-term-interest-note span{font-size:.76rem;color:#64748b}
.pdv-term-table th:nth-child(n+3),.pdv-term-table td:nth-child(n+3){text-align:right}
.pdv-term-table td:nth-child(3),.pdv-term-table td:nth-child(4){white-space:nowrap;font-weight:700;color:#475569}
.payment-catalog-tabs{display:flex;gap:8px;padding:14px 16px 0}
.payment-catalog-tabs button{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:999px;padding:8px 13px;font-weight:800}
.payment-catalog-tabs button.active{background:#0b3d8c;border-color:#0b3d8c;color:#fff}
.payment-interest-fieldset{border:1px solid #bfdbfe;background:#f8fbff;border-radius:12px;margin:14px 0;padding:12px}
.payment-interest-fieldset legend{padding:0 8px;font-weight:900;color:#174ea6}
@media(max-width:760px){.pdv-modal-fixed-actions{grid-template-columns:1fr 1fr}.pdv-modal-fixed-actions span{display:none}.pdv-term-summary-cards{grid-template-columns:1fr 1fr}.pdv-term-catalog-row{grid-template-columns:1fr}.pdv-term-table{min-width:680px}.pdv-term-modal>.pdv-modal-body{overflow:auto}.payment-catalog-tabs{overflow:auto}}

/* V34.9.6 — Centro de Relatórios */
.report-hub-v3496{overflow:auto!important}
.report-hub-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #dbe4ed;border-top:3px solid #db2777;border-radius:12px;background:#fff;box-shadow:0 5px 14px rgba(15,23,42,.05)}
.report-hub-summary>div:first-child{display:grid;gap:2px}.report-hub-summary span{font-size:.66rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#9d174d}.report-hub-summary strong{font-size:1.08rem;color:#172f49}.report-hub-summary small{font-size:.7rem;color:#718398}.report-hub-kpis{display:flex;gap:8px}.report-hub-kpis b{min-width:82px;display:grid;place-items:center;padding:8px 10px;border:1px solid #e1e7ee;border-radius:10px;background:#f8fafc;color:#243f58;font-size:1rem}.report-hub-kpis b small{display:block;font-size:.57rem;font-weight:800;color:#718398}
.report-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-hub-card{min-height:96px!important}.report-hub-card span:nth-child(2){min-width:0}.report-hub-card em{display:block;margin-top:6px;font-style:normal;font-size:.62rem;font-weight:850;color:var(--module-color);opacity:.86}
.report-center-shell{--report-color:#2563eb;background:#f3f6fa}
.report-center-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border-bottom:1px solid #d6e1eb;background:#fff;box-shadow:0 4px 14px rgba(15,35,55,.05)}
.report-header-actions{display:flex;align-items:center;gap:7px}.report-header-actions button{height:34px;border:1px solid #c9d4df;border-radius:8px;background:#fff;padding:0 10px;font-weight:800;color:#425c73;cursor:pointer}.report-header-actions .report-favorite.active{border-color:#f4c95d;background:#fff9e6;color:#8a5d00}
.report-center-workspace{display:grid!important;grid-template-columns:280px minmax(0,1fr);gap:0;padding:0!important;background:#f4f7fa}
.financial-report-workspace>.report-content-pane{padding:0}
.report-catalog-pane{position:sticky;top:0;align-self:start;min-height:100%;max-height:100%;overflow:auto;border-right:1px solid #dce4ec;background:#fff;padding:10px}
.report-catalog-search{display:grid;gap:4px;position:sticky;top:0;z-index:2;padding:2px 0 9px;background:#fff}.report-catalog-search span{font-size:.62rem;font-weight:900;color:#61758a;text-transform:uppercase;letter-spacing:.06em}.report-catalog-search input{height:36px;border:1px solid #c8d4df;border-radius:8px;padding:0 9px;color:#213c55}
.report-catalog-list{display:grid;gap:6px}.report-catalog-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:1px solid #e0e7ef;border-radius:9px;background:#fff;padding:9px 10px;cursor:pointer;color:#29465f}.report-catalog-item:hover{border-color:color-mix(in srgb,var(--report-color) 45%,#dce4ec);background:color-mix(in srgb,var(--report-color) 5%,#fff)}.report-catalog-item.active{border-color:var(--report-color);background:color-mix(in srgb,var(--report-color) 9%,#fff);box-shadow:inset 3px 0 0 var(--report-color)}.report-catalog-item span{min-width:0}.report-catalog-item b,.report-catalog-item small{display:block}.report-catalog-item b{font-size:.74rem;color:#203b55}.report-catalog-item small{margin-top:2px;font-size:.61rem;line-height:1.25;color:#74869a}.report-catalog-item i{font-style:normal;color:var(--report-color);font-weight:900}
.report-content-pane{min-width:0;padding:12px 14px 18px;display:grid;align-content:start;gap:10px}.report-selected-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.report-selected-heading>div>span{font-size:.58rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--report-color)}.report-selected-heading h2{margin:2px 0 1px;font-size:1.03rem;color:#183650}.report-selected-heading p{margin:0;color:#718398;font-size:.68rem}.report-selected-heading>strong{white-space:nowrap;color:#536a80;font-size:.67rem}
.report-filter-panel{display:grid;grid-template-columns:135px 135px minmax(210px,1fr) auto auto;gap:7px;align-items:end;padding:9px;border:1px solid #dbe4ed;border-radius:10px;background:#fff}.report-filter-panel label{display:grid;gap:3px;font-size:.61rem;font-weight:850;color:#5d7186}.report-filter-panel input{height:35px;border:1px solid #c8d4df;border-radius:8px;padding:0 8px;min-width:0}.report-filter-panel button{height:35px;border-radius:8px;border:1px solid #c8d4df;background:#fff;padding:0 11px;font-weight:850;color:#3b556e;cursor:pointer}.report-filter-panel button.primary{background:var(--report-color);border-color:var(--report-color);color:#fff}
.report-options{border:1px solid #dbe4ed;border-radius:10px;background:#fff}.report-options summary{cursor:pointer;padding:8px 10px;font-size:.66rem;font-weight:900;color:#50677d}.report-options-grid{display:grid;grid-template-columns:2fr 1fr;gap:10px;padding:0 10px 10px}.report-options fieldset{border:1px solid #e2e8ef;border-radius:8px;padding:8px;display:flex;gap:8px;flex-wrap:wrap}.report-options legend{font-size:.6rem;font-weight:900;color:#6b7f92}.report-options fieldset label{font-size:.63rem;color:#475f75}.report-options select,.report-options button{height:32px;border:1px solid #cbd6e1;border-radius:7px;background:#fff;padding:0 8px;color:#3d566f}
.report-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.report-summary-grid article{min-height:66px;border:1px solid #dce5ed;border-radius:10px;background:#fff;padding:9px 11px;box-shadow:0 3px 10px rgba(15,23,42,.035)}.report-summary-grid small,.report-summary-grid strong{display:block}.report-summary-grid small{font-size:.59rem;font-weight:850;color:#73869a;text-transform:uppercase;letter-spacing:.035em}.report-summary-grid strong{margin-top:4px;font-size:1.02rem;color:#1e3b54}
.report-result-table{overflow:auto;border:1px solid #dce4ec;border-radius:10px;background:#fff;max-height:calc(100vh - 380px)}.report-result-table table{width:100%;border-collapse:collapse}.report-result-table th{position:sticky;top:0;z-index:1;background:#f4f7fa;color:#4b6278;font-size:.61rem;text-transform:uppercase;letter-spacing:.03em}.report-result-table th,.report-result-table td{padding:7px 8px;border-bottom:1px solid #edf1f5;text-align:left;white-space:nowrap}.report-result-table td{font-size:.68rem;color:#29445d}.report-result-table tr:hover td{background:#fafcff}.report-empty-state{min-height:170px;display:grid;place-items:center;align-content:center;gap:4px;border:1px dashed #ccd7e2;border-radius:10px;background:#fff;color:#77899b}.report-empty-state b{color:#445c72}.report-data-warning{padding:8px 10px;border:1px solid #f2cf7d;border-radius:8px;background:#fff9e8;color:#7c5a10;font-size:.66rem}.report-limit-note{font-size:.62rem;color:#718398;text-align:right}
.report-center-shell .f5-window-action-bar{border-top-color:color-mix(in srgb,var(--report-color) 25%,#d4dee7)}.report-center-shell .f5-window-action-bar button.primary{background:var(--report-color);border-color:var(--report-color)}
@media(max-width:980px){.report-center-workspace{grid-template-columns:220px minmax(0,1fr)}.report-filter-panel{grid-template-columns:1fr 1fr}.report-filter-search{grid-column:1/-1}.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.report-hub-summary{align-items:flex-start;flex-direction:column}.report-hub-kpis{width:100%}.report-hub-kpis b{flex:1}.report-hub-grid{grid-template-columns:1fr}.report-center-header{align-items:flex-start;flex-direction:column}.report-center-workspace{display:block!important}.report-catalog-pane{position:relative;max-height:230px;border-right:0;border-bottom:1px solid #dce4ec}.report-filter-panel{grid-template-columns:1fr}.report-filter-search{grid-column:auto}.report-options-grid{grid-template-columns:1fr}.report-result-table{max-height:none}.report-center-shell .f5-window-action-bar{align-items:stretch;flex-direction:column}.report-center-shell .f5-window-action-bar>div{display:grid;grid-template-columns:1fr 1fr}}


/* V34.9.9 — Resumo inicial + personalização dos acessos rápidos */
.f5-dashboard-home{padding-top:2px}.dashboard-quick-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.dashboard-quick-header-actions p{margin:0!important}.dashboard-quick-header-actions>button{border:1px solid #c8d5e1;background:#f8fbfe;color:#245372;border-radius:8px;padding:8px 11px;font-size:.66rem;font-weight:850;cursor:pointer}.dashboard-quick-header-actions>button:hover{background:#eef6fd;border-color:#8db2d3}.f5-dashboard-quick-empty-home{grid-column:1/-1;border:1px dashed #cbd8e4;border-radius:12px;padding:26px;text-align:center;color:#718397;font-size:.72rem}
.f5-dashboard-quick-layer{position:fixed;inset:0;z-index:2147482600;background:rgba(15,23,42,.5);display:grid;place-items:center;padding:18px}.f5-dashboard-quick-dialog{width:min(980px,96vw);max-height:min(790px,92vh);background:#fff;border-radius:16px;box-shadow:0 30px 90px rgba(15,23,42,.34);overflow:hidden;display:flex;flex-direction:column}.f5-dashboard-quick-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #dbe4ec;background:#f9fbfd}.f5-dashboard-quick-dialog>header small{display:block;font-size:.58rem;font-weight:900;letter-spacing:.11em;color:#4d7599}.f5-dashboard-quick-dialog>header h2{margin:3px 0 2px;color:#173b5d;font-size:1.08rem}.f5-dashboard-quick-dialog>header p{margin:0;color:#718397;font-size:.64rem}.f5-dashboard-quick-dialog>header>button{border:0;background:transparent;color:#64788d;font-size:1.45rem;cursor:pointer}.f5-dashboard-quick-dialog-body{min-height:0;overflow:hidden;display:grid;grid-template-columns:minmax(300px,.42fr) minmax(360px,.58fr);gap:12px;padding:12px;background:#f4f7fa}.f5-dashboard-quick-dialog-body>section{min-height:0;border:1px solid #d9e3ec;border-radius:12px;background:#fff;display:flex;flex-direction:column;overflow:hidden}.f5-dashboard-quick-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid #e2e9ef;background:#fbfdff}.f5-dashboard-quick-section-title>div{display:grid;gap:2px}.f5-dashboard-quick-section-title b{font-size:.7rem;color:#254866}.f5-dashboard-quick-section-title small{font-size:.56rem;color:#7a8b9c}.f5-dashboard-quick-section-title input{width:min(220px,48%);min-height:34px;border:1px solid #cbd8e4;border-radius:8px;padding:6px 9px;font-size:.64rem;color:#24445f;background:#fff}.f5-dashboard-quick-selected,.f5-dashboard-quick-available{min-height:0;overflow:auto;padding:8px;display:grid;align-content:start;gap:6px}.f5-dashboard-quick-selected-row,.f5-dashboard-quick-available-row{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #dce5ee;border-radius:9px;background:#fff;padding:7px 8px;color:#173852}.f5-dashboard-quick-available-row{text-align:left;cursor:pointer}.f5-dashboard-quick-available-row:hover{background:#f5faff;border-color:#a9c6de}.f5-dashboard-quick-mini-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--shortcut-color);color:#fff;font-size:.78rem;font-weight:850}.f5-dashboard-quick-selected-row b,.f5-dashboard-quick-available-row b{display:block;font-size:.66rem}.f5-dashboard-quick-selected-row small,.f5-dashboard-quick-available-row small{display:block;margin-top:2px;color:#718397;font-size:.54rem;line-height:1.25}.f5-dashboard-quick-selected-row>div{display:flex;gap:4px}.f5-dashboard-quick-selected-row button{width:28px;height:28px;border:1px solid #cad7e2;background:#f8fbfe;color:#365b79;border-radius:7px;font-weight:900;cursor:pointer}.f5-dashboard-quick-selected-row button:hover:not(:disabled){background:#edf5fb}.f5-dashboard-quick-selected-row button:disabled{opacity:.35;cursor:default}.f5-dashboard-quick-selected-row button.danger{color:#b42318;background:#fff8f7;border-color:#f0c4bf}.f5-dashboard-quick-available-row i{font-style:normal;font-size:1rem;color:#3972a5}.f5-dashboard-quick-empty{padding:30px 18px;text-align:center;color:#7b8c9c;font-size:.64rem}.f5-dashboard-quick-dialog>footer{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;border-top:1px solid #dbe4ec;background:#fff;padding:10px 12px}.f5-dashboard-quick-dialog>footer button{border:1px solid #c8d5e1;background:#fff;color:#274d6d;border-radius:8px;padding:8px 11px;font-size:.64rem;font-weight:850;cursor:pointer}.f5-dashboard-quick-dialog>footer button.primary{background:#0b5795;border-color:#0b5795;color:#fff}.f5-dashboard-quick-dialog>footer button:disabled{opacity:.45;cursor:default}
@media(max-width:760px){.dashboard-quick-header-actions{justify-content:flex-start}.f5-dashboard-quick-dialog-body{grid-template-columns:1fr;overflow:auto}.f5-dashboard-quick-dialog-body>section{min-height:280px}.f5-dashboard-quick-section-title{align-items:stretch;flex-direction:column}.f5-dashboard-quick-section-title input{width:100%}.f5-dashboard-quick-dialog>footer{grid-template-columns:1fr 1fr}.f5-dashboard-quick-dialog>footer>span{display:none}}

/* V34.9.8 — Gestão em janela + Centros avançados de Estoque, Financeiro e Fiscal */
.f5-workspace-home{min-height:calc(100vh - 150px);display:grid;grid-template-columns:auto minmax(0,520px) auto;align-items:center;justify-content:center;gap:20px;color:#29465f}.f5-workspace-home-mark{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#0b3d8c,#2563eb);color:#fff;font-size:1.35rem;font-weight:950;box-shadow:0 16px 34px rgba(37,99,235,.18)}.f5-workspace-home small{font-size:.62rem;font-weight:900;letter-spacing:.12em;color:#6b86a0}.f5-workspace-home h1{margin:3px 0 4px;color:#173b5d;font-size:1.35rem}.f5-workspace-home p{margin:0;color:#718397;font-size:.73rem}.f5-workspace-home button{border:1px solid #b8cadc;border-radius:10px;background:#fff;color:#174f82;padding:10px 14px;font-weight:850;cursor:pointer;box-shadow:0 5px 15px rgba(15,23,42,.05)}.f5-workspace-home button:hover{background:#f3f8fd;border-color:#7fa8ce}
.f5-advanced-center .f5-center-summary article.critical{border-left-color:#dc2626;background:#fffafa}.f5-advanced-center .f5-center-summary article.attention{border-left-color:#d97706;background:#fffdf7}.f5-advanced-center .f5-center-summary article.good,.fiscal-center-summary article.good{border-left-color:#16a34a}.stock-center-summary article{border-left-color:#d97706}.financial-center-summary article{border-left-color:#16a34a}.fiscal-center-summary article{border-left-color:#7c3aed}
.f5-center-card-icon.stock{background:#fff3df;color:#b45309}.f5-center-card-icon.financial{background:#eaf8ef;color:#15803d}.f5-center-health{display:grid;grid-template-columns:minmax(180px,.32fr) minmax(220px,.28fr) minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #d8e2ec;border-radius:11px;background:#fff;padding:12px 14px;box-shadow:0 4px 14px rgba(15,23,42,.035)}.f5-center-health>div:first-child{display:grid;gap:2px}.f5-center-health span{font-size:.58rem;font-weight:900;letter-spacing:.08em;color:#6c8195}.f5-center-health b{font-size:1.18rem;color:#173b5d}.f5-center-health small{font-size:.59rem;color:#7b8d9e}.f5-center-health p{margin:0;color:#5f7488;font-size:.66rem;line-height:1.45}.f5-center-health p strong{color:#2b4b66}.f5-center-health>button{border:1px solid #c6d4e0;border-radius:8px;background:#f8fbfe;color:#245372;padding:8px 11px;font-size:.64rem;font-weight:850;cursor:pointer}.f5-balance-track{height:10px!important;border-radius:999px;background:#e8eef4;overflow:hidden;display:block!important}.f5-balance-track i{display:block;height:100%;width:var(--share);background:linear-gradient(90deg,#d97706,#f59e0b);border-radius:inherit}.f5-center-health.financial{grid-template-columns:minmax(220px,.35fr) minmax(0,1fr)}.f5-center-health.financial>div:first-child{border-left:4px solid #16a34a;padding-left:10px}.f5-center-health.fiscal{grid-template-columns:minmax(180px,.25fr) minmax(0,1fr) auto}.f5-center-health.fiscal>div:first-child{border-left:4px solid #7c3aed;padding-left:10px}.f5-overview-updated{white-space:nowrap!important;font-size:.58rem!important;color:#718397!important;letter-spacing:0!important;text-transform:none!important}
@media(max-width:900px){.f5-workspace-home{grid-template-columns:1fr;justify-items:center;text-align:center}.f5-center-health,.f5-center-health.financial,.f5-center-health.fiscal{grid-template-columns:1fr}.f5-balance-track{width:100%}.f5-overview-updated{width:100%;text-align:right}}

/* V34.9.7 — Visão Geral, Central de Pendências e experiência 360º */
.f5-dashboard-with-tabs{padding-top:2px}.f5-dashboard-view-tabs{display:flex;gap:4px;width:max-content;padding:4px;border:1px solid #d6e0ea;border-radius:11px;background:#eef3f8;box-shadow:0 3px 10px rgba(15,23,42,.04)}.f5-dashboard-view-tabs button{border:0;background:transparent;color:#52677c;border-radius:8px;padding:8px 16px;font-size:.72rem;font-weight:850;cursor:pointer}.f5-dashboard-view-tabs button.active{background:#fff;color:#0b5795;box-shadow:0 3px 9px rgba(15,23,42,.09)}
.f5-overview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d7e1eb;border-radius:14px;background:#fff;padding:14px 16px;box-shadow:0 8px 22px rgba(23,50,77,.06)}.f5-overview-toolbar>div:first-child{display:grid;gap:2px}.f5-overview-toolbar span,.f5-overview-section header span{font-size:.6rem;font-weight:900;letter-spacing:.1em;color:#4d7599}.f5-overview-toolbar h1{font-size:1.25rem;margin:0;color:#153b60}.f5-overview-toolbar p{margin:2px 0 0;color:#718397;font-size:.68rem}.f5-overview-toolbar>div:last-child{display:flex;gap:8px;align-items:center}.f5-overview-toolbar button{min-height:36px;border:1px solid #c8d5e1;background:#fff;color:#234967;border-radius:8px;padding:7px 11px;font-weight:850;font-size:.67rem;cursor:pointer}.f5-overview-toolbar button.primary{background:#0b5795;border-color:#0b5795;color:#fff}.f5-overview-toolbar button strong{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;border-radius:10px;background:rgba(255,255,255,.18);font-size:.62rem}.f5-overview-toolbar kbd{font-size:.56rem;margin-left:4px;opacity:.7}
.f5-overview-section{border:1px solid #d7e1eb;border-radius:14px;background:#fff;padding:13px;box-shadow:0 7px 20px rgba(23,50,77,.05)}.f5-overview-section>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.f5-overview-section h2{margin:2px 0 0;font-size:.92rem;color:#173c60}.f5-overview-section header small{color:#718397;font-size:.62rem}.f5-overview-section header>strong{font-size:.82rem;color:#173c60}.f5-overview-section header>strong small{font-weight:500}.f5-overview-section header button{border:1px solid #cbd8e4;background:#f8fbfe;color:#245372;border-radius:7px;padding:6px 9px;font-size:.62rem;font-weight:800;cursor:pointer}
.f5-overview-kpi-grid,.f5-overview-finance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.f5-overview-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-overview-kpi{position:relative;min-width:0;min-height:78px;display:grid;grid-template-rows:auto auto minmax(16px,auto);align-content:center;gap:4px;text-align:left;border:1px solid #dce5ee;border-left:4px solid #8aa0b5;background:#fbfdff;border-radius:10px;padding:10px 32px 10px 11px;color:#173852;cursor:default;overflow:visible}.f5-overview-kpi[data-overview-open]{cursor:pointer}.f5-overview-kpi:hover[data-overview-open]{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.07)}.f5-overview-kpi.tone-primary{border-left-color:#2563eb}.f5-overview-kpi.tone-good{border-left-color:#16a34a}.f5-overview-kpi.tone-attention{border-left-color:#d97706}.f5-overview-kpi.tone-critical{border-left-color:#dc2626}.f5-overview-kpi span{display:block;font-size:.59rem!important;letter-spacing:0!important;text-transform:uppercase;color:#728497;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.f5-overview-kpi b{display:block;font-size:clamp(.94rem,1.2vw,1.08rem);line-height:1.15;color:#153b60;white-space:nowrap;overflow:visible;text-overflow:clip}.f5-overview-kpi small{display:block;min-height:15px;font-size:.6rem;color:#728497;line-height:1.3;white-space:normal;overflow:visible}.f5-overview-kpi i{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-style:normal;color:#9aabba}.f5-overview-two-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:12px}
.f5-overview-chart{height:180px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:end;padding:8px 3px 0}.f5-overview-chart>div{height:100%;display:grid;grid-template-rows:1fr auto auto;gap:3px;align-items:end;text-align:center;min-width:0}.f5-overview-chart>div>span{width:min(34px,70%);min-height:4px;justify-self:center;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#4b92d0,#0b5795)}.f5-overview-chart b{font-size:.57rem;color:#536b82;text-transform:capitalize}.f5-overview-chart small{font-size:.5rem;color:#7a8d9e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f5-overview-pending-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.f5-overview-pending-grid>button{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;border:1px solid #dce5ee;background:#fbfdff;border-radius:10px;padding:9px;cursor:pointer;color:#173852}.f5-overview-pending-grid>button>span{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#eef3f8;color:#52677c;font-size:.72rem}.f5-overview-pending-grid>button.critical{border-left:4px solid #dc2626}.f5-overview-pending-grid>button.attention{border-left:4px solid #d97706}.f5-overview-pending-grid>button.info{border-left:4px solid #2563eb}.f5-overview-pending-grid b{display:block;font-size:.67rem}.f5-overview-pending-grid small{display:block;margin-top:2px;color:#718397;font-size:.56rem;line-height:1.25}.f5-overview-pending-grid strong{font-size:.9rem}.f5-overview-all-good{grid-column:1/-1;display:flex;align-items:center;gap:10px;border:1px solid #bbdfc5;background:#f3fbf5;border-radius:10px;padding:12px;color:#166534}.f5-overview-all-good>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#dcfce7}.f5-overview-all-good b,.f5-overview-all-good small{display:block}.f5-overview-all-good small{font-size:.6rem;color:#568267;margin-top:2px}
.f5-management-overview{max-width:none;width:100%;margin:0;gap:14px}.f5-management-overview .f5-overview-toolbar,.f5-management-overview .f5-overview-section{width:100%}.f5-management-overview .f5-overview-toolbar{padding:16px 18px;border-radius:18px;box-shadow:0 10px 28px rgba(23,50,77,.08)}.f5-management-overview .f5-overview-section{padding:15px 16px;border-radius:18px;box-shadow:0 9px 24px rgba(23,50,77,.06)}.f5-management-overview .f5-overview-two-columns{grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:14px}.f5-management-overview .f5-overview-pending-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-routine-group-management .f5-routine-scroll>.f5-management-overview{max-width:none!important;width:100%!important;margin:0!important}.f5-routine-group-management .f5-routine-scroll>.f5-management-overview .f5-overview-toolbar,.f5-routine-group-management .f5-routine-scroll>.f5-management-overview .f5-overview-section{margin:0!important}.f5-pending-center-layer,.f5-entity360-layer{position:fixed;inset:0;z-index:2147482500;background:rgba(15,23,42,.48);display:grid;place-items:center;padding:18px}.f5-pending-center-dialog,.f5-entity360-dialog{width:min(820px,96vw);max-height:min(760px,92vh);background:#fff;border-radius:15px;box-shadow:0 28px 80px rgba(15,23,42,.32);overflow:hidden;display:flex;flex-direction:column}.f5-pending-center-dialog>header,.f5-entity360-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:14px 16px;border-bottom:1px solid #dce5ee;background:#f9fbfd}.f5-pending-center-dialog header small,.f5-entity360-dialog header small{font-size:.58rem;font-weight:900;letter-spacing:.11em;color:#52789b}.f5-pending-center-dialog h2,.f5-entity360-dialog h2{margin:2px 0;color:#173b5d;font-size:1.05rem}.f5-pending-center-dialog header p,.f5-entity360-dialog header p{margin:3px 0 0;color:#718397;font-size:.62rem}.f5-pending-center-dialog header>button,.f5-entity360-dialog header>button{border:0;background:transparent;color:#64788d;font-size:1.4rem;cursor:pointer}.f5-pending-center-list{padding:10px;overflow:auto;display:grid;gap:6px}.f5-pending-center-list>button{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto 18px;gap:9px;align-items:center;text-align:left;border:1px solid #dce5ee;background:#fff;border-radius:9px;padding:9px 10px;color:#173852;cursor:pointer}.f5-pending-center-list>button:hover{background:#f7fbff}.f5-pending-center-list>button b{font-size:.7rem}.f5-pending-center-list>button small{display:block;margin-top:2px;color:#718397;font-size:.58rem}.f5-pending-center-list>button strong{font-size:.86rem}.f5-pending-center-list>button em{font-size:.62rem;font-style:normal;color:#5b7084}.f5-pending-dot{width:8px;height:8px;border-radius:50%;background:#2563eb}.f5-pending-center-list>button.critical .f5-pending-dot{background:#dc2626}.f5-pending-center-list>button.attention .f5-pending-dot{background:#d97706}.f5-pending-empty{padding:42px;text-align:center;color:#64748b}.f5-pending-empty>span{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 8px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:1.15rem}.f5-pending-empty b,.f5-pending-empty small{display:block}.f5-pending-center-dialog>footer,.f5-entity360-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dce5ee;background:#f4f7fa;padding:9px 12px;color:#65798d;font-size:.61rem}.f5-pending-center-dialog>footer button,.f5-entity360-dialog>footer button{border:1px solid #c5d3df;background:#fff;color:#234967;border-radius:7px;padding:6px 10px;font-weight:800;cursor:pointer}
.f5-entity360-dialog{width:min(900px,96vw)}.f5-entity360-body{overflow:auto;padding:12px;display:grid;gap:10px}.f5-entity360-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.f5-entity360-summary article{border:1px solid #dde6ee;border-radius:9px;background:#fbfdff;padding:9px}.f5-entity360-summary span,.f5-entity360-summary b{display:block}.f5-entity360-summary span{font-size:.56rem;color:#738598;text-transform:uppercase;font-weight:850}.f5-entity360-summary b{margin-top:3px;font-size:.75rem;color:#173b5d;word-break:break-word}.f5-entity360-section{border:1px solid #dce5ee;border-radius:10px;overflow:hidden}.f5-entity360-section>header{padding:8px 10px;background:#f5f8fb;border-bottom:1px solid #dce5ee;font-size:.66rem;font-weight:850;color:#244a6a}.f5-entity360-list{display:grid}.f5-entity360-list>div{display:grid;grid-template-columns:minmax(110px,.35fr) 1fr;gap:8px;padding:7px 10px;border-bottom:1px solid #edf2f6;font-size:.62rem}.f5-entity360-list>div:last-child{border-bottom:0}.f5-entity360-list span{color:#718397}.f5-entity360-list b{color:#263f58;font-weight:700}.f5-entity360-dialog>footer>div{display:flex;gap:7px}.f5-entity360-dialog>footer button.primary{background:#0b5795;border-color:#0b5795;color:#fff}
@media(max-width:980px){.f5-overview-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-overview-two-columns,.f5-management-overview .f5-overview-two-columns{grid-template-columns:1fr}.f5-overview-pending-grid,.f5-management-overview .f5-overview-pending-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-entity360-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.f5-dashboard-view-tabs{width:100%}.f5-dashboard-view-tabs button{flex:1}.f5-overview-toolbar{align-items:stretch;flex-direction:column}.f5-overview-toolbar>div:last-child{flex-wrap:wrap}.f5-management-overview .f5-overview-toolbar,.f5-management-overview .f5-overview-section{padding:14px}.f5-overview-kpi-grid,.f5-overview-finance-grid,.f5-overview-pending-grid,.f5-management-overview .f5-overview-pending-grid,.f5-entity360-summary{grid-template-columns:1fr}.f5-overview-chart{height:150px}.f5-pending-center-list>button{grid-template-columns:10px minmax(0,1fr) auto 18px}.f5-pending-center-list>button em{display:none}}

/* V34.9.11 — Centro de Backup Empresarial V2: manual + automático + restauração segura */
.backup-center{min-height:100%;box-sizing:border-box;display:grid;align-content:start;gap:12px;padding:14px;background:#f4f7fb;color:#17324d}
.backup-center-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-radius:16px;background:linear-gradient(135deg,#103f79,#0b5795 62%,#2874b6);color:#fff;box-shadow:0 14px 32px rgba(16,63,121,.18)}
.backup-center-hero small{font-size:.59rem;font-weight:900;letter-spacing:.12em;color:#cae4f7}.backup-center-hero h2{margin:3px 0;font-size:1.18rem}.backup-center-hero p{margin:0;color:#d7eaf8;font-size:.72rem}
.backup-center-health{min-width:190px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.10);padding:10px 12px}.backup-center-health span{font-size:.61rem;font-weight:900;letter-spacing:.05em}.backup-center-health b{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#0b5795;font-size:1rem}
.backup-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.backup-type-card,.backup-section-card{border:1px solid #d6e1eb;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(23,50,77,.055)}
.backup-type-card{padding:14px 15px;border-top:4px solid #2563eb}.backup-type-card.automatic{border-top-color:#0f766e}.backup-type-card>header,.backup-section-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.backup-type-card header span,.backup-section-card header span{display:block;font-size:.57rem;font-weight:900;letter-spacing:.1em;color:#66809a}.backup-type-card h3,.backup-section-card h3{margin:2px 0 0;font-size:.88rem;color:#173b60}
.backup-type-card header em,.backup-section-card header em{font-style:normal;font-size:.56rem;font-weight:900;border-radius:999px;padding:5px 8px;background:#eef2f6;color:#63778c;white-space:nowrap}.backup-type-card header em.ok,.backup-section-card header em.ok{background:#e9f8ef;color:#127044}.backup-type-card header em.failed{background:#fff0ef;color:#b42318}.backup-section-card header em.danger{background:#fff0ef;color:#a92c24}.backup-section-card header em.local{background:#eaf3ff;color:#1f5f9f}
.backup-type-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:11px}.backup-type-kpis>div{min-width:0;border:1px solid #e0e7ee;border-radius:9px;background:#f9fbfd;padding:9px 10px}.backup-type-kpis span{display:block;font-size:.56rem;font-weight:850;text-transform:uppercase;color:#73879a}.backup-type-kpis b{display:block;margin-top:3px;color:#214766;font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.backup-primary-action{width:100%;min-height:40px;border:0;border-radius:9px;background:#2563eb;color:#fff;font-weight:850;cursor:pointer;box-shadow:0 7px 16px rgba(37,99,235,.17)}.backup-primary-action:hover{filter:brightness(1.04)}.backup-primary-action:disabled{opacity:.65;cursor:wait}.backup-card-note{display:block;margin-top:7px;color:#718397;font-size:.6rem;line-height:1.35}.backup-card-error{margin:0 0 9px;border:1px solid #fecaca;border-radius:8px;background:#fff5f5;color:#a52222;padding:8px 9px;font-size:.63rem}
.backup-auto-controls{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:8px;align-items:end;margin-bottom:10px}.backup-auto-controls>label:not(.backup-switch){display:grid;gap:4px;font-size:.6rem;font-weight:850;color:#61778d}.backup-auto-controls input[type=time]{height:36px;border:1px solid #c9d6e1;border-radius:8px;background:#fff;padding:0 9px;color:#173b60}
.backup-switch{height:36px;display:flex;align-items:center;gap:8px;border:1px solid #d5e0e9;border-radius:8px;background:#f8fbfd;padding:0 10px;cursor:pointer}.backup-switch input{position:absolute;opacity:0;pointer-events:none}.backup-switch>span{width:34px;height:18px;border-radius:999px;background:#cbd5df;position:relative;transition:.18s}.backup-switch>span:after{content:"";position:absolute;width:14px;height:14px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s}.backup-switch input:checked+span{background:#0f766e}.backup-switch input:checked+span:after{transform:translateX(16px)}.backup-switch b{font-size:.64rem;color:#34526b}.backup-runtime-note{border-left:4px solid #d59a23;border-radius:7px;background:#fff9e9;color:#73551b;padding:8px 10px;font-size:.61rem;line-height:1.4}
.backup-section-card{padding:13px 14px}.backup-section-card>header>small{color:#73879a;font-size:.6rem}.backup-destination-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.backup-destination-body>div:first-child{display:grid;gap:4px}.backup-destination-body small{font-size:.57rem;font-weight:850;text-transform:uppercase;color:#708498}.backup-destination .backup-local-path{display:block;margin:0;background:#f8fafc}.backup-inline-actions{display:flex;gap:7px;flex-wrap:wrap}.backup-inline-actions button{min-height:36px;border:1px solid #c5d4e0;border-radius:8px;background:#fff;color:#28506f;padding:0 11px;font-weight:800;cursor:pointer}.backup-inline-actions button.primary{background:#0b5795;border-color:#0b5795;color:#fff}.backup-browser-warning{margin-top:9px;border:1px solid #f1d19a;border-radius:8px;background:#fff9e9;color:#78551b;padding:8px 10px;font-size:.62rem}
.backup-history-head,.backup-history-row{display:grid;grid-template-columns:100px minmax(260px,1.3fr) 100px minmax(130px,.7fr) 28px;gap:9px;align-items:center}.backup-history-head{padding:0 9px 6px;color:#788b9d;font-size:.54rem;font-weight:900;text-transform:uppercase}.backup-history-list{display:grid;gap:6px}.backup-history-row{min-height:46px;border:1px solid #e0e7ee;border-left:4px solid #2b75bc;border-radius:9px;background:#fbfdff;padding:7px 9px}.backup-history-row.failed{border-left-color:#c83c32;background:#fffafa}.backup-history-row>div{min-width:0}.backup-history-row>div b{display:block;color:#244660;font-size:.66rem}.backup-history-row>div small{display:block;margin-top:2px;color:#758899;font-size:.56rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.backup-history-row>span{font-size:.62rem;color:#566f84;overflow:hidden;text-overflow:ellipsis}.backup-history-row>strong{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e7f7ed;color:#15804c}.backup-history-row.failed>strong{background:#fff0ef;color:#b42318}.backup-history-type{display:inline-flex!important;align-items:center;justify-content:center;min-height:25px;border-radius:999px;background:#eaf2ff;color:#275ca2!important;font-weight:900!important}.backup-history-type.auto{background:#e8f7f1;color:#0d7054!important}.backup-history-empty{border:1px dashed #ccd9e4;border-radius:9px;padding:20px;text-align:center;color:#748799;font-size:.66rem}
.backup-restore-card{border-top:4px solid #b53b32}.backup-restore-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:11px}.backup-restore-flow span{display:grid;place-items:center;min-height:34px;border:1px solid #dce5ed;border-radius:7px;background:#f7fafc;color:#4e687e;text-align:center;font-size:.55rem;font-weight:850}.backup-restore-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);gap:10px;align-items:stretch}.backup-restore-grid>label{display:grid;gap:5px;font-size:.61rem;font-weight:850;color:#61778c}.backup-restore-grid input[type=file]{min-height:44px;border:1px dashed #b9c9d7;border-radius:9px;background:#f8fbfd;padding:9px;color:#36536a}.backup-preserved{display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid #cce6d5;border-radius:9px;background:#f4fbf6;padding:9px 10px;color:#27623e}.backup-preserved b{grid-column:1/-1;font-size:.62rem}.backup-preserved span{font-size:.58rem}.backup-restore-preview{margin-top:10px;min-height:48px;border:1px solid #dce5ed;border-radius:9px;background:#f9fbfd;padding:10px;color:#708397;font-size:.63rem}.backup-preview-loading{color:#315d83}.backup-preview-error{display:grid;gap:4px;color:#a22420}.backup-preview-error b{font-size:.68rem}.backup-preview-approved header,.backup-preview-local header{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.backup-preview-approved header{color:#166534}.backup-preview-approved header span{font-size:.58rem;color:#688177}.backup-preview-local{border-left:4px solid #2b75bc;padding-left:8px}.backup-preview-local header{color:#1f5f9f}.backup-preview-local header span{font-size:.58rem;color:#5f7890}.backup-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.backup-preview-grid>div{border:1px solid #e0e8ef;border-radius:7px;background:#fff;padding:7px}.backup-preview-grid span{display:block;font-size:.52rem;text-transform:uppercase;font-weight:850;color:#7a8c9c}.backup-preview-grid b{display:block;margin-top:2px;color:#274760;font-size:.61rem;overflow-wrap:anywhere}.backup-preview-approved>small,.backup-preview-local>small{display:block;margin-top:7px;color:#6c7f90}.backup-restore-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.backup-restore-actions button{min-height:38px;border:1px solid #b82f28;border-radius:8px;background:#b82f28;color:#fff;padding:0 13px;font-weight:850;cursor:pointer}.backup-restore-actions button:disabled{opacity:.45;cursor:not-allowed}.backup-restore-actions small{color:#7b6654;font-size:.59rem}.backup-last-restore{display:flex;align-items:center;gap:10px;margin-top:10px;border-top:1px solid #e4eaf0;padding-top:9px}.backup-last-restore span{font-size:.56rem;font-weight:900;text-transform:uppercase;color:#74889a}.backup-last-restore b{font-size:.66rem;color:#274861}.backup-last-restore small{margin-left:auto;color:#708397;font-size:.58rem}
.backup-scope-note{display:grid;gap:4px;border:1px solid #d7e2eb;border-radius:10px;background:#eef5fa;padding:10px 12px;color:#536e84}.backup-scope-note b{font-size:.64rem;color:#254e70}.backup-scope-note span{font-size:.59rem;line-height:1.45}
@media(max-width:1000px){.backup-type-grid{grid-template-columns:1fr}.backup-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.backup-restore-flow{grid-template-columns:repeat(3,minmax(0,1fr))}.backup-history-head,.backup-history-row{grid-template-columns:90px minmax(220px,1fr) 90px minmax(110px,.6fr) 28px}}
@media(max-width:720px){.backup-center{padding:10px}.backup-center-hero{align-items:flex-start;flex-direction:column}.backup-center-health{min-width:0;width:100%;box-sizing:border-box}.backup-auto-controls,.backup-destination-body,.backup-restore-grid{grid-template-columns:1fr}.backup-type-kpis,.backup-preview-grid{grid-template-columns:1fr 1fr}.backup-restore-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.backup-history-head{display:none}.backup-history-row{grid-template-columns:90px minmax(0,1fr) 28px}.backup-history-row>span:nth-of-type(2),.backup-history-row>span:nth-of-type(3){display:none}.backup-restore-actions{align-items:flex-start;flex-direction:column}.backup-last-restore{align-items:flex-start;flex-wrap:wrap}.backup-last-restore small{margin-left:0;width:100%}}
@media(max-width:480px){.backup-type-kpis,.backup-preview-grid,.backup-preserved{grid-template-columns:1fr}.backup-preserved b{grid-column:auto}.backup-restore-flow{grid-template-columns:1fr}.backup-inline-actions{flex-direction:column}.backup-inline-actions button{width:100%}}

/* V34.9.23 — identidade visual por módulos e opções */
:root{
  --f5-area-cadastros:#2563EB;
  --f5-area-pessoas:#0F8B8D;
  --f5-area-entradas:#0284C7;
  --f5-area-estoque:#EA6A18;
  --f5-area-vendas:#3B6FF5;
  --f5-area-financeiro:#16A34A;
  --f5-area-pdv:#7C3AED;
  --f5-area-fiscal:#8B3FE8;
  --f5-area-farmacia:#C44578;
  --f5-area-gestao:#526D82;
  --f5-area-backup:#B7791F;
  --f5-area-auditoria:#52606D;
}
.module-card-wrap{--card-accent:var(--module-color,#526D82)}
.module-card-wrap .module-card{
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--module-color,#526D82) 18%,#dce5ed);
  background:linear-gradient(135deg,color-mix(in srgb,var(--module-color,#526D82) 4%,#fff),#fff 58%);
}
.module-card-wrap .module-card::before{
  content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 4px 4px 0;
  background:color-mix(in srgb,var(--module-color,#526D82) 72%,#fff);
  opacity:.72;
}
.module-card-wrap .module-card-icon{
  background:color-mix(in srgb,var(--module-color,#526D82) 13%,#fff);
  color:var(--module-color,#526D82);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--module-color,#526D82) 10%,transparent);
}
.module-card-wrap .module-card>i{color:color-mix(in srgb,var(--module-color,#526D82) 42%,#a5b1c0)}
.module-card-wrap .module-card:hover{
  border-color:color-mix(in srgb,var(--module-color,#526D82) 46%,#cbd5e1);
  background:linear-gradient(135deg,color-mix(in srgb,var(--module-color,#526D82) 7%,#fff),#fff 62%);
  box-shadow:0 9px 20px color-mix(in srgb,var(--module-color,#526D82) 11%,rgba(15,23,42,.08));
}

.f5-center-card{
  --card-accent:#526D82;
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--card-accent) 18%,#dce5ed);
  background:linear-gradient(135deg,color-mix(in srgb,var(--card-accent) 4%,#fff),#fff 58%);
}
.f5-center-card::before{
  content:"";position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:0 4px 4px 0;
  background:color-mix(in srgb,var(--card-accent) 72%,#fff);opacity:.76;
}
.f5-center-card .f5-center-card-icon,
.pharmacy-center-grid .f5-center-card .f5-center-card-icon{
  background:color-mix(in srgb,var(--card-accent) 13%,#fff);
  color:var(--card-accent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--card-accent) 10%,transparent);
}
.f5-center-card .f5-center-card-metric{
  background:color-mix(in srgb,var(--card-accent) 9%,#f5f8fb);
  color:color-mix(in srgb,var(--card-accent) 76%,#334155);
  border:1px solid color-mix(in srgb,var(--card-accent) 12%,transparent);
}
.f5-center-card>i{color:color-mix(in srgb,var(--card-accent) 42%,#9aabba)}
.f5-center-card:hover,
.pharmacy-center-card:hover,.pharmacy-center-grid .f5-center-card:hover{
  border-color:color-mix(in srgb,var(--card-accent) 48%,#cbd5e1);
  background:linear-gradient(135deg,color-mix(in srgb,var(--card-accent) 7%,#fff),#fff 62%);
  box-shadow:0 8px 18px color-mix(in srgb,var(--card-accent) 12%,rgba(15,42,66,.08));
}
.f5-center-card:hover .f5-center-card-icon{transform:translateY(-1px) scale(1.025)}
.f5-center-card .f5-center-card-icon{transition:transform .16s ease,background .16s ease}

.stock-operations-center .f5-center-section{border-top:2px solid color-mix(in srgb,var(--f5-area-estoque) 62%,#fff)}
.financial-operations-center .f5-center-section{border-top:2px solid color-mix(in srgb,var(--f5-area-financeiro) 62%,#fff)}
.fiscal-operations-center .f5-center-section{border-top:2px solid color-mix(in srgb,var(--f5-area-fiscal) 62%,#fff)}
.pharmacy-operations-center .f5-center-section{border-top:2px solid color-mix(in srgb,var(--f5-area-farmacia) 58%,#fff)}
.stock-operations-center .f5-center-toolbar{border-top:3px solid var(--f5-area-estoque)}
.financial-operations-center .f5-center-toolbar{border-top:3px solid var(--f5-area-financeiro)}
.fiscal-operations-center .f5-center-toolbar{border-top:3px solid var(--f5-area-fiscal)}
.pharmacy-operations-center .f5-center-toolbar{border-top:3px solid var(--f5-area-farmacia)}

@media(prefers-reduced-motion:reduce){.f5-center-card .f5-center-card-icon{transition:none}.f5-center-card:hover .f5-center-card-icon{transform:none}}

/* V34.9.25 — ordem do Estoque e altura global dos cards de navegação */
:root{--f5-navigation-card-min-height:86px}
.module-card,
.f5-center-card{
  min-height:var(--f5-navigation-card-min-height);
  box-sizing:border-box;
}


/* V34.9.26 — homologação visual: cards mais altos e grade principal de 3 colunas */
:root{--f5-navigation-card-height:156px}
@media(min-width:721px){
  .module-hub-without-hero .module-card-grid{grid-auto-rows:var(--f5-navigation-card-height)}
  .module-card-wrap{min-height:var(--f5-navigation-card-height);height:var(--f5-navigation-card-height)}
  .module-card,
  .f5-center-card,
  .report-hub-card{
    min-height:var(--f5-navigation-card-height)!important;
    height:var(--f5-navigation-card-height)!important;
    box-sizing:border-box;
  }
  .f5-center-card-grid{grid-auto-rows:var(--f5-navigation-card-height)}
  .module-card,
  .f5-center-card{padding-top:18px;padding-bottom:18px}
}
/* Desktop amplo: três opções por linha nos hubs operacionais. O Centro de Relatórios mantém sua grade própria de 2 colunas. */
@media(min-width:1101px){
  .module-hub-without-hero .module-card-grid:not(.report-hub-grid),
  .f5-center-card-grid,
  .pharmacy-center-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* Tablet / desktop compacto: duas opções por linha para preservar leitura e área de toque. */
@media(min-width:721px) and (max-width:1100px){
  .module-hub-without-hero .module-card-grid:not(.report-hub-grid),
  .f5-center-card-grid,
  .pharmacy-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.module-card b,
.f5-center-card-copy b{
  white-space:normal;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.28;
}
.module-card small,
.f5-center-card-copy small{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.4;
}
@media(max-width:720px){
  .module-card-wrap{height:auto;min-height:108px}
  .module-card,.f5-center-card,.report-hub-card{height:auto!important;min-height:108px!important}
}

/* V34.9.27 — fundo pastel suave e tipografia ampliada nos cards de navegação */
:root{
  --f5-navigation-card-soft-tint:7%;
  --f5-navigation-card-soft-tint-end:2.5%;
  --f5-navigation-card-soft-hover:10%;
  --f5-navigation-card-title-size:.96rem;
  --f5-navigation-card-copy-size:.75rem;
}
.module-card-wrap .module-card{
  background:linear-gradient(
    135deg,
    color-mix(in srgb,var(--module-color,#526D82) var(--f5-navigation-card-soft-tint),#fff),
    color-mix(in srgb,var(--module-color,#526D82) var(--f5-navigation-card-soft-tint-end),#fff) 68%,
    #fff 100%
  );
}
.f5-center-card{
  background:linear-gradient(
    135deg,
    color-mix(in srgb,var(--card-accent,#526D82) var(--f5-navigation-card-soft-tint),#fff),
    color-mix(in srgb,var(--card-accent,#526D82) var(--f5-navigation-card-soft-tint-end),#fff) 68%,
    #fff 100%
  );
}
.module-card-wrap .module-card:hover{
  background:linear-gradient(
    135deg,
    color-mix(in srgb,var(--module-color,#526D82) var(--f5-navigation-card-soft-hover),#fff),
    color-mix(in srgb,var(--module-color,#526D82) 4%,#fff) 70%,
    #fff 100%
  );
}
.f5-center-card:hover,
.pharmacy-center-card:hover,
.pharmacy-center-grid .f5-center-card:hover{
  background:linear-gradient(
    135deg,
    color-mix(in srgb,var(--card-accent,#526D82) var(--f5-navigation-card-soft-hover),#fff),
    color-mix(in srgb,var(--card-accent,#526D82) 4%,#fff) 70%,
    #fff 100%
  );
}
.module-card b,
.f5-center-card-copy b{
  font-size:var(--f5-navigation-card-title-size)!important;
  line-height:1.32;
}
.module-card small,
.f5-center-card-copy small{
  font-size:var(--f5-navigation-card-copy-size)!important;
  line-height:1.48;
}
.f5-center-card-metric,
.report-hub-card em{
  font-size:.64rem;
}
@media(max-width:720px){
  :root{
    --f5-navigation-card-title-size:.91rem;
    --f5-navigation-card-copy-size:.72rem;
  }
}


/* V34.9.28 — iconografia global no padrão visual dos Acessos Rápidos */
:root{
  --f5-navigation-icon-size:48px;
  --f5-navigation-icon-radius:13px;
}
/* Cards genéricos: mesmo recipiente sólido, tamanho e contraste dos Acessos Rápidos. */
.module-card-wrap .module-card{
  grid-template-columns:var(--f5-navigation-icon-size) minmax(0,1fr) auto;
  gap:14px;
}
.module-card-wrap .module-card-icon{
  width:var(--f5-navigation-icon-size)!important;
  height:var(--f5-navigation-icon-size)!important;
  border-radius:var(--f5-navigation-icon-radius)!important;
  background:var(--module-color,#526D82)!important;
  color:#fff!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--module-color,#526D82) 20%,transparent)!important;
  font-size:1.15rem!important;
  font-weight:900;
  line-height:1;
}
/* Centrais de Estoque, Financeiro, Fiscal e Farmácia seguem exatamente a mesma linguagem. */
.f5-center-card{
  grid-template-columns:var(--f5-navigation-icon-size) minmax(0,1fr) auto auto;
  gap:13px;
}
.f5-center-card .f5-center-card-icon,
.pharmacy-center-grid .f5-center-card .f5-center-card-icon{
  width:var(--f5-navigation-icon-size)!important;
  height:var(--f5-navigation-icon-size)!important;
  border-radius:var(--f5-navigation-icon-radius)!important;
  background:var(--card-accent,#526D82)!important;
  color:#fff!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--card-accent,#526D82) 20%,transparent)!important;
  font-size:1.15rem!important;
  font-weight:900;
  line-height:1;
}
/* Comércio Geral usa o mesmo padrão nos atalhos internos. */
.commerce-shortcut{
  grid-template-columns:var(--f5-navigation-icon-size) minmax(0,1fr) auto;
  gap:13px;
}
.commerce-shortcut>span{
  width:var(--f5-navigation-icon-size)!important;
  height:var(--f5-navigation-icon-size)!important;
  border-radius:var(--f5-navigation-icon-radius)!important;
  background:var(--shortcut-color,#0F4C81)!important;
  color:#fff!important;
  box-shadow:0 7px 16px color-mix(in srgb,var(--shortcut-color,#0F4C81) 20%,transparent);
  font-size:1.15rem!important;
  font-weight:900;
  line-height:1;
}
/* A central farmacêutica legada também recebe o mesmo recipiente visual quando exibida. */
.pharmacy-hub-card-icon{
  width:var(--f5-navigation-icon-size)!important;
  height:var(--f5-navigation-icon-size)!important;
  border-radius:var(--f5-navigation-icon-radius)!important;
  background:#0F766E!important;
  color:#fff!important;
  box-shadow:0 7px 16px rgba(15,118,110,.18);
  font-size:1.15rem!important;
}
@media(max-width:720px){
  :root{--f5-navigation-icon-size:46px;--f5-navigation-icon-radius:12px}
}
@media(prefers-reduced-motion:reduce){
  .module-card-icon,.f5-center-card-icon,.commerce-shortcut>span{transition:none!important}
}

/* V34.9.29 — Manifestação: unidade interna pesquisável e pagamento do XML */
.dfe-conversion-controls{grid-template-columns:130px 110px minmax(170px,1fr)}
.dfe-unit-lookup{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px;align-items:center;min-width:0}
.dfe-unit-lookup.dfe-unit-lookup-with-add{grid-template-columns:minmax(0,1fr) 38px 38px}
.dfe-unit-lookup input{min-width:0;width:100%;cursor:pointer;background:#fff;color:#153a62;font-weight:800}
.dfe-unit-lookup button{height:36px;border:1px solid #b9cce0;border-radius:8px;background:#f8fbff;color:#0b5795;font-weight:900;cursor:pointer}
.dfe-unit-lookup button:hover{background:#edf6ff;border-color:#79a9d6}
.purchase-xml-payment-note{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:0 0 12px;padding:10px 12px;border:1px solid #b9ddc6;border-radius:10px;background:#f2fbf5;color:#234d33;font-size:.76rem}
.purchase-xml-payment-note b{color:#166534}.purchase-xml-payment-note span{color:#4b6655}
@media(max-width:760px){.dfe-unit-lookup{grid-template-columns:minmax(0,1fr) 42px}.dfe-unit-lookup button{height:40px}}

/* V34.9.86 — Manifestação compacta sem rolagem horizontal */
.dfe-map-table.conversion{overflow-x:hidden;overflow-y:auto}
.dfe-map-table.conversion table{width:100%;min-width:0;table-layout:fixed}
.dfe-map-table.conversion th,.dfe-map-table.conversion td{padding:8px 7px;font-size:.7rem;line-height:1.25;overflow-wrap:anywhere;word-break:normal}
.dfe-map-table.conversion th{font-size:.61rem}
.dfe-map-table.conversion small{font-size:.6rem;line-height:1.25}
.dfe-map-table.conversion th:nth-child(1),.dfe-map-table.conversion td:nth-child(1){width:3%}
.dfe-map-table.conversion th:nth-child(2),.dfe-map-table.conversion td:nth-child(2){width:23%}
.dfe-map-table.conversion th:nth-child(3),.dfe-map-table.conversion td:nth-child(3){width:10%}
.dfe-map-table.conversion th:nth-child(4),.dfe-map-table.conversion td:nth-child(4){width:32%}
.dfe-map-table.conversion th:nth-child(5),.dfe-map-table.conversion td:nth-child(5){width:10%}
.dfe-map-table.conversion th:nth-child(6),.dfe-map-table.conversion td:nth-child(6){width:13%}
.dfe-map-table.conversion th:nth-child(7),.dfe-map-table.conversion td:nth-child(7){width:9%}
.dfe-map-table.conversion .dfe-conversion-controls{grid-template-columns:minmax(86px,1.05fr) minmax(54px,.65fr) minmax(112px,1.6fr);gap:4px}
.dfe-map-table.conversion .dfe-conversion-controls select,.dfe-map-table.conversion .dfe-conversion-controls input{height:32px;padding:0 6px;font-size:.7rem}
.dfe-map-table.conversion .dfe-unit-lookup{grid-template-columns:minmax(0,1fr) 32px;gap:4px}
.dfe-map-table.conversion .dfe-unit-lookup button{height:32px;padding:0}
.dfe-map-table.conversion td:last-child{white-space:normal}
.dfe-map-table.conversion td:last-child button{display:block;width:100%;margin:0 0 4px;padding:6px 4px;font-size:.62rem;white-space:normal}
@media(max-width:1050px){
  .dfe-map-table.conversion th,.dfe-map-table.conversion td{padding:7px 5px;font-size:.66rem}
  .dfe-map-table.conversion th{font-size:.58rem}
  .dfe-map-table.conversion .dfe-conversion-controls{grid-template-columns:minmax(72px,1fr) minmax(48px,.6fr) minmax(92px,1.35fr)}
}

/* V34.9.86 — campos de conversão separados e proporcionais */
.dfe-map-table.conversion .dfe-conversion-controls{
  grid-template-columns:minmax(92px,110px) 58px minmax(105px,138px);
  column-gap:8px;
  justify-content:start;
}
.dfe-map-table.conversion .dfe-conversion-controls>select,
.dfe-map-table.conversion .dfe-conversion-controls>input,
.dfe-map-table.conversion .dfe-conversion-controls>.dfe-unit-lookup{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.dfe-map-table.conversion .dfe-conversion-controls>input{padding-inline:7px}
.dfe-map-table.conversion .dfe-unit-lookup{grid-template-columns:minmax(0,1fr) 30px;gap:4px}
.dfe-map-table.conversion .dfe-unit-lookup input{width:100%;min-width:0;padding-inline:7px}
.dfe-map-table.conversion .dfe-unit-lookup button{width:30px;min-width:30px}
@media(max-width:1050px){
  .dfe-map-table.conversion .dfe-conversion-controls{grid-template-columns:minmax(80px,100px) 52px minmax(96px,124px);column-gap:6px}
}

/* V34.9.187 — leitura compacta dos controles de conversão */
.dfe-map-table.conversion .dfe-conversion-controls>select,
.dfe-map-table.conversion .dfe-conversion-controls>input,
.dfe-map-table.conversion .dfe-unit-lookup input{
  font-size:.62rem;
  font-weight:700;
}
.dfe-map-table.conversion .dfe-unit-lookup input::placeholder{font-size:.6rem}

/* V34.9.40 — consulta em modo somente leitura quando a ação de escrita não está autorizada */
.f5-readonly-banner{margin:8px 12px 6px;padding:7px 10px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1e3a5f;display:flex;align-items:center;gap:9px;box-shadow:0 1px 2px rgba(15,23,42,.04);flex:0 0 auto;align-self:stretch;min-height:0!important;height:auto!important}
.f5-readonly-banner>span{width:28px;height:28px;border-radius:8px;background:#dbeafe;display:grid;place-items:center;flex:0 0 28px;font-size:.88rem}
.f5-readonly-banner div{display:flex;flex-direction:column;gap:2px;min-width:0}
.f5-readonly-banner b{font-size:.8rem}
.f5-readonly-banner small{font-size:.69rem;color:#526b85;line-height:1.25}
.f5-readonly-scope input[readonly],.f5-readonly-scope textarea[readonly],.f5-readonly-scope select:disabled{background:#f8fafc!important;color:#334155!important;cursor:default!important;opacity:1}
.f5-readonly-scope input[type=checkbox]:disabled,.f5-readonly-scope input[type=radio]:disabled{opacity:.72}
.f5-readonly-footer{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af;font-size:.8rem;font-weight:700}

/* V34.9.40 — Relatório Financeiro gerencial por cliente, fornecedor, situação e aging */
.report-catalog-section{display:grid;gap:6px;padding:0 0 9px;margin:0 0 4px;border-bottom:1px solid #edf1f5}.report-catalog-section:last-child{border-bottom:0}.report-catalog-section h3{margin:2px 3px 0;font-size:.61rem;line-height:1.2;font-weight:900;letter-spacing:.055em;text-transform:uppercase;color:#60758a}.report-catalog-section .report-catalog-item{margin:0}
.report-filter-panel select{height:35px;border:1px solid #c8d4df;border-radius:8px;padding:0 8px;min-width:0;background:#fff;color:#29465f}.report-filter-panel.financial{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.report-filter-panel.financial .report-filter-party,.report-filter-panel.financial .report-filter-search{grid-column:span 2}.report-filter-panel.financial button{justify-self:start;min-width:112px}
.report-options-grid .report-financial-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.report-financial-options label{display:grid;gap:4px;font-size:.61rem;font-weight:800;color:#5d7186}.report-financial-options select{width:100%}
.report-summary-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.report-summary-grid article{min-width:0}.report-summary-grid strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.report-status-chip{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;border:1px solid #d9e3ec;background:#f7f9fb;color:#51677d;font-size:.61rem;font-weight:850}.report-status-chip.recebida,.report-status-chip.paga{border-color:#b9dfc9;background:#eefaf3;color:#187344}.report-status-chip.vencida{border-color:#f1c8c5;background:#fff2f1;color:#b42318}.report-status-chip.parcial{border-color:#f1dbab;background:#fff8e8;color:#8a5b00}.report-status-chip.pendente{border-color:#cbd9e8;background:#f2f7fc;color:#315a7d}.report-status-chip.cancelada{border-color:#d7dce2;background:#f5f6f7;color:#68737f}
.report-detail-row{cursor:pointer}.report-detail-row:hover td{background:color-mix(in srgb,var(--report-color) 6%,#fff)!important}.report-detail-action{font-weight:850;color:var(--report-color)!important;text-align:right!important}
.report-drilldown-panel{border:1px solid color-mix(in srgb,var(--report-color) 28%,#dce4ec);border-radius:11px;background:#fff;overflow:hidden}.report-drilldown-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e6edf3;background:color-mix(in srgb,var(--report-color) 4%,#fff)}.report-drilldown-panel>header small,.report-drilldown-panel>header h3,.report-drilldown-panel>header p{display:block;margin:0}.report-drilldown-panel>header small{font-size:.58rem;font-weight:900;letter-spacing:.05em;color:var(--report-color)}.report-drilldown-panel>header h3{margin-top:2px;font-size:.88rem;color:#203b55}.report-drilldown-panel>header p{margin-top:2px;font-size:.62rem;color:#72869a}.report-drilldown-table{overflow:auto;max-height:280px}.report-drilldown-table table{width:100%;border-collapse:collapse}.report-drilldown-table th,.report-drilldown-table td{padding:7px 8px;border-bottom:1px solid #edf1f5;white-space:nowrap;text-align:left}.report-drilldown-table th{position:sticky;top:0;background:#f6f8fa;color:#536a80;font-size:.59rem;text-transform:uppercase;letter-spacing:.025em}.report-drilldown-table td{font-size:.66rem;color:#29445d}
@media(max-width:1100px){.report-filter-panel.financial{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-panel.financial .report-filter-party,.report-filter-panel.financial .report-filter-search{grid-column:span 2}.report-options-grid .report-financial-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.report-filter-panel.financial{grid-template-columns:1fr}.report-filter-panel.financial .report-filter-party,.report-filter-panel.financial .report-filter-search{grid-column:auto}.report-options-grid .report-financial-options{grid-template-columns:1fr}.report-drilldown-panel>header{align-items:flex-start;flex-direction:column}}

/* V34.9.40 — filtros financeiros de Cliente/Fornecedor vinculados ao cadastro */
.report-party-lookup-field{display:grid;grid-template-columns:minmax(0,1fr) 36px 34px;gap:5px;align-items:center}.report-party-lookup-field input[readonly]{cursor:pointer;background:#fff;color:#29465f}.report-party-lookup-field button{min-width:0!important;width:100%;padding:0!important;justify-self:stretch!important;font-size:1rem}.report-party-lookup-field .report-party-search{background:#eef6ff;border-color:#aac9e8;color:#0f5d9a}.report-party-lookup-field .report-party-clear{background:#fff5f5;border-color:#efc3c3;color:#b42318}.report-party-lookup-field .report-party-clear:disabled{opacity:.4;cursor:not-allowed}

/* V34.9.86 — padrão global de pesquisa: lupa + limpar */
.f5-search-control{display:grid;grid-template-columns:minmax(0,1fr) 36px 34px;gap:5px;align-items:stretch;width:100%;min-width:0}
.f5-search-control>input{min-width:0;width:100%}
.f5-search-control-button,.f5-lookup-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:34px!important;min-height:34px;padding:0 8px!important;border:1px solid #b8c9da;border-radius:8px;background:#eef6ff;color:#0f5d9a;cursor:pointer;font-weight:800}
.f5-search-control-button svg,.f5-lookup-icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.f5-search-control-button.is-clear,.f5-lookup-icon-button.is-clear{background:#fff7f7;border-color:#e8c4c4;color:#b42318}
.f5-search-control-button:disabled,.f5-lookup-icon-button:disabled{opacity:.38;cursor:not-allowed}
.f5-search-control-button:not(:disabled):hover,.f5-lookup-icon-button:not(:disabled):hover{filter:brightness(.97)}
.f5-lookup-icon-label{font-size:.72rem;line-height:1}
.financial-search-form>.f5-search-control{grid-column:1/-1}
.company-users-toolbar>.f5-search-control,.payment-toolbar>.f5-search-control,.people-search-block>.f5-search-control{flex:1;min-width:0}
@media(max-width:620px){.f5-search-control{grid-template-columns:minmax(0,1fr) 34px 32px}.f5-lookup-icon-label{display:none}}
.lookup-add-field.three-actions{grid-template-columns:minmax(0,1fr) 38px 38px 38px}
@media(max-width:620px){.lookup-add-field.three-actions{grid-template-columns:minmax(0,1fr) 36px 36px 36px}}
.financial-party-lookup{display:grid;grid-template-columns:minmax(0,1fr) 38px 36px;gap:5px;align-items:stretch}
.financial-party-lookup input[readonly]{cursor:pointer;background:#fff;color:#29465f}
.financial-party-lookup button{display:grid;place-items:center;border:1px solid #b8c9da;border-radius:8px;background:#eef6ff;color:#0f5d9a;font-weight:900;cursor:pointer}
.financial-party-lookup #financial-party-clear{background:#fff7f7;border-color:#e8c4c4;color:#b42318}
.financial-party-lookup button:disabled{opacity:.38;cursor:not-allowed}

/* V34.9.86 — configuração fiscal operacional com estados explícitos */
.master-fiscal-operational-note{display:block;margin:-7px 0 3px 26px;font-size:.6rem;line-height:1.45;color:#718394}
.master-fiscal-operational-note.warning{color:#9a5a12}
.master-fiscal-check-managed{color:#2f654d}.master-fiscal-check-managed input:disabled{opacity:1;accent-color:#16875a}
.master-fiscal-check-pending{color:#8a5a1d}.master-fiscal-check-pending input:disabled{opacity:.7}
/* Centros operacionais com navegação por grupos */
.f5-center-group-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px;padding:8px;border:1px solid #dce5ed;border-radius:10px;background:#f7fafc;overflow:visible}
.f5-center-group-tabs button{min-width:0;width:auto!important;height:38px!important;border:1px solid #cbd8e3;border-radius:8px;background:#fff;color:#526b80;padding:7px 12px!important;font-size:.72rem;font-weight:850;white-space:normal;cursor:pointer}
.f5-center-group-tabs button.active{border-color:var(--area-color,#3b6ff5);background:#173b5d;color:#fff;box-shadow:none}
.f5-center-sections>.f5-center-section{display:none!important}
.f5-center-sections>.f5-center-section.is-active{display:block!important}
.f5-advanced-center .f5-center-card-grid{grid-auto-rows:112px!important}
.f5-advanced-center .f5-center-card{height:112px!important;min-height:112px!important;padding:12px!important}
@media(max-width:640px){.f5-center-group-tabs{grid-template-columns:1fr}.f5-center-group-tabs button{height:34px!important}.f5-advanced-center .f5-center-card{height:auto!important;min-height:96px!important}}
.report-category-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.report-category-card-center,.report-financial-group-center{padding:10px!important}
.report-category-search{margin-bottom:10px;border-top-color:#db2777!important}
.report-category-search .f5-center-search-row button{cursor:pointer}
.report-category-search [data-report-hub-submit]{color:#0f5d9a;background:#eef6ff;border-color:#aac9e8}
.report-category-search [data-report-hub-clear]{color:#b42318;background:#fff7f7;border-color:#f0d2d2}
.report-category-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:0}
.report-financial-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
.report-category-card-grid .f5-center-card,.report-financial-group-grid .f5-center-card{min-height:112px}
.report-group-back-row{display:flex;justify-content:flex-start;margin-bottom:10px}
.report-tabs-center .f5-center-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.report-tabs-center .f5-center-section>header>b{font-size:.65rem;color:#9d174d;background:#fce7f3;border-radius:999px;padding:5px 9px;white-space:nowrap}
.report-direct-card .f5-center-card-metric{background:#fce7f3;color:#9d174d}
@media(max-width:900px){.report-category-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.report-category-card-grid,.report-financial-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.report-category-tabs{grid-template-columns:1fr}}
@media(max-width:520px){.report-category-card-grid,.report-financial-group-grid{grid-template-columns:1fr}}
.f5-management-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;border:1px solid #d5e1eb;border-radius:11px;background:#f3f7fa}
.f5-management-tabs button{min-width:0;height:38px;border:1px solid #c9d7e2;border-radius:8px;background:#fff;color:#526b80;font-size:.7rem;font-weight:850;cursor:pointer}
.f5-management-tabs button.active{border-color:#315c8d;background:#173b5d;color:#fff}
.f5-management-tabs button strong{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;border-radius:999px;background:#e9eff5;color:#315c8d;font-size:.58rem}
.f5-management-tabs button.active strong{background:rgba(255,255,255,.18);color:#fff}
.f5-management-panels>[data-management-panel]{display:none!important}
.f5-management-panels>[data-management-panel].is-active{display:block!important}
.f5-management-panels>.f5-overview-two-columns.is-active{display:grid!important}
.f5-management-panels .f5-overview-section{box-sizing:border-box}
@media(max-width:760px){.f5-management-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.f5-management-panels>.f5-overview-two-columns.is-active{display:block!important}.f5-management-panels>.f5-overview-two-columns.is-active article+article{margin-top:10px}}

/* V34.9.86 — ações operacionais sempre visíveis sob cada saída e entrada */
.mov-actions-always td{border-bottom:2px solid #d8e2ea!important;background:#f4f8fb!important;padding:8px 12px!important}
.mov-actions-always:hover td{background:#f4f8fb!important}
.mov-actions-always .mov-more-panel{min-height:30px}
/* V34.9.86 — ações adicionais recolhidas por documento */
.mov-actions-disclosure{width:100%}
.mov-actions-disclosure>summary{display:flex;align-items:center;gap:7px;width:max-content;min-height:28px;list-style:none;cursor:pointer;color:#315a78;font-size:.63rem;font-weight:850;user-select:none}
.mov-actions-disclosure>summary::-webkit-details-marker{display:none}
.mov-actions-disclosure>summary .mov-actions-arrow{width:23px;height:23px;display:grid;place-items:center;border:1px solid #b9cad8;border-radius:999px;background:#fff;color:#0b5795;font-size:1rem;line-height:1;transition:transform .16s ease}
.mov-actions-disclosure[open]>summary .mov-actions-arrow{transform:rotate(180deg)}
.mov-actions-disclosure[open]>summary{margin-bottom:7px}
.mov-actions-disclosure:not([open])>.mov-more-panel{display:none}
.mov-actions-disclosure>summary:hover .mov-actions-arrow,.mov-actions-disclosure>summary:focus-visible .mov-actions-arrow{border-color:#0b5795;background:#eaf4fb;box-shadow:0 0 0 2px rgba(11,87,149,.12)}
.purchase-mov-table-wrap{margin-top:10px}
.purchase-mov-table .purchase-entry-actions small{flex:1;min-width:260px;line-height:1.35}
.purchase-mov-table tr[data-entry-row]{cursor:pointer}
.purchase-mov-table tr[data-entry-row].is-cancelled>td{background:#fff8f8}
@media(max-width:760px){.mov-actions-always .mov-more-panel{align-items:stretch}.mov-actions-always .mov-more-panel button{flex:1 1 170px}.purchase-mov-table{min-width:850px}}

/* V34.9.86 — resumos de receber e pagar dentro de suas próprias rotinas */
.financial-account-summary-context{grid-template-columns:repeat(2,minmax(180px,1fr))}
.financial-account-summary-context article{border-left:4px solid #16a34a}
.financial-account-summary-context article.danger{border-left-color:#dc2626;background:#fffafa}
@media(max-width:720px){.financial-account-summary-context{grid-template-columns:1fr}}

/* V34.9.86 — PIN individual do supervisor e detalhe modal de Entradas */
.company-user-pdv-security{border:1px solid #b9cde0;border-radius:11px;background:#f5f9fc;padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.company-user-pdv-security legend{padding:0 7px;color:#17456f;font-weight:850}
.company-user-pdv-security .company-user-active{display:flex;align-items:center;gap:8px;margin:0}
.company-user-pdv-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;min-width:0}
.company-user-pdv-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
.company-user-pdv-fields input{width:100%;min-width:0;height:46px;margin:0}
.company-user-pdv-help{display:block;width:100%;margin:0;padding:8px 10px;border-radius:8px;background:#eaf2f8;color:#587089;line-height:1.35}
.purchase-detail-panel.mov-detail-dialog{margin:0;padding:0}
.purchase-detail-panel.mov-detail-dialog>.purchase-detail-grid,.purchase-detail-panel.mov-detail-dialog>h4,.purchase-detail-panel.mov-detail-dialog>.table-wrap,.purchase-detail-panel.mov-detail-dialog>.purchase-account-list,.purchase-detail-panel.mov-detail-dialog>p,.purchase-detail-panel.mov-detail-dialog>.purchase-cancelability,.purchase-detail-panel.mov-detail-dialog>.purchase-cancel-record{margin-left:16px;margin-right:16px}
.purchase-detail-panel.mov-detail-dialog>*:last-child{margin-bottom:16px}
@media(max-width:720px){.company-user-pdv-fields{grid-template-columns:1fr}}

/* V34.9.86 — janelas documentais com conteúdo rolável e ações sempre visíveis */
.mov-detail-dialog{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important;height:min(88vh,820px)}
.mov-detail-dialog>header{position:relative!important;top:auto!important;flex:0 0 auto}
.mov-detail-dialog>.mov-detail-grid{grid-template-columns:1fr!important;overflow:auto!important;min-height:0;padding:16px 18px!important;align-content:start}
.mov-detail-dialog>.mov-detail-grid>.mov-detail-summary,.mov-detail-dialog>.mov-detail-grid>.mov-history{grid-column:1!important}
.mov-detail-dialog>footer,.purchase-detail-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0!important;padding:11px 16px!important;background:#f5f8fb;border-top:1px solid #cfdae4;box-shadow:0 -5px 16px rgba(18,63,120,.08);z-index:4}
.mov-detail-dialog>footer button,.purchase-detail-actions button{min-height:36px;white-space:nowrap}
.purchase-detail-panel.mov-detail-dialog{display:block!important;height:min(88vh,760px);overflow:auto!important}
.purchase-detail-panel.mov-detail-dialog>header{position:sticky!important;top:0!important}
.purchase-detail-panel.mov-detail-dialog>.purchase-detail-actions{position:sticky;bottom:0}
.purchase-detail-scroll{min-height:0;overflow:auto;padding:2px 0 16px}
.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>.purchase-detail-grid,.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>h4,.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>.table-wrap,.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>.purchase-account-list,.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>p,.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>.purchase-cancelability,.purchase-detail-panel.mov-detail-dialog>.purchase-detail-scroll>.purchase-cancel-record{margin-left:16px;margin-right:16px}
@media(max-width:620px){.mov-overlay{padding:8px}.mov-detail-dialog{width:100%!important;height:94vh;max-height:94vh}.mov-detail-dialog>footer,.purchase-detail-actions{justify-content:stretch}.mov-detail-dialog>footer button,.purchase-detail-actions button{flex:1 1 auto}}

/* V34.9.86 — chave de acesso e situação do XML sem deformar o resumo */
.purchase-detail-grid{min-width:0}
.purchase-detail-grid article{min-width:0;overflow:hidden}
.purchase-document-card{align-items:flex-start}
.purchase-access-key{display:block;width:100%;max-width:100%;padding:6px 7px;border-radius:6px;background:#e8f0f7;color:#173f65;font:700 .66rem/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.purchase-xml-status{display:inline-flex;align-items:center;margin-top:3px;padding:4px 8px;border-radius:999px;background:#e5f7ed;color:#137044;font-size:.62rem;font-style:normal;font-weight:800;line-height:1}

/* V34.9.86 — ações de criação de Entradas com altura e texto uniformes */
.purchase-search-row{align-items:stretch}
.purchase-search-row button{display:inline-flex;align-items:center;justify-content:center;min-width:136px;min-height:48px;height:auto;padding:8px 14px;line-height:1.2;text-align:center;white-space:normal;overflow:visible}
@media(max-width:760px){.purchase-search-row button{flex:1 1 150px;min-width:0}}

/* V34.9.105 — identidade dos portais e gestão segura de parceiros */
.exata-landing-hero p em{color:#26a9ff;font-style:normal;font-weight:900;white-space:nowrap}
.exata-landing-hero p mark{padding:0;background:transparent;color:#26a9ff}
#portalLoginCard{margin:auto auto 78px}
#portalLoginCard .login-brand{justify-content:center;margin-bottom:10px;max-width:100%}
#portalLoginCard .login-brand img{display:block;width:min(100%,330px)!important;height:auto!important;max-height:116px;border-radius:0!important;box-shadow:none!important;object-fit:contain;background:transparent}
.portal-login-footer{position:absolute;z-index:4;left:0;right:0;bottom:0;min-height:54px;padding:12px clamp(22px,5vw,70px);align-items:center;justify-content:space-between;gap:18px;border-top:1px solid rgba(98,164,230,.25);background:#061b3a;color:#58baff;font-size:.73rem}
.portal-login-footer b{color:#dcecff;font-size:.7rem;letter-spacing:.04em}
.partner-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.partner-admin-heading h1{margin-bottom:4px}
.partner-admin-layout{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:16px;align-items:start}
.partner-admin-list{position:sticky;top:12px;margin:0;padding:14px}.partner-admin-list .field{margin-bottom:12px}.partner-admin-list-items{display:grid;gap:7px;max-height:calc(100vh - 245px);overflow:auto}
.partner-admin-list-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #d6e1eb;border-radius:10px;background:#fff;color:#173a5c;text-align:left;cursor:pointer}.partner-admin-list-item:hover{background:#f4f9fd}.partner-admin-list-item.active{border-color:#1688b5;background:#ebf9fd;box-shadow:inset 3px 0 #1688b5}.partner-admin-list-item span{display:grid;gap:3px;min-width:0}.partner-admin-list-item b,.partner-admin-list-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.partner-admin-list-item small{color:#6e8295;font-size:.65rem}.partner-admin-list-item em{padding:4px 7px;border-radius:999px;font-size:.57rem;font-style:normal;font-weight:850}.partner-admin-list-item em.active{background:#e4f7ec;color:#147348}.partner-admin-list-item em.inactive{background:#f2f4f6;color:#687582}
.partner-admin-detail{margin:0;padding:0;overflow:hidden}.partner-admin-form{padding:17px}.partner-admin-form>header,.partner-admin-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.partner-admin-form h2,.partner-admin-section h3,.partner-admin-section p{margin:0}.partner-admin-form header small{color:#1688b5;font-weight:900;letter-spacing:.06em}.partner-active-toggle{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:9px;background:#eef8f4;color:#176844;font-size:.72rem;font-weight:800}.partner-active-toggle input{width:auto;min-width:0}.partner-form-actions{display:flex;gap:8px;margin-top:14px}
.partner-admin-section{padding:17px;border-top:1px solid #dbe5ee}.partner-admin-section header p{margin-top:3px;color:#6e8295;font-size:.68rem}.partner-user-form{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(170px,1fr) auto;gap:9px;align-items:end}.partner-user-form .field{margin:0}.partner-user-list{display:grid;gap:6px;margin-top:12px}.partner-user-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #dbe5ee;border-radius:9px;background:#f9fbfd}.partner-user-list article span{display:grid}.partner-user-list small{color:#6c8093;font-size:.64rem}
.partner-company-assignment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:330px;overflow:auto}.partner-company-assignment label{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #d6e2ec;border-radius:9px;background:#fff;cursor:pointer}.partner-company-assignment label:has(input:checked){border-color:#5bb5a2;background:#effaf7}.partner-company-assignment input{width:auto;min-width:0;margin-top:2px}.partner-company-assignment span{display:grid;min-width:0}.partner-company-assignment b,.partner-company-assignment small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.partner-company-assignment small{color:#6d8194;font-size:.63rem}.partner-company-assignment label.disabled{opacity:.62}
.partner-admin-welcome{padding:70px 28px;text-align:center}.partner-admin-welcome p{color:#6e8295}
@media(max-width:900px){.partner-admin-layout{grid-template-columns:1fr}.partner-admin-list{position:static}.partner-admin-list-items{max-height:230px}.partner-user-form{grid-template-columns:1fr 1fr}.partner-user-form button{grid-column:1/-1}.partner-company-assignment{grid-template-columns:1fr}}
@media(max-width:560px){#portalLoginCard{margin-bottom:66px}.portal-login-footer{padding:10px 14px;font-size:.62rem}.portal-login-footer span{max-width:72%}.partner-admin-heading{align-items:stretch;flex-direction:column}.partner-user-form{grid-template-columns:1fr}}

/* V34.9.105 — continuidade cromática do banner e centralização dos portais */
.login-screen:after{z-index:0;pointer-events:none}
.login-screen:before{z-index:0;pointer-events:none;top:50%;right:7vw;width:min(42vw,560px);height:min(42vw,560px);border-radius:50%;transform:translateY(-50%);background:url('../assets/logo-exata-sistemas.jpeg') center/contain no-repeat;opacity:.045;filter:saturate(.8) contrast(.9)}
.exata-landing{background:#03152f}
.exata-landing-hero{gap:0;background:#03152f}
.exata-landing-copy{background:#03152f}
.exata-hero-photo{background-image:linear-gradient(90deg,#03152f 0%,rgba(3,21,47,.94) 10%,rgba(3,21,47,.58) 28%,rgba(3,21,47,.12) 48%,rgba(3,21,47,.04) 100%),url('../assets/hero-exata-operador-v2.png')}
.exata-landing,.exata-landing-header,.exata-landing-hero,.exata-landing footer{position:relative;z-index:1}
.exata-landing button,.exata-hero-cta{position:relative;z-index:5;pointer-events:auto}
#portalLoginCard{z-index:2;margin:auto;transform:translateY(-18px)}
.portal-login-footer{z-index:3}
@media(max-width:850px){.exata-landing-hero{background:linear-gradient(rgba(3,21,47,.9),rgba(3,21,47,.9)),url('../assets/hero-exata-operador-v2.png') center/cover}}
@media(max-width:560px){#portalLoginCard{margin:auto;transform:translateY(-8px)}}

/* V34.9.86 — PDV ocupa o painel esquerdo e ações acompanham a cor do módulo */
.pdv-window-body .pdv-brand-panel{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;align-content:stretch!important}
.pdv-window-body .pdv-entry-box-v3242{height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) auto!important}
.pdv-window-body #pdv-product-preview-area,.pdv-window-body .pdv-product-preview{height:100%;min-height:0}
.pdv-window-body .pdv-product-preview-image,.pdv-window-body .pdv-product-preview-info{min-height:0}
.mov-actions-disclosure>summary .mov-actions-arrow{background:#e7f2fb;border-color:#a9c9df;color:#0b5795}
.purchase-mov-table .mov-actions-disclosure>summary .mov-actions-arrow,.purchase-mov-table-wrap .mov-actions-disclosure>summary .mov-actions-arrow{background:#e5f6f2;border-color:#a8d9ce;color:#0f766e}
.purchase-mov-table .mov-actions-disclosure>summary:hover .mov-actions-arrow,.purchase-mov-table .mov-actions-disclosure>summary:focus-visible .mov-actions-arrow,.purchase-mov-table-wrap .mov-actions-disclosure>summary:hover .mov-actions-arrow,.purchase-mov-table-wrap .mov-actions-disclosure>summary:focus-visible .mov-actions-arrow{background:#d5f0e9;border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.12)}

/* V34.9.106 — qualidade cadastral de clientes e fornecedores */
.people-summary-row article.quality-warning{border-color:#f2c66d;background:#fff9ec}
.people-summary-row article.quality-warning b{color:#9a5700}
.people-summary-row article.quality-ok{border-color:#9ed8bd;background:#f1fbf6}
.people-summary-row article.quality-ok b{color:#087647}
.people-table-panel .badge.warning{background:#fff1c8;color:#925400;border:1px solid #efd27d;cursor:help}
/* V34.9.108 — estoque de licenças por parceiro e ativação por empresa */
.partner-license-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin:18px 0 24px}.partner-license-summary article{background:#fff;border:1px solid #d6e1ee;border-left:4px solid #16a05d;border-radius:14px;padding:16px;display:grid;gap:7px}.partner-license-summary article.attention{border-left-color:#e58a12}.partner-license-summary small{font-size:11px;color:#61758d;font-weight:800}.partner-license-summary b{font-size:28px;color:#0a315b}.partner-license-grid{display:grid;grid-template-columns:repeat(3,minmax(230px,1fr));gap:12px;margin:10px 0 26px}.partner-license-card{background:#fff;border:1px solid #d6e1ee;border-radius:14px;padding:15px;display:grid;gap:12px}.partner-license-card>header{display:flex;justify-content:space-between;gap:12px}.partner-license-card span{display:grid;gap:4px}.partner-license-card small,.partner-license-card p{color:#61758d}.partner-license-card em{font-style:normal;font-weight:800;color:#126642;background:#ddf6e9;border-radius:999px;padding:5px 9px;height:max-content}.partner-license-card.suspended em,.partner-license-card.expired em{color:#a11b1b;background:#fee5e5}.partner-license-form{display:grid;grid-template-columns:2fr .7fr 1fr 1fr 2fr auto;gap:10px;align-items:end;margin:12px 0}.partner-license-admin-list{display:grid;gap:8px}.partner-license-admin-list article{display:flex;justify-content:space-between;align-items:center;border:1px solid #dbe5ef;border-radius:10px;padding:10px}.partner-license-admin-list span{display:grid;gap:3px}.partner-license-admin-list small{color:#61758d}.partner-license-admin-list em{font-style:normal;text-transform:uppercase;font-size:11px;font-weight:800;background:#e8f1fb;border-radius:999px;padding:5px 9px}@media(max-width:900px){.partner-license-summary,.partner-license-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-license-form{grid-template-columns:1fr 1fr}}@media(max-width:560px){.partner-license-summary,.partner-license-grid,.partner-license-form{grid-template-columns:1fr}}
/* V34.9.109 — assistente atômico de nova empresa do parceiro */
.partner-license-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.partner-onboarding-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(2,19,43,.72);display:grid;place-items:center;padding:18px}.partner-onboarding-dialog{width:min(920px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.35)}.partner-onboarding-dialog>header{position:sticky;top:0;z-index:2;background:#0d3b6d;color:#fff;display:flex;justify-content:space-between;gap:16px;padding:18px 22px}.partner-onboarding-dialog>header h2,.partner-onboarding-dialog>header p{margin:3px 0}.partner-onboarding-dialog>header .ghost{color:#fff;border-color:#8bacce;font-size:22px}.partner-onboarding-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:20px}.partner-onboarding-grid label{display:grid;gap:6px}.partner-onboarding-grid label span{font-size:12px;font-weight:800;color:#29445f}.partner-onboarding-grid input,.partner-onboarding-grid select{min-width:0;width:100%}.partner-onboarding-grid .span-2{grid-column:span 2}.partner-onboarding-warning{margin:0 20px;padding:12px;border:1px solid #f0c679;background:#fff8e8;border-radius:10px;color:#74490b}.partner-onboarding-dialog>footer{position:sticky;bottom:0;background:#f4f7fb;border-top:1px solid #d7e1ec;display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;margin-top:16px}.partner-onboarding-dialog .form-error{padding:0 20px 16px;color:#b42318;font-weight:700}@media(max-width:760px){.partner-license-heading{align-items:stretch;flex-direction:column}.partner-onboarding-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.partner-onboarding-grid{grid-template-columns:1fr}.partner-onboarding-grid .span-2{grid-column:auto}}
/* V34.9.115 — convites seguros do primeiro administrador */
.partner-company-card .partner-admin-invite-open{margin-top:10px;width:100%}.partner-invite-list{display:grid;gap:9px;margin:10px 0 24px}.partner-invite-list article{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:12px;background:#fff;border:1px solid #d6e1ee;border-radius:12px;padding:12px 14px}.partner-invite-list span{display:grid;gap:4px}.partner-invite-list small{color:#61758d}.partner-invite-list em{font-style:normal;text-transform:uppercase;font-size:10px;font-weight:900;border-radius:999px;padding:6px 9px;background:#e8f1fb;color:#18558e}.partner-invite-list em.accepted{background:#ddf6e9;color:#126642}.partner-invite-list em.expired,.partner-invite-list em.failed,.partner-invite-list em.cancelled{background:#fee8e8;color:#9d2020}.partner-invite-dialog{width:min(620px,96vw)}.partner-invite-dialog .partner-onboarding-grid{grid-template-columns:1fr}@media(max-width:600px){.partner-invite-list article{grid-template-columns:1fr}.partner-invite-list article button{width:100%}}
/* V34.9.115 — checklist guiado de implantação do parceiro */
.partner-implementation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px;margin-bottom:22px}
.partner-implementation-grid>article{border:1px solid #cbd9e8;border-left:4px solid #2563eb;border-radius:14px;background:#fff;padding:16px;display:grid;gap:10px}
.partner-implementation-grid>article.attention{border-left-color:#e58a18;background:#fffbf4}
.partner-implementation-grid header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.partner-implementation-grid header span{display:grid;gap:3px}.partner-implementation-grid header small{color:#64748b}
.partner-implementation-grid header em{font-style:normal;font-weight:800;color:#1d4ed8}.partner-implementation-grid p{margin:0;color:#52657a}
.partner-company-progress,.partner-implementation-summary span{height:8px;background:#e6edf5;border-radius:999px;overflow:hidden}
.partner-company-progress i,.partner-implementation-summary i{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#2563eb);border-radius:inherit}
.partner-implementation-dialog{width:min(900px,94vw);max-height:90vh}
.partner-implementation-summary{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:12px;padding:14px 18px;background:#f4f8fc;border-radius:12px}
.partner-implementation-summary>b{font-size:22px;color:#12365e}.partner-implementation-list{display:grid;gap:9px;padding:4px;overflow:auto}
.partner-implementation-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px;border:1px solid #d7e1ec;border-radius:12px;background:#fff}
.partner-implementation-list article.completed{border-left:4px solid #16a34a;background:#f3fcf6}.partner-implementation-list article.in_progress{border-left:4px solid #2563eb;background:#f4f8ff}
.partner-implementation-list article.blocked{border-left:4px solid #dc2626;background:#fff6f6}.partner-implementation-list article.pending{border-left:4px solid #94a3b8}
.partner-step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e8f0fb;color:#12365e;font-weight:800}
.partner-implementation-list article>div{display:grid;gap:3px}.partner-implementation-list p,.partner-implementation-list small{margin:0;color:#64748b}
.partner-implementation-list em{font-style:normal;font-weight:700;font-size:12px;padding:5px 9px;border-radius:999px;background:#edf2f7;color:#41566d}
@media(max-width:700px){.partner-implementation-list article{grid-template-columns:34px 1fr}.partner-implementation-list article>em,.partner-implementation-list article>button{grid-column:2}}
/* V34.9.115 — assistente operacional fiscal sem armazenamento de segredos */
.partner-fiscal-assistant-dialog{width:min(980px,96vw);max-height:92vh}
.partner-secret-warning{display:grid;gap:3px;padding:12px 14px;border:1px solid #f0b657;border-radius:12px;background:#fff8e8;color:#78450a}
.partner-fiscal-assistant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:auto;padding:2px}
.partner-fiscal-assistant-grid fieldset{display:grid;align-content:start;gap:10px;margin:0;padding:14px;border:1px solid #d4e0ec;border-radius:12px;background:#fbfdff}
.partner-fiscal-assistant-grid legend{padding:0 6px;font-weight:800;color:#12365e}
.partner-fiscal-assistant-grid label{display:grid;gap:5px;color:#314b67}.partner-fiscal-assistant-grid label>span{font-weight:700;font-size:12px}
.partner-fiscal-assistant-grid input,.partner-fiscal-assistant-grid select,.partner-fiscal-assistant-grid textarea{width:100%;box-sizing:border-box}
.partner-fiscal-assistant-grid label.check{display:flex;align-items:center;gap:8px}.partner-fiscal-assistant-grid label.check input{width:auto}
.partner-sequence-row{display:grid;grid-template-columns:90px 90px 1fr;gap:8px;align-items:center}
@media(max-width:760px){.partner-fiscal-assistant-grid{grid-template-columns:1fr}.partner-sequence-row{grid-template-columns:1fr}}
/* V34.9.115 — renovação, carência, suspensão e reativação de licenças */
.partner-lifecycle-grid,.partner-lifecycle-admin-list{display:grid;gap:10px}
.partner-lifecycle-grid>article,.partner-lifecycle-admin-list>article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border:1px solid #d5e1ed;border-left:4px solid #2563eb;border-radius:12px;background:#fff}
.partner-lifecycle-grid span,.partner-lifecycle-admin-list span{display:grid;gap:4px;min-width:0}
.partner-lifecycle-grid small,.partner-lifecycle-admin-list small{color:#60758b}
.partner-lifecycle-grid em{font-style:normal;font-weight:800;color:#9a5a08;background:#fff3d6;border-radius:999px;padding:6px 10px}
.partner-lifecycle-admin-list>article>div{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:700px){.partner-lifecycle-grid>article,.partner-lifecycle-admin-list>article{align-items:stretch;flex-direction:column}.partner-lifecycle-admin-list>article>div>*{flex:1}}
/* V34.9.115 — central operacional compacta do Portal de Parceiros */
.partner-portal-v349114{display:grid;gap:10px}.partner-portal-v349114>h2{margin:12px 0 0}.partner-section-copy{margin:0 0 4px;color:#60758b}
.partner-company-command-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:13px;margin:4px 0 14px}
.partner-company-command{display:grid;gap:12px;padding:16px;border:1px solid #cbd9e8;border-left:4px solid #16a05d;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(14,46,80,.05)}
.partner-company-command.attention{border-left-color:#e58a18;background:#fffdf8}.partner-company-command>header{display:flex;justify-content:space-between;gap:12px}.partner-company-command>header span,.partner-company-license{display:grid;gap:4px}.partner-company-command>header small,.partner-company-license small{color:#60758b}
.partner-company-command>header em{height:max-content;padding:5px 9px;border-radius:999px;background:#ddf6e9;color:#126642;font-style:normal;font-size:11px;font-weight:800}.partner-company-command>header em.unlicensed,.partner-company-command>header em.grace{background:#fff0cd;color:#915208}.partner-company-command>header em.suspended,.partner-company-command>header em.expired{background:#fee5e5;color:#a11b1b}
.partner-company-progress-row{display:grid;grid-template-columns:minmax(90px,1fr) auto auto;align-items:center;gap:9px}.partner-company-progress-row>span{height:8px;overflow:hidden;border-radius:999px;background:#e4ecf4}.partner-company-progress-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16a34a,#2563eb)}.partner-company-progress-row small{color:#60758b}
.partner-company-actions{display:flex;gap:8px;flex-wrap:wrap}.partner-company-actions button{flex:1 1 145px}.partner-request-pending{align-self:center;padding:7px 10px;border-radius:999px;background:#fff0cd;color:#915208;font-size:12px;font-weight:800}
.partner-secondary-section{margin-top:4px;border:1px solid #d4e0ec;border-radius:12px;background:#fff}.partner-secondary-section>summary{cursor:pointer;display:flex;justify-content:space-between;padding:13px 15px;font-weight:800;color:#173d66}.partner-secondary-section[open]>summary{border-bottom:1px solid #dce5ef}.partner-secondary-section .partner-invite-list{padding:12px}.partner-empty.compact{margin:8px auto;padding:18px}
@media(max-width:680px){.partner-company-command-grid{grid-template-columns:1fr}.partner-company-progress-row{grid-template-columns:1fr auto}.partner-company-progress-row small{grid-column:1/-1}}
/* V34.9.115 — integração guiada com o instalador local multiempresa */
.partner-local-agent-dialog{width:min(850px,96vw)}.partner-local-agent-steps{display:grid;gap:10px;margin:0;padding:18px 28px 8px 48px}.partner-local-agent-steps li{padding:9px 12px;border:1px solid #d7e2ed;border-radius:11px;background:#fbfdff}.partner-local-agent-steps li::marker{font-weight:900;color:#1768d3}.partner-local-agent-steps li b,.partner-local-agent-steps li span{display:block}.partner-local-agent-steps li span{margin-top:3px;color:#60758b}
.partner-local-agent-command{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:12px 20px;padding:12px;border-radius:11px;background:#071d3a;color:#dff2ff}.partner-local-agent-command code{overflow-wrap:anywhere;user-select:all}.partner-local-agent-links{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 8px}.partner-local-agent-links a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #8cb3da;border-radius:9px;padding:9px 14px;font-weight:800;color:#173d66;background:#fff}
@media(max-width:620px){.partner-local-agent-command{grid-template-columns:1fr}.partner-local-agent-steps{padding-left:38px}}
/* V34.9.116 — navegação de entradas e portais de licenças */
.partner-portal button,.partner-portal a{cursor:pointer}
.purchase-mov-table tbody tr[data-entry-row]{cursor:pointer;outline:none;transition:background .16s ease,box-shadow .16s ease}
.purchase-mov-table tbody tr[data-entry-row]:hover,.purchase-mov-table tbody tr[data-entry-row]:focus-visible{background:#eef7ff}
.purchase-mov-table tbody tr[data-entry-row].selected{background:#e8f6f3;box-shadow:inset 4px 0 #1b9b80}
.mov-actions-selected td{padding:0!important;background:#f5fafc}
.mov-actions-selected .purchase-entry-actions{padding:10px 14px;border-top:1px solid #cfe0ea}
.partner-admin-directory{display:block}.partner-admin-directory .partner-admin-list{position:static;width:100%;max-width:none}
.partner-admin-directory .partner-admin-list-items{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));max-height:none}
.partner-admin-dialog-backdrop{position:fixed;inset:0;z-index:10020;background:rgba(4,20,42,.62);display:grid;place-items:center;padding:18px}
.partner-admin-dialog{position:relative;width:min(1080px,96vw);max-height:92vh;overflow:auto;background:#f8fbfe}
.partner-dialog-close{position:sticky;top:10px;float:right;z-index:4;width:38px;height:38px;border-radius:10px;border:1px solid #b9cede;background:#fff;color:#173c62;font-size:1.35rem;cursor:pointer}
.partner-admin-dialog .partner-admin-form>.grid{grid-template-columns:minmax(300px,2fr) minmax(240px,1fr)}
.partner-license-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.partner-license-request-dialog{width:min(680px,94vw)}
@media(max-width:720px){.partner-admin-dialog .partner-admin-form>.grid{grid-template-columns:1fr}.partner-license-heading-actions{justify-content:flex-start}.partner-admin-dialog-backdrop{padding:6px}.partner-admin-dialog{width:100%;max-height:98vh}}

/* V34.9.118 — padrão profissional da lista de Produtos */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.product-list-header{background:linear-gradient(135deg,#0b3d8c,#155ca8);color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none}
.product-list-header-title{display:flex;align-items:center;gap:11px;min-width:0}.product-list-header-title>span{font-size:1.35rem}.product-list-header-title>div{display:grid;gap:2px;min-width:0}.product-list-header-title b{font-size:1rem;font-weight:750}.product-list-header-title small{font-size:.72rem;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-list-header-summary{display:flex;align-items:baseline;gap:5px;white-space:nowrap}.product-list-header-summary b{font-size:1.05rem}.product-list-header-summary span{font-size:.7rem;color:rgba(255,255,255,.82)}
.f5-list-toolbar{display:flex;gap:10px;align-items:flex-end;padding:12px 16px 10px;background:#fff;border-bottom:1px solid #e2e8f0;flex:none}.f5-list-search-field{flex:1;min-width:260px;display:grid;grid-template-columns:minmax(0,1fr) 38px 38px;grid-template-rows:auto 38px;gap:0}.f5-list-field-label,.f5-list-select-field>span{grid-column:1/-1;font-size:.68rem;font-weight:750;color:#516174;text-transform:uppercase;letter-spacing:.04em;margin:0 0 5px}.f5-list-search-field input{grid-column:1;grid-row:2;height:38px;border:1px solid #cbd5e1;border-right:0;border-radius:7px 0 0 7px;padding:0 11px;font-size:.8rem;outline:none;background:#fff;color:#1e293b;min-width:0}.f5-list-search-field input:focus{border-color:#4f8fd3;box-shadow:inset 0 0 0 1px #4f8fd3}.f5-list-search-button,.f5-list-clear-button{grid-row:2;height:38px;border:1px solid #cbd5e1;background:#f8fafc;cursor:pointer;font-size:.82rem}.f5-list-search-button{grid-column:2;color:#0b4f96}.f5-list-clear-button{grid-column:3;border-left:0;border-radius:0 7px 7px 0;color:#9b2c2c}.f5-list-search-button:hover,.f5-list-clear-button:hover:not(:disabled){background:#eef5fc}.f5-list-clear-button:disabled{opacity:.4;cursor:default}
.f5-list-select-field{display:grid;min-width:210px}.f5-list-select-field select{height:38px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:0 34px 0 10px;color:#24364b;font-size:.78rem;outline:none}.f5-list-select-field select:focus{border-color:#4f8fd3;box-shadow:0 0 0 2px rgba(79,143,211,.12)}
.f5-list-secondary-button{height:38px;border:1px solid #aac1db;border-radius:7px;background:#f6f9fc;color:#244b73;padding:0 11px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:.75rem;font-weight:700}.f5-list-secondary-button:hover,.f5-list-secondary-button.active{background:#e9f2fb;border-color:#6e9dcd}.f5-list-secondary-button b{min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:#dceafa;color:#194f85;font-size:.65rem}
.product-column-picker-wrap{position:relative;flex:none}.product-column-picker{position:absolute;right:0;top:45px;width:330px;max-height:min(440px,70vh);overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:9px;box-shadow:0 18px 42px rgba(15,35,55,.2);z-index:40}.product-column-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid #e2e8f0;background:#f8fafc;position:sticky;top:0;z-index:2}.product-column-picker-head>div{display:grid;gap:2px}.product-column-picker-head b{font-size:.78rem;color:#1f3650}.product-column-picker-head small{font-size:.65rem;color:#6b7c90}.product-column-picker-head button{border:0;background:transparent;color:#64748b;cursor:pointer;font-size:.9rem}.product-column-picker-list{padding:7px 10px;display:grid}.product-column-option{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:8px;padding:7px 4px;border-bottom:1px solid #f0f3f7;font-size:.74rem;color:#334155}.product-column-option:last-child{border-bottom:0}.product-column-option input{width:15px;height:15px}.product-column-option em{font-style:normal;font-size:.58rem;color:#64748b;background:#eef2f6;border-radius:999px;padding:2px 6px}.product-column-option.required{font-weight:700}.product-column-picker-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-top:1px solid #e2e8f0;background:#fbfcfd;position:sticky;bottom:0}.product-column-picker-actions button{border:1px solid #bfd0e2;border-radius:6px;background:#fff;color:#315778;padding:6px 8px;cursor:pointer;font-size:.68rem;font-weight:700}.product-column-picker-actions small{font-size:.61rem;color:#6b7c90;text-align:right}
.f5-list-filter-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex:none}.f5-list-filter-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.f5-list-filter-chip{border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#40566c;padding:5px 9px;display:flex;align-items:center;gap:6px;cursor:pointer;font-size:.7rem;font-weight:700}.f5-list-filter-chip:hover{background:#eef5fc;border-color:#9ab9d8}.f5-list-filter-chip.active{background:#0b4f96;border-color:#0b4f96;color:#fff}.f5-list-filter-chip b{min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;background:rgba(15,78,150,.1);font-size:.61rem}.f5-list-filter-chip.active b{background:rgba(255,255,255,.18)}.f5-list-filter-summary{display:flex;align-items:center;gap:8px;min-width:0;color:#64748b;font-size:.67rem}.f5-list-filter-summary>span{font-weight:700;color:#40566c}.f5-list-filter-summary>b{font-size:.66rem}.f5-list-filter-summary>em{font-style:normal;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#74869a}
.product-compact-action-head,.product-compact-action-cell{width:42px;text-align:center}.product-compact-action-cell .product-duplicate-button{padding:5px 8px}.product-compact-wrap{min-width:720px}
@media(max-width:900px){.f5-list-toolbar{align-items:stretch;flex-wrap:wrap}.f5-list-search-field{flex-basis:100%}.f5-list-select-field{flex:1;min-width:180px}.f5-list-filter-strip{align-items:flex-start;flex-direction:column}.f5-list-filter-summary{width:100%;justify-content:space-between}.product-column-picker{right:0}.product-list-header-title small{display:none}}
@media(max-width:620px){.product-list-header-summary{display:none}.f5-list-toolbar{padding-inline:10px}.f5-list-filter-strip{padding-inline:10px}.product-column-picker{position:fixed;left:10px;right:10px;top:82px;width:auto;max-height:calc(100dvh - 100px)}.f5-list-filter-summary>em{display:none}}

/* V34.9.119 — padrão profissional das listas de Clientes, Fornecedores e Pessoas */
.people-professional-window{background:#fff!important}
.people-list-header{background:linear-gradient(135deg,#0b3d8c,#155ca8);color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none}
.people-list-header-title{display:flex;align-items:center;gap:11px;min-width:0}.people-list-header-title>span{font-size:1.35rem}.people-list-header-title>div{display:grid;gap:2px;min-width:0}.people-list-header-title b{font-size:1rem;font-weight:750}.people-list-header-title small{font-size:.72rem;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-list-header-summary{display:flex;align-items:baseline;gap:5px;white-space:nowrap}.people-list-header-summary b{font-size:1.05rem}.people-list-header-summary span{font-size:.7rem;color:rgba(255,255,255,.82)}
.people-list-toolbar .f5-list-select-field{min-width:180px}.people-list-results{flex:1;min-height:0;overflow:auto;background:#f8fafc;padding:12px 16px}.people-table-wrap{min-width:840px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;overflow:auto}.people-professional-table{width:100%;border-collapse:collapse;font-size:.74rem}.people-professional-table th{position:sticky;top:0;z-index:2;background:#eaf1f7;color:#24425e;text-align:left;padding:9px 10px;border-bottom:1px solid #d7e1eb;font-size:.64rem;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}.people-professional-table td{padding:9px 10px;border-bottom:1px solid #e4eaf0;color:#263e55;vertical-align:middle}.people-professional-table tbody tr:last-child td{border-bottom:0}.people-professional-table tbody tr[data-person-row]{cursor:pointer}.people-professional-table tbody tr[data-person-row]:hover{background:#f2f7fc}.people-professional-table tbody tr[data-person-row]:focus{outline:2px solid #5a94ce;outline-offset:-2px;background:#eef6ff}.people-professional-table td small{display:block;color:#718295;margin-top:3px;line-height:1.25}.people-primary-cell,.people-contact-cell{display:grid;gap:2px}.people-primary-cell b{color:#102f4e;max-width:340px}.people-primary-cell small,.people-contact-cell small{max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.people-action-head,.people-action-cell{width:76px;text-align:center}.people-action-cell button{padding:6px 9px;border-radius:7px;border:1px solid #bed0e0;background:#fff;color:#21517d;font-weight:750;cursor:pointer}.people-action-cell button:hover:not(:disabled){background:#eaf3fb}.people-action-cell button:disabled{opacity:.5;cursor:not-allowed}.people-status{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:4px 7px;border-radius:999px;font-size:.62rem;font-weight:800}.people-status.active{background:#dcfce7;color:#166534}.people-status.inactive{background:#f1f5f9;color:#64748b}.people-list-empty{min-height:260px;display:grid;place-items:center;align-content:center;gap:5px;color:#64748b;text-align:center}.people-list-empty>div{font-size:2rem}.people-list-empty b{font-size:.86rem;color:#243b53}.people-list-empty span{font-size:.72rem}.people-list-footer>span{font-size:.68rem;color:#64748b;max-width:65%}
@media(max-width:900px){.people-list-header-title small{display:none}.people-list-results{padding-inline:10px}.people-list-footer>span{max-width:52%}}
@media(max-width:620px){.people-list-header-summary{display:none}.people-list-footer>span{display:none}.people-list-results{padding:8px}.people-list-toolbar .f5-list-select-field{min-width:150px}}

/* V34.9.120 — padrão profissional da Movimentação de Entradas */
.purchase-movement-toolbar{align-items:flex-end}.purchase-movement-create-actions{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.purchase-movement-create-actions button{min-height:38px;border:1px solid #b9c9d8;border-radius:8px;padding:8px 13px;background:#fff;color:#173b5c;font-weight:800;cursor:pointer}.purchase-movement-create-actions button.primary{background:#174ea6;border-color:#174ea6;color:#fff}.purchase-movement-create-actions button:hover{filter:brightness(1.03)}
.purchase-movement-filter-strip{margin:0}.purchase-origin-pill{display:inline-flex;align-items:center;width:max-content;margin-top:4px;border-radius:999px;padding:2px 7px;font-size:.55rem;font-weight:850;letter-spacing:.02em}.purchase-origin-pill.fiscal{background:#dbeafe;color:#1d4ed8}.purchase-origin-pill.internal{background:#e7f7f2;color:#0f766e}.purchase-origin-pill.canceladas{background:#fee2e2;color:#991b1b}.purchase-origin-pill.pendentes{background:#fef3c7;color:#92400e}
.purchase-mov-table tbody tr[data-entry-row].is-pending>td{background:#fffbeb}.purchase-mov-table tbody tr[data-entry-row].selected>td{background:#e8f6f3!important}.purchase-mov-table .badge.warn{background:#fef3c7;color:#92400e}.purchase-movement-empty{display:flex;min-height:250px;align-items:center;justify-content:center;flex-direction:column;gap:6px}.purchase-movement-empty b{color:#244c70}.purchase-movement-empty span{font-size:.68rem;color:#748797}
.purchase-movement-footer{gap:14px}.purchase-movement-selection{min-width:0;flex:1}.purchase-movement-selection>span{display:flex;min-width:0;flex-direction:column;gap:1px}.purchase-movement-selection>span small{font-size:.58rem;color:#718397;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.purchase-movement-selection>span b{max-width:430px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244c70;font-size:.68rem}.purchase-movement-footer>div:last-child{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-end}.purchase-movement-footer>div:last-child button{white-space:nowrap}
@media(max-width:900px){.purchase-movement-create-actions{width:100%}.purchase-movement-create-actions button{flex:1}.purchase-movement-footer{align-items:stretch;flex-direction:column}.purchase-movement-footer>div{width:100%}.purchase-movement-footer>div:last-child{justify-content:flex-start}.purchase-movement-selection>span b{max-width:none}}


/* V34.9.121 — padrão profissional da Movimentação de Saídas */
.sales-movement-shell{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden;background:#f4f7fb}
.sales-movement-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#fff;border-bottom:1px solid #dbe4ec;flex:none}.sales-movement-header small{display:block;color:#3b6ff5;font-size:.6rem;font-weight:850;letter-spacing:.08em}.sales-movement-header h2{margin:2px 0 1px;color:#173b5c;font-size:1rem}.sales-movement-header p{margin:0;color:#718397;font-size:.68rem}.sales-movement-header>span{white-space:nowrap;border:1px solid #d7e2ec;border-radius:999px;padding:6px 10px;background:#f8fafc;color:#536b80;font-size:.65rem;font-weight:800}
.sales-movement-content{overflow:auto!important;padding:0!important}.sales-movement-toolbar{border-bottom:0}.sales-movement-top-actions{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap}.sales-movement-top-actions button{min-height:38px;border:1px solid #c4d1dd;border-radius:8px;padding:7px 11px;background:#fff;color:#244c70;font-weight:800;cursor:pointer}.sales-movement-top-actions button.primary{background:#174ea6;border-color:#174ea6;color:#fff}.sales-movement-top-actions button:disabled{opacity:.58;cursor:wait}
.sales-document-filter-strip{border-top:1px solid #edf2f6}.sales-status-filter-strip{display:flex;align-items:center;gap:10px;padding:7px 16px;background:#fff;border-bottom:1px solid #e2e8f0}.sales-status-filter-strip>span{color:#718397;font-size:.6rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.sales-status-filter-strip .f5-list-filter-chip{padding:4px 8px}
.sales-advanced-card{margin:10px 16px 0;border-radius:9px}.sales-advanced-card .mov-advanced-filters{grid-template-columns:1.2fr 1fr .8fr .8fr 1.3fr auto;align-items:end}.sales-advanced-card .mov-advanced-filters>button{min-height:38px;border:1px solid #c5d3df;border-radius:8px;background:#fff;color:#244c70;font-weight:800;cursor:pointer}
.sales-mov-table-wrap{margin:10px 16px 14px;min-height:260px}.sales-mov-table .sales-date-column{width:96px;min-width:96px;white-space:nowrap;font-variant-numeric:tabular-nums}.sales-mov-table tbody tr[data-row]{cursor:pointer}.sales-mov-table tbody tr[data-row].selected>td{background:#eaf2ff!important}.sales-mov-table tbody tr[data-row].is-pending>td{background:#fffbeb}.sales-mov-table tbody tr[data-row]:focus{outline:2px solid #7aa7d9;outline-offset:-2px}.mov-doc-icon.pdv{background:#ede9fe;color:#5b21b6}.sales-origin-pill{display:inline-flex;align-items:center;width:max-content;margin-top:4px;border-radius:999px;padding:2px 7px;font-size:.54rem;font-weight:850}.sales-origin-pill.nfe{background:#dbeafe;color:#1d4ed8}.sales-origin-pill.nfce{background:#dcfce7;color:#166534}.sales-origin-pill.pdv{background:#ede9fe;color:#5b21b6}.sales-origin-pill.nao_fiscal{background:#fef3c7;color:#92400e}.sales-origin-pill.manual{background:#f3e8ff;color:#7e22ce}.sales-fiscal-code,.sales-fiscal-protocol{display:block;margin-top:3px;color:#718397;font-size:.56rem}.sales-fiscal-code{font-weight:800;color:#526b81}.sales-actions-selected td{padding:0!important;background:#f5f9ff!important}.sales-actions-selected .mov-actions-disclosure{padding:8px 12px;display:block}.sales-actions-selected .mov-actions-disclosure>summary{cursor:pointer;color:#244c70;font-weight:800;font-size:.64rem}.sales-actions-selected .mov-more-panel{padding-top:8px}
.sales-movement-empty{display:flex;min-height:250px;align-items:center;justify-content:center;flex-direction:column;gap:6px}.sales-movement-empty b{color:#244c70}.sales-movement-empty span{font-size:.68rem;color:#748797}.sales-movement-footer{gap:12px}.sales-movement-selection{min-width:0;flex:1}.sales-movement-selection>span{display:flex;min-width:0;flex-direction:column;gap:1px}.sales-movement-selection small{font-size:.58rem;color:#718397;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.sales-movement-selection b{max-width:430px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244c70;font-size:.68rem}.sales-footer-actions{display:flex;align-items:center;gap:6px;overflow-x:auto}.sales-footer-actions>button:not(.f4-btn):not(.f5-btn){white-space:nowrap;border:1px solid #c5d3df;border-radius:8px;background:#fff;color:#244c70;padding:7px 10px;font-size:.64rem;font-weight:800;cursor:pointer}.sales-footer-actions .f4-btn,.sales-footer-actions .f5-btn{min-height:36px!important;padding:0 12px!important;white-space:nowrap}
@media(max-width:1050px){.sales-advanced-card .mov-advanced-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-movement-top-actions{width:100%}.sales-movement-toolbar{flex-wrap:wrap}.sales-movement-toolbar .f5-list-search-field{flex-basis:100%}}
@media(max-width:900px){.sales-movement-header{align-items:flex-start}.sales-movement-header p{display:none}.sales-status-filter-strip{align-items:flex-start;flex-direction:column}.sales-movement-footer{align-items:stretch;flex-direction:column}.sales-movement-footer>div{width:100%}.sales-footer-actions{justify-content:flex-start}.sales-movement-selection b{max-width:none}.sales-mov-table-wrap{margin-inline:10px}.sales-advanced-card{margin-inline:10px}}
@media(max-width:620px){.sales-movement-header>span{display:none}.sales-advanced-card .mov-advanced-filters{grid-template-columns:1fr 1fr}.sales-document-filter-strip{align-items:flex-start}.sales-footer-actions .f4-btn,.sales-footer-actions .f5-btn{display:none}}

/* V34.9.122 — Financeiro profissional + consistência das ações de Saídas */
.financial-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:9px}
.financial-kpi-card{appearance:none;text-align:left;padding:11px 13px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;display:grid;gap:3px;box-shadow:0 4px 12px rgba(15,23,42,.035);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.financial-kpi-card:hover,.financial-kpi-card:focus-visible{border-color:#86a9cd;box-shadow:0 5px 15px rgba(15,23,42,.08);outline:none}
.financial-kpi-card.active{border-color:#174ea6;box-shadow:inset 4px 0 #174ea6,0 5px 15px rgba(23,78,166,.08)}
.financial-kpi-card.success{border-left:4px solid #16a34a}.financial-kpi-card.warning{border-left:4px solid #f59e0b}.financial-kpi-card.danger{border-left:4px solid #dc2626}
.financial-kpi-card span{font-size:.66rem;color:#6f8194;font-weight:750;text-transform:uppercase;letter-spacing:.03em}.financial-kpi-card b{font-size:1.08rem;color:#17324d}.financial-kpi-card small{font-size:.63rem;color:#74869a}
.financial-professional-toolbar{align-items:flex-end}.financial-professional-toolbar>.f5-list-search-field{min-width:0;flex:1}.financial-new-button{min-height:38px;white-space:nowrap}
.financial-quick-filter-strip{margin:0}.financial-professional-table tbody tr[data-financial-row]{cursor:pointer;outline:none;transition:background .16s ease,box-shadow .16s ease}.financial-professional-table tbody tr[data-financial-row]:hover,.financial-professional-table tbody tr[data-financial-row]:focus-visible{background:#eef7ff}.financial-professional-table tbody tr[data-financial-row].selected>td{background:#e8f6f3!important}.financial-professional-table tbody tr[data-financial-row].selected{box-shadow:inset 4px 0 #1b9b80}.financial-professional-table tbody tr[data-financial-row].is-overdue:not(.selected)>td{background:#fff9f2}
.financial-professional-table tbody td{padding-bottom:9px!important;position:static!important}.financial-professional-table tbody td:last-child{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;padding:9px 10px!important;background:inherit!important;border-top:0!important}.financial-professional-table .financial-date-column{min-width:96px;width:96px;white-space:nowrap;font-variant-numeric:tabular-nums}.financial-main-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.financial-main-actions button{min-height:30px;white-space:nowrap}
.financial-actions-selected td{padding:0!important;background:#f5fbf9!important}.financial-selected-actions{padding:9px 12px;border-top:1px solid #cfe0ea;align-items:center}.financial-selected-actions button{min-height:30px}.financial-selected-actions .danger-action{border-color:#b42318;background:#fff5f5;color:#b42318}
.financial-account-footer{gap:14px}.financial-account-selection{min-width:0;flex:1}.financial-account-selection>span{display:flex;min-width:0;flex-direction:column;gap:1px}.financial-account-selection small{font-size:.58rem;color:#718397;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.financial-account-selection b{max-width:430px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244c70;font-size:.68rem}.financial-account-footer>div:last-child{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-end}.financial-account-footer>div:last-child button{white-space:nowrap}
.sales-actions-selected .sales-selected-actions{padding:9px 12px;border-top:1px solid #cfe0ea;align-items:center}.sales-actions-selected .sales-selected-actions button{min-height:30px}.sales-actions-selected .sales-selected-actions small{flex:1;min-width:240px;color:#64748b}.sales-actions-selected .sales-selected-actions .danger-action{border-color:#b42318;background:#fff5f5;color:#b42318}
@media(max-width:1000px){.financial-kpi-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.financial-professional-toolbar{flex-wrap:wrap}.financial-professional-toolbar>.f5-list-search-field{flex-basis:100%}.financial-new-button{margin-left:auto}}
@media(max-width:720px){.financial-kpi-grid{grid-template-columns:1fr 1fr}.financial-account-footer{align-items:stretch;flex-direction:column}.financial-account-footer>div{width:100%}.financial-account-footer>div:last-child{justify-content:flex-start}.financial-account-selection b{max-width:none}}
@media(max-width:520px){.financial-kpi-grid{grid-template-columns:1fr}}


/* V34.9.122 CORRIGIDA — acabamento visual financeiro e datas de Saídas */
.sales-mov-table .mov-doc-cell>div{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:2px}
.sales-mov-table .mov-doc-cell>div>b{line-height:1.2}
.sales-mov-table .mov-doc-cell>div>small{display:block;line-height:1.2}
.sales-mov-table .sales-origin-pill{margin-top:2px}
.financial-movements-shell .financial-account-table tbody td{position:static!important;padding:9px 10px!important;vertical-align:middle}
.financial-movements-shell .financial-account-table tbody td:last-child{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;padding:9px 10px!important;background:inherit!important;border-top:0!important}
.financial-movements-shell .financial-account-table .financial-date-column{min-width:96px;width:96px;white-space:nowrap;font-variant-numeric:tabular-nums}
.financial-movements-shell .financial-account-table tbody tr{height:auto}
.financial-movements-shell .financial-account-table table small{margin-top:2px}
.financial-movements-shell>.f5-window-action-bar>div{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;overflow-x:auto}
.financial-movements-shell>.f5-window-action-bar>div button{white-space:nowrap;flex:0 0 auto}
@media(max-width:760px){.financial-movements-shell>.f5-window-action-bar>div{width:100%;justify-content:flex-start}}

/* V34.9.122 CORRIGIDA — rodapé seguro das Movimentações Financeiras */
.financial-movements-shell>.f5-window-action-bar{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:16px;row-gap:6px}
.financial-movements-shell>.f5-window-action-bar>span{min-width:0;max-width:none;line-height:1.35;overflow-wrap:anywhere}
.financial-movements-shell>.f5-window-action-bar>div{min-width:max-content;flex-wrap:nowrap;justify-content:flex-end}
.financial-movements-shell>.f5-window-action-bar button{white-space:nowrap;flex:0 0 auto}
@media(max-width:980px){.financial-movements-shell>.f5-window-action-bar{grid-template-columns:1fr}.financial-movements-shell>.f5-window-action-bar>div{width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end}}


/* V34.9.123 — Caixa do PDV e Movimentação Bancária como extratos operacionais separados */
.cash-operations-shell,.bank-movements-shell{height:100%;min-height:0;background:#f6f8fb}
.cash-operations-header,.bank-movements-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 18px 11px;border-bottom:1px solid #d9e3ec;background:#fff}
.cash-operations-header>div,.bank-movements-header>div{min-width:0}.cash-operations-header small,.bank-movements-header small{display:block;margin-bottom:3px;color:#25707c;font-size:.59rem;font-weight:900;letter-spacing:.07em}.bank-movements-header small{color:#2563eb}.cash-operations-header h2,.bank-movements-header h2{margin:0;color:#17324d;font-size:1.08rem}.cash-operations-header p,.bank-movements-header p{margin:3px 0 0;color:#62758a;font-size:.68rem;line-height:1.35}.cash-operations-header>span,.bank-movements-header>span{flex:0 0 auto;padding:6px 9px;border:1px solid #cfdae5;border-radius:999px;background:#f7fafc;color:#476078;font-size:.63rem;font-weight:850}
.cash-kpi-grid,.bank-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:9px;padding:12px 18px 8px}.cash-kpi-grid article,.bank-kpi-grid article{min-width:0;padding:10px 12px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.035);display:grid;gap:3px}.cash-kpi-grid article.success,.bank-kpi-grid article.success{border-left:4px solid #16a34a}.cash-kpi-grid article.warning,.bank-kpi-grid article.warning{border-left:4px solid #f59e0b}.cash-kpi-grid article.current,.bank-kpi-grid article.current{border-left:4px solid #2563eb}.cash-kpi-grid span,.bank-kpi-grid span{color:#6f8194;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.cash-kpi-grid b,.bank-kpi-grid b{color:#17324d;font-size:1.04rem}.cash-kpi-grid small,.bank-kpi-grid small{color:#74869a;font-size:.59rem;line-height:1.25}
.cash-toolbar,.bank-toolbar{display:flex;align-items:flex-end;gap:9px;padding:4px 18px 8px}.cash-toolbar>.f5-list-search-field,.bank-toolbar>.f5-list-search-field{flex:1;min-width:260px}.cash-toolbar>.f5-list-search-field input,.bank-toolbar>.f5-list-search-field input{min-width:0;flex:1}.cash-toolbar label,.bank-toolbar label{display:grid;gap:4px;color:#61768a;font-size:.6rem;font-weight:800;text-transform:uppercase}.bank-toolbar label select{min-width:170px;height:38px}.cash-quick-filters,.bank-quick-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.cash-toolbar .cash-quick-filters{flex:0 0 auto}.bank-quick-filters{padding:0 18px 10px}.cash-quick-filters button,.bank-quick-filters button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 11px;border:1px solid #cbd9e6;border-radius:999px;background:#fff;color:#274966;font-size:.63rem;font-weight:850;cursor:pointer}.cash-quick-filters button:hover,.bank-quick-filters button:hover{background:#f3f8fc}.cash-quick-filters button.active,.bank-quick-filters button.active{border-color:#1769aa;background:#1769aa;color:#fff}.cash-quick-filters button span,.bank-quick-filters button span{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:999px;background:#e7eef5;color:#47627a;font-size:.58rem}.cash-quick-filters button.active span,.bank-quick-filters button.active span{background:rgba(255,255,255,.2);color:#fff}
.cash-turn-table,.bank-movement-table{margin:0 18px 12px;border:1px solid #d6e1eb;border-radius:11px;background:#fff;overflow:hidden}.cash-turn-table table,.bank-movement-table table{width:100%;border-collapse:collapse;font-size:.68rem}.cash-turn-table th,.bank-movement-table th{padding:9px 10px;border-bottom:1px solid #d6e1eb;background:#eef4f8;color:#48637a;font-size:.58rem;text-align:left;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}.cash-turn-table td,.bank-movement-table td{padding:9px 10px;border-bottom:1px solid #e0e8ef;vertical-align:middle;color:#24425e}.cash-turn-table tbody tr[data-cash-turn],.bank-movement-table tbody tr[data-bank-row]{cursor:pointer;outline:none}.cash-turn-table tbody tr[data-cash-turn]:hover>td,.bank-movement-table tbody tr[data-bank-row]:hover>td{background:#f4f9fd}.cash-turn-table tbody tr.selected>td{background:#eaf8f4!important;box-shadow:inset 0 0 0 0 transparent}.cash-turn-table tbody tr.selected>td:first-child{box-shadow:inset 4px 0 #0f766e}.bank-movement-table tbody tr.selected>td{background:#edf4ff!important}.bank-movement-table tbody tr.selected>td:first-child{box-shadow:inset 4px 0 #2563eb}.cash-turn-table td b,.bank-movement-table td b{display:block}.cash-turn-table td small,.bank-movement-table td small{display:block;margin-top:2px;color:#73869a;font-size:.58rem}.cash-difference{font-weight:850;white-space:nowrap}.cash-difference.attention{color:#b45309}.cash-difference.ok{color:#3f5f77}.money-in{color:#15803d!important;font-weight:850;white-space:nowrap}.money-out{color:#b45309!important;font-weight:850;white-space:nowrap}
.cash-turn-selected-detail>td,.bank-selected-detail>td{padding:0!important;background:#f7fbfd!important}.cash-turn-extract{padding:10px 12px}.cash-turn-extract-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.cash-turn-extract-head>div{min-width:0}.cash-turn-extract-head b{color:#214b67}.cash-turn-extract-head small{color:#71869a}.cash-movement-table{border:1px solid #dce6ee;border-radius:8px;overflow:auto;background:#fff}.cash-movement-table table{min-width:720px}.cash-movement-table th{background:#f5f8fb}.cash-turn-warning{margin:8px 18px;padding:9px 11px;border:1px solid #f2cf8b;border-radius:8px;background:#fff9ea;color:#8a5a12;font-size:.65rem;line-height:1.35}.cash-turn-extract .cash-turn-warning{margin:0}
.bank-selected-detail>td>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:9px 12px;border-top:1px solid #d7e3ee}.bank-selected-detail span{display:grid;gap:2px;min-width:0}.bank-selected-detail small{color:#718397;font-size:.56rem;text-transform:uppercase;font-weight:800}.bank-selected-detail b{overflow-wrap:anywhere;color:#264a68;font-size:.64rem}
.cash-footer,.bank-footer{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;align-items:center!important;gap:14px!important}.cash-footer>span,.bank-footer>span{min-width:0;line-height:1.35}.cash-footer>div,.bank-footer>div{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.cash-footer button,.bank-footer button{white-space:nowrap;flex:0 0 auto}
@media(max-width:1050px){.cash-kpi-grid,.bank-kpi-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.cash-toolbar,.bank-toolbar{flex-wrap:wrap}.cash-toolbar>.f5-list-search-field,.bank-toolbar>.f5-list-search-field{flex-basis:100%}.cash-toolbar .cash-quick-filters{width:100%}.bank-selected-detail>td>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.cash-turn-table,.bank-movement-table{margin-inline:10px}.cash-kpi-grid,.bank-kpi-grid,.cash-toolbar,.bank-toolbar,.bank-quick-filters{padding-inline:10px}.cash-operations-header,.bank-movements-header{padding-inline:10px}.cash-footer,.bank-footer{grid-template-columns:1fr!important}.cash-footer>div,.bank-footer>div{justify-content:flex-start;flex-wrap:wrap}.bank-toolbar label{flex:1 1 180px}.bank-toolbar label select{width:100%;min-width:0}}
@media(max-width:560px){.cash-kpi-grid,.bank-kpi-grid{grid-template-columns:1fr 1fr}.cash-operations-header>span,.bank-movements-header>span{display:none}.bank-selected-detail>td>div{grid-template-columns:1fr}}

/* V34.9.124 — operações em massa seguras de Produtos */
.product-footer-action.bulk{background:#0f766e}.product-footer-action.bulk:hover{background:#0b5f59}
.product-bulk-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 14px;background:#ecfeff;border-top:1px solid #a5f3fc;border-bottom:1px solid #bae6fd;color:#164e63}.product-bulk-selection-bar>div:first-child{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 9px;min-width:0}.product-bulk-selection-bar>div:first-child>span{font-size:.67rem;text-transform:uppercase;letter-spacing:.04em;font-weight:800;color:#0e7490}.product-bulk-selection-bar>div:first-child>b{font-size:.8rem}.product-bulk-selection-bar>div:first-child>small{grid-column:1/-1;color:#527287;font-size:.66rem}.product-bulk-selection-bar>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:none}.product-bulk-selection-bar button{border:1px solid #9ac8d7;background:#fff;color:#24566c;border-radius:6px;padding:7px 10px;font-size:.68rem;font-weight:750;cursor:pointer;white-space:nowrap}.product-bulk-selection-bar button:hover:not(:disabled){background:#f0fdfa}.product-bulk-selection-bar button.primary{background:#0f766e;color:#fff;border-color:#0f766e}.product-bulk-selection-bar button:disabled{opacity:.45;cursor:not-allowed}
.product-compact-table.bulk-mode tbody tr.bulk-selected,.product-detailed-list.bulk-mode .product-detailed-row.bulk-selected{background:#ecfdf5!important;border-color:#5eead4!important;box-shadow:inset 0 0 0 1px rgba(13,148,136,.16)}.product-bulk-check-head,.product-bulk-check-cell{width:42px;text-align:center!important;padding-inline:7px!important}.product-bulk-check-cell input,.product-bulk-row-check input{width:16px;height:16px;accent-color:#0f766e;cursor:pointer}.product-bulk-row-check{flex:0 0 auto;display:grid;place-items:center;padding:5px;cursor:pointer}.product-detailed-list.bulk-mode .product-detailed-row{grid-template-columns:auto minmax(0,1fr) auto}.product-detailed-list.bulk-mode .product-detailed-row:hover{border-color:#5eead4}
.product-bulk-backdrop{position:absolute;inset:0;padding:16px;overflow:hidden}.product-bulk-backdrop>.product-bulk-modal{width:min(1060px,calc(100% - 32px));max-height:calc(100% - 32px);margin:auto}.product-bulk-modal{width:min(1060px,calc(100% - 32px))}.product-bulk-body{gap:16px}.product-bulk-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-bulk-summary-card{display:grid;gap:3px;padding:12px 14px;border:1px solid #dbe3ee;border-radius:8px;background:#fff}.product-bulk-summary-card span{font-size:.66rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}.product-bulk-summary-card b{font-size:.9rem;color:#1f3650;line-height:1.3;word-break:break-word}.product-bulk-summary-card small{font-size:.68rem;color:#728296}.product-bulk-safety{display:grid;gap:4px;padding:10px 12px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:7px}.product-bulk-safety b{font-size:.77rem}.product-bulk-safety span{font-size:.7rem;line-height:1.45}.product-bulk-section{display:grid;gap:11px;padding:12px;border:1px solid #dbe3ee;background:#fff;border-radius:8px}.product-bulk-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.product-bulk-section-head>div{display:grid;gap:3px}.product-bulk-section-head b{font-size:.82rem;color:#1f3650}.product-bulk-section-head small{font-size:.69rem;color:#64748b}.product-bulk-config{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.product-bulk-config label,.product-bulk-full-field,.product-bulk-reason{display:grid;gap:5px}.product-bulk-config label>span,.product-bulk-full-field>span,.product-bulk-reason>span{font-size:.68rem;text-transform:uppercase;letter-spacing:.03em;font-weight:750;color:#51677c}.product-bulk-config select,.product-bulk-config input,.product-bulk-full-field input,.product-bulk-full-field select,.product-bulk-reason textarea{width:100%;border:1px solid #c7d3df;border-radius:6px;background:#fff;padding:10px 11px;color:#1f3650;font:inherit;min-height:42px}.product-bulk-value-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:span 2}.product-bulk-full-field{grid-column:span 2}.product-bulk-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:7px;border-bottom:1px solid #e2e8f0}.product-bulk-preview-head>div{display:grid;gap:1px}.product-bulk-preview-head span{font-size:.65rem;text-transform:uppercase;color:#64748b}.product-bulk-preview-head b{font-size:.82rem;color:#1f3650}.product-bulk-preview-head em{font-style:normal;background:#fff7ed;color:#9a3412;border-radius:999px;padding:4px 8px;font-size:.65rem;font-weight:700}.product-bulk-preview-list{display:grid;gap:7px;max-height:320px;overflow:auto;padding-top:8px}.product-bulk-preview-table{display:grid;gap:6px}.product-bulk-preview-table-head,.product-bulk-preview-row{display:grid;grid-template-columns:minmax(260px,1.7fr) minmax(120px,.7fr) minmax(120px,.7fr) minmax(220px,1fr);gap:10px;align-items:center}.product-bulk-preview-table-head{padding:0 10px 6px;color:#64748b;font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.product-bulk-preview-row{padding:10px;border:1px solid #dbe3ee;border-radius:7px;background:#fff}.product-bulk-preview-row .main{display:grid;gap:2px;min-width:0}.product-bulk-preview-row b{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-bulk-preview-row small{font-size:.62rem;color:#728296}.product-bulk-preview-row .before,.product-bulk-preview-row .after{font-size:.72rem;color:#24566c;font-weight:700;white-space:nowrap}.product-bulk-preview-row .status{font-size:.68rem;color:#24566c;line-height:1.35}.product-bulk-preview-row.blocked{background:#fff7ed;border-color:#fed7aa}.product-bulk-preview-row.blocked .status{color:#9a3412}.product-bulk-preview-more{color:#64748b;font-size:.65rem}.product-bulk-reason textarea{min-height:92px;resize:vertical}.product-bulk-confirm{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:7px;color:#1e3a8a;font-size:.72rem;font-weight:650}.product-bulk-confirm input{width:16px;height:16px;accent-color:#0f766e;flex:none;margin-top:1px}.product-bulk-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.product-bulk-result-grid>div{display:grid;gap:3px;padding:13px;border:1px solid #dbe3ee;border-radius:8px;background:#fff}.product-bulk-result-grid span{font-size:.65rem;text-transform:uppercase;color:#64748b}.product-bulk-result-grid b{font-size:1.25rem;color:#1f3650}.product-bulk-result-grid .ok{border-color:#86efac;background:#f0fdf4}.product-bulk-result-grid .ok b{color:#166534}.product-bulk-result-grid .error{border-color:#fecaca;background:#fef2f2}.product-bulk-result-grid .error b{color:#b91c1c}.product-bulk-result-note{display:grid;gap:4px;padding:11px;border-radius:7px;background:#f8fafc;border:1px solid #dbe3ee}.product-bulk-result-note b{color:#1f3650}.product-bulk-result-note span{font-size:.7rem;color:#64748b}.product-bulk-errors{display:grid;gap:5px}.product-bulk-errors>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #fecaca;background:#fff5f5;border-radius:6px;font-size:.68rem}.product-bulk-errors b{color:#991b1b}.product-bulk-errors span{color:#7f1d1d;text-align:right}
@media(max-width:900px){.product-bulk-selection-bar{align-items:flex-start;flex-direction:column}.product-bulk-selection-bar>div:last-child{width:100%;justify-content:flex-start}.product-bulk-summary{grid-template-columns:1fr}.product-bulk-config{grid-template-columns:1fr 1fr}.product-bulk-value-row,.product-bulk-full-field{grid-column:span 1}.product-bulk-preview-table-head,.product-bulk-preview-row{grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(100px,1fr))}}
@media(max-width:620px){.product-bulk-backdrop{padding:8px}.product-bulk-backdrop>.product-bulk-modal{width:calc(100% - 8px);max-height:calc(100% - 8px)}.product-bulk-selection-bar>div:last-child{display:grid;grid-template-columns:1fr 1fr}.product-bulk-selection-bar button{white-space:normal}.product-bulk-config,.product-bulk-value-row{grid-template-columns:1fr}.product-bulk-full-field,.product-bulk-value-row{grid-column:span 1}.product-bulk-preview-table-head{display:none}.product-bulk-preview-row{grid-template-columns:1fr;gap:6px}.product-bulk-preview-row .before,.product-bulk-preview-row .after,.product-bulk-preview-row .status{text-align:left;white-space:normal}.product-bulk-result-grid{grid-template-columns:1fr 1fr}.product-bulk-result-grid>div:last-child{grid-column:1/-1}}

/* V34.9.125 — Grupos e Subgrupos de Produtos */
.product-classification-filter-bar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,.45fr) minmax(190px,.45fr) auto;gap:10px;align-items:end;padding:9px 14px;background:#f8fafc;border-bottom:1px solid #dbe3ee}.product-classification-filter-bar>div:first-child{display:grid;gap:2px;align-self:center}.product-classification-filter-bar>div:first-child>span{font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;font-weight:800;color:#0f766e}.product-classification-filter-bar>div:first-child>small{font-size:.66rem;color:#64748b}.product-classification-filter-bar label{display:grid;gap:4px}.product-classification-filter-bar label>span{font-size:.64rem;text-transform:uppercase;font-weight:800;color:#64748b}.product-classification-filter-bar select{width:100%;min-height:36px;border:1px solid #c7d3df;border-radius:6px;background:#fff;padding:7px 9px;color:#1f3650}.product-classification-filter-bar button{min-height:36px;border:1px solid #94a3b8;background:#fff;color:#0f4c81;border-radius:6px;padding:7px 11px;font-weight:750;cursor:pointer;white-space:nowrap}.product-classification-filter-bar button:hover{background:#eff6ff}.product-group-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.product-group-fields label{display:grid;gap:4px}.product-group-fields label>span{font-size:.8rem;color:#333}.product-group-fields select{width:100%;padding:8px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:4px;min-height:38px}.product-group-fields label>small{font-size:.68rem;color:#64748b}.product-group-fields .lookup-add-field button{min-width:38px;background:#0f766e;color:#fff;border-color:#0f766e}
.product-catalog-shell{height:100%;background:#f8fafc}.product-catalog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;background:linear-gradient(90deg,#0f4c81,#0f766e);color:#fff}.product-catalog-header small{font-size:.65rem;letter-spacing:.08em;font-weight:800}.product-catalog-header h2{margin:3px 0 2px;font-size:1.2rem}.product-catalog-header p{margin:0;font-size:.72rem;opacity:.9}.product-catalog-kpis{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.product-catalog-kpis span{display:grid;gap:1px;min-width:120px;padding:8px 10px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);border-radius:7px;font-size:.65rem}.product-catalog-kpis b{font-size:.9rem}.product-catalog-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid #dbe3ee;background:#fff}.product-catalog-toolbar .f5-list-search-field{min-width:0}.product-catalog-toolbar>.primary{border:0;background:#0f766e;color:#fff;border-radius:6px;padding:9px 12px;font-weight:800;cursor:pointer}.product-catalog-grid{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(480px,1.5fr);gap:12px;padding:14px 16px;min-height:0}.product-catalog-groups,.product-catalog-subgroups{background:#fff;border:1px solid #dbe3ee;border-radius:8px;min-height:0;display:flex;flex-direction:column;overflow:hidden}.product-catalog-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.product-catalog-section-title>div{display:grid;gap:2px}.product-catalog-section-title b{font-size:.8rem;color:#1f3650}.product-catalog-section-title small{font-size:.65rem;color:#64748b}.product-catalog-section-title button{border:1px solid #99c9bf;background:#ecfdf5;color:#0f766e;border-radius:5px;padding:6px 9px;font-size:.67rem;font-weight:750;cursor:pointer}.product-catalog-list{display:grid;align-content:start;gap:6px;padding:9px;overflow:auto}.product-catalog-group{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:1px solid #dbe3ee;border-radius:7px;background:#fff;color:#1f3650;padding:10px;text-align:left;cursor:pointer}.product-catalog-group>span{display:grid;gap:2px;min-width:0}.product-catalog-group b{font-size:.75rem}.product-catalog-group small{font-size:.62rem;color:#64748b}.product-catalog-group em,.product-catalog-subgroup-row em{font-style:normal;border-radius:999px;background:#dcfce7;color:#166534;padding:3px 7px;font-size:.61rem;font-weight:800}.product-catalog-group.selected{border-color:#0f766e;background:#ecfdf5;box-shadow:inset 3px 0 #0f766e}.product-catalog-group.inactive{opacity:.72}.product-catalog-group.inactive em,.product-catalog-subgroup-row.inactive em{background:#e2e8f0;color:#475569}.product-catalog-subgroup-table{overflow:auto;min-height:0}.product-catalog-subgroup-head,.product-catalog-subgroup-row{display:grid;grid-template-columns:minmax(200px,1.5fr) 90px 90px minmax(155px,.7fr);gap:10px;align-items:center;padding:9px 12px}.product-catalog-subgroup-head{position:sticky;top:0;background:#eef4f8;border-bottom:1px solid #dbe3ee;color:#64748b;font-size:.62rem;text-transform:uppercase;font-weight:800;z-index:2}.product-catalog-subgroup-row{border-bottom:1px solid #e2e8f0;font-size:.7rem}.product-catalog-subgroup-row>span:first-child{display:grid;gap:2px}.product-catalog-subgroup-row b{font-size:.74rem;color:#1f3650}.product-catalog-subgroup-row small{font-size:.61rem;color:#9a3412}.product-catalog-subgroup-row>span:last-child{display:flex;gap:5px;flex-wrap:wrap}.product-catalog-subgroup-row button{border:1px solid #c7d3df;background:#fff;color:#24566c;border-radius:5px;padding:5px 7px;font-size:.63rem;font-weight:700;cursor:pointer}.product-catalog-empty,.product-catalog-loading{padding:26px;color:#64748b;text-align:center}.product-catalog-modal-backdrop{position:absolute;inset:0}.product-catalog-modal{width:min(620px,calc(100% - 32px))}.product-catalog-modal .f5-modal-body label:not(.product-catalog-switch){display:grid;gap:5px}.product-catalog-modal .f5-modal-body label>span{font-size:.7rem;font-weight:800;color:#475569}.product-catalog-modal input,.product-catalog-modal select{width:100%;padding:9px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1f3650}.product-catalog-switch{display:flex!important;align-items:center;gap:8px}.product-catalog-switch input{width:16px!important;height:16px}.product-catalog-linked-note{padding:9px 10px;border-radius:6px;background:#f8fafc;border:1px solid #dbe3ee;color:#64748b;font-size:.68rem}
@media(max-width:980px){.product-classification-filter-bar{grid-template-columns:1fr 1fr}.product-classification-filter-bar>div:first-child{grid-column:1/-1}.product-catalog-grid{grid-template-columns:1fr}.product-catalog-groups{max-height:240px}.product-catalog-toolbar{grid-template-columns:1fr auto}.product-catalog-toolbar .f5-list-filter-chips{grid-column:1/-1}}
@media(max-width:620px){.product-classification-filter-bar,.product-group-fields{grid-template-columns:1fr}.product-catalog-toolbar{grid-template-columns:1fr}.product-catalog-grid{padding:8px}.product-catalog-subgroup-head{display:none}.product-catalog-subgroup-row{grid-template-columns:1fr 1fr;gap:6px}.product-catalog-subgroup-row>span:first-child{grid-column:1/-1}.product-catalog-kpis{display:none}}

/* V34.9.127 — Pedidos de Compra */
.po-shell{height:100%;min-height:0}.po-scroll,.po-editor-scroll{padding:14px 18px 18px}.po-toolbar{align-items:end}.po-filter-strip{margin-top:0}.po-list-wrap{margin-top:10px;border:1px solid #d7e1ea;border-radius:10px;overflow:auto;background:#fff}.po-list-table{min-width:980px}.po-list-table td,.po-list-table th{vertical-align:middle}.po-list-table td small{display:block;margin-top:2px;color:#6b7f93}.po-list-table .nowrap{white-space:nowrap}.po-selected-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.po-footer>div:first-child{display:grid;gap:2px;min-width:0}.po-footer>div:first-child span{display:grid;gap:2px}.po-footer>div:first-child small{text-transform:uppercase;font-size:.62rem;color:#6b7f93;font-weight:800}.po-footer>div:first-child b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.po-section{display:grid;gap:12px;padding:14px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;margin-bottom:12px}.po-section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.po-section-head>div{display:grid;gap:3px}.po-section-head b{font-size:.88rem;color:#193550}.po-section-head small{font-size:.72rem;color:#6b7f93}.po-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.po-form-grid label,.po-item-entry label{display:grid;gap:5px;font-size:.69rem;font-weight:750;color:#51677c;text-transform:uppercase}.po-form-grid input,.po-item-entry input,.po-section textarea{width:100%;min-height:42px;padding:9px 10px;border:1px solid #c7d3df;border-radius:7px;background:#fff;color:#1f3650;font:inherit}.po-form-grid .span-2{grid-column:span 2}.po-item-entry{display:grid;grid-template-columns:minmax(300px,1.8fr) minmax(110px,.55fr) minmax(140px,.7fr) auto;gap:10px;align-items:end}.po-items-table-wrap{border:1px solid #e1e7ed;border-radius:8px;overflow:auto}.po-items-table{width:100%;border-collapse:collapse;min-width:760px}.po-items-table th,.po-items-table td{padding:10px;border-bottom:1px solid #e7edf2;text-align:left;font-size:.75rem}.po-items-table th{background:#f2f6fa;color:#4b6278;font-size:.66rem;text-transform:uppercase}.po-items-table .right{text-align:right;white-space:nowrap}.po-items-table td small{display:block;color:#789;margin-top:2px}.po-total-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.po-total-grid>div,.po-total-grid label{display:grid;gap:4px;padding:11px 12px;border:1px solid #dbe3ee;border-radius:8px;background:#f8fafc}.po-total-grid span,.po-total-grid label{font-size:.67rem;color:#64748b;text-transform:uppercase;font-weight:800}.po-total-grid b{font-size:1rem;color:#193550}.po-total-grid input{width:100%;border:1px solid #c7d3df;border-radius:6px;padding:8px;background:#fff}.po-total-grid .total{border-color:#93c5fd;background:#eff6ff}.po-total-grid .total b{color:#0b5795}.po-section textarea{min-height:88px;resize:vertical}.po-detail-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.po-detail-kpis>div{display:grid;gap:3px;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;background:#fff}.po-detail-kpis span{font-size:.65rem;text-transform:uppercase;color:#64748b;font-weight:800}.po-detail-kpis b{color:#193550}.po-receipts{display:grid;gap:7px}.po-receipts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid #e1e7ed;border-radius:7px;background:#f8fafc}.po-receipts span{font-size:.72rem;color:#5c7185}.po-notes-readonly{margin:0;white-space:pre-wrap;color:#334155;font-size:.8rem}.purchase-order-origin-note{display:grid;gap:5px;padding:10px 12px;margin-bottom:10px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;color:#1e3a8a}.purchase-order-origin-note b{font-size:.78rem}.purchase-order-origin-note span{font-size:.7rem}.purchase-order-compare{display:grid;gap:7px;margin-top:10px;border:1px solid #dbe3ee;border-radius:8px;overflow:hidden}.purchase-order-compare-head,.purchase-order-compare-row{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(90px,.7fr));gap:8px;align-items:center;padding:8px 10px}.purchase-order-compare-head{background:#f1f5f9;color:#52667a;font-size:.64rem;text-transform:uppercase;font-weight:800}.purchase-order-compare-row{border-top:1px solid #e5ebf0;font-size:.7rem}.purchase-order-compare-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-order-compare-row .diff{color:#b45309;font-weight:800}.purchase-order-compare-row .ok{color:#047857;font-weight:800}
@media(max-width:900px){.po-form-grid{grid-template-columns:1fr 1fr}.po-item-entry{grid-template-columns:1fr 1fr}.po-item-entry>.purchase-lookup-block{grid-column:1/-1}.po-total-grid,.po-detail-kpis{grid-template-columns:1fr 1fr}.purchase-order-compare-head,.purchase-order-compare-row{grid-template-columns:minmax(180px,1.5fr) repeat(4,minmax(80px,.7fr))}}
@media(max-width:620px){.po-form-grid,.po-item-entry,.po-total-grid,.po-detail-kpis{grid-template-columns:1fr}.po-form-grid .span-2,.po-item-entry>.purchase-lookup-block{grid-column:auto}.po-receipts>div{align-items:flex-start;flex-direction:column}.purchase-order-compare{overflow:auto}.purchase-order-compare-head,.purchase-order-compare-row{min-width:720px}}

/* V34.9.127 — Composição / Kits */
.composition-shell{height:100%;min-height:0;background:#f5f8fb;color:#1f3650}.composition-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;background:#fff;border-bottom:1px solid #dbe3ee}.composition-header.compact{padding-block:13px}.composition-header small{display:block;color:#0f766e;font-size:.66rem;font-weight:850;letter-spacing:.05em}.composition-header h2{margin:3px 0 4px;font-size:1.2rem;color:#153b61}.composition-header p{margin:0;color:#64748b;font-size:.75rem;max-width:850px}.composition-kpis{display:flex;gap:8px;flex-wrap:wrap}.composition-kpis span{display:grid;gap:1px;min-width:98px;padding:8px 10px;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:7px;color:#166534;font-size:.67rem}.composition-kpis b{font-size:1rem}.composition-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #dbe3ee}.composition-toolbar label{display:grid;gap:5px;min-width:min(440px,48%)}.composition-toolbar label>span,.composition-form-grid label>span,.composition-output label>span,.composition-notes>span{font-size:.66rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}.composition-toolbar input,.composition-form-grid input,.composition-form-grid select,.composition-output input,.composition-notes textarea{width:100%;min-height:40px;padding:9px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1f3650;font:inherit}.composition-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.composition-chips button{border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:999px;padding:7px 10px;font-size:.68rem;font-weight:750}.composition-chips button.active{border-color:#0f766e;background:#ecfdf5;color:#0f766e}.composition-chips b{margin-left:4px}.composition-table-wrap{padding:12px 16px 90px;overflow:auto}.composition-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #dbe3ee;border-radius:8px;overflow:hidden;font-size:.73rem}.composition-table th,.composition-table td{padding:9px 10px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:middle}.composition-table th{background:#f8fafc;color:#52677c;font-size:.64rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.composition-table tbody tr[data-composition-row]{cursor:pointer}.composition-table tbody tr[data-composition-row]:hover,.composition-table tbody tr.selected{background:#effcf8}.composition-type,.composition-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:.62rem;font-weight:800;white-space:nowrap}.composition-type.kit_comercial{background:#eef2ff;color:#4338ca}.composition-type.producao{background:#fff7ed;color:#c2410c}.composition-status.active{background:#ecfdf5;color:#166534}.composition-status.inactive{background:#f1f5f9;color:#64748b}.composition-actions-row td{background:#f0fdfa!important;padding:7px 10px!important}.composition-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.composition-actions button,.composition-footer button,.composition-section button,.composition-output button{border:1px solid #b8c8d8;background:#fff;color:#294b6d;border-radius:6px;padding:7px 10px;font-size:.69rem;font-weight:750;cursor:pointer}.composition-actions button.primary,.composition-footer button.primary{background:#0f766e;border-color:#0f766e;color:#fff}.composition-empty,.composition-loading{padding:28px;text-align:center;color:#64748b}.composition-section{display:grid;gap:12px;margin:12px 16px;padding:14px;background:#fff;border:1px solid #dbe3ee;border-radius:8px}.composition-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.composition-section-title>div{display:grid;gap:3px}.composition-section-title b{font-size:.82rem;color:#1f3650}.composition-section-title small{font-size:.69rem;color:#64748b}.composition-form-grid{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(180px,.7fr) minmax(280px,1.5fr);gap:10px;align-items:end}.composition-form-grid label{display:grid;gap:5px}.composition-form-grid .wide{grid-column:auto}.composition-output{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr) minmax(190px,.55fr);gap:10px;align-items:end;padding:11px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:7px}.composition-output>div{display:grid;gap:3px}.composition-output>div small{color:#64748b;font-size:.68rem}.composition-output label{display:grid;gap:5px}.composition-kit-note{display:grid;gap:4px;padding:10px 12px;border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:7px;font-size:.72rem}.composition-components{display:grid;gap:7px}.composition-component-row{display:grid;grid-template-columns:minmax(0,1fr) 170px auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e2e8f0;border-radius:7px;background:#fbfdff}.composition-component-row>span{display:grid;gap:2px;min-width:0}.composition-component-row>span b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composition-component-row>span small,.composition-component-row label small{font-size:.63rem;color:#64748b}.composition-component-row label{display:grid;gap:3px}.composition-component-row input{width:100%;padding:7px 8px;border:1px solid #cbd5e1;border-radius:5px}.composition-notes{display:grid;gap:5px}.composition-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 16px}.composition-detail-grid article{display:grid;gap:4px;padding:12px;border:1px solid #dbe3ee;border-radius:8px;background:#fff}.composition-detail-grid span{font-size:.64rem;text-transform:uppercase;color:#64748b;font-weight:800}.composition-detail-grid b{font-size:.88rem}.composition-component-summary,.composition-run-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 9px;border-bottom:1px solid #edf2f7;font-size:.72rem}.composition-run-row{grid-template-columns:180px 130px minmax(0,1fr)}.composition-production-preview{display:grid;gap:7px;padding:11px;border:1px solid #dbe3ee;border-radius:7px}.composition-production-preview>div{display:grid;gap:2px}.composition-production-preview>div small{color:#64748b;font-size:.67rem}.composition-production-preview>span{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid #edf2f7;font-size:.72rem}.composition-lot-warning{display:grid;gap:3px;padding:10px 12px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:7px;font-size:.71rem}.composition-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.composition-footer>div{display:flex;gap:7px;flex-wrap:wrap}.pdv-kit-intro{display:grid;gap:4px;padding:10px 12px;border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:7px;font-size:.74rem}.pdv-kit-list{display:grid;gap:7px;margin-top:10px;max-height:430px;overflow:auto}.pdv-kit-list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 12px;border:1px solid #dbe3ee;border-radius:7px;background:#fff;color:#1f3650;text-align:left;cursor:pointer}.pdv-kit-list>button:hover{border-color:#7dd3fc;background:#f0f9ff}.pdv-kit-list>button span{display:grid;gap:2px}.pdv-kit-list>button small{color:#64748b}.pdv-kit-list>button strong{white-space:nowrap;color:#0f766e}
@media(max-width:900px){.composition-header,.composition-toolbar{align-items:stretch;flex-direction:column}.composition-toolbar label{min-width:0}.composition-chips{justify-content:flex-start}.composition-form-grid,.composition-output{grid-template-columns:1fr 1fr}.composition-form-grid .wide,.composition-output>div{grid-column:1/-1}.composition-detail-grid{grid-template-columns:1fr}.composition-component-row{grid-template-columns:minmax(0,1fr) 140px auto}.composition-table{min-width:850px}}
@media(max-width:620px){.composition-form-grid,.composition-output,.composition-component-row{grid-template-columns:1fr}.composition-section{margin-inline:8px}.composition-detail-grid{margin-inline:8px}.composition-footer{align-items:flex-start;flex-direction:column}.composition-footer>div{width:100%}.composition-footer button{flex:1}.composition-run-row{grid-template-columns:1fr}.pdv-kit-list>button{align-items:flex-start;flex-direction:column}}

/* V34.9.127 CORRIGIDA — preço comercial do Kit e rateio no PDV */
.composition-kit-pricing{display:grid;gap:12px;padding:12px;border:1px solid #b8c9ee;background:#f8faff;border-radius:8px}.composition-kit-price-fields{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,.8fr);gap:10px;align-items:end}.composition-kit-price-fields label{display:grid;gap:5px}.composition-kit-price-fields label>span{font-size:.66rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}.composition-kit-price-fields select,.composition-kit-price-fields input{width:100%;min-height:40px;padding:9px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1f3650;font:inherit}.composition-price-auto{display:grid;gap:2px;min-height:40px;padding:7px 10px;border:1px solid #dbe3ee;border-radius:6px;background:#fff}.composition-price-auto span{font-size:.62rem;text-transform:uppercase;color:#64748b;font-weight:800}.composition-price-auto b{font-size:.75rem;color:#0f766e}.composition-kit-price-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.composition-kit-price-summary article{display:grid;gap:3px;padding:10px 11px;border:1px solid #dbe3ee;background:#fff;border-radius:7px}.composition-kit-price-summary article span{font-size:.62rem;text-transform:uppercase;letter-spacing:.03em;color:#64748b;font-weight:800}.composition-kit-price-summary article b{font-size:.84rem;color:#1f3650}.composition-kit-price-summary article:nth-child(2) b,.composition-kit-price-summary article:nth-child(3) b{color:#0f766e}.composition-kit-price-warning{display:grid;gap:3px;padding:10px 12px;border:1px solid #fdba74;background:#fff7ed;color:#9a3412;border-radius:7px;font-size:.7rem}.composition-kit-price-warning[hidden]{display:none}.composition-price-ok{padding:9px 11px;border:1px solid #a7f3d0;background:#ecfdf5;color:#166534;border-radius:7px;font-size:.7rem}.composition-component-row{grid-template-columns:minmax(0,1fr) 140px 130px auto}.composition-component-total{display:grid;gap:2px;text-align:right}.composition-component-total small{font-size:.61rem;color:#64748b}.composition-component-total b{font-size:.72rem;color:#1f3650}.composition-component-summary>span{display:grid;gap:2px}.composition-component-summary>span small{font-size:.62rem;color:#64748b}.composition-detail-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.composition-kit-price{color:#0f766e}.composition-price-alert{display:block;margin-top:2px;color:#c2410c;font-size:.6rem;font-weight:750}.composition-economy{color:#0f766e;font-weight:750;white-space:nowrap}.pdv-kit-price{display:grid!important;justify-items:end;gap:1px;min-width:120px}.pdv-kit-price small{font-size:.61rem}.pdv-kit-price strong{font-size:.86rem}.pdv-kit-price em{font-size:.61rem;font-style:normal;color:#0f766e;font-weight:800}.pdv-kit-warning{color:#c2410c!important;max-width:520px;white-space:normal}
@media(max-width:900px){.composition-kit-price-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.composition-component-row{grid-template-columns:minmax(0,1fr) 120px 110px auto}}
@media(max-width:620px){.composition-kit-price-fields,.composition-kit-price-summary,.composition-component-row{grid-template-columns:1fr}.composition-component-total{text-align:left}.pdv-kit-price{justify-items:start}.composition-economy{white-space:normal}}


/* V34.9.128 — Manifestação do Destinatário: polimento visual, fluxo funcional preservado */
.dfe-hero-compact{padding:15px 20px;border-radius:0;gap:18px}.dfe-hero-compact h2{font-size:1.25rem;margin:3px 0}.dfe-hero-compact p{font-size:.78rem}.dfe-hero-compact button{min-height:38px;padding:8px 12px;white-space:nowrap}
.dfe-flow-guide{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,2fr);gap:14px;align-items:center;padding:10px 18px;background:#f7fbff;border-bottom:1px solid #d8e5ef}.dfe-flow-title{display:grid;gap:2px}.dfe-flow-title b{font-size:.76rem;color:#173b5d}.dfe-flow-title span{font-size:.66rem;color:#687f93;line-height:1.35}.dfe-flow-guide ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.dfe-flow-guide li{position:relative;display:flex;align-items:center;gap:7px;min-width:0;padding:7px 8px;border:1px solid #cfdeea;background:#fff;border-radius:8px;color:#31516d;font-size:.67rem;font-weight:750}.dfe-flow-guide li:not(:last-child):after{content:'›';position:absolute;right:-7px;z-index:2;color:#8ca4b9;font-weight:900}.dfe-flow-guide li>b{display:grid;place-items:center;width:20px;height:20px;border-radius:999px;background:#e7f1fa;color:#0b5795;font-size:.65rem;flex:none}.dfe-flow-guide li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dfe-toolbar{grid-template-columns:minmax(0,1.35fr) minmax(250px,.85fr) auto;gap:10px;padding:10px 14px}.dfe-tabs{gap:5px}.dfe-tabs button{padding:6px 10px;font-size:.68rem}.dfe-search input{min-width:0;padding:8px 10px}.dfe-sync-state{font-size:.66rem;line-height:1.25}.dfe-content{gap:10px;padding:10px 14px 14px;overflow:hidden}.dfe-table-wrap{border-radius:8px;overflow:auto}.dfe-table{table-layout:fixed}.dfe-table th{padding:9px 8px}.dfe-table td{padding:9px 8px;font-size:.74rem;overflow:hidden}.dfe-table th:nth-child(1){width:16%}.dfe-table th:nth-child(2){width:24%}.dfe-table th:nth-child(3){width:12%}.dfe-table th:nth-child(4){width:10%}.dfe-table th:nth-child(5){width:16%}.dfe-table th:nth-child(6){width:14%}.dfe-table th:nth-child(7){width:8%}.dfe-table td>b,.dfe-table td>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.dfe-date-cell{white-space:nowrap}.dfe-table td:last-child{text-align:right}.dfe-table td:last-child button{padding:6px 8px;font-size:.66rem}
.dfe-detail{width:365px;max-width:36vw;border-radius:8px;box-shadow:0 8px 22px rgba(22,49,78,.12)}.dfe-detail>header{padding:12px 14px;border-radius:7px 7px 0 0}.dfe-detail>header h3{font-size:.9rem}.dfe-next-step{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;background:#eef7ff;border-bottom:1px solid #d6e7f5}.dfe-next-step span{font-size:.61rem;text-transform:uppercase;letter-spacing:.05em;color:#5b748a;font-weight:800}.dfe-next-step b{font-size:.72rem;color:#0b5795;text-align:right}.dfe-detail-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:10px 14px 3px}.dfe-detail-flow span{display:grid;gap:3px;justify-items:center;text-align:center;color:#7a8d9f;font-size:.59rem}.dfe-detail-flow span b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf2f7;border:1px solid #d4e0ea;color:#62788c}.dfe-detail-flow span.done{color:#166534;font-weight:800}.dfe-detail-flow span.done b{background:#dcfce7;border-color:#86efac;color:#166534}.dfe-detail dl{padding:10px 14px;gap:6px}.dfe-detail dl div{grid-template-columns:82px minmax(0,1fr);gap:7px}.dfe-detail dt{font-size:.67rem}.dfe-detail dd{font-size:.7rem}.dfe-detail-section{border-top:1px solid #e3ebf2;padding-top:10px}.dfe-detail-section>header{display:grid;gap:2px;padding:0 14px 8px}.dfe-detail-section>header b{font-size:.73rem;color:#173b5d}.dfe-detail-section>header small{font-size:.61rem;color:#6f8496;line-height:1.35}.dfe-detail-actions,.dfe-artifact-actions{gap:6px;padding:0 14px 10px}.dfe-detail-actions button,.dfe-artifact-actions button{min-height:34px;padding:6px 7px;font-size:.65rem}.dfe-timeline{padding:4px 14px 14px;border-top:1px solid #e3ebf2}.dfe-timeline h4{font-size:.72rem;margin:9px 0 5px}.dfe-timeline span{padding:3px 0 3px 18px;font-size:.65rem}
@media(max-width:1050px){.dfe-flow-guide{grid-template-columns:1fr}.dfe-toolbar{grid-template-columns:1fr 1fr}.dfe-sync-state{grid-column:1/-1;text-align:left;grid-template-columns:repeat(3,max-content);gap:12px}.dfe-detail{width:340px;max-width:42vw}}
@media(max-width:820px){.dfe-flow-guide ol{grid-template-columns:1fr 1fr}.dfe-flow-guide li:nth-child(2):after{display:none}.dfe-toolbar{grid-template-columns:1fr}.dfe-sync-state{grid-column:auto;grid-template-columns:1fr}.dfe-content{grid-template-columns:1fr;overflow:auto}.dfe-detail{width:auto;max-width:none}.dfe-table{min-width:860px}}

/* V34.9.128 CORRIGIDA — Manifestação progressiva: ações abaixo da lista, sem painel lateral */
.dfe-content-progressive{display:flex;flex-direction:column;gap:8px;overflow:hidden;padding:10px 14px 12px}.dfe-content-progressive>.dfe-table-wrap{flex:1;min-height:0;width:100%}
.dfe-selection-host{flex:none;min-height:58px;display:flex}.dfe-selection-host:empty{visibility:hidden}.dfe-selection-host>.dfe-selection-actions{width:100%;box-sizing:border-box}
.dfe-content-progressive .dfe-table{table-layout:fixed;width:100%}.dfe-content-progressive .dfe-table th:nth-child(1){width:16%}.dfe-content-progressive .dfe-table th:nth-child(2){width:29%}.dfe-content-progressive .dfe-table th:nth-child(3){width:15%}.dfe-content-progressive .dfe-table th:nth-child(4){width:11%}.dfe-content-progressive .dfe-table th:nth-child(5){width:16%}.dfe-content-progressive .dfe-table th:nth-child(6){width:13%}
.dfe-content-progressive .dfe-table tbody tr{transition:background-color .12s ease}.dfe-content-progressive .dfe-table tbody tr:hover>td{background:#f5f9fd}.dfe-content-progressive .dfe-table tbody tr.selected>td{background:#c2dcf8!important}.dfe-content-progressive .dfe-table tbody tr.selected>td:first-child{box-shadow:inset 5px 0 #2563eb}.dfe-content-progressive .dfe-table tbody tr.selected:hover>td{background:#c2dcf8!important}.dfe-content-progressive .dfe-table tr:focus{outline:2px solid #80b9e8;outline-offset:-2px}.dfe-content-progressive .dfe-table td>b,.dfe-content-progressive .dfe-table td>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.dfe-selection-actions{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:9px 11px;border:1px solid #c9d9e7;border-radius:8px;background:#fff;box-shadow:0 5px 14px rgba(22,49,78,.06)}.dfe-selection-summary{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap}.dfe-selection-summary b{font-size:.76rem;color:#173b5d}.dfe-selection-summary span{font-size:.69rem;font-weight:750;color:#0b5795;overflow:hidden;text-overflow:ellipsis}.dfe-selection-summary span:before{content:'Próxima ação: ';color:#718395;font-weight:600}
.dfe-progressive-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.dfe-progressive-actions button{min-height:34px;padding:6px 11px;font-size:.68rem;font-weight:750;white-space:nowrap}.dfe-progressive-actions button.compact{min-width:34px;padding:5px 8px;font-size:1rem;line-height:1}.dfe-progressive-actions button:disabled{opacity:.48;cursor:not-allowed}.dfe-no-action{font-size:.69rem;color:#64748b;font-weight:700}
@media(max-width:900px){.dfe-selection-actions{align-items:flex-start;flex-direction:column}.dfe-progressive-actions{width:100%;justify-content:flex-start}.dfe-content-progressive .dfe-table{min-width:820px}}

/* V34.9.128 CORRIGIDA — destaque visual persistente da NF-e selecionada */

/* V34.9.128 CORRIGIDA — seleção reforçada: contraste visual maior sem alterar o fluxo */
/* Ajuste final: fundo selecionado #c2dcf8 para identificação imediata sem pesar a grade. */


/* V34.9.129 — seleção contextual por cor da aba */

.sales-mov-table-wrap,.product-compact-wrap,.product-detailed-list,.bank-movement-table,.dfe-table-wrap,.cfop-catalog-table-wrap{
  --f5-selection-hover:#e8f1ff;
  --f5-selection-bg:#c8dcff;
  --f5-selection-accent:#2563eb;
}
.purchase-mov-table-wrap,.financial-professional-table,.cash-turn-table,.composition-table-wrap{
  --f5-selection-hover:#e3f5ee;
  --f5-selection-bg:#bfe8d7;
  --f5-selection-accent:#0f766e;
}
.people-table-wrap{
  --f5-selection-hover:#e9e0ff;
  --f5-selection-bg:#d5c1ff;
  --f5-selection-accent:#7c3aed;
}
.product-compact-wrap,.product-detailed-list{
  --f5-selection-hover:#e5f0ff;
  --f5-selection-bg:#c7dbff;
  --f5-selection-accent:#1d4ed8;
}
.dfe-table-wrap,.cfop-catalog-table-wrap{
  --f5-selection-hover:#e7f0ff;
  --f5-selection-bg:#cedfff;
  --f5-selection-accent:#315eb1;
}

/* V34.9.129 — preenchimento mais forte da linha selecionada */
.sales-mov-table tbody tr[data-row].selected>td{background:var(--f5-selection-bg)!important}
.sales-mov-table tbody tr[data-row].selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.sales-mov-table tbody tr[data-row].selected:hover>td{background:var(--f5-selection-bg)!important}

.purchase-mov-table tbody tr[data-entry-row]:hover,.purchase-mov-table tbody tr[data-entry-row]:focus-visible{background:var(--f5-selection-hover)}
.purchase-mov-table tbody tr[data-entry-row].selected{box-shadow:none}
.purchase-mov-table tbody tr[data-entry-row].selected>td{background:var(--f5-selection-bg)!important}
.purchase-mov-table tbody tr[data-entry-row].selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.purchase-mov-table tbody tr[data-entry-row].selected:hover>td{background:var(--f5-selection-bg)!important}

.financial-professional-table tbody tr[data-financial-row]:hover,.financial-professional-table tbody tr[data-financial-row]:focus-visible{background:var(--f5-selection-hover)}
.financial-professional-table tbody tr[data-financial-row].selected>td{background:var(--f5-selection-bg)!important}
.financial-professional-table tbody tr[data-financial-row].selected{box-shadow:inset 5px 0 var(--f5-selection-accent)}

.cash-turn-table tbody tr[data-cash-turn]:hover>td,.cash-turn-table tbody tr[data-cash-turn]:focus-visible>td{background:var(--f5-selection-hover)}
.cash-turn-table tbody tr.selected>td{background:var(--f5-selection-bg)!important}
.cash-turn-table tbody tr.selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.cash-turn-table tbody tr.selected:hover>td{background:var(--f5-selection-bg)!important}

.bank-movement-table tbody tr[data-bank-row]:hover>td,.bank-movement-table tbody tr[data-bank-row]:focus-visible>td{background:var(--f5-selection-hover)}
.bank-movement-table tbody tr.selected>td{background:var(--f5-selection-bg)!important}
.bank-movement-table tbody tr.selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.bank-movement-table tbody tr.selected:hover>td{background:var(--f5-selection-bg)!important}

.dfe-table tbody tr:hover,.dfe-table tbody tr.selected{background:var(--f5-selection-bg)}
.dfe-table tbody tr.selected td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.cfop-catalog-table tbody tr:hover,.cfop-catalog-table tbody tr.selected{background:var(--f5-selection-bg)}
.cfop-catalog-table tbody tr.selected td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.composition-table tbody tr[data-composition-row]:hover,.composition-table tbody tr.selected{background:var(--f5-selection-bg)}
.composition-table tbody tr.selected td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}

.people-professional-table tbody tr[data-person-row]:hover>td{background:var(--f5-selection-hover)}
.people-professional-table tbody tr[data-person-row]:focus{outline:none}
.people-professional-table tbody tr[data-person-row]:focus>td{background:var(--f5-selection-bg)!important}
.people-professional-table tbody tr[data-person-row]:focus>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.people-professional-table tbody tr[data-person-row]:focus-visible>td{background:var(--f5-selection-bg)!important}

.product-compact-table tbody tr:hover,.product-compact-table tbody tr:focus{background:var(--f5-selection-hover)}
.product-compact-table tbody tr:focus{box-shadow:inset 5px 0 var(--f5-selection-accent);background:var(--f5-selection-bg)}
.product-detailed-row:hover,.product-detailed-row:focus{border-color:color-mix(in srgb,var(--f5-selection-accent) 55%,#ffffff);box-shadow:0 7px 20px rgba(15,50,90,.09), inset 4px 0 0 var(--f5-selection-accent);background:var(--f5-selection-bg);transform:translateY(-1px)}


/* V34.9.130 — Central F5 / Parceiros sem duplicação funcional */
.partner-central-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:#f5f8fb;color:#173a5c;overflow:hidden}
.partner-central-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;background:linear-gradient(135deg,#0e526d,#0e7490);color:#fff;flex:none}
.partner-central-hero small{font-size:.59rem;font-weight:900;letter-spacing:.12em;color:#cffafe}.partner-central-hero h1{margin:2px 0;font-size:1.2rem}.partner-central-hero p{margin:0;font-size:.7rem;color:#e0f7fb}.partner-central-hero button{border-color:rgba(255,255,255,.28);background:#fff;color:#0e647d}
.partner-central-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:9px;padding:12px 16px 8px;flex:none}.partner-central-kpis article{display:grid;gap:2px;padding:10px 12px;border:1px solid #cfe0e8;border-left:4px solid #0e7490;border-radius:9px;background:#fff}.partner-central-kpis article.attention{border-left-color:#d97706;background:#fffdf6}.partner-central-kpis span{font-size:.6rem;font-weight:850;text-transform:uppercase;color:#6c8195}.partner-central-kpis b{font-size:1.15rem;color:#123c55}.partner-central-kpis small{font-size:.61rem;color:#718397}
.partner-central-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:end;gap:10px;padding:8px 16px 10px;border-bottom:1px solid #d7e3ea;flex:none}.partner-central-toolbar label{display:grid;gap:4px}.partner-central-toolbar label>span{font-size:.6rem;font-weight:850;color:#62788b;text-transform:uppercase}.partner-central-toolbar input{min-height:38px;border:1px solid #c7d6e1;border-radius:8px;background:#fff;padding:8px 10px;font:inherit}.partner-central-filters{display:flex;gap:6px;flex-wrap:wrap}.partner-central-filters button{border:1px solid #c6d6e1;background:#fff;color:#31536c;border-radius:999px;padding:7px 10px;font-size:.65rem;font-weight:800;cursor:pointer}.partner-central-filters button.active{background:#dff5f9;border-color:#0e7490;color:#0b6178}.partner-central-filters b{margin-left:5px}
.partner-central-table-wrap{margin:10px 16px 8px;border:1px solid #d5e1e8;border-radius:10px;background:#fff;overflow:auto;flex:1;min-height:240px;--f5-selection-bg:#b9e5ef;--f5-selection-accent:#0e7490}.partner-central-table{width:100%;border-collapse:collapse;font-size:.72rem}.partner-central-table th{position:sticky;top:0;z-index:2;padding:9px 10px;background:#eaf2f6;border-bottom:1px solid #d2dfe7;text-align:left;font-size:.59rem;text-transform:uppercase;letter-spacing:.035em;color:#526c7e}.partner-central-table td{padding:9px 10px;border-bottom:1px solid #e4ebf0;vertical-align:middle}.partner-central-table td b,.partner-central-table td small{display:block}.partner-central-table td small{margin-top:2px;color:#75899b;font-size:.59rem}.partner-central-table tbody tr[data-partner-row]{cursor:pointer;outline:none}.partner-central-table tbody tr[data-partner-row]:hover>td{background:#e9f6f9}.partner-central-table tbody tr[data-partner-row].selected>td{background:var(--f5-selection-bg)!important}.partner-central-table tbody tr[data-partner-row].selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}.partner-central-table tbody tr[data-partner-row].selected:hover>td{background:var(--f5-selection-bg)!important}.partner-central-table em{display:inline-flex;padding:4px 8px;border-radius:999px;font-style:normal;font-size:.59rem;font-weight:850}.partner-central-table em.active{background:#dcfce7;color:#166534}.partner-central-table em.inactive{background:#f1f5f9;color:#64748b}.partner-central-pending{display:inline-grid;place-items:center;min-width:26px;height:24px;border-radius:999px;background:#edf2f7;color:#566c7c;font-weight:850}.partner-central-pending.attention{background:#fff1c7;color:#9a5b05}
.partner-central-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;border-top:1px solid #d4e1e9;background:#fff;flex:none}.partner-central-footer>div:first-child{display:grid;gap:2px;min-width:0}.partner-central-footer small{font-size:.58rem;color:#718597}.partner-central-footer b{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.partner-central-footer>div:last-child{display:flex;gap:7px}
.partner-central-dialog{width:min(1120px,96vw);max-height:92vh;overflow:hidden;display:flex;flex-direction:column;background:#f7fafc;padding:0!important}.partner-central-dialog>.partner-dialog-close{z-index:4}.partner-central-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;background:linear-gradient(135deg,#0e526d,#0e7490);color:#fff;flex:none}.partner-central-dialog-head small{font-size:.57rem;font-weight:900;letter-spacing:.12em;color:#cffafe}.partner-central-dialog-head h2{margin:2px 0;font-size:1.08rem}.partner-central-dialog-head p{margin:0;color:#dff7fb;font-size:.66rem}.partner-central-dialog-head>span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.62rem;font-weight:850;margin-right:38px}.partner-central-dialog-head>span.inactive{background:#f1f5f9;color:#64748b}
.partner-central-tabs{display:flex;gap:4px;padding:8px 12px;background:#fff;border-bottom:1px solid #d6e2e9;overflow:auto;flex:none}.partner-central-tabs button{border:1px solid transparent;background:transparent;color:#4e687b;border-radius:7px;padding:7px 11px;font-size:.66rem;font-weight:800;white-space:nowrap;cursor:pointer}.partner-central-tabs button.active{background:#dff5f9;border-color:#9ed7e5;color:#0b6178}.partner-central-tabs b{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:5px;border-radius:999px;background:#d97706;color:#fff;font-size:.57rem}.partner-central-tab-body{padding:12px;overflow:auto;min-height:0;flex:1}.partner-central-form{margin:0!important;border:1px solid #d7e3ea;border-radius:10px;background:#fff;padding:12px}.partner-central-form>header{margin-bottom:10px}.partner-central-summary{display:grid;gap:10px}.partner-central-summary-kpis{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px}.partner-central-summary-kpis article{display:grid;gap:2px;padding:10px;border:1px solid #d7e3ea;border-left:4px solid #0e7490;border-radius:8px;background:#fff}.partner-central-summary-kpis article.attention{border-left-color:#d97706}.partner-central-summary-kpis span{font-size:.58rem;font-weight:850;text-transform:uppercase;color:#718397}.partner-central-summary-kpis b{font-size:1rem}.partner-central-summary-kpis small{font-size:.59rem;color:#718397}.partner-central-section{margin:0!important;background:#fff}.partner-central-request-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:900px){.partner-central-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-central-toolbar{grid-template-columns:1fr}.partner-central-filters{justify-content:flex-start}.partner-central-request-grid{grid-template-columns:1fr}.partner-central-summary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.partner-central-hero{align-items:flex-start;flex-direction:column}.partner-central-kpis,.partner-central-summary-kpis{grid-template-columns:1fr}.partner-central-footer{align-items:stretch;flex-direction:column}.partner-central-footer>div:last-child{justify-content:flex-end}.partner-central-table{min-width:720px}}

/* V34.9.131 — Promoções / Comercial */
.promotion-shell{height:100%;min-height:0;background:#f8f9fc;color:#243b53;--f5-selection-hover:#fde8f2;--f5-selection-bg:#f4bfd8;--f5-selection-accent:#db2777}.promotion-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 18px;background:linear-gradient(135deg,#9d174d,#db2777);color:#fff;border-bottom:1px solid #be185d}.promotion-header small{display:block;font-size:.61rem;font-weight:900;letter-spacing:.1em;color:#fce7f3}.promotion-header h2{margin:3px 0 2px;font-size:1.14rem}.promotion-header p{margin:0;max-width:780px;font-size:.71rem;color:#fce7f3}.promotion-header-kpis{display:flex;gap:8px;flex-wrap:wrap}.promotion-header-kpis span{min-width:112px;padding:8px 10px;border:1px solid rgba(255,255,255,.26);border-radius:9px;background:rgba(255,255,255,.12);font-size:.65rem}.promotion-header-kpis b{display:block;font-size:1rem;color:#fff}.promotion-kpis{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px;padding:12px 16px 0}.promotion-kpis article{padding:10px 12px;border:1px solid #e5d7df;border-left:4px solid #db2777;border-radius:10px;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.035)}.promotion-kpis span{display:block;color:#7b6672;font-size:.62rem;font-weight:800;text-transform:uppercase}.promotion-kpis b{display:block;margin-top:3px;color:#7e1d4d;font-size:1.12rem}.promotion-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:10px;align-items:end;padding:12px 16px}.promotion-toolbar>label{display:grid;gap:5px}.promotion-toolbar>label span{font-size:.64rem;font-weight:800;color:#5d6f82}.promotion-toolbar input,.promotion-editor-grid input,.promotion-editor-grid select,.promotion-notes textarea{width:100%;min-height:39px;border:1px solid #cbd7e3;border-radius:8px;background:#fff;padding:8px 10px;color:#243b53;font:inherit}.promotion-toolbar>.primary,.promotion-footer .primary{border:0;border-radius:8px;background:#db2777;color:#fff;padding:10px 14px;font-weight:850;cursor:pointer}.promotion-table-wrap{margin:0 16px 12px;border:1px solid #d8e2ec;border-radius:10px;background:#fff;overflow:auto}.promotion-table{width:100%;border-collapse:collapse;font-size:.71rem}.promotion-table th{position:sticky;top:0;z-index:2;padding:9px 10px;background:#f4edf1;border-bottom:1px solid #dbcbd4;color:#68475a;text-align:left;font-size:.59rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.promotion-table td{padding:9px 10px;border-bottom:1px solid #e8e1e5;vertical-align:middle}.promotion-table td b{display:block;color:#2f4053}.promotion-table td small{display:block;margin-top:2px;color:#7a8998;font-size:.59rem}.promotion-table tbody tr[data-promotion-row]{cursor:pointer;outline:none}.promotion-table tbody tr[data-promotion-row]:hover>td{background:var(--f5-selection-hover)}.promotion-table tbody tr[data-promotion-row].selected>td{background:var(--f5-selection-bg)!important}.promotion-table tbody tr[data-promotion-row].selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}.promotion-table tbody tr[data-promotion-row].selected:hover>td{background:var(--f5-selection-bg)!important}.promotion-rule-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fce7f3;color:#9d174d;font-weight:900}.promotion-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.61rem;font-weight:850;white-space:nowrap}.promotion-status.ativa{background:#dcfce7;color:#166534}.promotion-status.agendada{background:#dbeafe;color:#1d4ed8}.promotion-status.encerrada{background:#f1f5f9;color:#475569}.promotion-status.inativa{background:#fee2e2;color:#991b1b}.promotion-actions-row td{padding:0!important;background:#fff4f8!important}.promotion-actions-row>td>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-left:5px solid #db2777}.promotion-actions-row span{display:grid;gap:2px}.promotion-actions-row small{color:#8b6e7f!important}.promotion-actions-row nav{display:flex;gap:7px;flex-wrap:wrap}.promotion-actions-row button,.promotion-footer button{border:1px solid #d6bdca;background:#fff;color:#7e1d4d;border-radius:7px;padding:7px 10px;font-weight:800;cursor:pointer}.promotion-empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:5px;color:#7b8997}.promotion-empty b{font-size:.85rem}.promotion-policy-note{display:flex;gap:9px;align-items:flex-start;margin:0 16px 12px;padding:10px 12px;border:1px solid #f5c2da;border-radius:9px;background:#fff5f9;color:#704154;font-size:.68rem}.promotion-policy-note b{white-space:nowrap;color:#9d174d}.promotion-footer>span{font-size:.67rem;color:#64748b}.promotion-footer>div{display:flex;gap:8px}.promotion-loading{height:100%;display:grid;place-items:center;color:#64748b}.promotion-modal{width:min(900px,calc(100% - 40px));max-height:calc(100dvh - 52px)}.promotion-modal-head{background:linear-gradient(135deg,#9d174d,#db2777)!important}.promotion-modal-body{display:grid;gap:11px}.promotion-editor-section{display:grid;gap:10px;padding:12px;border:1px solid #dbe3ec;border-radius:10px;background:#fff}.promotion-editor-section>header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #edf1f5;padding-bottom:8px}.promotion-editor-section>header b{color:#7e1d4d}.promotion-editor-section>header small{color:#718295;font-size:.64rem}.promotion-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.promotion-editor-grid label,.promotion-notes{display:grid;gap:5px;color:#43586d;font-size:.68rem;font-weight:750}.promotion-editor-grid .span-2{grid-column:span 2}.promotion-rule-order{display:grid;gap:3px;padding:9px 11px;border-left:4px solid #db2777;background:#fff4f8;color:#664454;border-radius:7px;font-size:.67rem}.promotion-rule-order b{color:#9d174d}.promotion-preview-price{display:grid;grid-template-columns:1fr auto 1fr auto;gap:12px;align-items:center;padding:11px;border-radius:9px;background:#fff5f9;border:1px solid #f5c2da}.promotion-preview-price span{display:grid;gap:2px}.promotion-preview-price small{color:#7a8998}.promotion-preview-price b{font-size:1rem}.promotion-preview-price i{font-style:normal;color:#db2777;font-size:1.2rem}.promotion-preview-price em{font-style:normal;border-radius:999px;background:#dcfce7;color:#166534;padding:5px 9px;font-weight:850}.promotion-preview-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.promotion-preview-list>span{display:grid;gap:2px;border:1px solid #e5e7eb;border-radius:7px;padding:8px 10px;background:#fafafa}.promotion-preview-list small{color:#718295}.promotion-preview-list .empty{grid-column:1/-1;text-align:center;color:#718295}.promotion-notes textarea{min-height:72px;resize:vertical}.pdv-promo-pill{display:inline-flex;border-radius:999px;background:#fce7f3;color:#9d174d;padding:1px 5px;font-style:normal;font-weight:850}.pdv-promo-normal-price{text-decoration:line-through;color:#94a3b8!important}.pdv-promo-price{color:#be185d!important}.pdv-promotion-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:7px 0;padding:7px 9px;border:1px solid #f5c2da;border-radius:8px;background:#fff5f9}.pdv-promotion-banner>span{color:#9d174d;font-weight:850}.pdv-promotion-banner>b{color:#be185d;font-size:1rem}.pdv-promotion-banner>small{color:#7b6b75}.pdv-product-cell small{line-height:1.35}
@media(max-width:980px){.promotion-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.promotion-toolbar{grid-template-columns:1fr 1fr}.promotion-toolbar>label{grid-column:1/-1}.promotion-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.promotion-header{align-items:flex-start;flex-direction:column}.promotion-kpis,.promotion-editor-grid{grid-template-columns:1fr}.promotion-editor-grid .span-2{grid-column:auto}.promotion-toolbar{grid-template-columns:1fr}.promotion-preview-price{grid-template-columns:1fr}.promotion-preview-price i{transform:rotate(90deg)}.promotion-preview-list{grid-template-columns:1fr}}


/* V34.9.132 — Central do Parceiro com desktop e janelas internas */
.partner-portal-v349132.partner-workspace-shell{position:relative;height:calc(100dvh - 78px);min-height:520px;overflow:hidden;background:#edf3f8}
.partner-portal-v349132 .partner-workspace-home{height:100%;overflow:auto;padding:22px 24px 72px}
.partner-portal-v349132 .partner-workspace-home[hidden],.partner-portal-v349132 .partner-workspace-window[hidden],.partner-portal-v349132 .partner-window-taskbar[hidden]{display:none!important}
.partner-workspace-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #cbd9e6;border-radius:14px;background:linear-gradient(125deg,#0a315b,#0f5f82);color:#fff;box-shadow:0 10px 28px rgba(8,45,77,.13)}
.partner-workspace-hero small{font-size:.63rem;font-weight:900;letter-spacing:.1em;color:#bde7f5}.partner-workspace-hero h1{margin:4px 0 3px;font-size:1.35rem}.partner-workspace-hero p{margin:0;color:#e0eff7;font-size:.76rem}.partner-workspace-hero>span{white-space:nowrap;border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:7px 11px;background:rgba(255,255,255,.1);font-size:.69rem;font-weight:800}
.partner-home-summary{margin:14px 0}.partner-workspace-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:12px}.partner-workspace-shortcuts>button{min-height:108px;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;border:1px solid #cbd9e7!important;border-left:5px solid #0f766e!important;border-radius:13px!important;background:#fff!important;color:#173d5c!important;padding:15px 16px!important;box-shadow:0 5px 16px rgba(15,45,75,.055);transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.partner-workspace-shortcuts>button:hover{transform:translateY(-1px);border-color:#6bb7b0!important;box-shadow:0 9px 22px rgba(15,45,75,.09)}.partner-workspace-shortcuts>button:nth-child(2){border-left-color:#2563eb!important}.partner-workspace-shortcuts>button:nth-child(3){border-left-color:#d97706!important}.partner-workspace-shortcuts>button:nth-child(4){border-left-color:#7c3aed!important}.partner-shortcut-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#e4f4f2;font-size:1.25rem}.partner-workspace-shortcuts>button:nth-child(2) .partner-shortcut-icon{background:#e5efff}.partner-workspace-shortcuts>button:nth-child(3) .partner-shortcut-icon{background:#fff3df}.partner-workspace-shortcuts>button:nth-child(4) .partner-shortcut-icon{background:#f1eaff}.partner-workspace-shortcuts>button>span:nth-child(2){display:grid;gap:4px}.partner-workspace-shortcuts>button b{font-size:.82rem}.partner-workspace-shortcuts>button small{color:#60778e;font-size:.66rem;line-height:1.35}.partner-workspace-shortcuts>button em{min-width:31px;height:31px;display:grid;place-items:center;border-radius:999px;background:#eef3f8;color:#294d6d;font-style:normal;font-size:.72rem;font-weight:900}
.partner-workspace-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.partner-workspace-overview article{display:grid;gap:2px;border:1px solid #d2dee9;border-radius:11px;background:#fff;padding:11px 13px}.partner-workspace-overview span{font-size:.61rem;text-transform:uppercase;font-weight:850;color:#6b8195}.partner-workspace-overview b{font-size:1.05rem;color:#153d60}.partner-workspace-overview small{font-size:.61rem;color:#718497}
.partner-workspace-window{position:absolute;inset:10px 12px 48px;z-index:8;display:flex;flex-direction:column;min-height:0;border:1px solid #aebfd0;border-radius:12px;background:#f5f8fb;overflow:hidden;box-shadow:0 18px 46px rgba(10,37,64,.18)}
.partner-window-titlebar{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 9px 0 14px;background:#0b345c;color:#fff}.partner-window-titlebar>div:first-child{display:flex;align-items:center;gap:9px}.partner-window-titlebar>div:first-child>span{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#0f7690}.partner-window-titlebar>div:first-child>div{display:grid;gap:1px}.partner-window-titlebar b{font-size:.78rem}.partner-window-titlebar small{font-size:.58rem;color:#c8deef}.partner-window-controls{display:flex;align-items:center;gap:2px}.partner-window-controls button{width:36px;height:32px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#fff!important;font-size:1.1rem!important}.partner-window-controls button:hover{background:rgba(255,255,255,.13)!important}.partner-window-controls button:last-child:hover{background:#b42318!important}
.partner-window-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid #d4e0ea;background:#fff}.partner-window-toolbar>div{display:grid;gap:2px}.partner-window-toolbar b{font-size:.76rem;color:#173e60}.partner-window-toolbar small{font-size:.61rem;color:#718497}.partner-window-scroll{flex:1;min-height:0;overflow:auto;padding:12px 14px 20px}.partner-window-license-grid{margin:0}.partner-window-company-grid{margin:0}.partner-window-list{margin:0}.partner-window-scroll .partner-empty.compact{margin:18px auto}
.partner-window-taskbar{position:absolute;z-index:12;left:0;right:0;bottom:0;height:40px;display:flex;align-items:center;gap:10px;padding:4px 10px;border-top:1px solid #c1d0de;background:#dce7f0}.partner-window-taskbar>span{font-size:.58rem;font-weight:850;text-transform:uppercase;color:#5d7286}.partner-window-taskbar>div{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto}.partner-window-taskbar button{height:31px;display:flex;align-items:center;gap:5px;padding:0 10px!important;border:1px solid #b7c8d8!important;border-radius:7px!important;background:#fff!important;color:#244b69!important;font-size:.61rem!important;white-space:nowrap}.partner-window-taskbar button.active{background:#0f766e!important;border-color:#0f766e!important;color:#fff!important}
.partner-portal-v349132 .partner-onboarding-backdrop{z-index:10020}
@media(max-width:760px){.partner-workspace-shortcuts{grid-template-columns:1fr}.partner-workspace-overview{grid-template-columns:1fr}.partner-workspace-hero{align-items:flex-start;flex-direction:column}.partner-workspace-window{inset:6px 6px 46px}.partner-window-toolbar{align-items:flex-start;flex-direction:column}.partner-window-toolbar>button{width:100%}.partner-portal-v349132 .partner-workspace-home{padding:12px 10px 66px}}


/* V34.9.133 — Painel Master do Desenvolvedor com tela inicial e janelas internas */
#masterMain.master-workspace-root-v349133{position:relative;flex:1;max-width:none;width:100%;height:calc(100vh - var(--topbar-height,58px));min-height:0;padding:0!important;overflow:hidden;background:#edf3f8}
.master-workspace-v349133{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;background:linear-gradient(180deg,#f3f7fb 0,#edf3f8 100%)}
.master-workspace-home{height:100%;overflow:auto;padding:22px 24px 70px}.master-workspace-home[hidden],.master-workspace-window[hidden],.master-window-taskbar[hidden]{display:none!important}
.master-workspace-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid #cad8e5;border-radius:14px;background:linear-gradient(125deg,#0b2444,#123d6a);color:#fff;box-shadow:0 10px 28px rgba(11,36,68,.13)}
.master-workspace-hero small{font-size:.61rem;font-weight:900;letter-spacing:.12em;color:#b8d4ec}.master-workspace-hero h1{margin:4px 0 5px;color:#fff;font-size:1.35rem}.master-workspace-hero p{margin:0;max-width:760px;color:#d9e8f4;font-size:.72rem;line-height:1.5}.master-workspace-hero>span{border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);padding:7px 11px;font-size:.65rem;font-weight:850;white-space:nowrap}
.master-workspace-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-top:13px}.master-workspace-kpis article{display:grid;gap:3px;padding:12px 14px;border:1px solid #d2deea;border-left:4px solid #1d4ed8;border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.035)}.master-workspace-kpis article:nth-child(2){border-left-color:#0e7490}.master-workspace-kpis article:nth-child(3){border-left-color:#64748b}.master-workspace-kpis article.attention{border-left-color:#d97706;background:#fffdf8}.master-workspace-kpis span{font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:#677c91}.master-workspace-kpis b{font-size:1.18rem;color:#173b5d}.master-workspace-kpis small{font-size:.6rem;color:#7a8c9e}
.master-workspace-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:12px;margin-top:14px}.master-workspace-shortcuts button{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;padding:15px;border:1px solid #ccd9e5;border-radius:12px;background:#fff;color:#183b59;cursor:pointer;box-shadow:0 5px 15px rgba(15,23,42,.04);transition:.16s ease}.master-workspace-shortcuts button:hover{border-color:#7fa5c8;transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,49,80,.09)}.master-workspace-shortcuts button>span{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:#e7effa;color:#174ea6;font-size:1.05rem;font-weight:900}.master-workspace-shortcuts button:nth-child(2)>span{background:#e3f4f7;color:#0e7490}.master-workspace-shortcuts button>div{display:grid;gap:3px;min-width:0}.master-workspace-shortcuts b{font-size:.79rem}.master-workspace-shortcuts small{font-size:.64rem;color:#718498;line-height:1.4}.master-workspace-shortcuts em{font-style:normal;min-width:31px;text-align:center;border-radius:999px;background:#eef4fa;color:#35536d;padding:5px 8px;font-size:.64rem;font-weight:850}.master-workspace-note{display:grid;gap:4px;margin-top:14px;padding:12px 14px;border:1px solid #c9d8e5;border-radius:10px;background:#f8fbfe;color:#405a72}.master-workspace-note b{font-size:.72rem}.master-workspace-note span{font-size:.64rem;line-height:1.45}
.master-workspace-window{position:absolute;inset:10px 12px 48px;z-index:8;display:flex;flex-direction:column;min-height:0;border:1px solid #aebfd0;border-radius:12px;background:#f5f8fb;overflow:hidden;box-shadow:0 18px 46px rgba(10,37,64,.18)}
.master-window-titlebar{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 9px 0 14px;background:#0b2444;color:#fff}.master-window-titlebar>div:first-child{display:flex;align-items:center;gap:9px}.master-window-titlebar>div:first-child>span{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#174ea6;color:#fff}.master-window-titlebar>div:first-child>div{display:grid;gap:1px}.master-window-titlebar b{font-size:.78rem}.master-window-titlebar small{font-size:.58rem;color:#c8deef}.master-window-controls{display:flex;align-items:center;gap:2px}.master-window-controls button{width:36px;height:32px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#fff!important;font-size:1.1rem!important}.master-window-controls button:hover{background:rgba(255,255,255,.13)!important}.master-window-controls button:last-child:hover{background:#b42318!important}
.master-window-content{flex:1;min-height:0;overflow:auto;padding:18px 20px 24px;background:#f4f7fa}.master-window-content>.partner-central-shell{min-height:100%}.master-window-content>.partner-central-shell .partner-central-hero{margin-top:0}
.master-window-taskbar{position:absolute;z-index:12;left:0;right:0;bottom:0;height:40px;display:flex;align-items:center;gap:10px;padding:4px 10px;border-top:1px solid #c1d0de;background:#dce7f0}.master-window-taskbar>span{font-size:.58rem;font-weight:850;text-transform:uppercase;color:#5d7286}.master-window-taskbar>div{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto}.master-window-taskbar button{height:31px;display:flex;align-items:center;gap:5px;padding:0 10px!important;border:1px solid #b7c8d8!important;border-radius:7px!important;background:#fff!important;color:#244b69!important;font-size:.61rem!important;white-space:nowrap}.master-window-taskbar button.active{background:#174ea6!important;border-color:#174ea6!important;color:#fff!important}
#masterNav button.active{box-shadow:inset 4px 0 #3b82f6;background:rgba(37,99,235,.22)}
@media(max-width:900px){.master-workspace-kpis{grid-template-columns:repeat(2,minmax(140px,1fr))}.master-workspace-shortcuts{grid-template-columns:1fr}.master-workspace-window{inset:6px 6px 46px}.master-window-content{padding:12px}.master-workspace-home{padding:14px 12px 66px}}
@media(max-width:560px){.master-workspace-kpis{grid-template-columns:1fr 1fr}.master-workspace-hero{align-items:flex-start;flex-direction:column}.master-workspace-shortcuts button{grid-template-columns:38px minmax(0,1fr) auto}.master-workspace-shortcuts button>span{width:38px;height:38px}}


/* V34.9.134 — Solicitações prioritárias no Painel Master */

.master-requests-nav{display:flex!important;align-items:center!important}.master-requests-nav>span:nth-child(2){overflow:hidden;text-overflow:ellipsis}.master-nav-request-badge{margin-left:auto;min-width:21px;height:21px;display:grid;place-items:center;padding:0 6px;border-radius:999px;background:#f97316;color:#fff;font-size:.62rem;font-weight:900;box-shadow:0 0 0 2px rgba(249,115,22,.14)}.master-requests-nav.has-pending{background:rgba(217,119,6,.13)!important}.master-requests-nav.has-pending .icon{box-shadow:0 0 0 3px rgba(249,115,22,.14)}
.master-request-attention-box{margin:12px 0 16px;border:1px solid #fdba74;border-left:5px solid #ea580c;border-radius:12px;background:#fffaf5;overflow:hidden;box-shadow:0 8px 22px rgba(124,45,18,.07)}.master-request-attention-box>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#fff3e8;border-bottom:1px solid #fed7aa}.master-request-attention-box>header>div{display:flex;align-items:center;gap:10px}.master-request-attention-box>header>div>span,.master-request-priority-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#ea580c;color:#fff;font-weight:950}.master-request-attention-box header div div{display:grid;gap:2px}.master-request-attention-box header b{color:#7c2d12}.master-request-attention-box header small{color:#9a5b35;font-size:.64rem}.master-request-attention-box>header button{border:0;border-radius:8px;background:#c2410c;color:#fff;padding:8px 11px;font-weight:850;cursor:pointer}.master-request-attention-list{max-height:235px;overflow:auto}.master-request-attention-list article{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #ffead5}.master-request-attention-list article:last-child{border-bottom:0}.master-request-attention-list article>div{display:grid;gap:2px;min-width:0}.master-request-attention-list article b{color:#3b2a20}.master-request-attention-list article small{color:#7b6557;font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-request-attention-list article button{border:1px solid #f0b184;border-radius:7px;background:#fff;color:#9a3412;padding:6px 9px;font-size:.62rem;font-weight:800}.master-request-clear-box{display:flex;align-items:center;gap:10px;margin:12px 0 16px;padding:12px 14px;border:1px solid #a7f3d0;border-radius:11px;background:#f0fdf4}.master-request-clear-box>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#16a34a;color:#fff}.master-request-clear-box>div{display:grid;gap:2px}.master-request-clear-box small{color:#4b7460}.master-workspace-shortcuts button.attention{border-color:#fdba74;background:#fffaf5;box-shadow:inset 4px 0 #ea580c}.master-workspace-shortcuts button.attention>span{background:#ffedd5;color:#c2410c}
.master-requests-shell{min-height:100%;display:flex;flex-direction:column;gap:12px}.master-requests-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 17px;border-radius:12px;background:linear-gradient(135deg,#7c2d12,#c2410c);color:#fff}.master-requests-hero small{font-size:.58rem;font-weight:900;letter-spacing:.12em;color:#ffedd5}.master-requests-hero h1{margin:3px 0;font-size:1.2rem}.master-requests-hero p{margin:0;font-size:.7rem;color:#ffedd5}.master-requests-hero button{border:1px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.12);color:#fff;padding:8px 11px;font-weight:800;cursor:pointer}.master-requests-kpis{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:9px}.master-requests-kpis article{display:grid;gap:2px;padding:11px 13px;border:1px solid #d5e0e9;border-radius:10px;background:#fff}.master-requests-kpis article.attention{border-left:5px solid #ea580c;background:#fffaf5}.master-requests-kpis span{font-size:.61rem;text-transform:uppercase;font-weight:850;color:#708398}.master-requests-kpis b{font-size:1.18rem;color:#173b5d}.master-requests-kpis small{font-size:.61rem;color:#74879a}
.master-requests-priority-box{border:1px solid #d8e2eb;border-radius:12px;background:#fff;overflow:hidden}.master-requests-priority-box.has-items{border-color:#fdba74;box-shadow:0 7px 20px rgba(124,45,18,.06)}.master-requests-priority-box>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;background:#f5f8fb;border-bottom:1px solid #dbe4ec}.master-requests-priority-box.has-items>header{background:#fff3e8}.master-requests-priority-box>header>div{display:flex;align-items:center;gap:9px}.master-requests-priority-box>header>div>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#16a34a;color:#fff;font-weight:950}.master-requests-priority-box.has-items>header>div>span{background:#ea580c}.master-requests-priority-box>header>div>div{display:grid;gap:2px}.master-requests-priority-box>header small{font-size:.62rem;color:#72869a}.master-requests-priority-box>header strong{min-width:30px;height:30px;display:grid;place-items:center;border-radius:999px;background:#e2e8f0;color:#475569}.master-requests-priority-box.has-items>header strong{background:#ea580c;color:#fff}.master-requests-priority-list{max-height:300px;overflow:auto}.master-requests-priority-list article{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf1f5}.master-requests-priority-list article:last-child{border-bottom:0}.master-requests-priority-list article>span{display:grid;gap:2px;min-width:0}.master-requests-priority-list small{color:#728499;font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-request-type{display:inline-flex;width:max-content;align-items:center;border-radius:999px;padding:4px 8px;font-size:.59rem;font-weight:850;background:#dbeafe;color:#1d4ed8}.master-request-type.lifecycle{background:#fef3c7;color:#92400e}.master-request-inline-actions,.master-request-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.master-request-inline-actions button,.master-request-row-actions button{border:1px solid #c7d4df;border-radius:7px;background:#fff;color:#2b4c68;padding:6px 9px;font-size:.61rem;font-weight:800;cursor:pointer}.master-request-inline-actions button.primary,.master-request-row-actions button.primary{border-color:#2563eb;background:#2563eb;color:#fff}.master-request-inline-actions button.ghost,.master-request-row-actions button.ghost{background:#fff}
.master-requests-list-panel{border:1px solid #d7e2eb;border-radius:12px;background:#fff;overflow:hidden}.master-requests-list-panel>header{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #dbe4ec;background:#f8fafc}.master-requests-list-panel h2{margin:0;color:#173b5d;font-size:.9rem}.master-requests-list-panel p{margin:3px 0 0;color:#708397;font-size:.62rem}.master-request-filters{display:flex;gap:5px;flex-wrap:wrap}.master-request-filters button{border:1px solid #cad6e1;border-radius:999px;background:#fff;color:#526a7f;padding:6px 9px;font-size:.6rem;font-weight:800}.master-request-filters button b{margin-left:5px}.master-request-filters button.active{border-color:#c2410c;background:#fff1e8;color:#9a3412}.master-requests-table-wrap{overflow:auto;max-height:390px}.master-requests-table-wrap table{width:100%;border-collapse:collapse;font-size:.67rem}.master-requests-table-wrap th{position:sticky;top:0;z-index:2;padding:9px 10px;background:#eef4f8;color:#536b80;text-align:left;text-transform:uppercase;font-size:.56rem;letter-spacing:.04em}.master-requests-table-wrap td{padding:9px 10px;border-top:1px solid #e5ebf0;vertical-align:middle}.master-requests-table-wrap td b,.master-requests-table-wrap td small{display:block}.master-requests-table-wrap td small{margin-top:2px;color:#748699;font-size:.58rem}.master-requests-table-wrap tr.pending>td{background:#fffdf8}.master-request-status{display:inline-flex;border-radius:999px;padding:4px 7px;font-size:.58rem;font-weight:850;background:#e2e8f0;color:#475569}.master-request-status.pending{background:#ffedd5;color:#9a3412}.master-request-status.approved{background:#dcfce7;color:#166534}.master-request-status.rejected{background:#fee2e2;color:#991b1b}
@media(max-width:900px){.master-requests-kpis{grid-template-columns:1fr}.master-requests-priority-list article{grid-template-columns:1fr}.master-request-inline-actions{justify-content:flex-start}.master-requests-list-panel>header{align-items:flex-start;flex-direction:column}.master-request-attention-list article{grid-template-columns:28px minmax(0,1fr)}.master-request-attention-list article button{grid-column:2;justify-self:start}}


/* V34.9.135 — Parceiros em janelas internas organizadas */
.partner-workspace-detail-v349135{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f5f8fb;border:1px solid #d3e0e8;border-radius:11px;box-shadow:0 8px 24px rgba(16,45,70,.06)}
.partner-workspace-detail-v349135>.partner-central-dialog-head{flex:none;padding:14px 18px}
.partner-workspace-detail-v349135>.partner-central-tabs{flex:none;padding:8px 14px}
.partner-workspace-detail-v349135>.partner-central-tab-body{flex:1;min-height:0;overflow:auto;padding:14px 16px 18px}
.partner-workspace-detail-v349135 .partner-central-summary{min-height:0}
.partner-workspace-detail-v349135 .partner-central-summary-kpis{grid-template-columns:repeat(4,minmax(135px,1fr))}
.partner-workspace-detail-v349135 .partner-central-form{padding:16px!important;border-radius:10px;box-shadow:none}
.partner-workspace-detail-v349135 .partner-central-form>.grid{display:grid;grid-template-columns:minmax(320px,1.5fr) minmax(260px,1fr);gap:12px}
.partner-workspace-detail-v349135 .partner-admin-section{border:1px solid #d7e3ea;border-radius:10px;padding:16px;box-shadow:none}
.partner-workspace-detail-v349135 .partner-central-request-grid{align-items:start}
.partner-workspace-detail-v349135.is-new{background:#f4f8fb}
.partner-workspace-detail-v349135.is-new>.partner-central-dialog-head{padding:16px 20px}
.partner-workspace-detail-v349135.is-new>.partner-central-form{margin:18px!important;max-width:1040px;width:calc(100% - 36px);align-self:center;background:#fff}
.partner-workspace-detail-v349135.is-new>.partner-central-form>header{padding-bottom:12px;border-bottom:1px solid #e0e8ee}
.partner-workspace-detail-v349135.is-new .partner-form-actions{justify-content:flex-end;padding-top:4px}
.master-window-content:has(>.partner-workspace-detail-v349135){overflow:hidden;padding:14px 16px 18px}
@media(max-width:900px){.partner-workspace-detail-v349135 .partner-central-summary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-workspace-detail-v349135 .partner-central-form>.grid{grid-template-columns:1fr}}
@media(max-width:600px){.partner-workspace-detail-v349135 .partner-central-summary-kpis{grid-template-columns:1fr}.partner-workspace-detail-v349135.is-new>.partner-central-form{margin:10px!important;width:calc(100% - 20px)}}


/* V34.9.136 — refinamento visual da Gestão e remoção das barras superiores nas telas-raiz */
.module-hub-clean{padding-top:4px;}
.module-hub-clean .module-card-grid{align-content:start;grid-auto-rows:minmax(78px,max-content);}
.module-hub-clean .module-card-wrap{display:block;}
.module-hub-clean .module-card{min-height:88px;border-radius:16px;border-color:#d8e3ef;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.module-hub-clean .module-card:hover{box-shadow:0 14px 30px rgba(15,23,42,.08);}
.module-hub-clean .module-favorite-button{top:10px;right:10px;}
.f5-center-topless{padding-top:4px;}
.f5-center-topless .f5-center-group-tabs{margin-top:0;}
.f5-center-topless .f5-center-health{margin-top:0;}
.report-hub-clean .report-category-card-grid{margin-top:0;}

.f5-management-overview{gap:16px;}
.f5-management-overview .f5-overview-toolbar{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.15fr) auto;align-items:center;padding:20px 22px;border:1px solid rgba(37,99,235,.18);border-radius:22px;background:linear-gradient(135deg,#123b73 0%,#0b4f9a 58%,#1c6dd8 100%);box-shadow:0 22px 48px rgba(14,48,96,.20);}
.f5-management-overview .f5-overview-toolbar::before{content:"";position:absolute;inset:auto -70px -90px auto;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08);}
.f5-management-overview .f5-overview-toolbar::after{content:"";position:absolute;inset:-70px auto auto -40px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.06);}
.f5-management-overview .f5-overview-toolbar > div{position:relative;z-index:1;}
.f5-management-overview .f5-overview-toolbar span{color:rgba(255,255,255,.72);}
.f5-management-overview .f5-overview-toolbar h1{font-size:1.6rem;color:#fff;margin:4px 0 6px;}
.f5-management-overview .f5-overview-toolbar p{color:rgba(255,255,255,.82);font-size:.74rem;max-width:520px;}
.f5-management-overview .f5-overview-updated{color:rgba(255,255,255,.76);padding-right:4px;}
.f5-management-overview .f5-overview-toolbar > div:last-child{justify-content:flex-end;flex-wrap:wrap;gap:10px;}
.f5-management-overview .f5-overview-toolbar button{min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.12);color:#fff;backdrop-filter:blur(10px);box-shadow:none;}
.f5-management-overview .f5-overview-toolbar button:hover{background:rgba(255,255,255,.18);}
.f5-management-overview .f5-overview-toolbar button.primary{background:#fff;color:#12427e;border-color:#fff;box-shadow:0 8px 20px rgba(10,37,70,.16);}
.f5-management-overview .f5-overview-toolbar button.primary strong{background:#e5efff;color:#12427e;}
.f5-management-overview .f5-overview-toolbar kbd{background:rgba(255,255,255,.16);padding:2px 5px;border-radius:6px;color:#fff;opacity:1;}
.f5-management-overview .f5-management-tabs{padding:4px;border-radius:16px;background:#eef4fb;border:1px solid #d7e4f1;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);gap:6px;}
.f5-management-overview .f5-management-tabs button{border-radius:12px;padding:12px 14px;min-height:48px;font-weight:800;}
.f5-management-overview .f5-management-tabs button.active{box-shadow:0 12px 26px rgba(37,99,235,.18);}
.f5-management-overview .f5-overview-section{padding:17px 18px;border-radius:20px;border-color:#dbe5f0;box-shadow:0 14px 32px rgba(23,50,77,.07);}
.f5-management-overview .f5-overview-section > header{margin-bottom:14px;}
.f5-management-overview .f5-overview-kpi{border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.05);}
.f5-management-overview .f5-overview-pending-grid button,.f5-management-overview .f5-overview-all-good{border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.05);}
.f5-management-overview .f5-overview-chart{padding:14px 10px 8px;border-radius:16px;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);border:1px solid #e3ebf4;}

@media (max-width:920px){
  .f5-management-overview .f5-overview-toolbar{grid-template-columns:1fr;}
  .f5-management-overview .f5-overview-toolbar > div:last-child{justify-content:flex-start;}
}


/* V34.9.137 — padrão global dos cabeçalhos das janelas internas */
#janelas-container .janela{
  --window-accent:#2563eb;
  border-color:#cbd8e6;
}
#janelas-container .janela.focused{
  border-color:color-mix(in srgb,var(--window-accent) 48%,#b9c8d8);
  box-shadow:0 22px 56px rgba(2,12,27,.20);
}
#janelas-container .janela-header{
  position:relative;
  height:50px;
  min-height:50px;
  padding:0 10px 0 15px;
  gap:12px;
  background:linear-gradient(92deg,color-mix(in srgb,var(--window-accent) 35%,#091d34) 0%,#0b2848 42%,#10385f 100%);
  border-bottom:1px solid rgba(255,255,255,.13);
  box-shadow:inset 0 -1px rgba(0,0,0,.10);
}
#janelas-container .janela-header::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:4px;
  border-radius:0 4px 4px 0;
  background:var(--window-accent);
  box-shadow:0 0 14px color-mix(in srgb,var(--window-accent) 55%,transparent);
}
#janelas-container .janela-title{
  gap:10px;
  min-width:0;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.01em;
  color:#f7fbff;
}
#janelas-container .janela-title .icon{
  width:30px!important;
  height:30px!important;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.18);
  font-size:.78rem!important;
  box-shadow:0 6px 14px rgba(2,12,27,.28);
}
#janelas-container .janela-title>span:last-child{
  line-height:1.2;
}
#janelas-container .janela-controls{
  align-items:center;
  gap:5px;
}
#janelas-container .janela-btn{
  width:34px;
  height:32px;
  border-radius:8px;
  border:1px solid transparent;
  background:rgba(255,255,255,.06);
  color:#e6f0fa;
  font-size:.82rem;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
#janelas-container .janela-btn:hover{
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.12);
}
#janelas-container .janela-btn:active{transform:translateY(1px)}
#janelas-container .janela-btn-close:hover{
  background:#dc2626!important;
  border-color:#ef4444!important;
}

/* Barra de janelas alinhada ao novo cabeçalho */
#barra-janelas{
  height:44px;
  padding:5px 10px;
  gap:7px;
  background:linear-gradient(90deg,#071a31,#0a2543);
}
#barra-janelas .barra-item{
  position:relative;
  height:33px;
  max-width:240px;
  padding:4px 11px 4px 9px;
  gap:7px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.065);
  color:#e3edf7;
  font-weight:700;
}
#barra-janelas .barra-item::before{
  content:"";
  width:3px;
  align-self:stretch;
  margin:-1px 0;
  border-radius:3px;
  background:var(--window-accent,#64748b);
  opacity:.75;
}
#barra-janelas .barra-item.active{
  background:color-mix(in srgb,var(--window-accent,#2563eb) 22%,rgba(255,255,255,.09));
  border-color:color-mix(in srgb,var(--window-accent,#2563eb) 58%,rgba(255,255,255,.18));
  box-shadow:0 4px 14px rgba(0,0,0,.16);
}
#barra-janelas .barra-item.active::before{opacity:1}
#barra-janelas .barra-item.minimized{opacity:.60}
#barra-janelas .barra-item .icon{
  width:21px!important;
  height:21px!important;
  border-radius:6px;
}

@media(max-width:680px){
  #janelas-container .janela-header{height:48px;min-height:48px;padding-left:12px}
  #janelas-container .janela-title .icon{width:28px!important;height:28px!important}
}


/* V34.9.139 — auditoria global das pesquisas internas + Contas Financeiras */
.financial-catalog-shell{height:100%;min-height:0;background:#f5f8fb;color:#173b5c;--f5-selection-hover:#e8f2ff;--f5-selection-bg:#cfe3ff;--f5-selection-accent:#2563eb}
.financial-catalog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 18px;background:linear-gradient(135deg,#123b73,#2563eb);color:#fff;border-bottom:1px solid #1d4ed8}
.financial-catalog-header small{display:block;font-size:.61rem;font-weight:900;letter-spacing:.09em;color:#dbeafe}.financial-catalog-header h2{margin:3px 0 2px;font-size:1.14rem}.financial-catalog-header p{margin:0;max-width:820px;font-size:.71rem;color:#e6efff}.financial-catalog-header>span{white-space:nowrap;padding:7px 10px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.12);font-size:.64rem;font-weight:850}
.financial-catalog-kpis{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:9px;padding:12px 16px 4px}.financial-catalog-kpis article{padding:10px 12px;border:1px solid #d7e3ef;border-left:4px solid #2563eb;border-radius:10px;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.035)}.financial-catalog-kpis span{display:block;font-size:.61rem;font-weight:850;text-transform:uppercase;color:#667b8e}.financial-catalog-kpis b{display:block;margin-top:3px;font-size:1.05rem;color:#173b5c}.financial-catalog-kpis small{display:block;margin-top:2px;font-size:.6rem;color:#7c8d9d}
.financial-catalog-toolbar{margin-top:4px}.financial-catalog-table{margin:0 16px 12px;border:1px solid #d7e3ef;border-radius:10px;background:#fff;overflow:auto}.financial-catalog-table table{width:100%;border-collapse:collapse}.financial-catalog-table th{padding:9px 11px;background:#edf4fb;border-bottom:1px solid #d7e3ef;text-align:left;font-size:.6rem;text-transform:uppercase;color:#62788b;white-space:nowrap}.financial-catalog-table td{padding:10px 11px;border-bottom:1px solid #e6edf4;font-size:.71rem}.financial-catalog-table td b,.financial-catalog-table td small{display:block}.financial-catalog-table td small{margin-top:2px;color:#74879a;font-size:.6rem}.financial-catalog-table tr[data-financial-catalog-row]{cursor:pointer;outline:none}.financial-catalog-table tr[data-financial-catalog-row]:hover>td{background:var(--f5-selection-hover)}.financial-catalog-table tr[data-financial-catalog-row].selected>td{background:var(--f5-selection-bg)!important}.financial-catalog-table tr[data-financial-catalog-row].selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent)}
.financial-catalog-actions-row td{padding:0!important;background:#f7fbff!important}.financial-catalog-actions-row>td>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;border-left:5px solid #2563eb}.financial-catalog-actions-row span{display:grid;gap:1px}.financial-catalog-actions-row nav{display:flex;align-items:center;gap:8px}.financial-catalog-actions-row nav small{color:#64748b}.financial-catalog-footer>div{display:flex;align-items:center;gap:8px}.financial-catalog-footer>div:first-child span{display:grid;gap:1px}.financial-catalog-footer small{font-size:.61rem;color:#64748b}
@media(max-width:900px){.financial-catalog-kpis{grid-template-columns:1fr}.financial-catalog-header{flex-direction:column}.financial-catalog-toolbar{flex-wrap:wrap}.financial-catalog-toolbar>.f5-list-search-field{flex-basis:100%}}


/* ========================================================================== 
   V34.9.141 — barra superior do PDV em uma única linha
   ========================================================================== */
.pdv-window-body .pdv-toolbar.pdv-toolbar-single-row{
  display:grid!important;
  grid-template-columns:repeat(11,minmax(72px,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:1fr;
  gap:5px;
  padding:6px 8px;
  align-items:stretch;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-gutter:stable;
}
.pdv-window-body .pdv-toolbar.pdv-toolbar-single-row .pdv-action{
  min-width:0;
  width:100%;
  max-width:none;
  margin:0;
}
.pdv-window-body .pdv-toolbar.pdv-toolbar-single-row .pdv-action>span:last-child{
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pdv-window-body .pdv-toolbar.pdv-toolbar-single-row [data-action="cancelarItem"]{
  box-shadow:inset 2px 0 0 rgba(180,35,24,.18),var(--shadow-sm);
}
@media(max-height:760px){
  .pdv-window-body .pdv-toolbar.pdv-toolbar-single-row{padding:4px 6px;gap:4px}
}
@media(max-width:820px){
  .pdv-window-body .pdv-toolbar.pdv-toolbar-single-row{grid-template-columns:repeat(11,minmax(54px,1fr))!important}
}


/* V34.9.142 — fundação offline-first: conexão, terminal e fila local */
.offline-runtime-banner{
  min-height:42px;box-sizing:border-box;margin:0;padding:8px 18px;display:flex;align-items:center;gap:10px;
  background:#fff7ed;border-bottom:1px solid #fed7aa;color:#8a3f09;box-shadow:0 2px 8px rgba(124,45,18,.06);z-index:24;
}
.offline-runtime-banner[hidden]{display:none!important}
.offline-runtime-banner.offline{background:#fff1f2;border-bottom-color:#fecdd3;color:#9f1239}
.offline-runtime-banner.pending{background:#fffbeb;border-bottom-color:#fde68a;color:#92400e}
.offline-runtime-banner .offline-runtime-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.14)}
.offline-runtime-banner.offline .offline-runtime-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.13)}
.offline-runtime-banner>div{min-width:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.offline-runtime-banner b{font-size:.7rem;letter-spacing:.025em}
.offline-runtime-banner small{font-size:.66rem;line-height:1.35;color:inherit;opacity:.9}
.offline-runtime-banner strong{font-weight:850}
body[data-offline-storage="unavailable"] .connection-status{outline:1px solid rgba(245,158,11,.6)}
@media(max-width:680px){.offline-runtime-banner{padding:8px 12px}.offline-runtime-banner>div{display:block}.offline-runtime-banner small{display:block;margin-top:2px}}

.connection-status[data-offline-runtime-bound="1"]{cursor:pointer}
.offline-runtime-panel-layer{position:fixed;inset:0;z-index:10080;background:rgba(4,18,34,.52);display:grid;place-items:center;padding:18px}
.offline-runtime-panel{width:min(760px,96vw);background:#fff;border:1px solid #d8e2ec;border-radius:16px;box-shadow:0 24px 70px rgba(4,18,34,.28);overflow:hidden;color:#173750}
.offline-runtime-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e6edf3;background:#f8fbfd}
.offline-runtime-panel>header small{font-size:.62rem;font-weight:850;letter-spacing:.09em;color:#64788b}
.offline-runtime-panel>header h2{font-size:1.05rem;margin:4px 0 0}
.offline-runtime-panel>header button{width:34px;height:34px;border:1px solid #d5e0e9;border-radius:9px;background:#fff;color:#4b6173;font-size:1.2rem;cursor:pointer}
.offline-runtime-panel-grid{padding:16px 20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.offline-runtime-panel-grid article{padding:12px;border:1px solid #dde6ee;border-radius:11px;background:#fbfdff;display:flex;flex-direction:column;gap:4px}
.offline-runtime-panel-grid small{font-size:.59rem;font-weight:850;letter-spacing:.07em;color:#718395}
.offline-runtime-panel-grid b{font-size:.82rem}.offline-runtime-panel-grid b.ok{color:#087451}.offline-runtime-panel-grid b.error{color:#b42318}
.offline-runtime-panel-grid span{font-size:.66rem;color:#65798b;line-height:1.4}
.offline-runtime-panel-warning{margin:0 20px 16px;padding:12px 14px;border:1px solid #f3c98c;border-radius:10px;background:#fff7e8;display:flex;flex-direction:column;gap:4px;color:#80500d}
.offline-runtime-panel-warning b{font-size:.72rem}.offline-runtime-panel-warning span{font-size:.67rem;line-height:1.45}
.offline-runtime-panel>footer{padding:12px 20px;border-top:1px solid #e6edf3;display:flex;justify-content:flex-end}
.offline-recovery-center{width:min(1180px,97vw);max-height:94vh;display:flex;flex-direction:column}
.offline-recovery-center>header{flex:0 0 auto}.offline-recovery-center>header p{margin:5px 0 0;font-size:.7rem;color:#64788b;line-height:1.4}
.offline-recovery-center .offline-runtime-panel-grid{grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 auto}
.offline-recovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 12px;flex-wrap:wrap}
.offline-recovery-filters,.offline-recovery-tools,.offline-recovery-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.offline-recovery-filters button{border:1px solid #dbe5ed;border-radius:999px;background:#fff;color:#526a7d;padding:7px 10px;font-size:.66rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.offline-recovery-filters button b{min-width:20px;padding:2px 6px;border-radius:999px;background:#edf3f7;color:#34546c;font-size:.61rem}
.offline-recovery-filters button.active{background:#173750;color:#fff;border-color:#173750}.offline-recovery-filters button.active b{background:rgba(255,255,255,.16);color:#fff}
.offline-recovery-tools button,.offline-recovery-actions button{min-height:34px}
.offline-recovery-table-head,.offline-recovery-row{display:grid;grid-template-columns:1.05fr 1.08fr 1.28fr 1.05fr .55fr 1.7fr;gap:10px;align-items:center}
.offline-recovery-table-head{padding:8px 20px;background:#f4f8fb;border-top:1px solid #e4ebf1;border-bottom:1px solid #e4ebf1;color:#60778a;font-size:.58rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.offline-recovery-rows{margin:0 20px;border:1px solid #dfe8ef;border-radius:11px;overflow:auto;min-height:82px;max-height:250px;background:#fff}
.offline-recovery-row{width:100%;border:0;border-bottom:1px solid #edf2f6;background:#fff;text-align:left;padding:9px 10px;color:#213e54;cursor:pointer}
.offline-recovery-row:last-child{border-bottom:0}.offline-recovery-row:hover{background:#f7fafc}.offline-recovery-row.selected{background:#edf5fa;box-shadow:inset 3px 0 0 #2c688f}
.offline-recovery-row span{min-width:0;display:flex;flex-direction:column;gap:2px}.offline-recovery-row small{font-size:.53rem;color:#8293a1;font-weight:800;letter-spacing:.04em}
.offline-recovery-row b{font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.offline-recovery-row em{font-size:.61rem;font-style:normal;color:#617789;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offline-recovery-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;border-radius:999px;padding:4px 7px;font-style:normal;font-size:.59rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offline-recovery-badge.pending{background:#fff4dc;color:#87520b}.offline-recovery-badge.error{background:#fff0ee;color:#a52b20}.offline-recovery-badge.synced{background:#eaf8f1;color:#0b6d4e}
.offline-recovery-detail{margin:12px 20px 0;padding:13px 14px;border:1px solid #dce6ed;border-radius:12px;background:#fbfdff;min-height:130px}
.offline-recovery-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.offline-recovery-detail-head small,.offline-recovery-result small,.offline-recovery-detail-grid small,.offline-recovery-trail-title small{font-size:.55rem;font-weight:850;letter-spacing:.06em;color:#718597}
.offline-recovery-detail-head h3{font-size:.82rem;margin:3px 0 0;color:#183a54}
.offline-recovery-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.offline-recovery-detail-grid>div{border:1px solid #e4ebf1;border-radius:8px;background:#fff;padding:7px 9px;min-width:0}.offline-recovery-detail-grid b{display:block;margin-top:3px;font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offline-recovery-result{margin-top:9px;padding:9px 10px;border-radius:8px;background:#f1f6fa}.offline-recovery-result p{margin:4px 0;font-size:.65rem;line-height:1.42;color:#4f687b}.offline-recovery-result code{display:block;margin-top:5px;font-size:.58rem;overflow-wrap:anywhere;color:#36586f}
.offline-recovery-actions{margin-top:9px}.offline-recovery-owner-warning{font-size:.62rem;font-weight:750;color:#87520b}
.offline-recovery-trail{margin-top:10px;border-top:1px solid #e5edf3;padding-top:9px}.offline-recovery-trail-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px}.offline-recovery-trail-title b{font-size:.58rem;color:#60778a}
.offline-recovery-trail>div:not(.offline-recovery-trail-title){display:grid;grid-template-columns:132px 1fr;gap:10px;padding:5px 0;border-bottom:1px dashed #e7edf2}.offline-recovery-trail>div:last-child{border-bottom:0}.offline-recovery-trail time{font-size:.57rem;color:#7a8d9c}.offline-recovery-trail span{font-size:.61rem;color:#5a7183}.offline-recovery-trail span b{margin-right:6px;color:#264b65}.offline-recovery-trail p{font-size:.61rem;color:#758998;margin:5px 0}
.offline-recovery-empty{padding:24px;text-align:center;font-size:.67rem;color:#718597}
.offline-recovery-center .offline-runtime-panel-warning{margin-top:12px;flex:0 0 auto}.offline-recovery-center>footer{flex:0 0 auto}
@media(max-width:900px){.offline-recovery-center .offline-runtime-panel-grid{grid-template-columns:1fr 1fr}.offline-recovery-table-head{display:none}.offline-recovery-row{grid-template-columns:1fr 1fr}.offline-recovery-row span:nth-child(6){grid-column:1/-1}.offline-recovery-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.offline-runtime-panel-grid,.offline-recovery-center .offline-runtime-panel-grid{grid-template-columns:1fr}.offline-recovery-row,.offline-recovery-detail-grid{grid-template-columns:1fr}.offline-recovery-row span:nth-child(6){grid-column:auto}.offline-recovery-toolbar{align-items:stretch}.offline-recovery-tools{width:100%}.offline-recovery-center{max-height:96vh}.offline-recovery-trail>div:not(.offline-recovery-trail-title){grid-template-columns:1fr}}



/* V34.9.143 — catálogo operacional offline do PDV */
.pdv-offline-catalog-pill{
  background:#fff7ed!important;
  border-color:#fdba74!important;
  color:#9a3412!important;
}
.pdv-offline-catalog-pill b{color:#c2410c!important}
.app-offline .pdv-entry-box{box-shadow:inset 0 0 0 1px rgba(245,158,11,.18)}
.app-offline .pdv-entry-help span:first-child{color:#9a3412;font-weight:700}

/* V34.9.147 — NFC-e em contingência integrada ao PDV */
.pdv-action.warning{background:#fff3cd;border-color:#e0ad35;color:#6b4c08}
.pdv-contingency-config{display:grid;gap:14px}.pdv-contingency-config .pdv-warning{display:grid;gap:6px}.pdv-contingency-config .pdv-warning span{line-height:1.45}
.pdv-contingency-reason{display:grid;gap:7px;font-weight:700}.pdv-contingency-reason textarea{resize:vertical;min-height:100px}.pdv-contingency-reason small{font-weight:400;color:var(--muted,#667085)}
.pdv-contingency-current{display:grid;gap:5px;padding:13px;border:1px solid #e5c76c;border-radius:10px;background:#fff9e8}.pdv-contingency-current small{font-size:11px;letter-spacing:.04em}.pdv-contingency-deadline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 0;padding:8px 10px;border-radius:8px;background:#fff8df;color:#6b4c08;font-size:12px}.pdv-contingency-deadline.overdue{background:#fff0ef;color:#9f2d20}.pdv-issued-doc.contingency{border-left:4px solid #d59b18}.pdv-sale-success.contingency>div:first-child{background:#fff0c2;color:#72520a}
/* V34.9.148 — hardening multi-terminal e conflitos offline */
.offline-recovery-badge.conflict{background:#fff5e8;color:#9a4d00;border:1px solid #f3d0a2}
.offline-recovery-row:has(.offline-recovery-badge.conflict){box-shadow:inset 3px 0 0 #c86a12}
.offline-recovery-conflict-list{display:grid;gap:6px;margin-top:8px}
.offline-recovery-conflict-item{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(85px,.7fr));gap:8px;padding:8px 10px;border:1px solid #f0d7b7;border-radius:9px;background:#fffaf4;font-size:.64rem;color:#5f4935}
.offline-recovery-conflict-item b{color:#7c3f08}
@media(max-width:700px){.offline-recovery-conflict-item{grid-template-columns:1fr 1fr}.offline-recovery-conflict-item span:first-child{grid-column:1/-1}}

/* V34.9.150 — Fechamento Offline-First e piloto operacional (base preservada) */
.offline-admin-screen{height:100%;display:flex;flex-direction:column;gap:12px;padding:14px;background:#f7f9fc;overflow:hidden;color:#172033}
.offline-admin-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #dce4ee;border-radius:14px;background:#fff;box-shadow:0 7px 24px rgba(23,32,51,.06)}
.offline-admin-hero small,.offline-admin-detail small{display:block;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.08em}
.offline-admin-hero h1{margin:4px 0 5px;font-size:24px;color:#172033}.offline-admin-hero p{margin:0;color:#607086;font-size:13px}
.offline-admin-current{min-width:220px;padding:11px 14px;border-radius:11px;background:#eff8f6;border:1px solid #bfe2da;display:flex;flex-direction:column;gap:2px;text-align:right}.offline-admin-current span,.offline-admin-current small{font-size:11px;color:#527069}.offline-admin-current b{font-size:15px;color:#0f665b}
.offline-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}.offline-admin-kpis article{background:#fff;border:1px solid #dce4ee;border-radius:12px;padding:12px 14px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 10px}.offline-admin-kpis small{font-size:10px;font-weight:800;letter-spacing:.06em;color:#718096}.offline-admin-kpis b{grid-row:1/3;grid-column:2;font-size:24px;color:#0f766e}.offline-admin-kpis span{font-size:11px;color:#64748b}.offline-admin-kpis article.attention b{color:#b45309}
.offline-admin-tabs{display:flex;gap:6px;padding:4px;background:#eaf0f6;border-radius:11px;width:max-content;max-width:100%}.offline-admin-tabs button{border:0;background:transparent;border-radius:8px;padding:8px 12px;font-weight:700;color:#53657a;cursor:pointer;display:flex;align-items:center;gap:7px}.offline-admin-tabs button span{min-width:20px;padding:1px 6px;border-radius:10px;background:#d8e1ec;font-size:11px}.offline-admin-tabs button.active{background:#fff;color:#0f766e;box-shadow:0 2px 8px rgba(15,23,42,.08)}.offline-admin-tabs button.active span{background:#d8f0ea;color:#0f665b}
.offline-admin-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 190px 170px 115px auto auto;gap:8px;align-items:center}.offline-admin-toolbar input,.offline-admin-toolbar select{height:38px;border:1px solid #cad5e2;border-radius:9px;background:#fff;padding:0 10px;color:#25364a;outline:none}.offline-admin-toolbar input:focus,.offline-admin-toolbar select:focus{border-color:#4d9d90;box-shadow:0 0 0 3px rgba(15,118,110,.09)}.offline-admin-toolbar button{height:38px;white-space:nowrap}
.offline-admin-content{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;overflow:hidden}.offline-admin-content:has(.offline-admin-detail){grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr)}
.offline-admin-table{min-height:0;overflow:auto;background:#fff;border:1px solid #dce4ee;border-radius:12px}.offline-admin-table .head,.offline-admin-table .row{display:grid;align-items:center;gap:10px}.offline-admin-table.terminals .head,.offline-admin-table.terminals .row{grid-template-columns:1.35fr 1.2fr .8fr .8fr .72fr 1.05fr 1.05fr}.offline-admin-table.conflicts .head,.offline-admin-table.conflicts .row{grid-template-columns:1fr 1.25fr 1fr 1.45fr .78fr 1fr}.offline-admin-table.receipts .head,.offline-admin-table.receipts .row{grid-template-columns:1fr .9fr 1.2fr 1fr .65fr 1fr}.offline-admin-table.requests .head,.offline-admin-table.requests .row{grid-template-columns:1fr 1fr 1fr 1fr .9fr 1.45fr}.offline-admin-table .head{position:sticky;top:0;z-index:2;padding:9px 12px;background:#eef3f8;border-bottom:1px solid #dce4ee;color:#63758a;font-size:10px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.offline-admin-table .row{width:100%;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:10px 12px;text-align:left;color:#25364a;min-height:58px}.offline-admin-table button.row{cursor:pointer}.offline-admin-table button.row:hover{background:#f8fbfd}.offline-admin-table button.row.selected{background:#edf8f5;box-shadow:inset 3px 0 #0f766e}.offline-admin-table .row:last-child{border-bottom:0}.offline-admin-table .row>span{min-width:0;display:flex;flex-direction:column;gap:2px}.offline-admin-table .row b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.offline-admin-table .row small{font-size:10.5px;color:#75869a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.offline-admin-table .link-danger{margin-top:4px;border:0;background:transparent;color:#b91c1c;padding:0;text-align:left;font-size:10px;cursor:pointer}
.offline-admin-badge{display:inline-flex!important;width:max-content;max-width:100%;padding:3px 7px;border-radius:999px;font-style:normal;font-size:10px!important;font-weight:800;white-space:nowrap}.offline-admin-badge.healthy,.offline-admin-badge.completed,.offline-admin-badge.resolved,.offline-admin-badge.auto_reconciled{background:#dcfce7;color:#166534}.offline-admin-badge.attention,.offline-admin-badge.pending,.offline-admin-badge.processing{background:#fef3c7;color:#92400e}.offline-admin-badge.outdated,.offline-admin-badge.stale,.offline-admin-badge.failed,.offline-admin-badge.open{background:#fee2e2;color:#991b1b}.offline-admin-badge.unknown,.offline-admin-badge.waiting_operator,.offline-admin-badge.cancelled{background:#e2e8f0;color:#475569}
.offline-admin-detail{min-height:0;overflow:auto;background:#fff;border:1px solid #cfe0dc;border-radius:12px;padding:15px;box-shadow:0 8px 25px rgba(15,118,110,.08)}.offline-admin-detail header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px solid #e8eef2}.offline-admin-detail h3{margin:4px 0;font-size:17px}.offline-admin-detail p{margin:4px 0;color:#63758a;font-size:12px;line-height:1.45}.offline-admin-detail section{padding:12px 0;border-bottom:1px solid #edf1f5}.offline-admin-detail footer{padding-top:12px;display:flex;align-items:center;justify-content:flex-end}.offline-admin-stock-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}.offline-admin-stock-list>div{display:grid;grid-template-columns:minmax(130px,1.5fr) repeat(3,.65fr);gap:7px;padding:8px;border-radius:8px;background:#f6f8fb}.offline-admin-stock-list span{font-size:10px;color:#718096}.offline-admin-stock-list span:first-child{display:flex;flex-direction:column}.offline-admin-stock-list b{display:block;color:#25364a;font-size:11px;margin-top:2px}.offline-admin-safety{border:1px solid #c6e4dd!important;border-radius:9px;background:#f0faf7;padding:10px!important;margin-top:10px}.offline-admin-safety b{display:block;color:#0f665b;font-size:12px}.offline-admin-safety span{display:block;margin-top:4px;font-size:11px;line-height:1.45;color:#527069}.offline-admin-waiting{font-size:11px;font-weight:700;color:#92400e}
.offline-admin-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #dce4ee;border-radius:11px;background:#fff}.offline-admin-footer div{min-width:0}.offline-admin-footer b{display:block;font-size:11px}.offline-admin-footer span{font-size:10.5px;color:#718096}.offline-admin-loading,.offline-admin-error,.offline-admin-empty{padding:28px;border:1px solid #dce4ee;border-radius:12px;background:#fff;text-align:center;color:#64748b}.offline-admin-error{display:flex;flex-direction:column;gap:4px;color:#991b1b;background:#fff7f7}.offline-admin-denied{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}.offline-admin-denied>div{font-size:34px}.offline-admin-denied small{font-weight:800;color:#64748b;letter-spacing:.08em}.offline-admin-denied h1{margin:0}.offline-admin-denied p{margin:0;color:#64748b}

.offline-admin-content.pilot{display:block;overflow:auto;padding-right:2px}
.offline-admin-pilot-toolbar{grid-template-columns:minmax(300px,1fr) 115px auto auto auto}.offline-admin-pilot-toolbar>div{display:flex;flex-direction:column;min-width:0}.offline-admin-pilot-toolbar>div b{font-size:12px;color:#25364a}.offline-admin-pilot-toolbar>div span{font-size:10.5px;color:#718096}.offline-admin-pilot-toolbar .danger{color:#9f1239;border-color:#fecdd3;background:#fff7f8}
.offline-pilot-screen{display:flex;flex-direction:column;gap:12px;padding-bottom:4px}.offline-pilot-readiness{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;padding:18px;border:1px solid #d7e1eb;border-radius:14px;background:#fff}.offline-pilot-readiness.ready{border-color:#b9dfd3;background:#f4fbf8}.offline-pilot-readiness.attention{border-color:#f3d8a8;background:#fffbf2}.offline-pilot-readiness.blocked{border-color:#f0c6c6;background:#fff7f7}.offline-pilot-score{width:108px;height:108px;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:2px;background:#eef4f8;border:8px solid #d8e4ec}.offline-pilot-readiness.ready .offline-pilot-score{background:#e9f8f3;border-color:#b8e1d5}.offline-pilot-readiness.attention .offline-pilot-score{background:#fff7e2;border-color:#f4d69b}.offline-pilot-readiness.blocked .offline-pilot-score{background:#fff0f0;border-color:#efc3c3}.offline-pilot-score strong{font-size:30px;line-height:1;color:#0f665b}.offline-pilot-readiness.attention .offline-pilot-score strong{color:#a16207}.offline-pilot-readiness.blocked .offline-pilot-score strong{color:#b42318}.offline-pilot-score span{font-size:11px;color:#718096}.offline-pilot-readiness small,.offline-pilot-auto small,.offline-pilot-matrix small,.offline-pilot-guides small,.offline-pilot-rollback small{font-size:10px;font-weight:800;letter-spacing:.075em;color:#718096}.offline-pilot-readiness h2{margin:3px 0 5px;font-size:22px;color:#172033}.offline-pilot-readiness p{margin:0;color:#607086;font-size:12px}.offline-pilot-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:9px}.offline-pilot-meta span{font-size:10.5px;color:#64748b}.offline-pilot-meta b{color:#25364a}
.offline-pilot-auto,.offline-pilot-matrix,.offline-pilot-guides article,.offline-pilot-rollback{background:#fff;border:1px solid #dce4ee;border-radius:13px}.offline-pilot-auto{padding:14px}.offline-pilot-auto>header,.offline-pilot-matrix>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}.offline-pilot-auto h3,.offline-pilot-matrix h3,.offline-pilot-guides h3,.offline-pilot-rollback h3{margin:3px 0 0;font-size:15px;color:#25364a}.offline-pilot-auto>header>span{font-size:10.5px;color:#64748b}.offline-pilot-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.offline-pilot-check-grid article{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:start;padding:9px;border-radius:9px;background:#f7f9fc;border:1px solid #e5ebf1}.offline-pilot-check-grid article i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-style:normal;font-weight:900;font-size:12px;background:#e2e8f0;color:#475569}.offline-pilot-check-grid article.ok i{background:#dcfce7;color:#166534}.offline-pilot-check-grid article.warn i{background:#fef3c7;color:#92400e}.offline-pilot-check-grid article.block i{background:#fee2e2;color:#991b1b}.offline-pilot-check-grid article b{display:block;font-size:11.5px;color:#25364a}.offline-pilot-check-grid article span{display:block;margin-top:2px;font-size:10.5px;line-height:1.35;color:#718096}
.offline-pilot-matrix{padding:14px}.offline-pilot-matrix>header p{margin:4px 0 0;font-size:11px;color:#718096}.offline-pilot-progress{min-width:84px;text-align:right}.offline-pilot-progress b{display:block;font-size:22px;color:#0f766e}.offline-pilot-progress span{font-size:10px;color:#718096}.offline-pilot-group{border-top:1px solid #edf1f5;padding-top:10px;margin-top:10px}.offline-pilot-group h4{margin:0 0 6px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#52667b}.offline-pilot-scenario{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:12px;align-items:center;padding:9px 10px;border-radius:9px;border:1px solid transparent}.offline-pilot-scenario:nth-child(even){background:#fafbfd}.offline-pilot-scenario.passed{background:#f3fbf7;border-color:#d5eee4}.offline-pilot-scenario.failed{background:#fff6f6;border-color:#f3d0d0}.offline-pilot-scenario b{display:block;font-size:11.5px;color:#25364a}.offline-pilot-scenario small{display:block;margin-top:2px;font-size:10.5px;font-weight:400;letter-spacing:0;color:#718096}.offline-pilot-scenario p{margin:3px 0 0;font-size:10.5px;line-height:1.4;color:#52667b}.offline-pilot-scenario select{height:34px;border:1px solid #cad5e2;border-radius:8px;background:#fff;padding:0 8px;color:#25364a}.offline-pilot-scenario.passed select{border-color:#86cdb8}.offline-pilot-scenario.failed select{border-color:#e2a7a7;color:#991b1b}
.offline-pilot-guides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.offline-pilot-guides article{padding:13px}.offline-pilot-guides p{margin:7px 0 0;font-size:10.5px;line-height:1.45;color:#607086}.offline-pilot-rollback{padding:13px 15px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-color:#f0d7aa;background:#fffaf0}.offline-pilot-rollback p{margin:4px 0 0;font-size:11px;line-height:1.45;color:#725b36}.offline-pilot-rollback>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:10px;font-weight:800}

@media(max-width:1200px){.offline-admin-kpis{grid-template-columns:repeat(2,1fr)}.offline-admin-toolbar{grid-template-columns:minmax(220px,1fr) 170px 145px 110px auto}.offline-admin-toolbar [data-oa-export]{grid-column:5}.offline-admin-content:has(.offline-admin-detail){grid-template-columns:1fr}.offline-admin-detail{max-height:42vh}.offline-admin-table{overflow:auto}.offline-admin-table .head,.offline-admin-table .row{min-width:930px}}

@media(max-width:1200px){.offline-admin-pilot-toolbar{grid-template-columns:minmax(260px,1fr) 110px auto auto}.offline-admin-pilot-toolbar [data-oa-pilot-reset]{grid-column:4}.offline-pilot-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.offline-pilot-guides{grid-template-columns:1fr}.offline-pilot-scenario{grid-template-columns:minmax(0,1fr) 135px}}
@media(max-width:760px){.offline-pilot-readiness{grid-template-columns:1fr}.offline-pilot-score{width:86px;height:86px}.offline-pilot-check-grid{grid-template-columns:1fr}.offline-pilot-scenario{grid-template-columns:1fr}.offline-pilot-rollback{align-items:flex-start;flex-direction:column}.offline-admin-pilot-toolbar{display:flex;flex-wrap:wrap}.offline-admin-pilot-toolbar>div{width:100%}}

/* V34.9.151 — Piloto Operacional Assistido e Correções de Campo */
.offline-admin-pilot-toolbar{grid-template-columns:minmax(300px,1fr) 170px 115px auto auto auto}
.offline-pilot-release-gate{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid #d7e1eb;border-radius:14px;background:#fff}.offline-pilot-release-gate small,.offline-pilot-field-issues small{font-size:10px;font-weight:800;letter-spacing:.075em;color:#718096}.offline-pilot-release-gate h2{margin:3px 0 5px;font-size:20px;color:#172033}.offline-pilot-release-gate p{margin:0;color:#607086;font-size:11.5px;line-height:1.45}.offline-pilot-release-gate.blocked{border-color:#f0c6c6;background:#fff7f7}.offline-pilot-release-gate.attention{border-color:#f3d8a8;background:#fffbf2}.offline-pilot-release-gate.retest{border-color:#efc2c2;background:#fff8f8}.offline-pilot-release-gate.eligible{border-color:#a8daca;background:#f1fbf7}.offline-pilot-release-gate.approved{border-color:#7cc6ad;background:#eaf8f2;box-shadow:0 0 0 3px rgba(15,118,110,.05)}
.offline-pilot-gate-action{flex:0 0 210px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}.offline-pilot-gate-action>b{font-size:20px;color:#0f766e}.offline-pilot-gate-action>small{font-size:10px;font-weight:500;letter-spacing:0;color:#64748b}.offline-pilot-gate-action .link-danger{border:0;background:transparent;color:#9f1239;font-size:10px;padding:2px 0;cursor:pointer}
.offline-pilot-scenario{grid-template-columns:minmax(0,1fr) 175px}.offline-pilot-scenario-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch}.offline-pilot-scenario-actions select{width:100%}.offline-pilot-scenario-actions button{min-height:32px;font-size:10.5px}.offline-pilot-evidence{margin-top:7px;padding:7px 8px;border-radius:7px;background:rgba(255,255,255,.75);border:1px solid #e5ebf1;display:grid;gap:2px}.offline-pilot-evidence span,.offline-pilot-evidence small{font-size:9.8px!important;line-height:1.35;color:#607086!important}.offline-pilot-evidence.empty{color:#8a98a8;font-size:10px}
.offline-pilot-field-issues{padding:14px;background:#fff;border:1px solid #dce4ee;border-radius:13px}.offline-pilot-field-issues>header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.offline-pilot-field-issues h3{margin:3px 0 0;font-size:15px;color:#25364a}.offline-pilot-field-issues header p{margin:4px 0 0;font-size:10.5px;line-height:1.4;color:#718096}.offline-pilot-field-issues header>span{font-size:10.5px;color:#64748b;white-space:nowrap}.offline-pilot-issue-list{display:grid;gap:7px;margin-top:10px}.offline-pilot-issue-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px;border:1px solid #f0caca;border-radius:9px;background:#fff7f7}.offline-pilot-issue-list article>div{min-width:0}.offline-pilot-issue-list b{display:block;font-size:11.5px;color:#7f1d1d}.offline-pilot-issue-list small{display:block;margin-top:2px;font-weight:400;letter-spacing:0;color:#7c6670;white-space:normal}.offline-pilot-issue-list span{display:block;margin-top:4px;font-size:9.8px;color:#8a6670}.offline-pilot-no-issues{margin-top:10px;padding:10px;border-radius:9px;background:#f0faf6;border:1px solid #c7e7db;color:#0f665b;font-size:11px;font-weight:700}.offline-pilot-resolved{margin-top:10px;border-top:1px solid #edf1f5;padding-top:9px}.offline-pilot-resolved summary{cursor:pointer;font-size:10.5px;font-weight:700;color:#52667b}.offline-pilot-resolved>div{display:grid;grid-template-columns:1.2fr 2fr auto;gap:10px;padding:7px 4px;border-bottom:1px solid #f1f4f7}.offline-pilot-resolved b,.offline-pilot-resolved span,.offline-pilot-resolved small{font-size:10px;color:#64748b;letter-spacing:0}.offline-pilot-resolved b{color:#25364a}
@media(max-width:1200px){.offline-admin-pilot-toolbar{grid-template-columns:minmax(260px,1fr) 155px 105px auto auto}.offline-admin-pilot-toolbar [data-oa-pilot-new-session]{grid-column:5}.offline-pilot-scenario{grid-template-columns:minmax(0,1fr) 165px}}
@media(max-width:760px){.offline-pilot-release-gate{align-items:flex-start;flex-direction:column}.offline-pilot-gate-action{flex:auto;width:100%;align-items:flex-start;text-align:left}.offline-pilot-issue-list article{grid-template-columns:1fr}.offline-pilot-resolved>div{grid-template-columns:1fr}.offline-pilot-scenario{grid-template-columns:1fr}}

/* V34.9.153 — padrão global de pesquisas e listas selecionáveis */
.f5-picker-key-help{display:block;color:#64748b;font-size:.66rem;line-height:1.4;padding:0 2px}.f5-picker-key-help kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:21px;margin-right:2px;padding:0 5px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#334155;font-size:.61rem;box-shadow:0 1px 1px rgba(15,23,42,.04)}
.f5-picker-item.active,.f5-picker-item[aria-selected="true"],.f5-quick-lookup-results button.active,.f5-quick-lookup-results button[aria-selected="true"],.ibge-combobox-option.active,.ibge-combobox-option[aria-selected="true"],.pdv-product-list button.active,.pdv-product-list button[aria-selected="true"]{border-color:#2563eb!important;background:#edf4ff!important;box-shadow:inset 3px 0 #2563eb}
.f5-picker-item:focus-visible,.f5-quick-lookup-results button:focus-visible,.ibge-combobox-option:focus-visible,.pdv-product-list button:focus-visible{outline:2px solid #2563eb;outline-offset:1px}

/* V34.9.172 — estoque do PDV mais limpo e fundação Offline Global */
.pdv-product-preview-metrics>div:last-child b{line-height:1.35;}

/* V34.9.173 — filtros compactos e cabeçalhos sem redundância */
.f5-compact-filter-bar{display:flex;align-items:flex-end;gap:10px;padding:9px 14px;border-bottom:1px solid #dbe5ee;background:#f7f9fc;flex-wrap:wrap}
.f5-compact-filter-bar>label{display:grid;gap:4px;min-width:190px;color:#52677a;font-size:.62rem;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.f5-compact-filter-bar select{height:36px;min-width:190px;padding:0 34px 0 11px;border:1px solid #cad8e4;border-radius:9px;background:#fff;color:#173b5b;font-weight:750;text-transform:none;letter-spacing:0;cursor:pointer}
.f5-compact-filter-bar select:focus{outline:2px solid #2563eb;outline-offset:1px;border-color:#2563eb}
.f5-compact-filter-bar .f5-list-filter-summary{margin-left:auto;align-self:center}
.dfe-toolbar .dfe-toolbar-sync{margin-left:auto;min-height:38px;white-space:nowrap;order:4}
@media(max-width:850px){.f5-compact-filter-bar>label,.f5-compact-filter-bar select{min-width:150px}.f5-compact-filter-bar .f5-list-filter-summary{width:100%;margin-left:0}.dfe-toolbar .dfe-toolbar-sync{margin-left:0}}

/* V34.9.175 — Manifestação: pesquisa e consulta na primeira faixa; etapas agrupadas abaixo */
.dfe-toolbar{grid-template-columns:minmax(360px,1fr) max-content max-content;grid-template-rows:auto auto;align-items:center;column-gap:12px;row-gap:8px}
.dfe-toolbar .dfe-search{grid-column:1;grid-row:1;width:100%;max-width:680px;justify-self:start}
.dfe-toolbar .dfe-toolbar-sync{grid-column:2;grid-row:1;margin-left:0;order:initial;align-self:center}
.dfe-toolbar .dfe-sync-state{grid-column:3;grid-row:1;align-self:center;white-space:nowrap}
.dfe-toolbar .dfe-tabs{grid-column:1;grid-row:2;justify-self:start;align-self:start}
@media(max-width:1050px){.dfe-toolbar{grid-template-columns:minmax(300px,1fr) max-content}.dfe-toolbar .dfe-search{grid-column:1}.dfe-toolbar .dfe-toolbar-sync{grid-column:2}.dfe-toolbar .dfe-tabs{grid-column:1/-1;grid-row:2}.dfe-toolbar .dfe-sync-state{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,max-content);text-align:left}}
@media(max-width:700px){.dfe-toolbar{grid-template-columns:1fr}.dfe-toolbar .dfe-search,.dfe-toolbar .dfe-toolbar-sync,.dfe-toolbar .dfe-tabs,.dfe-toolbar .dfe-sync-state{grid-column:1}.dfe-toolbar .dfe-search{grid-row:1}.dfe-toolbar .dfe-toolbar-sync{grid-row:2;justify-self:start}.dfe-toolbar .dfe-tabs{grid-row:3}.dfe-toolbar .dfe-sync-state{grid-row:4;grid-template-columns:1fr;white-space:normal}}

/* V34.9.176 — listas usam o título da própria janela; formulários e detalhes mantêm seus cabeçalhos. */
.measurement-unit-shell>.measurement-unit-header,
.promotion-shell>.promotion-header,
.po-shell:has(.po-list-wrap)>.purchase-screen-header{display:none}
.f5-context-notice{display:flex;align-items:center;gap:12px;padding:9px 16px;background:#eef6ff;border-bottom:1px solid #bed8f3;color:#123f6d}
.f5-context-notice b{white-space:nowrap}
.f5-context-notice span{font-size:12px;color:#456884}

/* V34.9.177 — seleção integral das unidades, igual às demais listas operacionais. */
.measurement-unit-grid tbody tr[data-unit-row]{cursor:pointer;transition:background-color .14s ease,box-shadow .14s ease}
.measurement-unit-grid tbody tr[data-unit-row]:hover{background:#f1f7ff}
.measurement-unit-grid tbody tr[data-unit-row].selected{background:#e7f1ff;box-shadow:inset 4px 0 #1769aa}
.measurement-unit-grid tbody tr[data-unit-row]:focus-visible{outline:2px solid #1769aa;outline-offset:-2px}

/* V34.9.178 — o rodapé de Saídas ocupa somente a altura dos seus controles. */
.sales-movement-shell{grid-template-rows:minmax(0,1fr) max-content!important}
.sales-movement-shell>.sales-movement-footer{align-self:end;flex:0 0 auto!important;width:100%;height:auto!important;min-height:54px!important;box-sizing:border-box}

/* V34.9.187 — tabela de Saídas ocupa o espaço útil até o rodapé compacto. */
.sales-movement-shell>.sales-movement-content{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important}
.sales-movement-shell .sales-mov-table-wrap{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:auto}

/* V34.9.192 — resposta visual estável em todo o sistema. */
:where(button,[role="button"],.tile,.module-card,.dashboard-kpi,.dashboard-shortcuts button,.fiscal-tile,.product-detailed-row,.segment-card,.management-card):hover{
  transform:none!important;
  translate:none!important;
}

/* A passagem do ponteiro nunca deve disputar animações com seleção ou estados operacionais. */
:where(tbody tr,[data-row],[data-entry-row],[data-financial-row],[data-person-row],[data-unit-row],[data-composition-row]){
  transition:none!important;
}

/* Hover neutro somente para linhas sem seleção persistente. */
tbody tr:not(.selected):not(.is-selected):not(.active):not([aria-selected="true"]):hover>td{
  background:#f5f9fd;
}

/* A seleção por clique sempre prevalece sobre qualquer regra genérica de hover. */
tbody tr.selected:hover>td,
tbody tr.is-selected:hover>td,
tbody tr.active[aria-selected="true"]:hover>td,
tbody tr[aria-selected="true"]:hover>td{
  background:var(--f5-selection-bg,#dcecff)!important;
}

/* Estados de negócio conservam sua identidade enquanto o ponteiro passa pela linha. */
tbody tr.is-overdue:not(.selected):hover>td{background:#fff9f2!important}
tbody tr.pending:not(.selected):hover>td,
tbody tr.is-pending:not(.selected):hover>td{background:#fffbeb!important}
tbody tr.cancelled:not(.selected):hover>td,
tbody tr.canceled:not(.selected):hover>td,
tbody tr.is-cancelled:not(.selected):hover>td{background:#f8fafc!important}

/* V34.9.193 — seleção integral das Movimentações Financeiras. */
.financial-movements-shell tr[data-mf-row]{cursor:pointer;outline:none}
.financial-movements-shell tr[data-mf-row]:focus-visible>td{outline:2px solid var(--f5-selection-accent,#2563eb);outline-offset:-2px}
.financial-movements-shell tr[data-mf-row].selected>td,
.financial-movements-shell tr[data-mf-row].selected:hover>td{background:var(--f5-selection-bg,#dcecff)!important}
.financial-movements-shell tr[data-mf-row].selected>td:first-child{box-shadow:inset 5px 0 var(--f5-selection-accent,#2563eb)}


/* V34.9.201 — Central de Saneamento Fiscal READ-ONLY */
.fiscal-sanitation-shell{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px;padding:18px;overflow:hidden;background:#f8fafc;color:#172033}
.fiscal-sanitation-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #ddd6fe;border-radius:16px;background:linear-gradient(135deg,#faf5ff,#f8fafc)}
.fiscal-sanitation-hero small,.fiscal-sanitation-lock small{font-weight:800;letter-spacing:.08em;color:#7c3aed}.fiscal-sanitation-hero h1{margin:4px 0 6px;font-size:24px}.fiscal-sanitation-hero p{margin:0;max-width:780px;color:#52606d}
.fiscal-sanitation-hero-badges,.fiscal-sanitation-lock-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.fiscal-sanitation-hero-badges span,.fiscal-sanitation-lock-tags span,.fiscal-sanitation-readonly-badge{padding:6px 9px;border-radius:999px;background:#ede9fe;color:#6d28d9;font-size:11px;font-weight:800;white-space:nowrap}
.fiscal-sanitation-tabs{display:flex;gap:6px;border-bottom:1px solid #e2e8f0}.fiscal-sanitation-tabs button{border:0;background:transparent;padding:10px 14px;font-weight:750;color:#64748b;border-bottom:3px solid transparent}.fiscal-sanitation-tabs button.active{color:#7c3aed;border-bottom-color:#7c3aed}
.fiscal-sanitation-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.fiscal-sanitation-kpis article{min-width:0;padding:14px 16px;border:1px solid #e2e8f0;border-radius:14px;background:white}.fiscal-sanitation-kpis span,.fiscal-sanitation-kpis small{display:block;color:#64748b}.fiscal-sanitation-kpis b{display:block;margin:4px 0;font-size:24px;color:#334155}
.fiscal-sanitation-workspace{min-height:0;flex:1;display:flex;flex-direction:column;gap:10px}.fiscal-sanitation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.fiscal-sanitation-search{height:40px;min-width:320px;max-width:620px;flex:1;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #cbd5e1;border-radius:10px;background:white}.fiscal-sanitation-search input{border:0;outline:0;min-width:0;flex:1;background:transparent}.fiscal-sanitation-search button{border:0;background:transparent;font-size:20px;color:#64748b}
.fiscal-sanitation-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.fiscal-sanitation-chip{display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #ddd6fe;background:white;color:#5b4b7f;border-radius:999px;padding:6px 10px;font-size:12px}.fiscal-sanitation-chip b{min-width:18px;text-align:center;padding:1px 5px;border-radius:999px;background:#f1f5f9}.fiscal-sanitation-chip.active{background:#7c3aed;color:white;border-color:#7c3aed}.fiscal-sanitation-chip.active b{background:rgba(255,255,255,.18)}
.fiscal-sanitation-grid{min-height:0;flex:1;display:grid;grid-template-columns:minmax(440px,1fr) minmax(520px,1.15fr);gap:12px;overflow:hidden}.fiscal-sanitation-table-wrap,.fiscal-sanitation-comparison-wrap{min-width:0;overflow:auto;border:1px solid #e2e8f0;border-radius:12px;background:white}
.fiscal-sanitation-table,.fiscal-sanitation-comparison{width:100%;border-collapse:collapse;table-layout:fixed}.fiscal-sanitation-table th,.fiscal-sanitation-table td,.fiscal-sanitation-comparison th,.fiscal-sanitation-comparison td{padding:9px 10px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.fiscal-sanitation-table th,.fiscal-sanitation-comparison th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#475569;font-size:11px;text-transform:uppercase;letter-spacing:.03em}.fiscal-sanitation-table tbody tr{cursor:pointer;outline:none}.fiscal-sanitation-table tbody tr:hover td{background:#faf5ff}.fiscal-sanitation-table tbody tr.selected td{background:#ede9fe!important;border-bottom-color:#c4b5fd}.fiscal-sanitation-table tbody tr:focus-visible{outline:2px solid #7c3aed;outline-offset:-2px}
.fiscal-sanitation-product{display:block;font-weight:700;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fiscal-sanitation-product+small{display:block;color:#94a3b8;margin-top:2px}.fiscal-sanitation-status,.fiscal-sanitation-evidence{display:inline-block;max-width:100%;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fiscal-sanitation-status.ok,.fiscal-sanitation-evidence.confirmed{background:#dcfce7;color:#166534}.fiscal-sanitation-status.warning,.fiscal-sanitation-evidence.review{background:#fef3c7;color:#92400e}.fiscal-sanitation-status.danger,.fiscal-sanitation-evidence.conflict{background:#fee2e2;color:#991b1b}.fiscal-sanitation-status.info,.fiscal-sanitation-evidence.strong{background:#dbeafe;color:#1d4ed8}.fiscal-sanitation-status.neutral,.fiscal-sanitation-evidence.unknown{background:#e2e8f0;color:#475569}
.fiscal-sanitation-detail{min-width:0;display:flex;flex-direction:column;gap:10px;overflow:hidden;padding:14px;border:1px solid #ddd6fe;border-radius:14px;background:white}.fiscal-sanitation-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.fiscal-sanitation-detail h2{margin:2px 0 0;font-size:18px}.fiscal-sanitation-detail header small{color:#7c3aed;font-weight:800}.fiscal-sanitation-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.fiscal-sanitation-meta span{min-width:0;padding:8px;border-radius:9px;background:#f8fafc;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fiscal-sanitation-meta b{display:block;font-size:10px;text-transform:uppercase;color:#94a3b8}
.fiscal-sanitation-comparison-wrap{min-height:0;flex:1}.fiscal-sanitation-comparison{font-size:12px}.fiscal-sanitation-actions{border-top:1px solid #e2e8f0;padding-top:10px}.fiscal-sanitation-actions small{display:block;margin-bottom:7px;color:#94a3b8;font-weight:800}.fiscal-sanitation-actions>div{display:flex;flex-wrap:wrap;gap:6px}.fiscal-sanitation-actions button:disabled{opacity:.55;cursor:not-allowed;border:1px solid #cbd5e1;background:#f8fafc;color:#64748b;border-radius:8px;padding:7px 9px}
.fiscal-sanitation-history{min-height:0;overflow:auto;display:grid;gap:8px}.fiscal-sanitation-history article{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:white}.fiscal-sanitation-history time{color:#64748b}.fiscal-sanitation-history div b,.fiscal-sanitation-history div span{display:block}.fiscal-sanitation-history div span{margin-top:2px;color:#64748b}.fiscal-sanitation-history em{font-style:normal;font-size:11px;font-weight:800;color:#7c3aed}
.fiscal-sanitation-lock,.fiscal-sanitation-loading{height:100%;display:flex;align-items:center;justify-content:center;gap:18px;padding:40px;text-align:left;background:#f8fafc}.fiscal-sanitation-lock>div{max-width:720px}.fiscal-sanitation-lock h2{margin:5px 0 8px}.fiscal-sanitation-lock p{color:#64748b}.fiscal-sanitation-lock-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:#ede9fe;color:#7c3aed;font-size:28px}.fiscal-sanitation-loading{flex-direction:column;text-align:center}.fiscal-sanitation-loading span{width:30px;height:30px;border:3px solid #ddd6fe;border-top-color:#7c3aed;border-radius:50%;animation:fiscalSanitationSpin .8s linear infinite}.fiscal-sanitation-loading small{color:#64748b}@keyframes fiscalSanitationSpin{to{transform:rotate(360deg)}}
.fiscal-sanitation-empty{text-align:center!important;color:#94a3b8;padding:28px!important}
@media(max-width:1180px){.fiscal-sanitation-grid{grid-template-columns:1fr}.fiscal-sanitation-detail{min-height:360px}.fiscal-sanitation-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.fiscal-sanitation-shell{padding:10px}.fiscal-sanitation-hero{flex-direction:column}.fiscal-sanitation-hero-badges{justify-content:flex-start}.fiscal-sanitation-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-sanitation-toolbar{align-items:stretch;flex-direction:column}.fiscal-sanitation-search{min-width:0;max-width:none;width:100%}.fiscal-sanitation-table-wrap{overflow-x:auto}.fiscal-sanitation-table{min-width:760px}.fiscal-sanitation-history article{grid-template-columns:1fr}.fiscal-sanitation-meta{grid-template-columns:1fr 1fr}}


/* Auditoria visual — Configurações no padrão profissional de janelas */
.settings-shell{--settings-accent:#526d82}
.settings-scroll{padding:12px 14px;background:linear-gradient(180deg,#f7f9fc 0,#f2f6fa 100%);display:grid;grid-template-rows:max-content minmax(0,1fr);gap:10px}
.settings-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:7px;border:1px solid #d5e1eb;border-radius:11px;background:#f3f7fa}
.settings-tabs button{min-width:0;min-height:38px;border:1px solid #c9d7e2;border-radius:8px;background:#fff;color:#526b80;padding:7px 9px;font-size:.7rem;font-weight:850;cursor:pointer}
.settings-tabs button:hover{border-color:#9fb5c8;background:#f8fbfd}
.settings-tabs button.active{border-color:var(--settings-accent);background:#173b5d;color:#fff;box-shadow:none}
.settings-content{min-width:0;min-height:0}
.settings-content #config-conteudo{display:grid;gap:10px}
.settings-content .panel{border:1px solid #d7e1ea;border-radius:11px!important;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.04)}
.settings-content [data-secao-header]{background:#334e68!important;padding:10px 13px!important;font-size:.76rem!important}
.settings-content .field label{color:#405a70;font-size:.7rem;font-weight:800}
.settings-content input:not([type="checkbox"]),.settings-content select,.settings-content textarea{width:100%;box-sizing:border-box;border:1px solid #bdccda;border-radius:8px;background:#fff;padding:9px 10px;color:#17324d}
.settings-content input:focus,.settings-content select:focus,.settings-content textarea:focus{outline:2px solid rgba(82,109,130,.16);border-color:#7893aa}
.settings-footer>span{color:#60758a;font-size:.72rem;font-weight:750}
.settings-sequence-modal{width:min(580px,96vw)}
.settings-sequence-body .field{display:grid;gap:6px}
.settings-sequence-body .field label{color:#405a70;font-size:.72rem;font-weight:850}
.settings-sequence-body input{width:100%;box-sizing:border-box;border:1px solid #bdccda;border-radius:8px;background:#fff;padding:10px;color:#17324d}
.settings-sequence-body input:disabled{background:#eef2f6;color:#64748b}
.settings-sequence-note{padding:10px 12px;border:1px solid #d6e0e9;border-radius:9px;background:#f7fafc;color:#60758a;font-size:.78rem;line-height:1.45}
@media(max-width:1050px){.settings-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.settings-scroll{padding:9px}.settings-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-footer{align-items:flex-start;flex-direction:column}.settings-footer>div{width:100%}.settings-footer button{width:100%}}


/* Auditoria visual — Perfis e Permissões no padrão profissional */
.profile-list-scroll{padding:12px 14px;background:linear-gradient(180deg,#f7f9fc 0,#f2f6fa 100%);display:flex;flex-direction:column;gap:10px}
.profile-list-scroll>.profile-security-boundary{margin:0}
.profile-list-toolbar{flex:0 0 auto}
.profile-list-toolbar .f5-list-search-field{flex:1;min-width:240px}
.profile-active-filter{min-height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #cbd8e3;border-radius:9px;background:#fff;color:#526b80;font-size:.72rem;font-weight:800;white-space:nowrap}
.profile-active-filter input{accent-color:#2563eb}
.profile-list-card{flex:1;min-height:0;border:1px solid #d8e2ec;border-radius:11px;background:#fff;overflow:auto;box-shadow:0 5px 16px rgba(15,23,42,.04)}
.profile-list-card .table-wrap{overflow:auto}
.profile-list-card table{width:100%;border-collapse:collapse;font-size:.75rem}
.profile-list-card th{position:sticky;top:0;z-index:2;background:#edf3f8;color:#526c82;text-align:left;padding:9px 10px;white-space:nowrap}
.profile-list-card td{padding:9px 10px;border-top:1px solid #e3e9ef;vertical-align:middle}
.profile-list-card tbody tr:hover{background:#f8fbff}
.profile-list-card td small{color:#718296}
.profile-list-actions{display:flex;justify-content:flex-end;gap:6px;white-space:nowrap}
.profile-list-empty{margin:18px}
.profile-list-footer>span{color:#60758a;font-size:.72rem;font-weight:750}

.profile-editor-scroll{padding:12px 14px;background:linear-gradient(180deg,#f7f9fc 0,#f2f6fa 100%);display:grid;grid-template-rows:max-content minmax(0,1fr);gap:10px}
.profile-editor-context{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 13px;border:1px solid #d7e1ea;border-left:4px solid #2563eb;border-radius:10px;background:#fff}
.profile-editor-context>div{display:grid;gap:2px}
.profile-editor-context small{color:#60758a;font-size:.58rem;font-weight:900;letter-spacing:.08em}
.profile-editor-context b{color:#17324d;font-size:.9rem}
.profile-editor-context span{color:#718296;font-size:.68rem}
.profile-editor-context em{padding:5px 8px;border-radius:999px;background:#eef3f8;color:#60758a;font-size:.62rem;font-weight:850;font-style:normal;white-space:nowrap}
.profile-editor-workspace{min-height:0;display:grid;grid-template-columns:190px minmax(0,1fr);gap:10px;align-items:start}
.profile-editor-tabs{display:grid;gap:6px;padding:7px;border:1px solid #d5e1eb;border-radius:11px;background:#f3f7fa}
.profile-editor-tabs button{display:grid;gap:3px;text-align:left;padding:10px 11px;border:1px solid #c9d7e2;border-radius:8px;background:#fff;color:#526b80;cursor:pointer}
.profile-editor-tabs button b{font-size:.73rem}
.profile-editor-tabs button small{font-size:.61rem;color:#718296}
.profile-editor-tabs button.active{border-color:#2563eb;background:#173b5d;color:#fff}
.profile-editor-tabs button.active small{color:#dbeafe}
.profile-editor-panel{min-width:0;border:1px solid #d8e2ec;border-radius:11px;background:#fff;padding:12px;box-shadow:0 5px 16px rgba(15,23,42,.04)}
.profile-editor-panel>.field{margin-bottom:0}
.profile-editor-panel>label{color:#405a70;font-size:.74rem;font-weight:800}
.profile-editor-panel input[type="text"],.profile-editor-panel input[type="search"]{width:100%;box-sizing:border-box;border:1px solid #bdccda;border-radius:8px;background:#fff;padding:9px 10px;color:#17324d}
.profile-editor-footer>span{color:#60758a;font-size:.72rem;font-weight:750}
@media(max-width:760px){
  .profile-list-toolbar{align-items:stretch;flex-direction:column}
  .profile-list-toolbar .f5-list-search-field{min-width:0;width:100%}
  .profile-editor-workspace{grid-template-columns:1fr}
  .profile-editor-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-editor-context{align-items:flex-start;flex-direction:column}
  .profile-editor-footer{align-items:flex-start;flex-direction:column}
  .profile-editor-footer>div{width:100%}
}


/* Auditoria visual — Manutenção independente da antiga moldura Servidor */
.maintenance-window-scroll{padding:12px 14px;background:linear-gradient(180deg,#f7f9fc 0,#f2f6fa 100%)}
.maintenance-window-scroll>.maintenance-safe{padding:0}
.maintenance-window-scroll .maintenance-hero{border-radius:11px;box-shadow:none}
@media(max-width:620px){
  .maintenance-window-scroll{padding:9px}
  .maintenance-actions{display:grid;grid-template-columns:1fr}
  .maintenance-actions button{width:100%}
}


/* V34.9.206 — Usuários alinhado à referência Pessoas/Produtos */
.company-users-screen.f5-window-layout,.company-user-form-screen.f5-window-layout{padding:0;background:#f3f6fa}
.company-users-scroll{padding:14px 16px 0}
.company-users-toolbar.f5-list-toolbar{margin:0 0 12px;padding:0;background:transparent;border:0;align-items:end}
.company-users-toolbar .f5-list-search-field{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 38px}
.company-users-toolbar .f5-list-search-field>span{grid-column:1;grid-row:1;margin:0 0 5px;color:#516174;font-size:.68rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.company-users-toolbar .f5-list-search-field input{grid-column:1;grid-row:2;border:1px solid #cbd5e1;border-radius:7px}
.company-users-toolbar>.primary{height:38px;white-space:nowrap}
.company-users-card{box-shadow:none}
.company-users-footer.f5-window-action-bar{font-size:.76rem;color:#60758d;text-align:left}
.company-user-form-screen>.company-user-form-header{flex:0 0 auto;display:flex;justify-content:flex-start;align-items:center;gap:12px;padding:10px 16px;border:0;border-bottom:1px solid #d7e1ea;border-radius:0;background:#fff;color:#17324d;box-shadow:none}
.company-user-form-header small{color:#60758d!important}
.company-user-form-header h2{margin:2px 0 0;font-size:1rem}
.company-user-form-scroll{padding:14px 18px 18px}
.company-user-form-scroll .company-access-security-note{margin:0 auto 12px;max-width:900px}
.company-user-form-scroll .company-user-form{margin:0 auto}
.company-user-row:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:-3px;background:#f7faff}
@media(max-width:760px){.company-users-toolbar.f5-list-toolbar{align-items:stretch}.company-users-toolbar>.primary{width:100%}.company-user-row{grid-template-columns:42px minmax(0,1fr)}.company-user-badges{grid-column:2;justify-content:flex-start}}
/* V34.9.205: filtros de entradas/saídas na linha da pesquisa. */
.mov-inline-controls{display:grid;grid-template-columns:minmax(160px,1fr) minmax(110px,140px) minmax(125px,160px) auto;gap:6px 8px;align-items:end;padding:10px 14px;background:#fff;border-bottom:1px solid #dbe5ee}
.mov-inline-controls>.f5-list-toolbar,.mov-inline-controls>.f5-compact-filter-bar{display:contents}
.mov-inline-controls .f5-list-search-field{order:0;min-width:0;width:auto;flex-basis:auto}
.mov-inline-controls .f5-compact-filter-bar>label{order:1;min-width:0}
.mov-inline-controls .f5-compact-filter-bar>label:nth-child(2){order:2}
.mov-inline-controls .f5-compact-filter-bar select{width:100%;min-width:0;height:38px}
.mov-inline-controls .sales-movement-top-actions,.mov-inline-controls .purchase-movement-create-actions{order:3;display:flex;flex-wrap:nowrap;width:auto;gap:6px}
.mov-inline-controls .sales-movement-top-actions button,.mov-inline-controls .purchase-movement-create-actions button{white-space:nowrap;font-size:11px;padding:7px 9px;min-height:38px}
.mov-inline-controls .f5-list-filter-summary{order:4;grid-column:1/-1;margin:0!important;justify-self:end;font-size:10px;line-height:12px}
@media(max-width:950px){.mov-inline-controls{grid-template-columns:minmax(160px,1fr) minmax(110px,150px) minmax(125px,170px)}.mov-inline-controls .sales-movement-top-actions,.mov-inline-controls .purchase-movement-create-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:560px){.mov-inline-controls{grid-template-columns:1fr 1fr}.mov-inline-controls .f5-list-search-field{grid-column:1/-1}.mov-inline-controls .sales-movement-top-actions,.mov-inline-controls .purchase-movement-create-actions{flex-wrap:wrap}.mov-inline-controls .f5-list-filter-summary{justify-self:start}}

/* PDV: caixas disponíveis legíveis e seleção de documentos emitidos. */
.pdv-opening-cash-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:16px 0;text-align:left}
.pdv-opening-cash-status>span{display:flex;align-items:center;min-height:48px;padding:10px 12px;border:1px solid #cbdde9;border-radius:10px;font-size:13px;line-height:1.4;background:#f3f8fc;color:#183b5c}
.pdv-opening-cash-status>span.available{border-color:#a8ddc5;background:#eefbf4;color:#146746}
.pdv-opening-cash-status>span.busy{border-color:#ecd59c;background:#fff8e8;color:#765413}
.pdv-issued-doc[data-pdv-issued-option]{cursor:pointer}
.pdv-issued-doc[data-pdv-issued-option].active{outline:2px solid #2463eb;outline-offset:-2px;background:#edf5ff}


/* V34.9.206 — Financeiro candidato: rodapé contextual + ordenação de vencimento */
.financial-sort-column{padding:0!important}
.financial-sort-button{
  appearance:none;
  width:100%;
  min-height:36px;
  padding:0 10px;
  border:0;
  background:transparent;
  color:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:5px;
  font:inherit;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  cursor:pointer;
}
.financial-sort-button:hover,.financial-sort-button:focus-visible{
  color:#0f5ca8;
  background:#f2f7fc;
  outline:none;
}
.financial-sort-button span{font-size:.82rem;line-height:1}

.financial-account-footer{
  display:grid!important;
  grid-template-columns:minmax(480px,1.55fr) minmax(180px,.72fr) max-content;
  align-items:center;
  gap:12px;
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.financial-footer-summary{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}
.financial-footer-context{
  flex:0 1 180px;
  min-width:120px;
  display:flex;
  flex-direction:column;
  gap:1px;
  overflow:hidden;
}
.financial-footer-context small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#567087;
  font-size:.58rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.financial-footer-context b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#244c70;
  font-size:.65rem;
}
.financial-footer-kpis{
  min-width:0;
  flex:1 1 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(92px,1fr));
  gap:5px;
}
.financial-footer-kpi{
  appearance:none;
  min-width:0;
  min-height:42px;
  padding:5px 8px;
  border:1px solid #d7e2ec;
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"label count" "value value";
  align-items:center;
  column-gap:5px;
  row-gap:1px;
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.financial-footer-kpi:hover,.financial-footer-kpi:focus-visible{
  border-color:#88a9c9;
  background:#f8fbff;
  outline:none;
}
.financial-footer-kpi.active{
  border-color:#2563eb;
  box-shadow:inset 3px 0 #2563eb;
}
.financial-footer-kpi.success{border-left:3px solid #16a34a}
.financial-footer-kpi.warning{border-left:3px solid #f59e0b}
.financial-footer-kpi.danger{border-left:3px solid #dc2626}
.financial-footer-kpi span{
  grid-area:label;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#66798e;
  font-size:.55rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.025em;
}
.financial-footer-kpi b{
  grid-area:value;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#17324d;
  font-size:.73rem;
  font-variant-numeric:tabular-nums;
}
.financial-footer-kpi small{
  grid-area:count;
  min-width:18px;
  padding:1px 5px;
  border-radius:999px;
  background:#edf3f8;
  color:#61768a;
  font-size:.52rem;
  text-align:center;
}
.financial-account-selection{
  min-width:0;
  padding-left:2px;
}
.financial-account-selection b{max-width:260px}
.financial-footer-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:nowrap;
  overflow-x:auto;
}
.financial-footer-actions button{
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:1180px){
  .financial-account-footer{
    grid-template-columns:minmax(420px,1fr) max-content;
  }
  .financial-account-selection{display:none}
}
@media(max-width:900px){
  .financial-account-footer{grid-template-columns:1fr}
  .financial-footer-summary{align-items:stretch;flex-direction:column;gap:5px}
  .financial-footer-context{flex-basis:auto}
  .financial-footer-kpis{grid-template-columns:repeat(4,minmax(82px,1fr))}
  .financial-footer-actions{justify-content:flex-start}
}
@media(max-width:620px){
  .financial-footer-kpis{
    display:flex;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .financial-footer-kpi{min-width:112px}
}


/* Build70: resumo da movimentação no rodapé, sem ocupar a lista. */
.financial-movements-shell .financial-movements-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 14px;}
.financial-movements-footer .financial-movements-summary{display:grid;gap:4px;min-width:0;}
.financial-movements-summary>small{font-size:10px;color:var(--muted,#64748b);}
.financial-movements-footer .financial-movements-totals{display:flex;gap:18px;flex-wrap:wrap;}
.financial-movements-totals>span{display:grid;gap:2px;font-size:10px;line-height:1.25;}
.financial-movements-totals b{font-size:13px;color:var(--text,#123450);white-space:nowrap;}
.financial-movements-footer .financial-movements-actions{display:flex;gap:6px;flex-wrap:wrap;}
.financial-movements-actions button{font-size:11px;min-height:34px;}
/* Regras escopadas prevalecem sobre a barra genérica do ERP. */
.financial-account-shell>.financial-account-footer>.financial-footer-summary{display:grid;grid-template-columns:1fr;gap:4px;justify-content:stretch;}
.financial-account-footer .financial-footer-context{min-width:0;flex-direction:row;align-items:center;gap:8px;}
.financial-account-footer .financial-footer-kpis{width:100%;}
.financial-account-footer button.financial-footer-kpi{background:#fff;border-color:#d7e2ec;}
.financial-account-footer button.financial-footer-kpi.danger{border-left-color:#dc2626;background:#fff7f7;}
.financial-account-footer button.financial-footer-kpi.success{border-left-color:#16a34a;}
.financial-account-footer button.financial-footer-kpi.warning{border-left-color:#f59e0b;}
.financial-account-footer button.financial-footer-kpi.active{border-color:#2563eb;}
.financial-movements-shell>.financial-movements-footer>.financial-movements-summary{display:grid;gap:4px;justify-content:start;min-width:0;overflow:visible;}
.financial-movements-shell>.financial-movements-footer>.financial-movements-actions{min-width:0;flex-wrap:wrap;}
@media(max-width:1180px){.financial-account-footer>.financial-account-selection{display:none;}}
@media(max-width:760px){.financial-movements-shell>.financial-movements-footer>.financial-movements-actions{justify-content:flex-start;}}

/* Resumos compactos no rodapé: a mesma linguagem visual nas três rotinas. */
.financial-movements-footer .financial-movements-totals{gap:7px;}
.financial-movements-totals>span{
  min-width:112px;padding:6px 10px;border:1px solid;border-radius:9px;
  font-size:10px;font-weight:700;
}
.financial-movements-totals>span:nth-child(1){background:#fff3e5;border-color:#f4c891;color:#8b450c;}
.financial-movements-totals>span:nth-child(2){background:#eaf3ff;border-color:#b6d4fc;color:#164c91;}
.financial-movements-totals>span:nth-child(3){background:#e8f8ef;border-color:#a9dec0;color:#16643f;}
.financial-movements-totals>span:nth-child(1) b{color:#763b08;}
.financial-movements-totals>span:nth-child(2) b{color:#153f7b;}
.financial-movements-totals>span:nth-child(3) b{color:#145235;}
.financial-account-footer button.financial-footer-kpi{
  border-width:1px;border-style:solid;border-left-width:4px;
  box-shadow:0 1px 3px rgba(16,42,67,.06);
}
.financial-account-footer button.financial-footer-kpi.success{background:#e8f8ef;border-color:#a9dec0;border-left-color:#188650;}
.financial-account-footer button.financial-footer-kpi.info{background:#eaf3ff;border-color:#b6d4fc;border-left-color:#2563b7;}
.financial-account-footer button.financial-footer-kpi.danger{background:#fff0ef;border-color:#f3b8b3;border-left-color:#cf4438;}
.financial-account-footer button.financial-footer-kpi.warning{background:#fff5e4;border-color:#f1d399;border-left-color:#d59320;}
.financial-account-footer button.financial-footer-kpi.success:is(:hover,:focus-visible,:active),
.financial-account-footer button.financial-footer-kpi.info:is(:hover,:focus-visible,:active),
.financial-account-footer button.financial-footer-kpi.danger:is(:hover,:focus-visible,:active),
.financial-account-footer button.financial-footer-kpi.warning:is(:hover,:focus-visible,:active){filter:saturate(1.08) brightness(.98);}
.financial-account-footer button.financial-footer-kpi.active{outline:2px solid #173b66;outline-offset:1px;box-shadow:0 2px 6px rgba(16,42,67,.15);}
.financial-account-footer button.financial-footer-kpi small{background:rgba(255,255,255,.72);color:#31475c;}

.pdv-fiscal-progress-modal .pdv-modal-body{padding:0;}
.pdv-fiscal-progress-modal .pdv-modal-header{background:#163655;}
.pdv-fiscal-progress-modal .fiscal-processing-box{
  padding:30px 34px 26px;gap:18px;background:linear-gradient(180deg,#fff 0%,#f5f9fd 100%);
}
.pdv-fiscal-progress-modal .fiscal-processing-spinner{width:36px;height:36px;border-width:3px;}
.pdv-fiscal-progress-modal .fiscal-processing-copy{display:grid;gap:8px;max-width:420px;}
.pdv-fiscal-progress-modal .fiscal-processing-copy h3{margin:0;color:#163655;font-size:1.04rem;line-height:1.3;}
.pdv-fiscal-progress-modal .fiscal-processing-copy p{margin:0;color:#536a7e;font-size:.82rem;line-height:1.5;}
.pdv-fiscal-progress-modal .fiscal-processing-note{
  width:100%;box-sizing:border-box;border:1px solid #dce8f3;border-radius:8px;
  background:#edf4fa;padding:10px 12px;color:#315371;font-size:.72rem;line-height:1.4;
}

/* Modal do editor de item da NF-e (V34.9.205) — substitui o antigo .nfe-item-editor inline.
   Reaproveita .f5-dialog-overlay/.f5-dialog (já existentes) só alargando a largura, e adiciona
   os cartões de seção + o campo de lookup com sugestões (NCM/CFOP) e as regras tributárias. */
.nfe-item-editor-dialog{width:min(980px,96vw)}
.nfe-item-editor-body{display:grid;gap:12px}
.nfe-item-editor-section{background:#f8fafc;border:1px solid #dbe5ed;border-radius:10px;padding:12px;display:grid;gap:9px}
.nfe-item-editor-section h4{margin:0;color:#17517e;font-size:.78rem}
.nfe-item-editor-section textarea{min-height:64px;border:1px solid #c7d6e2;border-radius:8px;padding:8px;font:inherit;resize:vertical}
.fiscal-lookup-field{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.fiscal-lookup-field input:not([type=hidden]){min-height:38px}
.fiscal-lookup-field button{min-height:38px;padding:0 10px;border:1px solid #b9c9d5;border-radius:7px;background:#fff;cursor:pointer}
.fiscal-sugestoes-box{position:absolute;top:100%;left:0;right:0;z-index:30000;margin-top:3px;max-height:220px;overflow:auto;
  background:#fff;border:1px solid #c5d2dd;border-radius:8px;box-shadow:0 12px 30px rgba(15,47,73,.18)}
.fiscal-text-danger{color:#b42318}
.fiscal-item-warning{background:#fff8e1}
.fiscal-notice.warning{background:#fdecea;border-color:#e5b4ac;color:#8a2c1f}
@media(max-width:760px){.nfe-item-editor-dialog{width:100vw;max-height:100vh;border-radius:0}}

/* Cards de NF-e de entrada e fornecedor destinatário na devolução — hierarquia visual clara
   (antes nome/CNPJ e número/fornecedor/data/total ficavam visualmente colados). */
.fiscal-entry-card{display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#f8fafc;border:1px solid #dbe5ed;border-radius:10px;padding:12px 14px;margin-bottom:10px}
.fiscal-entry-card-info{display:flex;flex-direction:column;gap:3px}
.fiscal-entry-card-info>b{font-size:.86rem;color:#173b5c}
.fiscal-entry-card-info>span{color:#40576b;font-size:.78rem}
.fiscal-entry-card-info>small{color:#64748b;font-size:.7rem}
.fiscal-entry-card-key{display:flex;align-items:baseline;gap:6px;margin-top:2px}
.fiscal-entry-card-key small{color:#64748b;font-size:.62rem;text-transform:uppercase;font-weight:800}
.fiscal-entry-card-key code{font-size:.68rem;color:#334155;word-break:break-all}
.fiscal-entry-card>button{flex-shrink:0}
.fiscal-entry-supplier{display:flex;flex-direction:column;gap:3px}
.fiscal-entry-supplier>b{font-size:.86rem;color:#173b5c}
.fiscal-entry-supplier>small{color:#64748b;font-size:.75rem}
.fiscal-text-muted{color:#64748b}

/* Inclusão rápida de item — faixa única e proporcional (produto ocupa a maior parte, quantidade
   e preço compactos, botão alinhado); o lookup de produto fica integrado ao campo, sem lupa solta. */
.fiscal-quick-add{display:grid;grid-template-columns:minmax(0,3fr) 120px 140px auto;gap:8px;align-items:end;margin-bottom:10px}
.fiscal-quick-add label{display:flex;flex-direction:column;gap:4px;font-size:.72rem;font-weight:800;color:#405a6e}
.fiscal-quick-add input{min-width:0;border:1px solid #b9c9d5;border-radius:7px;background:#fff;padding:8px;font:inherit;color:#173b5c;min-height:38px}
.fiscal-quick-add .fiscal-lookup-field{margin:0}
.fiscal-quick-add-btn{min-height:38px}
.fiscal-quick-add-secondary{opacity:.72}
.fiscal-quick-add-secondary:focus-within{opacity:1}
.fiscal-section-title-muted{background:#e8f0f6;color:#40576b;font-weight:700}
@media(max-width:900px){.fiscal-quick-add{grid-template-columns:1fr 100px 120px}.fiscal-quick-add-btn{grid-column:1/-1}}

/* Bloco fiscal Âmbito + CFOP da devolução — organizados na mesma faixa visual, em vez de
   parecerem campos soltos dentro do grid geral de 3 colunas. */
.fiscal-scope-cfop-block{background:#f8fafc;border:1px solid #dbe5ed;border-radius:10px;padding:12px 14px;margin-top:10px}
.fiscal-scope-cfop-row{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:12px;align-items:start}
.fiscal-scope-cfop-row label{display:flex;flex-direction:column;gap:4px;font-size:.72rem;font-weight:800;color:#405a6e}
.fiscal-scope-cfop-row select{min-height:38px;border:1px solid #b9c9d5;border-radius:7px;background:#fff;padding:8px;font:inherit;color:#173b5c}
.fiscal-scope-cfop-status{margin-top:6px}
@media(max-width:760px){.fiscal-scope-cfop-row{grid-template-columns:1fr}}

/* Toggle "Modo avançado" no cabeçalho do modal de item — mostra/oculta campos extras que o
   modelo já suporta (unidade, código de barras, origem/CST/CSOSN manual) sem remover o modo simples. */
.nfe-item-editor-dialog .f5-dialog-header{flex-wrap:wrap;gap:8px}
.nfe-modal-advanced-toggle{display:flex;align-items:center;gap:6px;font-size:.68rem;font-weight:700;color:#fff;background:rgba(255,255,255,.14);border-radius:7px;padding:6px 10px;cursor:pointer;margin-left:auto}
.nfe-modal-advanced-toggle input{margin:0}

/* Reorganização visual do modal de item (hotfix das lupas): cards de tributação mais compactos,
   avisos do modo avançado discretos, observação ocupando a largura útil. */
.nfe-item-editor-tax-section{padding:9px 12px}
.nfe-item-editor-tax-section h4{font-size:.72rem}
.nfe-item-editor-tax-section .fiscal-lookup-row{margin:0}
.fiscal-lookup-row-readonly{grid-template-columns:1fr}
.fiscal-lookup-row-readonly label{display:flex;flex-direction:column;gap:4px;font-size:.72rem;font-weight:800;color:#405a6e;max-width:180px}
.fiscal-notice-compact{display:block;color:#64748b;background:#eef5fa;border:1px solid #cfe0ec;border-radius:7px;padding:6px 9px;line-height:1.4}
.nfe-modal-obs-label{display:block}
.nfe-modal-obs-label textarea{width:100%;box-sizing:border-box;min-height:72px}

/* Build74 R5 — homologação física (mesmo CSS para WEB e Desktop).
   Abertura: o card nunca é cortado; a área rola e as ações do formulário ficam fixas no rodapé visível. */
.pdv-opening{box-sizing:border-box;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
.pdv-opening>.pdv-opening-card{margin:auto;flex:0 0 auto;box-sizing:border-box}
.pdv-opening-unified .pdv-opening-form footer{position:sticky;bottom:0;z-index:2;margin:0 -6px;padding:8px 6px 4px;background:#fff;box-shadow:0 -8px 12px -10px rgba(14,45,70,.35)}
.pdv-opening-pending-notice{margin:0;padding:10px 12px;border-radius:8px;border:1px solid #ecd59c;background:#fff8e8;color:#765413;font-size:.8rem;line-height:1.45;text-align:left}
.pdv-opening-operators.is-locked .pdv-opening-operator-card:not(.active){opacity:.45;filter:grayscale(1);cursor:not-allowed;background:#f4f6f8}
.pdv-opening-operators.is-locked .pdv-opening-operator-card.active{opacity:1;cursor:default}
.pdv-opening-operators.is-locked .pdv-opening-operator-card:hover{border-color:#cbd8e2}
.pdv-opening-operators.is-locked .pdv-opening-operator-card.active:hover{border-color:#0b3d8c}
@media(max-height:900px){
  .pdv-opening{padding:12px}
  .pdv-opening-card.pdv-opening-unified{padding:18px 24px;gap:9px}
  .pdv-opening-unified .pdv-opening-brand{flex-direction:row;justify-content:center;gap:10px}
  .pdv-opening-unified .pdv-opening-logo{width:48px;height:48px;border-radius:12px}
  .pdv-opening-unified .pdv-opening-logo span{font-size:1.1rem}
  .pdv-opening-unified .pdv-opening-brand>strong{font-size:1.1rem}
  .pdv-opening-unified h2{font-size:1.15rem;margin:0}
  .pdv-opening-unified .pdv-opening-cash-status{margin:2px 0}
  .pdv-opening-unified .pdv-opening-cash-status>span{min-height:34px;padding:6px 10px}
  .pdv-opening-unified .pdv-opening-operators{gap:8px;margin:0}
  .pdv-opening-unified .pdv-opening-operator-card{flex-direction:row;justify-content:flex-start;gap:8px;padding:7px 10px;text-align:left}
  .pdv-opening-unified .pdv-opening-operator-avatar{width:28px;height:28px;flex:0 0 28px;font-size:.8rem}
  .pdv-opening-unified .pdv-opening-form{gap:8px;margin-top:0;padding-top:10px}
  .pdv-opening-unified .pdv-opening-form input,.pdv-opening-unified .pdv-opening-form select{min-height:36px;padding:6px 9px}
  .pdv-opening-unified .pdv-opening-form textarea{min-height:36px;padding:6px 9px}
  .pdv-opening-unified .pdv-opening-static{min-height:36px}
  .pdv-opening-unified .pdv-opening-form footer button{min-height:40px}
  .pdv-opening-unified>button.ghost{height:34px}
}

/* PDV sem produto selecionado: a identidade da empresa vira um estado vazio discreto, sem disputar espaço com a venda. */
.pdv-preview-panel #pdv-product-preview-area>.pdv-idle-brand-expanded,.pdv-window-body #pdv-product-preview-area>.pdv-idle-brand-expanded{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;padding:16px!important}
.pdv-idle-brand-expanded .pdv-idle-brand-logo,.pdv-idle-brand-expanded.has-company-image .pdv-idle-brand-logo{flex:0 0 auto!important;width:min(42%,220px)!important;height:auto!important;max-height:min(34%,150px)!important;min-height:0!important;aspect-ratio:auto!important;opacity:.85}
.pdv-idle-brand-expanded .pdv-idle-brand-logo img,.pdv-idle-brand-expanded.has-company-image .pdv-idle-brand-logo img{width:100%!important;height:auto!important;max-height:min(34vh,150px)!important;object-fit:contain!important}
.pdv-idle-brand-expanded .pdv-idle-brand-logo>span{width:96px!important;height:96px!important;max-width:none!important;max-height:none!important;aspect-ratio:1!important;border-radius:22px!important;font-size:2.2rem!important;box-shadow:0 10px 24px rgba(14,55,92,.16)!important}
.pdv-idle-brand-expanded .pdv-idle-fallback-name{margin:0;font-size:1rem;color:#35526d}
.pdv-idle-brand-expanded::after{content:'Nenhum produto selecionado · leia o código ou pressione F2 para buscar';max-width:320px;color:#6b8093;font-size:.78rem;line-height:1.45;text-align:center}

/* Build74 R6 — cards de operadores: linha única e alinhada, nome longo com reticências, seleção inequívoca. */
.pdv-opening-unified .pdv-opening-operators{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));align-items:stretch}
.pdv-opening-unified .pdv-opening-operator-card{flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;min-height:56px;height:100%;padding:8px 12px;text-align:left;position:relative;overflow:hidden}
.pdv-opening-unified .pdv-opening-operator-avatar{flex:0 0 34px;width:34px;height:34px}
.pdv-opening-operator-text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;gap:2px}
.pdv-opening-operator-name{display:block;font-weight:800;font-size:.86rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdv-opening-operator-email{display:block;font-weight:500;font-size:.72rem;line-height:1.2;color:#5d7386;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdv-opening-operator-check{flex:0 0 auto;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#0b3d8c;color:#fff;font-size:.75rem;font-weight:900}
.pdv-opening-operator-card.active{border-width:2px;padding:7px 11px}
.pdv-opening-unified .pdv-opening-close[hidden]{display:none!important}
.pdv-opening-unified .pdv-opening-close{border-color:#c9d5df}
.pdv-opening-unified .pdv-opening-actions{display:flex;gap:8px;width:100%}
.pdv-opening-unified .pdv-opening-actions>button.ghost{flex:1 1 0;min-width:0;height:34px}

/* Build74 R7 — Kit pesquisável junto com produtos: selo discreto. */
.pdv-kit-badge{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:999px;background:#e6f0fb;color:#0b3d8c;font-size:.62rem;font-style:normal;font-weight:900;letter-spacing:.04em;vertical-align:middle}
.pdv-issued-badge{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#fde7e4;color:#9f231c;font-size:.62rem;font-style:normal;font-weight:900;letter-spacing:.05em}
