:root{--bg:#15191e;--panel:#1d232a;--panel2:#272e36;--line:#343d47;--text:#f8fafc;--muted:#b8c0ca;--orange:#e85a0c;--orange2:#ff6b16;--green:#22c55e;--red:#ef4444}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,rgba(232,90,12,.16),transparent 36%),linear-gradient(145deg,#171c22,#12161b 70%);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}
a{color:inherit;text-decoration:none}.shell{display:grid;grid-template-columns:275px 1fr;min-height:100vh}aside{position:sticky;top:0;height:100vh;padding:26px;background:rgba(20,20,20,.92);border-right:1px solid var(--line);backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:30px}.brand strong{font-size:30px;line-height:.9;color:var(--orange);letter-spacing:-.07em}.brand span{display:block;color:#fff;font-size:14px}.mark{width:46px;height:46px;border-radius:14px;background:var(--orange);display:grid;place-items:center;color:#111;font-size:32px;font-weight:950}
nav{display:grid;gap:8px}nav a,.logout{display:block;padding:13px 14px;border-radius:14px;color:var(--muted);background:transparent;border:0;font:inherit}.logout{margin-top:24px;background:#222}nav a.active,nav a:hover,.logout:hover{background:var(--panel2);color:white}
main{padding:32px}.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.head p{margin:0 0 6px;color:var(--orange);font-size:12px;font-weight:900;letter-spacing:.16em}.head h1{font-size:42px;letter-spacing:-.06em;margin:0}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric,.panel,article{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.20)}.metric{padding:20px}.metric.wide{grid-column:span 2}.metric span{color:var(--muted);font-size:13px}.metric strong{display:block;font-size:29px;letter-spacing:-.05em;margin-top:8px}.metric.hot strong{color:var(--orange)}
.panel{padding:20px;margin-bottom:18px}.panel h2{margin:0 0 16px;font-size:20px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.cards.mini{margin-top:16px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}article{padding:17px;transition:.2s}article:hover{transform:translateY(-2px);border-color:rgba(232,90,12,.55)}article h3{margin:0 0 8px;font-size:21px;letter-spacing:-.04em}article p,small{color:var(--muted)}article strong{display:block;margin:10px 0;font-size:20px}.hotcard{border-color:rgba(232,90,12,.8)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.grid .span{grid-column:span 2}input,select,button,label{width:100%;background:#101010;border:1px solid var(--line);color:white;border-radius:14px;padding:12px;font:inherit}label{color:var(--muted);display:flex;align-items:center;gap:10px;justify-content:space-between}label input[type=color]{width:54px;height:38px;padding:2px}label input[type=checkbox]{width:auto}button{background:linear-gradient(135deg,var(--orange),var(--orange2));border:0;font-weight:900;cursor:pointer;box-shadow:0 14px 35px rgba(232,90,12,.18)}
.top{display:flex;justify-content:space-between;align-items:center}.sw{display:inline-block;width:38px;height:38px;border-radius:50%;border:2px solid rgba(255,255,255,.35);box-shadow:0 0 0 6px rgba(255,255,255,.04)}.actions{display:flex;gap:8px;margin-top:12px}.actions a,.actions button{background:var(--panel2);border:1px solid var(--line);box-shadow:none;padding:10px;border-radius:12px;text-align:center;color:white}
.color-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:12px}.color-list b{display:flex;align-items:center;gap:8px;background:#101010;border:1px solid var(--line);padding:8px 10px;border-radius:12px}.color-list i{display:inline-block;width:16px;height:16px;border-radius:50%}.color-list em{font-style:normal;margin-left:auto;color:var(--muted)}
.login-page{min-height:100vh;display:grid;place-items:center}.login-card{width:min(460px,92vw);padding:32px;background:rgba(24,24,24,.94);border:1px solid var(--line);border-radius:30px;box-shadow:0 40px 120px rgba(0,0,0,.45);display:grid;gap:14px}.login-card h1{font-size:34px;letter-spacing:-.06em;margin:0}.login-card button{padding:14px}.error{color:#fecaca}
@media(max-width:1050px){.shell{grid-template-columns:1fr}aside{position:relative;height:auto}.metrics,.grid{grid-template-columns:1fr}.metric.wide,.grid .span{grid-column:auto}main{padding:18px}.head h1{font-size:34px}}

.material-box{background:#101010;border:1px solid var(--line);border-radius:18px;padding:14px}.material-box h3{margin:0 0 10px}.material-line{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:8px;margin-bottom:8px}.calendar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.day-card{background:#101010;border:1px solid var(--line);border-radius:18px;padding:14px}.day-card strong{font-size:20px}.day-card span{display:block;color:var(--muted);margin:5px 0 10px}.day-card .bar{height:8px;background:#2b2b2b;border-radius:999px;overflow:hidden}.day-card .bar i{display:block;height:100%;background:var(--green)}.day-card.medium .bar i{background:#f59e0b}.day-card.busy .bar i{background:var(--red)}.day-card p{font-size:12px;margin:8px 0 0;color:var(--muted)}.muted{color:var(--muted)}.quickform{display:grid;gap:8px;margin-top:10px}
@media(max-width:1050px){.material-line{grid-template-columns:1fr}}


.field{display:grid;gap:7px;background:transparent;border:0;padding:0;color:var(--text);align-items:stretch;justify-content:stretch}
.field-title{font-size:12px;font-weight:900;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.field-help{font-size:11px;line-height:1.35;color:#8b8b8b;margin-top:-2px}
.field.span{grid-column:span 2}
.color-field{display:grid;gap:7px;align-items:stretch;background:transparent;border:0;padding:0;color:var(--text)}
.color-field input[type=color]{width:100%;height:44px}
.grid > label.field input,
.grid > label.field select,
.grid > label.field textarea{margin:0}
.muted{color:var(--muted);margin-top:-6px}
@media(max-width:1050px){.field.span{grid-column:auto}}

.search-hero{border-color:rgba(232,90,12,.45);background:linear-gradient(135deg,rgba(232,90,12,.13),rgba(255,255,255,.025))}
.market-search{display:grid;grid-template-columns:1fr 230px;gap:10px;margin-top:14px}.market-search input{font-size:20px;padding:16px}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.market-card{position:relative;overflow:hidden}.market-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:#777}.market-card.excellent:before{background:#22c55e}.market-card.medium:before{background:#f59e0b}.market-card.expensive:before{background:#ef4444}.market-card.unknown:before{background:#64748b}
.market-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.market-top span{color:var(--muted)}.market-top b{padding:6px 10px;border-radius:999px;background:#222;font-size:12px}.market-card.excellent .market-top b{background:rgba(34,197,94,.16);color:#86efac}.market-card.medium .market-top b{background:rgba(245,158,11,.16);color:#fcd34d}.market-card.expensive .market-top b{background:rgba(239,68,68,.16);color:#fca5a5}
.market-card strong{font-size:28px;letter-spacing:-.05em}.open-link{display:block;margin-top:12px;text-align:center;background:linear-gradient(135deg,var(--orange),var(--orange2));border-radius:13px;padding:11px;font-weight:900}
@media(max-width:1050px){.market-search{grid-template-columns:1fr}}


/* Dashboard stock por cor — v1.4 */
.color-stock-card{min-height:300px}
.color-list-v2{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
  gap:10px;
  margin-top:14px;
}
.color-list-v2 .color-tile{
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  border:1px solid rgba(255,255,255,.095);
  padding:10px 11px;
  border-radius:15px;
  overflow:hidden;
}
.color-list-v2 .color-chip{
  width:28px;
  height:28px;
  border-radius:8px;
  border:2px solid rgba(255,255,255,.45);
  box-shadow:0 0 0 4px rgba(255,255,255,.045), inset 0 0 10px rgba(0,0,0,.18);
}
.color-list-v2 .color-info{min-width:0;display:grid;gap:2px}
.color-list-v2 .color-info strong{
  display:block;
  font-size:14px;
  line-height:1.05;
  margin:0;
  letter-spacing:-.02em;
  white-space:normal;
}
.color-list-v2 .color-info small{
  display:block;
  color:#9ca3af;
  font-size:10px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.color-list-v2 .color-tile em{
  font-style:normal;
  color:#fff;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  padding:5px 7px;
  border-radius:10px;
}
@media(max-width:1050px){
  .color-list-v2{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
  .color-list-v2 .color-tile{grid-template-columns:30px 1fr;min-height:64px}
  .color-list-v2 .color-tile em{grid-column:2;justify-self:start}
}


/* Dashboard stock por cor — v1.5 correção compacta */
.color-stock-card{
  min-height:auto !important;
}
.color-list-compact{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(155px,1fr)) !important;
  gap:8px !important;
  margin-top:12px !important;
}
.color-list-compact .color-pill{
  display:grid !important;
  grid-template-columns:22px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
  min-height:50px !important;
  padding:8px 10px !important;
  border-radius:12px !important;
  background:#101010 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
.color-list-compact .color-square{
  width:16px !important;
  height:16px !important;
  border-radius:4px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  box-shadow:0 0 0 2px rgba(255,255,255,.04) !important;
  flex:none !important;
}
.color-list-compact .color-text{
  min-width:0 !important;
  display:block !important;
}
.color-list-compact .color-text strong{
  display:block !important;
  margin:0 !important;
  font-size:13px !important;
  line-height:1.05 !important;
  font-weight:900 !important;
  color:#fff !important;
  letter-spacing:-.02em !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  text-shadow:none !important;
}
.color-list-compact .color-text small{
  display:block !important;
  margin-top:3px !important;
  font-size:9px !important;
  line-height:1 !important;
  color:#b8b8b8 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  text-transform:none !important;
}
.color-list-compact .color-pill em{
  font-style:normal !important;
  font-size:12px !important;
  font-weight:900 !important;
  color:#fff !important;
  white-space:nowrap !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
}
@media(max-width:1050px){
  .color-list-compact{
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr)) !important;
  }
  .color-list-compact .color-pill{
    grid-template-columns:20px minmax(0,1fr) auto !important;
    min-height:48px !important;
  }
}


/* v1.6 — cor dashboard sem outline e ligeiramente maior */
.color-list-compact .color-square{
  width:22px !important;
  height:22px !important;
  border-radius:5px !important;
  border:0 !important;
  box-shadow:inset 0 0 10px rgba(0,0,0,.18) !important;
}
.color-list-compact .color-pill{
  grid-template-columns:28px minmax(0,1fr) auto !important;
}

/* v1.6 — orçamentos multimaterial e partilha */
.material-box{
  grid-column:1/-1 !important;
}
.material-line{
  display:grid;
  grid-template-columns:2fr 105px 1.4fr;
  gap:8px;
  margin-bottom:8px;
}
.quote-actions{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.quote-actions form{margin:0}
.quote-actions a{
  display:block;
  text-align:center;
  background:#222;
  border:1px solid var(--line);
  color:white;
  border-radius:12px;
  padding:10px;
  font-weight:900;
}
.share-box{
  border-color:rgba(232,90,12,.55);
}
.share-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:12px;
}
.share-grid span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:6px;
}
.share-grid input{
  font-size:14px;
}
@media(max-width:1050px){
  .material-line,.share-grid{grid-template-columns:1fr}
}


/* v1.7 FORCE FIX */
.color-list i,.color-list-v2 .color-chip,.color-list-compact .color-square,.color-square,.color-chip{
  width:24px !important;height:24px !important;min-width:24px !important;border:0 !important;outline:0 !important;border-radius:5px !important;box-shadow:inset 0 0 8px rgba(0,0,0,.18) !important;
}
.color-list b,.color-list-v2 .color-tile,.color-list-compact .color-pill{grid-template-columns:30px minmax(0,1fr) auto !important;align-items:center !important}
.quote-builder{grid-template-columns:repeat(4,1fr) !important}
.quote-builder .material-box{grid-column:1/-1 !important;background:#101010;border:1px solid var(--line);border-radius:18px;padding:14px}
.quote-builder .material-box h3{margin:0 0 12px}
.material-line{display:grid !important;grid-template-columns:2fr 110px 1.5fr !important;gap:8px !important;margin-bottom:8px !important}
.share-box{border-color:rgba(232,90,12,.55)}
.share-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}
.share-grid span{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;margin-bottom:6px}
#quote-actions,.quote-actions{display:grid;gap:8px;margin-top:12px}
article form + form{margin-top:8px}
article a[target="_blank"]{display:block;text-align:center;background:#222;border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:8px;font-weight:900}
@media(max-width:1050px){.quote-builder,.material-line,.share-grid{grid-template-columns:1fr !important}}

/* v1.9 */
.quote-builder input[type=file]{padding:10px}


/* v2.2 stable management */
.detail-panel{border-color:rgba(232,90,12,.45)}
.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.detail-head h2{margin:0}.detail-head p{color:var(--muted);margin:5px 0 0}
.ghost-btn,.detail-link{display:block;text-align:center;background:#222;border:1px solid var(--line);color:white;border-radius:12px;padding:10px 12px;font-weight:900}
.danger-link{display:block;text-align:center;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.35);color:#fca5a5;border-radius:12px;padding:10px 12px;font-weight:900}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:16px}
.detail-grid>div{background:#101010;border:1px solid var(--line);border-radius:15px;padding:13px}
.detail-grid span,.detail-image span{display:block;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:6px}
.detail-grid strong{font-size:18px}.detail-two{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin:16px 0}
.detail-two>div,.detail-image{background:#101010;border:1px solid var(--line);border-radius:15px;padding:14px;margin-top:12px}
.detail-two h3{margin:0 0 8px}.detail-two p{color:var(--muted)}
.detail-image img{max-width:100%;max-height:420px;border-radius:14px;display:block;margin-top:10px}
.detail-materials{display:grid;gap:8px}
.detail-material{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto auto;align-items:center;gap:10px;background:#101010;border:1px solid var(--line);border-radius:14px;padding:10px}
.detail-material i{width:24px;height:24px;border-radius:5px;background:#333}.detail-material small{color:var(--muted)}
.quote-actions,.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.quote-actions form,.detail-actions form{margin:0}
.edit-details{margin-top:18px;background:#101010;border:1px solid var(--line);border-radius:16px;padding:14px}.edit-details summary{cursor:pointer;font-weight:900}.edit-details form{margin-top:14px}
@media(max-width:1050px){.detail-two{grid-template-columns:1fr}.detail-material{grid-template-columns:28px 1fr}.detail-head{display:grid}}


/* v2.3 quote creation accordion */
.accordion-panel{
  padding:0;
  overflow:hidden;
}
.accordion-panel summary{
  list-style:none;
  cursor:pointer;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  user-select:none;
}
.accordion-panel summary::-webkit-details-marker{
  display:none;
}
.accordion-panel summary span{
  font-size:20px;
  font-weight:950;
  letter-spacing:-.03em;
  color:#fff;
}
.accordion-panel summary small{
  color:var(--muted);
  font-size:13px;
}
.accordion-panel[open] summary{
  border-bottom:1px solid var(--line);
  background:rgba(232,90,12,.08);
}
.accordion-panel > p,
.accordion-panel > form{
  margin:18px 20px 20px;
}
.quote-create{
  border-color:rgba(232,90,12,.35);
}


/* v2.4 — UI limpa para detalhes, edição e listas */
.clean-block,
.list-panel,
.clean-detail{
  margin-bottom:22px !important;
}

.clean-detail{
  padding:0 !important;
  overflow:hidden;
  border-color:rgba(232,90,12,.42) !important;
}

.detail-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding:22px 24px;
  background:linear-gradient(135deg,rgba(232,90,12,.15),rgba(255,255,255,.025));
  border-bottom:1px solid var(--line);
  margin:0 !important;
}

.detail-header h2{
  margin:0;
  font-size:25px;
  letter-spacing:-.04em;
}

.detail-header p{
  margin:6px 0 0;
  color:var(--muted);
}

.clean-detail > .section-label,
.clean-detail > .detail-grid,
.clean-detail > .detail-image,
.clean-detail > .detail-two,
.clean-detail > .detail-materials,
.clean-detail > .edit-details,
.clean-detail > .detail-actions{
  margin-left:22px !important;
  margin-right:22px !important;
}

.section-label{
  margin-top:22px;
  margin-bottom:10px;
  color:var(--orange);
  font-size:12px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.detail-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(175px,1fr)) !important;
  gap:12px !important;
  margin-bottom:6px !important;
}

.detail-grid > div{
  background:#101010 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:16px !important;
  padding:14px !important;
  min-height:78px;
}

.detail-grid span{
  display:block;
  color:#8f8f8f !important;
  font-size:10px !important;
  font-weight:950 !important;
  letter-spacing:.07em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.detail-grid strong{
  display:block;
  font-size:19px !important;
  line-height:1.12;
  letter-spacing:-.035em;
  word-break:break-word;
}

.detail-two{
  display:grid !important;
  grid-template-columns:1fr 1.6fr !important;
  gap:12px !important;
  margin-bottom:8px !important;
}

.detail-two > div,
.detail-image{
  background:#101010 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:16px !important;
  padding:16px !important;
}

.detail-two h3{
  margin:0 0 9px !important;
  font-size:15px;
}

.detail-two p{
  color:var(--muted);
  margin:0 0 8px;
}

.detail-image span{
  display:block;
  color:#8f8f8f;
  font-size:10px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.detail-image img{
  max-width:100%;
  max-height:360px;
  object-fit:contain;
  border-radius:14px;
  display:block;
  background:#0b0b0b;
}

.detail-materials{
  display:grid !important;
  gap:9px !important;
}

.detail-material{
  display:grid !important;
  grid-template-columns:26px minmax(0,1fr) 92px 92px 110px !important;
  align-items:center !important;
  gap:10px !important;
  background:#101010 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:14px !important;
  padding:11px 12px !important;
}

.detail-material i{
  width:22px !important;
  height:22px !important;
  border-radius:5px !important;
  background:#333;
}

.detail-material strong{
  display:block;
  font-size:14px;
  line-height:1.1;
  overflow:hidden;
  text-overflow:ellipsis;
}

.detail-material small{
  color:var(--muted);
  font-size:11px;
}

.detail-material b{
  font-size:13px;
  text-align:right;
}

.clean-edit{
  margin-top:22px !important;
  background:#101010 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:18px !important;
  padding:0 !important;
  overflow:hidden;
}

.clean-edit summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  cursor:pointer;
  padding:15px 18px;
  list-style:none;
  background:#151515;
}

.clean-edit summary::-webkit-details-marker{
  display:none;
}

.clean-edit summary span{
  font-weight:950;
  color:#fff;
}

.clean-edit summary small{
  color:var(--muted);
}

.clean-edit[open] summary{
  border-bottom:1px solid var(--line);
  background:rgba(232,90,12,.09);
}

.clean-edit form{
  margin:16px !important;
}

.detail-actions{
  display:flex !important;
  flex-wrap:wrap;
  gap:10px !important;
  padding-bottom:22px;
  margin-top:20px !important;
}

.detail-actions form{
  margin:0;
}

.detail-actions button,
.detail-actions a,
.ghost-btn{
  min-height:42px;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:13px;
  padding:10px 14px !important;
}

.ghost-btn{
  background:#202020;
  border:1px solid var(--line);
  color:#fff;
  font-weight:900;
  min-width:130px;
}

.danger-link{
  background:rgba(239,68,68,.12) !important;
  border:1px solid rgba(239,68,68,.35) !important;
  color:#fca5a5 !important;
}

.quote-actions{
  display:grid !important;
  gap:8px !important;
  margin-top:14px !important;
}

.quote-actions a,
.quote-actions button{
  width:100%;
}

.list-panel > h2{
  margin-bottom:18px !important;
}

.accordion-panel.quote-create{
  margin-bottom:22px !important;
}

.accordion-panel.quote-create summary{
  min-height:64px;
}

@media(max-width:1050px){
  .detail-header{
    display:grid;
  }
  .detail-two{
    grid-template-columns:1fr !important;
  }
  .detail-material{
    grid-template-columns:24px 1fr !important;
  }
  .detail-material b,
  .detail-material small{
    text-align:left;
    grid-column:2;
  }
  .clean-detail > .section-label,
  .clean-detail > .detail-grid,
  .clean-detail > .detail-image,
  .clean-detail > .detail-two,
  .clean-detail > .detail-materials,
  .clean-detail > .edit-details,
  .clean-detail > .detail-actions{
    margin-left:16px !important;
    margin-right:16px !important;
  }
}


/* v2.5 — orçamento com UI limpa e moderna */
.quote-create-pro{padding:0!important;margin-bottom:24px!important;overflow:hidden;border-color:rgba(232,90,12,.38)!important;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important}
.quote-create-pro summary{list-style:none;cursor:pointer;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;min-height:70px;user-select:none}
.quote-create-pro summary::-webkit-details-marker{display:none}
.quote-create-pro summary span{display:block;font-size:22px;font-weight:950;letter-spacing:-.04em;color:#fff}
.quote-create-pro summary small{display:block;margin-top:4px;font-size:13px;color:var(--muted)}
.quote-create-pro[open] summary{background:linear-gradient(135deg,rgba(232,90,12,.16),rgba(255,255,255,.025));border-bottom:1px solid var(--line)}
.quote-form-pro{padding:22px 24px 24px;display:grid;gap:18px}
.form-card-pro{background:#101010;border:1px solid rgba(255,255,255,.085);border-radius:18px;padding:18px}
.form-card-pro h3{margin:0 0 14px;font-size:16px;letter-spacing:-.02em}
.form-card-pro p{margin:4px 0 0;color:var(--muted);font-size:13px}
.form-grid-pro{display:grid;gap:14px}
.form-grid-pro.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.form-grid-pro.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid-pro label{display:grid!important;gap:7px!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important}
.form-grid-pro label span{color:#a3a3a3;font-size:11px;font-weight:950;letter-spacing:.06em;text-transform:uppercase}
.form-grid-pro input,.material-row-pro input,.material-row-pro select{min-height:44px!important;background:#0b0b0b!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:12px!important;padding:10px 12px!important;color:#fff!important;font-size:14px!important}
.form-grid-pro input[type=file]{padding:8px 10px!important}
.section-title-pro{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.materials-head-pro{display:grid;grid-template-columns:minmax(260px,1fr) 90px minmax(220px,.8fr);gap:10px;padding:0 2px 8px;color:#a3a3a3;font-size:10px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.material-row-pro{display:grid;grid-template-columns:minmax(260px,1fr) 90px minmax(220px,.8fr);gap:10px;align-items:center;margin-bottom:9px}
.material-row-pro:last-child{margin-bottom:0}
.form-actions-pro{display:flex;justify-content:flex-end;gap:12px;padding-top:2px}
.form-actions-pro button{width:auto!important;min-width:280px;min-height:48px;padding:13px 20px!important;border-radius:14px!important;font-weight:950!important}
.quote-form-pro .field,.quote-form-pro .color-field{display:contents!important}
@media(max-width:1250px){.form-grid-pro.four{grid-template-columns:repeat(2,minmax(0,1fr))}.materials-head-pro,.material-row-pro{grid-template-columns:minmax(220px,1fr) 80px minmax(180px,.8fr)}}
@media(max-width:800px){.form-grid-pro.four,.form-grid-pro.two,.materials-head-pro,.material-row-pro{grid-template-columns:1fr}.materials-head-pro{display:none}.form-actions-pro{justify-content:stretch}.form-actions-pro button{width:100%!important;min-width:0}}


/* v2.6 — seleção de filamento em formato cartão */
.materials-head-pro.cards-head{
  grid-template-columns:minmax(300px,1fr) 105px minmax(240px,.85fr) !important;
  padding:0 2px 8px;
}

.material-card-row{
  display:grid;
  grid-template-columns:minmax(300px,1fr) 105px minmax(240px,.85fr);
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}

.filament-picker-card{
  position:relative;
  min-height:58px;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  transition:border-color .18s ease, background .18s ease;
}

.filament-picker-card.selected{
  border-color:rgba(232,90,12,.55);
  background:linear-gradient(180deg,rgba(232,90,12,.08),rgba(255,255,255,.015));
}

.filament-preview{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  pointer-events:none;
}

.filament-preview i{
  width:24px;
  height:24px;
  border-radius:6px;
  background:rgba(255,255,255,.12);
  box-shadow:inset 0 0 9px rgba(0,0,0,.20);
}

.filament-preview strong{
  display:block;
  color:#fff;
  font-size:14px;
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.filament-preview small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.filament-preview em{
  font-style:normal;
  color:#fff;
  font-size:12px;
  font-weight:950;
  padding:5px 7px;
  border-radius:9px;
  background:rgba(255,255,255,.065);
}

.filament-select-pro{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  cursor:pointer !important;
  z-index:5 !important;
}

.material-card-row > input{
  min-height:58px !important;
}

.material-card-row > input[name="mat_grams_unit[]"]{
  text-align:center;
  font-weight:900;
}

.material-card-row > input[name="mat_role[]"]{
  font-size:13px !important;
}

@media(max-width:1250px){
  .materials-head-pro.cards-head,
  .material-card-row{
    grid-template-columns:minmax(240px,1fr) 90px minmax(180px,.8fr) !important;
  }
}

@media(max-width:800px){
  .materials-head-pro.cards-head{
    display:none !important;
  }
  .material-card-row{
    grid-template-columns:1fr !important;
    background:#0b0b0b;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:10px;
  }
}


/* v2.7 — cartões selecionáveis para filamentos no orçamento */
.materials-pro-v2{
  background:#101010;
  border:1px solid rgba(255,255,255,.085);
  border-radius:18px;
  padding:18px;
}

.filament-choice-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(235px,1fr));
  gap:12px;
  margin-top:14px;
}

.filament-choice-card{
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  cursor:pointer;
}

.filament-choice-card > input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.choice-card-face{
  min-height:220px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 16px 45px rgba(0,0,0,.18);
  display:grid;
  grid-template-rows:auto auto auto auto 1fr;
  gap:8px;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}

.filament-choice-card:hover .choice-card-face{
  transform:translateY(-2px);
  border-color:rgba(232,90,12,.45);
}

.filament-choice-card.selected .choice-card-face{
  border-color:rgba(232,90,12,.95);
  background:linear-gradient(180deg,rgba(232,90,12,.18),rgba(255,255,255,.025));
  box-shadow:0 20px 60px rgba(232,90,12,.14);
}

.filament-choice-card.locked{
  opacity:.45;
}

.choice-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.choice-top i{
  width:34px;
  height:34px;
  border-radius:999px;
  box-shadow:0 0 0 5px rgba(255,255,255,.06), inset 0 0 10px rgba(0,0,0,.2);
}

.choice-top span{
  color:#fff;
  font-size:12px;
  font-weight:950;
}

.choice-card-face h4{
  margin:8px 0 0;
  font-size:20px;
  line-height:1.08;
  letter-spacing:-.045em;
  color:#fff;
}

.choice-card-face p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
}

.choice-card-face strong{
  color:#d1d5db;
  font-size:13px;
}

.choice-inputs{
  align-self:end;
  display:grid;
  gap:8px;
  margin-top:8px;
}

.choice-inputs input{
  width:100%;
  min-height:38px !important;
  background:#0b0b0b !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:11px !important;
  padding:9px 10px !important;
  color:#fff !important;
  font-size:13px !important;
}

.choice-inputs input:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.filament-choice-card.selected .choice-inputs input{
  border-color:rgba(232,90,12,.45) !important;
}

@media(max-width:850px){
  .filament-choice-grid{
    grid-template-columns:1fr;
  }
  .choice-card-face{
    min-height:auto;
  }
}


/* v2.8 — fluxo simplificado de seleção de filamentos */
.materials-wizard{
  background:#101010;
  border:1px solid rgba(255,255,255,.085);
  border-radius:18px;
  padding:18px;
}

.materials-wizard .section-title-pro{
  align-items:center;
}

.open-filament-modal{
  width:auto !important;
  min-width:210px;
  min-height:44px;
  border-radius:14px !important;
  padding:11px 16px !important;
}

.selected-filaments-empty{
  color:var(--muted);
  background:#0b0b0b;
  border:1px dashed rgba(255,255,255,.14);
  border-radius:16px;
  padding:18px;
  text-align:center;
  margin-top:14px;
}

.selected-filaments-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.selected-filament-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 110px minmax(220px,.75fr) auto;
  gap:10px;
  align-items:center;
  background:#0b0b0b;
  border:1px solid rgba(232,90,12,.35);
  border-radius:16px;
  padding:12px;
}

.selected-filament-info{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  align-items:center;
}

.selected-filament-info i{
  width:30px;
  height:30px;
  border-radius:8px;
  box-shadow:inset 0 0 10px rgba(0,0,0,.20);
}

.selected-filament-info strong{
  display:block;
  color:#fff;
  font-size:14px;
  line-height:1.1;
}

.selected-filament-info small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.selected-filament-row label{
  display:grid !important;
  gap:5px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}

.selected-filament-row label span{
  color:#a3a3a3;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.selected-filament-row input{
  min-height:40px !important;
  background:#111 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:11px !important;
  color:#fff !important;
  padding:9px 10px !important;
}

.remove-selected-filament{
  width:auto !important;
  min-height:40px;
  background:rgba(239,68,68,.10) !important;
  border:1px solid rgba(239,68,68,.35) !important;
  color:#fca5a5 !important;
  box-shadow:none !important;
  padding:9px 12px !important;
}

.filament-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
}

.filament-modal.open{
  display:block;
}

.filament-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
}

.filament-modal-panel{
  position:absolute;
  inset:5vh 4vw;
  background:#111;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  box-shadow:0 40px 140px rgba(0,0,0,.6);
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  overflow:hidden;
}

.filament-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:22px 24px;
  background:linear-gradient(135deg,rgba(232,90,12,.16),rgba(255,255,255,.02));
  border-bottom:1px solid var(--line);
}

.filament-modal-head h3{
  margin:0;
  font-size:24px;
  letter-spacing:-.04em;
}

.filament-modal-head p{
  margin:5px 0 0;
  color:var(--muted);
}

.close-filament-modal{
  width:44px !important;
  height:44px;
  min-width:44px;
  padding:0 !important;
  border-radius:14px !important;
  background:#222 !important;
  box-shadow:none !important;
}

.filament-modal-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 24px;
  border-bottom:1px solid var(--line);
}

.filament-search{
  max-width:520px;
}

.filament-modal-toolbar span{
  color:var(--muted);
  font-weight:900;
}

.filament-modal-toolbar b{
  color:var(--orange);
}

.filament-modal-grid{
  overflow:auto;
  padding:20px 24px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px;
  align-content:start;
}

.filament-modal-card{
  display:block !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  cursor:pointer;
}

.filament-modal-card > input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.modal-card-face{
  min-height:205px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 16px 45px rgba(0,0,0,.18);
  display:grid;
  grid-template-rows:auto auto auto auto auto;
  gap:8px;
  transition:.16s ease;
}

.filament-modal-card:hover .modal-card-face{
  transform:translateY(-2px);
  border-color:rgba(232,90,12,.45);
}

.filament-modal-card.selected .modal-card-face{
  border-color:rgba(232,90,12,.95);
  background:linear-gradient(180deg,rgba(232,90,12,.18),rgba(255,255,255,.025));
  box-shadow:0 20px 60px rgba(232,90,12,.14);
}

.filament-modal-card.locked{
  opacity:.45;
}

.modal-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.modal-card-top i{
  width:34px;
  height:34px;
  border-radius:999px;
  box-shadow:0 0 0 5px rgba(255,255,255,.06), inset 0 0 10px rgba(0,0,0,.2);
}

.modal-card-top span{
  color:#fff;
  font-size:12px;
  font-weight:950;
}

.modal-card-face h4{
  margin:8px 0 0;
  font-size:20px;
  line-height:1.08;
  letter-spacing:-.045em;
  color:#fff;
}

.modal-card-face p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
}

.modal-card-face strong{
  color:#d1d5db;
  font-size:13px;
}

.modal-card-face em{
  align-self:end;
  justify-self:start;
  font-style:normal;
  font-size:12px;
  font-weight:950;
  color:#fff;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:7px 10px;
}

.filament-modal-card.selected .modal-card-face em{
  background:rgba(232,90,12,.95);
  border-color:rgba(232,90,12,.95);
}

.filament-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:16px 24px;
  border-top:1px solid var(--line);
  background:#0f0f0f;
}

.filament-modal-actions button{
  width:auto !important;
  min-width:160px;
}

.filament-modal-actions .secondary{
  background:#222 !important;
  box-shadow:none !important;
}

@media(max-width:900px){
  .selected-filament-row{
    grid-template-columns:1fr;
  }
  .filament-modal-panel{
    inset:2vh 2vw;
  }
  .filament-modal-toolbar{
    display:grid;
  }
  .filament-search{
    max-width:none;
  }
}


/* v2.9 — seleção de filamentos exatamente em cartões tipo Stock */
.quote-stock-materials{
  background:#101010;
  border:1px solid rgba(255,255,255,.085);
  border-radius:18px;
  padding:18px;
}

.quote-stock-materials .section-title-pro{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.selected-counter{
  color:#fff;
  font-size:13px;
  font-weight:950;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.065);
  border:1px solid rgba(255,255,255,.09);
  white-space:nowrap;
}

.selected-counter b{
  color:var(--orange);
}

.quote-filament-search-wrap{
  margin:14px 0 16px;
}

.quote-filament-search-wrap input{
  width:100%;
  min-height:44px;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.10);
  border-radius:13px;
  color:#fff;
  padding:10px 13px;
}

.quote-stock-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:14px;
}

.quote-stock-card{
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  cursor:pointer;
  color:inherit;
}

.quote-stock-card > input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.quote-stock-card article{
  position:relative;
  min-height:270px;
  padding:17px;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  border:1px solid var(--line);
  box-shadow:0 24px 80px rgba(0,0,0,.20);
  transition:.18s ease;
  display:grid;
  grid-template-rows:auto auto auto auto 1fr;
  gap:8px;
}

.quote-stock-card:hover article{
  transform:translateY(-2px);
  border-color:rgba(232,90,12,.55);
}

.quote-stock-card.selected article{
  border-color:rgba(232,90,12,.95);
  background:linear-gradient(180deg,rgba(232,90,12,.18),rgba(255,255,255,.018));
  box-shadow:0 28px 90px rgba(232,90,12,.16);
}

.quote-stock-card.locked:not(.selected){
  opacity:.42;
}

.quote-card-checkmark{
  position:absolute;
  top:14px;
  right:14px;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:transparent;
  font-weight:950;
}

.quote-stock-card.selected .quote-card-checkmark{
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
}

.quote-stock-card .top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-right:36px;
}

.quote-stock-card .sw{
  display:inline-block;
  width:38px;
  height:38px;
  border-radius:50%;
  border:0 !important;
  box-shadow:0 0 0 6px rgba(255,255,255,.06), inset 0 0 10px rgba(0,0,0,.18);
}

.quote-stock-card .top b{
  font-size:13px;
  color:#fff;
  font-weight:950;
}

.quote-stock-card h3{
  margin:0;
  font-size:21px;
  line-height:1.1;
  letter-spacing:-.04em;
  color:#fff;
}

.quote-stock-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
}

.quote-stock-card p:nth-of-type(2){
  color:#d1d5db;
}

.quote-material-inputs{
  align-self:end;
  display:grid;
  gap:8px;
  margin-top:8px;
}

.quote-material-inputs label{
  display:grid !important;
  gap:5px !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  color:#fff !important;
}

.quote-material-inputs label span{
  color:#a3a3a3;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.quote-material-inputs input{
  min-height:38px !important;
  background:#0b0b0b !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:11px !important;
  color:#fff !important;
  padding:8px 10px !important;
  font-size:13px !important;
}

.quote-stock-card.selected .quote-material-inputs input{
  border-color:rgba(232,90,12,.5) !important;
}

.quote-material-inputs input:disabled{
  opacity:.35;
  cursor:not-allowed;
}

@media(max-width:900px){
  .quote-stock-card-grid{
    grid-template-columns:1fr;
  }
  .quote-stock-card article{
    min-height:auto;
  }
  .quote-stock-materials .section-title-pro{
    display:grid;
  }
  .selected-counter{
    justify-self:start;
  }
}


/* v3.0 — correção definitiva: grelha dinâmica compacta */
.quote-stock-card-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr)) !important;
  gap:14px !important;
  align-items:stretch !important;
}

.quote-stock-card{
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  cursor:pointer;
}

.quote-stock-card > .quote-filament-check{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.quote-stock-card article{
  width:100% !important;
  min-width:0 !important;
  height:100% !important;
  min-height:275px !important;
  padding:17px !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015)) !important;
  border:1px solid var(--line) !important;
  box-shadow:0 24px 80px rgba(0,0,0,.20) !important;
  display:grid !important;
  grid-template-rows:auto auto auto auto 1fr !important;
  gap:8px !important;
}

.quote-stock-card .quote-material-inputs{
  align-self:end !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  margin-top:10px !important;
}

.quote-stock-card .mini-input{
  display:grid !important;
  gap:5px !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
}

.quote-stock-card .mini-input span{
  color:#a3a3a3 !important;
  font-size:10px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
}

.quote-stock-card .mini-input input{
  min-height:38px !important;
  width:100% !important;
  background:#0b0b0b !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:11px !important;
  color:#fff !important;
  padding:8px 10px !important;
  font-size:13px !important;
}

.quote-stock-card.selected .mini-input input{
  border-color:rgba(232,90,12,.5) !important;
}

.quote-stock-card .mini-input input:disabled{
  opacity:.35 !important;
  cursor:not-allowed !important;
}

@media(min-width:1500px){
  .quote-stock-card-grid{
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr)) !important;
  }
}

@media(max-width:900px){
  .quote-stock-card-grid{
    grid-template-columns:1fr !important;
  }
  .quote-stock-card article{
    min-height:auto !important;
  }
}


/* v3.1 FINAL — grelha de cartões igual ao Stock + checkbox */
.final-stock-selector{
  background:#101010 !important;
  border:1px solid rgba(255,255,255,.085) !important;
  border-radius:18px !important;
  padding:18px !important;
  overflow:visible !important;
}

.final-stock-selector .section-title-pro{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:18px !important;
}

.final-stock-selector .selected-counter{
  color:#fff !important;
  font-size:13px !important;
  font-weight:950 !important;
  padding:8px 11px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.065) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  white-space:nowrap !important;
}

.final-stock-selector .selected-counter b{
  color:var(--orange) !important;
}

.final-stock-selector .quote-filament-search-wrap{
  margin:14px 0 16px !important;
}

.final-stock-selector #quoteFilamentSearch{
  width:100% !important;
  min-height:44px !important;
  background:#0b0b0b !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:13px !important;
  color:#fff !important;
  padding:10px 13px !important;
  display:block !important;
}

