/* Madu Gestão V7.91 · madu-interface.css — Camadas de interface V7.38–V7.90. Cada seção sobrepõe as anteriores; mantenha a ordem.
 * Declarações que uma regra posterior idêntica (mesmo seletor, mesmo contexto) sempre sobrescrevia foram removidas. */

/* ═══════════ Depósito · análises, fornecedores e EAN — origem: madu-v738.css ═══════════ */
/* MADU 7.38 additions: quiet, accessible inventory analytics. */
.v738-dialog-open{overflow:hidden!important}
.v738-modal[hidden], #v738CountCameraBox[hidden]{display:none!important}
.v738-modal{position:fixed;inset:0;z-index:999991;background:rgba(17,35,28,.56);display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden}
.v738-modal-inner{background:#fff;border:1px solid #d4dfd4;border-radius:20px;box-shadow:0 16px 50px #12291a33;width:min(900px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:24px;color:#284036}
.v738-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-24px;background:#fff;padding:12px 0;z-index:1}
.v738-modal h3{font-weight:700;margin:18px 0 10px;color:#2c4939}
.v738-price-kpis,.v738-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;margin:12px 0}
.v738-price-kpis>div,.v738-report-grid>div{padding:14px;border:1px solid #dbe4dc;background:#f6f8f5;border-radius:12px}
.v738-price-kpis small,.v738-report-grid small,.v738-supplier small{display:block;color:#667b70;font-size:12px}
.v738-price-kpis strong,.v738-report-grid strong{font-size:18px;color:#244936;display:block;margin-top:4px}
.v738-supplier-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.v738-supplier{border:1px solid #d6e1d8;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px}
.v738-supplier b{font-size:15px;color:#28543a}
.v738-table-scroll{overflow:auto;max-height:330px;border:1px solid #dbe4dc;border-radius:12px;margin-top:12px}
.v738-table-scroll table{width:100%;border-collapse:collapse;min-width:500px;font-size:13px}
.v738-table-scroll th,.v738-table-scroll td{text-align:left;border-bottom:1px solid #edf1ed;padding:10px 12px}
.v738-table-scroll th{background:#f2f6f2;position:sticky;top:0}
.v738-inline-link{background:transparent;color:#205d44;text-decoration:underline;cursor:pointer;font-size:13px;margin-left:7px}
.v738-cancel-btn{border:1px solid #dce5dc;border-radius:8px;padding:5px 8px;color:#647168;font-size:12px;background:#fff;cursor:pointer;white-space:nowrap}
.v738-error{color:#a02d2d!important;font-weight:600;margin:10px 0}
.v738-scan-block{border:1px solid #d8e5d9;background:#f7faf7;border-radius:12px;padding:14px;margin-bottom:16px}
.v738-scan-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.v738-scan-row input{flex:1;min-width:160px}
#v738CountCameraBox{margin:10px 0;min-height:120px}
.v738-located{outline:2px solid #4e876b;background:#e3f0e6!important}
.v738-variance-panel{margin:8px 0 16px}.v738-variance-panel h3{font-weight:700;color:#284936;margin-bottom:6px}
@media(max-width:640px){.v738-modal-inner{padding:14px}.v738-modal-head{top:-14px}.v738-scan-row .nf-btn{font-size:12px}.v738-price-kpis,.v738-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v738-price-kpis strong,.v738-report-grid strong{font-size:14px}}

.v738-dialog-open main{overflow:hidden!important}.v738-scanned-new{background:#f7fbf5}

/* V7.39 · interface refinada, cartões distintos e fornecedor com busca própria */

/* Painel do gestor e acesso rápido: cada card com identidade própria */
#maduMobileHome .madu-kitchen-actions .madu-kitchen-action{position:relative;overflow:hidden}
#maduMobileHome .madu-kitchen-actions .madu-kitchen-action::after{content:'';position:absolute;inset:auto 0 0 0;height:4px;opacity:.75}
#maduMobileHome .madu-kitchen-action.madu-gestor-counting{background:#f1eee4!important;border-color:#d9d0b4!important;color:#62522f!important}
#maduMobileHome .madu-kitchen-action.madu-gestor-counting .madu-kitchen-symbol{background:#e6dec2!important;color:#665020!important}
#maduMobileHome .madu-kitchen-action.madu-gestor-counting::after{background:#a48b4d}
#maduMobileHome .madu-kitchen-action[onclick*="expenses"]{background:#fce6cf!important;border-color:#efc891!important;color:#865222!important}
#maduMobileHome .madu-kitchen-action[onclick*="expenses"] .madu-kitchen-symbol{background:#f7dcb9!important;color:#885221!important}
#maduMobileHome .madu-kitchen-action[onclick*="expenses"]::after{background:#d78b31}
#maduMobileHome .madu-kitchen-action[data-kind="checklists"]::after{background:#66985d}
#maduMobileHome .madu-kitchen-action[data-kind="labels"]::after{background:#4f89c2}
#maduMobileHome .madu-kitchen-action[data-kind="orders"]::after{background:#bb7a5e}
#maduMobileHome .madu-kitchen-action[data-kind="scanner"]::after{background:#8d68c4}
#maduMobileHome .madu-kitchen-action[data-kind="transfers"]::after{background:#d48a3a}
#maduMobileHome .madu-kitchen-action[data-kind="recipes"]::after{background:#4d9b79}
#maduMobileHome .madu-kitchen-action[data-kind="waste"]::after{background:#d16464}
#maduMobileHome .madu-kitchen-action[data-kind="finished"]::after{background:#6f7897}
#maduMobileHome .madu-kitchen-action.madu-gestor-products{background:#f5ead8!important;border-color:#e4cba5!important;color:#7b5730!important}
#maduMobileHome .madu-kitchen-action.madu-gestor-products .madu-kitchen-symbol{background:#edd9b9!important;color:#80572a!important}
#maduMobileHome .madu-kitchen-action.madu-gestor-products::after{background:#b78746}
#maduMobileHome .madu-kitchen-action.madu-gestor-productivity{background:#dff1ed!important;border-color:#b7ded2!important;color:#265b52!important}
#maduMobileHome .madu-kitchen-action.madu-gestor-productivity .madu-kitchen-symbol{background:#cde9e2!important;color:#2a6559!important}
#maduMobileHome .madu-kitchen-action.madu-gestor-productivity::after{background:#4ca18c}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-inventory{background:#e5f0e6!important;border-color:#c6dcc8!important;color:#2f5b3a!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-inventory .madu-kitchen-symbol{background:#d4e7d6!important;color:#2c5f3c!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-inventory::after{background:#5f9870}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-payables{background:#e6edf8!important;border-color:#c7d6ef!important;color:#33517a!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-payables .madu-kitchen-symbol{background:#d5e1f4!important;color:#35557f!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-payables::after{background:#577ebd}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-customers{background:#f4e6f4!important;border-color:#e1cae1!important;color:#704170!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-customers .madu-kitchen-symbol{background:#ead7ea!important;color:#6f4470!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-customers::after{background:#a765a7}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-staff{background:#e6f3ef!important;border-color:#c9e1d7!important;color:#285a4a!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-staff .madu-kitchen-symbol{background:#d6ece4!important;color:#2a604f!important}
#maduMobileHome .madu-gestor-actions .madu-kitchen-action.madu-gestor-staff::after{background:#4a9b7e}

/* Linguagem visual mais moderna nas telas administrativas */
#tab-expenses .nf-panel,#tab-suppliers .nf-panel,#tab-inventory .nf-panel,#tab-reports .glass-card,#tab-reports .madu-graph-panel,#tab-reports .madu-report-breakdown,#tab-waste .nf-panel{
  border-radius:22px!important;border:1px solid #d8e4d9!important;background:linear-gradient(180deg,#ffffff,#f9fbf9)!important;
  box-shadow:0 10px 30px rgba(31,59,42,.08)!important;
}
#tab-expenses > div:first-child h2,#tab-suppliers > div:first-child h2,#tab-inventory > div:first-child h2,#tab-reports .madu-report-hero h2,#tab-waste > div:first-child h2{letter-spacing:-.02em}
#tab-expenses .sp-v735-day-card,#tab-expenses .sp-card,#tab-expenses .sp-v735-add{box-shadow:0 8px 24px rgba(36,69,50,.06)!important}
#tab-expenses .sp-v735-top-fields label,#tab-suppliers .nf-label,#tab-waste .nf-label,#tab-reports .madu-history-filters label{font-weight:700;color:#395343}
#tab-expenses input,#tab-expenses select,#tab-expenses textarea,#tab-suppliers input,#tab-suppliers select,#tab-suppliers textarea,#tab-waste input,#tab-waste select,#tab-waste textarea,#tab-reports input,#tab-reports select{border-radius:14px!important;border-color:#cfdbd1!important;background:#fff!important;min-height:48px}
#tab-expenses textarea,#tab-suppliers textarea,#tab-waste textarea{min-height:96px}
#tab-suppliers #supplierList>*{border:1px solid #d8e4d8;background:#f9fbf9;border-radius:16px;padding:14px 16px;box-shadow:0 3px 12px rgba(28,53,40,.04)}

/* Fornecedor com sugestões bonitas e consistentes */
.madu-spend .sp-supplier-field{position:relative}
.madu-spend .sp-supplier-suggestions{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:45;background:#fff;border:1px solid #cfe0d1;box-shadow:0 16px 32px rgba(22,45,31,.14);border-radius:16px;max-height:270px;overflow:auto;padding:6px}
.madu-spend .sp-supplier-suggestions[hidden]{display:none!important}
.madu-spend .sp-supplier-option{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:12px 13px;border-radius:12px;background:transparent;color:#294538}
.madu-spend .sp-supplier-option:hover,.madu-spend .sp-supplier-option:focus-visible{background:#eef5ef;outline:none}
.madu-spend .sp-supplier-option.is-active{background:#e6f2e8;outline:none}
.madu-spend .sp-supplier-option strong{font-size:14px;color:#244a35}
.madu-spend .sp-supplier-option small{font-size:11px;color:#677a6c;line-height:1.35}
.madu-spend .sp-supplier-empty{padding:12px 13px;font-size:12px;color:#64748b}

/* Relatórios & perdas mais parecidos com painel do gestor / produtividade */
#tab-reports .madu-report-hero{align-items:flex-end;gap:18px;border-radius:24px;padding:24px;background:linear-gradient(135deg,#eff7ef,#f9fbf8)!important;border:1px solid #d7e6da;box-shadow:0 10px 28px rgba(28,53,39,.08)}
#tab-reports .madu-report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
#tab-reports .madu-report-kpi{border-radius:22px;padding:18px 18px 16px;border:1px solid #dae5dc;background:#fff;box-shadow:0 8px 24px rgba(32,58,42,.06)}
#tab-reports .madu-report-kpi span{display:block;font-size:12px;font-weight:700;color:#54695d;letter-spacing:.02em;text-transform:uppercase}
#tab-reports .madu-report-kpi strong{display:block;font-size:31px;line-height:1.05;color:#264335;margin-top:8px}
#tab-reports .madu-report-kpi small{display:block;margin-top:8px;color:#6b7f72;font-size:12px}
#tab-reports .madu-report-insight-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
#tab-reports .madu-report-insight-strip > *{border:1px solid #d8e3d9;background:#fff;border-radius:16px;padding:13px 14px;box-shadow:0 4px 14px rgba(27,51,37,.05)}
#tab-reports .madu-graph-panel{padding:18px!important}
#tab-reports .madu-graph-title h3{font-size:20px;color:#294538;letter-spacing:-.02em}
#tab-reports .madu-graph-title p,#tab-reports .madu-report-breakdown p,#tab-reports .madu-history-header p{color:#64786c}
#tab-reports .madu-report-breakdown{padding:18px!important;display:grid;gap:14px}
#tab-reports .madu-history-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
#tab-reports .madu-history-filters{display:flex;gap:10px;flex-wrap:wrap}
#tab-reports .madu-history-filters label{display:grid;gap:6px;min-width:190px}
#tab-reports .madu-loss-mobile-cards > *{border:1px solid #dbe5dc;background:#fff;border-radius:16px;padding:14px;box-shadow:0 3px 12px rgba(30,55,39,.05)}

/* Registrar desperdício com cara de módulo premium */
#tab-waste>.nf-panel{padding:20px!important}
#tab-waste #maduWasteForm{background:linear-gradient(180deg,#ffffff,#fbfcfb)!important;border:1px solid #d9e3db!important}
#tab-waste .madu-waste-source-options>label>span{box-shadow:0 5px 18px rgba(29,53,39,.04);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;background:linear-gradient(180deg,#ffffff,#f9fbf9)}
#tab-waste .madu-waste-source-options>label>span:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(29,53,39,.08)}
#tab-waste .madu-waste-grid,#tab-waste .madu-waste-preview,#tab-waste .madu-waste-ref-box{border-radius:18px}
#tab-waste .madu-waste-preview{background:linear-gradient(180deg,#ebf4ee,#f9fcf9)!important;border-color:#c8dccd!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
#tab-waste .madu-waste-ref-box{background:linear-gradient(180deg,#f7faf7,#ffffff)!important;border-color:#d5e0d6!important}
#tab-waste .madu-inline-suggestions{box-shadow:0 18px 34px rgba(18,41,29,.12)}

/* Estoque e compras com visual alinhado */
#tab-inventory .v737-tools,#tab-expenses .sp-v735-tabs{background:linear-gradient(180deg,#f6faf6,#fdfefd)!important}
#tab-inventory .v737-tools,#tab-expenses .sp-v735-tabs,#tab-expenses .sp-v735-total{box-shadow:0 6px 18px rgba(30,54,40,.05)}
#tab-expenses .sp-v735-total{border-radius:18px}
#tab-expenses .sp-v735-total strong{font-size:26px}

@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
  #tab-reports .madu-report-hero{padding:18px}
  #tab-reports .madu-report-kpi strong{font-size:26px}
  #tab-reports .madu-history-filters{display:grid;grid-template-columns:1fr}
  #tab-expenses .sp-supplier-suggestions{max-height:40vh}
}

/* V7.40 | menus antigos aproximados do visual de encomendas */

#tab-recipes>div:first-child,#tab-transfers>div:first-child,#tab-waste>div:first-child{background:linear-gradient(135deg,#eef6ef,#f8faf7);border:1px solid #d8e4d9;border-radius:24px;padding:22px 24px;box-shadow:0 10px 28px rgba(31,59,42,.06)}
#tab-recipes>div:first-child h2,#tab-transfers>div:first-child h2,#tab-waste>div:first-child h2{letter-spacing:-.02em}
#tab-recipes .grid.grid-cols-1.sm\:grid-cols-3.gap-3>.nf-panel{border-radius:22px!important;padding:18px 20px!important;border:1px solid #d9e4db!important;box-shadow:0 8px 24px rgba(32,58,42,.06)!important}
#tab-recipes .grid.grid-cols-1.sm\:grid-cols-3.gap-3>.nf-panel:nth-child(1){background:linear-gradient(180deg,#eef7ef,#fff)!important;border-color:#cfe3d1!important}
#tab-recipes .grid.grid-cols-1.sm\:grid-cols-3.gap-3>.nf-panel:nth-child(2){background:linear-gradient(180deg,#eef5fd,#fff)!important;border-color:#cfdeee!important}
#tab-recipes .grid.grid-cols-1.sm\:grid-cols-3.gap-3>.nf-panel:nth-child(3){background:linear-gradient(180deg,#fff2e3,#fff)!important;border-color:#ecd2b3!important}
#tab-recipes>.nf-panel,#tab-recipes .madu-recipe-extra.nf-panel{border-radius:22px!important;border:1px solid #d8e4d9!important;background:linear-gradient(180deg,#fff,#fafcfb)!important;box-shadow:0 10px 28px rgba(31,59,42,.06)!important}
#tab-recipes #recipeCards>*{border:1px solid #dce6dd;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(29,53,39,.05)}
#tab-recipes #productionLotCards>*{border:1px solid #dce6dd;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(29,53,39,.05)}
#tab-recipes #recipeActivity>*{border:1px solid #dce6dd;border-radius:16px;background:#fff;padding:12px 14px}
#tab-transfers .nf-panel{border-radius:22px!important;border:1px solid #d8e4d9!important;background:linear-gradient(180deg,#fff,#fafcfb)!important;box-shadow:0 10px 28px rgba(31,59,42,.06)!important}
#tab-transfers .nf-panel.max-w-xl{background:linear-gradient(180deg,#f8fbf8,#fff)!important}
#tab-transfers .nf-panel.max-w-xl form{display:grid;gap:16px}
#tab-transfers #transferAvailable{padding:12px 14px;border-radius:14px;background:#f3f7f4;border:1px solid #d7e3d9;color:#4d6255}
#tab-transfers #transferBalance table,#tab-transfers .overflow-x-auto table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid #d9e4db}
#tab-transfers #transferBalance th,#tab-transfers #transferBalance td,#tab-transfers .overflow-x-auto th,#tab-transfers .overflow-x-auto td{padding:12px 12px;border-bottom:1px solid #ecf1ec;text-align:left}
#tab-transfers #transferBalance thead th,#tab-transfers .overflow-x-auto thead th{background:#eef3ef;color:#466053;font-size:12px;text-transform:uppercase;letter-spacing:.02em}
#tab-transfers #transferRecent>*{border:1px solid #dce6dd;border-radius:16px;background:#fff;padding:12px 14px;box-shadow:0 4px 14px rgba(29,53,39,.05)}
#tab-transfers .madu-transfer-submit{box-shadow:0 8px 18px rgba(50,87,67,.14)}
#tab-waste .madu-waste-source-options>label:nth-child(1)>span{background:linear-gradient(180deg,#eef7ef,#fff9)!important}
#tab-waste .madu-waste-source-options>label:nth-child(2)>span{background:linear-gradient(180deg,#eef3ff,#fff)!important}
#tab-waste .madu-waste-source-options>label:nth-child(3)>span{background:linear-gradient(180deg,#fff1e3,#fff)!important}
#tab-waste .madu-waste-grid>div:first-child .madu-waste-preview,#tab-waste .madu-waste-grid>div:last-child .madu-waste-preview{box-shadow:0 5px 18px rgba(29,53,39,.04)}
#tab-waste .madu-waste-ref-box strong,#tab-waste .madu-waste-preview strong{color:#294839}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){#tab-recipes>div:first-child,#tab-transfers>div:first-child,#tab-waste>div:first-child{padding:18px}}

/* V7.41: retorno à tela inicial para desktop, sem duplicar a barra inferior móvel */
.madu-desktop-home-bar[hidden]{display:none!important}
.madu-desktop-home-bar{position:sticky;top:0;z-index:35;display:flex;justify-content:flex-start;padding:0 0 13px;background:linear-gradient(to bottom,#f3f6f0 65%,rgba(243,246,240,0));width:max-content;max-width:100%}
#maduDesktopHomeButton{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:10px 15px;background:#fff;border:1px solid #bed1c2;border-radius:12px;color:#29533b;font-size:13px;font-weight:800;box-shadow:0 4px 14px rgba(36,67,45,.10);cursor:pointer}
#maduDesktopHomeButton:hover{background:#e7f1e9;border-color:#86aa91}
#maduDesktopHomeButton:focus-visible{outline:3px solid #5b9070;outline-offset:3px}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){.madu-desktop-home-bar{display:none!important}}
body.auth-locked .madu-desktop-home-bar{display:none!important}

/* ═══════════ Boletos nas compras — origem: madu-v743.css ═══════════ */
/* V7.43 · interface mobile-first mantendo identidade da Madu */
#maduV743BoletoNotice[hidden],#maduChecklistAssigneeWrap[hidden],#maduChecklistStationWrap[hidden]{display:none!important}
.madu-v743-boleto-help{border:1px solid #e3c9aa;background:linear-gradient(140deg,#fff7ea,#fffdfa);border-radius:18px;padding:15px;display:grid;gap:10px;color:#62472c}
.madu-v743-boleto-help strong{display:block;font-size:15px}.madu-v743-boleto-help p{font-size:12px;line-height:1.6;margin-top:5px;color:#71583e}
.madu-v743-boleto-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.madu-v743-boleto-mount:not(:empty){margin:8px 0 17px;max-width:920px}
#tab-expenses #payableForm{max-width:100%;width:100%;border-radius:20px!important;border:1px solid #e3c9aa!important;box-shadow:0 8px 26px #3a392019;background:#fffcf7}
.madu-v743-payable-photo{grid-column:1/-1;display:grid;gap:8px;background:#f9faf6;border:1px solid #d6e1d4;padding:14px;border-radius:14px}
.madu-v743-boleto-actions .nf-btn{min-height:42px}.madu-v743-boleto-actions label{cursor:pointer}
.madu-v743-error{color:#a63a35!important;font-weight:750}
.madu-v743-task-config{display:grid;grid-template-columns:minmax(0,2fr) minmax(135px,1fr) minmax(120px,1fr);align-items:center;gap:9px;padding:12px;background:#fff;border:1px solid #d7e4d8;border-radius:14px}
.madu-v743-task-config:nth-child(3n+2){background:#f0f4ff;border-color:#d4dff2}
.madu-v743-task-config:nth-child(3n){background:#fff4e8;border-color:#ead5c1}
.madu-v743-task-config strong{overflow-wrap:anywhere;color:#365542;font-size:13px}
.madu-v743-task-config label{display:grid;gap:4px;font-size:11px;color:#556c58;font-weight:750}
.madu-v743-task-config :is(input,select){width:100%;min-width:0;min-height:44px;border:1px solid #cad9cd;border-radius:10px;padding:8px;background:white;color:#2e4637;font-size:14px}
.madu-v743-assign{display:grid;gap:8px}.madu-v743-assign label{display:grid;gap:6px}
.madu-v743-time,.madu-v743-by{display:block;margin-top:5px;color:#556a58;font-size:11px!important;font-weight:650}
.madu-v743-time.is-late{color:#ad4d3b;font-weight:800}
#tab-checklists .madu-checklist-grid>.madu-checklist-card:nth-child(5n+1){background:#e5f2e9;border-color:#c6decf}
#tab-checklists .madu-checklist-grid>.madu-checklist-card:nth-child(5n+2){background:#eaf0fc;border-color:#c6d9ee}
#tab-checklists .madu-checklist-grid>.madu-checklist-card:nth-child(5n+3){background:#fff0e5;border-color:#edd6c4}
#tab-checklists .madu-checklist-grid>.madu-checklist-card:nth-child(5n+4){background:#f1eafa;border-color:#ddccec}
#tab-checklists .madu-checklist-grid>.madu-checklist-card:nth-child(5n+5){background:#f1f3de;border-color:#d9ddb9}
#tab-checklists .madu-checklist-status{background:#fff9}
/* gráficos com largura legível no celular/tablet e ranking independente do canvas */
#tab-reports .madu-graph-canvas{min-width:0;max-width:100%;overflow:hidden}
#tab-reports canvas{max-width:100%!important}
#tab-reports .madu-reason-row,#tab-reports .madu-waste-source-line{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.madu-v743-task-config{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.madu-v743-task-config>strong{grid-column:1/-1}.madu-v743-boleto-actions>*{flex:1 1 145px;text-align:center}.madu-v743-boleto-mount #payableForm{padding:13px!important}}
@media(min-width:700px) and (max-width:1024px){#tab-reports .madu-report-chart-grid{grid-template-columns:1fr!important}#tab-reports .madu-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

#tab-checklists .madu-checklist-card.is-archived{background:#fafafa!important}

#tab-checklists .madu-v743-overdue{display:inline-flex;background:#fff0df;border:1px solid #e8bb86;border-radius:999px;padding:6px 9px;color:#9a5929;font-size:11px;font-weight:800}

/* ═══════════ Correções pontuais — origem: madu-v744.css ═══════════ */
/* MADU V7.44: correções pontuais sem alterar a identidade visual */
#maduV744StockImportTools[hidden],#tab-expenses .madu-v744-stock-only[hidden],#tab-expenses #spLineLinkInfo[hidden]{display:none!important}
#maduOrderExtraMenu.madu-order-extra-menu:not([hidden]){position:fixed!important;z-index:2147483000!important;right:auto!important;min-width:185px;max-width:calc(100vw - 16px);background:#fff;border:1px solid #cbdccf;box-shadow:0 15px 42px #1b302e45;padding:6px;border-radius:14px;overflow:visible}
#maduOrderExtraMenu.madu-order-extra-menu button{display:flex!important;width:100%;padding:10px 14px!important;min-height:44px!important;border-radius:9px!important;background:#f7faf7!important;color:#315640!important;font-weight:700!important}
#maduOrderExtraMenu.madu-order-extra-menu button:hover{background:#e7f1e9!important}
#maduV743BoletoNotice .madu-v743-boleto-actions{margin-top:5px}
#tab-needs .madu-v742-tabs{scrollbar-width:thin}
@media(max-width:680px){#maduOrderExtraMenu.madu-order-extra-menu:not([hidden]){max-width:calc(100vw - 20px)}}

/* ═══════════ Fichas técnicas e pré-preparos — origem: madu-v748.css ═══════════ */
/* V7.48 · Fichas e pré-preparos: busca, etapas, quantidade final. */
#recipeModal>.nf-scroll,#recipeProductionModal>.nf-scroll{border:1px solid #d3e2d5;border-radius:23px!important;box-shadow:0 20px 60px #233f302b;background:linear-gradient(180deg,#fff,#fbfdfb)!important}
#recipeModal .nf-label,#recipeProductionModal .nf-label{color:#355841;font-weight:750;margin-bottom:5px;display:block}
#recipeModal .nf-input,#recipeProductionModal .nf-input{border-radius:13px;min-height:46px;background:white;border-color:#cbdcce}
#recipeModal .madu-v748-ingredient{background:#f5f9f4;border:1px solid #d4e5d5;border-radius:17px;padding:12px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(210px,1fr);gap:12px}
#recipeModal .madu-v748-small-label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#496551;min-width:0}
#recipeModal .madu-v748-source-field{position:relative;min-width:0}
#recipeModal .madu-v748-search-shell{display:flex;align-items:center;gap:6px;background:white;border:1px solid #c5dbc9;border-radius:14px;padding:0 11px;min-width:0}
#recipeModal .madu-v748-search-shell:focus-within{outline:2px solid #aacbb0}
#recipeModal .madu-v748-search-shell>i{color:#507e61}
#recipeModal .madu-v748-search-shell input{border:0!important;outline:none!important;width:100%;min-width:0;padding-left:0;background:transparent!important}
#recipeModal .recipe-item{display:none!important}
#recipeModal .madu-v748-source-options{position:absolute;z-index:100;left:0;right:0;top:100%;margin-top:5px;background:white;border:1px solid #c9daca;border-radius:14px;max-height:min(280px,34dvh);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 40px #183c2850;padding:6px}
#recipeModal .madu-v748-source-options[hidden]{display:none!important}
#recipeModal .madu-v748-source-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;text-align:left;padding:10px;border-radius:10px;color:#284633;font-size:13px}
#recipeModal .madu-v748-source-options button:hover,#recipeModal .madu-v748-source-options button:focus-visible{background:#e8f3e9;outline:0}
#recipeModal .madu-v748-source-options button>i{color:#537c5f}
#recipeModal .madu-v748-empty-search{font-size:12px;padding:10px;color:#69786c}
#recipeModal .madu-v748-ingredient-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,.75fr) 41px;gap:7px;align-items:end}
#recipeModal .madu-v748-remove-source{min-width:41px;min-height:46px;border-color:#f0d1d4;background:#fff0f1;color:#944b55}
#recipeModal .madu-v748-stage-config{padding:16px;background:linear-gradient(135deg,#f2edf9,#f9fbf8);border:1px solid #d9cfe8;border-radius:18px;display:grid;gap:11px}
#recipeModal .madu-v748-section-title{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}
#recipeModal .madu-v748-section-title h4{font-weight:850;color:#684887;font-size:15px}
#recipeModal .madu-v748-step-list{display:grid;gap:9px}
#recipeModal .madu-v748-step{background:white;border:1px solid #e3dbea;border-radius:14px;padding:10px;display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(90px,.7fr) minmax(100px,.7fr) minmax(100px,.7fr) 42px;gap:8px;align-items:end}
#recipeModal .madu-v748-step>label{font-size:11px;color:#52675a;font-weight:800;min-width:0;display:grid;gap:5px}
#recipeModal .madu-v748-step-remove{min-width:42px;min-height:45px;border-radius:11px;border:1px solid #edd0d2;background:#fff0f1;color:#9c4c5b}
#recipeModal .madu-v748-inline-product{padding:14px;border:1px solid #d2e2d4;border-radius:17px;background:linear-gradient(180deg,#eaf5ec,#fff);display:grid;gap:9px}
#recipeModal .madu-v748-inline-product[hidden]{display:none!important}
#recipeModal .madu-v748-inline-product>h4{font-weight:850;color:#316046}
#recipeModal .madu-v748-inline-product>label,#recipeModal .madu-v748-grid>label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#3c5c48}
#recipeModal .madu-v748-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#recipeProductionModal .madu-v748-label-options{padding:13px;border:1px solid #cbdccf;background:#f1f7f2;border-radius:15px;display:grid;gap:6px}
#recipeProductionModal .madu-v748-label-options>label{font-size:13px;font-weight:800;color:#345640}
#recipeProductionModal .madu-v748-label-options input{max-width:130px;padding:10px;background:white;border:1px solid #cbd9cd;border-radius:12px}
#recipeProductionModal .madu-v748-label-options small{color:#607d68;font-size:11px;line-height:1.5}
@media(max-width:740px){#recipeModal .madu-v748-ingredient{grid-template-columns:minmax(0,1fr)}#recipeModal .madu-v748-step{grid-template-columns:repeat(2,minmax(0,1fr))}#recipeModal .madu-v748-step>label:first-child{grid-column:1/-1}#recipeModal .madu-v748-step-remove{justify-self:end}#recipeModal .madu-v748-ingredient-metrics{grid-template-columns:minmax(0,1fr) 92px 44px}}
@media(max-width:390px){#recipeModal .madu-v748-step{grid-template-columns:1fr 1fr;gap:8px}#recipeModal .madu-v748-ingredient-metrics{grid-template-columns:minmax(0,1fr) 83px 42px}}

/* Produto com conservação múltipla: a validade da etiqueta segue UM método selecionado */
.madu-v748-product-methods{border:1px solid #cfe1d2;background:linear-gradient(140deg,#f1f8f2,#fff);border-radius:18px;padding:14px;display:grid;gap:10px}
.madu-v748-product-methods strong{color:#305a3e;font-size:13px}
.madu-v748-product-method-options{display:flex;flex-wrap:wrap;gap:8px}
.madu-v748-method-choice{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #d1e0d3;border-radius:12px;padding:9px 11px;font-size:12px;font-weight:750;color:#32533e;min-height:42px;cursor:pointer}
.madu-v748-method-choice:has(input:checked){background:#e2f2e6;border-color:#a1c9aa}
.madu-v748-method-choice input{accent-color:#376749}
.madu-v748-label-method-wrap{background:linear-gradient(140deg,#f1f6ff,#fff);border:1px solid #c8d9ee;border-radius:16px;padding:13px;display:grid;gap:7px}
.madu-v748-label-method-wrap[hidden]{display:none!important}
.madu-v748-label-method-wrap select{min-height:46px;background:#fff;border:1px solid #c9d6e7;border-radius:12px;padding:9px}
.madu-v748-label-method-wrap label{font-weight:800;font-size:13px;color:#31577a}

/* ═══════════ Produtividade · busca e visual — origem: madu-v749.css ═══════════ */

/* Madu V7.49 — identidade visual verde/sálvia, responsivo em celular e tablet. */
#maduV749EmployeeSearchWrap{position:relative;isolation:isolate;min-width:0}
#maduV749EmployeeSearchWrap .madu-v749-original-select{display:none!important}
.madu-v749-search-input{display:flex;align-items:center;gap:9px;background:#fff;border:1.5px solid #c9d9ce;border-radius:13px;padding:0 11px;min-height:46px;box-shadow:0 2px 9px #28452c0b}
.madu-v749-search-input:focus-within{border-color:#658f70;box-shadow:0 0 0 3px #8eb89a38}
.madu-v749-search-input>i{color:#577b62;font-size:15px}
.madu-v749-search-input input{flex:1;min-width:0;width:100%;outline:0;border:0;background:transparent;font-size:16px;padding:10px 0;color:#244633}
.madu-v749-search-input input::-webkit-search-cancel-button{display:none}
.madu-v749-search-clear{color:#597b64;background:#e9f0e9;border-radius:8px;min-width:33px;min-height:33px;font-size:24px;line-height:1}
.madu-v749-search-clear[hidden],.madu-v749-search-results[hidden]{display:none!important}
.madu-v749-search-results{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:600;max-height:min(260px,35dvh);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #c8dcca;border-radius:13px;box-shadow:0 14px 32px #173b2850;padding:6px}
.madu-v749-search-option{width:100%;display:flex;align-items:center;gap:11px;text-align:left;color:#254d37;font-size:14px;font-weight:650;border-radius:9px;padding:12px 11px;min-height:45px;overflow-wrap:anywhere}
.madu-v749-search-option i{color:#668e72;width:18px;text-align:center}
.madu-v749-search-option:hover,.madu-v749-search-option.is-focused{background:#e7f3e9}
.madu-v749-search-empty{color:#6e7c6d;padding:14px;font-size:13px}
#tab-productivity #teamProductivityPanel{overflow:visible}
#tab-checklists .madu-v749-overview-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
#tab-checklists .madu-v749-overview-tags span{display:inline-flex;gap:6px;align-items:center;background:#eaf2e9;color:#3e654b;padding:7px 10px;border-radius:99px;font-size:12px;font-weight:750}
#tab-checklists .madu-v749-preview-tasks{margin-top:16px;padding:14px;border:1px solid #e2eadd;background:#fbfcf8;border-radius:15px}
#tab-checklists .madu-v749-preview-tasks h4,#tab-checklists .madu-v749-manager-overview h4{font-weight:850;color:#355b41;font-size:15px;margin:8px 0 12px}
#tab-checklists .madu-v749-preview-item{display:flex;gap:11px;align-items:flex-start;background:#fff;border:1px solid #e4eadf;border-radius:11px;padding:11px;margin-top:7px;min-width:0}
#tab-checklists .madu-v749-preview-item>span{background:#e5eee3;border-radius:8px;display:grid;place-items:center;min-width:28px;height:28px;font-size:12px;font-weight:800;color:#4c7155}
#tab-checklists .madu-v749-preview-item>div{display:grid;gap:5px;min-width:0}
#tab-checklists .madu-v749-preview-item strong{font-size:14px;color:#36513d;overflow-wrap:anywhere}
#tab-checklists .madu-v749-preview-item small{font-size:12px;color:#6b806f;display:block}
#tab-checklists .madu-v749-start-panel,#tab-checklists .madu-v749-open-existing{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:18px;padding:15px;border-radius:15px;background:#ecf6eb;border:1px solid #bddbc3;color:#346244}
#tab-checklists .madu-v749-start-panel>i,#tab-checklists .madu-v749-open-existing>i{font-size:25px;color:#47815a}
#tab-checklists .madu-v749-start-panel>div,#tab-checklists .madu-v749-open-existing>div{flex:1;min-width:140px}
#tab-checklists .madu-v749-start-panel p,#tab-checklists .madu-v749-open-existing p{font-size:12px;margin-top:4px;color:#63816a}
#tab-checklists .madu-v749-manager-overview{margin-top:18px}
#tab-checklists .madu-v749-day{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#eef5ee;border:1px solid #d1e2d1;padding:13px;border-radius:13px;color:#355a42;font-size:13px;font-weight:800}
#tab-checklists .madu-v749-day input{border:1px solid #ccdfcd;border-radius:10px;padding:9px;background:#fff;color:#294733;font-size:16px;min-height:43px}
#tab-checklists .madu-v749-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 18px}
#tab-checklists .madu-v749-overview-stats>div{min-width:0;border:1px solid #d6e6d5;border-radius:12px;background:#ecf5ed;padding:13px 9px;display:flex;flex-direction:column;gap:5px}
#tab-checklists .madu-v749-overview-stats strong{font-size:23px;color:#2c5c40;line-height:1}
#tab-checklists .madu-v749-overview-stats span{font-size:11px;line-height:1.4;color:#647d6c;font-weight:750;overflow-wrap:anywhere}
#tab-checklists .madu-v749-run-card{border:1px solid #dce8da;border-radius:14px;padding:14px;background:#fff;margin-bottom:12px}
#tab-checklists .madu-v749-run-head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;flex-wrap:wrap}
#tab-checklists .madu-v749-run-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}
#tab-checklists .madu-v749-run-head strong{color:#315b40;font-size:15px}
#tab-checklists .madu-v749-run-head small{color:#718171;font-size:11px}
#tab-checklists .madu-v749-run-track{height:8px;background:#e6efe5;border-radius:99px;overflow:hidden;margin-top:12px}
#tab-checklists .madu-v749-run-track span{display:block;height:100%;background:#669c74;border-radius:99px}
#tab-checklists .madu-v749-run-count{font-size:12px;color:#5c745e;font-weight:750;margin:9px 0}
#tab-checklists .madu-v749-run-mini{display:grid;gap:6px}
#tab-checklists .madu-v749-run-mini>div{display:flex;align-items:flex-start;gap:8px;padding:8px;border-radius:9px;font-size:13px;line-height:1.5;min-width:0}
#tab-checklists .madu-v749-run-mini>div.yes{background:#eef7ed;color:#355a3f}
#tab-checklists .madu-v749-run-mini>div.no{background:#fff1e9;color:#87583e}
#tab-checklists .madu-v749-run-mini>div>span{flex:1;min-width:0;overflow-wrap:anywhere}
#tab-checklists .madu-v749-run-mini small{font-size:11px;color:#657963;white-space:normal;text-align:right;max-width:43%}
#tab-checklists .madu-v749-run-detail{width:100%;margin-top:12px}
#tab-checklists .madu-v749-not-started{background:#fff5e5;border:1px solid #e9d6b9;border-radius:12px;padding:12px;color:#855f3b;display:block;font-size:13px}
#tab-checklists .madu-v749-not-started p{font-size:12px;overflow-wrap:anywhere;margin-top:5px}
#tab-checklists .madu-v749-no-runs{font-size:13px;color:#6d7c6b;padding:10px 0}
@media(max-width:550px){#tab-checklists .madu-v749-overview-stats{gap:6px}#tab-checklists .madu-v749-overview-stats>div{padding:10px 7px}#tab-checklists .madu-v749-overview-stats strong{font-size:20px}#tab-checklists .madu-v749-start-panel>button,#tab-checklists .madu-v749-open-existing>button{width:100%}#tab-checklists .madu-v749-run-mini>div{flex-wrap:wrap}#tab-checklists .madu-v749-run-mini small{text-align:left;max-width:none;flex-basis:100%;padding-left:21px}.madu-v749-search-results{max-height:min(230px,35dvh)}}

/* ═══════════ Encomendas · valores e indicadores — origem: madu-v750.css ═══════════ */
/* Madu V7.50 · valores de encomendas e indicadores discretos */
#tab-orders .madu-order-foot{flex-wrap:wrap;row-gap:10px}
#tab-orders .madu-v750-financial{display:flex;flex:1 1 230px;min-width:0;font-size:12px;color:inherit;line-height:1.45;overflow-wrap:anywhere}
#tab-orders .madu-v750-finance-method{font-weight:750;font-size:11px;opacity:.82}
#tab-orders .madu-v750-finance-values{display:flex;gap:4px 11px;align-items:center;flex-wrap:wrap}
#tab-orders .madu-v750-finance-values strong{font-weight:900}
#tab-orders .madu-v750-finance-due{background:#fff0df;border:1px solid #edca9a;color:#86561d;border-radius:9px;padding:3px 7px;white-space:nowrap;font-weight:900}
#tab-orders .madu-v750-finance-settled{background:#e7f4e9;border:1px solid #bbd7c1;color:#2d6942;border-radius:9px;padding:3px 7px;font-weight:850}
.madu-v750-badge-row,.madu-v750-stage-badges{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;flex-wrap:nowrap;min-width:0;max-width:100%}
.madu-v750-badge-row[hidden],.madu-v750-stage-badges[hidden]{display:none!important}
.madu-v750-count{display:inline-grid;place-items:center;border-radius:99px;min-width:23px;min-height:23px;padding:2px 7px;font-size:11px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;box-shadow:0 2px 5px #253f2a22;color:#fff}
.madu-v750-count.done,.madu-v750-count.active{background:#43895b}
.madu-v750-count.ongoing,.madu-v750-count.soon{background:#dca03e;color:#392c12}
.madu-v750-count.missed,.madu-v750-count.late{background:#c84d50}
#maduMobileHome button[data-kind="checklists"] .madu-v750-badge-row,
#maduMobileHome button[data-kind="stages"] .madu-v750-stage-badges{margin:5px auto 0!important;align-self:center!important;order:3!important;position:static!important;flex:0 0 auto!important;background:transparent!important;box-shadow:none!important;width:auto!important;height:auto!important;border:0!important;padding:0!important}
#maduMobileHome button[data-kind="stages"] .madu-v742-mini-badge.madu-v750-stage-badges{background:transparent!important;padding:0!important;min-width:0!important;box-shadow:none!important}
#appNav button#nav-checklists .madu-v750-badge-row{margin-left:auto;flex-wrap:wrap;gap:3px}
#tab-orders .madu-order-card{overflow-wrap:anywhere}
@media(max-width:530px){#tab-orders .madu-order-foot{align-items:flex-start}#tab-orders .madu-v750-financial{flex-basis:100%}#tab-orders .madu-v750-finance-values{gap:7px}#maduMobileHome .madu-v750-count{min-width:21px;min-height:21px;font-size:10px}}

#tab-orders .madu-v750-financial{flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px 11px}
#tab-orders .madu-v750-finance-caution{flex-basis:100%}

/* ═══════════ Financeiro e encomendas — origem: madu-v752.css ═══════════ */
/* Madu V7.52 | Confiabilidade financeira e mobile-first, paleta de tons suaves da NoForno */
/* Encomendas: ações de correção financeira visíveis sem apagar progresso da cozinha. */
#tab-orders .madu-order-foot .madu-order-close{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#tab-orders .madu-v752-delivered-edit{border:1px solid #bad6c2;background:#e7f4ea;border-radius:10px;color:#2e6748;min-height:39px;padding:7px 12px;font-size:12px;font-weight:800}
#tab-orders .madu-v750-finance-caution{display:block;border-left:3px solid #cb824a;padding:4px 9px;background:#fff5e7;border-radius:6px;font-weight:800;color:#834323}
.madu-v752-payment-dialog{border:0;border-radius:22px;padding:0;width:min(94vw,530px);max-height:90dvh;overflow-y:auto;box-shadow:0 22px 70px #1a312b40;color:#2b4838;background:#fff}
.madu-v752-payment-dialog::backdrop{background:rgba(15,35,25,.52);backdrop-filter:blur(3px)}
.madu-v752-payment-body{padding:22px;display:flex;flex-direction:column;gap:17px}
.madu-v752-payment-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.madu-v752-payment-head small{color:#738879;font-weight:850;letter-spacing:.1em;font-size:10px}.madu-v752-payment-head h3{font-size:21px;color:#2b503a;font-weight:900;margin-top:4px}
#maduV752PaymentClose{border:1px solid #e0e8e0;background:#f5f8f4;border-radius:11px;min-width:43px;min-height:43px}
.madu-v752-pay-help{color:#607666;font-size:13px;line-height:1.55;background:#eef5ed;padding:11px 13px;border-radius:12px}
.madu-v752-pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.madu-v752-pay-grid label{font-size:12px;font-weight:820;color:#476350;display:flex;flex-direction:column;gap:6px}.madu-v752-pay-grid input,.madu-v752-pay-grid select{display:block;min-width:0;width:100%;font-size:16px;border:1px solid #c8d9ca;border-radius:12px;padding:10px;min-height:49px;background:white;color:#294433}
.madu-v752-pay-hint{font-size:12px;color:#7f6136;background:#fff4e4;padding:10px;border-radius:10px}.madu-v752-pay-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}.madu-v752-pay-actions button{min-height:44px;border-radius:11px;padding:10px 15px;font-weight:850;border:1px solid #cfddce}.madu-v752-pay-actions button[type=submit]{background:#315e44;color:white;border-color:#315e44}.madu-v752-pay-error{color:#ad3d3d;background:#fff0f0;padding:10px;border-radius:10px;font-size:12px}
.madu-v752-pay-error[hidden]{display:none!important}
/* Novo balanço visual: informações primeiro, cores com significado. */
#tab-reports .madu-report-kpi:nth-child(1){background:#eaf5ee!important;border-color:#cce4d5!important}
#tab-reports .madu-report-kpi:nth-child(2){background:#eaf2fb!important;border-color:#d2e2f5!important}
#tab-reports .madu-report-kpi:nth-child(3){background:#fff0e8!important;border-color:#f1d2c1!important}
#tab-reports .madu-report-kpi:nth-child(4){background:#f2ecfa!important;border-color:#e0d3f2!important}
#tab-reports .madu-report-chart-grid .madu-graph-panel:nth-child(1){border-top:4px solid #7899ac!important}
#tab-reports .madu-report-chart-grid .madu-graph-panel:nth-child(2){border-top:4px solid #daaa60!important}
#tab-reports .madu-report-breakdown:nth-of-type(1){border-left:4px solid #789e89!important}
#tab-reports .madu-reason-row{padding:11px 12px;border-radius:11px;border:1px solid #e4eae3;background:#f7faf8}
#tab-reports .madu-reason-row>div:first-child{font-size:12px;font-weight:750;margin-bottom:9px;align-items:center}
#tab-reports .madu-reason-row>div:first-child span{display:inline-flex;gap:8px;align-items:center;min-width:0}
#tab-reports .madu-v752-reason-dot{display:inline-block;flex:0 0 11px;width:11px;height:11px;border-radius:4px;background:#587e69}
#tab-reports .madu-v752-reason-0 .madu-v752-reason-dot,#tab-reports .madu-v752-reason-0 .madu-reason-track i{background:#4c755d}
#tab-reports .madu-v752-reason-1 .madu-v752-reason-dot,#tab-reports .madu-v752-reason-1 .madu-reason-track i{background:#c78c51}
#tab-reports .madu-v752-reason-2 .madu-v752-reason-dot,#tab-reports .madu-v752-reason-2 .madu-reason-track i{background:#b65f50}
#tab-reports .madu-v752-reason-3 .madu-v752-reason-dot,#tab-reports .madu-v752-reason-3 .madu-reason-track i{background:#8f86aa}
#tab-reports .madu-v752-reason-4 .madu-v752-reason-dot,#tab-reports .madu-v752-reason-4 .madu-reason-track i{background:#7894a5}
#tab-reports .madu-v752-reason-5 .madu-v752-reason-dot,#tab-reports .madu-v752-reason-5 .madu-reason-track i{background:#ac8b62}
#tab-reports .madu-waste-source-line{border:1px solid #dce8df;border-radius:12px;background:#f8fcf9;padding:12px;margin-top:8px}
#tab-reports .madu-waste-source-line:nth-child(3n+2){background:#f4f0fa;border-color:#e5dcf3}
#tab-reports .madu-waste-source-line:nth-child(3n){background:#fff5ec;border-color:#f2dfc9}
#tab-reports .madu-loss-mobile-card{border:1px solid #dae4dd;background:#fff;box-shadow:0 5px 16px #264d3810;border-left:4px solid #cd8c58}
#tab-reports .madu-loss-mobile-card:nth-child(3n+2){border-left-color:#8b79af;background:#faf8fe}
#tab-reports .madu-loss-mobile-card:nth-child(3n){border-left-color:#85a6ae;background:#f8fcfe}
#tab-reports .madu-reading-grid>div:nth-child(1){background:#eaf2fb}
#tab-reports .madu-reading-grid>div:nth-child(2){background:#fff4e8}
#tab-reports .madu-reading-grid>div:nth-child(3){background:#edf5eb}
/* Tabelas grandes substituídas por cartões completos em tela estreita. */
.madu-v752-mobile-list{display:none}
.madu-v752-copy-feedback{margin-top:8px;line-height:1.5;font-size:12px;font-weight:800;color:#367052;min-height:0}
.madu-v752-mobile-empty{background:#f7faf7;padding:18px;border:1px dashed #cedfd1;text-align:center;color:#607667;border-radius:15px}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 .madu-v752-inventory-desktop,.madu-v752-payables-desktop{display:none!important}
 .madu-v752-mobile-list{display:grid;gap:12px;width:100%;min-width:0}
 .madu-v752-stock-card,.madu-v752-payable-card{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid #dce8dd;border-radius:18px;padding:15px;box-shadow:0 7px 20px #2c51360b;min-width:0;overflow:hidden}
 .madu-v752-stock-card{border-top:4px solid #7fb093}.madu-v752-stock-card.is-low{border-top-color:#d79d58}
 .madu-v752-stock-head{display:flex;gap:12px;align-items:center;min-width:0}
 .madu-v752-stock-head>img,.madu-v752-stock-icon{width:56px;height:56px;object-fit:contain;background:#f6faf7;border:1px solid #e3ebe3;border-radius:13px;flex:0 0 56px;display:grid;place-items:center;color:#71967b}
 .madu-v752-stock-head>div{flex:1;min-width:0}.madu-v752-stock-head h3{font-size:15px;line-height:1.35;color:#2d4f3d;font-weight:900;overflow-wrap:anywhere}.madu-v752-stock-head p{font-size:11px;color:#768b79;margin-top:4px;overflow-wrap:anywhere}
 .madu-v752-stock-status{font-size:10px;padding:7px 8px;border-radius:10px;flex:0 0 auto}.madu-v752-stock-status.warn{background:#fff2de;color:#986222}.madu-v752-stock-status.good{background:#e7f5e9;color:#366f49}
 .madu-v752-stock-metrics,.madu-v752-payable-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .madu-v752-stock-metrics>div,.madu-v752-payable-metrics>div{display:flex;flex-direction:column;gap:4px;border-radius:11px;background:#eff6ef;padding:10px;min-width:0}
 .madu-v752-stock-metrics>div:nth-child(2){background:#fff3e7}.madu-v752-stock-metrics>div:nth-child(3){background:#edf3fb}.madu-v752-stock-metrics>div:nth-child(4){background:#f3eef9}
 .madu-v752-stock-metrics small,.madu-v752-payable-metrics span{font-size:11px;color:#6c8171;font-weight:700}
 .madu-v752-stock-metrics strong,.madu-v752-payable-metrics strong{font-size:15px;font-weight:900;color:#30503d;overflow-wrap:anywhere}
 .madu-v752-stock-actions,.madu-v752-payable-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .madu-v752-stock-actions button,.madu-v752-payable-actions button{min-height:46px;border-radius:11px;border:1px solid #d2e0d4;padding:9px 8px;font-size:12px;font-weight:850;color:#375b45;background:#f2f8f3;display:flex;align-items:center;justify-content:center;gap:7px;overflow-wrap:anywhere}
 .madu-v752-stock-actions button:nth-child(2){background:#fff4ec;border-color:#f3d9bf;color:#94612e}
 .madu-v752-stock-actions button:nth-child(3){background:#edf4ff;border-color:#d2e2f9;color:#476c9a}
 .madu-v752-stock-actions button:nth-child(4){background:#f4eefb;border-color:#e6d9f5;color:#785b9c}
 .madu-v752-payable-card{border-top:4px solid #8ca2b8}.madu-v752-payable-card.soon{border-top-color:#dca750}.madu-v752-payable-card.late{border-top-color:#c86a5c}.madu-v752-payable-card.paid{border-top-color:#68a67f}
 .madu-v752-payable-head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;min-width:0}.madu-v752-payable-head>div{flex:1;min-width:0}.madu-v752-payable-head small{display:block;color:#708576;font-size:12px;font-weight:750;margin-bottom:3px;overflow-wrap:anywhere}.madu-v752-payable-head h3{font-size:15px;color:#2c4d38;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
 .madu-v752-payable-status{border-radius:9px;background:#eef4f8;color:#47607a;font-size:10px;padding:7px 8px;max-width:100px;line-height:1.35;flex:0 0 auto;font-weight:850;text-align:center}.madu-v752-payable-status.paid{background:#e5f4e8;color:#326b44}.madu-v752-payable-status.soon{background:#fff1d8;color:#925e1f}.madu-v752-payable-status.late{background:#ffebe9;color:#a24a43}
 .madu-v752-payable-metrics>div:first-child{background:#edf5ef}.madu-v752-payable-metrics>div:last-child{background:#fff4e7}
 .madu-v752-code-last{font-size:11px;color:#7c8c80;background:#f7faf7;border-radius:10px;padding:8px 10px}
 .madu-v752-payable-actions .primary{background:#315e44!important;border-color:#315e44!important;color:#fff!important}
 .madu-v752-payable-actions .danger{background:#fff1f0;border-color:#f0c8c3;color:#aa514b}
 #tab-reports .madu-report-kpis{gap:10px}#tab-reports .madu-report-kpi{border-radius:15px!important;min-height:118px}
 #tab-reports .madu-graph-canvas{height:200px}#tab-reports .madu-graph-panel{border-radius:17px}
 .madu-v752-payment-body{padding:17px}.madu-v752-pay-grid{grid-template-columns:1fr 1fr;gap:10px}
}
@media(max-width:370px){.madu-v752-pay-grid{grid-template-columns:1fr}.madu-v752-stock-actions button,.madu-v752-payable-actions button{font-size:11px}.madu-v752-stock-head>img,.madu-v752-stock-icon{width:46px;height:46px;flex-basis:46px}}

/* Donut: valor resumido no centro, sem depender da legenda por cor. */
#tab-reports .madu-v752-donut-wrap{position:relative}
#tab-reports .madu-v752-donut-center{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46%;max-width:170px;text-align:center;display:flex;flex-direction:column;gap:5px;align-items:center;color:#4b6856}
#tab-reports .madu-v752-donut-center span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#789083}
#tab-reports .madu-v752-donut-center strong{font-size:clamp(14px,2vw,20px);font-weight:900;color:#315240;overflow-wrap:anywhere}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){#tab-reports .madu-v752-donut-center span{font-size:8px}#tab-reports .madu-v752-donut-center strong{font-size:15px}}

/* ═══════════ Harmonização visual, atalhos do início e buscas — origem: madu-v753.css ═══════════ */
/* Madu V7.53 · harmonização visual mobile-first. Não altera operações financeiras ou de estoque. */
:root{--m753-forest:#345f48;--m753-forest-dk:#284d3b;--m753-green:#e2f1e5;--m753-sky:#e2eefb;--m753-sand:#fff0d9;--m753-peach:#fae5db;--m753-lilac:#efe6fb;--m753-teal:#dbf0e9;--m753-border:#dce7dd;--m753-shadow:0 9px 24px rgba(39,76,54,.07)}
/* Sidebar: contraste confortável, textos legíveis, ícones com diferenciação visual. */
#appNav{padding:12px!important}
#appNav>p{color:#e0eee2!important;font-size:11px!important;letter-spacing:.08em}
#appNav button:not(.madu-mobile-profile){color:#f6faf6!important;min-height:46px;border-radius:12px!important;font-size:13px!important;line-height:1.35!important;font-weight:650!important;transition:background .14s ease,box-shadow .14s ease}
#appNav button:not(.madu-mobile-profile)>i:first-child{font-size:16px!important;width:24px!important;flex-shrink:0;filter:drop-shadow(0 1px 1px #102a1822)}
#appNav button:nth-of-type(5n+1)>i:first-child{color:#e9cf9b!important}
#appNav button:nth-of-type(5n+2)>i:first-child{color:#b4e0db!important}
#appNav button:nth-of-type(5n+3)>i:first-child{color:#ded1fc!important}
#appNav button:nth-of-type(5n+4)>i:first-child{color:#f6cab4!important}
#appNav button:nth-of-type(5n)>i:first-child{color:#c8e7b3!important}
#appNav button:hover,#appNav button:focus-visible{background:#597562!important;color:white!important;outline:2px solid #a5c9b0;outline-offset:0}
#appNav button.active,#appNav button[aria-current=page]{color:#28543d!important;background:#e2f0e4!important}
#appNav button.active i,#appNav button[aria-current=page] i{color:#396e51!important}
/* Componentes coerentes: inputs com 16px para evitar zoom automático no iOS. */
:is(#tab-labels,#tab-counting,#tab-shopping,#tab-customers,#tab-inventory,#tab-needs,#tab-stages,#tab-expenses,#tab-orders,#tab-checklists) :is(input,select,textarea){min-width:0;max-width:100%}
:is(#tab-labels,#tab-counting,#tab-shopping,#tab-customers,#tab-inventory,#tab-needs,#tab-stages,#tab-expenses,#tab-orders,#tab-checklists) :is(input,select,textarea):focus-visible{outline:2px solid #729d80;outline-offset:1px;box-shadow:0 0 0 4px #deeee3}
:is(#tab-labels,#tab-counting,#tab-shopping,#tab-customers,#tab-inventory,#tab-needs,#tab-stages,#tab-expenses) .nf-panel{border:1px solid var(--m753-border);border-radius:20px;box-shadow:var(--m753-shadow)}
:is(#tab-labels,#tab-counting,#tab-shopping,#tab-inventory,#tab-needs,#tab-stages,#tab-expenses) :is(button,.nf-btn){touch-action:manipulation}
/* Label creation: premium interface (original forms and printer integrations unchanged). */
#tab-labels .madu-print-minimal-heading{margin-bottom:14px}
#tab-labels .madu-print-minimal-heading h2{font-size:clamp(22px,3vw,29px);display:flex;gap:12px;align-items:center}
#tab-labels .madu-print-minimal-heading h2 i{padding:12px;border-radius:14px}
#tab-labels .madu-print-minimal-heading p{margin-top:6px}
#tab-labels .glass-card{background:white;border-color:#dbe8db;border-radius:21px!important;box-shadow:var(--m753-shadow);min-width:0}
#tab-labels :is(#productDetailsBox,.madu-product-quantity,.madu-label-count-location){border-radius:16px!important}
#tab-labels .madu-product-quantity{border-color:#bddbc3!important}
#tab-labels :is(#labelProductSearch,#labelProductSelect){min-height:48px;font-size:15px}
#tab-labels :is(button,select){min-height:43px}
/* New label analytics (records-only; no mutation). */
.madu-v753-label-report{padding:clamp(14px,2vw,22px);border:1px solid #d5e4d8;border-radius:22px;background:linear-gradient(160deg,#fafdf9,#f7fbf9);box-shadow:var(--m753-shadow);margin-bottom:20px;display:grid;gap:16px}
.madu-v753-eyebrow{font-weight:850;font-size:10px;letter-spacing:.13em;color:#7b957d}
.madu-v753-report-head h3{font-size:20px;font-weight:850;color:#315a41;display:flex;gap:10px;align-items:center;margin:4px 0}
.madu-v753-report-head h3 i{color:#b7854b}
.madu-v753-report-head p{font-size:12px;color:#6a8172;line-height:1.5}
.madu-v753-label-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.madu-v753-label-filters label{display:grid;align-content:start;gap:6px;font-size:12px;color:#345943;font-weight:750}
.madu-v753-label-filters label i{color:#b18b56;margin-right:4px}
.madu-v753-label-filters select{background:#fff;border:1px solid #cddccf;border-radius:12px;min-height:45px;padding:8px 10px;width:100%;font-weight:650;color:#355c45}
.madu-v753-label-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.madu-v753-label-stats article{border:1px solid #cdded1;border-radius:16px;padding:15px;background:var(--m753-green);display:grid;gap:4px;min-width:0}
.madu-v753-label-stats article i{font-size:18px;color:#598768}
.madu-v753-label-stats article strong{font-size:25px;color:#305e45;line-height:1;font-weight:900}
.madu-v753-label-stats article span{font-size:11px;color:#627b69;font-weight:700}
.madu-v753-label-stats article.is-orange{background:var(--m753-sand);border-color:#edddc2}
.madu-v753-label-stats article.is-orange i,.madu-v753-label-stats article.is-orange strong{color:#99612f}
.madu-v753-label-stats article.is-purple{background:var(--m753-lilac);border-color:#dfd5ed}
.madu-v753-label-stats article.is-purple i,.madu-v753-label-stats article.is-purple strong{color:#736094}
.madu-v753-label-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}
.madu-v753-label-group{padding:13px;border:1px solid #d9e5dc;border-radius:15px;background:#eaf3eb;display:grid;gap:5px;min-width:0}
.madu-v753-label-group.tone-1{background:#e8f0fa;border-color:#d2dfef}
.madu-v753-label-group.tone-2{background:#f8ece4;border-color:#ecdacc}
.madu-v753-label-group.tone-3{background:#f1eafa;border-color:#e4d6ef}
.madu-v753-label-group.tone-4{background:#e6f3ef;border-color:#cfdfd6}
.madu-v753-label-group-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#345c46;font-size:13px}
.madu-v753-label-group-head i{color:#a37848}
.madu-v753-label-group-head b{margin-left:auto;color:#2f6448;font-size:12px}
.madu-v753-label-group p,.madu-v753-label-group small{color:#607969;font-size:12px;overflow-wrap:anywhere}
.madu-v753-refresh{justify-self:start;border:1px solid #cadcca;border-radius:11px;background:#fff;color:#356345;font-weight:750;padding:9px 12px;min-height:42px}
.madu-v753-empty{color:#627568;padding:20px;text-align:center;grid-column:1/-1}
/* Segmented controls: distinctive linked tabs, common palette */
#tab-expenses .sp-v735-tabs,#tab-needs .madu-v742-tabs{background:linear-gradient(135deg,#f5faf5,#e9f2ec);padding:9px;border-radius:19px;border:1px solid #d4e6d9;display:flex;gap:9px;flex-wrap:wrap;box-shadow:var(--m753-shadow)}
#tab-expenses .sp-v735-tab,#tab-needs .madu-v742-tabs button{flex:1 1 132px;min-height:52px;display:flex;justify-content:center;align-items:center;gap:8px;border:1px solid #d3dfd8!important;border-radius:13px!important;background:#fff;color:#456552!important;font-weight:800;font-size:13px!important;transition:all .15s ease;box-shadow:0 3px 9px #254d3210}
#tab-expenses .sp-v735-tab:nth-child(2),#tab-needs .madu-v742-tabs button:nth-child(2){background:#eaf0fb;color:#3a6583!important;border-color:#cfdfee!important}
#tab-expenses .sp-v735-tab:nth-child(3),#tab-needs .madu-v742-tabs button:nth-child(3){background:#fff0dd;color:#8b5d30!important;border-color:#f0dfc7!important}
#tab-expenses .sp-v735-tab.active,#tab-needs .madu-v742-tabs button.is-active{background:#35644b!important;color:#fff!important;border-color:#35644b!important;box-shadow:0 5px 11px #366b4950!important}
.madu-v753-planning-actions{display:flex;gap:9px;flex-wrap:wrap}
.madu-v753-planning-actions button{min-height:45px}
/* Counting cards and responsive stock lookup */
#tab-counting>.nf-panel:nth-of-type(1){background:linear-gradient(130deg,#e2efed,#f5faf4)!important;border-color:#bcd9cf}
#tab-counting>.nf-panel:nth-of-type(2){background:linear-gradient(140deg,#f9faf4,#f4f0e7)}
#tab-counting>.nf-panel:nth-of-type(3){background:linear-gradient(130deg,#eaf0fa,#f9f8fc)}
#tab-counting #maduV737CountSummary{font-weight:750;color:#355d45;padding:18px;line-height:1.65}
#tab-counting .v738-scan-block{background:#eaf4ee;border:1px solid #d5e5d9;border-radius:17px;padding:14px}
#tab-counting :is(#countForm,#countHistory) .nf-btn{border-radius:11px;min-height:44px}
/* Low stock shortcut must be actionable */
.madu-v753-low-button{display:grid;gap:2px;text-align:left;align-items:start;color:#955b2b;font-weight:800;min-height:70px;cursor:pointer;margin-top:5px;width:100%;border-radius:12px;padding:5px 6px;transition:background .15s}
.madu-v753-low-button>span{font-size:25px;font-weight:900}
.madu-v753-low-button small{font-size:11px;line-height:1.4}
.madu-v753-low-button:hover,.madu-v753-low-button.is-selected{background:#ffead1}
/* Orders: status recognition without losing custom client color; clear visual separation */
#tab-orders .madu-order-card{border-width:1px!important;border-left-width:5px!important;margin-bottom:12px}
#tab-orders .madu-order-head-title h3{font-size:clamp(16px,2vw,19px)!important;font-weight:900!important;letter-spacing:-.02em}
#tab-orders .madu-order-head-title h3:before{content:'\f007';font:900 11px 'Font Awesome 6 Free';display:inline-grid;place-items:center;vertical-align:middle;width:25px;height:25px;margin-right:8px;background:#ffffffaa;color:#59785f;border-radius:50%}
#tab-orders .madu-v753-order-ready{--m753-status:#428768;border-left-color:#428768!important;outline:1px solid #cde4d3;outline-offset:-1px}
#tab-orders .madu-v753-order-making{--m753-status:#cb943f;border-left-color:#c99538!important;outline:1px solid #ecdbad;outline-offset:-1px}
#tab-orders .madu-v753-order-pending{--m753-status:#87978c;border-left-color:#a4ada6!important}
#tab-orders .madu-v753-order-late{--m753-status:#cb6655;border-left-color:#c94f55!important;outline:1px solid #eec9c3;outline-offset:-1px}
#tab-orders .madu-v753-order-delivered{--m753-status:#477f65;border-left-color:#477f65!important}
#tab-orders .madu-order-head .madu-order-tag{box-shadow:0 2px 6px #2d4b3017}
#tab-orders .madu-order-filters{background:#f5faf5;padding:10px;border:1px solid #dce9dd;border-radius:19px;gap:8px!important}
#tab-orders .madu-order-filters button:not(.madu-order-extra-trigger){background:#eaf2e9;border:1px solid #d5e3d7;color:#3f624b;min-height:43px;border-radius:12px;font-size:13px;font-weight:800}
#tab-orders .madu-order-filters button:nth-child(2){background:#e5eef9;border-color:#d4e0f2;color:#4c6a85}
#tab-orders .madu-order-filters button:nth-child(3){background:#fbebdc;border-color:#efd6be;color:#9c6736}
#tab-orders .madu-order-filters button:nth-child(4){background:#efe8f8;border-color:#ded2ee;color:#6b5a91}
#tab-orders .madu-order-filters button.active{background:#35664a!important;color:#fff!important;border-color:#35664a!important}
#tab-orders #maduOrderCreate{background:#35654c!important;border:1px solid #2f6545!important;color:#fff!important;min-height:46px;border-radius:13px}
#tab-orders #maduOrderMore{background:#f0e7f8;border:1px solid #d6c5e6;color:#704f8b;min-width:47px;min-height:43px;border-radius:13px}
/* Checklist management: completed/with pending/missed status, station accent stripe */
.madu-v749-run-card{border-left:5px solid var(--madu-station-accent,#80ab8f)!important;background:#f7faf7!important;box-shadow:var(--m753-shadow)}
.madu-v749-run-card.madu-v753-run-completed{background:#e5f3e8!important}
.madu-v749-run-card.madu-v753-run-incomplete{background:#fff2df!important}
.madu-v749-run-card.madu-v753-run-in_progress{background:#e8eef9!important}
.madu-v753-run-person{display:flex;gap:10px;align-items:center;min-width:0}
.madu-v753-run-person>span{min-width:0;display:grid;gap:2px}
.madu-v753-run-avatar{width:43px;height:43px;flex-shrink:0;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 8px #36553c31;background:#e7f1e9}
.madu-v753-run-avatar.initials{display:grid;place-items:center;color:#568267}
.madu-prod-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
/* Mobile: data tables as stacked readable cards, no 2-word vertical columns. */
@media(max-width:740px){
  #appNav button{font-size:14px!important;min-height:51px;gap:12px!important;padding:12px 13px!important}
  #appNav button>i:first-child{font-size:17px!important}
  #tab-labels .glass-card{padding:14px!important}
  .madu-v753-label-filters{grid-template-columns:1fr}
  .madu-v753-label-stats{gap:6px}
  .madu-v753-label-stats article{padding:10px;border-radius:13px}
  .madu-v753-label-stats article strong{font-size:23px}
  .madu-v753-label-stats article span{font-size:10px}
  #tab-shopping .overflow-x-auto,#tab-counting .overflow-x-auto{overflow-x:visible!important}
  #tab-shopping .nf-table,#tab-counting .nf-table{display:block;width:100%;border-collapse:separate}
  #tab-shopping .nf-table thead,#tab-counting .nf-table thead{display:none}
  #tab-shopping .nf-table tbody,#tab-counting .nf-table tbody{display:grid;gap:12px;width:100%}
  #tab-shopping .nf-table tbody>tr,#tab-counting .nf-table tbody>tr{display:grid;gap:9px;grid-template-columns:minmax(0,1fr);min-width:0;border:1px solid #d6e4d9;border-radius:16px;background:#fff;padding:13px;box-shadow:0 5px 14px #33563b0d}
  #tab-shopping .nf-table tbody>tr:nth-child(4n+2),#tab-counting .nf-table tbody>tr:nth-child(4n+2){background:#f2f6fd;border-color:#d9e3f1}
  #tab-shopping .nf-table tbody>tr:nth-child(4n+3),#tab-counting .nf-table tbody>tr:nth-child(4n+3){background:#fff7e9;border-color:#ede1c7}
  #tab-shopping .nf-table td,#tab-counting .nf-table td{display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr);gap:8px;border:0!important;padding:2px 0!important;min-width:0;min-height:28px;text-align:right;align-items:center;font-size:13px;overflow-wrap:anywhere;white-space:normal}
  #tab-shopping .nf-table td:first-child,#tab-counting .nf-table td:first-child{font-size:15px;font-weight:850;color:#2c5340;text-align:left;grid-template-columns:1fr;border-bottom:1px dashed #d4e0d6!important;padding-bottom:9px!important}
  #tab-shopping .nf-table td:before,#tab-counting .nf-table td:before{font-size:11px;font-weight:700;color:#668073;text-align:left}
  #tab-shopping .nf-table td:first-child:before,#tab-counting .nf-table td:first-child:before{display:none}
  #tab-shopping .nf-table td:nth-child(2):before{content:'Fornecedor / Quantidade'}
  #tab-shopping .nf-table td:nth-child(3):before{content:'Disponível / Validade'}
  #tab-shopping .nf-table td:nth-child(4):before{content:'Mínimo / Situação'}
  #tab-shopping .nf-table td:nth-child(5):before{content:'Comprar / Ordem'}
  #tab-shopping .nf-table td:nth-child(6):before{content:'Custo estimado'}
  #tab-counting .nf-table td:nth-child(2):before{content:'Saldo no sistema'}
  #tab-counting .nf-table td:nth-child(3):before{content:'Contagem física'}
  #tab-counting .nf-table td:nth-child(4):before{content:'Diferença'}
  #tab-counting .nf-table td :is(input,button){max-width:100%;min-width:0;min-height:42px;font-size:16px}
  #tab-shopping .nf-table td[colspan],#tab-counting .nf-table td[colspan]{grid-template-columns:1fr;text-align:center}
  #tab-shopping .nf-table td[colspan]:before,#tab-counting .nf-table td[colspan]:before{display:none}
  #tab-customers .madu-customer-shell{background:linear-gradient(#f9fcf9,#fff);border:1px solid #dceadd}
  #tab-customers .madu-customer-panels{grid-template-columns:minmax(0,1fr)!important}
  #tab-customers .madu-customer-list{max-height:260px;grid-template-columns:1fr;overflow:auto}
  #tab-customers .madu-customer-entry{padding:14px;border-radius:13px;min-height:58px}
  #tab-customers .madu-customer-history-order:nth-child(3n+1){background:#eef5ea}
  #tab-customers .madu-customer-history-order:nth-child(3n+2){background:#edf2fa}
  #tab-customers .madu-customer-history-order:nth-child(3n){background:#faf0e8}
  #tab-expenses .sp-v735-tabs,#tab-needs .madu-v742-tabs{gap:6px;padding:7px}
  #tab-expenses .sp-v735-tab,#tab-needs .madu-v742-tabs button{flex:1 1 98px;min-height:59px;flex-direction:column;gap:4px;font-size:11px!important;text-align:center;padding:8px 5px!important}
  #tab-orders .madu-order-filters{display:flex!important;flex-wrap:wrap;gap:7px}
  #tab-orders .madu-order-filters button{flex:1 1 44%;padding:9px!important;line-height:1.35}
  #tab-orders .madu-order-filters #maduOrderRefresh,#tab-orders .madu-order-filters #maduOrderMore{flex:0 0 46px}
  #tab-orders .madu-order-head-title h3{overflow-wrap:anywhere}
  #tab-counting>.nf-panel{padding:14px!important}
  #tab-shopping>.nf-panel{padding:14px!important}
}
/* Personalizing home actions: local, reversible per profile. */
.madu-v753-customize{margin-top:7px;margin-bottom:15px;background:#e9f3ed;border:1px solid #cfe1d5;border-radius:12px;color:#426b54;font-size:12px;font-weight:850;padding:10px 14px;display:inline-flex;align-items:center;gap:8px;min-height:42px}
.madu-v753-customize i{color:#9d7248;font-size:15px}

#maduMobileHome .madu-kitchen-action.madu-v753-user-hidden{display:none!important}
#maduMobileHome .madu-kitchen-action.madu-v753-dragging{outline:3px dashed #a58b54;transform:scale(.97);opacity:.88;z-index:2}
.madu-v753-dialog{border:none;max-width:min(580px,calc(100vw - 22px));width:100%;max-height:90dvh;padding:0;border-radius:22px;box-shadow:0 24px 70px #1119;background:#fff;color:#315741}
.madu-v753-dialog::backdrop{background:#193b2abb}
.madu-v753-dialog-head{display:flex;gap:15px;justify-content:space-between;padding:20px;background:linear-gradient(125deg,#e1f0e5,#ecf5e9)}
.madu-v753-dialog-head h3{font-size:20px;font-weight:900;color:#2e5c42}
.madu-v753-dialog-head p{color:#607868;font-size:12px;margin-top:5px;line-height:1.5}
.madu-v753-dialog-head>button{align-self:start;border:1px solid #bcd2c2;background:#fff;border-radius:11px;min-width:40px;height:40px}
.madu-v753-custom-list{padding:10px 15px;display:grid;gap:7px;overflow:auto;max-height:55dvh}
.madu-v753-custom-entry{display:flex;align-items:center;gap:10px;padding:10px;border-radius:13px;border:1px solid #d8e7db;background:#f9fcf8}
.madu-v753-custom-entry:nth-child(4n+2){background:#ecf3fd}
.madu-v753-custom-entry:nth-child(4n+3){background:#fff4e5}
.madu-v753-custom-entry:nth-child(4n){background:#f4edfb}
.madu-v753-custom-entry>i{font-size:18px;color:#628c78}
.madu-v753-custom-entry strong{font-size:13px;font-weight:850;flex:1;min-width:0}
.madu-v753-custom-entry>div{display:flex;gap:4px}
.madu-v753-custom-entry button{width:35px;height:35px;border:1px solid #cfdbd1;border-radius:9px;background:white;color:#426a50}
.madu-v753-custom-entry button:disabled{opacity:.3}
.madu-v753-custom-footer{padding:12px 16px;border-top:1px solid #e1ebe3;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.madu-v753-custom-footer button{min-height:44px;padding:10px 13px;border-radius:11px;background:#eff4ec;color:#3b634c;font-size:13px;font-weight:850}
.madu-v753-custom-footer button.primary{background:#336c4b;color:white}
.madu-v753-dialog>small{display:block;padding:0 16px 16px;font-size:11px;color:#718572;line-height:1.5}
@media (prefers-reduced-motion:reduce){#appNav button,.madu-v753-customize,.madu-v753-label-report *{transition:none!important}}
/* Dashboard: expiration list as full-width, comprehensible mobile cards. */
@media(max-width:740px){
  #tab-dashboard #expiringItemsTableBody{display:grid;gap:10px;width:100%;min-width:0}
  #tab-dashboard #expiringItemsTableBody>tr{display:grid;gap:8px;padding:13px;border:1px solid #e3d9c9;border-left:4px solid #d19a54;border-radius:15px;background:#fff8e9;box-shadow:0 5px 14px #4a653d0d;min-width:0}
  #tab-dashboard #expiringItemsTableBody>tr:nth-child(even){background:#fff2ed;border-color:#edd8ce;border-left-color:#ca765d}
  #tab-dashboard #expiringItemsTableBody>tr>td{display:grid;grid-template-columns:minmax(98px,39%) minmax(0,1fr);gap:10px;align-items:center;padding:1px 0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;text-align:right;min-width:0}
  #tab-dashboard #expiringItemsTableBody>tr>td:before{color:#71816c;font-size:11px;font-weight:750;text-align:left}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(1){font-weight:850;color:#385b43;border-bottom:1px dashed #e4dbc9!important;padding-bottom:7px!important}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(1):before{content:'Lote'}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(2):before{content:'Produto'}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(3):before{content:'Validade'}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(4):before{content:'Tempo restante'}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(5):before{content:'Responsável'}
  #tab-dashboard #expiringItemsTableBody>tr>td:nth-child(6):before{content:'Ação'}
  #tab-dashboard #expiringItemsTableBody>tr>td button{min-height:40px;border-radius:10px}
  #tab-dashboard #expiringItemsTableBody>tr>td[colspan]{grid-template-columns:1fr;text-align:center}
  #tab-dashboard #expiringItemsTableBody>tr>td[colspan]:before{display:none}
  #tab-dashboard #expiringItemsTableBody:has(tr)>tr>td{min-width:0}
  #tab-dashboard div:has(>#expiringItemsTableBody){overflow-x:visible!important}
  #tab-dashboard div.overflow-x-auto:has(#expiringItemsTableBody){overflow-x:visible!important}
  #tab-dashboard div.overflow-x-auto:has(#expiringItemsTableBody)>table{display:block;width:100%}
  #tab-dashboard div.overflow-x-auto:has(#expiringItemsTableBody)>table>thead{display:none}
  #tab-dashboard div.overflow-x-auto:has(#expiringItemsTableBody)>table>tbody{display:grid}
}
.madu-v753-search-suggestions{position:absolute;inset:auto 0 auto 0;top:100%;z-index:1100;display:grid;gap:3px;max-height:260px;overflow:auto;padding:7px;background:white;border:1px solid #c9dfcd;border-radius:13px;box-shadow:0 14px 30px #203a2e35}
.madu-v753-search-suggestions[hidden]{display:none!important}
.madu-v753-search-suggestions button{display:flex;align-items:center;gap:10px;min-height:45px;padding:9px 10px;text-align:left;min-width:0;border-radius:9px;font-size:13px;color:#365a45;font-weight:700;overflow-wrap:anywhere}
.madu-v753-search-suggestions button>i{color:#a18a59}
.madu-v753-search-suggestions button:hover,.madu-v753-search-suggestions button[aria-selected=true]{background:#e4f1e8}
.madu-v749-not-started{background:#fff0e9!important;border:1px solid #edc3b9!important;border-left:4px solid #cb6558!important;border-radius:14px;padding:14px;color:#8c4b42}

/* ═══════════ Relatórios e impressão — origem: madu-v754.css ═══════════ */
/* Madu V7.54 — correção de localização do relatório; impressão simples e multicor.
   CSS apenas: preserva todos os IDs, validação, produção e rotinas de impressão. */

/* Produtos Prontos: consulta integrada, fechada por padrão e compacta. */
#tab-finished .madu-v754-label-disclosure{display:block;min-width:0;margin:2px 0 13px;border:1px solid #d2dcf1;border-radius:18px;background:linear-gradient(115deg,#e9f0fc 0%,#f4ebfa 55%,#fff4e8 100%);box-shadow:0 5px 15px #344d7010;overflow:hidden}
#tab-finished .madu-v754-label-disclosure>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:13px 15px;cursor:pointer;min-height:65px;user-select:none;color:#34536d}
#tab-finished .madu-v754-label-disclosure>summary::-webkit-details-marker{display:none}
#tab-finished .madu-v754-report-icon{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:14px;background:#dce8fb;color:#46668f;font-size:20px}
#tab-finished .madu-v754-report-text{display:grid;gap:3px;flex:1;min-width:0}
#tab-finished .madu-v754-report-text strong{font-size:14px;font-weight:850;line-height:1.3}
#tab-finished .madu-v754-report-text small{font-size:11px;line-height:1.4;color:#65768c;font-weight:500}
#tab-finished .madu-v754-report-arrow{color:#78599b;font-size:13px;transition:transform .18s}
#tab-finished .madu-v754-label-disclosure[open] .madu-v754-report-arrow{transform:rotate(180deg)}
#tab-finished .madu-v754-label-disclosure:focus-within{outline:2px solid #98aee0;outline-offset:2px}
#tab-finished .madu-v754-label-disclosure-body{padding:0 12px 12px;border-top:1px solid #e3dfec}
#tab-finished .madu-v753-label-report{display:grid;gap:9px;background:#fffcff;border:1px solid #e5dfec;box-shadow:none;margin:10px 0 0;padding:13px;border-radius:15px;min-width:0}
#tab-finished .madu-v753-report-head h3{font-size:15px;line-height:1.35;color:#506687;margin:2px 0}
#tab-finished .madu-v753-report-head h3 i{color:#9470b4}
#tab-finished .madu-v753-report-head p{font-size:11px;line-height:1.45}
#tab-finished .madu-v753-label-filters{gap:7px}
#tab-finished .madu-v753-label-filters label{font-size:11px;color:#556781}
#tab-finished .madu-v753-label-filters select{font-size:13px;min-height:41px;border-color:#d4dcec;color:#405d7a}
#tab-finished .madu-v753-label-stats{gap:7px}
#tab-finished .madu-v753-label-stats article{padding:9px 10px;border-radius:12px;gap:2px}
#tab-finished .madu-v753-label-stats article i{font-size:13px}
#tab-finished .madu-v753-label-stats article strong{font-size:20px}
#tab-finished .madu-v753-label-stats article span{font-size:10px}
#tab-finished .madu-v753-label-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:230px;overflow-y:auto;overscroll-behavior:contain;padding:1px 3px 2px 1px}
#tab-finished .madu-v753-label-group{padding:9px 10px;border-radius:11px;gap:3px}
#tab-finished .madu-v753-label-group-head{font-size:12px}
#tab-finished .madu-v753-label-group-head b{font-size:11px}
#tab-finished .madu-v753-label-group p,#tab-finished .madu-v753-label-group small{font-size:11px}
#tab-finished .madu-v753-refresh{min-height:38px;padding:7px 10px;color:#5a5e93;border-color:#d5d9ed;background:#f0effb;font-size:12px}

/* Imprimir Etiquetas: a página volta a ser uma tarefa rápida, com a paleta do app. */
#tab-labels .madu-print-minimal-heading{padding:18px 21px!important}
#tab-labels .madu-print-minimal-heading h2{color:#3e5172!important;font-weight:850;font-size:clamp(21px,2.7vw,28px)}
#tab-labels .madu-print-minimal-heading h2 i{background:#ffffffbc;color:#8463ac!important;box-shadow:0 2px 8px #6b609014}
#tab-labels .madu-print-minimal-heading p{color:#686a83!important;font-size:12px}
#tab-labels .glass-card:has(#labelProductSearch){border-top:5px solid #92aee0!important}
#tab-labels .glass-card:has(#maduActualLabelPreview){background:#f9f8fc!important;border-color:#e0d8ef!important}
#tab-labels .space-y-2:has(#labelProductSearch){display:grid;gap:8px;min-width:0}
#tab-labels .space-y-2:has(#labelProductSearch)>label{font-weight:800!important;font-size:13px!important;color:#45678d!important}
#tab-labels #labelProductSearch{border:1px solid #bfcfeb!important;background:#fff!important;border-radius:12px!important;min-height:49px!important;color:#304762;font-size:16px!important}
#tab-labels :is(#labelProductSelect,#maduV748LabelMethod){border:1px solid #c7d4e9!important;background:#fff!important;color:#3f5b7e;border-radius:12px}
#tab-labels #productDetailsBox{border-color:#d6cbed!important;background:#f4eefb!important;color:#64557b}
#tab-labels #maduV748LabelMethodWrap{border:1px solid #ddd0ef;background:#f5effd;border-radius:15px;padding:13px}
#tab-labels #maduV748LabelMethodWrap label{color:#73579d!important}
#tab-labels .madu-product-quantity{background:linear-gradient(125deg,#fff0e1,#fff9ee)!important;border:1px solid #efd4b8!important;padding:15px!important;box-shadow:none}
#tab-labels .madu-product-quantity>label{font-size:14px;color:#98643c!important}
#tab-labels .madu-product-quantity p{color:#87694e!important}
#tab-labels .madu-product-quantity .madu-quantity-stepper button{background:#fde3cd!important;color:#8d542b!important;border-color:#eed1b6!important}
#tab-labels .madu-label-count-row{background:#efe9fa;border:1px solid #dcd0ec;border-radius:16px;padding:14px;min-width:0}
#tab-labels .madu-label-count-row label{color:#6f5990!important}
#tab-labels .madu-label-count-row .madu-quantity-stepper button{background:#e5daf5!important;color:#6f4f99!important;border-color:#d8c7ee!important}
#tab-labels .madu-label-count-row p{color:#7b6794!important}
#tab-labels .madu-v754-optional-location{border:1px solid #d0e2dc;background:#ecf7f2;border-radius:14px;overflow:hidden}
#tab-labels .madu-v754-optional-location>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:12px 14px;font-size:12px;font-weight:750;color:#3e735e;cursor:pointer;min-height:46px}
#tab-labels .madu-v754-optional-location>summary::-webkit-details-marker{display:none}
#tab-labels .madu-v754-optional-location>summary i:last-child{margin-left:auto;transition:transform .15s}
#tab-labels .madu-v754-optional-location[open]>summary i:last-child{transform:rotate(180deg)}
#tab-labels .madu-v754-optional-location>.madu-label-count-location{padding:0 13px 13px;border:none;background:transparent!important}
#tab-labels .madu-label-compact-note{background:#eef1fb!important;color:#647495!important}
#tab-labels button[onclick="openPrinterSetup()"]{border-color:#d6ceeb!important;color:#6a5a93!important;background:#f4effa!important}
#tab-labels #reprintLastLabelsBtn{border-color:#d7dcec!important;background:#f1f4fa!important;color:#566b91!important}
#tab-labels #labelPrintFeedback{font-weight:650}
@media(max-width:740px){
  #tab-finished .madu-v753-label-filters{grid-template-columns:1fr 1fr!important}
  #tab-finished .madu-v753-label-filters label:last-child{grid-column:1/-1}
  #tab-finished .madu-v753-label-groups{grid-template-columns:1fr;max-height:210px}
  #tab-finished .madu-v753-label-stats article{padding:9px 6px}
  #tab-finished .madu-v753-label-stats article strong{font-size:18px}
  #tab-finished .madu-v753-label-stats article span{font-size:9.5px}
  #tab-labels .madu-print-minimal-heading{padding:15px!important}
  #tab-labels .space-y-2:has(#labelProductSearch){padding:11px}
  #tab-labels .madu-product-quantity{padding:11px!important}
  #tab-labels .madu-label-count-row{padding:11px}
}
/* Extras importantes continuam acessíveis, mas não disputam atenção com a impressão. */
#tab-labels #maduLabelOptionsButton{display:flex!important;align-items:center;gap:10px;color:#675482!important;min-height:47px!important;font-size:13px!important;font-weight:800;text-align:left}
#tab-labels #maduLabelOptionsButton span{flex:1}
#tab-labels #maduLabelOptionsButton .fa-chevron-down{transition:transform .16s}
#tab-labels .madu-label-advanced{display:none!important}
#tab-labels.madu-label-extras-open .madu-label-advanced{display:revert!important}
#tab-labels.madu-label-extras-open .grid.madu-label-advanced{display:grid!important}
#tab-labels .madu-label-operator{display:none!important}
#tab-labels.madu-label-extras-open .madu-label-operator{display:block!important}
#tab-labels.madu-label-extras-open #maduLabelOptionsButton .fa-chevron-down{transform:rotate(180deg)}
#tab-labels #maduLabelOptionsButton:focus-visible,#tab-finished .madu-v754-label-disclosure>summary:focus-visible,#tab-labels .madu-v754-optional-location>summary:focus-visible{outline:3px solid #899ed7;outline-offset:2px}
#tab-labels h3{color:#566b94!important}
#tab-labels .madu-label-advanced{color:#566b94!important}
#tab-labels .madu-v754-optional-location:focus-within{outline:2px solid #96b5bb;outline-offset:1px}

/* ═══════════ Contagem de estoque e menu lateral — origem: madu-v756.css ═══════════ */
/* V7.56 · Contagem física legível e menu lateral com contraste consistente */
:root{--m756-ink:#294a3a;--m756-outline:#d3e1d7;--m756-sage:#edf4ee;--m756-shadow:0 6px 20px #294e3a12}
/* Desktop: o topo continua trazendo a marca; o conteúdo do menu é mais claro. */
#appSidebar{background:#edf3ef!important;color:var(--m756-ink)!important}
#appSidebar #appBrandHeader{background:#355843!important;border-color:#52745c!important;color:#fff!important}
#appSidebar #mobileUserInfo{background:#e0ece4!important;color:#2f503e!important;border-color:#cbded0!important}
#appSidebar #mobileUserInfo #userNameDisplay{font-size:14px!important;color:#244834!important;font-weight:800!important}
#appSidebar #mobileUserInfo button{color:#35654d!important}
#appSidebar #appNav{background:#edf3ee!important;color:#315643!important;padding:12px!important}
#appSidebar #appNav>p,#appSidebar #appNav .v737-nav-group{font-size:12px!important;color:#627b69!important;letter-spacing:.07em;font-weight:850!important}
#appSidebar #appNav button[id^="nav-"]{
  font-size:15px!important;font-weight:720!important;line-height:1.4!important;
  color:#315340!important;min-height:51px!important;
  border-radius:13px!important;background:#f9fbf9!important;border:1px solid #d6e4d9!important;
  box-shadow:0 2px 7px #25473508!important;outline-offset:2px!important;
  display:flex;align-items:center;gap:10px;padding:11px 12px!important;
  margin:4px 0!important;text-align:left;
}
#appSidebar #appNav button[id^="nav-"]>span{min-width:0;overflow-wrap:normal;word-break:normal}
#appSidebar #appNav button[id^="nav-"]>i:first-child{width:26px!important;font-size:17px!important;color:#397b68!important;filter:none!important;flex-shrink:0}
#appSidebar #appNav button#nav-labels{background:#edf4fd!important;border-color:#d4e3f5!important}
#appSidebar #appNav button#nav-labels>i:first-child{color:#426eb1!important}
#appSidebar #appNav button#nav-orders{background:#fdf1e8!important;border-color:#f1dccb!important}
#appSidebar #appNav button#nav-orders>i:first-child{color:#a16c45!important}
#appSidebar #appNav button#nav-checklists{background:#e9f5eb!important;border-color:#cde6d4!important}
#appSidebar #appNav button#nav-checklists>i:first-child{color:#46875b!important}
#appSidebar #appNav button#nav-scanner,#appSidebar #appNav button#nav-productivity{background:#f1eafa!important;border-color:#e3d6f4!important}
#appSidebar #appNav button#nav-scanner>i:first-child,#appSidebar #appNav button#nav-productivity>i:first-child{color:#785e9e!important}
#appSidebar #appNav button#nav-counting,#appSidebar #appNav button#nav-transfers,#appSidebar #appNav button#nav-inventory{background:#fff4e5!important;border-color:#ebdcc1!important}
#appSidebar #appNav button#nav-counting>i:first-child,#appSidebar #appNav button#nav-transfers>i:first-child,#appSidebar #appNav button#nav-inventory>i:first-child{color:#a2733e!important}
#appSidebar #appNav button[id^="nav-"]:hover{filter:brightness(.975);border-color:#b7cdbf!important}
#appSidebar #appNav button[id^="nav-"].bg-costeira-500,
#appSidebar #appNav button[id^="nav-"][aria-current="page"]{
  color:#264e3c!important;background:#d3e8dc!important;border:2px solid #64957a!important;
  box-shadow:inset 4px 0 #448564,0 2px 8px #42694a21!important;
  font-weight:850!important;padding-left:11px!important;
}
#appSidebar #appNav button[id^="nav-"].bg-costeira-500>i:first-child,
#appSidebar #appNav button[id^="nav-"][aria-current="page"]>i:first-child{color:#356f52!important}
#appSidebar #appNav #nav-products span small{color:#668071!important;font-size:12px!important}
#appSidebar #appNav details>summary{color:#4d705a!important;font-size:13px!important;font-weight:760!important}
#appSidebar #appNav #maduPrinterInlinePanel{background:#e4eee7!important;border-color:#c9ddd1!important}
#appSidebar #appNav #maduPrinterInlinePanel :is(span,p){color:#3e654e!important}
#appSidebar #appNav #maduPrinterInlinePanel #maduWorkerStatus{color:#355c46!important}
#appSidebar #appNav #maduPrinterInlinePanel #maduWorkerDetails{background:#e9f2ed!important}
#appSidebar #appNav #maduQuickProductsNav{background:#f0e8f9!important;color:#654782!important}
/* Contagem: busca que localiza sem apagar a quantidade já informada. */
#tab-counting .m756-count-search{background:linear-gradient(122deg,#eaf1fb,#f7fbff);border:1px solid #cbddec;border-radius:17px;padding:14px;display:grid;gap:9px;min-width:0}
#tab-counting .m756-count-search>label{color:#365d81;font-weight:850;font-size:14px;display:flex;gap:9px;align-items:center}
#tab-counting .m756-count-search>label i{color:#5988b4}
#tab-counting .m756-count-search-field{display:flex;align-items:center;background:#fff;border:1px solid #c3d6e5;border-radius:12px;padding:0 10px;min-height:49px;gap:10px}
#tab-counting .m756-count-search-field>i{color:#5987ac}
#tab-counting #m756CountSearch{display:block;flex:1;min-width:0;width:100%;font-size:16px;line-height:1.4;border:0;background:transparent;outline:0;color:#2c4d3f;padding:10px 1px}
#tab-counting .m756-count-search-field>button{border:0!important;background:transparent!important;color:#668478!important;min-width:34px!important;min-height:42px;display:grid;place-items:center}
#tab-counting .m756-count-search-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#5d7891;font-size:12px;font-weight:650}
#tab-counting .m756-count-empty{padding:17px;text-align:center;background:#fff3e6;color:#9a5e33;border-radius:12px;font-weight:700}
#tab-counting .m756-count-row[hidden],#tab-counting .m756-count-row.m756-filtered{display:none!important}
#tab-counting .m756-count-number{display:none}
#tab-counting .m756-cell-label{font-size:12px;font-weight:750;color:#678072}
#tab-counting .m756-count-table td .count-variance{font-weight:800}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 #tab-counting .m756-count-table-wrap{overflow-x:visible!important;min-width:0!important}
 #tab-counting table.m756-count-table{display:block!important;min-width:0!important;width:100%!important}
 #tab-counting table.m756-count-table thead{display:none!important}
 #tab-counting table.m756-count-table tbody{display:grid!important;gap:12px!important;width:100%!important}
 #tab-counting table.m756-count-table tr.m756-count-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;min-width:0!important;width:100%!important;
  padding:15px!important;border:1px solid #d8e4dc!important;border-radius:19px!important;
  box-shadow:var(--m756-shadow)!important;background:#fefefe!important;align-items:stretch!important;
 }
 #tab-counting table.m756-count-table tr.m756-count-row:nth-child(4n+2){background:#f0f5fc!important;border-color:#cdddef!important}
 #tab-counting table.m756-count-table tr.m756-count-row:nth-child(4n+3){background:#fff7eb!important;border-color:#ecdec4!important}
 #tab-counting table.m756-count-table tr.m756-count-row:nth-child(4n+4){background:#f2eefb!important;border-color:#dfd5f0!important}
 #tab-counting table.m756-count-table tr.m756-count-row td,
 #tab-counting table.m756-count-table tr.m756-count-row td:first-child{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;
  grid-template-columns:none!important;min-width:0!important;width:100%!important;
  border:0!important;box-shadow:none!important;padding:0!important;
  margin:0!important;text-align:left!important;white-space:normal!important;word-break:normal!important;
  font-size:14px!important;line-height:1.4!important;background:transparent!important;
 }
 #tab-counting table.m756-count-table tr.m756-count-row td::before{content:none!important;display:none!important}
 #tab-counting table.m756-count-table td.m756-count-name{grid-column:1/-1!important;order:0;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:9px!important;padding-bottom:9px!important;border-bottom:1px dashed #ccdbd3!important}
 #tab-counting .m756-count-number{display:grid!important;place-items:center;width:27px;height:27px;flex-shrink:0;border-radius:9px;background:#e0efe6;color:#527861;font-size:12px}
 #tab-counting .m756-count-name strong{font-size:16px!important;color:#30513f!important;font-weight:850;min-width:0;overflow-wrap:anywhere}
 #tab-counting table.m756-count-table td.m756-count-balance{grid-column:1!important;order:1;background:#edf5ef!important;border-radius:11px!important;padding:11px!important;gap:6px!important}
 #tab-counting table.m756-count-table td.m756-count-difference{grid-column:2!important;order:2;background:#f0edf8!important;border-radius:11px!important;padding:11px!important;gap:6px!important}
 #tab-counting .m756-count-balance strong,#tab-counting .m756-count-difference strong{font-size:16px!important;color:#2f5643!important;overflow-wrap:anywhere}
 #tab-counting table.m756-count-table td.m756-count-physical{grid-column:1/-1!important;order:3;gap:7px!important}
 #tab-counting .m756-count-physical label{color:#496c56;font-size:13px;font-weight:820}
 #tab-counting input.count-physical{width:100%!important;max-width:100%!important;min-width:0!important;min-height:52px!important;border:1px solid #cadccf!important;border-radius:12px!important;padding:12px 14px!important;font-size:18px!important;font-weight:720!important;background:#fff!important;color:#294839!important}
 #tab-counting .m756-count-table-wrap .overflow-x-auto{overflow-x:visible!important}
}
@media(min-width:768px){
 #tab-counting table.m756-count-table td.m756-count-name{font-weight:750}
 #tab-counting table.m756-count-table td .m756-cell-label{display:none}
 #tab-counting .m756-count-table td.m756-count-name strong{display:inline}
 #tab-counting table.m756-count-table input.count-physical{width:138px;max-width:100%;min-height:43px}
}
/* Rodapé e ações auxiliares legíveis no menu claro. */
#appSidebar .sidebar-printer-footer{background:#dceae0!important;color:#365d47!important;border-color:#c8ddce!important;font-size:12px!important;line-height:1.35!important}
#appSidebar .sidebar-printer-footer button{color:#315b48!important;font-weight:750}
#appSidebar #appNav button[data-madu-install],#appSidebar #appNav #maduMobileOtherNavToggle{font-size:14px!important;color:#38614b!important;min-height:45px;border-radius:11px}
#appSidebar #appNav #maduMobileOtherNavToggle{background:#dbe8e0!important}
#appSidebar #appNav #maduPrinterSettingsDisclosure>summary{font-size:13px!important;line-height:1.45!important;color:#355e49!important}

/* ═══════════ Contagem · sugestões de busca — origem: madu-v757.css ═══════════ */
/* V7.57: busca por nome com sugestões acessíveis na contagem */
#tab-counting .m757-count-suggestions[hidden]{display:none!important}
#tab-counting .m757-count-suggestions{max-height:245px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:5px;background:#fff;border:1px solid #c7dbe8;border-radius:13px;padding:7px;box-shadow:0 12px 24px #2d4c6320;position:relative;z-index:12;margin-top:-5px}
#tab-counting .m757-count-option{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7fbfd!important;color:#294f43!important;border:1px solid transparent!important;border-radius:10px;padding:11px 12px!important;text-align:left!important;min-height:47px!important;font:inherit!important;width:100%;cursor:pointer}
#tab-counting .m757-count-option:nth-child(even){background:#eef4fc!important}
#tab-counting .m757-count-option:hover,#tab-counting .m757-count-option:focus-visible,#tab-counting .m757-count-option[aria-selected="true"]{outline:2px solid #77a5c1!important;outline-offset:-2px!important;background:#e5f0f9!important}
#tab-counting .m757-count-option strong{font-size:13px;overflow-wrap:anywhere;min-width:0}
#tab-counting .m757-count-option small{font-size:11px;color:#698577;white-space:nowrap;flex-shrink:0}
#tab-counting .m757-count-empty{padding:12px;color:#777d6c;font-size:12px}
/* A regra mobile original tinha maior especificidade e forçava display:grid até em itens filtrados. */
#tab-counting table.m756-count-table tr.m756-count-row[hidden],
#tab-counting table.m756-count-table tr.m756-count-row.m756-filtered{display:none!important}
#tab-counting .m756-count-row{scroll-margin-top:185px}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){#tab-counting .m757-count-suggestions{max-height:200px}}

/* ═══════════ Embalagens — origem: madu-v758.css ═══════════ */
/* V7.58 - legibilidade e equivalencia de embalagens */
.madu-v758-pack-panel{border:1px solid #d9c9e9;background:linear-gradient(140deg,#faf5ff,#f3ecfb);border-radius:18px;padding:15px;margin:12px 0;display:grid;gap:10px;color:#4b3c60}
.madu-v758-pack-panel[hidden]{display:none!important}
.madu-v758-pack-head{display:flex;align-items:center;gap:12px}.madu-v758-pack-head>i{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e9d9fa;color:#77558f;font-size:20px}.madu-v758-pack-head div{display:flex;flex-direction:column;gap:3px}.madu-v758-pack-head strong{font-size:15px}.madu-v758-pack-head small{font-size:12px;color:#746788}
.madu-v758-pack-panel label{display:flex;flex-direction:column;font-size:13px;font-weight:750;gap:7px}.madu-v758-pack-panel input{background:white;color:#293e32;border:1px solid #cfc3d9;border-radius:12px;padding:12px;min-height:44px;width:100%;font:inherit}.madu-v758-pack-panel input[readonly]{background:#f1f1f5}
.madu-v758-pack-preview{background:#fff;border:1px solid #e7dfef;border-radius:12px;padding:12px;font-size:13px;line-height:1.55;margin:0}.madu-v758-pack-note{font-size:12px;line-height:1.55;color:#746788}
.madu-v758-line-pack{font-weight:700;color:#755593}.madu-v758-stock-equivalence{font-size:12px!important;font-weight:750;color:#6b548e!important;line-height:1.5;margin:6px 0!important;white-space:normal!important;overflow-wrap:anywhere}.madu-v758-field-help{display:block;color:#667568;line-height:1.5;font-weight:500;margin-top:4px}
@media(max-width:680px){.madu-v758-pack-panel{padding:13px}.madu-v758-stock-equivalence{font-size:12px!important}}

.madu-v758-report{background:linear-gradient(135deg,#f0e9f9,#f8f6fd);border:1px solid #d9c9e7;border-radius:18px;margin:12px 0;padding:0;overflow:hidden}.madu-v758-report[hidden]{display:none!important}.madu-v758-report summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:16px;color:#5c4974}.madu-v758-report summary::-webkit-details-marker{display:none}.madu-v758-report summary>i:first-child{font-size:21px;color:#795ba0;background:#ece0fa;border-radius:12px;padding:11px}.madu-v758-report summary>span{flex:1;display:flex;flex-direction:column;gap:4px}.madu-v758-report summary strong{font-size:14px}.madu-v758-report summary small{font-size:12px;line-height:1.3;font-weight:500}.madu-v758-report[open] summary>i:last-child{transform:rotate(180deg)}.madu-v758-report-rows{padding:10px 14px 16px;display:grid;gap:10px}.madu-v758-report-card{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid #e3d9ef;border-radius:14px;background:white;padding:12px}.madu-v758-report-card>div{min-width:0}.madu-v758-report-card strong{font-size:13px;color:#3d4f43}.madu-v758-report-card p{font-size:12px;color:#6f5a85;margin:5px 0;overflow-wrap:anywhere}.madu-v758-report-card>b{white-space:nowrap;font-size:13px;color:#405d4b}
@media(max-width:500px){.madu-v758-report-card{align-items:flex-start;flex-direction:column;gap:7px}.madu-v758-report-card>b{align-self:flex-end}}

/* ═══════════ Encomendas · catálogo e balanço — origem: madu-v759-orders.css ═══════════ */
/* V7.59 · Encomendas: cor de status, cliente bem delimitado, catálogo e balanço. */
#tab-orders .madu-orders-grid{gap:14px;align-items:start}
#tab-orders .madu-order-card{color:#2f4c3d!important;border-radius:19px!important;border:1px solid #d8e3d9!important;border-left:6px solid #b4c0b6!important;box-shadow:0 8px 19px #344d3810!important;background:#f4f5f3!important;overflow:hidden}
#tab-orders .madu-order-card.madu-v753-order-ready{background:linear-gradient(155deg,#e4f5e8,#dcf0e0)!important;border-color:#b2d9bb!important;border-left-color:#4f9b64!important;--m753-status:#4f9b64}
#tab-orders .madu-order-card.madu-v753-order-making{background:linear-gradient(155deg,#fff1dd,#ffead1)!important;border-color:#f0c994!important;border-left-color:#dc9a45!important;--m753-status:#dc9a45}
#tab-orders .madu-order-card.madu-v753-order-pending{background:linear-gradient(155deg,#f6f8f7,#eaf0ed)!important;border-color:#d5ded8!important;border-left-color:#97aca0!important;--m753-status:#97aca0}
#tab-orders .madu-order-card.madu-v753-order-late{background:linear-gradient(155deg,#fff0eb,#fce0da)!important;border-color:#e9bab2!important;border-left-color:#d45b57!important;--m753-status:#d45b57}
#tab-orders .madu-order-card.madu-v753-order-delivered{background:#e8f1ed!important;border-color:#bdd6c8!important;border-left-color:#4a8069!important}
#tab-orders .madu-order-card .madu-order-head{background:rgba(255,255,255,.32)!important;border-bottom:1px solid #455e4318!important}
#tab-orders .madu-order-card .madu-order-head h3{color:#294c3a!important;font-weight:900!important;font-size:1.15rem!important}
#tab-orders .madu-order-card .madu-order-head small{color:#63766a!important;opacity:1!important}
#tab-orders .madu-order-card .madu-order-item{border-color:#38554425!important}
#tab-orders .madu-order-card .madu-order-foot{background:rgba(255,255,255,.35)!important;color:#355343!important}
.madu-v759-customer-group{grid-column:1/-1;background:#f7faf7;border:1px solid #dce5dc;border-radius:22px;padding:11px;box-shadow:0 10px 30px #34523a0d}
.madu-v759-group-head{display:flex;align-items:center;gap:12px;padding:11px 13px 17px;color:#2f5440}.madu-v759-group-head>i{background:#dcece3;color:#3c7657;padding:13px;border-radius:12px}.madu-v759-group-head strong{display:block;font-size:1.08rem}.madu-v759-group-head small{display:block;color:#63766b;font-size:.79rem}.madu-v759-group-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.madu-v759-group-orders .madu-order-card{margin:0!important}
.madu-v759-tabs{display:flex;gap:9px;flex-wrap:wrap;background:#f7f9f6;border:1px solid #dce6dc;border-radius:18px;padding:8px;margin:12px 0}
.madu-v759-tabs button{display:inline-flex;align-items:center;gap:8px;padding:13px 16px;min-height:48px;border-radius:13px;font-weight:800;color:#466257;background:#fff;border:1px solid #e0e9df;font-size:.88rem}
.madu-v759-tabs button[data-v759-tab=agenda]{--tab:#4e8d65;--bg:#e0f0e5}.madu-v759-tabs button[data-v759-tab=catalog]{--tab:#976c3c;--bg:#fff0de}.madu-v759-tabs button[data-v759-tab=report]{--tab:#6852a2;--bg:#ece7fa}
.madu-v759-tabs button i{color:var(--tab)}.madu-v759-tabs button.active{background:var(--bg);color:var(--tab);border-color:var(--tab);box-shadow:0 4px 10px #33543a14}
.madu-v759-panel{padding:clamp(12px,2vw,23px);border:1px solid #dbe6dc;border-radius:20px;background:#fff;min-width:0}.madu-v759-panel[hidden],.madu-v759-editor[hidden]{display:none!important}
.madu-v759-panel-intro{display:flex;gap:15px;justify-content:space-between;align-items:start;margin-bottom:18px;flex-wrap:wrap}
.madu-v759-panel-intro h3{font-size:1.27rem;font-weight:900;color:#2e533f}.madu-v759-panel-intro h3 i{color:#9a70a9;margin-right:9px}.madu-v759-panel-intro p{color:#678072;line-height:1.5;max-width:650px}
.madu-v759-cta{display:inline-flex;justify-content:center;align-items:center;gap:9px;background:#3d7456!important;color:#fff!important;padding:13px 16px;border-radius:12px;font-weight:800;min-height:44px;border:0}
.madu-v759-editor{padding:16px;background:#f6f9f7;border-radius:17px;border:1px solid #dce8e0;margin:14px 0}.madu-v759-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.madu-v759-fields label,.madu-v759-report-filters label{display:flex;flex-direction:column;gap:5px;font-weight:700;color:#435f50;font-size:.86rem}.madu-v759-fields input,.madu-v759-fields select,.madu-v759-report-filters input,.madu-v759-search input,.madu-v759-row-catalog select{width:100%;border:1px solid #cddbd1;background:#fff;color:#244330;border-radius:13px;padding:12px;min-height:47px;font-size:16px;min-width:0}
.madu-v759-upload{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#526e5e;font-weight:800;margin:14px 0}.madu-v759-upload input{max-width:100%;font-size:.82rem}#maduV759CatalogPreview{width:90px;height:90px;object-fit:cover;border-radius:13px;margin:8px 0}
.madu-v759-actions{display:flex;gap:10px;justify-content:end}.madu-v759-actions button{border:1px solid #ceded2;padding:11px 14px;border-radius:12px;background:#fff;color:#3e6650;font-weight:700}
.madu-v759-search{display:flex;align-items:center;gap:10px;padding:8px 2px;margin:14px 0;color:#528c6a}.madu-v759-catalog-list{display:grid;gap:10px}.madu-v759-catalog-item{display:flex;align-items:center;gap:12px;padding:11px;border-radius:15px;background:#eef5f0;border:1px solid #d4e6d9}.madu-v759-catalog-item:nth-child(3n+2){background:#f5eefb;border-color:#e5d7f4}.madu-v759-catalog-item:nth-child(3n+3){background:#fff3e6;border-color:#f1dfc4}.madu-v759-catalog-item.is-inactive{opacity:.68}
.madu-v759-catalog-thumb{width:65px;height:65px;flex:none;display:grid;place-items:center;border-radius:12px;background:#fff9;color:#8a6ab1;font-size:23px}.madu-v759-catalog-thumb img{width:100%;height:100%;object-fit:cover;border-radius:12px}.madu-v759-catalog-info{min-width:0;flex:1}.madu-v759-catalog-info strong{display:block;color:#31513d;font-size:.95rem}.madu-v759-catalog-info small{display:block;font-size:.77rem;color:#708074}.madu-v759-catalog-info span{font-weight:800;color:#396e50}.madu-v759-catalog-actions{display:flex;gap:7px;flex-wrap:wrap}.madu-v759-catalog-actions button{border:1px solid #a8bfad;color:#3a5e49;background:#fff;padding:9px;border-radius:10px;font-size:.82rem;font-weight:750}
.madu-v759-row-catalog{background:#ecf4fb;border:1px solid #d1e0ef;border-radius:13px;padding:12px;margin:9px 0}.madu-v759-row-catalog label{display:flex;flex-direction:column;gap:6px;color:#405c79;font-weight:800}.madu-v759-line-price{color:#516e82;font-size:.82rem;margin-top:6px;display:block}
.madu-v759-price-box{background:#fff0df;border:1px solid #efd1ac;padding:14px;border-radius:14px;margin-bottom:14px}.madu-v759-price-header{color:#91623d;display:flex;gap:8px;align-items:center;margin-bottom:4px}.madu-v759-price-box p{font-size:.85rem;color:#896442;margin:5px 0 12px}
.madu-v759-report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}.madu-v759-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:15px 0}.madu-v759-stat-grid>div{padding:16px;background:#e5f2e9;border-radius:16px;min-width:0}.madu-v759-stat-grid>div:nth-child(2){background:#fff0df}.madu-v759-stat-grid>div:nth-child(3){background:#eee8fa}.madu-v759-stat-grid small{display:block;color:#647667;font-size:.79rem}.madu-v759-stat-grid strong{display:block;color:#2f5642;font-size:1.22rem;overflow-wrap:anywhere}.madu-v759-report-explain{color:#6e7b72;line-height:1.5;font-size:.85rem;margin-bottom:14px}.madu-v759-report-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.madu-v759-report-cols section{padding:14px;background:#f7f9f7;border-radius:16px;min-width:0}.madu-v759-report-cols h4{color:#385b45;font-weight:900;margin-bottom:11px}.madu-v759-report-cols h4 i{color:#9880b6;margin-right:8px}.madu-v759-rank{display:flex;gap:8px;align-items:center;border-bottom:1px solid #d9e6db;padding:10px 0;font-size:.87rem}.madu-v759-rank>b{color:#a37b49}.madu-v759-rank>span{flex:1;min-width:0;overflow-wrap:anywhere}.madu-v759-rank>span small{display:block;color:#738277}.madu-v759-rank>strong{flex:none;color:#356747;white-space:nowrap}.madu-v759-panel .error{color:#b94342;font-weight:700}
@media(max-width:700px){.madu-v759-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.madu-v759-tabs button{flex-direction:column;text-align:center;padding:10px 4px;font-size:.73rem;gap:5px;min-width:0}.madu-v759-tabs button i{font-size:1.1rem}.madu-v759-group-orders,.madu-v759-report-cols,.madu-v759-fields{grid-template-columns:1fr}.madu-v759-group-head{padding:8px 6px 13px}.madu-v759-catalog-item{flex-wrap:wrap}.madu-v759-catalog-actions{width:100%;justify-content:flex-end}.madu-v759-report-filters label{flex:1}.madu-v759-stat-grid{grid-template-columns:1fr 1fr}.madu-v759-stat-grid>div:last-child{grid-column:1/-1}.madu-v759-rank>strong{font-size:.77rem}}

.madu-v759-report-filters input,.madu-v759-fields input,.madu-v759-fields select{box-sizing:border-box;max-width:100%}
@media(max-width:700px){.madu-v759-report-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.madu-v759-report-filters label{min-width:0;width:100%}.madu-v759-report-filters .madu-v759-cta{grid-column:1/-1}.madu-v759-report-filters input{min-width:0;width:100%}}
.madu-v759-catalog-suggestions{display:grid;gap:4px;margin:5px 0 8px}.madu-v759-catalog-suggestions button{width:100%;background:#fff;border:1px solid #d0e0ed;border-radius:10px;text-align:left;color:#3b5a78;padding:9px;font-size:.82rem;font-weight:700}.madu-v759-catalog-suggestions button:hover{background:#e7f3ff}.madu-v759-inline-search{display:flex;gap:7px;align-items:center}.madu-v759-inline-search input{width:100%;box-sizing:border-box;border:1px solid #cad8e7;background:#fff;padding:12px;border-radius:12px;font-size:16px;color:#294862;min-width:0}

/* ═══════════ Visual · legibilidade e navegação — origem: madu-premium-v761.css ═══════════ */
/* Madu V7.61 — ajustes locais de legibilidade, organização e navegação.
   Preserva as cores da marca, os componentes e as regras de visibilidade. */
:root{--madu-focus:#315e47;--madu-surface:#f7faf7;--madu-line:#d3e1d7;--madu-touch:44px}
main>section{scroll-margin-top:16px}
main :is(button,a,input,select,textarea,summary):focus-visible,.madu-v753-dialog button:focus-visible{outline:3px solid var(--madu-focus);outline-offset:3px}
main :is(button,a),#appNav button{-webkit-tap-highlight-color:rgba(71,111,85,.14)}
.madu-shortcut-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
.madu-shortcut-toolbar .madu-v753-customize{margin:0;min-height:var(--madu-touch);font-size:13px}
.madu-shortcut-options{min-height:var(--madu-touch);padding:10px 14px;background:#fff;border:1px solid var(--madu-line);border-radius:12px;color:#355c45;font-size:13px;font-weight:750}
.madu-shortcut-options[hidden]{display:none!important}
.madu-shortcut-toolbar button:disabled{opacity:.5;cursor:not-allowed}
.madu-shortcut-status{font-size:12px;line-height:1.5;color:#536c5c;margin:5px 0 14px;overflow-wrap:anywhere}
.madu-shortcut-status:empty{display:none}
.madu-shortcut-status.is-error{padding:10px 12px;color:#8b3f2b;background:#fff1e8;border:1px solid #ebc5b5;border-radius:10px}
.madu-shortcuts-editing #maduMobileHome .madu-kitchen-action{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline:1px dashed #789683;outline-offset:2px}
.madu-shortcuts-editing #maduMobileHome .madu-kitchen-action.madu-v753-dragging{cursor:grabbing;outline:3px solid #547c62;outline-offset:2px;opacity:.8;transform:scale(.985);box-shadow:0 8px 20px #294c3526}
.madu-shortcuts-editing #maduV753Customize{background:#345f48;border-color:#345f48;color:#fff}
.madu-shortcuts-editing #maduV753Customize i{color:inherit}
.madu-v753-dialog{max-width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow:auto;overscroll-behavior:contain}
.madu-v753-dialog .madu-v753-dialog-head{background:#eef5ef;padding:18px;gap:12px}
.madu-v753-dialog .madu-v753-dialog-head h3{font-size:20px;line-height:1.3}
.madu-v753-dialog .madu-v753-dialog-head>button{min-width:var(--madu-touch);height:var(--madu-touch);flex-shrink:0}
.madu-v753-dialog .madu-v753-custom-list{max-height:min(48dvh,460px);padding:12px 16px;gap:8px;scroll-padding-block:8px}
.madu-v753-dialog .madu-v753-custom-entry{flex-wrap:wrap;background:#f8fbf8;border-color:var(--madu-line);gap:10px}
.madu-v753-dialog .madu-v753-custom-entry strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere;flex:1 1 120px}
.madu-v753-dialog .madu-v753-custom-entry>div{margin-left:auto;gap:6px}
.madu-v753-dialog .madu-v753-custom-entry button{width:var(--madu-touch);height:var(--madu-touch);flex-shrink:0}
.madu-v753-dialog .madu-v753-custom-entry button:disabled{opacity:.35}
.madu-v753-dialog .madu-v753-custom-entry button[aria-pressed=false]{background:#f3f0ea;color:#71614d}
.madu-v753-dialog .madu-v753-custom-footer{background:#fff;position:sticky;bottom:0;z-index:1;box-shadow:0 -3px 12px #315e4708;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.madu-v753-dialog .madu-shortcut-status{margin:4px 16px 12px}
/* Um retorno consistente para mouse, teclado e toque, sem animações de página. */
#maduNavigationBar{display:flex;align-items:center;gap:10px;margin:0 0 16px}
#maduNavigationBack{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--madu-touch);min-width:var(--madu-touch);padding:10px 14px;border:1px solid var(--madu-line);border-radius:12px;background:#fff;color:#345c45;font-size:14px;font-weight:750;box-shadow:0 2px 6px #284c3206;touch-action:manipulation}
#maduNavigationBack:hover{background:#edf4ee}
#maduNavigationBar[hidden],#maduNavigationBack[hidden]{display:none!important}
@media screen and (min-width:768px){
 /* Os mesmos atalhos passam a estar disponíveis no painel do computador. */
 #maduMobileHome{display:block!important;max-width:none;margin:0 0 28px}
 #maduMobileHome .madu-home-eyebrow{font-size:11px;font-weight:800;letter-spacing:.1em;color:#68816e;margin:4px 0}
 #maduMobileHome .madu-home-title{font-size:26px;font-weight:800;color:#2f4537;line-height:1.25}
 #maduMobileHome .madu-home-caption{font-size:14px;color:#60746a;margin:6px 0 14px}
 #maduMobileHome .madu-kitchen-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:12px}
 #maduMobileHome .madu-kitchen-action:not(.hidden):not(.madu-role-hidden):not(.madu-v753-user-hidden){display:flex;align-items:center;gap:12px;min-height:100px;padding:15px;border:1px solid #d6e3da;border-radius:16px;background:#fff;color:#31513d;text-align:left;min-width:0;box-shadow:0 2px 8px #315e4708;touch-action:manipulation}
 #maduMobileHome .madu-kitchen-action>span:nth-child(2){display:grid;gap:5px;flex:1;min-width:0}
 #maduMobileHome .madu-kitchen-action strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
 #maduMobileHome .madu-kitchen-action small{font-size:12px;line-height:1.4;color:#5e7566}
 #maduMobileHome .madu-kitchen-symbol{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;background:#e8f1e9;border-radius:13px;color:#4b7359;font-size:22px}
 #maduMobileHome .madu-kitchen-arrow{font-size:12px;color:#73927b}
 #maduMobileHome .madu-expiry-shortcut{display:flex;align-items:center;gap:10px;min-height:var(--madu-touch);padding:12px 14px;margin-top:16px;border:1px solid #e6d6b5;border-radius:12px;background:#fff7e9;color:#805c24;font-size:13px;font-weight:700;text-align:left}
 #maduMobileManagerOverview,#maduFullDashboardButton{display:none!important}
 .madu-shortcuts-editing #maduMobileHome .madu-kitchen-action{touch-action:none!important}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 #appBrandHeader{min-height:calc(64px + env(safe-area-inset-top));padding-top:calc(7px + env(safe-area-inset-top))!important}
 #appNav{top:calc(64px + env(safe-area-inset-top))!important}
 body.mobile-menu-open #mobileUserInfo{top:calc(64px + env(safe-area-inset-top))!important}
 body.mobile-menu-open #appNav{top:calc(126px + env(safe-area-inset-top))!important}
 #maduNavigationBack{padding:10px 12px}
 #maduMobileHome .madu-kitchen-action{min-width:0;line-height:1.4}
 #maduMobileHome .madu-kitchen-action strong{overflow-wrap:anywhere}
 #maduMobileHome .madu-kitchen-symbol{flex-shrink:0}
 .madu-v753-dialog .madu-v753-custom-entry>i{display:none}
 .madu-v753-dialog .madu-v753-custom-entry strong{flex-basis:100%}
 .madu-v753-dialog .madu-v753-custom-entry>div{margin-left:0}
}
@media screen and (max-width:359px){
 #maduMobileHome .madu-kitchen-action{padding:12px;gap:10px}
 #maduMobileHome .madu-kitchen-symbol{flex-basis:44px;width:44px;height:44px;font-size:21px}
 #maduMobileHome .madu-kitchen-action strong{font-size:15px}
 .madu-v753-dialog .madu-v753-dialog-head{padding:14px}
}
@media (prefers-reduced-motion:reduce){
 html,body,main,.madu-v753-dialog{scroll-behavior:auto!important}
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
 #maduMobileHome .madu-kitchen-action.madu-v753-dragging{transform:none!important}
}
@media print{#maduNavigationBar,.madu-shortcut-toolbar,.madu-shortcut-status{display:none!important}}

/* ═══════════ Visual · hierarquia e cabeçalhos — origem: madu-premium-v763.css ═══════════ */
/* Madu V7.63 — hierarchy, compact internal headers and a warm neutral canvas.
   Presentation only. Module colors, status meanings, permissions, hidden states,
   label dimensions and physical print rules remain owned by their original code. */
@media screen {
  :root {
    --madu-canvas: #f8f7f3;
    --madu-paper: #fffefa;
    --madu-ink: #303a34;
    --madu-muted: #62685f;
    --madu-border: #e2e3da;
    --madu-soft-shadow: 0 2px 10px rgba(47, 57, 49, .035);
  }
  body { background: var(--madu-canvas); }
  body::before { opacity: .025; }
  body > main { background: rgba(248, 247, 243, .96); }

  /* The brand header and colored shortcuts retain their existing palette. */
  #maduNavigationBar { margin-bottom: 10px; }
  #maduNavigationBack { box-shadow: none; border-color: var(--madu-border); }
  #maduMobileHome .madu-home-title {
    color: var(--madu-ink);
    font-weight: 750;
    line-height: 1.25;
  }
  #maduMobileHome .madu-home-caption { color: var(--madu-muted); }
  #maduMobileHome .madu-kitchen-action {
    box-shadow: 0 2px 7px rgba(47, 57, 49, .05);
  }

  /* Select page titles, rather than changing text inside cards, status pills or dialogs. */
  main > section[id^="tab-"] > :is(div, header):first-child h2,
  #tab-orders .madu-orders-heading h2,
  #tab-customers .madu-customer-heading h2,
  #tab-checklists .madu-checklist-header h2,
  #tab-expenses .sp-head h2,
  #tab-reports .madu-report-header h2 {
    color: var(--madu-ink);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-top: 0;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
  }
  #teamProductivityPanel > .border-b h3 {
    color: var(--madu-ink);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 750;
  }
  :is(.madu-orders-heading, .madu-customer-heading, .madu-checklist-header, .madu-v742-hero, .madu-print-minimal-heading, .sp-head, .madu-report-header) p,
  main > section[id^="tab-"] > div:first-child > p.nf-muted,
  main > section[id^="tab-"] > div:first-child > div:first-child > :is(p.nf-muted, p.text-slate-500) {
    color: var(--madu-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
  }
  :is(.madu-orders-heading, .madu-customer-heading, .madu-checklist-header, .madu-v742-hero, .sp-head, .madu-report-header) {
    gap: 10px 14px;
  }
  #tab-reports .madu-report-header { padding: 0; }
  #tab-reports .madu-period-control { margin-top: 0; }
  #tab-customers .madu-customer-shell { padding: 18px; gap: 12px; }
  #tab-expenses .madu-spend { gap: 14px; }

  /* Compact existing hero boxes, with quiet module accents in place of large gradients. */
  #tab-stages > .madu-v742-hero,
  #tab-needs > .madu-v742-hero {
    border-color: var(--madu-border);
    border-left-width: 3px;
  }
  #tab-stages > .madu-v742-hero { background: #fcfaff; border-left-color: #8b71a5; }
  #tab-needs > .madu-v742-hero { background: #fffcf6; border-left-color: #b68a50; }
  /* These local !important declarations override the V754 hero's own !important rules. */
  #tab-labels > .madu-print-minimal-heading {
    margin-bottom: 0 !important;
    border: 1px solid #dde3ec !important;
    border-left: 3px solid #789abd !important;
    border-radius: 16px !important;
    background: #f9fbfe !important;
    box-shadow: none !important;
  }
  #tab-labels > .madu-print-minimal-heading h2 {
    color: var(--madu-ink) !important;
    font-size: 23px;
    font-weight: 750;
    gap: 10px;
  }
  #tab-labels > .madu-print-minimal-heading h2 :is(i, svg) {
    box-sizing: content-box;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    line-height: 1;
    padding: 8px;
    border-radius: 10px;
    font-size: 18px;
    background: #edf3fa;
    color: #527aa2 !important;
    box-shadow: none;
  }
  #tab-labels > .madu-print-minimal-heading p { color: var(--madu-muted) !important; font-size: 13px; }

  /* Small consistent separations between page blocks; keep every control and explanation. */
  main > section.space-y-6 > :not([hidden]) ~ :not([hidden]),
  main > section.space-y-5 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 16px;
  }
  main :is(.nf-panel, .madu-customer-shell, .madu-insights-panel, .madu-report-breakdown, .madu-graph-panel) {
    border-color: var(--madu-border);
    box-shadow: var(--madu-soft-shadow);
  }
  main .nf-table th { background: #f4f4ef; color: #414d43; }
  #tab-checklists .madu-checklist-header :is(button, select),
  main :is(.madu-orders-heading, .madu-checklist-header, .madu-v742-hero, .sp-head, .madu-report-header) :is(button, select),
  main > section[id^="tab-"] > div:first-child > :is(button, div > button),
  :is(#tab-products, #tab-staff, #tab-inventory, #tab-finished, #tab-shopping, #tab-recipes, #tab-suppliers, #tab-payables, #tab-transfers) > div:first-child button {
    min-height: 44px;
  }
  main :is(.madu-orders-heading, .madu-checklist-header, .madu-v742-hero, .sp-head, .madu-report-header) button {
    font-size: 13px;
    font-weight: 700;
  }
  main :is(.madu-eyebrow, .madu-checklist-eyebrow) { color: #727869; letter-spacing: .09em; }
  main :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid #52785e;
    outline-offset: 3px;
  }
}

@media screen and (max-width: 767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
  #maduNavigationBar { margin-bottom: 8px; }
  #maduMobileHome .madu-home-title { font-size: 24px !important; }
  #maduMobileHome .madu-home-caption { margin-bottom: 12px; }
  main > section[id^="tab-"] > :is(div, header):first-child h2,
  #tab-orders .madu-orders-heading h2,
  #tab-customers .madu-customer-heading h2,
  #tab-checklists .madu-checklist-header h2,
  #tab-expenses .sp-head h2,
  #tab-reports .madu-report-header h2,
  #tab-labels > .madu-print-minimal-heading h2 {
    font-size: 21px;
  }
  #tab-labels > .madu-print-minimal-heading h2 :is(i, svg) { font-size: 17px; padding: 3px; }
  #tab-customers .madu-customer-shell { padding: 14px; }
  #tab-products > div:first-child,
  #tab-shopping > div:first-child,
  #tab-payables > div:first-child,
  #tab-suppliers > div:first-child,
  #tab-staff > div:first-child { gap: 10px; }
  #tab-products > div:first-child > div:last-child,
  #tab-shopping > div:first-child > div:last-child { gap: 7px; }
  #tab-reports .madu-report-header { gap: 12px; }
  #tab-reports .madu-period-control { width: 100%; }
}

@media screen and (prefers-reduced-motion: reduce) {
  #maduNavigationBack,
  #maduMobileHome .madu-kitchen-action,
  main :is(.madu-orders-heading, .madu-checklist-header, .madu-v742-hero, .sp-head) button {
    transition: none;
  }
}

/* ═══════════ Notificações · preferências — origem: madu-notifications-v763.css ═══════════ */
/* Madu V7.63 — preferência de avisos contextual, sem faixa de chamada no cabeçalho. */
#tab-orders .madu-notify-toolbar.madu-notify-compact{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;margin:0;gap:0;position:relative;z-index:12}
.madu-notify-menu{position:relative;border:0;padding:0;margin:0;background:transparent;overflow:visible}
.madu-notify-bell{display:grid;place-items:center;list-style:none;min-width:44px;width:44px;height:44px;min-height:44px;cursor:pointer;border:1px solid #dedfd6;border-radius:12px;background:#fffdf8;color:#56645a;font-size:18px;touch-action:manipulation;box-shadow:none}
.madu-notify-bell::-webkit-details-marker{display:none}.madu-notify-bell::marker{content:''}
.madu-notify-bell:hover,.madu-notify-menu[open]>.madu-notify-bell{background:#f2f3eb;border-color:#c5cfc3}
.madu-notify-bell[data-state=active]{color:#345b46;background:#eff5ee;border-color:#bed1bd}
.madu-notify-bell[data-state=blocked],.madu-notify-bell[data-state=error],.madu-notify-bell[data-state=pending]{color:#835b24;background:#fff8ea;border-color:#e2d0a8}
.madu-notify-bell:focus-visible,.madu-notify-panel button:focus-visible{outline:3px solid #466951;outline-offset:3px}
.madu-notify-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(320px,calc(100vw - 28px));max-height:calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;padding:15px;border-radius:16px;background:#fffdf9;border:1px solid #dedfd6;color:#343d37;box-shadow:0 10px 30px #293d3520;z-index:30;text-align:left}
.madu-notify-menu:not([open])>.madu-notify-panel{display:none}
.madu-notify-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.madu-notify-head>div{min-width:0}.madu-notify-head strong{display:block;font-size:16px;line-height:1.4;font-weight:750;color:#303c33}.madu-notify-head small{display:block;font-size:12px;line-height:1.5;color:#657065;margin-top:2px}
.madu-notify-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:-7px -7px 0 0;background:transparent;border:0;border-radius:10px;color:#56645a;font-size:23px}
#maduPushPanel #maduPushStatus{display:block;font-size:13px;line-height:1.55;color:#556153;margin:0 0 12px;overflow-wrap:anywhere;padding:0}
#maduPushPanel #maduPushStatus.is-warning{color:#79531f}
.madu-notify-actions{display:flex;flex-wrap:wrap;gap:8px}.madu-notify-actions .madu-push-btn{min-height:44px;flex:1 1 150px;justify-content:center;padding:10px 12px;border-radius:11px;font-size:13px;background:#eaf1e7;border:1px solid #c4d4be;color:#35523a;font-weight:700}
.madu-notify-actions .madu-push-btn.secondary{background:#fffdf9;color:#5b6057;border-color:#d9d9cc}.madu-notify-actions .madu-push-btn:disabled{opacity:.55;cursor:default}
.madu-notify-actions .madu-push-btn[hidden],.madu-notify-actions .madu-push-btn.hidden{display:none!important}
@media(max-width:490px){#tab-orders .madu-notify-toolbar.madu-notify-compact{display:flex;grid-template-columns:none}.madu-notify-actions .madu-push-btn{flex-basis:100%}.madu-notify-panel{padding:14px}}
@media print{.madu-notify-toolbar.madu-notify-compact{display:none!important}}

@media screen and (max-width:600px){
 #tab-orders .madu-orders-heading{display:grid;align-items:center;gap:8px 10px}
 #tab-orders .madu-orders-heading>div:first-child{grid-column:1;grid-row:1;min-width:0}
 #tab-orders .madu-orders-heading>.madu-notify-toolbar.madu-notify-compact{grid-column:2;grid-row:1}
 #tab-orders .madu-orders-heading>#maduOrderCreate{grid-column:1/-1;grid-row:2;justify-self:start;min-height:44px}
}

/* ═══════════ Produtos e etiquetas · orientação — origem: madu-product-designer-v763.css ═══════════ */
/* Read-only product/label guidance; leaves the raster and print layout untouched. */
#productForm .madu-v763-fieldgroup,#printerModal .madu-v763-fieldgroup{min-width:0;margin:0;padding:12px;border:1px solid #e0e3df;border-radius:13px;background:#fff}
#productForm .madu-v763-fieldgroup+*,#printerModal .madu-v763-fieldgroup+*{margin-top:12px}
#productForm .madu-v763-fieldgroup legend,#printerModal .madu-v763-fieldgroup legend{padding:0 5px;color:#39463f;font-size:13px;font-weight:750;line-height:1.4}
#productForm .madu-v763-fieldgroup>div+div,#productForm .madu-v763-fieldgroup>section+div,#productForm .madu-v763-fieldgroup>div+section{margin-top:11px}
#productForm .madu-v763-product-pair{display:grid;grid-template-columns:1fr;gap:10px}
#productForm .madu-v763-primary-method{margin-bottom:10px}
#productForm .madu-v763-product-summary{padding:12px;border:1px solid #d9e3e0;border-radius:13px;background:#f4f8f6;min-width:0}
#productForm .madu-v763-product-summary>strong,#printerModal .madu-v763-design-review>strong{font-size:13px;color:#33473b;font-weight:750}
#productForm .madu-v763-product-summary>p{margin-top:6px;line-height:1.5;overflow-wrap:anywhere}
#productForm .madu-v763-product-summary.has-pending{background:#fffaf2;border-color:#e7d7b9}
#productForm #maduProductWarnings,#printerModal #maduDesignerWarnings{padding-left:18px;margin:8px 0 0;font-size:12px;line-height:1.5;color:#684d2c;list-style:disc}
#productForm #maduProductWarnings[hidden],#productForm #maduProductDuplicate[hidden]{display:none}
#productForm .madu-v763-duplicate{color:#795526;font-size:12px;font-weight:650}
.madu-v763-field-help{font-size:12px;line-height:1.5;color:#647068;overflow-wrap:anywhere;margin-top:6px}
#productForm input:not([type=checkbox]):not([type=hidden]),#productForm select,#productForm textarea{min-height:44px}
#productForm input[type=checkbox]{min-width:18px;min-height:18px}
#productModal>div>div:first-child>button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
#printerModal .madu-v763-fieldgroup>div+div,#printerModal .madu-v763-fieldgroup>div+p{margin-top:12px}
#printerModal .madu-v763-model-sync{font-size:12px;line-height:1.5;color:#4e6859;padding:10px 12px;border:1px solid #dbe5df;border-radius:10px;background:#f6f9f7;width:100%;margin:0}
#printerModal .madu-v763-model-sync.is-pending{color:#795927;background:#fff8ed;border-color:#ead9b9}
#printerModal .madu-v763-design-review{width:100%;padding:12px;border:1px solid #dce4df;border-radius:12px;background:#f7faf8;min-width:0}
#printerModal .madu-v763-design-review.has-warning{border-color:#ead8b8;background:#fffaf2}
#printerModal .madu-v763-design-review:not(.has-warning) #maduDesignerWarnings{color:#566b5e}
#maduRestoreLabelIdentity{min-height:44px;font-size:12px}
#maduRestoreLabelIdentity:disabled{opacity:.55;cursor:default}
#maduLabelIdentityDraft{margin-top:6px}
#printerModal .madu-v763-fieldgroup :is(input,select){min-height:44px}
#printerModal .madu-v763-fieldgroup input[type=checkbox]{min-height:18px;min-width:18px}
@media screen and (max-width:480px){
 #productForm .madu-v763-fieldgroup,#printerModal .madu-v763-fieldgroup{padding:10px}
 #productForm .madu-v748-product-methods{padding:10px}
 #productForm .madu-v763-product-summary{padding:10px}
 #printerModal .madu-v763-design-review,#printerModal .madu-v763-model-sync{padding:10px}
 #labelSettingsForm>div:has(#maduRestoreLabelIdentity){gap:8px}
}
@media print{.madu-v763-product-summary,.madu-v763-model-sync,.madu-v763-design-review,#maduRestoreLabelIdentity,#maduLabelIdentityDraft{display:none!important}}

/* ═══════════ Gestão · resumo e fontes — origem: madu-management-v763.css ═══════════ */
/* V7.63 — o resumo existente ganha fontes, sincronização e explicação por registro. */
.madu-management-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-4px 0 14px;padding:10px 12px;background:#f4f7f6;border:1px solid #dce5e2;border-radius:12px;color:#4f625b}
.madu-management-status p{margin:0;font-size:12px;line-height:1.5;flex:1;min-width:0;overflow-wrap:anywhere}
.madu-management-status>button{min-height:44px;padding:8px 11px;border:1px solid #d4dfd8;border-radius:10px;background:#fff;color:#3f5c4b;font-size:12px;font-weight:700;flex-shrink:0}
.madu-management-status.is-pending{background:#fff9ef;border-color:#eadabb;color:#7d632f}
.madu-management-status>button.has-issues{border-color:#dec28e;color:#805e2c;background:#fffaf0}
#maduInsightsPanel .madu-management-card{background:#f7f6fb;border-color:#e1ddeb}
#maduInsightsPanel .madu-management-card.due{background:#fcf7ed;border-color:#eadfc6}
#maduMobileManagerOverview .madu-mobile-metrics>button{grid-column:auto;min-height:110px}
#maduMobileManagerOverview .madu-mobile-metrics>button:has(#maduMobileLoss){background:#fff8f4;border-color:#f0e0d6}
#maduMobileManagerOverview .madu-mobile-metrics>button.counts{background:#f7f4fb;border-color:#dfd8ec}
#maduMobileManagerOverview .madu-mobile-metrics>button.due{background:#fcf7ed;border-color:#eadfc6}
#maduMobileManagerOverview .madu-mobile-metrics>button .madu-insight-icon{display:none}
#maduInsightsPanel .madu-insights-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.madu-management-detail{margin-top:14px;padding:14px;border:1px solid #d9e2dd;background:#fdfdfb;border-radius:14px;min-width:0}
.madu-management-detail[hidden]{display:none!important}
.madu-management-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.madu-management-detail-head>div{min-width:0}
.madu-management-detail h3{font-size:16px;font-weight:750;color:#34443b;line-height:1.4;margin:0}
.madu-management-detail-head p{font-size:12px;line-height:1.5;color:#6a746c;margin:5px 0 0}
.madu-management-detail-head>button{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:10px;border:1px solid #d5ddd6;background:#fff;color:#56645b}
.madu-management-records{display:grid;gap:8px;max-height:min(58dvh,520px);overflow:auto;overscroll-behavior:contain;padding:2px;scroll-padding-block:8px}
.madu-management-records article{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid #e2e7e0;border-radius:11px;padding:12px;background:#fff;min-width:0}
.madu-management-records article>div{min-width:0;flex:1}
.madu-management-records strong{font-size:13px;font-weight:750;color:#34443b;overflow-wrap:anywhere;line-height:1.4}
.madu-management-records p{font-size:12px;color:#647067;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}
.madu-management-records button{min-height:44px;padding:9px 12px;border-radius:10px;background:#f2f5f2;border:1px solid #d8e0d8;color:#3d5c49;font-size:12px;font-weight:700;flex-shrink:0}
.madu-management-empty,.madu-management-limit{font-size:12px;line-height:1.6;color:#67736b;margin:8px 0}
.madu-management-focus{outline:3px solid #b28d52!important;outline-offset:4px;scroll-margin-top:24px}
.madu-management-status button:disabled,button[data-management-kind]:disabled{opacity:.65;cursor:default}
@media(max-width:1050px){#maduInsightsPanel .madu-insights-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 .madu-management-status{display:block;padding:10px;margin-top:0}
 .madu-management-status>button{margin-top:7px}
 .madu-management-detail{padding:12px}
 .madu-management-records article{align-items:flex-start;flex-direction:column;gap:8px}
 .madu-management-records button{align-self:flex-start}
}
@media print{.madu-management-status,.madu-management-detail{display:none!important}}

#maduInsightsPanel .madu-insight-trend[hidden]{display:none!important}
#maduMobileManagerOverview .madu-management-status>button,#maduInsightsPanel .madu-management-status>button{min-height:44px!important;min-width:44px}

/* ═══════════ Ajuda contextual — origem: madu-header-help-v764.css ═══════════ */
/* Screen-only contextual help. Transaction warnings, labels and print layout remain unchanged. */
@media screen {
 .madu-v764-titleline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
 .madu-v764-titleline>:is(h2,h3){flex:1;min-width:0;margin:0!important;overflow-wrap:anywhere}
 .madu-v764-help{flex:0 0 44px;width:44px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible}
 .madu-v764-help-trigger{display:grid;place-items:center;list-style:none;box-sizing:border-box;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #d9ddd5;border-radius:12px;background:#fffdf8;color:#56645a;font:750 19px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
 .madu-v764-help-trigger::-webkit-details-marker{display:none}.madu-v764-help-trigger::marker{content:''}
 .madu-v764-help-trigger:hover,.madu-v764-help[open]>.madu-v764-help-trigger{background:#f1f3ec;border-color:#bdcbbb}
 .madu-v764-help-trigger:focus-visible,.madu-v764-help-head button:focus-visible{outline:3px solid #52785e;outline-offset:3px}
 .madu-v764-help-panel,.madu-v764-help-preview{box-sizing:border-box;position:fixed;z-index:10000;width:330px;max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;margin:0;padding:14px;border:1px solid #d8ddd3;border-radius:14px;background:#fffdf8;color:#424e44;box-shadow:0 7px 24px #263d321c;line-height:1.55;text-align:left;overflow-wrap:anywhere}
 .madu-v764-help:not([open])>.madu-v764-help-panel,.madu-v764-help-preview[hidden]{display:none!important}
 .madu-v764-help-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
 .madu-v764-help-head strong,.madu-v764-help-preview>strong{font-size:14px;font-weight:750;color:#303a34}
 .madu-v764-help-head button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:-8px -8px 0 0;padding:0;border:0;border-radius:10px;background:transparent;color:#586457;font:400 25px/1 system-ui,sans-serif;cursor:pointer}
 main .madu-v764-help-content>p,.madu-v764-help-preview>p{margin:0!important;padding:0!important;color:#515e51!important;font-size:13px!important;line-height:1.6!important;text-transform:none;letter-spacing:normal}
 .madu-v764-help-preview>p{margin-top:7px!important}
 .madu-v764-redundant-eyebrow{display:none!important}
 #tab-orders .madu-notify-toolbar.madu-notify-compact{gap:6px}
 .madu-v764-icon-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px!important;min-width:44px;height:44px;min-height:44px;padding:0!important;font-size:0!important;gap:0!important;border-radius:12px;flex:0 0 44px}
 .madu-v764-icon-action :is(i,svg){font-size:18px!important;margin:0!important;width:1em;height:1em}
 #tab-labels > .madu-print-minimal-heading{padding:10px 12px!important}
 #tab-stages > .madu-v742-hero,#tab-needs > .madu-v742-hero{padding:10px 12px}
 .madu-v764-titleline-external{min-height:44px}
}
@media screen and (max-width:600px){
 #tab-orders .madu-orders-heading{grid-template-columns:minmax(0,1fr) 94px}
 #tab-orders .madu-orders-heading>.madu-notify-toolbar.madu-notify-compact{align-self:center}
 #tab-stages > .madu-v742-hero{gap:8px}
 #tab-stages > .madu-v742-hero>div:first-child{flex:1 1 140px;min-width:0}
 .madu-v764-titleline>:is(h2,h3){line-height:1.3}
}
@media print{
 .madu-v764-help,.madu-v764-help-preview{display:none!important}
 .madu-v764-titleline{display:contents}
}

/* ═══════════ Planejamento de estoque — origem: madu-stock-planning-v764.css ═══════════ */
/* Madu V7.64 — painel consultivo, sem alterar os controles da lista existente. */
@media screen {
 .madu-stock-plan { border:1px solid #dedfd7; border-radius:16px; background:#fffefa; color:#303a34; overflow:hidden; }
 .madu-stock-plan[hidden] { display:none!important; }
 .madu-stock-plan > summary { min-height:56px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
 .madu-stock-plan > summary::-webkit-details-marker { display:none; }
 .madu-stock-plan > summary strong { display:block; font-size:15px; line-height:1.4; }
 .madu-stock-plan > summary small { display:block; color:#62685f; font-size:12px; margin-top:2px; }
 .madu-stock-plan > summary:focus-visible, .madu-stock-plan :is(input,select):focus-visible { outline:3px solid #527aa2; outline-offset:3px; }
 .madu-stock-plan[open] > summary { border-bottom:1px solid #e7e7de; }
 .madu-stock-plan-body { padding:14px 16px; }
 .madu-stock-plan-tools { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:10px; }
 .madu-stock-plan-tools label { display:flex; flex-direction:column; flex:1 1 180px; min-width:0; gap:5px; font-size:12px; font-weight:650; }
 .madu-stock-plan-tools :is(input,select) { width:100%; max-width:100%; min-width:0; box-sizing:border-box; min-height:44px; padding:10px; border:1px solid #d9ddd5; border-radius:10px; background:#fff; font-size:14px; color:#303a34; }
 .madu-stock-plan-status,.madu-stock-plan-method,.madu-stock-plan-limit,.madu-stock-plan-caption,.madu-stock-plan-empty { font-size:12px; line-height:1.55; margin:8px 0; overflow-wrap:anywhere; }
 .madu-stock-plan-status { color:#425b4a; }
 .madu-stock-plan.is-provisional .madu-stock-plan-status,.madu-stock-plan-warning { color:#79541f; }
 .madu-stock-plan-limit,.madu-stock-plan-caption { color:#62685f; }
 .madu-stock-plan-list { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:10px; }
 .madu-stock-plan-list > li { min-width:0; border:1px solid #e2e3da; border-radius:12px; padding:13px; background:#fff; overflow-wrap:anywhere; }
 .madu-stock-plan-item-head { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
 .madu-stock-plan-item-head strong { font-size:14px; }
 .madu-stock-plan-item-head > span { font-size:11px; color:#62685f; white-space:nowrap; }
 .madu-stock-plan-list dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:12px 0 0; }
 .madu-stock-plan-list dt { font-size:11px; color:#62685f; line-height:1.5; }
 .madu-stock-plan-list dd { font-size:13px; font-weight:650; margin:3px 0 0; }
 .madu-stock-plan-suggestion { color:#4e617f; }
 .madu-stock-plan-warning { font-size:12px; line-height:1.5; margin:8px 0 0; }
 @media(max-width:600px){
  .madu-stock-plan > summary,.madu-stock-plan-body { padding-left:12px; padding-right:12px; }
  .madu-stock-plan-tools label { flex-basis:100%; }
  .madu-stock-plan-list dl { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; }
 }
}
@media print { .madu-stock-plan { display:none!important; } }

/* ═══════════ Início compacto — origem: madu-home-compact-v7651.css ═══════════ */
/* V7.65.1 — Início compacto: barra superior e imediatamente os cards. */
/* O aviso de Encomendas fica no DOM e só ocupa altura quando visível. */
#tab-dashboard > #maduMobileHome { margin-top: 0 !important; }
#tab-dashboard > #maduMobileHome > .madu-kitchen-actions:first-child { margin-top: 0 !important; }
/* Personalização continua disponível, agora depois dos cards. */
#tab-dashboard > #maduMobileHome > .madu-shortcut-toolbar { margin: 12px 0 16px; }
@media (max-width: 767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
  #tab-dashboard > #maduMobileHome { padding-top: 0; }
}

/* ═══════════ Cabeçalhos compactos — origem: madu-header-compact-v766.css ═══════════ */
/* V7.66 - Compactação dos cabeçalhos, somente interface. Não altera permissões nem handlers de negócio. */
@media screen {
 main>section[id^="tab-"]:not(#tab-dashboard):not(.hidden):not([hidden]){font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif}
 main>section[id^="tab-"]:not(#tab-dashboard) :is(h2,h3){letter-spacing:-.028em}
 main>section[id^="tab-"]:not(#tab-dashboard) .madu-v764-titleline{gap:8px}
 main>section[id^="tab-"]:not(#tab-dashboard) .madu-v764-titleline>h2,
 main>section[id^="tab-"]:not(#tab-dashboard)>div:first-child h2,
 #tab-orders .madu-orders-heading h2,
 #tab-checklists .madu-checklist-header h2,
 #tab-stages>.madu-v742-hero h2,#tab-needs>.madu-v742-hero h2,
 #teamProductivityPanel h3{font-size:clamp(17px,1.5vw,21px)!important;font-weight:675!important;line-height:1.2!important;letter-spacing:-.035em!important;margin:0!important}
 #tab-stages>.madu-v742-hero,#tab-needs>.madu-v742-hero,#tab-labels>.madu-print-minimal-heading{padding:10px 12px!important;min-height:0!important}
 #tab-stages>.madu-v742-hero,#tab-needs>.madu-v742-hero{box-shadow:none!important;border-radius:15px!important}
 #tab-orders .madu-orders-heading{align-items:center!important}
 #tab-checklists .madu-checklist-header{gap:8px!important;margin-bottom:8px!important}
 #tab-productivity .madu-prod-top-actions{margin:0!important} /* Barra inferior já contém Início; desktop possui Voltar. */
 #tab-productivity #teamProductivityPanel>.border-b{padding-bottom:6px!important}
 #tab-productivity #teamProductivityPanel>.madu-prod-top-actions{order:2}
 #tab-productivity #teamProductivityPanel>.border-b{order:1}
 #tab-orders .madu-orders-heading>div:first-child>p,#tab-orders .madu-orders-heading>div:first-child .madu-v764-titleline h2{margin:0!important}
 #tab-orders .madu-orders-heading h2{padding:0!important;margin:-1px!important;white-space:nowrap!important}
 #tab-orders .madu-orders-heading{display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important}
 #tab-orders .madu-orders-heading #maduOrderCreate{margin-right:auto!important;grid-column:auto!important;grid-row:auto!important}
 #tab-orders .madu-orders-heading .madu-notify-toolbar{grid-column:auto!important;grid-row:auto!important;margin-left:0!important}
 #tab-orders .madu-orders-heading .madu-v764-help-trigger,#tab-orders .madu-orders-heading .madu-notify-bell{min-width:44px!important}
 .madu-v764-help-trigger,.madu-notify-bell{box-shadow:none!important}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 /* Navegação do Android preservada: não remova o histórico, esconda apenas o controle duplicado. */
 html.madu-android #maduDesktopHomeBar{display:none!important}
 #tab-dashboard{margin-top:0!important}
 main>section[id^="tab-"]:not(#tab-dashboard).space-y-6>:not([hidden])~:not([hidden]),
 main>section[id^="tab-"]:not(#tab-dashboard).space-y-5>:not([hidden])~:not([hidden]){margin-top:9px!important}
 main>section[id^="tab-"]:not(#tab-dashboard)>.madu-header-row:first-child{margin-top:0!important}
 #tab-productivity #teamProductivityPanel{padding:11px!important}
 #tab-productivity #teamProductivityPanel>.border-b{gap:5px!important}
 #tab-productivity #teamProductivityPanel>.border-b p{display:none!important}
 #tab-productivity #teamProductivityPanel>.madu-prod-top-actions{right:14px;top:12px;z-index:1}
 #tab-productivity #teamProductivityPanel{position:relative}
 #tab-stages>.madu-v742-hero,#tab-needs>.madu-v742-hero{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;padding:8px 10px!important;gap:7px!important}
 #tab-stages>.madu-v742-hero p,#tab-needs>.madu-v742-hero p{display:none!important}
 #tab-labels>.madu-print-minimal-heading{padding:7px 10px!important;margin-bottom:5px!important;border-radius:13px!important}
 #tab-labels>.madu-print-minimal-heading p{display:none!important}
 #tab-orders .madu-orders-heading{padding:1px 0!important;gap:6px!important}
 #tab-orders .madu-orders-heading>div:first-child{max-width:44px!important}
 #tab-orders .madu-orders-heading #maduOrderCreate{padding:9px 11px!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;white-space:nowrap}
 #tab-orders .madu-orders-heading .madu-v764-help{flex:0 0 44px!important}
 #tab-orders .madu-orders-heading .madu-notify-panel{right:0}
 main>section[id^="tab-"]:not(#tab-dashboard) :is(.madu-v764-titleline>h2, .madu-v764-titleline>h3){font-size:18px!important}
 main>section[id^="tab-"]:not(#tab-dashboard)>div:first-child:not(.madu-kitchen-home):not(.madu-mobile-home):has(>h2){padding-top:0!important;margin-top:0!important}
 main>section[id^="tab-"]:not(#tab-dashboard)>div:first-child:not(.madu-kitchen-home):not(.madu-mobile-home)>h2{font-size:18px!important}
 main>section[id^="tab-"]:not(#tab-dashboard)>div:first-child:not(.madu-kitchen-home):not(.madu-mobile-home)>p.text-sm{display:none!important}
}

/* ═══════════ Notificações por módulo — origem: madu-push-topics-v766.css ═══════════ */
/* Preferências de push por módulo; sem fingir sucesso antes da confirmação do servidor. */
.madu-module-push{position:relative;display:inline-flex;flex:0 0 44px;margin-left:auto;vertical-align:middle;z-index:28}
.madu-module-push-trigger{display:grid;place-items:center;list-style:none;cursor:pointer;width:44px;height:44px;min-height:44px;border:1px solid #d9ded5;border-radius:12px;background:#fffefa;color:#617268;font-size:18px}
.madu-module-push-trigger::marker{content:''}.madu-module-push-trigger::-webkit-details-marker{display:none}
.madu-module-push-trigger[data-state=active]{color:#325c42;background:#eaf4eb;border-color:#b8d3bd}
.madu-module-push-trigger:focus-visible,.madu-module-push-panel button:focus-visible{outline:3px solid #52785e;outline-offset:3px}
.madu-module-push-panel{position:absolute;right:0;top:calc(100% + 7px);z-index:200;width:min(315px,calc(100vw - 26px));max-height:60dvh;overflow:auto;box-sizing:border-box;border:1px solid #dbe2d9;border-radius:14px;padding:13px;background:#fffefa;box-shadow:0 10px 26px #253d3222;color:#303b34;font-size:13px;line-height:1.5;letter-spacing:normal;text-align:left;font-weight:400}
.madu-module-push:not([open])>.madu-module-push-panel{display:none!important}
.madu-module-push-panel>strong{display:block;font-size:14px;margin:0 0 6px;font-weight:750}
.madu-module-push-panel p{font-size:12px!important;line-height:1.5!important;color:#5c6b60!important;margin:0 0 10px!important;display:block!important}
.madu-module-push-panel .madu-module-push-status[data-type=warning]{color:#90611d!important}
.madu-module-push-panel>button{min-height:44px;width:100%;border-radius:10px;border:1px solid #b5d0ba;background:#eaf2e9;color:#30513b;padding:9px;font-size:13px;font-weight:750}
.madu-module-push-panel>button:disabled{opacity:.58;cursor:not-allowed}
.madu-module-push-panel[hidden]{display:none!important}
#tab-needs>.madu-v742-hero .madu-module-push,#tab-stages>.madu-v742-hero .madu-module-push{margin-left:0}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 .madu-module-push{align-self:center;}
 .madu-v764-titleline .madu-module-push{margin-left:0}
 #tab-checklists .madu-module-push{margin-left:0}
 main>section[id^="tab-"] .madu-module-push-panel{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
}
@media print{.madu-module-push{display:none!important}}

/* ═══════════ Visual · acabamento e popovers — origem: madu-premium-safe-v769.css ═══════════ */
/* V7.69: acabamento de interface feito sobre a V7.67 ESTÁVEL.
 * Não move títulos, formulários ou handlers. Não toca na autenticação. */
@media screen {
 :root{--madu-v769-bg:#f8f9f6;--madu-v769-ink:#263a31;--madu-v769-border:#dfe6de}
 main>section[id^="tab-"]:not(#tab-dashboard){font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;color:var(--madu-v769-ink)}
 main>section[id^="tab-"]:not(#tab-dashboard) .madu-v764-titleline>h2,
 main>section[id^="tab-"]:not(#tab-dashboard)>.madu-v742-hero h2,
 main>section[id^="tab-"]:not(#tab-dashboard)>div:first-child h2,
 #tab-orders .madu-orders-heading h2,#tab-checklists .madu-checklist-header h2,
 #tab-productivity #teamProductivityPanel>.border-b h3,
 #tab-expenses .sp-head h2,#tab-reports .madu-report-header h2{
  font-size:clamp(16px,1.8vw,20px)!important;line-height:1.24!important;
  font-weight:660!important;letter-spacing:-.038em!important;margin:0!important;color:var(--madu-v769-ink)!important
 }
 /* Reorganização apenas por CSS, preservando os controles e sua referência original. */
 #tab-stages>.madu-v742-hero,#tab-needs>.madu-v742-hero,
 #tab-checklists>.madu-checklist-header,#tab-orders .madu-orders-heading,
 #tab-labels>.madu-print-minimal-heading,#tab-expenses .sp-head,
 #tab-reports .madu-report-header{
  min-height:0!important;padding:10px 12px!important;margin:0 0 8px!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;gap:9px!important;flex-wrap:nowrap!important;
  border:1px solid var(--madu-v769-border)!important;border-radius:15px!important;
  background:#fff!important;box-shadow:none!important
 }
 #tab-stages>.madu-v742-hero>div:first-child,#tab-needs>.madu-v742-hero>div:first-child,
 #tab-checklists>.madu-checklist-header>div:first-child,#tab-orders .madu-orders-heading>div:first-child,
 #tab-expenses .sp-head>div:first-child{min-width:0!important;flex:1 1 auto!important}
 #tab-stages>.madu-v742-hero p,#tab-needs>.madu-v742-hero p,#tab-labels>.madu-print-minimal-heading p,
 #tab-orders .madu-orders-heading #maduOrderIntro,#tab-checklists .madu-checklist-header .madu-checklist-intro,
 #tab-expenses .sp-head .sp-hint,#tab-reports .madu-report-header>div:first-child>p,
 #tab-productivity #teamProductivityPanel>.border-b p{display:none!important}
 #tab-stages>.madu-v742-hero .madu-eyebrow,#tab-needs>.madu-v742-hero .madu-eyebrow,
 #tab-checklists .madu-checklist-eyebrow{display:none!important}
 main>section[id^="tab-"] .madu-v764-titleline{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
 main>section[id^="tab-"] .madu-v764-titleline>h2{flex:1 1 auto!important;min-width:0!important;overflow-wrap:break-word!important}
 main>section[id^="tab-"] :is(.madu-v764-help,.madu-module-push){flex:0 0 39px!important;width:39px!important;min-width:39px!important;margin:0!important}
 main>section[id^="tab-"] :is(.madu-v764-help-trigger,.madu-module-push-trigger){
  width:39px!important;height:39px!important;min-height:39px!important;min-width:39px!important;
  background:#fff!important;border:1px solid #e0e5de!important;border-radius:12px!important;
  box-shadow:none!important;font-size:16px!important;color:#466858!important
 }
 main>section[id^="tab-"] :is(.nf-btn,.madu-order-btn,.madu-prod-refresh){box-shadow:none!important}
 #maduV742AlertPermission{display:none!important} /* um único sino no cabeçalho de Etapas */
 /* A tela de Encomendas mostra a ação, não um grande título redundante. */
 #tab-orders .madu-orders-heading .madu-notify-toolbar{min-height:0!important;}
 #tab-orders .madu-orders-heading .madu-notify-bell{border-radius:12px!important;padding:0!important}
 #tab-orders .madu-orders-shell{gap:8px!important}
 /* Cabeçalhos originalmente não-cartão: concentram título e botão numa faixa discreta. */
 #tab-finished>div:first-child,#tab-products>div:first-child,#tab-scanner>div:first-child,
 #tab-inventory>div:first-child,#tab-counting>div:first-child,#tab-recipes>div:first-child,
 #tab-transfers>div:first-child,#tab-shopping>div:first-child,#tab-suppliers>div:first-child,
 #tab-payables>div:first-child,#tab-waste>div:first-child,#tab-staff>div:first-child,
 #tab-brand>div:first-child,#tab-labelsettings>div:first-child,#tab-customers .madu-customer-heading,
 #tab-plan>div:first-child>div:first-child{
  display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;min-height:0!important;padding:8px 1px!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important
 }
 #tab-finished>div:first-child>div:first-child,#tab-products>div:first-child>div:first-child,
 #tab-recipes>div:first-child>div:first-child,#tab-transfers>div:first-child>div:first-child,
 #tab-suppliers>div:first-child>div:first-child,#tab-payables>div:first-child>div:first-child,
 #tab-shopping>div:first-child>div:first-child,#tab-inventory>div:first-child>div:first-child,
 #tab-staff>div:first-child>div:first-child{min-width:0!important;flex:1 1 auto!important}
 /* Somente as descrições do topo, não as instruções dos formulários. */
 #tab-products>div:first-child>div:first-child>p,#tab-inventory>div:first-child>div:first-child>p,
 #tab-scanner>div:first-child>p,#tab-finished>div:first-child>div:first-child>p,
 #tab-counting>div:first-child>p,#tab-recipes>div:first-child>div:first-child>p,
 #tab-transfers>div:first-child>div:first-child>p,#tab-shopping>div:first-child>div:first-child>p,
 #tab-suppliers>div:first-child>div:first-child>p,#tab-payables>div:first-child>div:first-child>p,
 #tab-waste>div:first-child>p,#tab-staff>div:first-child>div:first-child>p,
 #tab-brand>div:first-child>p,#tab-labelsettings>div:first-child>p,
 #tab-customers .madu-customer-heading>div:first-child>p{display:none!important}
 #tab-productivity #teamProductivityPanel{padding:11px!important;gap:8px!important}
 #tab-productivity #teamProductivityPanel>.border-b{margin:0!important}
 #tab-productivity #teamProductivityPanel>.madu-prod-top-actions{margin:0!important}
 #tab-productivity .madu-prod-back{display:none!important}
 #tab-needs>.madu-v742-hero>button,#tab-stages .madu-v742-head-actions button:not(#maduV742AlertPermission){
  min-height:39px!important;padding:7px 9px!important;margin:0!important;border-radius:11px!important;font-size:12px!important
 }
 #tab-stages .madu-v742-head-actions{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important}
 /* Preferências de push/ajuda em uma janela legível no viewport. */
 main .madu-module-push-panel,main .madu-v764-help-panel,
 body>.madu-v769-popover{
  box-sizing:border-box!important;width:min(340px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;max-height:min(66dvh,540px)!important;
  overflow:auto!important;overflow-wrap:anywhere!important;white-space:normal!important;
  background:#fff!important;color:#293b32!important;border:1px solid #dce7dd!important;
  border-radius:16px!important;padding:15px!important;box-shadow:0 16px 46px #16372629!important;
  font:400 13px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  isolation:isolate!important
 }
 body>.madu-v769-popover{position:fixed!important;z-index:2147483001!important;visibility:visible!important;transform:none!important;opacity:1!important}
 body>.madu-v769-popover[hidden]{display:none!important}
 body>.madu-v769-popover :is(p,strong,button){max-width:100%;overflow-wrap:anywhere}
 /* Fundo próprio e opaco de cada tela EM movimento (não oculta a tela inferior). */
 main>section.madu-v769-route-surface{background:#f8f9f6!important;min-height:calc(100dvh - 175px)!important;
  isolation:isolate!important;backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important}
 /* Formulário de encomendas: informação secundária recolhida. */
 #maduOrderConservationSection.madu-v769-conservation{display:block!important;padding:0!important;
  background:#f7faf7!important;border:1px solid #dfe8df!important;border-radius:15px!important;overflow:visible!important}
 .madu-v769-conservation-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:13px 14px;min-height:46px;list-style:none;cursor:pointer;color:#355743;font-size:14px;font-weight:650}
 .madu-v769-conservation-summary::-webkit-details-marker{display:none}.madu-v769-conservation-summary::marker{content:''}
 .madu-v769-conservation-summary>span{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
 .madu-v769-conservation-summary small{font-size:11px;color:#2e6348;background:#e3f1e6;padding:3px 7px;border-radius:99px}
 .madu-v769-conservation-summary>.fa-chevron-down{font-size:12px;transition:transform .2s ease}
 #maduOrderConservationSection[open] .madu-v769-conservation-summary>.fa-chevron-down{transform:rotate(180deg)}
 .madu-v769-conservation-content{padding:10px 13px 13px;border-top:1px solid #e1e9e0}
 .madu-order-customer-suggestions:not(.hidden){z-index:2147482500!important;display:grid!important;gap:4px!important;
  position:relative!important;max-height:238px;overflow:auto;background:#fff!important;
  border:1px solid #dfe8df!important;border-radius:14px!important;box-shadow:0 12px 32px #1a43261c!important;padding:7px!important}
 .madu-order-customer-suggestions button{display:flex!important;justify-content:space-between!important;gap:10px!important;
  align-items:center!important;min-height:45px!important;padding:9px 11px!important;text-align:left!important;border-radius:10px!important}
 .madu-order-customer-suggestions button strong{font-size:13px;color:#244333}
 .madu-order-customer-suggestions button small{font-size:12px;color:#6b8072;text-align:right}
 .madu-v769-suggest-label{font-size:11px;font-weight:700;color:#68806f;padding:6px 8px}
 /* Janela de confirmação aberta sobre formulários */
 :is(#maduLabelCorrectionModal,#maduScanActionOverlay,#maduChecklistAuditModal) .madu-correct-sheet,
 :is(#maduLabelCorrectionModal,#maduScanActionOverlay,#maduChecklistAuditModal) .madu-scan-dialog,
 :is(#maduLabelCorrectionModal,#maduScanActionOverlay,#maduChecklistAuditModal) .madu-checklist-detail-dialog{
  background:#fff!important;opacity:1!important;max-height:calc(100dvh - 20px)!important;max-width:100%!important}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 main{padding-top:7px!important}
 main>section[id^="tab-"]:not(#tab-dashboard){gap:9px!important}
 #tab-stages>.madu-v742-hero,#tab-needs>.madu-v742-hero,
 #tab-checklists>.madu-checklist-header,#tab-labels>.madu-print-minimal-heading,
 #tab-orders .madu-orders-heading{padding:6px 8px!important;min-height:49px!important;gap:5px!important}
 #tab-stages>.madu-v742-hero h2,#tab-needs>.madu-v742-hero h2,
 #tab-checklists .madu-checklist-header h2{font-size:15px!important}
 #tab-stages>.madu-v742-hero>div:first-child,#tab-needs>.madu-v742-hero>div:first-child{flex:1 1 auto!important;min-width:0!important}
 #tab-stages>.madu-v742-hero .madu-v764-titleline,#tab-needs>.madu-v742-hero .madu-v764-titleline{gap:5px!important}
 #tab-stages>.madu-v742-hero :is(.madu-v764-help,.madu-module-push),
 #tab-needs>.madu-v742-hero :is(.madu-v764-help,.madu-module-push){flex:0 0 36px!important;min-width:36px!important;width:36px!important}
 main>section[id^="tab-"] :is(.madu-v764-help-trigger,.madu-module-push-trigger){min-width:36px!important;width:36px!important;min-height:36px!important;height:36px!important}
 #tab-stages .madu-v742-head-actions button:not(#maduV742AlertPermission),#tab-needs>.madu-v742-hero>button{
  font-size:0!important;width:37px!important;min-width:37px!important;height:37px!important;min-height:37px!important;
  padding:6px!important;display:inline-flex!important;justify-content:center!important;align-items:center!important
 }
 #tab-stages .madu-v742-head-actions button:not(#maduV742AlertPermission) i,#tab-needs>.madu-v742-hero>button i{font-size:16px!important;margin:0!important}
 #tab-orders .madu-orders-heading>div:first-child{width:36px!important;flex:0 0 36px!important}
 #tab-orders .madu-orders-heading .madu-notify-toolbar{width:36px!important;min-width:36px!important;flex:0 0 36px!important}
 #tab-orders .madu-orders-heading .madu-notify-bell{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}
 #tab-orders .madu-orders-heading #maduOrderCreate{height:38px!important;min-height:38px!important;font-size:12px!important}
 #tab-productivity #teamProductivityPanel>.madu-prod-top-actions{position:static!important;order:0!important;padding:0!important}
 #tab-productivity #teamProductivityPanel>.border-b{order:1!important}
 #tab-productivity #teamProductivityPanel>.border-b>div:first-child{padding-right:0!important}
 #tab-productivity .madu-prod-refresh{font-size:12px!important;height:38px!important;min-height:38px!important;padding:7px 10px!important}
 #tab-products>div:first-child{align-items:flex-start!important}
 #tab-products>div:first-child>div:last-child{gap:5px!important;flex-wrap:wrap!important}
 #tab-products>div:first-child>div:last-child>button{font-size:12px!important;padding:7px 10px!important;min-height:36px!important;border-radius:10px!important}
 #tab-customers .madu-customer-heading{margin-bottom:8px!important}
 #tab-orders #maduOrderEditor{padding-top:0!important}
 /* O botão nativo do Android continua responsável por voltar. */
 html.madu-android #maduNavigationBar,html.madu-android #maduNavigationBack{display:none!important}
}
@media (prefers-reduced-motion:reduce){.madu-v769-conservation-summary>.fa-chevron-down{transition:none!important}}
@media print{body>.madu-v769-popover{display:none!important}}

/* ═══════════ Visual · acabamento — origem: madu-premium-clean-v770.css ═══════════ */
/* Madu V7.70 — ajuste progressivo em cima da V7.69 funcional.
   Os handlers de login, perfis, pagamentos e estoque não são alterados. */
:root{--v770-text:#273d32;--v770-forest:#2f694e;--v770-line:#dfe8e0;--v770-card:#fff;--v770-soft:#f6f8f5}
@media screen{
/* Barras simples, uma única linha e sem caixas/banners grandes. */
#tab-checklists>.madu-checklist-header,#tab-orders .madu-orders-heading,
#tab-recipes>div:first-child{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;
 box-sizing:border-box!important;gap:6px!important;min-width:0!important;min-height:50px!important;padding:7px 9px!important;
 border:1px solid var(--v770-line)!important;background:var(--v770-card)!important;border-radius:16px!important;
 box-shadow:0 2px 9px #244f3610!important;margin:0 0 8px!important}
#tab-checklists>.madu-checklist-header>div:first-child,
#tab-orders .madu-orders-heading>div:first-child,
#tab-recipes>div:first-child>div:first-child{min-width:0!important;flex:1 1 auto!important}
#tab-checklists .madu-v764-titleline,#tab-recipes .madu-v764-titleline{
 display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;
 gap:5px!important;width:100%!important;min-width:0!important}
#tab-checklists #maduChecklistHeading,#tab-recipes .madu-v764-titleline>h2{font-size:clamp(15px,1.6vw,18px)!important;
 line-height:1.16!important;letter-spacing:-.035em!important;font-weight:690!important;color:var(--v770-text)!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;
 min-width:0!important;flex:1 1 auto!important}
#tab-checklists .madu-checklist-header-actions{flex-wrap:nowrap!important}
#tab-checklists .madu-checklist-header-actions #maduChecklistAdminTools{padding:0!important;margin:0!important;min-width:0!important}
#tab-checklists #maduChecklistNewBtn,#tab-recipes>div:first-child>button{
 min-height:38px!important;height:38px!important;min-width:0!important;max-width:116px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
 margin:0!important;padding:6px 10px!important;font-size:12px!important;font-weight:700!important;
 white-space:nowrap!important;border-radius:11px!important;box-shadow:none!important;background:#346c50!important;color:#fff!important}
#tab-checklists .madu-v764-titleline :is(.madu-v764-help,.madu-module-push),
#tab-recipes .madu-v764-titleline :is(.madu-v764-help,.madu-module-push){flex:0 0 36px!important;
 width:36px!important;min-width:36px!important;margin:0!important}
#tab-checklists .madu-v764-titleline :is(.madu-v764-help-trigger,.madu-module-push-trigger),
#tab-recipes .madu-v764-titleline :is(.madu-v764-help-trigger,.madu-module-push-trigger){
 width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;
 border:1px solid var(--v770-line)!important;background:#fafbf9!important;border-radius:11px!important;color:#47715a!important;
 font-size:16px!important}
/* O refresh dos checklists fica ao lado do resumo, e não rouba a linha principal. */
#tab-checklists .madu-checklist-section-label{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px 8px!important;justify-content:space-between!important}
#tab-checklists .madu-v770-checklist-section-status{min-width:0;flex:1 1 auto;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
#tab-checklists #maduChecklistRefresh{margin:0!important;padding:5px 9px!important;min-height:34px!important;
 border-radius:10px!important;box-shadow:none!important;font-size:12px!important;white-space:nowrap!important}
/* Encomendas sem nome redundante, mantendo a ajuda e o push legado originais. */
#tab-orders .madu-orders-heading{flex-wrap:nowrap!important;gap:6px!important;padding:7px 9px!important}
#tab-orders .madu-orders-heading>div:first-child{order:2!important;width:auto!important;max-width:none!important;
 flex:0 0 38px!important;min-width:38px!important}
#tab-orders .madu-orders-heading #maduOrderCreate{flex:1 1 auto!important;width:auto!important;
 height:38px!important;min-height:38px!important;min-width:0!important;margin:0!important;max-width:none!important;
 font-size:13px!important;font-weight:730!important;white-space:nowrap!important;padding:6px 10px!important;border-radius:11px!important}
#tab-orders .madu-orders-heading .madu-notify-bell{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important}
#tab-orders .madu-orders-heading .madu-v764-titleline{display:flex!important;justify-content:center!important;gap:0!important}
#tab-orders .madu-orders-heading .madu-v764-help-trigger{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
#tab-orders .madu-orders-heading h2{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%)!important;overflow:hidden!important}
/* Fichas: sem introdução grande e ação ao lado das ferramentas. */
#tab-recipes>div:first-child>div:first-child>p{display:none!important}
#tab-recipes>div:first-child>button{order:2!important;flex:0 0 auto!important}
/* Produtividade: Atualizar ao lado do Diário e Mensal. */
#tab-productivity #teamProductivityPanel>.madu-prod-top-actions{display:none!important}
#tab-productivity #teamProductivityPanel>.border-b{display:flex!important;flex-wrap:wrap!important;
 align-items:center!important;gap:8px!important;padding:0 0 9px!important}
#tab-productivity #teamProductivityPanel>.border-b>div:last-child{display:flex!important;flex-wrap:nowrap!important;
 align-items:center!important;gap:6px!important;flex:0 1 auto!important}
#tab-productivity #teamProductivityPanel>.border-b>div:last-child button{
 min-height:36px!important;padding:6px 10px!important;font-size:12px!important;white-space:nowrap!important;
 border-radius:10px!important;box-shadow:none!important}
#tab-productivity #teamProductivityPanel>.border-b>div:last-child .madu-prod-refresh{position:static!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
 background:#f0f5f0!important;color:#37684f!important;border:1px solid #d2e2d5!important}
/* Cores discretas para as três seções de Encomendas. */
#tab-orders .madu-v759-tabs button[data-v759-tab=agenda]{--tab:#376e54;--bg:#eaf5ed;background:#eff7f1;border-color:#d5e7dc}
#tab-orders .madu-v759-tabs button[data-v759-tab=catalog]{--tab:#45657b;--bg:#eaf1f6;background:#f0f5f9;border-color:#d9e4ec}
#tab-orders .madu-v759-tabs button[data-v759-tab=report]{--tab:#876642;--bg:#f8f0e6;background:#fbf6ef;border-color:#ebdfd0}
#tab-orders .madu-v759-tabs button.active{border:1.5px solid var(--tab)!important;box-shadow:inset 0 0 0 1px var(--tab),0 2px 8px #23452a0e!important;background:var(--bg)!important}
/* Sinos novos: controle direto, sem painel que corta a página. */
.madu-v770-direct-push{display:inline-flex!important;position:static!important;margin-left:0!important;
 padding:0!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;z-index:auto!important}
.madu-v770-direct-push>.madu-module-push-trigger{display:grid!important;place-items:center!important;list-style:none!important;
 width:36px!important;height:38px!important;min-width:36px!important;min-height:38px!important;border-radius:11px!important;
 background:#fafbf9!important;color:#587363!important;border:1px solid var(--v770-line)!important;cursor:pointer!important}
.madu-v770-direct-push>.madu-module-push-trigger[data-state=active]{background:#e6f3e9!important;
 color:#2c6e4a!important;border-color:#b4d6bf!important}
.madu-v770-direct-push>.madu-module-push-trigger[data-state=busy]{opacity:.65!important;cursor:wait!important}
.madu-v770-direct-push>.madu-module-push-trigger:focus-visible{outline:2px solid #327252;outline-offset:2px}
.madu-v770-bell-ringing{animation:madu-v770-bell 3.6s ease-in-out infinite;transform-origin:50% 0%}
@keyframes madu-v770-bell{0%,84%,100%{transform:rotate(0)}87%{transform:rotate(-13deg)}91%{transform:rotate(13deg)}95%{transform:rotate(-7deg)}}
.madu-v770-toast{position:fixed;left:50%;bottom:calc(104px + env(safe-area-inset-bottom,0px));z-index:2147483600;
 transform:translate(-50%,10px);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;
 background:#2c5740;color:#fff;border-radius:12px;padding:11px 18px;box-shadow:0 11px 24px #234b3540;
 font:600 13px/1.3 Inter,Arial,sans-serif;text-align:center;max-width:calc(100vw - 28px);white-space:normal}
.madu-v770-toast.visible{opacity:1;transform:translate(-50%,0)}.madu-v770-toast[data-warning=true]{background:#7a522f}
/* Superfícies completas e opacas durante a animação. */
main>section.madu-v769-route-surface{background-color:#f8f9f6!important;opacity:1!important;
 background-image:none!important;min-width:0!important}
}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 #tab-checklists>.madu-checklist-header{padding:6px 8px!important;gap:5px!important;min-height:51px!important}
 #tab-checklists>.madu-checklist-header>div:first-child{min-width:0!important;flex:1 1 auto!important}
 #tab-checklists .madu-checklist-header-actions{flex:0 0 auto!important}
 #tab-checklists #maduChecklistHeading{font-size:16px!important}
 #tab-checklists #maduChecklistNewBtn{padding:5px 9px!important;min-height:38px!important;height:38px!important;font-size:12px!important}
 #tab-recipes>div:first-child{padding:6px 8px!important;gap:5px!important;flex-wrap:nowrap!important}
 #tab-recipes>div:first-child>div:first-child{flex:1 1 auto!important;min-width:0!important}
 #tab-recipes .madu-v764-titleline>h2{font-size:15px!important}
 #tab-recipes>div:first-child>button{max-width:106px!important;padding:5px 8px!important;font-size:11px!important}
 #tab-orders .madu-orders-heading{padding:6px 8px!important}
 #tab-productivity #teamProductivityPanel>.border-b>div:last-child{width:100%!important;justify-content:flex-start!important}
 #tab-productivity #teamProductivityPanel>.border-b>div:last-child button{flex:0 1 auto!important}
}
@media(prefers-reduced-motion:reduce){.madu-v770-bell-ringing{animation:none!important}.madu-v770-toast{transition:none!important}}
@media print{.madu-v770-toast{display:none!important}}

/* ═══════════ Validades · atalho da gestão — origem: madu-expiry-shortcut-v7701.css ═══════════ */
/* Madu V7.70.1 | Atalho real de validades da gestão; não altera dados ou lotes. */
#maduGestorQuickAccess .madu-kitchen-action.madu-gestor-expiry {
  background: #fff5ed !important;
  border: 1px solid #efcdb9 !important;
  color: #663f2d !important;
  overflow: hidden;
}
#maduGestorQuickAccess .madu-gestor-expiry .madu-kitchen-symbol {
  background: #fce2d7 !important;
  color: #974e36 !important;
}
#maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-card-copy { min-width: 0; }
#maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-card-counts {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
#maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; border-radius: 8px; padding: 5px 6px; border: 1px solid;
  font-size: 11px; font-weight: 800; white-space: nowrap; line-height: 1;
}
#maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count.is-expired {
  background: #fff0f1; border-color: #ffb9c1; color: #aa253c;
}
#maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count.is-soon {
  background: #fff3df; border-color: #f3cd90; color: #98600b;
}
#maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count-caption {font-size: 9px; font-weight: 700;}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
  #maduGestorQuickAccess .madu-gestor-expiry {min-height: 150px !important;}
  #maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-card-counts {
    width: 100%; justify-content: center; gap: 4px;
  }
  #maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count {
    font-size: 10px; padding: 5px 6px;
  }
  #maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count-caption {font-size: 9px;}
}
@media(max-width:360px) {
  #maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count-caption {font-size: 8px;}
  #maduGestorQuickAccess .madu-gestor-expiry .madu-expiry-count {gap:3px;padding:4px;}
}

/* ═══════════ Validades e layouts estreitos — origem: madu-expiry-navigation-v771.css ═══════════ */
/* V7.71. Layouts based on actual narrow portrait space, not landscape width. */
@media screen {
  /* Checklists: title and actions within a single consistent glass-white toolbar. */
  #tab-checklists > .madu-checklist-header,
  #tab-orders .madu-orders-heading {
    box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-content:space-between!important;
    width:100%!important;min-width:0!important;min-height:60px!important;
    gap:8px!important;padding:9px 10px!important;margin:0 0 12px!important;
    border:1px solid #dee9df!important;background:#fff!important;border-radius:18px!important;
    box-shadow:0 3px 13px rgba(29,60,43,.065)!important;
  }
  #tab-checklists > .madu-checklist-header > div:first-child,
  #tab-orders .madu-orders-heading > div:first-child {
    flex:1 1 auto!important;min-width:0!important;max-width:none!important;width:auto!important;
    padding:0!important;margin:0!important;
  }
  #tab-checklists .madu-v764-titleline, #tab-orders .madu-orders-heading .madu-v764-titleline {
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;
    min-width:0!important;width:100%!important;min-height:0!important;gap:5px!important;
  }
  #tab-checklists #maduChecklistHeading, #tab-orders .madu-orders-heading h2 {
    display:block!important;position:static!important;clip-path:none!important;overflow:visible!important;
    width:auto!important;height:auto!important;margin:0!important;padding:0!important;
    min-width:0!important;flex:1 1 auto!important;
    font-size:16px!important;line-height:1.25!important;font-weight:760!important;
    letter-spacing:-.028em!important;color:#283d32!important;white-space:nowrap!important;
    overflow-wrap:normal!important;text-overflow:ellipsis!important;
  }
  #tab-checklists .madu-checklist-header-actions{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;
    padding:0!important;margin:0!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;
  }
  #tab-checklists #maduChecklistAdminTools{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;
    min-width:0!important;margin:0!important;padding:0!important;
  }
  #tab-checklists #maduChecklistAdminTools.hidden{display:none!important}
  #tab-checklists #maduChecklistNewBtn, #tab-orders .madu-orders-heading #maduOrderCreate{
    box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
    gap:5px!important;margin:0!important;padding:0 11px!important;height:40px!important;min-height:40px!important;
    background:#32664b!important;border:1px solid #32664b!important;border-radius:12px!important;
    color:#fff!important;font-size:12px!important;font-weight:750!important;line-height:1!important;
    white-space:nowrap!important;box-shadow:none!important;
  }
  #tab-orders .madu-orders-heading #maduOrderCreate.hidden{display:none!important}
  #tab-orders .madu-orders-heading #maduOrderCreate{order:3!important}
  #tab-orders .madu-orders-heading .madu-notify-toolbar{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    flex:0 0 auto!important;order:2!important;gap:5px!important;align-items:center!important;
    width:auto!important;min-width:0!important;margin:0!important;padding:0!important;
  }
  #tab-orders .madu-orders-heading .madu-notify-menu{display:flex!important;align-items:center!important;flex:0 0 auto!important}
  #tab-orders .madu-orders-heading .madu-v764-help{
    display:block!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;
    margin:0!important;padding:0!important;
  }
  #tab-checklists .madu-v764-help, #tab-checklists .madu-v770-direct-push{
    display:inline-flex!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;
    margin:0!important;padding:0!important;
  }
  #tab-orders .madu-orders-heading .madu-v764-help-trigger,
  #tab-orders .madu-orders-heading .madu-notify-bell,
  #tab-checklists .madu-v764-help-trigger,
  #tab-checklists .madu-v770-direct-push>.madu-module-push-trigger {
    box-sizing:border-box!important;display:grid!important;place-items:center!important;
    flex:0 0 38px!important;width:38px!important;min-width:38px!important;
    height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;
    font-size:16px!important;color:#3f654d!important;background:#f8faf8!important;
    border:1px solid #d9e5da!important;border-radius:12px!important;box-shadow:none!important;
  }
  #tab-orders .madu-orders-heading .madu-notify-toolbar.madu-notify-compact{
    position:relative!important;z-index:12!important;
  }
  #tab-orders .madu-v771-order-short{display:none}
  #tab-orders .madu-orders-heading .madu-v764-titleline-external{min-height:0!important}
  #tab-checklists .madu-checklist-header :is(.madu-checklist-eyebrow,.madu-checklist-intro){display:none!important}
  #tab-checklists .madu-checklist-header #maduChecklistHeading{white-space:nowrap!important}
  /* The page title is meaningful; never hide it behind an action button. */
  .madu-v771-finished-expired{cursor:pointer!important;outline-offset:3px!important;transition:box-shadow .15s ease!important}
  .madu-v771-finished-expired:focus-visible,.madu-v771-finished-expired:hover{
    box-shadow:0 0 0 2px #d5a969!important;
  }
  .madu-v771-finished-expired small{font-weight:650!important;color:#9b631c!important}
  #maduExpiryHomeAlert.madu-v771-home-alert:not(.hidden):not([hidden]){
    display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;
    box-sizing:border-box!important;text-align:left!important;margin:1px 0 10px!important;
    padding:12px 13px!important;background:#fff3f0!important;color:#872d35!important;
    border:1px solid #eab6af!important;border-left:4px solid #c83d47!important;
    border-radius:13px!important;box-shadow:0 3px 12px #7a36300c!important;
  }
  #maduExpiryHomeAlert.madu-v771-home-alert.hidden,#maduExpiryHomeAlert[hidden]{display:none!important}
  .madu-v771-alert-icon{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;
    border-radius:10px;color:#fff;background:#c5454f;font-weight:850;font-size:18px}
  .madu-v771-alert-copy{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
  .madu-v771-alert-copy strong{font-size:14px;font-weight:800;line-height:1.3}
  .madu-v771-alert-copy small{font-size:11px;font-weight:650;color:#9e5c54;line-height:1.35}
  #maduExpiryHomeAlert>i{font-size:13px;flex:0 0 auto}
  #expiringItemsTableBody:focus,#expiringItemsTableBody:focus-within{scroll-margin-top:100px}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
  #tab-checklists > .madu-checklist-header, #tab-orders .madu-orders-heading{
    gap:5px!important;min-height:56px!important;padding:7px 8px!important;border-radius:16px!important;
  }
  #tab-checklists #maduChecklistHeading, #tab-orders .madu-orders-heading h2{font-size:15px!important;letter-spacing:-.045em!important}
  #tab-checklists .madu-checklist-header-actions{gap:4px!important}
  #tab-checklists .madu-v764-titleline,#tab-orders .madu-orders-heading .madu-v764-titleline{gap:4px!important}
  #tab-orders .madu-orders-heading .madu-notify-toolbar{gap:4px!important}
  #tab-orders .madu-v771-order-full{display:none!important}
  #tab-orders .madu-v771-order-short{display:inline!important}
  #tab-checklists #maduChecklistNewBtn,#tab-orders .madu-orders-heading #maduOrderCreate{padding:0 9px!important;height:38px!important;min-height:38px!important}
  #tab-orders .madu-orders-heading .madu-v764-help,
  #tab-checklists .madu-v764-help,#tab-checklists .madu-v770-direct-push{width:36px!important;min-width:36px!important;flex-basis:36px!important}
  #tab-orders .madu-orders-heading .madu-v764-help-trigger,
  #tab-orders .madu-orders-heading .madu-notify-bell,
  #tab-checklists .madu-v764-help-trigger,
  #tab-checklists .madu-v770-direct-push>.madu-module-push-trigger{
    width:36px!important;min-width:36px!important;flex-basis:36px!important;height:38px!important;min-height:38px!important;
  }
}
@media screen and (max-width:359px){
  #tab-checklists #maduChecklistHeading,#tab-orders .madu-orders-heading h2{font-size:14px!important}
  #tab-checklists #maduChecklistNewBtn,#tab-orders .madu-orders-heading #maduOrderCreate{padding:0 7px!important;font-size:11px!important}
  #tab-orders .madu-orders-heading .madu-v764-help,
  #tab-checklists .madu-v764-help,#tab-checklists .madu-v770-direct-push{width:33px!important;min-width:33px!important;flex-basis:33px!important}
  #tab-orders .madu-orders-heading .madu-v764-help-trigger,
  #tab-orders .madu-orders-heading .madu-notify-bell,
  #tab-checklists .madu-v764-help-trigger,
  #tab-checklists .madu-v770-direct-push>.madu-module-push-trigger{width:33px!important;min-width:33px!important;flex-basis:33px!important}
}

/* ═══════════ Celular · barra inferior, início e cabeçalho — origem: madu-v772-premium-safe.css ═══════════ */
/* Madu V7.72. Scope ONLY to authed mobile. No login or operational CSS mutations. */
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-v772-ready{--v772-ink:#234b3b;--v772-soft:#dceae0;--v772-outline:#dce5df;background:#f7f8f5!important}
 body.madu-v772-ready #appBrandHeader{background:#dce9e1!important;color:var(--v772-ink)!important;border-color:transparent!important;min-height:66px!important;max-height:78px!important;height:72px!important;box-shadow:0 1px 0 #bdcec221!important;padding:8px 15px!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
 body.madu-v772-ready #mobileMenuToggle{display:none!important}
 /* On Home: avatar at left, elegant wordmark centered; menu moved to bottom bar. */
 body.madu-v772-ready:not(.madu-v772-inner) #appBrandHeader>.sidebar-brand-frame{display:none!important}
 body.madu-v772-ready:not(.madu-v772-inner) #maduMobileProfile{order:1!important;position:relative!important;margin:0!important;max-width:44%!important;height:45px!important;min-height:45px!important;background:#f9fdfa!important;color:#2d5743!important;border:1px solid #d0ded3!important;border-radius:99px!important;box-shadow:none!important;padding:4px 11px 4px 5px!important;font-size:13px!important}
 body.madu-v772-ready #maduV772Brand{display:none;color:#285a42;font:italic 700 25px/1 Georgia,serif;letter-spacing:-1px}
 body.madu-v772-ready:not(.madu-v772-inner) #maduV772Brand{display:block!important;position:absolute;left:50%;transform:translateX(-50%);top:50%;margin-top:-12px;pointer-events:none}
 #maduV772TopBar{display:none}
 body.madu-v772-ready.madu-v772-inner #appBrandHeader>:not(#maduV772TopBar){display:none!important}
 body.madu-v772-ready.madu-v772-inner #maduV772TopBar{display:flex!important;align-items:center;min-width:0;gap:10px;width:100%;height:100%;color:#24503d}
 #maduV772Back{display:grid;place-items:center;width:27px;min-width:27px;height:42px;background:transparent!important;border:0!important;outline-offset:2px;padding:0!important;color:#254e3c!important;font-size:18px!important;box-shadow:none!important}
 #maduV772CurrentTitle{font-size:clamp(16px,4.5vw,20px);font-weight:750;line-height:1.12;letter-spacing:-.035em;color:#214a36;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
 #maduV772TopBar .madu-v772-tools{display:flex;gap:6px;align-items:center;flex:0 0 auto}
 #maduV772TopBar .madu-v772-tools button{width:37px;min-width:37px;height:37px;display:grid;place-items:center;border-radius:50%;border:0;background:#f8fcf8;color:#315b47;font-size:17px;box-shadow:0 1px 4px #3157410d}
 #maduV772TopBar button:focus-visible,#maduMobileBottomBar button:focus-visible{outline:2px solid #24664c!important;outline-offset:3px!important}
 body.madu-v772-ready #maduNavigationBar{display:none!important}
 body.madu-v772-ready #maduDesktopHomeBar{display:none!important}
 /* The title now lives in the actual mobile top bar, not in a second content card. */
 body.madu-v772-ready.madu-v772-inner .madu-v772-duplicate-title{display:none!important}
 body.madu-v772-ready.madu-v772-inner #tab-productivity #teamProductivityPanel>.border-b>div:first-child{display:none!important}
 body.madu-v772-ready.madu-v772-inner #tab-productivity #teamProductivityPanel>.madu-prod-top-actions{display:none!important}
 body.madu-v772-ready.madu-v772-inner #tab-labels>.madu-print-minimal-heading{display:none!important}
 body.madu-v772-ready main{background:#f7f8f5!important}
 /* Home: soft compact cards, left alignment and understated right chevrons. */
 body.madu-v772-ready #maduMobileHome .madu-kitchen-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action:not(.madu-v753-user-hidden):not(.madu-role-hidden):not(.hidden){position:relative!important;min-width:0!important;min-height:148px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:flex-start!important;text-align:left!important;gap:8px!important;padding:16px 14px 17px!important;border-radius:19px!important;border:1px solid #e0e7e2!important;box-shadow:0 3px 10px #344c3910!important;background:#e9f1eb!important;color:#27533f!important;transform:none!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="labels"],body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="scanner"]{display:none!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="stages"]{background:#eeeafa!important;border-color:#ded7ee!important;color:#675084!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="needs"]{background:#f8efe7!important;border-color:#eadfce!important;color:#885b39!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="checklists"]{background:#e6f1e7!important;border-color:#d6e7d7!important;color:#336b4c!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="orders"]{background:#f7ece5!important;border-color:#e9dfd8!important;color:#885b42!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="finished"]{background:#eceef4!important;border-color:#dce0e9!important;color:#4b5675!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="transfers"]{background:#fcf0e0!important;border-color:#eee1ce!important;color:#95642f!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="recipes"]{background:#e2f2ec!important;color:#356a59!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action[data-kind="waste"]{background:#fbecec!important;color:#905052!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action .madu-kitchen-symbol{position:static!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;flex:0 0 40px!important;margin:0 0 3px!important;background:#ffffffb8!important;color:inherit!important;border-radius:11px!important;font-size:21px!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action>span:nth-child(2){width:100%!important;flex:0 0 auto!important;text-align:left!important;display:block!important;min-width:0!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action strong{display:block!important;color:inherit!important;font-size:14px!important;font-weight:800!important;line-height:1.25!important;margin:0!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action small{display:block!important;text-align:left!important;color:#56675f!important;font-size:11px!important;line-height:1.3!important;margin-top:5px!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action::after{content:'›';position:absolute;right:14px;bottom:11px;color:inherit;opacity:.78;font:26px/1 Georgia,serif;pointer-events:none}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action .madu-kitchen-arrow{display:none!important}
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action .madu-v742-mini-badge,body.madu-v772-ready #maduMobileHome .madu-kitchen-action .madu-order-badges{align-self:flex-start!important;justify-content:flex-start!important;margin:4px 0 0!important;max-width:calc(100% - 22px)!important}
 /* preserve role-hidden shortcuts even with higher specificity */
 body.madu-v772-ready #maduMobileHome .madu-kitchen-action.hidden,body.madu-v772-ready #maduMobileHome .madu-kitchen-action.madu-v753-user-hidden{display:none!important}
 /* Floating navigation uses existing switches; the central print is the only elevated action. */
 body.madu-v772-ready #maduMobileBottomBar{position:fixed!important;left:11px!important;right:11px!important;bottom:calc(9px + env(safe-area-inset-bottom,0px))!important;width:calc(100% - 22px)!important;height:72px!important;min-height:72px!important;padding:6px 7px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;gap:1px!important;background:#fffefa!important;border:1px solid #e6ece6!important;border-radius:25px!important;box-shadow:0 10px 25px #3454451c!important;z-index:60!important;overflow:visible!important}
 body.madu-v772-ready #maduMobileBottomBar button{color:#436b57!important;background:transparent!important;border:0!important;border-radius:17px!important;box-shadow:none!important;min-width:0!important;width:100%!important;height:59px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:4px 1px!important;font-size:11px!important;font-weight:650!important;transform:none!important}
 body.madu-v772-ready #maduMobileBottomBar button :is(svg,i){font-size:19px!important;width:21px!important;height:21px!important}
 body.madu-v772-ready #maduMobileBottomBar button.madu-active:not(.madu-v772-print-tab){background:#e8f1ea!important;box-shadow:none!important}
 body.madu-v772-ready #maduMobileBottomBar button.madu-v772-print-tab{width:66px!important;height:66px!important;min-height:66px!important;max-width:66px!important;margin:-22px auto 0!important;transform:translateY(-6px)!important;border-radius:50%!important;background:#345e49!important;color:#fff!important;box-shadow:0 5px 15px #294e3b40!important;border:5px solid #fffefa!important;padding:6px!important;gap:2px!important}
 body.madu-v772-ready #maduMobileBottomBar button.madu-v772-print-tab :is(svg,i){font-size:23px!important;width:25px!important;height:25px!important}
 body.madu-v772-ready #maduMobileBottomBar button.madu-v772-print-tab>span{font-size:10px!important;white-space:nowrap!important}
 /* Documents and dialogs get room above the floating bar without altering form controls. */
 body.madu-v772-ready main{padding-bottom:calc(125px + env(safe-area-inset-bottom,0px))!important}
}
/* Browser does not parse iOS preview overlay for app state; it remains aria-hidden. */
#maduV772SwipeUnderlay{position:fixed;left:0;right:0;bottom:0;z-index:48;overflow:hidden;background:#f7f8f5;pointer-events:none}
#maduV772SwipeUnderlay .madu-v772-preview{background:#f7f8f5;width:100%;height:100%;overflow:hidden}
body.madu-v772-swiping{overscroll-behavior:none}
body.madu-v772-swiping #maduMobileBottomBar{visibility:hidden!important}
@media(max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 dialog.madu-v772-notices{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(83dvh - env(safe-area-inset-bottom,0px));margin:auto;border:1px solid #e0e8df;border-radius:23px;background:#fdfefb;color:#254735;padding:0;box-shadow:0 28px 80px #183c2955;overflow:auto}
 dialog.madu-v772-notices::backdrop{background:#193b2a82;backdrop-filter:blur(2px)}
 .madu-v772-notices-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:19px 19px 12px;background:#fdfefb}
 .madu-v772-notices-head small{font-weight:800;font-size:10px;letter-spacing:.12em;color:#69816e}
 .madu-v772-notices-head h2{font-size:21px;font-weight:800;margin:4px 0 0;color:#244b38}
 .madu-v772-notices-head button{border:0;background:#e9f0e9;color:#365d44;border-radius:50%;width:36px;height:36px}
 #maduV772NoticesList{display:grid;gap:10px;padding:8px 14px 16px}
 .madu-v772-notice{display:flex;text-align:left;gap:11px;width:100%;border:1px solid #e4eae4;border-radius:16px;background:#f5f8f5;padding:13px;color:#315441;align-items:center}
 .madu-v772-notice.warn{background:#fff5e8;color:#91612c}.madu-v772-notice.late{background:#ffefed;color:#994c4a}.madu-v772-notice.note{background:#eef1fc;color:#52679a}
 .madu-v772-notice-icon{width:36px;height:36px;flex:0 0 36px;border-radius:12px;background:#ffffffc7;display:grid;place-items:center}
 .madu-v772-notice>span:nth-child(2){min-width:0;flex:1}.madu-v772-notice strong{display:block;font-size:14px;line-height:1.25}.madu-v772-notice small{display:block;font-size:12px;margin-top:4px;line-height:1.4}
 .madu-v772-notices-foot{padding:12px 17px 23px;color:#6f8175;font-size:11px;line-height:1.5}
}
@media(prefers-reduced-motion:reduce){#maduV772SwipeUnderlay{transition:none!important}}

/* ═══════════ Sistema visual (fontes e superfícies) — origem: madu-refined-v773.css ═══════════ */
/* Madu · a quiet, consistent surface system for the entire application. */
@font-face{font-family:'Madu Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/madu-manrope-latin.woff2') format('woff2')}
@media screen {
 body.madu-refined{--madu-surface:#f8f9f6;--madu-paper:#fffefa;--madu-ink:#284d3c;--madu-line:#dfe6de;--madu-muted:#66756c;--madu-foot:66px;background:var(--madu-surface)!important}
 body.madu-refined main{background:var(--madu-surface)!important;color:var(--madu-ink)}
 body.madu-refined main>section[id^="tab-"]{min-width:0;letter-spacing:-.012em}
 body.madu-refined main>section[id^="tab-"],body.madu-refined :is(#appBrandHeader,#maduRefinedDesktopBar,#appNav),body.madu-refined main :is(button,input,select,textarea){font-family:'Madu Manrope',sans-serif!important}
 body.madu-refined main>section[id^="tab-"] :is(h2,h3){letter-spacing:-.025em;font-weight:650!important}
 /* Keep labelled-by references and screen-reader page headings intact. */
 body.madu-refined main #tab-checklists #maduChecklistHeading.madu-refined-page-title,
 body.madu-refined main :is(section[id^="tab-"],#tab-dashboard) :is(h2,h3).madu-refined-page-title{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
 body.madu-refined .madu-refined-titleline{min-height:0!important;gap:0!important;margin:0!important;padding:0!important}
 body.madu-refined .madu-refined-intro>:is(p,.madu-eyebrow,.madu-checklist-eyebrow){display:none!important}
 body.madu-refined .madu-refined-intro{min-height:0!important;margin:0!important;padding:0!important}
 body.madu-refined .madu-refined-menu-header{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0 0 8px!important;min-height:0!important;gap:8px!important}
 body.madu-refined main :is(#tab-checklists,#tab-orders,section[id^="tab-"]) .madu-refined-empty-header{display:none!important}
 body.madu-refined main :is(.nf-panel,.sp-card,.madu-customer-shell,.madu-insights-panel,.madu-report-breakdown,.madu-graph-panel,.madu-v759-panel,.madu-checklist-card,.madu-finished-card,.madu-order-card){border:1px solid var(--madu-line)!important;border-radius:16px!important;box-shadow:0 2px 8px #294c3905!important;background-color:var(--madu-paper)}
 body.madu-refined main :is(.glass-card,.madu-report-kpi,#teamProductivityPanel){border:1px solid var(--madu-line)!important;border-radius:16px!important;box-shadow:0 2px 8px #294c3905!important}
 body.madu-refined main :is(.nf-panel,.sp-card,.glass-card,.madu-insights-panel,.madu-report-breakdown,.madu-graph-panel){background-image:none!important}
 body.madu-refined main :is(.nf-btn,.sp-button,.madu-order-btn,.madu-prod-refresh,.madu-checklist-header-actions button){border-radius:10px!important;box-shadow:none!important;font-weight:600!important;letter-spacing:-.01em}
 body.madu-refined main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea){border-radius:10px!important;border-color:#d8e1d7!important;box-shadow:none}
 body.madu-refined main :is(input,select,textarea):focus-visible{outline:2px solid #578068;outline-offset:2px}
 body.madu-refined main table{font-size:13px}
 body.madu-refined main th{font-size:11px;letter-spacing:.035em;font-weight:650!important;background:#eff3ed;color:#526a58}
 body.madu-refined main :is(th,td){border-color:#e6ebe3!important}
 body.madu-refined :is(button,a,summary):focus-visible{outline:2px solid #3d7556!important;outline-offset:3px}
 body.madu-refined:not(.auth-locked) #maduMobileProfile{display:flex!important;align-items:center!important;gap:7px!important;background:transparent!important;border:0!important;border-radius:12px!important;box-shadow:none!important;padding:4px 6px!important;min-height:44px!important;height:44px!important;color:#315540!important;font-size:12px!important;font-weight:550!important;max-width:150px!important;flex:0 0 auto!important}
 body.madu-refined #maduMobileProfilePhoto{width:29px!important;height:29px!important;flex:0 0 29px!important;box-shadow:0 0 0 2px #ffffff80;background:#e5eee4!important;font-size:12px!important}
 body.madu-refined #maduMobileProfile .fa-chevron-down{font-size:8px!important;opacity:.6}
 #maduRefinedDesktopBar{display:none}
 body.madu-refined #maduRefinedDesktopBar{display:flex;position:sticky;top:0;z-index:35;align-items:center;gap:12px;min-height:60px;padding:8px 4px;margin-bottom:20px;background:#f8f9f6f5;border-bottom:1px solid var(--madu-line);backdrop-filter:blur(16px)}
 #maduRefinedDesktopTitle{font-size:18px;font-weight:600;letter-spacing:-.035em;flex:1;min-width:0}
 .madu-refined-desktop-tools{display:flex;align-items:center;gap:12px}
 #maduRefinedBack{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;color:#315540;background:transparent}
 #maduRefinedBack:disabled{visibility:hidden}
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) .madu-v764-help{display:block!important;width:44px!important;min-width:44px!important;margin:0!important;flex:0 0 44px!important}
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) .madu-v764-help-trigger{display:grid!important;place-items:center!important;list-style:none!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#54705d!important;font:500 17px/1 Georgia,serif!important;box-shadow:none!important;cursor:pointer}
 body.madu-refined #maduV772Help[hidden]{display:none!important}
 body.madu-refined :is(#maduNavigationBar,#maduDesktopHomeBar){display:none!important}
}
@media screen and (min-width:768px){
 body.madu-refined #appSidebar{box-shadow:none!important;border-right:1px solid #dce5da;background:#315440!important}
 body.madu-refined #appBrandHeader{padding:20px!important;border-color:#ffffff18!important}
 body.madu-refined #appBrandHeader .sidebar-brand-frame{box-shadow:none!important;border-radius:14px!important}
 body.madu-refined #appNav button[id^=nav-]{border-radius:10px!important;font-size:13px!important;font-weight:550!important}
 body.madu-refined main{padding-top:0!important}
 body.madu-refined #maduV772TopBar,body.madu-refined #maduV772Brand{display:none!important}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined{padding-bottom:0!important}
 body.madu-refined #appSidebar #appBrandHeader{height:calc(56px + env(safe-area-inset-top,0px))!important;min-height:56px!important;max-height:none!important;padding:env(safe-area-inset-top,0px) 12px 0!important;background:#dce7dd!important;border:0!important;box-shadow:0 1px 0 #36583c0a!important;gap:8px!important}
 body.madu-refined #maduV772Back{font-size:15px!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools>button{width:44px!important;min-width:44px!important;height:44px!important;background:transparent!important;box-shadow:none!important;font-size:16px!important}
 /* The bottom bar already exposes notifications; keep the title area spacious. */
 body.madu-refined #maduV772NotifyTop{display:none!important}
 body.madu-refined.madu-v772-inner #maduMobileProfile{max-width:44px!important;width:44px!important;padding:6px!important;justify-content:center!important}
 body.madu-refined.madu-v772-inner #maduMobileProfile :is(.madu-profile-name,.fa-chevron-down){display:none!important}
 body.madu-refined #appNav{top:calc(56px + env(safe-area-inset-top,0px))!important}
 body.madu-refined.mobile-menu-open #mobileUserInfo{top:calc(56px + env(safe-area-inset-top,0px))!important}
 body.madu-refined.mobile-menu-open #appNav{top:calc(118px + env(safe-area-inset-top,0px))!important}
 body.madu-refined main{padding:14px 14px calc(104px + env(safe-area-inset-bottom,0px))!important}
 body.madu-refined main>section[id^="tab-"]{scroll-margin-top:72px}
 body.madu-refined #maduMobileHome .madu-kitchen-action{border:1px solid #dce5dd!important;border-radius:17px!important;background:#e8eee7!important;box-shadow:0 2px 7px #294c3904!important;overflow:hidden!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=needs],body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=orders]{background:#f2ece4!important;border-color:#e9e2d8!important;color:#715737!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=stages]{background:#eeebf5!important;border-color:#e3dfec!important;color:#65517e!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=finished]{background:#eceef1!important;border-color:#e1e4e8!important;color:#4d5d68!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=waste]{background:#f6ece8!important;border-color:#eeded8!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action .madu-kitchen-symbol{flex-basis:36px!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action::after{font-size:23px!important;line-height:1!important;bottom:12px!important}
 body.madu-refined #maduMobileHome :is(.madu-v742-mini-badge,.madu-order-badges)>span{box-shadow:none!important;border-radius:20px!important;font-size:10px!important}
 body.madu-refined :is(#maduExpiryHomeAlert,#maduOrdersHomeAlert){border-radius:14px!important;border-width:1px!important;box-shadow:none!important;font-size:13px!important}
 body.madu-refined #maduMobileBottomBar{left:14px!important;right:14px!important;width:calc(100% - 28px)!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;height:60px!important;min-height:60px!important;padding:5px 8px!important;border:1px solid #e0e6dc!important;border-radius:20px!important;box-shadow:0 5px 22px #2e4a3410!important}
 body.madu-refined #maduMobileBottomBar>button{height:48px!important;min-height:44px!important;border-radius:14px!important;padding:0!important;gap:0!important;font-size:0!important;color:#5b7261!important;position:relative!important}
 /* Labels remain accessible through aria-label and title. */
 body.madu-refined #maduMobileBottomBar>button>span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 body.madu-refined #maduMobileBottomBar>button :is(i,svg){font-size:20px!important;width:22px!important;height:22px!important;display:grid!important;place-items:center!important}
 body.madu-refined #maduMobileBottomBar>button.madu-active:not(.madu-v772-print-tab){background:#e8eee5!important;color:#315b41!important}
 body.madu-refined #maduMobileBottomBar>button.madu-v772-print-tab{width:58px!important;max-width:58px!important;height:58px!important;min-height:58px!important;border:4px solid #f8f9f6!important;border-radius:50%!important;margin:-13px auto 0!important;transform:translateY(-3px)!important;background:#345e47!important;box-shadow:0 4px 12px #345e4726!important}
 body.madu-refined #maduMobileBottomBar>button.madu-v772-print-tab :is(i,svg){font-size:22px!important;width:25px!important;height:25px!important}
}
@media (hover:hover) and (pointer:fine){
 body.madu-refined :is(#maduMobileProfile,#maduRefinedBack):hover{background:#dce6d9!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action:hover{filter:brightness(.985);transform:translateY(-2px)!important}
}
@media screen and (prefers-reduced-motion:no-preference){
 body.madu-refined #maduMobileHome .madu-kitchen-action{transition:transform .18s ease,filter .18s ease!important}
}
@media print{#maduRefinedDesktopBar{display:none!important}}

/* Refined lettering, shared card baselines and contextual toolbar actions. */
@font-face{font-family:'Madu Cormorant';font-style:normal;font-weight:300 700;font-display:swap;src:url('/assets/madu-cormorant-garamond.ttf') format('truetype')}
@media screen{
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) :is(.madu-module-push,#maduPushMenu){position:relative;display:inline-flex!important;margin:0!important;flex:0 0 40px;align-items:center}
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) :is(.madu-module-push-trigger,.madu-notify-bell){width:40px!important;height:44px!important;min-height:44px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:10px!important;color:#476650!important}
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) .madu-module-push-trigger[data-state=active]{color:#275c3c!important}
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) .madu-notify-panel{position:absolute;top:calc(100% + 7px);right:0;width:min(315px,calc(100vw - 28px))}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #maduV772TopBar .madu-v772-tools{flex-shrink:0!important}
 body.madu-refined #maduV772TopBar .madu-v764-help{width:32px!important;min-width:32px!important;flex-basis:32px!important}
 body.madu-refined #maduV772TopBar .madu-v764-help-trigger{width:32px!important}
 /* Each row shares space for two title lines and three description lines. */
 body.madu-refined #maduMobileHome .madu-kitchen-action{padding-bottom:34px!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action :is(.madu-v742-mini-badge,.madu-order-badges,.madu-v750-badge-row){position:absolute!important;top:auto!important;bottom:12px!important;left:15px!important;right:auto!important;order:3!important;align-self:flex-start!important;justify-content:flex-start!important;margin:0!important;height:22px!important;max-width:calc(100% - 42px)!important}
 /* A restrained drawer palette with one consistent sage accent. */
 body.madu-refined #appNav{background:#f7f8f4!important;border:1px solid #e0e5dc!important;padding:12px!important}
 body.madu-refined #appNav button[id^=nav-]{background:transparent!important;color:#435b4b!important;border:0!important;border-bottom:1px solid #e6eae2!important;border-radius:9px!important;box-shadow:none!important;font-size:13px!important;font-weight:550!important}
 body.madu-refined #appNav button[id^=nav-] i{color:#708473!important;background:transparent!important}
 body.madu-refined #appNav button[id^=nav-].active{background:#e5ece1!important;color:#2e513b!important}
 body.madu-refined #appNav :is(summary,.madu-mobile-nav-title){color:#657565!important;background:transparent!important}
 body.madu-refined #mobileUserInfo{color:#425b49!important;box-shadow:none!important}
 /* Keep the primary printing action within reach even on short screens. */
 body.madu-refined #tab-labels .glass-card{padding:12px!important}
 body.madu-refined #tab-labels .glass-card> :not([hidden]):not(.hidden)+*{margin-top:9px!important}
 body.madu-refined #tab-labels :is(input,select,button){min-height:44px!important;font-size:13px!important}
 body.madu-refined #tab-labels .madu-quantity-stepper{min-height:44px!important;height:44px!important}
 body.madu-refined #tab-labels .madu-product-quantity{padding:9px!important}
 body.madu-refined #tab-labels :is(.madu-product-quantity,.madu-label-count-row,.madu-label-count-location)>p{display:none!important}
 body.madu-refined #tab-labels #maduV754LocationOptions{padding:0!important;margin-top:9px!important;border:0!important;background:transparent!important}
 body.madu-refined #mainPrintLabelBtn{position:sticky!important;bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;z-index:20!important;min-height:44px!important;padding:10px 14px!important;box-shadow:0 3px 14px #294c3920!important}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #tab-labels .madu-v754-optional-location>.madu-label-count-location{padding:0!important}
}

/* Quiet navigation and operational notices, with no layout measurement in JS. */
@font-face{font-family:'Madu Allura';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/madu-allura.ttf') format('truetype')}
@media screen{
 body.madu-refined main section[id^="tab-"] .madu-refined-empty-header{display:none!important;margin:0!important;padding:0!important;border:0!important;min-height:0!important}
 body.madu-refined .madu-refined-header-shell{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;min-height:0!important}
 body.madu-refined .madu-refined-header-shell:not(.madu-refined-empty-header){padding-top:0!important;padding-bottom:0!important}
 body.madu-refined #tab-dashboard :is(#maduExpiryHomeAlert,#maduOrdersHomeAlert){box-sizing:border-box!important;display:flex!important;align-items:center!important;width:100%!important;margin:0 0 12px!important;border:1px solid #e2ddd2!important;border-left:3px solid #ae9271!important;background:#faf7f0!important;color:#68563d!important;box-shadow:none!important;text-align:left!important;font-family:'Madu Manrope',sans-serif!important;font-weight:550!important;line-height:1.5!important;cursor:pointer}
 body.madu-refined #tab-dashboard :is(#maduExpiryHomeAlert,#maduOrdersHomeAlert):is(.hidden,[hidden]){display:none!important}
 body.madu-refined #tab-dashboard #maduExpiryHomeAlert{background:#faf4f1!important;border-color:#eaddd6!important;border-left-color:#b88474!important;color:#80594c!important}
 body.madu-refined #maduExpiryHomeAlert .madu-v771-alert-icon{flex:0 0 32px!important;background:#eee0d9!important;color:#916451!important;border-radius:10px!important}
 body.madu-refined #maduExpiryHomeAlert .madu-v771-alert-copy strong{font-weight:650!important}
 body.madu-refined #maduExpiryHomeAlert .madu-v771-alert-copy small{font-weight:450!important;color:#806d63!important}
 body.madu-refined #appNav :is(button,summary){transition:background-color .16s ease,color .16s ease!important}
}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #appSidebar #appNav{background:#f8f9f6!important;border:1px solid #e1e7de!important;border-radius:0 0 18px 18px!important;padding:12px 14px!important;box-shadow:0 10px 24px #28473512!important}
 body.madu-refined #appSidebar #appNav :is(button[id^=nav-],#maduMobileOtherNavToggle,[data-madu-install],summary){min-height:46px!important;background:transparent!important;background-image:none!important;color:#4c6052!important;border:0!important;box-shadow:none!important;border-radius:10px!important;font-size:13px!important;font-weight:550!important;padding:11px 12px!important;letter-spacing:0!important}
 body.madu-refined #appSidebar #appNav :is(button,summary) i{color:#7d8d7e!important;background:transparent!important;font-size:15px!important}
 body.madu-refined #appSidebar #appNav :is(button,summary) :is(strong,small){color:inherit!important}
 body.madu-refined #appSidebar #appNav :is(button[id^=nav-].active,button[aria-current=page]){background:#e8eee4!important;color:#345740!important}
 body.madu-refined #appSidebar #appNav :is(p,.v737-nav-group){color:#7b887c!important;font-size:10px!important;letter-spacing:.1em!important;font-weight:600!important;padding:12px 12px 5px!important}
 body.madu-refined #appSidebar #appNav :is(details,div.border-t){border-color:#e3e8df!important;background:transparent!important;box-shadow:none!important}
 body.madu-refined #appSidebar #appNav #maduMobileOtherNavToggle{border-top:1px solid #e3e8df!important;border-radius:0!important;margin-top:10px!important}
 body.madu-refined #mobileUserInfo{border-color:#e1e7dd!important;background:#eff3eb!important}
 /* Static translucent surfaces avoid filtering every pixel while scrolling. */
 body.madu-refined #maduMobileBottomBar{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media (hover:hover){body.madu-refined #appSidebar #appNav :is(button,summary):hover{background:#edf1e9!important}}
@media (prefers-reduced-motion:reduce){body.madu-refined #appNav :is(button,summary){transition:none!important}}
@media screen{
 /* Equal notice frames; long operational messages remain readable by scrolling. */
 body.madu-refined #tab-dashboard :is(#maduExpiryHomeAlert,#maduOrdersHomeAlert){overflow-y:auto!important;overscroll-behavior:contain}
}

/* ═══════════ Acabamento · contadores e marca — origem: madu-polish-v777.css ═══════════ */
@media screen {
 body.madu-refined #maduV772Brand{font:400 34px/1 'Madu Allura',cursive!important;-webkit-text-stroke:.45px currentColor;letter-spacing:.2px!important}
 body.madu-refined #tab-dashboard :is(#maduExpiryHomeAlert,#maduOrdersHomeAlert){height:auto!important;min-height:48px!important;max-height:none!important;padding:9px 12px!important;gap:9px!important;margin-bottom:8px!important;border-radius:11px!important;font-size:12px!important;overflow:visible!important}
 body.madu-refined #maduExpiryHomeAlert .madu-v771-alert-icon{width:25px!important;height:25px!important;flex-basis:25px!important;font-size:13px!important}
 body.madu-refined #maduExpiryHomeAlert .madu-v771-alert-copy strong{font-size:12px!important;line-height:1.35!important}
 body.madu-refined #maduExpiryHomeAlert .madu-v771-alert-copy small{font-size:11px!important}
 body.madu-refined main :is(#tab-needs,#tab-stages)>.madu-v742-hero,
 body.madu-refined #tab-orders .madu-orders-heading,
 body.madu-refined #tab-recipes>.madu-refined-header-shell{background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;padding:0!important;margin-top:0!important;border-radius:0!important}
 body.madu-refined :is(#maduOrderCreate,#tab-recipes button[onclick="openRecipeModal()"]){flex:0 1 auto!important;width:auto!important;min-height:44px!important;padding:11px 16px!important;border:1px solid #44674d!important;border-radius:13px!important;background:#365c43!important;color:#fffefa!important;font-size:13px!important;font-weight:650!important;box-shadow:0 2px 5px #28473512!important}
 body.madu-refined #maduOrderCreate .madu-v771-order-full{display:inline!important}
 body.madu-refined #maduOrderCreate .madu-v771-order-short{display:none!important}
 #maduV772Notices{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 #maduWasteReferencePanel>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;color:#47634f;font-weight:600;font-size:13px}
 #maduWasteReferencePanel>summary::before{content:'›';font-size:22px;transition:transform .18s ease}
 #maduWasteReferencePanel[open]>summary::before{transform:rotate(90deg)}
 #maduWasteReferencePanel>summary small{margin-left:auto;font-size:11px;font-weight:400;color:#738072}
 #maduLoading{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:#f8f9f6ed;color:#365c43;font:600 14px 'Madu Manrope',sans-serif;touch-action:none}
 #maduLoading[hidden]{display:none}
 #maduLoading i{width:36px;height:36px;border:3px solid #dce7dd;border-top-color:#365c43;border-radius:50%;animation:maduLoadingSpin .8s linear infinite}
 .madu-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:12px;background:#496950;color:#fffefa;font:650 10px/1 'Madu Manrope',sans-serif;box-sizing:border-box}
 .madu-count[hidden]{display:none!important}
 #maduV772NotificationsTab .madu-count{position:absolute;top:0;right:3px}
 #maduMobileHome .madu-gestor-payables .madu-count{position:absolute;bottom:12px;left:15px}
}
@keyframes maduLoadingSpin{to{transform:rotate(360deg)}}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #maduMobileHome .madu-kitchen-action{min-height:190px!important;padding:14px 15px 44px!important;gap:9px!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action>span:nth-child(2){flex:0 0 auto!important;display:flex!important;flex-direction:column!important;gap:5px!important}
 body.madu-refined #maduRefinedDesktopBar{display:none!important}
 body.madu-refined #maduV772Brand{display:block!important}
 body.madu-refined.madu-v772-inner #maduV772Brand{display:none!important}
 body.madu-refined #maduV772TopBar{display:flex!important}
 body.madu-refined:not(.madu-v772-inner) #maduV772TopBar{display:none!important}
 body.madu-refined{flex-direction:column!important}
 body.madu-refined main{margin-left:0!important;width:100%!important;max-width:none!important}
 body.madu-refined #appSidebar{width:100%!important;max-width:none!important;flex:none!important}
}
@media (prefers-reduced-motion:reduce){#maduLoading i{animation-duration:1.6s}#maduWasteReferencePanel>summary::before{transition:none}}
@media screen{
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools)>button[onclick^="maduV742Refresh"]{width:36px!important;min-width:36px!important;min-height:44px!important;padding:8px!important;font-size:0!important;background:transparent!important;border:0!important;color:#54705d!important}
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools)>button[onclick^="maduV742Refresh"] i{font-size:15px!important}
 body.madu-refined #tab-orders .madu-notify-toolbar:has(#maduPushStatus:empty):not(:has(button:not(.hidden))){display:none!important}
}
/* V778: badges participate in layout, so long descriptions never collide. */
@media screen {
 body.madu-refined #maduMobileHome .madu-kitchen-action{height:auto!important;min-height:190px!important;padding-bottom:16px!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action :is(.madu-v742-mini-badge,.madu-order-badges,.madu-v750-badge-row,.madu-count){position:static!important;inset:auto!important;height:auto!important;min-height:22px;flex-shrink:0;margin-top:auto!important;max-width:calc(100% - 16px)!important;flex-wrap:wrap;gap:4px}
 body.madu-refined #maduMobileHome .madu-kitchen-action>span:nth-child(2){margin-bottom:8px!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action small{overflow-wrap:anywhere}
 body.madu-tab-dragging main>section{animation:none!important}
 body.madu-tab-dragging{overscroll-behavior-x:none}
 #maduV772NotificationsTab{position:relative}
 button:active:not(:disabled){filter:brightness(.96)}
}
@media screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 /* Override desktop flex utilities activated by landscape width. */
 body.madu-refined{height:100dvh!important;min-height:0!important;overflow:hidden!important;padding-bottom:0!important;display:flex!important;flex-direction:column!important}
 body.madu-refined #appSidebar{height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;position:relative!important;overflow:visible!important}
 body.madu-refined #appSidebar>div{height:auto!important;min-height:0!important}
 body.madu-refined #appNav{display:none!important;position:fixed!important;left:0!important;right:0!important;overflow-y:auto!important}
 body.madu-refined.mobile-menu-open #appNav{display:block!important}
 body.madu-refined #appSidebar>div:last-child,body.madu-refined #mobileUserInfo{display:none!important}
 body.madu-refined main{flex:1 1 0%!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overscroll-behavior-y:contain}
 body.madu-refined #appBrandHeader{height:54px!important;min-height:54px!important;max-height:54px!important}
 body.madu-refined #maduMobileBottomBar{height:54px!important;min-height:54px!important;bottom:env(safe-area-inset-bottom,0px)!important}
 body.madu-refined #maduMobileBottomBar button{height:44px!important;min-height:44px!important}
 body.madu-refined #maduMobileBottomBar button.madu-v772-print-tab{height:54px!important;min-height:54px!important;width:54px!important;margin-top:-10px!important}
}

/* ═══════════ Refinamentos de telas — origem: madu-screen-refinements-v779.css ═══════════ */
/* Presentation refinements: existing data, filters and action handlers stay in place. */
@media screen {
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) .madu-toolbar-refresh {
  display:grid!important;place-items:center!important;flex:0 0 36px!important;
  width:36px!important;min-width:36px!important;height:44px!important;min-height:44px!important;
  padding:0!important;font-size:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#476650!important;
 }
 body.madu-refined :is(#maduV772TopBar,.madu-refined-desktop-tools) .madu-toolbar-refresh i{font-size:15px!important;margin:0!important}
 #tab-products .madu-catalog-actions{display:grid!important;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:8px!important;width:100%;align-items:stretch}
 #tab-products .madu-catalog-actions>button{display:flex!important;align-items:center;justify-content:center;gap:5px!important;min-width:0!important;min-height:46px!important;margin:0!important;padding:9px 7px!important;font-size:12px!important;line-height:1.3!important;text-align:center;border-radius:12px!important}
 #tab-products #btnAddNewProduct{grid-column:1;grid-row:1}
 #tab-products .madu-catalog-actions>button:nth-child(1){grid-column:2;grid-row:1}
 #tab-products .madu-catalog-actions>button:nth-child(2){grid-column:3;grid-row:1}
 #masterDataModal>div>div:first-child{align-items:center;gap:12px}
 body.madu-refined .madu-data-screen{--screen-line:#dfe6de;--screen-ink:#2e503d}
 body.madu-refined .madu-data-screen :is(.glass-card,.nf-panel){border:1px solid var(--screen-line)!important;border-radius:18px!important;box-shadow:0 3px 14px #29493205!important;background:#fffefa!important}
 body.madu-refined .madu-data-screen :is(.madu-stock-summary,.madu-payables-summary){gap:10px!important}
 body.madu-refined .madu-data-screen :is(.madu-stock-summary,.madu-payables-summary)>div{position:relative;min-width:0;padding:18px!important;overflow:hidden!important}
 body.madu-refined .madu-data-screen :is(.madu-stock-summary,.madu-payables-summary)>div>p:first-child{font-size:11px!important;letter-spacing:.04em;line-height:1.5;color:#6d7b70!important}
 body.madu-refined .madu-data-screen :is(.madu-stock-summary,.madu-payables-summary)>div>p[id]{font-size:clamp(20px,2.3vw,28px)!important;font-weight:650!important;letter-spacing:-.045em;line-height:1.3;margin-top:10px!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 body.madu-refined #tab-inventory .madu-stock-summary>div:first-child{background:#e7eee5!important;border-color:#d3e0d1!important}
 body.madu-refined #tab-payables .madu-payables-summary>div:nth-child(2){background:#faf0ec!important;border-color:#eedbd4!important}
 body.madu-refined #tab-payables .madu-payables-summary>div:nth-child(3){background:#faf5e9!important;border-color:#ebe1c9!important}
 body.madu-refined #tab-payables .madu-payables-summary>div:nth-child(4){background:#edf3e9!important}
 body.madu-refined .madu-data-screen :is(td,th){padding:15px 14px!important;vertical-align:middle}
 body.madu-refined .madu-data-screen td{font-size:13px!important;font-variant-numeric:tabular-nums}
 body.madu-refined .madu-data-screen thead th{background:#edf2e9!important;color:#657563!important;white-space:nowrap;font-size:10px!important;text-transform:uppercase;letter-spacing:.06em}
 body.madu-refined .madu-data-screen tbody tr:nth-child(even){background:#f7f9f4}
 body.madu-refined .madu-data-screen :is(input,select){border-color:#d7e1d4!important;border-radius:11px!important;min-height:44px}
 body.madu-refined .madu-data-screen :is(input,select):focus-visible{outline:2px solid #54795a;outline-offset:2px}
 body.madu-refined .madu-data-screen details>summary{min-height:44px;align-content:center;color:#536a57;font-size:13px}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-card,.madu-v752-payable-card){border:1px solid #dfe6dc!important;border-left:3px solid #7f9b83!important;border-radius:16px!important;background:#fffefa!important;box-shadow:0 3px 12px #29493205!important;padding:16px!important;gap:16px!important}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-card.is-low,.madu-v752-payable-card.soon){border-left-color:#bd9353!important}
 body.madu-refined .madu-data-screen .madu-v752-payable-card.late{border-left-color:#b97767!important}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-metrics,.madu-v752-payable-metrics)>div{background:#f2f5ee!important;border:1px solid #e7ece2;border-radius:10px!important;padding:11px!important}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-metrics,.madu-v752-payable-metrics) strong{font-size:17px!important;font-weight:650!important;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-head,.madu-v752-payable-head) h3{font-weight:650!important;font-size:15px!important}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-status,.madu-v752-payable-status){border-radius:20px!important}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-actions,.madu-v752-payable-actions){border-top:1px solid #e7ece2;padding-top:12px}
 body.madu-refined .madu-data-screen .madu-v752-stock-actions button{background:#f5f7f1!important;color:#48634d!important;border-color:#dfe6d9!important;font-weight:600!important}
}
@media screen and (min-width:768px){#tab-products .madu-catalog-actions{max-width:490px}}
@media screen and (max-width:767px), screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-module-push,#maduPushMenu){flex:0 0 32px!important;width:32px!important;min-width:32px!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-module-push-trigger,.madu-notify-bell){width:32px!important;min-width:32px!important;padding:0!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools .madu-toolbar-refresh{flex-basis:32px!important;width:32px!important;min-width:32px!important}
 body.madu-refined #tab-inventory .madu-stock-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.madu-refined #tab-inventory .madu-stock-summary>div:first-child{grid-column:1/-1}
 body.madu-refined .madu-data-screen :is(.madu-stock-summary,.madu-payables-summary)>div{padding:15px!important}
 body.madu-refined #tab-inventory .v737-inventory-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%}
 body.madu-refined #tab-inventory .v737-inventory-actions>.nf-btn{flex:1 1 auto;justify-content:center}
}
@media (hover:hover){
 body.madu-refined .madu-data-screen tbody tr:hover{background:#edf3e8}
 body.madu-refined .madu-data-screen :is(.madu-v752-stock-card,.madu-v752-payable-card):hover{border-color:#aebfa9!important}
}
@media (prefers-reduced-motion:no-preference){
 body.madu-refined .madu-data-screen :is(tbody tr,.madu-v752-stock-card,.madu-v752-payable-card){transition:background-color .16s ease,border-color .16s ease}
}

/* ═══════════ Ergonomia de toque — origem: madu-mobile-quality-v780.css ═══════════ */
/* Shared ergonomics, retaining each module's existing layout and actions. */
@media screen {
 :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #4d7056;outline-offset:3px}
 button:disabled{cursor:wait;opacity:.6}
 .madu-device-feedback{margin:14px 8px;padding:10px 12px;border:1px solid #dce5db;border-radius:12px;background:#f5f8f1;color:#365540;font-size:13px}
 .madu-device-feedback summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
 .madu-device-feedback label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;border-top:1px solid #dce5db}
 .madu-device-feedback small{display:block;font-size:11px;line-height:1.5;color:#657869}
 .madu-device-feedback input{width:22px;height:22px;accent-color:#476650}
 #maduCloudBlocking{overscroll-behavior:contain;overflow-y:auto;max-height:100dvh;padding-top:max(18px,env(safe-area-inset-top))!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
 #maduCloudBlocking>div{max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain}
 #maduCloudBlocking button{min-height:44px}
 #maduCloudRetry:disabled{cursor:progress}
}
@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 main>section{min-width:0;overflow-wrap:anywhere;scroll-margin-top:80px}
 main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea),.nf-modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea),dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important}
 main :is(.nf-btn,button[type=submit]),.nf-modal .nf-btn,dialog .nf-btn{min-height:44px;touch-action:manipulation}
 :is(main,dialog,.nf-modal) :is(input,select,textarea){scroll-margin-block:90px 120px}
 .nf-modal .nf-scroll{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overscroll-behavior:contain}
 dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overscroll-behavior:contain}
 main .overflow-x-auto{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 #maduCloudBlocking button{flex:1 1 100%;text-align:center}
 #maduCloudBadge{max-width:calc(100vw - 32px);font-size:12px;line-height:1.4;pointer-events:none}
 .madu-device-feedback{margin-bottom:24px}
}
@media (hover:none){
 :is(.nf-btn,#maduMobileBottomBar button,.madu-home-card):active{opacity:.76}
}
@media (prefers-reduced-motion:reduce){
 :is(main>section,.nf-modal,dialog,.madu-correct-sheet,.madu-scan-dialog,.madu-checklist-detail-dialog){animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #tab-orders #maduOrderCreate,body.madu-refined #tab-checklists :is(#maduChecklistNewBtn,#maduChecklistRefresh),body.madu-refined #tab-productivity #teamProductivityPanel :is(#teamProductivityDayBtn,#teamProductivityMonthBtn,.madu-prod-refresh),body.madu-refined #tab-finished #maduV753LabelRefresh{min-height:44px!important;height:auto!important}
}

/* ═══════════ Imprimir etiquetas — origem: madu-labels-refined-v781.css ═══════════ */
/* Impressão: superfícies neutras e uma única ação de destaque.
   Escopo restrito à tela; não altera a etiqueta gerada nem os fluxos. */
#tab-labels {
  --labels-ink: #303833;
  --labels-muted: #666e68;
  --labels-line: #dce0dc;
  --labels-surface: #f6f7f5;
  --labels-accent: #365540;
  color: var(--labels-ink);
}
#tab-labels .madu-print-minimal-heading {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#tab-labels .madu-print-minimal-heading h2,
#tab-labels h3,
#tab-labels .madu-label-advanced,
#tab-labels #maduV748LabelMethodWrap label,
#tab-labels .madu-product-quantity > label,
#tab-labels .madu-label-count-row label,
#tab-labels .madu-label-count-location label {
  color: var(--labels-ink) !important;
  font-weight: 600;
}
#tab-labels .madu-print-minimal-heading h2 :is(i, svg) {
  background: transparent !important;
  color: var(--labels-muted) !important;
  box-shadow: none !important;
}
#tab-labels .glass-card:has(#labelProductSearch) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
#tab-labels .space-y-2:has(#labelProductSearch) {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
#tab-labels :is(#productDetailsBox, #maduV748LabelMethodWrap, .madu-product-quantity, .madu-label-count-row, .madu-v754-optional-location, .madu-label-count-location, .madu-label-compact-note) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--labels-muted) !important;
}
#tab-labels .madu-v754-optional-location > summary,
#tab-labels #productDetailsBox span[id] {
  color: var(--labels-ink) !important;
}
#tab-labels .madu-print-minimal-heading p,
#tab-labels :is(.madu-product-quantity, .madu-label-count-row, .madu-label-count-location) p,
#tab-labels #maduRemoteModeText {
  color: var(--labels-muted) !important;
}
#tab-labels :is(input:not([type="checkbox"]), select) {
  background: #fff !important;
  border: 1px solid #cbd1cc !important;
  color: var(--labels-ink) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
#tab-labels input[readonly] { background: #f0f2ef !important; }
#tab-labels .madu-quantity-stepper { border-color: #cbd1cc !important; border-radius: 9px; }
#tab-labels .madu-quantity-stepper button,
#tab-labels :is(.nf-btn, #maduLabelOptionsButton, #maduPreviewButton, #reprintLastLabelsBtn, button[onclick="openPrinterSetup()"]) {
  background: #fff !important;
  border: 1px solid var(--labels-line) !important;
  color: #48534b !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
#tab-labels label:has(#maduRemoteToggle) {
  background: transparent !important;
  border-color: var(--labels-line) !important;
  color: var(--labels-muted) !important;
}
#tab-labels #mainPrintLabelBtn {
  background: var(--labels-accent) !important;
  border: 1px solid var(--labels-accent) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  min-height: 50px !important;
  font-size: 16px !important;
}
#tab-labels #mainPrintLabelBtn:hover { background: #2b4634 !important; filter: none; }
#tab-labels button:disabled { opacity: .55; cursor: not-allowed; }
#tab-labels :is(input, select, button, summary):focus-visible {
  outline: 2px solid var(--labels-accent) !important;
  outline-offset: 3px;
}
#tab-labels #maduLabelSuggestions {
  border-color: var(--labels-line);
  border-radius: 10px;
  box-shadow: 0 4px 12px #3038330d;
}
#tab-labels .madu-label-suggestion { color: var(--labels-ink); border-color: var(--labels-line); }
#tab-labels .madu-label-suggestion small { color: var(--labels-muted); }
#tab-labels .madu-label-suggestion:is(:hover, :focus-visible),
#tab-labels .madu-label-suggestion-active { background: #edf0ec; }
#tab-labels #maduLabelSelectionStatus {
  background: var(--labels-surface);
  border-color: var(--labels-line);
  color: var(--labels-ink);
  font-weight: 600;
}
#tab-labels #maduActualLabelPreview > span { color: var(--labels-muted); font-weight: 600; letter-spacing: .04em; }
@media (hover: hover) {
  #tab-labels :is(.nf-btn, #maduLabelOptionsButton, #maduPreviewButton, #reprintLastLabelsBtn, button[onclick="openPrinterSetup()"], .madu-quantity-stepper button):hover {
    background: #f0f2ef !important;
    border-color: #bec7bf !important;
  }
}

/* Formulário contínuo: somente os campos mantêm contorno. */
#tab-labels .glass-card > h3 { border: 0 !important; padding-bottom: 0; }
#tab-labels #productDetailsBox { padding-block: 4px !important; }
#tab-labels #maduLabelOptionalDetails { margin-top: 0; }
#tab-labels #maduLabelOptionalDetails > * { margin-top: 14px; }
#tab-labels #maduLabelOptionsButton {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--labels-line) !important;
  border-radius: 0 !important;
  padding: 14px 0 !important;
  width: 100%;
}
#tab-labels .madu-label-compact-note { font-size: 12px; line-height: 1.5; }

/* ═══════════ Harmonização final e cards do início — origem: madu-harmony-v782.css ═══════════ */
/* V7.82 — Harmonização visual final. Somente apresentação: dados, permissões,
   etiquetas, estoque e regras de negócio não são alterados por este arquivo.
   Carregado por último para consolidar as camadas anteriores em um só padrão. */
body.madu-refined{
 --h-ink:#22362a;--h-muted:#66736a;--h-line:#e3e8e0;--h-paper:#fffefa;--h-canvas:#f6f7f3;
 --h-primary:#355d45;--h-primary-ink:#fffefa;--h-soft:#eef3ec;
 --h-radius:16px;--h-radius-sm:12px;
 --h-shadow:0 1px 2px #1f362806,0 6px 18px #1f36280a;
 --h-ease:cubic-bezier(.32,.72,0,1);
}

/* ---------- Barra superior: ferramentas com o mesmo tamanho, sem sobreposição ---------- */
@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #maduV772TopBar{gap:4px!important}
 body.madu-refined #maduV772Back{flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:44px!important;display:grid!important;place-items:center!important;margin:0 0 0 -6px!important;border-radius:12px!important}
 body.madu-refined #maduV772CurrentTitle{flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:15px!important;font-weight:650!important;line-height:1.2!important;letter-spacing:-.015em!important;color:var(--h-ink)!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools{display:flex!important;align-items:center!important;gap:2px!important;flex:0 0 auto!important;min-width:0!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools>:not([hidden]){flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:44px!important;margin:0!important;padding:0!important;position:relative!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-toolbar-refresh,.madu-module-push-trigger,.madu-notify-bell,.madu-v764-help-trigger,#maduV772Help:not([hidden])){display:grid!important;place-items:center!important;width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:#3f604b!important;font-size:0!important;line-height:1!important;overflow:hidden!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-toolbar-refresh,.madu-module-push-trigger,.madu-notify-bell,.madu-v764-help-trigger,#maduV772Help) :is(i,svg){font-size:17px!important;width:18px!important;height:18px!important;margin:0!important;display:grid!important;place-items:center!important;position:static!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools .madu-toolbar-refresh i{font-size:16px!important}
 /* Ajuda: o mesmo traço fino dos demais ícones (círculo com “?”). */
 html body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-v764-help-trigger,#maduV772Help:not([hidden])){position:relative!important;font:700 11.5px/1 'Madu Manrope',Inter,sans-serif!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-v764-help-trigger,#maduV772Help)::before{content:'';position:absolute;left:50%;top:50%;width:19px;height:19px;margin:-10.5px 0 0 -10.5px;border:1.6px solid currentColor;border-radius:50%;pointer-events:none}
 body.madu-refined #maduV772TopBar .madu-v772-tools #maduV772Help i{display:none!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools #maduV772Help::after{content:'?'}
 body.madu-refined #maduV772TopBar .madu-v772-tools .madu-module-push-trigger[data-state=active]{color:var(--h-primary)!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools #maduV772Help[hidden]{display:none!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-module-push,#maduPushMenu,#maduV772Help,.madu-v764-help){flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools .madu-toolbar-refresh{order:1}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-module-push,#maduPushMenu){order:2}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-v764-help,#maduV772Help){order:3}
 body.madu-refined #maduV772TopBar .madu-v772-tools #maduMobileProfile{order:4;display:grid!important;place-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools #maduMobileProfilePhoto{width:30px!important;height:30px!important;flex:0 0 30px!important}
 body.madu-refined #maduV772TopBar .madu-v772-tools :is(.madu-module-push-panel,.madu-v764-help-panel,.madu-notify-panel){right:0!important;left:auto!important}
 body.madu-refined #maduV772TopBar button:active{background:#e6ede4!important}
}
@media screen and (min-width:768px){
 body.madu-refined .madu-refined-desktop-tools{display:flex;align-items:center;gap:4px}
 body.madu-refined .madu-refined-desktop-tools .madu-toolbar-refresh{display:grid!important;place-items:center!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;font-size:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#3f604b!important}
 body.madu-refined .madu-refined-desktop-tools .madu-toolbar-refresh i{font-size:16px!important;margin:0!important}
}

/* ---------- Tela inicial: cards do mesmo tamanho, cores distintas e selos alinhados ---------- */
body.madu-refined #maduMobileHome .madu-kitchen-action{--k-accent:#3f7655;--k-bg:#f1f6f1;--k-line:#dbe7dd;--k-tile:#deebe0}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=checklists]{--k-accent:#3f7655;--k-bg:#eff6f0;--k-line:#d8e7db;--k-tile:#dcebdf}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=stages]{--k-accent:#64569a;--k-bg:#f3f1f9;--k-line:#e2ddf0;--k-tile:#e4dff4}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=needs]{--k-accent:#99602f;--k-bg:#f9f2ea;--k-line:#ecdfcd;--k-tile:#f2e2cf}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=orders]{--k-accent:#97506d;--k-bg:#f9f0f3;--k-line:#eddae2;--k-tile:#f1dee6}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=transfers]{--k-accent:#86691f;--k-bg:#f8f5e8;--k-line:#e9e1c3;--k-tile:#efe6c8}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=recipes]{--k-accent:#2d706c;--k-bg:#edf6f5;--k-line:#d2e6e4;--k-tile:#d6ebe9}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=waste]{--k-accent:#a04f4e;--k-bg:#faf0ef;--k-line:#efd9d7;--k-tile:#f3dddb}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=finished]{--k-accent:#46628d;--k-bg:#eff3f9;--k-line:#dae2ef;--k-tile:#dde5f2}
/* Imprimir e Escanear ficam só na barra inferior no celular; no computador os cards continuam na tela inicial. */
@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){html body #maduMobileHome#maduMobileHome .madu-kitchen-actions>.madu-kitchen-action:is([data-kind=labels],[data-kind=scanner]){display:none!important}}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=labels]{--k-accent:#355d45;--k-bg:#eff4ef;--k-line:#d9e5da;--k-tile:#dce8dd}
body.madu-refined #maduMobileHome .madu-kitchen-action[data-kind=scanner]{--k-accent:#3d5f74;--k-bg:#eef4f7;--k-line:#d6e3ea;--k-tile:#d9e7ee}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-products{--k-accent:#5c6a2c;--k-bg:#f3f5e9;--k-line:#e1e6cc;--k-tile:#e5eacf}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-productivity{--k-accent:#2f6788;--k-bg:#edf3f8;--k-line:#d3e2ec;--k-tile:#d7e6f0}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-inventory{--k-accent:#4f6b3d;--k-bg:#f1f5ec;--k-line:#dde6d3;--k-tile:#e0e9d5}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-payables{--k-accent:#8e6b1f;--k-bg:#f9f5e8;--k-line:#ebe1c4;--k-tile:#f1e6c8}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-customers{--k-accent:#97506d;--k-bg:#f9f0f3;--k-line:#eddae2;--k-tile:#f1dee6}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-staff{--k-accent:#46628d;--k-bg:#eff3f9;--k-line:#dae2ef;--k-tile:#dde5f2}
body.madu-refined #maduMobileHome .madu-kitchen-action.madu-gestor-expiry{--k-accent:#a04f4e;--k-bg:#faf0ef;--k-line:#efd9d7;--k-tile:#f3dddb}

@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined #maduMobileHome .madu-kitchen-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr!important;gap:12px!important;align-items:stretch!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action:not(.hidden):not(.madu-v753-user-hidden):not(.madu-role-hidden){
  position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:10px!important;
  height:100%!important;min-height:176px!important;padding:16px 15px 52px!important;margin:0!important;box-sizing:border-box!important;
  background:var(--k-bg)!important;border:1px solid var(--k-line)!important;border-radius:18px!important;color:var(--k-accent)!important;
  box-shadow:var(--h-shadow)!important;overflow:hidden!important;filter:none!important;
  transition:transform .22s var(--h-ease),box-shadow .22s var(--h-ease)!important;-webkit-tap-highlight-color:transparent
 }
 body.madu-refined #maduGestorQuickAccess .madu-kitchen-action.madu-gestor-expiry{background:var(--k-bg)!important;border-color:var(--k-line)!important;color:var(--k-accent)!important;min-height:176px!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action .madu-kitchen-symbol{position:static!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;flex:0 0 40px!important;margin:0!important;border-radius:12px!important;background:var(--k-tile)!important;color:var(--k-accent)!important;font-size:18px!important;box-shadow:none!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action>span:nth-child(2),body.madu-refined #maduMobileHome .madu-kitchen-action .madu-expiry-card-copy{display:flex!important;flex-direction:column!important;gap:4px!important;width:100%!important;min-width:0!important;margin:0!important;flex:0 0 auto!important;text-align:left!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action strong{display:block!important;min-height:0!important;margin:0!important;color:var(--h-ink)!important;font-size:14.5px!important;font-weight:700!important;line-height:1.28!important;letter-spacing:-.015em!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action small{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden!important;min-height:0!important;margin:0!important;color:var(--h-muted)!important;font-size:12px!important;line-height:1.42!important;opacity:1!important}
 /* Seta e selos sempre na mesma linha de base, em todos os cards. */
 body.madu-refined #maduMobileHome .madu-kitchen-action::before{display:none!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action::after{content:'›'!important;position:absolute!important;inset:auto 14px 14px auto!important;width:24px!important;height:24px!important;display:grid!important;place-items:center!important;background:none!important;color:var(--k-accent)!important;font:500 22px/24px Georgia,serif!important;opacity:.6!important;pointer-events:none}
 body.madu-refined #maduMobileHome .madu-kitchen-action .madu-kitchen-arrow{display:none!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action :is(.madu-v742-mini-badge,.madu-order-badges,.madu-v750-badge-row,.madu-count,.madu-expiry-card-counts):not([hidden]):not(.hidden){
  position:absolute!important;inset:auto auto 14px 15px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:4px!important;
  height:24px!important;min-height:24px!important;max-width:calc(100% - 58px)!important;width:auto!important;margin:0!important;padding:0!important;overflow:hidden!important;
  background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important
 }
 body.madu-refined #maduMobileHome .madu-kitchen-action :is(.madu-v742-mini-badge,.madu-order-badges,.madu-v750-badge-row,.madu-count,.madu-expiry-card-counts):is([hidden],.hidden):empty{display:none!important}
 /* Selo único (número): pílula na cor do card. */
 body.madu-refined #maduMobileHome .madu-kitchen-action :is(.madu-v742-mini-badge:not(.madu-v750-stage-badges),.madu-count):not([hidden]):not(.hidden){justify-content:center!important;min-width:24px!important;padding:0 8px!important;border-radius:12px!important;background:var(--k-accent)!important;color:#fffefa!important;font:700 11px/24px 'Madu Manrope',Inter,sans-serif!important;font-variant-numeric:tabular-nums}
 /* Selos agrupados: mesmo formato, cores semânticas preservadas. */
 body.madu-refined #maduMobileHome .madu-kitchen-action :is(.madu-v750-stage-badges,.madu-order-badges,.madu-v750-badge-row,.madu-expiry-card-counts)>*{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;height:22px!important;min-width:22px!important;margin:0!important;padding:0 7px!important;border-radius:11px!important;font:700 10.5px/22px 'Madu Manrope',Inter,sans-serif!important;white-space:nowrap!important;box-shadow:none!important;flex:0 0 auto!important;position:static!important;transform:none!important}
 body.madu-refined #maduMobileHome .madu-gestor-expiry .madu-expiry-count-caption{display:none!important}
 body.madu-refined #maduMobileHome .madu-gestor-expiry .madu-expiry-count i{font-size:10px!important}
 body.madu-refined #maduMobileHome .madu-v753-customize,body.madu-refined #maduMobileHome #maduFullDashboardButton{border-radius:14px!important}
}
@media (hover:none){
 body.madu-refined #maduMobileHome .madu-kitchen-action:active{transform:scale(.97)!important;opacity:1!important;box-shadow:0 1px 2px #1f36280a!important}
}
@media (hover:hover){
 body.madu-refined #maduMobileHome .madu-kitchen-action:hover{transform:translateY(-2px)!important;filter:none!important}
}

/* ---------- Listas sem “arco-íris” por posição: cor reservada ao status ---------- */
body.madu-refined #tab-checklists .madu-checklist-grid>.madu-checklist-card,
body.madu-refined .madu-v742-card{background:var(--h-paper)!important;border:1px solid var(--h-line)!important;border-radius:var(--h-radius)!important;box-shadow:var(--h-shadow)!important}
body.madu-refined .madu-v742-card{border-left:3px solid #8fae96!important}
body.madu-refined .madu-v742-card:nth-child(n){border-left-color:#8fae96!important}
body.madu-refined .madu-v743-task-config:nth-child(n),
body.madu-refined #tab-counting table.m756-count-table tr.m756-count-row:nth-child(n){background:var(--h-paper)!important;border-color:var(--h-line)!important}
body.madu-refined .madu-spend .sp-row:nth-child(n){--tint:#fffefa;--edge:#a9bfae}
body.madu-refined .madu-spend .sp-v747-supplier-row:nth-child(n){--bg:#fffefa;--stroke:#e3e8e0;--accent:#5d8668}
body.madu-refined .madu-spend .sp-v751-category-row:nth-child(n),
body.madu-refined .madu-spend .sp-v735-line:nth-child(n){background:var(--h-paper)!important;border-color:var(--h-line)!important}

/* Ações dos checklists: uma linha, mesmo tamanho, hierarquia clara. */
body.madu-refined #tab-checklists .madu-checklist-card-bottom{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
body.madu-refined #tab-checklists .madu-checklist-card-bottom>span{align-self:flex-start}
body.madu-refined #tab-checklists .madu-checklist-card-actions{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:minmax(0,1.5fr);gap:8px!important;width:100%!important;margin:0!important}
body.madu-refined #tab-checklists .madu-checklist-card-actions>button{min-height:44px!important;margin:0!important;padding:0 10px!important;border-radius:12px!important;font-size:13px!important;font-weight:650!important;justify-content:center!important;display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap}
body.madu-refined #tab-checklists .madu-checklist-card-actions>button.primary{background:var(--h-primary)!important;color:var(--h-primary-ink)!important;border:1px solid var(--h-primary)!important}
body.madu-refined #tab-checklists .madu-checklist-card-actions>button:is([data-edit],[data-archive]){background:var(--h-paper)!important;color:#3f604b!important;border:1px solid #d6dfd3!important}
body.madu-refined #tab-checklists .madu-checklist-card-actions>button[data-archive]{color:#8a4f4f!important}
/* O “Criar” sobe para a linha do título da lista; o “Atualizar” fica na barra superior. */
body.madu-refined #tab-checklists .madu-checklist-section-label{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body.madu-refined #tab-checklists .madu-checklist-section-label>div:first-child{flex:1 1 auto;min-width:0}
body.madu-refined #tab-checklists .madu-v770-checklist-section-status{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
body.madu-refined #tab-checklists .madu-checklist-section-label #maduChecklistAdminTools:not(.hidden){display:flex!important;flex:0 0 auto}
body.madu-refined #tab-checklists .madu-checklist-section-label #maduChecklistNewBtn{min-height:40px!important;padding:0 14px!important;border-radius:12px!important;font-size:13px!important;font-weight:650!important}
body.madu-refined #tab-checklists .madu-checklist-section-label #maduChecklistRefresh{display:none!important}

/* “Voltar” dentro do checklist duplicava a seta da barra superior. */
@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined.madu-v772-inner #maduChecklistRunDetail :is([data-close-overview],[data-close-detail]){display:none!important}
}
@media screen and (min-width:768px) and (pointer:fine){
 body.madu-refined #maduChecklistRunDetail :is([data-close-overview],[data-close-detail]){display:none!important}
}

/* ---------- Indicadores e seletores com o mesmo desenho em todos os menus ---------- */
body.madu-refined .madu-v742-kpis{gap:10px!important}
body.madu-refined .madu-v742-kpis article{padding:14px!important;border-radius:var(--h-radius)!important;box-shadow:none!important;gap:6px!important;align-content:space-between;min-height:96px}
body.madu-refined .madu-v742-kpis small{font-size:11px!important;font-weight:650!important;line-height:1.3!important;letter-spacing:.01em}
body.madu-refined .madu-v742-kpis strong{font-size:26px!important;font-weight:700!important;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
body.madu-refined :is(#tab-needs .madu-v742-tabs,.madu-v742-tabs,#tab-expenses .sp-v735-tabs,.madu-v759-tabs){display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px!important;padding:4px!important;margin:12px 0!important;background:#edf1ea!important;border:1px solid #e1e7de!important;border-radius:14px!important;box-shadow:none!important}
body.madu-refined :is(#tab-needs .madu-v742-tabs button,.madu-v742-tabs button,#tab-expenses .sp-v735-tab,.madu-v759-tabs button){display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:8px 6px!important;background:transparent!important;color:#56695b!important;border:0!important;border-radius:11px!important;box-shadow:none!important;font-size:12px!important;font-weight:650!important;line-height:1.25!important;text-align:center!important;transition:background-color .2s var(--h-ease),color .2s var(--h-ease)!important}
body.madu-refined :is(.madu-v742-tabs button.is-active,#tab-expenses .sp-v735-tab.active,.madu-v759-tabs button.active){background:var(--h-paper)!important;color:var(--h-ink)!important;box-shadow:0 1px 2px #1f362812,0 2px 8px #1f36280d!important}
body.madu-refined .madu-v759-tabs button i{color:inherit!important;opacity:.75}
@media screen and (max-width:767px){
 body.madu-refined .madu-v759-tabs button{flex-direction:row!important;font-size:11.5px!important}
}

/* Filtros de Encomendas: sem cores por posição; destaque só no filtro ativo. */
body.madu-refined #tab-orders .madu-order-filters button:not(.active):not(#maduOrderRefresh):not(#maduOrderMore){background:var(--h-paper)!important;border:1px solid var(--h-line)!important;color:#4f6656!important}
body.madu-refined #tab-orders .madu-order-filters button{border-radius:12px!important;font-weight:650!important;min-height:44px!important;box-shadow:none!important}
body.madu-refined #tab-orders .madu-order-filters :is(#maduOrderRefresh,#maduOrderMore){background:var(--h-paper)!important;border:1px solid var(--h-line)!important;color:#4f6656!important}
@media screen and (max-width:767px){html body.madu-refined #tab-orders #maduV759OrdersNav.madu-v759-tabs>button>:is(i,svg){display:none!important}}

/* Mensagens temporárias desaparecem sozinhas (ver madu-harmony-v782.js). */
[data-madu-dismissed]{display:none!important}
@media (prefers-reduced-motion:no-preference){
 body.madu-refined :is(.madu-v742-notice,#maduOrdersNotice,#maduChecklistNotice,#maduSpendStatus,#maduV759CatalogMessage,#maduV759ReportMessage,#maduFinishedPrintNotice,#maduV752CopyFeedback).madu-notice-leaving{opacity:0;transform:translateY(-4px);transition:opacity .28s ease,transform .28s ease}
}

/* ---------- Movimento: resposta ao toque imediata e transições suaves ---------- */
body.madu-refined main>section[id^="tab-"].madu-v769-route-surface{contain:paint;will-change:transform}
body.madu-refined :is(.nf-btn,.madu-checklist-interactive,.madu-v742-card-foot button,#maduMobileBottomBar>button,.madu-v742-tabs button,.madu-v759-tabs button){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (hover:none) and (prefers-reduced-motion:no-preference){
 body.madu-refined :is(.nf-btn,.madu-checklist-interactive,.madu-v742-card-foot button,#maduMobileBottomBar>button){transition:transform .16s var(--h-ease),background-color .2s ease,opacity .2s ease}
 body.madu-refined :is(.nf-btn,.madu-checklist-interactive,.madu-v742-card-foot button,#maduMobileBottomBar>button):active{transform:scale(.96);opacity:1}
}
/* Desfoque de fundo custa caro em celulares; superfícies opacas mantêm o visual. */
@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 body.madu-refined :is(#maduMobileBottomBar,#appBrandHeader,#maduRefinedDesktopBar){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 body.madu-refined #maduMobileBottomBar{background:#fffefa!important}
}
@media (prefers-reduced-motion:reduce){
 body.madu-refined #maduMobileHome .madu-kitchen-action{transition:none!important}
}

/* ═══════════ Acabamento premium — origem: madu-premium-v783.css ═══════════ */
/* V7.83 — Acabamento premium: marca, perfil, folha "Mais" em tela cheia, toque e desempenho. Apenas apresentação. */
@font-face{font-family:'Madu Jost';font-style:normal;font-weight:300 600;font-display:swap;src:url('/assets/madu-jost-latin.woff2') format('woff2')}
html{-webkit-tap-highlight-color:transparent}
:is(button,a,summary,label,[role=button],input,select,textarea){touch-action:manipulation}
@media screen and (max-width:767px),screen and (orientation:landscape) and (pointer:coarse) and (max-height:600px){
 /* Marca: geométrica, leve e espaçada. */
 body.madu-refined #maduV772Brand{font:400 19px/1 'Madu Jost','Madu Manrope',system-ui,sans-serif!important;letter-spacing:.34em!important;text-transform:uppercase!important;padding-left:.34em!important;color:#284a37!important;-webkit-text-stroke:0!important;text-shadow:none!important;top:calc(50% + env(safe-area-inset-top,0px)/2)!important;margin-top:0!important;transform:translate(-50%,-50%)!important}
 /* Início: perfil no canto direito, igual aos menus internos. */
 body.madu-refined:not(.madu-v772-inner):not(.auth-locked) #maduMobileProfile{order:9!important;margin:0 0 0 auto!important;width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:6px!important;justify-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important}
 body.madu-refined:not(.madu-v772-inner) #maduMobileProfile :is(.madu-profile-name,.fa-chevron-down,svg.fa-chevron-down){display:none!important}
 /* Mais: folha em tela cheia, sem cantos flutuantes. */
 body.madu-refined #appNav{bottom:0!important;border-radius:0!important;box-shadow:none!important;padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch}
 body.madu-refined.mobile-menu-open #appNav,body.madu-refined.mobile-menu-open #mobileUserInfo{animation:maduSheetIn .26s cubic-bezier(.22,1,.36,1) both}
 body.madu-refined.mobile-menu-open #appNav{animation-delay:.02s}
 /* Atalhos que já existem na barra inferior e configuração exclusiva de computador. */
 body.madu-refined #appNav :is(#nav-labels,#nav-scanner,#maduPrinterSettingsDisclosure){display:none!important}
 body.madu-refined #appNav button[id^=nav-]{transition:background-color .16s ease,transform .22s cubic-bezier(.2,.9,.3,1.25)!important}
 body.madu-refined #appNav button[id^=nav-]:active{transform:scale(.985)!important;background:#e7eee5!important}
 /* Desfoque é caro em celulares; os painéis já são opacos. */
 body.madu-refined :is(.fixed,[role=dialog],dialog,#maduMobileBottomBar,#appBrandHeader){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 body.madu-refined #maduMobileHome .madu-kitchen-action{contain:layout paint}
}
/* Toque: afunda rápido, volta com leve mola. */
body.madu-refined :is(.nf-btn,.madu-checklist-interactive,.madu-v742-card-foot button,#maduMobileBottomBar>button,#maduMobileHome .madu-kitchen-action,.madu-v772-tools>button){transition:transform .28s cubic-bezier(.2,.9,.3,1.35),background-color .16s ease,opacity .16s ease!important}
body.madu-refined :is(.nf-btn,.madu-checklist-interactive,.madu-v742-card-foot button,#maduMobileBottomBar>button,#maduMobileHome .madu-kitchen-action,.madu-v772-tools>button):active:not(:disabled){transform:scale(.95)!important;transition-duration:.08s!important}
@keyframes maduSheetIn{from{opacity:0;transform:translate3d(0,14px,0)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){body.madu-refined :is(#appNav,#mobileUserInfo){animation:none!important}}

/* ═══════════ Desempenho de listas longas — origem: madu-performance-v784.css ═══════════ */
/* V7.84 — desempenho de listas longas.
 * content-visibility:auto deixa o navegador pular layout e pintura dos cartões fora da tela;
 * eles são calculados quando se aproximam da área visível. contain-intrinsic-size reserva
 * uma altura estimada (depois o navegador lembra a altura real) para a rolagem não pular.
 * Aplicado só a listas sem menus flutuantes dentro dos cartões.
 */
#productsGrid > *,
#recipeCards > *,
#productionLotCards > * {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
#maduV752InventoryCards > * {
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}
#supplierList > *,
#maduLossMobileCards > *,
#maduCustomersList > * {
  content-visibility: auto;
  contain-intrinsic-size: auto 160px;
}
@media print {
  #productsGrid > *, #recipeCards > *, #productionLotCards > *, #maduV752InventoryCards > *,
  #supplierList > *, #maduLossMobileCards > *, #maduCustomersList > * { content-visibility: visible; }
}

/* ═══════════ Organização dos cards do início — origem: madu-reorder-v790.css ═══════════ */
/* V7.90 — organização dos cards por toque prolongado (sem botão "Organizar"). */
#maduV753Customize{display:none!important}
#maduMobileHome .madu-kitchen-action{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
/* Modo de organização: estado calmo, sem tremor; os cards apenas ganham contorno e alça. */
body.madu-shortcuts-editing #maduMobileHome .madu-kitchen-action{outline:1.5px dashed #9db5a4!important;outline-offset:2px;cursor:grab;touch-action:none!important;position:relative}
body.madu-shortcuts-editing #maduMobileHome .madu-kitchen-action .madu-kitchen-arrow{opacity:0}
body.madu-shortcuts-editing #maduMobileHome .madu-kitchen-action::after{content:"";position:absolute;right:14px;top:50%;width:14px;height:10px;margin-top:-5px;pointer-events:none;
 background:linear-gradient(#7d9886,#7d9886) 0 0/100% 2px no-repeat,linear-gradient(#7d9886,#7d9886) 0 50%/100% 2px no-repeat,linear-gradient(#7d9886,#7d9886) 0 100%/100% 2px no-repeat;opacity:.75}
#maduMobileHome .madu-kitchen-action.madu-reorder-lifted{z-index:30;cursor:grabbing;outline:2px solid #547c62!important;opacity:1!important;
 box-shadow:0 18px 34px -10px #1f3a2a55,0 4px 10px #1f3a2a22!important;will-change:transform}
/* Barra flutuante com a alternativa acessível e o "Concluído". */
.madu-reorder-bar{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:8px;
 max-width:calc(100vw - 24px);padding:8px 8px 8px 14px;border-radius:16px;background:#fffffff2;border:1px solid #d6e3da;box-shadow:0 12px 30px -12px #1d33264d;
 -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font:600 13px 'Madu Manrope',system-ui,sans-serif;color:#365c43;animation:maduReorderIn .22s cubic-bezier(.2,.8,.2,1)}
.madu-reorder-bar[hidden]{display:none!important}
.madu-reorder-bar-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.madu-reorder-bar button{min-height:44px;padding:0 14px;border-radius:12px;font-weight:750;white-space:nowrap}
.madu-reorder-secondary{background:#fff;border:1px solid #cfe1d5;color:#365c43}
.madu-reorder-done{background:#345f48;border:1px solid #345f48;color:#fff}
.madu-reorder-bar button:focus-visible{outline:3px solid #9d7248;outline-offset:2px}
@media (max-width:380px){.madu-reorder-bar-text{display:none}}
@media (min-width:768px){.madu-reorder-bar{bottom:24px}}
.madu-reorder-hint{margin:4px 2px 14px;font-size:12px;line-height:1.45;color:#5d7466}
.madu-reorder-hint[hidden]{display:none}
.madu-reorder-hint button{margin-left:4px;padding:2px 4px;min-height:32px;color:#345f48;font-weight:750;text-decoration:underline;text-underline-offset:2px}
body.madu-shortcuts-editing .madu-reorder-hint{display:none}
#maduMobileHome .madu-kitchen-action:focus-visible{outline:3px solid #547c62;outline-offset:2px}
@keyframes maduReorderIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){.madu-reorder-bar{animation:none}}
@media print{.madu-reorder-bar,.madu-reorder-hint{display:none!important}}

/* ═══════════ Entrada · perfis e carregamento — origem: madu-entry-v790.css ═══════════ */
/* V7.90 — Entrada: seleção de perfis e marca de carregamento.
 * Escopo restrito a #loginGate e #maduLoading; nada fora da entrada é alterado. */

/* ---------- Seleção de perfis ---------- */
#loginGate{background:radial-gradient(120% 80% at 50% 0%,#fbfcf8 0%,#f2f5ef 58%,#f6f1ea 100%)!important}
#loginGate>.madu-profile-dialog{border:1px solid #e1e8df!important;border-radius:24px!important;
 box-shadow:0 18px 50px -24px #1d332640,0 2px 6px #1d33260a!important;background:#fff!important}
#loginGate .madu-profile-dialog>.text-center:first-child{flex-shrink:0}
#loginGate .madu-login-company{margin:0 0 6px;font:500 11px/1.3 'Madu Jost','Madu Manrope',system-ui,sans-serif;
 letter-spacing:.22em;text-transform:uppercase;color:#6d8273}
#loginGate #loginTitle{font:700 22px/1.2 'Madu Manrope',system-ui,sans-serif!important;color:#284a37!important;letter-spacing:-.01em}
#loginGate .madu-login-subtitle{font:500 14px/1.4 'Madu Manrope',system-ui,sans-serif;color:#66766b!important}
#loginGate #maduVersionLogin{display:none}

/* Equipe | Gestão */
#loginGate #loginUserSelect .madu-profile-segment{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 auto 14px;
 width:100%;max-width:380px;background:#eef3ec;border:1px solid #e0e8de;border-radius:14px;flex-shrink:0}
#loginGate #loginUserSelect .madu-profile-segment button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
 border-radius:10px;border:0;background:transparent;color:#5a6d60;font:650 14px/1 'Madu Manrope',system-ui,sans-serif;cursor:pointer;
 transition:background-color .18s ease,color .18s ease,box-shadow .18s ease;touch-action:manipulation}
#loginGate #loginUserSelect .madu-profile-segment button i{font-size:12px;opacity:.8}
#loginGate #loginUserSelect .madu-profile-segment button[aria-pressed="true"]{background:#fff;color:#284a37;box-shadow:0 1px 3px #1d33261f}
#loginGate #loginUserSelect .madu-profile-segment button:focus-visible{outline:3px solid #46624f;outline-offset:2px}

#loginGate #loginUserSelect .madu-profile-page-heading{border:0;padding:0;margin:0 2px 10px;align-items:center}
#loginGate #loginUserSelect .madu-profile-page-heading h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#loginGate #loginUserSelect .madu-profile-page-heading p{font-size:13px;color:#6a7a6f}
#loginGate #loginUserSelect .madu-profile-page-counter{font-size:12px;padding:4px 10px;background:#f1f5ef}

/* Busca (somente quando há mais de 12 perfis) */
#loginGate .madu-profile-search{display:flex;align-items:center;gap:10px;min-height:48px;margin:0 2px 12px;padding:0 14px;
 border:1px solid #d9e4da;border-radius:14px;background:#fafcf9;color:#6a7a6f;flex-shrink:0}
#loginGate .madu-profile-search:focus-within{border-color:#6f9278;box-shadow:0 0 0 3px #6f92782e}
#loginGate .madu-profile-search input{flex:1;min-width:0;border:0;background:transparent;outline:0;font:500 16px/1.2 'Madu Manrope',system-ui,sans-serif;color:#284a37}

/* Grade */
#loginGate #loginUserSelect .madu-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 3px 10px;align-content:start}
@media(min-width:600px){#loginGate #loginUserSelect .madu-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(min-width:900px){#loginGate #loginUserSelect .madu-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}}

#loginGate #loginUserSelect .madu-profile-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:10px;min-height:136px;padding:16px 10px 14px;border:1px solid #e1e9e0;border-radius:18px;background:#fff;color:#284a37;
 box-shadow:0 1px 2px #1d33260d;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
 transition:transform .16s cubic-bezier(.2,.7,.3,1),box-shadow .18s ease,border-color .18s ease,background-color .18s ease,opacity .2s ease}
#loginGate #loginUserSelect .madu-profile-tile[hidden]{display:none}
@media(hover:hover){#loginGate #loginUserSelect .madu-profile-tile:hover{border-color:#b9cdbd;background:#fbfdfa;box-shadow:0 6px 18px -10px #1d332640;transform:translateY(-1px)}}
#loginGate #loginUserSelect .madu-profile-tile:active{transform:scale(.97);background:#f4f8f3}
#loginGate #loginUserSelect .madu-profile-tile:focus-visible{outline:3px solid #46624f;outline-offset:3px}
#loginGate #loginUserSelect .madu-profile-avatar{width:68px;height:68px;font:700 26px/1 'Madu Manrope',system-ui,sans-serif;border:0;
 box-shadow:inset 0 0 0 1px #00000008;transition:box-shadow .2s ease}
@media(min-width:600px){#loginGate #loginUserSelect .madu-profile-avatar{width:78px;height:78px;font-size:30px}#loginGate #loginUserSelect .madu-profile-tile{min-height:156px}}
#loginGate .madu-profile-tone-0{background:#e3ece2!important;color:#3d604a!important}
#loginGate .madu-profile-tone-1{background:#ebe6f2!important;color:#5d527a!important}
#loginGate .madu-profile-tone-2{background:#f6e8dc!important;color:#8a5a3e!important}
#loginGate .madu-profile-tone-3{background:#e0eeec!important;color:#35625c!important}
#loginGate .madu-profile-tone-4{background:#f1ecdc!important;color:#76663a!important}
#loginGate #loginUserSelect .madu-profile-text{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;max-width:100%}
#loginGate #loginUserSelect .madu-profile-name{font:650 17px/1.2 'Madu Manrope',system-ui,sans-serif;color:#24402f;text-align:center;
 overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#loginGate #loginUserSelect .madu-profile-role{font:500 12.5px/1.3 'Madu Manrope',system-ui,sans-serif;color:#6c7c71;text-align:center;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#loginGate #loginUserSelect .madu-profile-lock{position:absolute;top:11px;right:12px;font-size:12px;color:#8b9a8f}

/* Selecionado: anel discreto enquanto o perfil entra */
#loginGate #loginUserSelect.is-entering .madu-profile-tile:not(.is-selected){opacity:.5;pointer-events:none}
#loginGate #loginUserSelect .madu-profile-tile.is-selected{border-color:#365c43;background:#f2f7f1;box-shadow:0 0 0 3px #365c4329;transform:scale(.985)}
#loginGate #loginUserSelect .madu-profile-tile.is-selected .madu-profile-avatar{box-shadow:0 0 0 3px #fff,0 0 0 5px #365c43}

#loginGate #loginUserSelect .madu-profile-empty{margin:4px 2px}
@media(max-width:360px){#loginGate #loginUserSelect .madu-profile-avatar{width:56px;height:56px;font-size:22px}#loginGate #loginUserSelect .madu-profile-name{font-size:15.5px}#loginGate #loginUserSelect .madu-profile-tile{min-height:120px;padding:12px 6px}}
@media(prefers-reduced-motion:reduce){#loginGate #loginUserSelect :is(.madu-profile-tile,.madu-profile-segment button){transition:none!important}#loginGate #loginUserSelect .madu-profile-tile:active{transform:none}}

/* ---------- Marca de carregamento (somente entrada no perfil) ---------- */
#maduLoading{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;
 background:radial-gradient(110% 70% at 50% 40%,#fbfcf8 0%,#f1f5ee 62%,#ebf0e8 100%)!important;color:#284a37;touch-action:none;
 animation:maduEntryIn .18s ease-out both}
#maduLoading[hidden]{display:none!important}
#maduLoading.is-leaving{animation:maduEntryOut .22s ease-in both}
#maduLoading>i{display:none}
#maduLoading .madu-loading-mark{display:flex;flex-direction:column;align-items:center;gap:18px}
#maduLoading .madu-loading-word{font:400 clamp(30px,7vw,46px)/1 'Madu Jost','Madu Manrope',system-ui,sans-serif;letter-spacing:.42em;
 padding-left:.42em;color:#284a37;animation:maduBreath 2.4s ease-in-out infinite;will-change:opacity,transform}
#maduLoading .madu-loading-line{display:block;width:clamp(42px,9vw,64px);height:1px;background:linear-gradient(90deg,transparent,#6f9278,transparent);
 animation:maduBreathLine 2.4s ease-in-out infinite}
@keyframes maduBreath{0%,100%{opacity:.62;transform:scale(.985)}50%{opacity:1;transform:scale(1)}}
@keyframes maduBreathLine{0%,100%{opacity:.35;transform:scaleX(.7)}50%{opacity:.9;transform:scaleX(1)}}
@keyframes maduEntryIn{from{opacity:0}to{opacity:1}}
@keyframes maduEntryOut{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){
 #maduLoading,#maduLoading.is-leaving{animation:none!important}
 #maduLoading .madu-loading-word,#maduLoading .madu-loading-line{animation:none!important;opacity:1;transform:none}
}
@media print{#maduLoading{display:none!important}}

/* Altura natural dos cartões (nomes em duas linhas não são cortados). */
#loginGate #loginUserSelect .madu-profile-grid{grid-auto-rows:auto}
#loginGate #loginUserSelect .madu-profile-tile{height:auto;flex-shrink:0}
@media(max-width:767px){
 #loginGate .madu-profile-dialog .bg-\[\#f0f5ef\].rounded-2xl{padding:5px!important;max-width:120px!important;margin-bottom:8px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
 #loginGate .madu-profile-dialog .js-app-logo{max-height:40px!important}
 #loginGate #loginTitle{font-size:20px!important}
}

/* ═══════════ Atualização por gesto e permissões — origem: madu-refresh-v790.css ═══════════ */
/* V7.90 — atualização manual por gesto. O navegador não recarrega a página ao
 * puxar para baixo (no Android, o recarregamento nativo voltava ao login). */
html.madu-ptr-ready,html.madu-ptr-ready body{overscroll-behavior-y:contain}
html.madu-ptr-ready body:not(.auth-locked) main{overscroll-behavior-y:contain}
#maduPullRefresh{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 54px);z-index:70;pointer-events:none;
 transform:translate3d(-50%,calc(var(--ptr-y,0px) - 52px),0);opacity:0;transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .2s ease}
#maduPullRefresh.is-visible{opacity:calc(.25 + var(--ptr-p,0) * .75)}
#maduPullRefresh.is-pulling{transition:none}
#maduPullRefresh.is-loading,#maduPullRefresh.is-done,#maduPullRefresh.is-error{opacity:1}
.madu-ptr-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fdfefb;color:#365c43;
 border:1px solid #dfe8de;box-shadow:0 6px 18px #1d33261f,0 1px 3px #1d332614}
.madu-ptr-disc>i{grid-area:1/1;font-size:15px;transition:opacity .16s ease,transform .16s ease}
.madu-ptr-arrow{transform:rotate(calc(var(--ptr-p,0) * 180deg))}
#maduPullRefresh.is-armed .madu-ptr-arrow{color:#24543a}
.madu-ptr-spin{width:18px;height:18px;border-radius:50%;border:2.25px solid #dce7dd;border-top-color:#365c43;opacity:0}
.madu-ptr-done{opacity:0;transform:scale(.6)}
#maduPullRefresh.is-loading .madu-ptr-arrow,#maduPullRefresh.is-done .madu-ptr-arrow,#maduPullRefresh.is-error .madu-ptr-arrow{opacity:0}
#maduPullRefresh.is-loading .madu-ptr-spin{opacity:1;animation:maduPtrSpin .72s linear infinite}
#maduPullRefresh.is-done .madu-ptr-done{opacity:1;transform:scale(1)}
#maduPullRefresh.is-error .madu-ptr-disc{color:#994c4a;border-color:#f0d6d3}
#maduPullRefresh.is-error .madu-ptr-done{opacity:1;transform:scale(1)}
#maduPullRefresh.is-error .madu-ptr-done::before{content:"\f071"}
@keyframes maduPtrSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
 #maduPullRefresh,.madu-ptr-disc>i{transition:none}
 #maduPullRefresh.is-loading .madu-ptr-spin{animation-duration:1.6s}
}
@media print{#maduPullRefresh{display:none!important}}
/* V7.90: funções sem permissão nunca aparecem, mesmo que um estilo visual
 * posterior force a exibição dos cards (antes, o card aparecia e o toque
 * mostrava "Esta função não está disponível para o cargo deste perfil"). */
html body .madu-role-hidden.madu-role-hidden,
html body #maduMobileHome .madu-kitchen-actions>.madu-kitchen-action.madu-role-hidden.madu-role-hidden.madu-role-hidden,
html body #maduMobileBottomBar>button.madu-role-hidden,
html body #appNav button.madu-role-hidden{display:none!important}
