/* Estilos exclusivos do novo módulo: não modifica Serviço pendente nem o calendário existente. */
#quotes{max-width:100%;background:#f7faff;color:#142b50;overflow:hidden}
#quotes .qhead{background:linear-gradient(118deg,#174b8b 0%,#0576a7 100%);padding:24px 28px 24px;min-height:185px}
#quotes .qbrand{height:55px;display:flex;align-items:center;justify-content:center}
#quotes .qbrand img{display:block;max-height:55px;max-width:220px;object-fit:contain}
#quotes .qhead h1{margin-top:15px;font-size:36px}
#quotes .qbody{padding:20px 24px 34px}
#quotes .qmodule h2{font-size:21px;margin:20px 0 12px;color:#172c50}
#quotes .qmetrics4{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#quotes .qm{display:flex;flex-direction:column;gap:5px;border:1px solid #d9e6f3;border-radius:14px;min-height:108px;background:#f2f9ff;padding:14px;color:#17365d}
#quotes .qm span{font-size:27px;color:#0d79ce}#quotes .qm b{font-size:23px}#quotes .qm small{font-size:13px}
#quotes .qm-green{background:#eefcf7}#quotes .qm-green span{color:#16865c}
#quotes .qm-yellow{background:#fff9ed}#quotes .qm-yellow span{color:#c7820c}
#quotes .qm-red{background:#fff1f1}#quotes .qm-red span{color:#cf394b}
#quotes .qm-orange{background:#fff5ec}#quotes .qm-violet{background:#f7f5ff}
#quotes .qquick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#quotes .qquick button{border:1px solid #d7e5f2;background:#fff;border-radius:12px;padding:16px 10px;display:flex;gap:12px;align-items:center;color:#086bb4;font-size:22px;text-align:left;min-height:69px}
#quotes .qquick button b{font-size:14px;color:#182c4d}
#quotes .qmoduleCard{display:flex;align-items:center;gap:7px;margin:9px 0;background:white;border:1px solid #dce7f4;border-radius:13px;padding:8px}
#quotes .qmoduleCard>button:first-child{min-width:0;flex:1;border:0;background:transparent;color:#172b4b;display:flex;gap:12px;align-items:center;text-align:left;padding:8px}
#quotes .qmoduleCard>button>span:nth-child(2){min-width:0;flex:1}
#quotes .qmoduleCard strong,#quotes .qmoduleCard small{display:block;overflow-wrap:anywhere}
#quotes .qmoduleCard small{color:#697b96;margin-top:5px;font-size:12px}
#quotes .qmoduleCard em{font-size:12px;font-style:normal;color:#1262a3;background:#edf7ff;border-radius:14px;padding:6px;max-width:130px}
#quotes .qmoduleIcon{background:#edf7ff;color:#0b71bf;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;font-size:24px;flex-shrink:0}
#quotes .qmoduleCard .qdelete{flex-shrink:0;width:30px;height:30px;border:1px solid #ffccd5;background:#fff4f5;color:#c22346;border-radius:8px;font-size:20px}
#quotes .qcalendar{background:#fff;border:1px solid #dce7f4;border-radius:17px;padding:15px;margin:16px 0}
#quotes .qcalhead{display:flex;justify-content:space-between;align-items:center;text-transform:capitalize}
#quotes .qcalhead button{background:#ecf7ff;border:0;border-radius:9px;font-size:28px;color:#0069b8;min-width:40px}
#quotes .qcalhead h2{font-size:19px;margin:0}
#quotes .qcalgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:15px}
#quotes .qcalgrid>b{font-size:12px;text-align:center;color:#53677f}
#quotes .qcalgrid button{background:#f8fbff;color:#17365c;border:1px solid #e5ecf6;border-radius:8px;min-height:54px;font-size:15px}
#quotes .qcalgrid button.selected{background:#0575db;color:white;border-color:#0575db}
#quotes .qcalgrid small{display:block;font-size:10px;color:#159a6a}
#quotes .qcalgrid button.selected small{color:white}
#quotes .qbottom{position:sticky;bottom:0;z-index:2}
#quotes .qbottom button{min-width:0;overflow-wrap:anywhere}
#quotes .qform textarea{background:#fff;color:#1d3457}
@media(max-width:750px){#quotes .qmetrics4{grid-template-columns:repeat(2,minmax(0,1fr))}#quotes .qquick{grid-template-columns:repeat(2,minmax(0,1fr))}#quotes .qmoduleCard em{display:none}#quotes .qbottom button{font-size:9px}#quotes .qbottom button span{font-size:19px}#quotes .qbody{padding:15px 12px 20px}}
@media print{.topbar,#quotes .qheadShort>button,#quotes .qactions,#quotes .qbottom{display:none!important}body,#quotes,#quotes .qpreview section{background:white!important;color:black!important}#quotes .qbody{padding:0}main{max-width:none;padding:0}}

/* Etapa 3: menos espaço vazio no painel, mantendo a estrutura das imagens. */
#quotes .qhead:not(.qheadShort){min-height:126px;padding:12px 20px 14px}
#quotes .qbrand{height:36px}
#quotes .qbrand img{max-height:37px;max-width:170px}
#quotes .qhead:not(.qheadShort) h1{font-size:29px;line-height:1.08;margin:7px 0 0}
#quotes .qhead:not(.qheadShort) p{font-size:14px;margin:3px 0 0}
#quotes .qhead:not(.qheadShort) .qplus{height:43px;width:43px;font-size:27px;top:16px;right:20px}
#quotes .qbody{padding:13px 18px 20px}
#quotes .qsearch{margin-bottom:10px}
#quotes .qsearch input{padding:9px 11px}
#quotes .qmetrics{gap:8px}
#quotes .qmetrics button{min-height:76px;padding:7px 9px}
#quotes .qmetrics span{font-size:19px;line-height:1.1}
#quotes .qmetrics b{font-size:19px;line-height:1.1}
#quotes .qmetrics small{font-size:11px}
#quotes .qsection{margin:13px 0 7px}
#quotes .qsection h2{font-size:19px}
#quotes .qwidgets{gap:8px}
#quotes .qwidgets article{padding:9px 11px;min-height:70px}
#quotes .qwidgets article b{font-size:14px}
#quotes .qwidgets p{margin:6px 0 0;line-height:1.35}
#quotes .qcard{padding:11px;margin:6px 0}
#quotes .qbottom{padding:5px 3px}
#quotes .qbottom button span{font-size:20px}
#quotes .qclientHint{font-size:12px;color:#607591;margin:8px 0 12px}
#quotes .qclientOverlay{position:fixed;inset:0;z-index:1000;background:rgba(5,18,38,.72);display:flex;align-items:center;justify-content:center;padding:16px}
#quotes .qclientDialog{background:#fff;color:#162d50;border-radius:18px;border:1px solid #b9d9f2;box-shadow:0 24px 60px #0006;padding:19px;width:min(610px,100%);max-height:88vh;display:flex;flex-direction:column}
#quotes .qclientDialogHead{display:flex;justify-content:space-between;gap:12px;align-items:start}
#quotes .qclientDialogHead h2{font-size:21px;margin:0}
#quotes .qclientDialogHead p{font-size:12px;color:#607591;margin:5px 0 8px}
#quotes .qclientDialogHead button{background:#eef5fb;color:#173b67;border:1px solid #caddef;border-radius:9px;padding:7px 10px;font-size:19px}
#quotes .qclientDialog label{margin:6px 0;font-size:13px}
#quotes .qclientDialog input{flex-shrink:0}
#quotes .qclientCount{font-size:12px;color:#64738a;margin:8px 0}
#quotes .qclientResults{overflow-y:auto;min-height:55px;display:grid;gap:7px;align-content:start}
#quotes .qclientResults button{display:block;text-align:left;color:#142b50;background:#f6faff;border:1px solid #d7e4f5;border-radius:10px;padding:10px 12px}
#quotes .qclientResults button:hover,#quotes .qclientResults button:focus-visible{background:#e7f3ff;border-color:#1787d6}
#quotes .qclientResults button strong,#quotes .qclientResults button small{display:block}
#quotes .qclientResults button small{color:#586d87;margin-top:4px;font-size:12px}
@media(max-width:750px){#quotes .qbody{padding:11px 10px 16px}#quotes .qhead:not(.qheadShort){padding:10px 13px;min-height:122px}#quotes .qhead:not(.qheadShort) .qplus{right:13px}#quotes .qmetrics{grid-template-columns:repeat(3,minmax(0,1fr))}#quotes .qmetrics button{min-height:73px}#quotes .qwidgets{grid-template-columns:1fr}#quotes .qwidgets article{min-height:58px}#quotes .qbottom button{font-size:9px}}


/* ETAPA 4 — ajustes restritos ao módulo de Orçamentos. */
/* O painel preenche a altura livre quando há poucos registros, sem empurrar
   a navegação para cima nem criar faixas brancas abaixo dela. */
#quotes.view.active{
  display:flex;
  flex-direction:column;
  min-height:calc(100dvh - 82px - 123px);
  height:auto;
}
#quotes > .qbody{flex:1 0 auto;min-height:0}
#quotes > .qbottom{
  flex:0 0 auto;
  position:relative;
  bottom:auto;
  margin-top:auto;
  width:100%;
}
/* Marca no canto esquerdo do cabeçalho azul, sem alterar o topo da Gestão. */
#quotes .qbrand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  width:fit-content;
  max-width:calc(100% - 64px);
  height:37px;
  text-align:left;
}
#quotes .qbrand img{
  display:block;
  width:38px;
  height:37px;
  max-width:38px;
  max-height:37px;
  object-fit:contain;
  flex-shrink:0;
}
#quotes .qbrandCopy{display:flex;flex-direction:column;min-width:0;line-height:1.05}
#quotes .qbrandCopy strong{color:#ffdb46;font-weight:900;font-size:15px;letter-spacing:.15px}
#quotes .qbrandCopy small{color:#f1f7ff;font-size:11px;margin-top:3px}
/* Indicadores e ações do PMOC usam a mesma densidade do painel inicial. */
#quotes .qmodule h2{font-size:19px;margin:12px 0 8px}
#quotes .qmetrics4{gap:8px}
#quotes .qm{min-height:77px;padding:8px 10px;gap:2px}
#quotes .qm span{font-size:19px;line-height:1.1}
#quotes .qm b{font-size:19px;line-height:1.1}
#quotes .qm small{font-size:11px;line-height:1.25}
#quotes .qquick{gap:8px}
#quotes .qquick button{min-height:52px;padding:9px;gap:8px;font-size:19px}
#quotes .qquick button b{font-size:13px}
/* A agenda mantém o calendário próprio, mas com células mais baixas. */
#quotes .qcalendar{padding:10px 12px;margin:6px 0 9px}
#quotes .qcalgrid{gap:4px;margin-top:9px}
#quotes .qcalgrid button{min-height:39px;padding:3px;font-size:13px}
#quotes .qcalgrid>b{font-size:11px}
#quotes .qcalhead h2{font-size:17px!important}
#quotes .qcalhead button{font-size:22px;min-width:32px}
@media(max-width:750px){
 #quotes.view.active{min-height:calc(100dvh - 74px - 112px)}
 #quotes .qbrand{height:34px}
 #quotes .qbrand img{width:34px;height:34px;max-width:34px;max-height:34px}
 #quotes .qbrandCopy strong{font-size:12px}
 #quotes .qbrandCopy small{font-size:10px}
 #quotes .qmetrics4{grid-template-columns:repeat(2,minmax(0,1fr))}
 #quotes .qcalgrid button{min-height:35px;font-size:12px}
}
@media print{#quotes.view.active{min-height:0;display:block}#quotes > .qbody{display:block}}

/* Etapa 5 — ações e seleção de catálogo restritas ao módulo de Orçamentos */
#quotes .qcardMenu{display:block;margin:-3px 8px 10px auto;padding:6px 11px;border:1px solid #cee0f4;border-radius:9px;color:#205080;background:#fff;cursor:pointer}
#quotes .qextraActions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
#quotes .qextraActions button,#quotes .qtemplateItem>button{border:1px solid #cbdcf0;background:#f5faff;border-radius:9px;padding:10px;color:#163a66;cursor:pointer}
#quotes .qtemplateItem{display:flex;align-items:center;gap:7px}
#quotes .qtemplateItem>button:first-child{flex:1;text-align:left}
#quotes .qtemplateItem>button:last-child{color:#b42339}
#quotes .qform .qsection{gap:8px;flex-wrap:wrap}

/* Etapa 9: botões de proteção dos dados e ações financeiras. */
#quotes .qsection button{cursor:pointer}
#quotes .qserviceStock{cursor:pointer}
#quotes .qsection{flex-wrap:wrap;gap:7px}
#quotes .qsection button[data-act="exportBackup"],#quotes .qsection button[data-act="importBackup"]{white-space:nowrap}

/* Etapa 10: histórico de movimentações dentro do módulo. */
#quotes .qmoveItem{padding:10px 12px;border:1px solid #d6e5f3;border-radius:10px;background:#f8fbff;color:#17365d}
#quotes .qmoveItem strong,#quotes .qmoveItem small{display:block}
#quotes .qmoveItem small{margin-top:4px;color:#607591}

/* Etapa 11: indicação de sincronização exclusiva da área Orçamentos. */
#quotes #qCloudStatus{display:inline-flex;align-items:center;font-size:12px;color:#256087;background:#ecf6ff;border:1px solid #cee4f6;border-radius:9px;padding:7px 9px;max-width:100%;overflow-wrap:anywhere}
#quotes [data-act="cloudSync"]{white-space:normal}

/* Acabamento responsivo — somente #quotes; não altera a Gestão de Manutenção. */
#quotes{--q-navy:#162b50;--q-blue:#0575d5;--q-line:#d7e5f4;--q-green:#08764b;--q-yellow:#b67904}
#quotes button{cursor:pointer}#quotes button:focus-visible,#quotes input:focus-visible,#quotes select:focus-visible{outline:3px solid #1888e8;outline-offset:2px}
#quotes .qdashboard{background:#f8fbff}#quotes .qsearch{display:flex;gap:9px;align-items:stretch}#quotes .qsearch input{min-width:0;flex:1;background:#fff;color:#17315b;border:1px solid #cedef0;border-radius:12px;padding:12px;font-size:15px}#quotes .qsearch button{width:76px;flex-shrink:0;border:1px solid #d5e3f3;border-radius:12px;background:white;color:#12355f}
#quotes .qstatGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 18px}#quotes .qstatGrid5{grid-template-columns:repeat(5,minmax(0,1fr))}
#quotes .qstat{position:relative;min-width:0;min-height:108px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;padding:13px 14px;border:1px solid #d6e5f5;border-radius:13px;color:#162b50;background:#f1f7ff}
#quotes .qstat b{font-size:24px;line-height:1.15}#quotes .qstat>span:not(.qstatIcon):not(.qstatChevron){font-size:13px;line-height:1.3}#quotes .qstat>small{font-size:11px;color:#286b52}#quotes .qstatIcon{font-size:27px;font-weight:900;color:#1466ba}#quotes .qstatChevron{position:absolute;top:17px;right:12px;font-size:23px;color:currentColor;opacity:.65}
#quotes .qstat-blue{background:#eff7ff}#quotes .qstat-green{background:#edfaf6}#quotes .qstat-green .qstatIcon{color:#087b4e}#quotes .qstat-yellow{background:#fff9ec}#quotes .qstat-yellow .qstatIcon{color:#d48b0e}#quotes .qstat-orange{background:#fff3ec}#quotes .qstat-orange .qstatIcon{color:#db741d}#quotes .qstat-red{background:#fff1f2}#quotes .qstat-red .qstatIcon{color:#c91e43}#quotes .qstat-violet{background:#f7f5ff}#quotes .qstat-violet .qstatIcon{color:#6655b5}
#quotes .qsectionNew{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:15px 0 9px}#quotes .qsectionNew h2{font-size:20px;margin:0}#quotes .qsectionActions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}#quotes .qsectionActions button,#quotes .qtoolRow button{background:#fff;color:#0b4f97;border:1px solid #d3e3f4;border-radius:9px;padding:8px 10px;font-size:12px}
#quotes .qwidgetGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#quotes .qwidgetCard{display:flex;min-width:0;align-items:flex-start;flex-direction:column;text-align:left;gap:8px;padding:14px;border:1px solid #d9e6f3;border-radius:13px;background:#edf7ff;color:#15345c}#quotes .qwidgetTitle{display:flex;width:100%;gap:9px;align-items:center;font-weight:800;font-size:13px}#quotes .qwidgetTitle>span:first-child{font-size:24px;color:#0876c8}#quotes .qwidgetDots{margin-left:auto}#quotes .qwidgetCard strong{font-size:22px}#quotes .qwidgetCard small{font-size:12px;color:#546883;line-height:1.4}#quotes .qwidget-green{background:#ecfaf4}#quotes .qwidget-yellow{background:#fff9ec}
#quotes .qentry{position:relative;display:flex;align-items:center;margin:7px 0;gap:8px;padding:8px;border:1px solid #dbe7f5;border-radius:13px;background:white;color:#172b4d}#quotes .qentryMain{display:flex;flex:1;min-width:0;align-items:center;gap:11px;text-align:left;border:0!important;background:transparent!important;padding:5px!important;color:inherit!important}#quotes .qentryIcon{flex-shrink:0;width:46px;height:46px;display:grid;place-items:center;color:#086fc4;background:#edf7ff;border-radius:13px;font-size:23px}#quotes .qentryInfo{flex:1;min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}#quotes .qentryInfo strong{font-size:15px}#quotes .qentryInfo small{font-size:12px;color:#576d89;line-height:1.4}#quotes .qentrySide{display:flex;flex-direction:column;gap:9px;align-items:flex-end;text-align:right;flex-shrink:0}#quotes .qentrySide b{font-size:17px}#quotes .qentryMore{align-self:flex-start;background:#fff;border:1px solid #d6e7f6;border-radius:8px;padding:6px 9px;color:#0d558d}#quotes .qbadge{display:inline-block;width:max-content;max-width:100%;padding:5px 9px;font-size:11px;border-radius:30px;font-weight:700;white-space:normal}#quotes .qbadge-success{background:#def7ec;color:#096c45}#quotes .qbadge-warning{background:#fff1d9;color:#a45a00}#quotes .qbadge-blue{background:#e1f1ff;color:#075b9e}#quotes .qbadge-danger{background:#ffe3e5;color:#ae2535}#quotes .qentryTools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}#quotes .qentryTools button{border:1px solid #d9e6f4;background:white;color:#0865af;padding:7px;border-radius:8px;font-size:12px}#quotes .qentryTools .qdelete{color:#a92240;background:#fff4f5;border-color:#ffd9de}
#quotes .qtoolRow{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:15px}#quotes #qCloudStatus{font-size:12px;color:#235a5f;margin-left:auto}#quotes .qfilterHint{font-size:12px;color:#25639b}#quotes .qfilterHint button{background:none;border:0;color:#0a71bb;text-decoration:underline}
#quotes .qphoto{display:block;width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid #e0e9f4;border-radius:10px;flex-shrink:0}#quotes .qplaceholder{display:grid;place-items:center;background:#e9f5ff;color:#1677c4;font-size:26px}#quotes .qimageChooser{display:flex;align-items:center;gap:14px;margin:12px 0;padding:12px;background:#f3f8ff;border-radius:13px;border:1px solid #dae7f4}#quotes .qimageChooser .qphoto{width:90px;height:90px}#quotes .qimageChooser>div{flex:1;min-width:0}#quotes .qimageChooser small{display:block;color:#65758a;font-size:12px}#quotes .qimageChooser input{font-size:13px;padding:8px}#quotes .qimageChooser button{background:white;border:1px solid #d5e4f3;border-radius:8px;padding:7px;color:#155c9f}
#quotes .qalertGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}#quotes .qalertCard{min-width:0;background:#fff;border:1px solid #dce6f4;border-radius:14px;text-align:left;padding:12px;color:#152e51;display:flex;gap:7px;align-items:flex-start;flex-direction:column}#quotes .qalertCard strong{font-size:14px}#quotes .qalertNumbers{font-size:12px;color:#55657d}#quotes .qalertNumbers b{color:#b62237}#quotes .qquick button{justify-content:space-between;padding:9px 10px;color:#164778}#quotes .qquickIcon{background:#edf7ff;border-radius:11px;min-width:35px;height:35px;display:grid;place-items:center;font-size:23px}#quotes .qquick button>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}#quotes .qquick button small{font-size:11px;color:#64758b}#quotes .qquickArrow{font-size:22px}#quotes .qproductivity{display:flex;align-items:center;gap:12px;padding:14px;width:100%;margin-top:13px;background:#fff;color:#163453;border:1px solid #d9e7f4;border-radius:13px;text-align:left}#quotes .qproductivity>span:first-child{font-size:27px;color:#0a73c2}#quotes .qproductivity>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}#quotes .qproductivity small{color:#546b87}
#quotes .qfinalPreview section{background:white;border:1px solid #d9e5f3;border-radius:15px;padding:15px;margin:12px 0}#quotes .qpreviewBrand{display:flex;gap:15px;align-items:center}#quotes .qpreviewBrand img{width:90px;max-height:90px;object-fit:contain}#quotes .qpreviewBrand h2{margin:0;font-size:21px;color:#173353}#quotes .qpreviewBrand p{margin:5px 0;color:#566981}#quotes .qpreviewCompany{display:flex;flex-direction:column;gap:5px}#quotes .qpreviewIdentity{display:grid;grid-template-columns:1fr 1fr;gap:15px}#quotes .qpreviewClient h3{font-size:18px}#quotes .qpreviewClient p{line-height:1.6}#quotes .qpreviewTableHead,#quotes .qpreviewLine{display:grid;grid-template-columns:minmax(0,1fr) 55px 100px 110px;gap:8px;align-items:center}#quotes .qpreviewTableHead{background:#edf7ff;color:#1b5c97;margin:-15px -15px 8px;padding:12px;border-radius:14px 14px 0 0}#quotes .qpreviewTableHead.product{background:#fff8e6;color:#946400}#quotes .qpreviewTableHead h2{margin:0;font-size:18px}#quotes .qpreviewTableHead>span{font-size:12px;text-align:right}#quotes .qpreviewLine{position:relative;padding:10px 0;border-bottom:1px solid #e6eef8}#quotes .qpreviewLine .qphoto,#quotes .qpreviewRowIcon{position:absolute;left:0;top:9px;width:36px;height:36px;display:grid;place-items:center;font-size:20px;color:#0d72bd}#quotes .qpreviewName{min-width:0;padding-left:42px;display:grid;gap:4px}#quotes .qpreviewName small{font-size:11px;color:#75849a}#quotes .qpreviewQty,#quotes .qpreviewUnit,#quotes .qpreviewTotal{text-align:right;font-size:12px}#quotes .qpreviewSummary p{display:flex;justify-content:space-between}#quotes .qpreviewSummary h2{display:flex;justify-content:space-between;background:#eaf5ff;border-radius:9px;padding:10px;font-size:22px}#quotes .qpreviewActions{display:grid;grid-template-columns:1fr 1fr;gap:9px}#quotes .qpreviewActions button{border:1px solid #d5e4f3;border-radius:10px;background:white;color:#11558e;padding:12px;font-weight:750}#quotes .qpreviewActions .qprimary{background:#078446;color:white}
@media(min-width:751px){#quotes .qentryTools{max-width:46%}}
@media(max-width:900px){#quotes .qstatGrid5{grid-template-columns:repeat(3,minmax(0,1fr))}#quotes .qalertGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#quotes .qbody{padding:12px 10px 20px}#quotes .qstatGrid,#quotes .qstatGrid5{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#quotes .qstat{min-height:96px;padding:10px}#quotes .qstat b{font-size:20px}#quotes .qstatIcon{font-size:23px}#quotes .qwidgetGrid{grid-template-columns:1fr;gap:7px}#quotes .qwidgetCard{min-height:96px}#quotes .qsectionNew h2{font-size:18px}#quotes .qentry{align-items:stretch;flex-wrap:wrap}#quotes .qentryMain{gap:7px;width:100%}#quotes .qentryIcon{width:35px;height:35px;font-size:20px}#quotes .qentryInfo strong{font-size:13px}#quotes .qentryInfo small{font-size:11px}#quotes .qentrySide{max-width:98px}#quotes .qentrySide b{font-size:13px}#quotes .qentryTools{width:100%}#quotes .qentryMore{padding:4px}#quotes .qalertGrid{grid-template-columns:1fr}#quotes .qimageChooser{align-items:flex-start}#quotes .qimageChooser .qphoto{width:65px;height:65px}#quotes .qpreviewIdentity{grid-template-columns:1fr}#quotes .qpreviewTableHead,#quotes .qpreviewLine{grid-template-columns:minmax(0,1fr) 32px 63px 70px;gap:4px}#quotes .qpreviewTableHead h2{font-size:14px}#quotes .qpreviewTableHead>span,#quotes .qpreviewQty,#quotes .qpreviewUnit,#quotes .qpreviewTotal{font-size:10px}#quotes .qpreviewSummary h2{font-size:17px}#quotes .qpreviewActions{grid-template-columns:1fr}#quotes .qquick{grid-template-columns:1fr 1fr}#quotes .qquick button{padding:8px 6px;min-height:57px}#quotes .qquick button b{font-size:12px}#quotes .qquick button small{font-size:10px}#quotes .qtoolRow{gap:5px}#quotes .qsearch button{width:63px}}
@media(max-width:380px){#quotes .qquick{grid-template-columns:1fr}#quotes .qstatGrid5{grid-template-columns:repeat(2,minmax(0,1fr))}#quotes .qstat{min-height:100px}#quotes .qpreviewTableHead,#quotes .qpreviewLine{grid-template-columns:minmax(0,1fr) 26px 54px 60px}}
@media print{#quotes .qtoolRow,#quotes .qpreviewActions,#quotes .qentryMore,#quotes .qentryTools{display:none!important}}

/* Estoque: cadastro e precificação responsivos. Somente no módulo Orçamentos. */
#quotes .qstockFull{grid-column:1/-1;min-width:0;display:grid;gap:12px}
#quotes .qstockIdentity{display:grid;grid-template-columns:2fr 1.2fr 1fr;gap:12px;align-items:end}
#quotes .qstockFields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px;background:#f1f7ff;border:1px solid #d2e2f3;border-radius:13px}
#quotes .qstockIdentity label,#quotes .qstockFields label{min-width:0;font-weight:700;color:#193b60;font-size:13px}
#quotes .qstockFields input,#quotes .qstockIdentity input,#quotes .qstockIdentity select{display:block;width:100%;min-width:0;min-height:44px;font-size:16px;color:#162d50;background:#fff}
#quotes .qpricing{border:1px solid #bfdbf4;border-radius:14px;padding:14px;background:linear-gradient(135deg,#f1f8ff,#fff)}
#quotes .qpricing summary{cursor:pointer;color:#164c80;font-size:17px;font-weight:800}
#quotes .qstockCalcFields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#quotes .qcalcResult{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}
#quotes .qcalcResult>div{padding:10px;background:#fff;border:1px solid #d8e4f4;border-radius:10px;min-width:0}
#quotes .qcalcResult small,#quotes .qcalcResult strong{display:block;overflow-wrap:anywhere}
#quotes .qcalcResult small{color:#61738b;font-size:12px;margin-bottom:5px}
#quotes .qcalcResult strong{color:#12385c;font-size:16px}
#quotes .qapplyPrice{width:100%;background:#ffce42;color:#17334e;border:0;border-radius:10px;padding:13px;font-weight:800;min-height:44px}
@media(max-width:850px){#quotes .qstockIdentity{grid-template-columns:1fr 1fr}#quotes .qstockIdentity label:first-child{grid-column:1/-1}#quotes .qstockFields{grid-template-columns:repeat(2,minmax(0,1fr))}#quotes .qcalcResult{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:450px){#quotes .qstockIdentity{grid-template-columns:1fr}#quotes .qstockIdentity label:first-child{grid-column:auto}#quotes .qstockFields{gap:8px;padding:9px}#quotes .qstockCalcFields{grid-template-columns:1fr}#quotes .qcalcResult{grid-template-columns:repeat(2,minmax(0,1fr))}#quotes .qpricing{padding:10px}}

/* Finalização: formulários, diálogos e navegação dos seis módulos. */
#quotes{overflow:visible}
#quotes .qhead{overflow:hidden}
#quotes .qheadShort .qbrand{margin-left:32px;max-width:calc(100% - 80px)}
#quotes > .qbottom{position:sticky;bottom:0;z-index:20;padding-bottom:max(7px,env(safe-area-inset-bottom));box-shadow:0 -3px 12px #193b6012}
#quotes .qbottom button{min-height:48px;font-size:12px}
#quotes .qbottom button:focus-visible{outline-offset:-3px}
#quotes .qclientDialog{overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 32px)}
#quotes .qclientDialogHead{position:sticky;top:-19px;background:white;z-index:2;padding:8px 0}
#quotes .qclientDialogHead button,#quotes .qentryMore,#quotes .qmoduleCard .qdelete{min-width:44px;min-height:44px}
#quotes .qclientDialog > *{flex-shrink:0}
#quotes .qclientResults{flex-shrink:1}
#quotes .qform .qgrid > .qgrid{grid-column:1/-1}
#quotes .qform input,#quotes .qform select,#quotes .qform textarea{min-width:0;font-size:16px}
#quotes .qform label{min-width:0}
#quotes .qform textarea{min-height:90px;resize:vertical}
#quotes .qrow{position:relative;grid-template-columns:minmax(130px,3fr) minmax(75px,1fr) minmax(100px,1.2fr) 44px minmax(90px,1.2fr)}
#quotes .qrow > .qphoto{grid-column:1/-1;width:48px;height:48px}
#quotes .qrow button{min-height:44px}
#quotes .qcalgrid button{min-height:44px}
#quotes .qpreviewName{overflow-wrap:anywhere}
#quotes .qpreviewLine > .qphoto,#quotes .qpreviewLine > .qpreviewRowIcon{position:absolute}
#quotes .qsyncBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;background:#eef6fc;color:#193b60;border-bottom:1px solid #d7e5f4;font-size:13px}
#quotes .qsyncBar button{min-height:40px;border:1px solid #bbd2e8;border-radius:8px;background:white;color:#174b8b;padding:6px 10px}
#quotes .qdirty{display:block;background:#fff4cc;color:#664600;padding:9px 12px;border-radius:8px;margin-bottom:12px}
#quotes .qconflictSummary{white-space:pre-wrap;font-size:13px;overflow-wrap:anywhere}
@media(max-width:800px){
 #quotes .qrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
 #quotes .qrow > label:first-of-type{grid-column:1/-1}
 #quotes .qrow > b{grid-column:1/-1}
 #quotes .qform .qgrid4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 #quotes .qform .qgrid,#quotes .qform .qgrid4{grid-template-columns:minmax(0,1fr)}
 #quotes .qform .qgrid > .qgrid{grid-column:auto}
 #quotes .qactions{flex-wrap:wrap;gap:8px}
 #quotes .qactions button{min-width:130px;min-height:44px;padding:12px}
 #quotes .qbottom button{font-size:11px;line-height:1.25}
 #quotes .qclientOverlay{padding:8px}
 #quotes .qclientDialog{padding:14px;max-height:calc(100dvh - 16px)}
 #quotes .qclientDialogHead{top:-14px}
 #quotes .qcalgrid{gap:2px}
 #quotes .qcalgrid button{font-size:13px;padding:2px}
 #quotes .qpreviewTableHead{display:none}
 #quotes .qpreviewLine{grid-template-columns:1fr 1fr;gap:7px;padding:12px 0}
 #quotes .qpreviewName{grid-column:1/-1;min-height:36px}
 #quotes .qpreviewQty,#quotes .qpreviewUnit,#quotes .qpreviewTotal{font-size:13px;text-align:left}
 #quotes .qpreviewQty::before{content:'Qtd.: '}
 #quotes .qpreviewUnit::before{content:'Unit.: '}
 #quotes .qpreviewTotal{grid-column:1/-1;text-align:right}
 #quotes .qpreviewTotal::before{content:'Total: '}
 #quotes .qimageChooser{flex-wrap:wrap}
 #quotes .qimageChooser > div{min-width:0;max-width:100%}
}
@media print{#quotes .qsyncBar,#quotes .qdirty{display:none!important}#quotes > .qbottom{display:none!important}}

#quotes [hidden]{display:none!important}
#quotes button:disabled{opacity:.55;cursor:not-allowed}
#quotes .qbadge-danger{background:#ffe3e5;color:#ae2535}

#quotes .qdataTools{min-width:0}#quotes .qdataTools summary{cursor:pointer;padding:10px;border:1px solid #bbd2e8;border-radius:8px;background:white}#quotes .qdataTools[open]{flex-basis:100%}#quotes .qdataTools>div{display:flex;flex-wrap:wrap;gap:7px;padding-top:8px}#quotes .qdataTools button{text-align:left}

.qimportDialog{width:min(1000px,96vw);max-height:90vh;overflow:auto}.qimportRows{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px}.qimportRow{display:flex;gap:12px;padding:10px;border-bottom:1px solid #cbd5e1;overflow-wrap:anywhere}.qimportRow img{width:72px;height:72px;object-fit:contain}.qimportRow p{font-size:13px}

/* Orçamentos 0019 */
#quotes .qSituationTabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:12px 0; }
#quotes .qSituationTabs button { min-width:0; min-height:44px; padding:7px 8px; background:#e8eff7; color:#102743; border:1px solid #ccd9e8; border-radius:10px; font-weight:650; }
#quotes .qSituationTabs button[aria-pressed="true"] { background:#0b2342; color:white; box-shadow:inset 0 -3px #ffd044; border-color:#0b2342; }
#quotes .qSituationTabs button span { display:inline-block; margin-inline-start:3px; font-variant-numeric:tabular-nums; }
#quotes .qEntryTags { display:flex; flex-wrap:wrap; gap:4px; }
#quotes .qEntryTags span { background:#d5eff8; color:#153d5b; border-radius:7px; padding:2px 6px; font-size:.75rem; overflow-wrap:anywhere; }
#quotes .qentryMain { min-width:0; }
#quotes .qentryInfo { min-width:0; overflow-wrap:anywhere; }
#quotes .qentrySide > b { font-size:1.1rem; }
#quotes .qDetailTotal { background:#fff0a9; border-radius:8px; color:#102743; padding:8px 10px; }
#quotes .qDetailBlock,#quotes .qDocumentCards { margin:12px 0; padding:12px; border:1px solid #cbd9e8; border-radius:12px; background:#f5f9fd; }
#quotes .qDetailBlock h2,#quotes .qDocumentCards h2 { margin:0 0 8px; font-size:1.04rem; }
#quotes .qDocumentCards > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr)); gap:8px; }
#quotes .qDocumentCards button { min-height:68px; border:1px solid #b9ccd9; border-radius:10px; background:#fff; color:#124c75; padding:8px; font-weight:650; }
#quotes .qDocumentCards button span { display:block; font-size:1.4rem; }
#quotes .qPrivateBlock,#quotes .qform section:has(>button[data-act="privateExpenses"]) { background:#fff5d0; border-color:#e3bf44; }
#quotes .qform section:has(>button[data-act="privateExpenses"]) > h2 { background:#fff0a9; color:#102743; }
#quotes .qform :is(.qcalcResult,.qpricing) > h2:last-child,#quotes .qpreviewSummary h2 { background:#ffe992; color:#102743; border-radius:8px; padding:8px; }
#quotes .qform .qphoto { width:80px; height:66px; object-fit:cover; border-radius:8px; }
#quotes .qform .qrow button:not(.qdelete) { height:auto; min-height:44px; white-space:normal; overflow-wrap:anywhere; }
#quotes #qFinalize .qFinalNotice { background:#fff1ba; color:#302708; border:1px solid #cfa428; border-radius:9px; padding:10px 12px; margin:0; flex:1 0 100%; }
#quotes #qFinalize [data-act="closeExtra"] { background:white; color:#0b2342; border:1px solid #0b2342; border-radius:9px; padding:7px 15px; }
#quotes #qFinalize .qprimary { border-radius:9px; padding:7px 15px; }
@media (max-width:760px) {
  #quotes .qSituationTabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:420px) {
  #quotes .qSituationTabs { gap:5px; }
  #quotes .qSituationTabs button { padding:6px 3px; font-size:.76rem; overflow-wrap:anywhere; }
  #quotes .qentryMain { display:grid; grid-template-columns:32px minmax(0,1fr); gap:6px 8px; align-items:start; }
  #quotes .qentrySide { grid-column:2; align-items:flex-start; text-align:left; }
  #quotes .qform .qrow button[data-act="saveCatalog"] { grid-column:1 / -1; width:100%; }
}