#quoteFilamentGrid.quote-filament-grid-final{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(235px,1fr)) !important;
  gap:14px !important;
  align-items:stretch !important;
  width:100% !important;
}

#quoteFilamentGrid .quote-filament-card-final{
  position:relative !important;
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  color:inherit !important;
}

#quoteFilamentGrid .quote-filament-check{
  position:absolute !important;
  left:14px !important;
  top:14px !important;
  width:18px !important;
  height:18px !important;
  opacity:1 !important;
  pointer-events:auto !important;
  z-index:6 !important;
  accent-color:#e85a0c !important;
}

#quoteFilamentGrid .card-select-hit{
  position:absolute !important;
  inset:0 !important;
  z-index:3 !important;
  cursor:pointer !important;
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
}

#quoteFilamentGrid .stock-like-card{
  position:relative !important;
  z-index:1 !important;
  min-height:292px !important;
  height:100% !important;
  padding:17px !important;
  padding-top:42px !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015)) !important;
  border:1px solid var(--line) !important;
  box-shadow:0 24px 80px rgba(0,0,0,.20) !important;
  display:grid !important;
  grid-template-rows:auto auto auto auto 1fr !important;
  gap:8px !important;
  transition:.18s ease !important;
}

#quoteFilamentGrid .quote-filament-card-final:hover .stock-like-card{
  transform:translateY(-2px) !important;
  border-color:rgba(232,90,12,.55) !important;
}

#quoteFilamentGrid .quote-filament-card-final.selected .stock-like-card{
  border-color:rgba(232,90,12,.95) !important;
  background:linear-gradient(180deg,rgba(232,90,12,.18),rgba(255,255,255,.018)) !important;
  box-shadow:0 28px 90px rgba(232,90,12,.16) !important;
}

#quoteFilamentGrid .quote-filament-card-final.locked:not(.selected){
  opacity:.42 !important;
}

#quoteFilamentGrid .quote-card-checkmark{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  width:26px !important;
  height:26px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:transparent !important;
  font-weight:950 !important;
}

#quoteFilamentGrid .quote-filament-card-final.selected .quote-card-checkmark{
  background:var(--orange) !important;
  border-color:var(--orange) !important;
  color:#fff !important;
}

#quoteFilamentGrid .top{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:10px !important;
}

#quoteFilamentGrid .sw{
  display:inline-block !important;
  width:38px !important;
  height:38px !important;
  border-radius:50% !important;
  border:0 !important;
  box-shadow:0 0 0 6px rgba(255,255,255,.06), inset 0 0 10px rgba(0,0,0,.18) !important;
}

#quoteFilamentGrid .top b{
  font-size:13px !important;
  color:#fff !important;
  font-weight:950 !important;
}

#quoteFilamentGrid h3{
  margin:0 !important;
  font-size:21px !important;
  line-height:1.1 !important;
  letter-spacing:-.04em !important;
  color:#fff !important;
}

#quoteFilamentGrid p{
  margin:0 !important;
  color:var(--muted) !important;
  font-size:13px !important;
  line-height:1.25 !important;
}

#quoteFilamentGrid p:nth-of-type(2){
  color:#d1d5db !important;
}

#quoteFilamentGrid .quote-material-inputs{
  position:relative !important;
  z-index:7 !important;
  align-self:end !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  margin-top:8px !important;
}

#quoteFilamentGrid .mini-input{
  display:grid !important;
  gap:5px !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
}

#quoteFilamentGrid .mini-input span{
  color:#a3a3a3 !important;
  font-size:10px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
}

#quoteFilamentGrid .mini-input input{
  width:100% !important;
  min-height:38px !important;
  background:#0b0b0b !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:11px !important;
  color:#fff !important;
  padding:8px 10px !important;
  font-size:13px !important;
  pointer-events:auto !important;
}

#quoteFilamentGrid .quote-filament-card-final.selected .mini-input input{
  border-color:rgba(232,90,12,.5) !important;
}

#quoteFilamentGrid .mini-input input:disabled{
  opacity:.35 !important;
  cursor:not-allowed !important;
}

@media(min-width:1500px){
  #quoteFilamentGrid.quote-filament-grid-final{
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr)) !important;
  }
}

@media(max-width:900px){
  #quoteFilamentGrid.quote-filament-grid-final{
    grid-template-columns:1fr !important;
  }

  #quoteFilamentGrid .stock-like-card{
    min-height:auto !important;
  }

  .final-stock-selector .section-title-pro{
    display:grid !important;
  }

  .final-stock-selector .selected-counter{
    justify-self:start !important;
  }
}


/* v3.2 cache/grid hard fix */
.final-stock-selector #quoteFilamentGrid.quote-filament-grid-final.quote-grid-reset{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(235px,1fr)) !important;
  gap:14px !important;
  align-items:stretch !important;
}
.final-stock-selector #quoteFilamentGrid.quote-grid-reset > .quote-filament-card-final{
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
}


/* v3.3 — correção de interação nos cartões de filamento */
.final-stock-selector #quoteFilamentGrid .card-select-hit{
  display:none !important;
  pointer-events:none !important;
}

.final-stock-selector #quoteFilamentGrid .quote-card-checkmark{
  display:none !important;
}

/* fica apenas uma checkbox real, no topo esquerdo */
.final-stock-selector #quoteFilamentGrid .quote-filament-check{
  position:absolute !important;
  left:14px !important;
  top:14px !important;
  width:18px !important;
  height:18px !important;
  opacity:1 !important;
  z-index:80 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  accent-color:#e85a0c !important;
}

/* garante que os campos ficam acima de qualquer área clicável do cartão */
.final-stock-selector #quoteFilamentGrid .quote-material-inputs{
  position:relative !important;
  z-index:120 !important;
  pointer-events:auto !important;
}

.final-stock-selector #quoteFilamentGrid .mini-input,
.final-stock-selector #quoteFilamentGrid .mini-input input{
  position:relative !important;
  z-index:130 !important;
  pointer-events:auto !important;
}

.final-stock-selector #quoteFilamentGrid .stock-like-card{
  cursor:pointer !important;
}

.final-stock-selector #quoteFilamentGrid .quote-material-inputs,
.final-stock-selector #quoteFilamentGrid .quote-material-inputs *{
  cursor:auto !important;
}

.final-stock-selector #quoteFilamentGrid .quote-filament-card-final.selected .stock-like-card{
  border-color:rgba(232,90,12,.95) !important;
  background:linear-gradient(180deg,rgba(232,90,12,.18),rgba(255,255,255,.018)) !important;
  box-shadow:0 28px 90px rgba(232,90,12,.16) !important;
}


/* v3.5 — remove seleção redundante nos cartões */
.quote-card-checkmark{
  display:none !important;
}

.final-stock-selector #quoteFilamentGrid .quote-card-checkmark{
  display:none !important;
}

/* mantém só a checkbox real no canto superior esquerdo */
.final-stock-selector #quoteFilamentGrid .quote-filament-check{
  opacity:1 !important;
  pointer-events:auto !important;
}

/* v3.6 — NEEDTO Smart Quote */
.smart-admin-head{align-items:flex-end;gap:20px}
.smart-admin-head .head{margin:0}
.smart-admin-head span{display:block;color:var(--muted);margin-top:7px}
.smart-public-link{display:inline-flex;align-items:center;justify-content:center;width:auto;padding:12px 16px;border-radius:14px;border:1px solid rgba(232,90,12,.45);background:rgba(232,90,12,.10);color:#fff;font-weight:850;white-space:nowrap}
.smart-public-link:hover{background:rgba(232,90,12,.18);border-color:var(--orange)}
.smart-kicker{font-size:12px!important;font-weight:900!important;letter-spacing:.16em!important;text-transform:uppercase;color:var(--orange)!important}
.smart-alert{padding:13px 16px;border-radius:14px;margin:0 0 16px;border:1px solid var(--line)}
.smart-alert.error{color:#fecaca;background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.35)}
.smart-alert.success{color:#bbf7d0;background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.30)}
.smart-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.smart-metrics>div{padding:18px 20px;border:1px solid var(--line);border-radius:21px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));box-shadow:0 24px 70px rgba(0,0,0,.18)}
.smart-metrics span,.smart-metrics small{display:block;color:var(--muted);font-size:12px}
.smart-metrics strong{display:block;font-size:27px;letter-spacing:-.045em;margin:8px 0 5px}
.smart-metrics>div:nth-child(2) strong{color:#fdba74}
.smart-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}
.smart-create,.smart-settings{padding:0!important;overflow:hidden}
.smart-create>summary,.smart-settings>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:19px 22px;gap:20px}
.smart-create>summary::-webkit-details-marker,.smart-settings>summary::-webkit-details-marker{display:none}
.smart-create>summary b,.smart-settings>summary b{display:block;font-size:20px;color:#fff}
.smart-create>summary small,.smart-settings>summary small{display:block;color:var(--muted);margin-top:4px}
.smart-create>summary>span,.smart-settings>summary>span{width:auto;padding:9px 13px;border-radius:12px;background:#222;color:#fff;font-weight:850}
.smart-create[open]>summary,.smart-settings[open]>summary{border-bottom:1px solid var(--line);background:linear-gradient(135deg,rgba(232,90,12,.14),rgba(255,255,255,.02))}
.smart-intake-form.admin{padding:22px}
.smart-form-section{padding:24px;border-radius:22px;border:1px solid rgba(255,255,255,.085);background:rgba(10,10,10,.58);margin-bottom:14px}
.smart-section-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}
.smart-section-head>span{display:grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:12px;background:rgba(232,90,12,.14);color:#fdba74;font-size:12px;font-weight:950}
.smart-section-head h2{margin:0;color:#fff;font-size:19px;letter-spacing:-.025em}
.smart-section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.smart-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.smart-choice{position:relative!important;display:grid!important;justify-content:stretch!important;align-items:start!important;gap:5px!important;min-height:108px;padding:16px 16px 14px 45px!important;background:#0b0b0b!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:16px!important;cursor:pointer;color:#fff!important}
.smart-choice input{position:absolute;left:16px;top:18px;width:17px!important;height:17px!important;margin:0;accent-color:var(--orange)}
.smart-choice b{font-size:15px}.smart-choice small{font-size:12px;line-height:1.45;color:var(--muted)}
.smart-choice.selected{border-color:rgba(232,90,12,.8)!important;background:linear-gradient(145deg,rgba(232,90,12,.16),#0b0b0b)!important}
.smart-upload{display:grid!important;align-items:stretch!important;justify-content:stretch!important;gap:7px!important;padding:15px!important;border:1px dashed rgba(255,255,255,.16)!important;background:rgba(255,255,255,.018)!important;color:#fff!important}
.smart-upload input{background:#090909}.smart-upload small{color:var(--muted);font-size:12px}
.smart-fields{display:grid;gap:12px;margin-bottom:12px}
.smart-fields.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.smart-fields.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.smart-fields.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.smart-fields label,.smart-textarea{display:grid!important;align-items:stretch!important;justify-content:stretch!important;gap:7px!important;background:transparent!important;border:0!important;padding:0!important;color:#fff!important}
.smart-fields label>span,.smart-textarea>span,.smart-upload>span{color:#d1d5db;font-size:12px;font-weight:760}
.smart-fields input,.smart-fields select,.smart-fields textarea,.smart-textarea textarea{min-height:44px;background:#090909;border:1px solid rgba(255,255,255,.10);border-radius:13px;padding:11px 12px;color:#fff;resize:vertical}
.smart-textarea textarea{width:100%;margin-top:7px}
.smart-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-top:15px}
.smart-checks label{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:9px!important;padding:10px 12px!important;background:#0b0b0b!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:13px!important;color:#d1d5db!important}
.smart-checks input{width:16px!important;height:16px!important;accent-color:var(--orange)}
.smart-checks span{font-size:12px}
.smart-submit-row{display:flex;justify-content:space-between;align-items:center;gap:22px;padding-top:8px}
.smart-submit-row p{max-width:650px;margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.smart-submit-row button,.smart-form-actions button{width:auto;min-width:240px;padding:13px 18px}
.smart-submit-row button span{margin-left:12px}
.smart-form-actions{display:flex;justify-content:flex-end;margin-top:14px}
.smart-detail{padding:0!important;overflow:hidden;border-color:rgba(232,90,12,.35)!important}
.smart-detail-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}
.smart-detail-head h2{font-size:29px!important;margin:5px 0 3px!important;letter-spacing:-.045em}
.smart-detail-head p{margin:0;color:var(--muted)}
.smart-detail-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.smart-detail-badges span,.smart-detail-badges a,.smart-inline-pill{display:inline-flex!important;width:auto!important;padding:7px 10px;border-radius:999px;background:#222;color:#d1d5db;font-size:11px;font-weight:850;line-height:1.1}
.smart-detail-badges a{border:1px solid var(--line)}
.smart-detail-badges .good,.smart-inline-pill.good{background:rgba(34,197,94,.13);color:#86efac}.smart-detail-badges .bad,.smart-inline-pill.bad{background:rgba(239,68,68,.13);color:#fca5a5}.smart-detail-badges .warn,.smart-inline-pill.warn{background:rgba(245,158,11,.13);color:#fcd34d}
.smart-estimate-hero{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:linear-gradient(135deg,rgba(232,90,12,.16),rgba(255,255,255,.018));border-bottom:1px solid var(--line)}
.smart-estimate-hero>div{padding:21px 24px;border-right:1px solid var(--line)}.smart-estimate-hero>div:last-child{border-right:0}
.smart-estimate-hero span,.smart-estimate-hero small{display:block;color:var(--muted);font-size:11px}.smart-estimate-hero strong{display:block;font-size:22px;margin:8px 0 5px;letter-spacing:-.035em}
.smart-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 18px 0}.smart-detail-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:12px;padding-bottom:18px}
.smart-detail-card{padding:18px;border-radius:17px;border:1px solid rgba(255,255,255,.08);background:#0c0c0c;min-width:0}
.smart-detail-card h3{margin:0 0 13px;font-size:16px}.smart-detail-card p{color:var(--muted);line-height:1.6;font-size:13px}
.smart-detail-card dl{margin:0}.smart-detail-card dl>div{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.5fr);gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06)}.smart-detail-card dl>div:last-child{border-bottom:0}
.smart-detail-card dt{color:var(--muted);font-size:11px}.smart-detail-card dd{margin:0;text-align:right;font-size:12px;font-weight:750;overflow-wrap:anywhere}.smart-detail-card dl .total{padding-top:13px}.smart-detail-card dl .total dd{font-size:17px;color:#fdba74}
.smart-requirements{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.smart-requirements span{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.06);font-size:10px;color:#d1d5db}
.smart-file-list{display:grid;gap:7px}.smart-file-list a{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.02)}
.smart-file-list a>span{display:grid;place-items:center;height:38px;border-radius:10px;background:rgba(232,90,12,.13);color:#fdba74;font-size:9px;font-weight:950}.smart-file-list b,.smart-file-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-file-list b{font-size:12px}.smart-file-list small{font-size:10px;color:var(--muted);margin-top:3px}.smart-file-list em{font-style:normal;font-size:10px;color:#fdba74}
.smart-review{margin:0 18px 18px;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:#0c0c0c;overflow:hidden}.smart-review>summary{cursor:pointer;padding:15px 18px;font-weight:900;background:rgba(255,255,255,.025)}.smart-review>form{padding:18px}
.smart-action-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 18px 20px}.smart-action-bar form{margin:0}.smart-action-bar button,.smart-action-bar a{display:inline-flex;width:auto;min-width:0;align-items:center;justify-content:center;padding:10px 13px;border-radius:12px;background:#222;border:1px solid var(--line);box-shadow:none;font-size:12px;font-weight:850}.smart-action-bar .primary{background:linear-gradient(135deg,var(--orange),var(--orange2));border:0}.smart-action-bar .danger{background:rgba(239,68,68,.1);border-color:rgba(239,68,68,.30);color:#fca5a5}
.smart-panel-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:15px}.smart-panel-head h2{margin-bottom:4px!important}.smart-panel-head p{margin:0;color:var(--muted);font-size:12px}.smart-panel-head input{max-width:370px}
.smart-request-list{display:grid;gap:9px}.smart-request-list>article{display:grid;grid-template-columns:minmax(240px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(120px,1fr) auto;align-items:center;gap:14px;padding:13px 14px;border:1px solid rgba(255,255,255,.075);border-radius:16px;background:#0b0b0b;box-shadow:none}.smart-request-list>article:hover{transform:none;background:#0e0e0e;border-color:rgba(232,90,12,.35)}
.smart-request-list>article>div:not(.smart-request-main)>span,.smart-request-list>article>div:not(.smart-request-main)>small{display:block;color:var(--muted);font-size:10px}.smart-request-list>article>div:not(.smart-request-main)>b{display:block;margin:5px 0;font-size:13px}.smart-request-list>article>a{width:auto;padding:9px 11px;border-radius:11px;background:#222;font-size:11px;font-weight:850;text-align:center}
.smart-request-main{display:flex;align-items:center;gap:11px;min-width:0}.smart-file-kind{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border-radius:12px;background:rgba(232,90,12,.13);color:#fdba74;font-size:10px;font-weight:950}.smart-request-main h3{margin:3px 0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smart-request-main p,.smart-request-main small{display:block;margin:0;color:var(--muted);font-size:10px}
.smart-empty{text-align:center;padding:40px 20px;color:var(--muted)}.smart-empty>span{display:block;font-size:30px;color:#fdba74}.smart-empty h3{color:#fff;margin-bottom:5px}.smart-empty p{margin:0}
.smart-settings>form{padding:20px}

/* Formulário público */
.smart-public-body{min-height:100vh;background:radial-gradient(circle at 75% 0,rgba(232,90,12,.22),transparent 33%),#050505;color:#f8fafc}
.smart-public-shell{width:min(1080px,calc(100% - 32px));margin:0 auto;padding:48px 0 28px}
.smart-public-head{position:relative;padding:36px 0 32px;max-width:850px}
.smart-public-brand{display:flex;align-items:center;gap:10px;margin-bottom:58px}.smart-public-brand>span{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:var(--orange);color:#111;font-size:29px;font-weight:950}.smart-public-brand b{display:block;color:var(--orange);font-size:26px;line-height:.85;letter-spacing:-.06em}.smart-public-brand small{color:#fff;font-size:10px}
.smart-public-head h1{font-size:clamp(38px,6vw,68px);line-height:.98;letter-spacing:-.065em;margin:14px 0 19px}.smart-public-head h1 em{font-style:normal;color:#fdba74}.smart-public-head>p{max-width:720px;font-size:17px;line-height:1.65;color:#aeb4be}
.smart-public-shell .smart-intake-form{padding:18px;border:1px solid var(--line);border-radius:28px;background:rgba(15,15,15,.86);box-shadow:0 40px 120px rgba(0,0,0,.38);backdrop-filter:blur(18px)}
.smart-public-shell .smart-submit-row{padding:12px 7px 6px}
.smart-public-shell footer{text-align:center;color:#666;padding:30px 0 0;font-size:11px}
.smart-success{display:flex;gap:18px;align-items:flex-start;padding:26px;border:1px solid rgba(34,197,94,.3);border-radius:24px;background:rgba(34,197,94,.08)}.smart-success>span{display:grid;place-items:center;width:48px;height:48px;min-width:48px;border-radius:15px;background:rgba(34,197,94,.16);color:#86efac;font-size:22px;font-weight:950}.smart-success h2{margin:0 0 6px}.smart-success p{color:#c4cbd4}.smart-success a{display:inline-flex;width:auto;margin-top:8px;padding:10px 13px;border-radius:11px;background:#222;font-weight:850}

@media(max-width:1200px){
  .smart-estimate-hero{grid-template-columns:repeat(2,minmax(0,1fr))}.smart-estimate-hero>div:nth-child(2){border-right:0}.smart-estimate-hero>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .smart-detail-grid{grid-template-columns:1fr 1fr}.smart-detail-grid>.smart-detail-card:last-child{grid-column:1/-1}
  .smart-request-list>article{grid-template-columns:minmax(220px,2fr) repeat(2,minmax(110px,1fr)) auto}.smart-request-list>article>div:nth-child(4){display:none}
}
@media(max-width:900px){
  .smart-metrics{grid-template-columns:repeat(2,1fr)}.smart-fields.cols-4,.smart-fields.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}.smart-type-grid{grid-template-columns:1fr}.smart-request-list>article{grid-template-columns:1fr auto}.smart-request-list>article>div:not(.smart-request-main){display:none}.smart-admin-head{align-items:flex-start;flex-direction:column}.smart-detail-head{align-items:flex-start;flex-direction:column}.smart-detail-badges{justify-content:flex-start}.smart-detail-grid,.smart-detail-grid.two{grid-template-columns:1fr}.smart-detail-grid>.smart-detail-card:last-child{grid-column:auto}
}
@media(max-width:620px){
  .smart-public-shell{width:min(100% - 20px,1080px);padding-top:20px}.smart-public-head{padding-top:20px}.smart-public-brand{margin-bottom:40px}.smart-public-head>p{font-size:15px}.smart-public-shell .smart-intake-form{padding:10px;border-radius:22px}.smart-form-section{padding:17px;border-radius:18px}.smart-fields.cols-4,.smart-fields.cols-3,.smart-fields.cols-2{grid-template-columns:1fr}.smart-submit-row{align-items:stretch;flex-direction:column}.smart-submit-row button{width:100%;min-width:0}.smart-metrics{grid-template-columns:1fr 1fr;gap:8px}.smart-metrics>div{padding:14px}.smart-metrics strong{font-size:21px}.smart-estimate-hero{grid-template-columns:1fr}.smart-estimate-hero>div{border-right:0;border-bottom:1px solid var(--line)!important}.smart-estimate-hero>div:last-child{border-bottom:0!important}.smart-detail-grid{padding:10px 10px 0}.smart-detail-grid.two{padding:10px}.smart-review{margin:0 10px 10px}.smart-action-bar{padding:0 10px 13px}.smart-panel-head{align-items:stretch;flex-direction:column}.smart-panel-head input{max-width:none}
}

/* v3.7 — motor comercial transparente e superfícies com mais contraste */
aside{background:rgba(24,29,35,.94)}
input,select,button,label{background:#171c22}
.panel,.metric,article{background:linear-gradient(180deg,rgba(42,49,58,.94),rgba(29,35,42,.92))}
.smart-metrics>div:nth-child(1){background:linear-gradient(150deg,#28313b,#202831)}
.smart-metrics>div:nth-child(2){background:linear-gradient(150deg,#352d28,#292522)}
.smart-metrics>div:nth-child(3){background:linear-gradient(150deg,#24322d,#1e2926)}
.smart-metrics>div:nth-child(4){background:linear-gradient(150deg,#2d2b38,#24232e)}
.smart-form-section{background:#202731!important;border-color:#3b4652!important}
.smart-form-section:nth-of-type(2){background:#252a32!important}
.smart-form-section:nth-of-type(3){background:#222b2a!important}
.smart-form-section:nth-of-type(4){background:#2b2830!important}
.smart-choice,.smart-fields input,.smart-fields select,.smart-fields textarea,.smart-textarea textarea,.smart-checks label{background:#171d24!important;border-color:#3a4550!important}
.smart-upload{background:#1b222a!important;border-color:#46515d!important}
.smart-detail-head{background:#232a33}
.smart-estimate-hero{background:linear-gradient(135deg,rgba(232,90,12,.18),#242b35)}
.smart-detail-grid>.smart-detail-card:nth-child(1){background:#202a34}
.smart-detail-grid>.smart-detail-card:nth-child(2){background:#202d2a}
.smart-detail-grid>.smart-detail-card:nth-child(3){background:#302a27}
.smart-detail-grid.two>.smart-detail-card:nth-child(1){background:#282a35}
.smart-detail-grid.two>.smart-detail-card:nth-child(2){background:#222c34}
.smart-review{background:#202832;border-color:#3c4855}
.smart-review>summary{background:#2a333e}
.smart-settings>form,.smart-create .smart-intake-form{background:#1c2229}
.smart-public-body{background:radial-gradient(circle at 75% 0,rgba(232,90,12,.18),transparent 36%),linear-gradient(145deg,#1a2027,#11161b 75%)}
.smart-public-shell .smart-intake-form{background:rgba(28,35,43,.94);border-color:#3b4652}

.smart-cost-card dl .subtotal{background:rgba(255,255,255,.025);margin:2px -7px;padding:10px 7px}
.smart-cost-card dl .manual{color:#fcd34d}
.smart-cost-card dl .commercial{margin-top:5px;padding-top:13px;border-top:1px solid rgba(232,90,12,.35)}
.smart-cost-card dl .commercial dd{color:#fdba74;font-size:15px}
.smart-margin-explainer{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.smart-margin-explainer>div{padding:14px 16px;border-radius:15px;border:1px solid #44505d;background:#27303a}
.smart-margin-explainer>div:first-child{border-color:rgba(34,197,94,.32);background:#23312d}
.smart-margin-explainer>div:last-child{border-color:rgba(245,158,11,.32);background:#332e27}
.smart-margin-explainer span,.smart-margin-explainer b,.smart-margin-explainer small{display:block}
.smart-margin-explainer span{font-size:9px;letter-spacing:.12em;font-weight:950;color:#9ca3af;margin-bottom:7px}
.smart-margin-explainer b{font-size:12px;line-height:1.5;color:#fff}
.smart-margin-explainer small{font-size:10px;line-height:1.5;color:#b8c0ca;margin-top:5px}
.smart-margin-simulator{padding:18px;border-radius:18px;border:1px solid rgba(232,90,12,.38);background:linear-gradient(145deg,#29313a,#222a33);margin-bottom:18px}
.smart-simulator-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}
.smart-simulator-head h3{margin:0 0 4px;font-size:18px}.smart-simulator-head p{margin:0;color:var(--muted);font-size:11px}
.smart-cost-source{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(34,197,94,.12);color:#86efac;font-size:10px;font-weight:900;white-space:nowrap}
.smart-simulator-inputs{margin-bottom:14px!important}
.smart-simulator-inputs label span em{font-style:normal;color:#8f99a5;font-weight:500}
.smart-sim-check{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:9px!important;min-height:44px!important;padding:10px 12px!important;background:#171d24!important;border:1px solid #3a4550!important;border-radius:13px!important;align-self:end}
.smart-sim-check input{width:17px!important;height:17px!important;min-height:0!important;padding:0!important;accent-color:var(--orange)}
.smart-sim-check span{font-size:12px;color:#d1d5db}
.smart-simulator-results{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.smart-simulator-results>div{padding:12px;border-radius:13px;background:#1b222a;border:1px solid #36414c;min-width:0}
.smart-simulator-results span,.smart-simulator-results strong{display:block}.smart-simulator-results span{font-size:9px;color:#9da7b2;min-height:22px}.smart-simulator-results strong{font-size:15px;margin-top:5px;letter-spacing:-.025em;overflow-wrap:anywhere}
.smart-simulator-results .highlight{background:linear-gradient(145deg,rgba(232,90,12,.26),rgba(232,90,12,.10));border-color:rgba(232,90,12,.55)}.smart-simulator-results .highlight strong{color:#fdba74;font-size:18px}
.smart-simulator-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px;padding-top:12px;border-top:1px solid #3a4550}
.smart-simulator-footer code{font-size:10px;line-height:1.5;color:#d6dae0;background:#171d24;padding:8px 10px;border-radius:10px;white-space:normal}
.smart-simulator-footer p{font-size:10px;color:#aeb7c1;margin:0;text-align:right}.smart-simulator-footer b{color:#fff}
.gross-margin-warning{border-color:rgba(239,68,68,.7)!important}.gross-margin-warning .smart-simulator-footer code{color:#fca5a5}
.smart-review-title{display:flex;align-items:baseline;gap:10px;margin:6px 0 12px;padding-top:4px}.smart-review-title span{font-size:15px;font-weight:900}.smart-review-title small{font-size:10px;color:var(--muted)}
.smart-settings-note{padding:14px 16px;margin-bottom:16px;border-radius:15px;background:#23312d;border:1px solid rgba(34,197,94,.28)}.smart-settings-note b{color:#86efac}.smart-settings-note p{margin:5px 0 0;color:#c7d0d8;font-size:12px;line-height:1.55}
.quote-margin-clarity{display:grid;grid-template-columns:1.35fr 1fr;gap:10px;margin:14px 0;padding:0}
.quote-margin-clarity>div{padding:15px 17px;border-radius:15px;background:#222b34;border:1px solid #3a4652}.quote-margin-clarity>div:first-child{background:#23312d;border-color:rgba(34,197,94,.28)}
.quote-margin-clarity span,.quote-margin-clarity strong,.quote-margin-clarity small{display:block}.quote-margin-clarity span{font-size:10px;color:#98a3ae}.quote-margin-clarity strong{font-size:14px;margin:6px 0}.quote-margin-clarity small{font-size:10px;line-height:1.5;color:#b7c0ca}
.quote-formula-hint{margin-top:13px;padding:11px 13px;border-radius:12px;background:#23312d;border:1px solid rgba(34,197,94,.25);font-size:11px;color:#c8d2da}

@media(max-width:1100px){.smart-simulator-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.smart-margin-explainer,.quote-margin-clarity{grid-template-columns:1fr}.smart-simulator-results{grid-template-columns:repeat(2,minmax(0,1fr))}.smart-simulator-head,.smart-simulator-footer{align-items:stretch;flex-direction:column}.smart-simulator-footer p{text-align:left}}

/* v3.8 — confirmação visual dos ficheiros */
.smart-preview-workspace[hidden]{display:none!important}
.smart-preview-workspace{margin-top:14px;padding:17px;border-radius:19px;border:1px solid rgba(232,90,12,.38);background:linear-gradient(145deg,#27313b,#202832)}
.smart-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}
.smart-preview-head b,.smart-preview-head small{display:block}.smart-preview-head b{font-size:16px}.smart-preview-head small{font-size:11px;color:var(--muted);margin-top:4px}
.smart-preview-format{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(232,90,12,.14);color:#fdba74;font-size:9px;font-weight:950;letter-spacing:.08em}
.smart-preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:12px}
.smart-preview-stage{position:relative;min-height:400px;border-radius:16px;overflow:hidden;background:#151c23;border:1px solid #3c4854}
.smart-preview-canvas,.smart-preview-pdf{display:block;width:100%;height:100%;min-height:400px;object-fit:contain;touch-action:none}
.smart-preview-canvas{cursor:grab}.smart-preview-canvas:active{cursor:grabbing}.smart-preview-pdf{background:#fff}
.smart-preview-overlay{position:absolute;left:13px;right:13px;top:13px;display:flex;justify-content:space-between;gap:12px;align-items:center;pointer-events:none}
.smart-preview-overlay b,.smart-preview-overlay span{padding:7px 9px;border-radius:9px;background:rgba(10,15,20,.78);backdrop-filter:blur(8px);font-size:10px}.smart-preview-overlay b{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-preview-overlay span{color:#c8d0d8;text-align:right}
.smart-preview-loading{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:11px;background:rgba(17,23,29,.86);z-index:5}.smart-preview-loading[hidden]{display:none!important}.smart-preview-loading span{width:30px;height:30px;border:3px solid rgba(255,255,255,.14);border-top-color:var(--orange);border-radius:50%;animation:smart-spin .8s linear infinite}.smart-preview-loading b{font-size:11px;color:#d7dde3}
@keyframes smart-spin{to{transform:rotate(360deg)}}
.smart-preview-sidebar{display:flex;flex-direction:column;min-width:0;padding:12px;border-radius:15px;background:#1a2129;border:1px solid #394550}
.smart-preview-files{display:grid;gap:7px;max-height:260px;overflow:auto}
.smart-preview-file{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;width:100%!important;padding:8px!important;text-align:left!important;border:1px solid #394550!important;border-radius:11px!important;background:#222b34!important;box-shadow:none!important}
.smart-preview-file:hover{border-color:rgba(232,90,12,.55)!important}.smart-preview-file>span{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:rgba(232,90,12,.13);color:#fdba74;font-size:8px;font-weight:950}.smart-preview-file b,.smart-preview-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-preview-file b{font-size:10px}.smart-preview-file small{font-size:9px;color:#929da8;margin-top:3px}
.smart-preview-file.active{border-color:rgba(232,90,12,.8)!important;background:#302a27!important}
.smart-preview-render-tools[hidden]{display:none!important}.smart-preview-render-tools{display:grid;gap:9px;margin-top:12px;padding:10px;border:1px solid #3b4854;border-radius:12px;background:#202932}.smart-preview-view-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px}.smart-preview-view-modes button{min-width:0!important;width:100%!important;padding:9px 6px!important;border:1px solid #43515e!important;background:#27323d!important;box-shadow:none!important;color:#cbd5df!important;font-size:10px!important}.smart-preview-view-modes button.active{border-color:#e85a0c!important;background:rgba(232,90,12,.18)!important;color:#fff!important}.smart-preview-color{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:3px 4px!important;color:#aeb8c2!important;font-size:9px!important}.smart-preview-color input{width:48px!important;height:28px!important;padding:2px!important;border:1px solid #4a5865!important;border-radius:8px!important;background:#151c23!important;cursor:pointer}
.smart-preview-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}.smart-preview-controls button{min-width:0!important;width:100%!important;padding:9px 5px!important;border:1px solid #3d4955!important;background:#27313b!important;box-shadow:none!important;color:#e5e7eb}.smart-preview-controls button:hover{background:#313d49!important}
.smart-preview-note{margin:auto 0 0;padding-top:13px;color:#97a2ad;font-size:9px;line-height:1.55}
.smart-preview-confirm{display:flex!important;justify-content:flex-start!important;align-items:flex-start!important;gap:10px!important;margin-top:12px!important;padding:12px 13px!important;border:1px solid rgba(34,197,94,.30)!important;border-radius:13px!important;background:#22322d!important;color:#d7e4df!important}.smart-preview-confirm input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#22c55e}.smart-preview-confirm span{font-size:11px;line-height:1.5}
.smart-sent-preview{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0;margin:14px 0 0;border-radius:22px;overflow:hidden;border:1px solid #3b4853;background:#202933}.smart-sent-preview img{display:block;width:100%;max-height:520px;object-fit:contain;background:#141b22}.smart-sent-preview figcaption{display:flex;flex-direction:column;justify-content:center;padding:22px}.smart-sent-preview figcaption b{font-size:16px}.smart-sent-preview figcaption span{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5}
.smart-admin-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,48%);align-items:center;gap:20px;padding:18px;margin:18px 18px 0;border-radius:18px;background:linear-gradient(145deg,#24332e,#222c34);border:1px solid rgba(34,197,94,.28)}.smart-admin-preview>div>span{font-size:9px;letter-spacing:.12em;color:#86efac;font-weight:950}.smart-admin-preview h3{margin:7px 0 5px}.smart-admin-preview p{margin:0;color:var(--muted);font-size:11px}.smart-admin-preview a{position:relative;display:block}.smart-admin-preview img{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:13px;background:#141b22;border:1px solid #3a4652}.smart-admin-preview a small{position:absolute;right:9px;bottom:9px;padding:6px 8px;border-radius:8px;background:rgba(10,15,20,.82);color:#fff;font-size:9px}
@media(max-width:900px){.smart-preview-layout{grid-template-columns:1fr}.smart-preview-sidebar{min-height:0}.smart-preview-files{grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px}.smart-preview-note{margin-top:12px}.smart-admin-preview,.smart-sent-preview{grid-template-columns:1fr}}
@media(max-width:620px){.smart-preview-workspace{padding:11px}.smart-preview-stage,.smart-preview-canvas,.smart-preview-pdf{min-height:300px}.smart-preview-files{grid-template-columns:1fr}.smart-preview-overlay{align-items:flex-start;flex-direction:column}.smart-preview-overlay b{max-width:100%}.smart-admin-preview{margin:10px 10px 0;padding:13px;grid-template-columns:1fr}.smart-sent-preview figcaption{padding:15px}}

/* Smart Purchasing V2 */
.purchase-v2-head{align-items:center;padding:22px 24px;border:1px solid #465464;border-radius:22px;background:linear-gradient(135deg,#26323d,#30322d 58%,#352b28);margin-bottom:14px}.purchase-v2-head>div>span{display:block;color:#b7c1cb;font-size:11px;margin-top:5px}.purchase-v2-head form{margin:0}.purchase-v2-head button{white-space:nowrap}
.purchase-notice,.purchase-run-result{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 14px;padding:13px 16px;border-radius:14px;background:#263832;border:1px solid rgba(34,197,94,.34);color:#d6e8e0;font-size:11px}.purchase-run-result.bad{background:#3a2929;border-color:rgba(239,68,68,.38)}.purchase-run-result b{text-transform:capitalize}
.purchase-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.purchase-stats article{padding:17px;border:1px solid #43505d;border-radius:17px;background:#232d37}.purchase-stats article:nth-child(2){background:#26322f}.purchase-stats article:nth-child(3){background:#302e28}.purchase-stats article:nth-child(4){background:#292d37}.purchase-stats article.hot{border-color:rgba(232,90,12,.55);background:linear-gradient(145deg,#3a2c28,#2e2d2a)}.purchase-stats span,.purchase-stats strong,.purchase-stats small{display:block}.purchase-stats span{font-size:9px;color:#9faab5;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.purchase-stats strong{font-size:19px;margin:7px 0 5px;color:#fff}.purchase-stats small{font-size:9px;color:#adb6bf}
.purchase-section{background:#202a34!important;border-color:#3f4d5a!important}.purchase-section:nth-of-type(even){background:#222e2b!important}.purchase-section-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:16px}.purchase-section-head p{margin:0 0 5px;color:#fdba74;font-size:9px;letter-spacing:.13em;font-weight:950}.purchase-section-head h2{margin:0}.purchase-section-head span{display:block;color:#aeb8c2;font-size:11px;margin-top:5px;line-height:1.5}
.purchase-suggestion-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:11px}.purchase-suggestion{display:flex;flex-direction:column;padding:17px;border:1px solid #44515e;border-radius:17px;background:#27313b}.purchase-suggestion.hot{border-color:rgba(34,197,94,.42);background:linear-gradient(145deg,#293a34,#2d3333)}.purchase-suggestion-top,.purchase-supplier-status{display:flex;align-items:center;justify-content:space-between;gap:10px}.purchase-suggestion-top span{font-size:9px;font-weight:950;color:#b7c2cc;text-transform:uppercase;letter-spacing:.08em}.purchase-suggestion-top b{padding:6px 8px;border-radius:999px;background:#3a342a;color:#fdba74;font-size:9px}.purchase-suggestion.hot .purchase-suggestion-top b{background:rgba(34,197,94,.13);color:#86efac}.purchase-suggestion h3{font-size:14px;line-height:1.35;margin:13px 0 5px}.purchase-suggestion>p{font-size:10px;color:#9faab4;margin:0}.purchase-price-line{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:16px 0}.purchase-price-line>strong{font-size:27px;color:#fff}.purchase-price-line>strong small{font-size:11px;color:#aeb8c2}.purchase-price-line>span{text-align:right;font-size:9px;color:#adb7c1;line-height:1.5}.purchase-suggestion dl{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 12px}.purchase-suggestion dl div{padding:9px;border-radius:10px;background:#1c252e;border:1px solid #394651}.purchase-suggestion dt{font-size:8px;color:#8996a2}.purchase-suggestion dd{font-size:11px;font-weight:900;margin:4px 0 0}.purchase-reason{color:#b8c2cc;font-size:9px;line-height:1.5;margin-bottom:12px}.purchase-suggestion .open-link{margin-top:auto}.purchase-empty{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;padding:24px;border-radius:16px;border:1px dashed #52606d;background:#26313a}.purchase-empty span{color:#aab4be;font-size:11px}
.purchase-ref-grid{display:grid;gap:9px}.purchase-ref-card{border:1px solid #43515e;border-radius:15px;background:#28333d;overflow:hidden}.purchase-ref-card.disabled{opacity:.65}.purchase-ref-card.add{border-style:dashed;background:#293431}.purchase-ref-card>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;cursor:pointer;list-style:none}.purchase-ref-card>summary::-webkit-details-marker{display:none}.purchase-ref-card>summary b,.purchase-ref-card>summary span{display:block}.purchase-ref-card>summary b{font-size:13px}.purchase-ref-card>summary span{font-size:9px;color:#aeb8c2;margin-top:4px}.purchase-ref-card>summary em{font-style:normal;font-size:9px;color:#86efac}.purchase-ref-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:16px;border-top:1px solid #43515e;background:#222c35}.purchase-ref-form label,.purchase-settings-form label{display:flex;flex-direction:column;gap:5px;font-size:9px;color:#abb6c0}.purchase-ref-form .wide{grid-column:span 2}.purchase-check{flex-direction:row!important;align-items:center!important;justify-content:flex-start;gap:8px!important;padding:9px 10px;border:1px solid #414e5b;border-radius:11px;background:#1c242c}.purchase-check input{width:17px!important;height:17px!important;min-height:0!important;padding:0!important;accent-color:#e85a0c}.purchase-form-actions{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}.purchase-form-actions .danger{background:#4a2929!important;box-shadow:none!important}
.purchase-supplier-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:10px}.purchase-supplier{padding:15px;border:1px solid #43515e;border-radius:16px;background:#29343d}.purchase-supplier.add{border-style:dashed;background:#28332f}.purchase-supplier-status b{font-size:13px}.purchase-supplier-status span{padding:5px 7px;border-radius:999px;background:#353d45;color:#b9c2ca;font-size:8px}.purchase-supplier-status span.ok{background:rgba(34,197,94,.13);color:#86efac}.purchase-supplier>small{display:block;color:#929da8;font-size:8px;margin-top:8px}.purchase-supplier>p{font-size:9px;line-height:1.4;color:#fca5a5}.purchase-supplier details{margin-top:11px}.purchase-supplier details>summary{cursor:pointer;color:#fdba74;font-size:10px;font-weight:900}.purchase-supplier-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.purchase-supplier-form input,.purchase-supplier-form select{min-width:0}.purchase-supplier-form>input:nth-of-type(2),.purchase-supplier-form>input:nth-of-type(3),.purchase-supplier-form>input:nth-of-type(4),.purchase-supplier-form>input:nth-of-type(5){grid-column:1/-1}.purchase-supplier-form label{display:flex;align-items:center;gap:7px;font-size:9px;color:#b8c1ca}.purchase-supplier-form label input{width:16px!important;height:16px!important;min-height:0!important}.purchase-supplier-form button{grid-column:1/-1}
.purchase-automation{background:linear-gradient(145deg,#25332f,#252f39)!important}.purchase-automation-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:13px}.purchase-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:15px;border-radius:15px;background:#202a32;border:1px solid #3f4d59}.purchase-settings-form button{grid-column:1/-1}.purchase-cron{padding:17px;border-radius:15px;background:#2c2f39;border:1px solid #484c5d}.purchase-cron>span{display:block;font-size:9px;color:#c4b5fd;font-weight:900;margin-bottom:8px}.purchase-cron code{display:block;padding:10px;border-radius:10px;background:#181e25;color:#d8dee5;font-size:9px;line-height:1.5;overflow-wrap:anywhere}.purchase-cron p{font-size:10px;color:#aeb8c2;line-height:1.5}.purchase-cron p code{display:inline;padding:3px 5px}.purchase-cron small{font-size:8px;color:#fca5a5}
.purchase-run-table{display:grid;gap:5px}.purchase-run-row{border:1px solid #3c4955;border-radius:11px;background:#26313a;overflow:hidden}.purchase-run-row.head,.purchase-run-row>summary{display:grid;grid-template-columns:1.5fr 1fr repeat(4,.7fr);gap:8px;align-items:center;padding:10px 12px;font-size:9px}.purchase-run-row.head{background:#1d262e;color:#8f9ba6;border:0}.purchase-run-row>summary{cursor:pointer;list-style:none}.purchase-run-row>summary::-webkit-details-marker{display:none}.purchase-run-row>summary b{text-transform:capitalize;color:#fdba74}.purchase-run-row pre{margin:0;padding:12px;border-top:1px solid #3c4955;white-space:pre-wrap;overflow-wrap:anywhere;color:#aeb8c2;font-size:8px}.purchase-legacy>summary{cursor:pointer;font-weight:900}.purchase-legacy-body{padding-top:18px}.purchase-legacy-body>h3{margin-top:22px}
@media(max-width:1000px){.purchase-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-automation-grid{grid-template-columns:1fr}}
@media(max-width:700px){.purchase-v2-head{align-items:stretch;flex-direction:column}.purchase-v2-head button{width:100%}.purchase-stats{grid-template-columns:1fr 1fr}.purchase-ref-form{grid-template-columns:1fr}.purchase-ref-form .wide{grid-column:auto}.purchase-form-actions{grid-column:1}.purchase-run-row.head{display:none}.purchase-run-row>summary{grid-template-columns:1.5fr 1fr 1fr}.purchase-run-row>summary span:nth-of-type(n+3){display:none}.purchase-settings-form{grid-template-columns:1fr}.purchase-supplier-form{grid-template-columns:1fr}.purchase-supplier-form>*{grid-column:1!important}}
@media(max-width:460px){.purchase-stats{grid-template-columns:1fr}.purchase-suggestion-grid{grid-template-columns:1fr}}
