.user-grid.single { grid-template-columns: minmax(0, 680px); }
.dashboard-grid.operator,
.dashboard-grid.single { grid-template-columns: 1fr; }
.access-denied { max-width: 620px; margin: 8vh auto; padding: 50px; text-align: center; }
.access-denied > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: #fde5df; color: #ad4c34; font: 800 25px Manrope; }
.access-denied h1 { margin: 10px 0; font: 800 28px Manrope; }
.access-denied > p:not(.kicker) { margin-bottom: 28px; color: var(--muted); }
@media (max-width: 760px) { .user-grid.single { grid-template-columns: 1fr; } .access-denied { margin: 4vh auto; padding: 30px 20px; } }
.photo-section { position: relative; margin-top: 22px; }
.photo-section .card-head > span { margin-right: 104px; color: var(--muted); font-size: 10px; }
.photo-section > .camera-inputs-compact { margin: 0; }
.camera-inputs-compact .camera-button { position: absolute; z-index: 2; top: 18px; right: 24px; min-height: 36px; padding: 7px 12px; }
.camera-inputs-compact .photo-source-menu { position: absolute; z-index: 12; top: 60px; right: 24px; width: min(360px, calc(100% - 48px)); }
.camera-inputs-compact .photo-preview:not(:empty) { margin-bottom: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photo-grid article { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); }
.photo-grid img { display: block; width: 100%; height: 150px; object-fit: cover; }
.photo-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; }
.photo-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.photo-grid form { flex: none; }
.photo-grid button { border: 0; background: none; color: #ad4c34; font: 700 9px inherit; cursor: pointer; }
.photo-grid article > .photo-actions { align-items: end; }
.photo-grid .photo-rename-form { display: grid; min-width: 0; flex: 1; }
.photo-rename-form input { min-width: 0; width: 100%; padding: 4px 2px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.photo-rename-form input:hover { background: #ffffff70; }
.photo-rename-form input:focus { border-color: #c9a66b; background: white; color: var(--ink); box-shadow: 0 0 0 2px #c9a66b20; }
.photo-rename-form input:disabled { opacity: .7; }
.photo-rename-form small { min-height: 9px; color: var(--green); font-size: 7px; }
.photo-rename-form small.error { color: #ad4c34; }
html[data-theme="dark"] .photo-rename-form input:hover { background: #ffffff0a; }
html[data-theme="dark"] .photo-rename-form input:focus { background: #202a27; }
input[type="file"] { padding: 9px; background: #f8faf9; }
@media (max-width: 480px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .photo-grid img { height: 120px; } }
@media (max-width: 480px) { .photo-section .card-head > span { display: none; } .camera-inputs-compact .camera-button { top: 14px; right: 18px; } .camera-inputs-compact .photo-source-menu { top: 55px; right: 18px; width: calc(100% - 36px); } }
.view-tabs { display: flex; gap: 6px; margin: -16px 0 20px; }
.view-tabs a { padding: 9px 14px; border-radius: 20px; color: var(--muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.view-tabs a.active { background: var(--ink); color: white; }
.head-actions { display: flex; gap: 9px; }
.permission-note,.hint { padding: 11px; border-radius: 8px; background: #fff4db; color: #8a6419; font-size: 10px; }
.converted-link { display: inline-block; margin-top: 18px; }
.order-type { display: inline-block; padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.order-type.serviço { background: #dff2e8; color: #287657; }
.order-type.produto { background: #fff0e3; color: #bd5b2b; }
.order-type.venda { background: #e8ddfb; color: #7047a5; }
.order-type.orçamento { background: #e3eef9; color: #356d9c; }
.order-type.atendimento { background: #e3eef9; color: #356d9c; }
html[data-theme="dark"] .order-type.serviço { background: #254236; color: #75c49d; }
html[data-theme="dark"] .order-type.produto { background: #4a3024; color: #f1a06f; }
html[data-theme="dark"] .order-type.venda { background: #392d4b; color: #c7a5ef; }
html[data-theme="dark"] .order-type.orçamento { background: #263b51; color: #83b4df; }
html[data-theme="dark"] .order-type.atendimento { background: #263b51; color: #83b4df; }
.status.em-espera { background: #e4edf8; color: #38658e; }.status.aguardando-aprovação { background: #fff0d6; color: #96620f; }.status.aprovado { background: #dff3ea; color: #277255; }
@media (max-width: 760px) { .head-actions { margin-top: 18px; flex-wrap: wrap; } }
.quick-actions { display: grid; grid-template-columns: 1.15fr 1.05fr 1.15fr .65fr .65fr; gap: 13px; margin-bottom: 22px; }.quick.budgets>span { background: #e6edf8; color: #406b91; }
.quick { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); text-decoration: none; transition: transform .18s,box-shadow .18s; }
.quick:hover { transform: translateY(-2px); box-shadow: 0 10px 25px #14231e12; }.quick>span { flex: none; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 11px; background: #dff3ea; color: var(--green); font-size: 20px; }.quick.sale>span { background: #fff0e9; color: var(--orange); }
.quick div { min-width: 0; }.quick small,.quick strong,.quick p { display: block; }.quick small { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .1em; }.quick strong { margin-top: 4px; font: 800 14px Manrope; }.quick p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.quick>b { margin-left: auto; color: var(--green); }.quick.compact { padding: 15px; }.quick.compact>span { width: 32px; height: 32px; font-size: 15px; }.quick.compact strong { font-size: 11px; }
label { transition: color .18s; }.smart-active { color: var(--green); }.smart-active input,.smart-active select,.smart-active textarea { border-color: var(--green); box-shadow: 0 0 0 3px #246b5218; }
@media (max-width: 1200px) { .quick-actions { grid-template-columns: 1fr 1fr 1fr; }.quick.compact { padding: 17px 20px; } }
@media (max-width: 600px) { .dashboard-head { margin-bottom: 20px; }.quick-actions { grid-template-columns: 1fr 1fr; gap: 9px; }.quick { padding: 16px 14px; }.quick.primary,.quick.budgets,.quick.sale { grid-column: 1/-1; }.quick strong { font-size: 15px; }.quick p { font-size: 10px; }.quick.compact { padding: 13px 11px; }.quick.compact>span { display: none; } }
.form-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }.form-progress>span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; font-weight: 800; }.form-progress b,.form-progress small { display: block; }.form-progress small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.optional-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }.optional-actions button { border: 1px dashed #9db2a9; border-radius: 20px; padding: 8px 12px; background: #f6faf8; color: var(--green); font: 700 9px inherit; cursor: pointer; }.optional-actions button:hover { border-style: solid; background: #eaf3ee; }
.optional-panel { margin-top: 15px; padding: 15px; border-radius: 10px; background: #f6f8f7; animation: reveal-panel .2s ease; }.optional-panel[hidden] { display: none; }.submit-main { margin-top: 22px; width: 100%; padding: 15px; }@keyframes reveal-panel { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.optional-customer { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; }
.optional-customer summary { padding: 15px 17px; cursor: pointer; color: var(--brown); font-weight: 800; list-style: none; }
.optional-customer summary::-webkit-details-marker { display: none; }
.optional-customer summary small { margin-left: 7px; color: var(--muted); font-weight: 600; }
.optional-customer-fields { padding: 0 17px 17px; }
.public-customer-dialog { width: min(560px,calc(100vw - 28px)); border: 0; border-radius: 20px; padding: 24px; color: var(--ink); background: var(--card); box-shadow: 0 24px 70px #0c191660; }
.public-customer-dialog::backdrop { background: #101b18a8; backdrop-filter: blur(3px); }
.public-customer-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.public-customer-dialog-head span { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.public-customer-dialog-head h2 { margin: 4px 0; }
.public-customer-dialog-head button { border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 24px; background: var(--soft); cursor: pointer; }
.public-customer-dialog > p { color: var(--muted); line-height: 1.5; }
.public-customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 18px 0; }
.public-customer-fields label { font-size: 12px; font-weight: 700; }
.public-customer-fields label.full { grid-column: 1/-1; }
.public-customer-fields input,.public-customer-fields textarea { width: 100%; margin-top: 6px; }
@media (max-width:600px) { .public-customer-fields { grid-template-columns: 1fr; }.public-customer-fields label.full { grid-column:auto; } }

/* Identificação pública: modal sólido e alinhado à identidade El Bazar. */
.public-customer-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid #d8c9b6;
  border-radius: 18px;
  background: #fffdf9;
  color: #172421;
  opacity: 1;
  box-shadow: 0 28px 80px #07130f70, 0 0 0 1px #ffffff80 inset;
}
.public-customer-dialog::backdrop {
  background: #0b1713c7;
  backdrop-filter: blur(5px) saturate(.75);
}
.public-customer-dialog-head {
  align-items: center;
  padding: 22px 24px;
  border-bottom: 4px solid #c76532;
  background: linear-gradient(135deg,#172421,#20362f);
  color: #fff;
}
.public-customer-dialog-head span { color: #e7ad74; font-size: 10px; }
.public-customer-dialog-head h2 { margin: 3px 0 0; color: #fff; font: 800 25px Manrope; }
.public-customer-dialog-head button {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff24;
  background: #ffffff12;
  color: #fff;
  line-height: 1;
}
.public-customer-dialog-head button:hover,
.public-customer-dialog-head button:focus-visible { background: #ffffff22; outline: 2px solid #e7ad74; outline-offset: 2px; }
.public-customer-dialog > p { margin: 20px 24px 0; color: #746f67; font-size: 13px; }
.public-customer-dialog .public-customer-fields { gap: 16px; margin: 20px 24px; }
.public-customer-dialog .public-customer-fields label {
  color: #554b40;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.public-customer-dialog .public-customer-fields label small { color: #8b8175; font-weight: 600; }
.public-customer-dialog .public-customer-fields input,
.public-customer-dialog .public-customer-fields textarea {
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #d8cdbf;
  border-radius: 10px;
  background: #fff;
  color: #172421;
  font-size: 14px;
  box-shadow: 0 1px 0 #fff inset;
}
.public-customer-dialog .public-customer-fields textarea { min-height: 86px; }
.public-customer-dialog .public-customer-fields input:focus,
.public-customer-dialog .public-customer-fields textarea:focus {
  border-color: #9a6a32;
  outline: 0;
  box-shadow: 0 0 0 3px #9a6a321b;
}
.public-customer-dialog > .btn.primary {
  width: calc(100% - 48px);
  min-height: 50px;
  margin: 0 24px 24px;
  border-radius: 10px;
  background: #8a5d28;
  color: #fff;
  box-shadow: 0 8px 20px #8a5d2825;
}
.public-customer-dialog > .btn.primary:hover { background: #70491f; }
@media (max-width:600px) {
  .public-customer-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 15px; }
  .public-customer-dialog-head { padding: 18px; }
  .public-customer-dialog-head h2 { font-size: 21px; }
  .public-customer-dialog > p { margin: 16px 18px 0; }
  .public-customer-dialog .public-customer-fields { grid-template-columns: 1fr; gap: 12px; margin: 16px 18px; }
  .public-customer-dialog .public-customer-fields label.full { grid-column: auto; }
  .public-customer-dialog > .btn.primary { width: calc(100% - 36px); margin: 0 18px 18px; }
}
@media (max-width: 480px) { .optional-actions { display: grid; grid-template-columns: 1fr 1fr; }.optional-actions button { text-align: left; border-radius: 9px; }.simplified-form { padding: 18px; } }
.camera-inputs { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 14px 0; }.camera-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; border: 1px solid #8eb4a4; border-radius: 9px; background: #eaf5f0; color: var(--green); text-align: center; cursor: pointer; }.camera-button span { font-size: 10px; font-weight: 800; }.camera-button .camera-icon { font-size: 17px; }.camera-inputs>small { color: var(--muted); font-size: 9px; }.camera-button:focus,.camera-button:hover { background: #dceee6; border-color: var(--green); }.photo-source-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 10px 25px #14231e14; }.photo-source-menu[hidden] { display: none; }.photo-source-menu button { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 13px; border: 0; border-radius: 8px; background: #f4f7f5; color: var(--ink); text-align: left; cursor: pointer; }.photo-source-menu button>span { grid-row: 1/3; align-self: center; font-size: 20px; }.photo-source-menu b,.photo-source-menu small { display: block; }.photo-source-menu b { font-size: 10px; }.photo-source-menu small { margin-top: 2px; color: var(--muted); font-size: 8px; }.photo-source-menu button:hover { background: #e7f1ec; }.photo-preview { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; }.photo-preview:empty { display: none; }.photo-preview figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }.photo-preview img { display: block; width: 100%; height: 110px; object-fit: cover; }.photo-preview figcaption { overflow: hidden; padding: 6px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.remove-photo { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #14231ecc; color: white; font-size: 17px; cursor: pointer; }.clear-photos { grid-column: 1/-1; justify-self: start; border: 0; background: none; color: #ad4c34; font: 700 9px inherit; cursor: pointer; }
@media (max-width: 480px) { .photo-source-menu { grid-template-columns: 1fr; }.photo-source-menu button { min-height: 58px; } }
.cpf-feedback { display: block; min-height: 14px; margin-top: 5px; color: var(--muted); font-size: 9px; }.cpf-feedback.valid { color: var(--green); }.cpf-feedback.found { padding: 7px 9px; border-radius: 7px; background: #e5f3ed; color: var(--green); font-weight: 700; }.cpf-feedback.invalid { color: #b34d35; }
.currency-input { font-weight: 700; font-variant-numeric: tabular-nums; }.currency-input:focus { color: var(--green); }
.calculated-total { border: 2px solid var(--green); background: #edf6f2; color: var(--green); cursor: default; }
.customer-preview-link { display: inline-block; margin: 18px 0 0 8px; }.customer-budget-page { padding: 30px 16px; background: #e8ebe8; }.customer-budget { max-width: 760px; margin: auto; overflow: hidden; border-radius: 16px; background: white; box-shadow: 0 15px 45px #14231e18; }.customer-budget>header { display: flex; align-items: center; justify-content: space-between; padding: 25px 30px; background: var(--ink); color: white; }.customer-budget>header>span { color: #9eb0a8; font-size: 9px; font-weight: 800; letter-spacing: .12em; }.customer-budget-brand { display: flex; align-items: center; gap: 10px; }.customer-budget-brand>b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--orange); }.customer-budget-brand span,.customer-budget-brand small { display: block; }.customer-budget-brand span { font: 800 15px Manrope; }.customer-budget-brand small { color: #9eb0a8; font: 500 8px 'DM Sans'; text-transform: uppercase; }.customer-budget>section { padding: 38px 42px; }.customer-budget>section>p:first-child { margin: 0; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .12em; }.customer-budget h1 { margin: 6px 0 28px; font: 800 28px Manrope; }.customer-budget dl { margin: 0; }.customer-budget dl>div { padding: 13px 0; border-bottom: 1px solid var(--line); }.customer-budget dt { color: var(--muted); font-size: 9px; }.customer-budget dd { margin-top: 5px; white-space: pre-line; }.customer-total { margin-top: 30px; padding: 24px; border-radius: 13px; background: #e8f4ef; text-align: center; }.customer-total span,.customer-total strong,.customer-total small { display: block; }.customer-total span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; }.customer-total strong { margin: 7px 0 2px; color: var(--green); font: 800 36px Manrope; }.customer-total small,.customer-budget-note { color: var(--muted); font-size: 9px; }.customer-budget-note { margin: 20px 0 0; text-align: center; }.customer-budget>footer { padding: 16px 30px; background: #f5f6f4; color: var(--muted); font-size: 8px; text-align: center; }.customer-budget-actions { display: flex; justify-content: center; gap: 9px; margin: 20px auto; }
@media (max-width: 600px) { .customer-budget-page { padding: 0; }.customer-budget { border-radius: 0; box-shadow: none; }.customer-budget>header { padding: 20px; }.customer-budget>section { padding: 28px 20px; }.customer-budget-actions { padding: 0 14px; }.customer-budget-actions .btn { flex: 1; }.customer-preview-link { margin-left: 0; } }
@media print { .customer-budget-page { padding: 0; background: white; }.customer-budget { max-width: none; box-shadow: none; }.customer-budget-actions { display: none; } }
.budget-options-admin { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }.budget-options-admin>article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.budget-options-admin article strong,.budget-options-admin article small { display: block; }.budget-options-admin article small { margin-top: 3px; color: var(--muted); font-size: 8px; }.budget-options-admin article>form button { border: 0; background: none; color: #ad4c34; font-size: 18px; cursor: pointer; }.option-form { display: grid; grid-template-columns: 1.4fr repeat(3,.75fr); gap: 9px; margin-top: 18px; }.option-form .btn { grid-column: 1/-1; justify-self: start; }.supplier-assistant { margin-top: 18px; padding: 14px; border: 1px dashed #9db2a9; border-radius: 10px; background: #f6faf8; }.supplier-assistant summary { color: var(--green); font-weight: 800; cursor: pointer; }.supplier-assistant form { margin-top: 13px; }.supplier-assistant form>small { display: block; margin: 8px 0; color: var(--muted); font-size: 9px; }.customer-options { margin-top: 30px; }.customer-options>span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; }.customer-options article { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 19px; border: 1px solid #cfe1d9; border-radius: 11px; background: #f1f8f5; }.customer-options article b,.customer-options article small { display: block; }.customer-options article small { margin-top: 3px; color: var(--muted); font-size: 8px; }.customer-options article>strong { flex: none; color: var(--green); font: 800 22px Manrope; }
.budget-options-admin>article { transition: opacity .22s,transform .22s,max-height .25s,padding .25s; max-height: 90px; }.budget-options-admin>article.removing { max-height: 0; padding-block: 0; opacity: 0; transform: translateX(10px); overflow: hidden; }
@media (max-width: 760px) { .option-form { grid-template-columns: 1fr 1fr; }.option-form label:first-of-type { grid-column: 1/-1; }.customer-options article { align-items: flex-start; flex-direction: column; gap: 10px; } }
.product-scan-layout { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 20px; align-items: start; }.product-camera-card,.product-review-card { min-width: 0; }.product-camera-card h2,.product-review-card h2 { margin: 7px 0 18px; }.analyze-product { width: 100%; }.analysis-status { min-height: 17px; margin: 10px 0 0; color: var(--muted); font-size: 9px; }.analysis-status.loading { color: #8a6419; }.analysis-status.success { color: var(--green); }.analysis-status.error { color: #ad4c34; }.observed-text { margin: 15px 0; padding: 10px; border-radius: 8px; background: #f3f5f4; color: var(--muted); font-size: 9px; }.product-review-card>.btn { margin-top: 18px; }
@media (max-width: 760px) { .product-scan-layout { grid-template-columns: 1fr; }.product-camera-card { order: 0; }.product-review-card { order: 1; } }
@media (min-width: 761px) { .camera-button { min-height: 46px; } }
.install-app[hidden] { display: none; }
.logo img {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid #bc874e;
  border-radius: 10px;
  object-fit: cover;
}
.logo-mark {
  position: relative;
  display: block;
  flex: none;
  width: clamp(62px,5vw,78px);
  height: clamp(62px,5vw,78px);
}
.logo-mark>img { width: 100%; height: 100%; }
.mobile-head .logo-mark { width: 48px; height: 48px; }
.logo,.art-brand,.customer-budget-brand { position: relative; }
.art-brand>span>small {
  display: block;
  margin-top: 3px;
  color: #d59a5d;
  font: 700 8px/1.2 'DM Sans',sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  html[data-development="true"] .mobile-head .logo small { display: block; }
}
/* Linha do tempo dos atendimentos e orçamentos. */
.status-timeline-fieldset {
  border: 0;
  margin: 24px 0 8px;
  padding: 22px 0 0;
  min-width: 0;
}

.status-timeline-fieldset legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0;
  font: 800 var(--text-md) Manrope, sans-serif;
  color: var(--ink);
}

.status-timeline {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin: 16px 0 10px;
}

.status-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
}

.status-timeline.is-readonly .status-step {
  cursor: default;
  user-select: none;
}

.status-timeline.is-locked .status-step {
  pointer-events: none;
}

.status-timeline.is-unlocked .status-step {
  cursor: pointer;
}

.status-timeline.is-readonly .status-step:hover .status-marker {
  transform: none;
}

button.status-step {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.status-timeline.is-unlocked .status-step:hover .status-marker,
.status-timeline.is-unlocked .status-step:focus-visible .status-marker {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .15);
}

.stage-lock-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: min(650px, 100%);
  min-width: 90px;
  max-width: 650px;
  height: 40px;
  flex: 0 1 650px;
  touch-action: none;
  user-select: none;
}

.stage-lock-slider::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 999px;
  background: #dfd3c2;
  transition: background .18s ease;
}

.stage-lock {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  line-height: 1;
  transform: translateX(0);
  transition: transform .2s ease, box-shadow .18s ease;
}

.stage-lock:hover,
.stage-lock:focus-visible {
  box-shadow: 0 0 0 3px rgba(189, 123, 36, .13);
}

.stage-lock-slider.is-dragging .stage-lock {
  cursor: grabbing;
  transition: box-shadow .18s ease;
}

.status-timeline-fieldset.is-stage-unlocked .stage-lock {
  background: transparent;
}

.status-timeline-fieldset.is-stage-unlocked .stage-lock-slider::before {
  background: #79bca3;
}

.stage-lock [data-stage-lock-icon] {
  display: block;
  width: 40px;
  height: 40px;
}

.stage-change-form {
  display: none;
}

.status-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 17px;
  left: calc(50% + 23px);
  right: calc(-50% + 23px);
  height: 3px;
  border-radius: 4px;
  background: #e7ddd0;
}

.status-step:has(input:checked) ~ .status-step::after,
.status-step:has(input:checked) ~ .status-step .status-marker {
  background: #eee5d9;
}

.status-step input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #eee5d9;
  box-shadow: 0 0 0 1px #e3d8ca;
  color: #b99f7d;
  font-weight: 800;
  transition: .18s ease;
}

.status-step b {
  display: block;
  padding: 0 5px;
  color: inherit;
  font-size: clamp(9px, 1vw, 11px);
  line-height: 1.25;
}

.status-step:hover .status-marker,
.status-step:has(input:focus-visible) .status-marker {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .15);
}

.status-step:has(input:checked) .status-marker,
.status-step.is-current .status-marker {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 4px #ffe1d4;
}

.status-step:has(input:checked),
.status-step.is-current { color: #b95027; }

.status-step.is-complete .status-marker {
  background: #1fb886;
  color: #fff;
  box-shadow: none;
}

.status-step.is-complete { color: #16825f; }
.status-step.is-complete::after { background: #1fb886; }

.status-step:has(~ .status-step input:checked) .status-marker {
  background: #1fb886;
  color: #fff;
  box-shadow: none;
}

.status-step:has(~ .status-step input:checked) {
  color: #16825f;
}

.status-step:has(~ .status-step input:checked)::after {
  background: #1fb886;
}

.status-terminal-action {
  display: block;
  margin: 13px 0 0 auto;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #c45542;
  font: 600 var(--text-xs) inherit;
  cursor: pointer;
}

.terminal-status {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #fde9e4;
  color: #a94735;
  font-weight: 800;
}

.public-status-timeline {
  margin: 30px 0 20px;
  padding: 20px 18px 16px;
  border: 1px solid #e6ddd1;
  border-radius: 18px;
  background: #fffaf4;
}

.public-status-timeline .status-step { cursor: default; }
.tracking-status-compact { padding: 18px 20px; }
.tracking-status-compact strong { font-size: clamp(19px, 2.5vw, 26px); }
.tracking-terminal { border-left-color: #c45542; background: #fde9e4; }

html[data-theme="dark"] .status-marker,
html[data-theme="dark"] .status-step:not(:last-child)::after { background: #3c3933; border-color: #202c28; }
html[data-theme="dark"] .public-status-timeline { background: #17251f; border-color: #34463f; }
html[data-theme="dark"] .terminal-status,
html[data-theme="dark"] .tracking-terminal { background: #4a2b27; color: #ffc0b3; }

@media (max-width: 620px) {
  .status-timeline {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin-left: 3px;
  }

  .status-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    text-align: left;
  }

  .status-step:not(:last-child)::after {
    top: 38px;
    bottom: -16px;
    left: 17px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .status-marker { margin: 0; }
  .status-step b { padding: 0; font-size: 11px; }
  .public-status-timeline { padding: 15px 17px; }
}

.art-brand img {
  width: 78px;
  height: 78px;
  border: 1px solid #bc874e;
  border-radius: 13px;
  object-fit: cover;
}

.customer-budget-brand img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
}

.cpf-first input {
  min-height: 50px;
  border-color: #b78a50;
  font-size: 16px;
  font-weight: 700;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  padding: 11px 13px;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  background: #ffffff0b;
  color: #b8cbc3;
  font: 700 10px inherit;
  cursor: pointer;
}

.settings-wrap {
  position: relative;
  margin-left: auto;
}

.settings-trigger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #ffffff08;
  color: #aabbb4;
  font-size: 16px;
  cursor: pointer;
}

.settings-trigger:hover,
.settings-trigger[aria-expanded="true"] {
  border-color: #d2a35f;
  color: #e4b96e;
}

.settings-menu {
  position: absolute;
  z-index: 60;
  right: 0;
  bottom: calc(100% + 12px);
  width: 215px;
  padding: 10px;
  border: 1px solid #48534f;
  border-radius: 12px;
  background: #101a17;
  box-shadow: 0 16px 40px #0008;
}

.settings-menu[hidden] {
  display: none;
}

.settings-menu > strong {
  display: block;
  padding: 5px 7px 9px;
  color: #d8e1dd;
  font-size: 10px;
}

.settings-menu form {
  margin: 0;
}

.settings-action {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c0cec8;
  font: 700 10px inherit;
  text-align: left;
  cursor: pointer;
}

.settings-action:hover {
  background: #ffffff0b;
  color: white;
}

.settings-action span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: #ffffff0c;
}

.logout-action,
.logout-action:hover {
  color: #ff786b;
}

.logout-action:hover {
  background: #d94b3b18;
}

.theme-toggle:hover {
  border-color: #d2a35f;
  color: white;
}

.theme-toggle span {
  color: #e4b96e;
  font-size: 17px;
}

html[data-theme="light"] {
  --ink: #172421;
  --green: #805727;
  --orange: #c76532;
  --cream: #f4efe6;
  --line: #ded6c8;
  --muted: #746f67;
  --card: #fff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2e8d8;
  --green: #d1a45f;
  --orange: #d4773d;
  --cream: #111a18;
  --line: #38433f;
  --muted: #aab3af;
  --white: #202a27;
  --card: #202a27;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .page,
html[data-theme="dark"] .login-panel {
  background: #111a18;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .mobile-head,
html[data-theme="dark"] .login-art {
  background: #091210;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .metrics article,
html[data-theme="dark"] .quick,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .photo-source-menu,
html[data-theme="dark"] .photo-preview figure,
html[data-theme="dark"] .customer-budget {
  background: #202a27;
  color: #f2e8d8;
}

html[data-theme="dark"] .optional-panel,
html[data-theme="dark"] .supplier-assistant,
html[data-theme="dark"] .observed-text,
html[data-theme="dark"] .photo-source-menu button,
html[data-theme="dark"] input[type="file"] {
  background: #18221f;
  color: #f2e8d8;
}

html[data-theme="dark"] .camera-button,
html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] .mini-split,
html[data-theme="dark"] .customer-total,
html[data-theme="dark"] .customer-options article {
  background: #28352f;
}

html[data-theme="dark"] .cpf-feedback.found {
  background: #293a33;
}

html[data-theme="dark"] .customer-budget > footer {
  background: #18211f;
}

@media print {
  html[data-theme="dark"] {
    color-scheme: light;
  }
}

/* Navegação principal: ícones consistentes, alertas e separação das configurações. */
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar nav a svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #77b99d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar nav a span {
  min-width: 0;
}

.sidebar nav .nav-count {
  min-width: 21px;
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #ffffff18;
  color: #dce9e4;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}

.sidebar nav .nav-count-alert {
  background: #fff0d6;
  color: #8a5910;
}

.sidebar nav .nav-count-danger {
  background: #fde5df;
  color: #a33f29;
}

.sidebar nav .nav-settings {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #ffffff15;
  border-radius: 0 0 10px 10px;
}

.sidebar nav .nav-settings:hover,
.sidebar nav .nav-settings.active {
  border-radius: 10px;
}

.cost-entry,
.expense-summary {
  display: grid;
   grid-template-columns: minmax(0, 1fr) 105px auto;
   gap: 8px;
   align-items: end;
 }

 .cost-entry {
   padding: 10px;
   border: 1px solid var(--line);
   border-radius: 10px;
   background: #f7f4ed;
   grid-template-columns: minmax(0, 1fr) minmax(0, 130px) minmax(0, 135px) auto;
   align-items: center;
 }

 .cost-entry .part-name {
   grid-column: 1 / -1;
 }

 .cost-entry label,
 .expense-summary label,
 .expense-description summary {
   min-width: 0;
   overflow-wrap: anywhere;
   word-break: break-word;
 }

 .cost-entry input,
 .expense-summary input,
 .expense-description textarea,
 textarea {
   min-width: 0;
  margin-top: 6px;
}

.extra-expenses {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.expense-entry {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f4ed;
}

.expense-summary {
  grid-template-columns: minmax(130px,1fr) auto auto;
  align-items: center;
}

.expense-summary label input {
  margin-top: 6px;
}

.expense-payer {
  align-self: end;
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: #e7eee9;
  color: var(--green);
  font: 600 11px inherit;
  cursor: pointer;
  white-space: nowrap;
}

.expense-payer b {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.expense-description {
  margin-top: 9px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.expense-description summary {
  width: max-content;
  color: #936225;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.expense-description summary::-webkit-details-marker {
  display: none;
}

.expense-description[open] summary {
  margin-bottom: 9px;
}

.expense-description textarea {
  width: 100%;
  min-height: 76px;
}

.add-expense,
.remove-expense {
  width: 40px;
  height: 40px;
  border: 1px solid #d4b77f;
  border-radius: 50%;
  background: #fff8e9;
  color: #936225;
  font-size: 22px;
  cursor: pointer;
}

.remove-expense {
  border-color: #efc2b8;
  background: #fff1ed;
  color: #b94f38;
}

html[data-theme="dark"] .expense-entry {
  background: #202a26;
}

html[data-theme="dark"] .cost-entry {
  background: #202a26;
}

html[data-theme="dark"] .expense-payer {
  background: #2c3b35;
}

@media (max-width: 480px) {
  .cost-entry,
  .expense-summary {
    grid-template-columns: minmax(0,1fr) 100px auto;
  }

  .cost-entry label {
    grid-column: 1 / -1;
  }

  .expense-summary label {
    grid-column: 1 / -1;
  }
}

.price-thermometer {
  display: grid;
  grid-template-columns: minmax(120px,.7fr) minmax(0,1.3fr);
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f4ed;
}

.thermometer-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(90deg,
    #c74636 0 14.28%,
    #e4772e 14.28% 28.56%,
    #e5bb3f 28.56% 42.84%,
    #58a06d 42.84% 57.12%,
    #e5bb3f 57.12% 71.4%,
    #e4772e 71.4% 85.68%,
    #c74636 85.68% 100%);
}

.thermometer-track span {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 4px;
  border-radius: 3px;
  background: #172421;
  box-shadow: 0 0 0 2px #fff9;
  transform: translateX(-50%);
  transition: left .25s;
}

.price-thermometer strong,
.price-thermometer small {
  display: block;
}

.price-thermometer strong {
  font-size: 11px;
}

.price-thermometer small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.price-thermometer[data-level="cheap"] strong { color: #b56a25; }
.price-thermometer[data-level="balanced"] strong { color: #377653; }
.price-thermometer[data-level="expensive"] strong { color: #b24f31; }

.help-toggle {
  position: relative;
  margin: 0;
}

.section-title-help {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-card .section-title-help h2,
.budget-options-admin .section-title-help h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.help-toggle summary {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #c9a66b;
  border-radius: 50%;
  background: #fff5df;
  color: #8b6129;
  font: 800 12px Manrope;
  cursor: pointer;
  list-style: none;
}

.help-toggle summary::-webkit-details-marker {
  display: none;
}

.help-toggle[open] summary {
  background: #8b6129;
  color: white;
}

.help-toggle p {
  position: absolute;
  z-index: 15;
  top: 31px;
  left: -8px;
  width: min(390px,calc(100vw - 70px));
  margin: 8px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff4db;
  color: #76551d;
  font-size: 9px;
  box-shadow: 0 10px 28px #17242122;
}

html[data-theme="dark"] .help-toggle summary,
html[data-theme="dark"] .help-toggle p {
  border-color: #745d38;
  background: #2b281f;
  color: #e5bd76;
}

@media (max-width: 480px) {
  .help-toggle p {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 18px;
    left: 16px;
    width: auto;
    padding: 15px;
    font-size: 11px;
    box-shadow: 0 12px 40px #0007;
  }
}

.budget-options-admin > article {
  grid-template-columns: minmax(0,1fr) auto minmax(135px,auto) auto;
}

.budget-options-admin > article.selected-option {
  grid-template-columns: minmax(0,1fr) auto;
  padding: 15px;
  border: 1px solid #87b39b;
  border-radius: 10px;
  background: #eff7f2;
}

.chosen-badge {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 20px;
  background: #d8eee1;
  color: #2f7252;
  font-size: 8px;
  font-weight: 800;
}

.budget-options-admin .select-option-form button {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font: 700 9px inherit;
  cursor: pointer;
}

.public-options-panel {
  position: fixed;
  z-index: 10;
  top: 100px;
  right: 24px;
  width: min(330px,calc(100vw - 40px));
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #d8c29a;
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 16px 45px #1724211c;
}

.public-options-panel > span {
  color: var(--orange);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.public-options-panel h2 {
  margin: 6px 0;
  font: 800 18px Manrope;
}

.public-options-panel > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 9px;
}

.public-options-panel article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #e7dac1;
}

.public-options-panel article b,
.public-options-panel article small { display: block; }
.public-options-panel article small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.public-options-panel article strong { flex: none; color: var(--green); font: 800 16px Manrope; }
.public-options-panel.has-selection { border-color: #8db59f; background: #f2f8f4; }

html[data-theme="dark"] .budget-options-admin > article.selected-option,
html[data-theme="dark"] .public-options-panel { background: #202a27; }

@media (max-width: 1450px) {
  .public-options-panel {
    position: static;
    width: auto;
    max-height: none;
    margin-bottom: 24px;
    box-shadow: none;
  }
}

.service-text-fields {
  margin: 18px 0 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.btn.save-action {
  background: #247a52;
  color: white;
  box-shadow: 0 8px 20px #247a5235;
}

.btn.save-action:hover {
  background: #1d6845;
}

.btn.save-action {
  display: block;
  width: min(320px,100%);
  margin: 24px 0 0 auto;
  padding: 14px 20px;
}

.public-tracking-page .customer-budget-actions {
  position: sticky;
  z-index: 18;
  bottom: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 7px;
  border-radius: 12px;
  background: #ffffffde;
  box-shadow: 0 10px 30px #17242122;
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .public-tracking-page .customer-budget-actions {
  background: #17211fdd;
}

@media (max-width: 600px) {
  .btn.save-action {
    position: sticky;
    z-index: 12;
    bottom: 10px;
    width: 100%;
  }
}

/* Seleção direta e edição automática, sem botões redundantes. */
.budget-options-admin > article {
  grid-template-columns: minmax(0,1fr) auto 82px;
  gap: 12px;
  min-height: 66px;
  margin-top: 7px;
  padding: 9px 40px 9px 12px;
}
.budget-options-admin .option-main strong { font-size: clamp(13px,.9vw,15px); }
.budget-options-admin .option-main small { margin-top: 2px; font-size: 10px; }
.budget-options-admin .option-price { justify-self: end; font-size: clamp(16px,1.1vw,20px); }
.budget-options-admin .select-option-form { display: none; }
.budget-options-admin .option-multiplier-form { grid-column: auto; display: block; align-self: center; }
.budget-options-admin .option-multiplier-form label { display: block; }
.budget-options-admin .option-multiplier-form input { width: 82px; min-height: 36px; margin-top: 3px; }
.budget-options-admin .selectable-option { cursor: pointer; transition: border-color .16s,background .16s,box-shadow .16s; }
.budget-options-admin .selectable-option:hover { border-color: #7fb49b; background: #f5faf7; box-shadow: 0 4px 14px #246b5212; }
.budget-options-admin .selected-option,
.budget-options-admin .selectable-option.selecting { border-color: #4e9a76; background: #eaf6f0; box-shadow: inset 4px 0 #3b8b66; }
.budget-options-admin .delete-option-form { top: 7px; right: 7px; }

@media (max-width: 700px) {
  .budget-options-admin > article { grid-template-columns: minmax(0,1fr) auto; min-height: 0; }
  .budget-options-admin .option-main { grid-column: 1 / -1; }
  .budget-options-admin .option-multiplier-form { grid-column: auto; }
}
.finance-pending { margin: 16px 0 0; line-height: 1.45; }
.public-options-panel .customer-selectable { cursor: pointer; transition: border-color .16s,background .16s,box-shadow .16s,transform .16s; }
.public-options-panel .customer-selectable:hover { border-color: #79aa91; transform: translateY(-1px); }
.public-options-panel .customer-selectable.selected { border-color: #2f815d; background: #dff2e9; box-shadow: inset 4px 0 #2f815d; }
.customer-choice-submit { margin-top: 14px; }
.customer-choice-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.estimate-addons-admin{margin-top:24px;padding-top:20px;border-top:1px solid #dfd2c1}.estimate-addon-group{margin-top:14px;padding:16px;border:1px solid #dfd2c1;border-radius:14px;background:#fff}.estimate-addon-group>header,.estimate-addon-option{display:flex;align-items:center;justify-content:space-between;gap:12px}.estimate-addon-group h3{margin:0}.estimate-addon-options{display:grid;gap:8px;margin:12px 0}.estimate-addon-option{padding:10px 12px;border-radius:10px;background:#f7f2ea}.estimate-addon-option>div{display:grid}.estimate-addon-option small{color:#776f65}.addon-delete{width:30px;height:30px;border:1px solid #efb5a7;border-radius:50%;background:#fff3ef;color:#c84f35}.estimate-addon-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:10px}.estimate-addon-form label,.estimate-addon-new-group label{display:grid;gap:5px;font-size:.78rem;font-weight:700}.estimate-addon-form input,.estimate-addon-new-group input{min-height:42px;padding:9px;border:1px solid #d9cbb8;border-radius:9px}.estimate-addon-new-group{display:flex;align-items:end;gap:10px;margin-top:16px}.estimate-addon-new-group label{flex:1}.selected-addons-summary{margin:16px 0;padding:14px;border:1px solid #8db59f;border-radius:14px;background:#eff8f3}.selected-addons-summary h3{margin:0 0 10px}.selected-addons-summary article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #cce1d5}.selected-addons-summary article>div{display:grid}.selected-addons-summary small{color:#5d6c64}.selected-addons-summary label{display:grid;gap:4px;font-size:.72rem;font-weight:700}.selected-addons-summary select{min-height:38px;padding:6px 28px 6px 9px;border:1px solid #8db59f;border-radius:9px;background:#fff}.customer-addon-group{display:grid;gap:8px;margin:18px 0;padding:0;border:0}.customer-addon-group legend{width:100%;margin-bottom:8px;font-weight:800}.customer-addon-group legend small{float:right;color:#8b7060;font-weight:600}.customer-addon-option{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #ddd1c2;border-radius:12px;cursor:pointer}.customer-addon-option:has(input:checked){border-color:#287958;background:#eff8f3}.customer-addon-option span{display:flex;justify-content:space-between;gap:12px;width:100%}.customer-choice-total{display:flex;justify-content:space-between;align-items:center;margin:14px 0;padding:14px;border-radius:12px;background:#e9f5ef}.customer-choice-total strong{font-size:1.2rem;color:#176746}
@media(max-width:760px){.estimate-addon-form{grid-template-columns:1fr 1fr}.estimate-addon-form label:first-of-type,.estimate-addon-form button{grid-column:1/-1}.estimate-addon-new-group{display:grid}.selected-addons-summary article{align-items:flex-start}.customer-addon-option span{align-items:center}}
.estimate-addon-none-option{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;padding:14px 16px!important;border:1px dashed #b9afa2!important;border-radius:11px;background:#f7f3ed}.estimate-addon-none-option strong{font-size:14px}.estimate-addon-none-option small{margin:0!important;color:var(--muted);font-size:10px!important}
.public-options-panel .customer-addon-group{gap:0;margin:20px 0 0}.public-options-panel .customer-addon-group legend{padding:0 0 10px;border-bottom:0}.public-options-panel .customer-addon-option.customer-selectable{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:17px;border:0;border-top:1px solid #e7dac1;border-radius:0;background:transparent;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s}.public-options-panel .customer-addon-option.customer-selectable:hover{border-color:#79aa91;transform:translateY(-1px)}.public-options-panel .customer-addon-option.customer-selectable:has(input:checked){border-color:#2f815d;background:#dff2e9;box-shadow:inset 4px 0 #2f815d}.public-options-panel .customer-addon-option.customer-selectable>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.public-options-panel .customer-addon-option.customer-selectable>div{min-width:0}.public-options-panel .customer-addon-option.customer-selectable b,.public-options-panel .customer-addon-option.customer-selectable small{display:block}.public-options-panel .customer-addon-option.customer-selectable small{margin-top:3px;color:var(--muted);font-size:8px}.public-options-panel .customer-addon-option.customer-selectable>strong{flex:none;color:var(--green);font:800 16px Manrope}
.public-options-panel.customer-choice-active { border-color: #8db59f; }
.section-title-help .budget-add-group-button{margin-left:auto}.estimate-group-name-row{margin:14px 0}.estimate-group-name-row input,.estimate-group-rename input{min-width:0;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:#f5efe6;color:var(--ink);font:800 17px Manrope}.estimate-group-rename{display:flex;align-items:center;gap:8px;flex:1}.estimate-group-rename input{width:min(360px,100%)}.budget-assistant-dialog{width:min(680px,calc(100vw - 28px));padding:0;border:0;border-radius:20px;color:var(--ink);background:var(--card);box-shadow:0 24px 80px #07120e66}.budget-assistant-dialog::backdrop{background:#07120eb5;backdrop-filter:blur(3px)}.budget-assistant-dialog form{display:grid;gap:16px;padding:24px}.budget-assistant-dialog header{display:flex;align-items:flex-start;justify-content:space-between}.budget-assistant-dialog header span{color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.12em}.budget-assistant-dialog h2{margin:4px 0}.budget-assistant-dialog header button{width:40px;height:40px;border:0;border-radius:50%;background:var(--soft);font-size:25px;cursor:pointer}.budget-assistant-dialog label{display:grid;gap:7px;font-size:12px;font-weight:800}.budget-assistant-dialog input,.budget-assistant-dialog select,.budget-assistant-dialog textarea{width:100%;padding:12px;border:1px solid #d9cbb8;border-radius:10px;background:#fff;color:#172520;font:600 14px Manrope}.budget-assistant-dialog small{color:var(--muted);line-height:1.5}.budget-assistant-dialog [hidden]{display:none}
@media(max-width:760px){.section-title-help .budget-add-group-button{width:100%;margin-top:10px}.estimate-group-name-row form,.estimate-group-rename{align-items:stretch;flex-direction:column}.estimate-group-name-row button,.estimate-group-rename button{align-self:flex-start}.budget-assistant-dialog form{padding:18px}}
html[data-theme="dark"] .public-options-panel .customer-selectable.selected { background: #263a31; }
.public-choice-mode .public-options-panel {
  position: static;
  width: 100%;
  max-height: none;
  margin: 24px 0;
  overflow: visible;
  box-shadow: none;
}
.public-choice-mode .public-options-panel article { padding: 17px; }
.public-choice-mode .customer-choice-submit { min-height: 50px; }

/* O cartão selecionado mantém exatamente a geometria do cartão normal. */
.budget-options-admin > article.selected-option,
.budget-options-admin > article.selectable-option.selecting {
  grid-template-columns: minmax(0,1fr) auto 126px;
  min-height: 66px;
  padding: 8px 40px 8px 12px;
}
.budget-options-admin .chosen-badge { display: none; }
.budget-options-admin > article.selecting { opacity: .72; }

@media (max-width: 700px) {
  .budget-options-admin > article.selected-option,
  .budget-options-admin > article.selectable-option.selecting { grid-template-columns: minmax(0,1fr) auto; }
  .budget-options-admin > article.selected-option .option-main,
  .budget-options-admin > article.selectable-option.selecting .option-main { grid-column: 1 / -1; }
}

/* Acréscimo percentual em linha, com aparência de texto editável. */
.budget-options-admin > article {
  grid-template-columns: minmax(0,1fr) auto 126px;
  align-items: center;
  padding-block: 8px;
}
.budget-options-admin .option-main,
.budget-options-admin .option-price,
.budget-options-admin .option-multiplier-form { align-self: center; }
.budget-options-admin .option-multiplier-form { width: 126px; }
.budget-options-admin .option-multiplier-form label { margin: 0; color: var(--muted); line-height: 1.15; }
.markup-value { display: inline-flex; align-items: baseline; margin-top: 2px; color: var(--green); }
.budget-options-admin .option-multiplier-form .markup-value input {
  width: 44px;
  min-height: 0;
  margin: 0;
  padding: 1px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: none;
}
.markup-value b { font-size: 13px; }
.profit-thermometer {
  display: none;
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d8c29a;
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: 0 10px 28px #14231e20;
  pointer-events: auto;
}
.budget-options-admin > article.expandable-option.is-expanded { max-height: none; }
.budget-options-admin .expandable-option.is-expanded .option-multiplier-form { grid-area: auto; grid-column: 1 / -1; width: 100%; justify-self: stretch; }
.expandable-option.is-expanded .profit-thermometer { display: block; }
.profit-thermometer > div { position: relative; height: 12px; margin: 4px 0 9px; border-radius: 99px; background: linear-gradient(90deg,#cf4b3b 0 14%,#ed8a35 14% 28%,#e8c344 28% 40%,#5a9f71 40% 60%,#e8c344 60% 72%,#ed8a35 72% 86%,#cf4b3b 86%); cursor: ew-resize; touch-action: none; }
.profit-thermometer > div:focus-visible { outline: 3px solid color-mix(in srgb,var(--green) 30%,transparent); outline-offset: 4px; }
.profit-thermometer [data-profit-marker] { position: absolute; top: 50%; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: #14231e; box-shadow: 0 1px 5px #0006; transform: translate(-50%,-50%); pointer-events: none; }
.profit-thermometer strong,.profit-thermometer small { display: block; }
.profit-thermometer strong { font-size: 11px; }
.profit-thermometer small { margin-top: 2px; color: var(--muted); font-size: 9px; }
html[data-theme="dark"] .profit-thermometer { background: #252a25; }

@media (max-width: 700px) {
  .budget-options-admin > article { grid-template-columns: minmax(0,1fr) auto; }
  .budget-options-admin .option-multiplier-form { grid-column: 1 / -1; width: auto; }
}

.option-multiplier-form {
  display: flex;
  align-items: end;
  gap: 5px;
}

.option-multiplier-form label {
  font-size: 8px;
}

.option-multiplier-form input {
  width: 72px;
  padding: 7px;
}

.budget-options-admin .option-multiplier-form button {
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: #e7eee9;
  color: var(--green);
  font: 700 8px inherit;
  cursor: pointer;
}

@media (max-width: 600px) {
  .budget-options-admin > article {
    grid-template-columns: 1fr auto;
    max-height: 140px;
  }

  .option-multiplier-form {
    grid-column: 1/-1;
  }
}

@media (min-width: 761px) {
  .option-form {
    grid-template-columns: 1.4fr repeat(4,.75fr);
  }
}

html[data-theme="dark"] .price-thermometer {
  background: #18221f;
}

@media (max-width: 480px) {
  .price-thermometer {
    grid-template-columns: 1fr;
  }
}

.finance > .share-panel {
  display: block;
  margin-top: 12px;
}

.share-panel form,
.share-panel label {
  display: block;
  margin-top: 10px;
}

.share-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.more-menu {
  position: relative;
}

/* O menu aberto precisa ficar acima da barra fixa de etapas (z-index 55). */
.order-head-menu[open] {
  z-index: 70;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-head-menu > summary {
  border: 1px solid var(--line);
  background: #ece8de;
}

.more-menu summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary:hover,.more-menu[open] summary { background: #ede7db; color: var(--ink); }

.more-menu > div {
  position: absolute;
  z-index: 20;
  top: 34px;
  right: 0;
  width: 205px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 14px 35px #1724212b;
}

.more-menu form { margin: 0; }

.more-menu button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: 700 9px inherit;
  text-align: left;
  cursor: pointer;
}

.more-menu button:hover { background: #f3efe7; }
.more-menu button.danger { color: #d45144; }
.more-menu button.danger:hover { background: #fff0ed; }

html[data-theme="dark"] .more-menu > div { background: #202a27; }
html[data-theme="dark"] .order-head-menu > summary { border-color: #40504a; background: #27332f; }
html[data-theme="dark"] .more-menu summary:hover,
html[data-theme="dark"] .more-menu[open] summary,
html[data-theme="dark"] .more-menu button:hover { background: #ffffff0a; }

.share-panel select,
.share-url {
  width: 100%;
}

.share-url-field {
  position: relative;
  margin-top: 13px;
}

.share-url {
  margin: 0;
  padding-right: 44px;
  background: #fafbf9;
  font-size: 9px;
}

.share-url-field > button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: #e7f0eb;
  color: var(--green);
  font-size: 18px;
  cursor: pointer;
}

.share-url-field > button:hover { background: #d9e9e1; }
.share-url-field > button.copied { background: #d8eee2; color: #21774f; }

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.share-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  border-radius: 10px;
  font-weight: 800;
}

.share-action-primary {
  border: 1px solid #277a59;
  background: #277a59;
  color: white;
}

.share-action-primary:hover { background: #20694c; }

.share-action-open {
  border: 1px solid #c9d9d1;
  background: #edf4f0;
  color: var(--green);
}

.share-action-open:hover { background: #e1eee7; }

html[data-theme="dark"] .share-url { background: #202a27; }
html[data-theme="dark"] .share-url-field > button { background: #31443b; color: #9ed6bb; }
html[data-theme="dark"] .share-action-open { border-color: #40564c; background: #2b3b34; color: #b6dbc9; }

.pickup-editor {
  margin: 15px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbf9;
}

.pickup-editor > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.pickup-editor > summary::after { content: '+'; font-size: 17px; }
.pickup-editor[open] > summary::after { content: '−'; }
.pickup-editor > summary::-webkit-details-marker { display: none; }
.pickup-editor > summary > span { flex: none; }
.pickup-editor > summary > input {
  width: min(100%, 320px);
  min-width: 80px;
  margin: 0 auto 0 0;
  padding: 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
}
.pickup-editor > summary > input:focus { box-shadow: none; }
.pickup-editor > div { padding: 0 14px 13px; border-top: 1px solid var(--line); }
.pickup-editor > div label { margin-top: 12px; }
html[data-theme="dark"] .pickup-editor { background: #202a27; }

@media (max-width: 760px) {
  .page-head-actions {
    align-self: flex-start;
    margin-top: 14px;
  }
}

.revoke-link {
  width: 100%;
  border: 0;
  background: none;
  color: #d85d50;
  font: 700 9px inherit;
  cursor: pointer;
}

.tracking-status {
  margin: 0 0 24px;
  padding: 18px;
  border-left: 4px solid var(--orange);
  border-radius: 9px;
  background: #f4ead8;
}

.tracking-status small,
.tracking-status strong,
.tracking-status span {
  display: block;
}

.tracking-status small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .12em;
}

.tracking-status strong {
  margin: 5px 0;
  font: 800 20px Manrope;
}

.tracking-status span {
  color: var(--muted);
  font-size: 9px;
}

.pickup-box {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #d4b77f;
  border-radius: 11px;
  background: #fff8e9;
}

.pickup-box > span,
.public-photos > span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.pickup-box .btn {
  justify-self: start;
  margin-top: 5px;
}

.tracking-ready .tracking-status {
  border-left-color: #25865c;
  background: #e4f3eb;
}

.tracking-ready .tracking-status strong { color: #176b49; }

.pickup-box-prominent {
  gap: 7px;
  margin: -8px 0 18px;
  padding: 22px;
  border: 2px solid #25865c;
  background: #f0faf5;
  box-shadow: 0 12px 28px #25865c1c;
}

.pickup-box-prominent > span { color: #25865c; }
.pickup-box-prominent > strong { font: 800 clamp(19px, 2.2vw, 25px)/1.2 Manrope; }
.pickup-box-prominent > small { color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }

.pickup-box-prominent .pickup-map-action {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 9px;
  min-height: 56px;
  margin-top: 9px;
  border-radius: 11px;
  background: #25865c;
  color: white;
  font-size: var(--text-md);
  font-weight: 800;
  box-shadow: 0 10px 24px #25865c30;
}

.pickup-box-prominent .pickup-map-action:hover { background: #1d704c; transform: translateY(-1px); }

.tracking-ready .tracking-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tracking-ready .tracking-details > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
}

.tracking-ready .tracking-details dd { font-size: var(--text-sm); }
.tracking-ready .customer-total { margin-top: 16px; padding: 15px; }
.tracking-ready .customer-total strong { font-size: clamp(24px, 4vw, 32px); }

.public-order-summary {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #a8cdbb;
  border-radius: 13px;
  background: #f8fcfa;
}

.public-order-summary > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid #cce1d7;
  background: #eaf6f0;
}

.public-order-summary header span,
.public-order-summary article span {
  display: block;
  color: var(--orange);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.public-order-summary h2 { margin: 3px 0 0; font: 800 20px Manrope; }
.public-order-summary header > strong { color: var(--green); font-size: 10px; }
.public-order-summary > div { padding: 0 20px; }

.public-order-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.public-order-summary article:last-child { border-bottom: 0; }
.public-order-summary article div { min-width: 0; }
.public-order-summary article b { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.public-order-summary article small { display: block; margin-top: 3px; color: var(--muted); }
.public-order-summary article > strong { flex: none; color: var(--brown); font: 800 17px Manrope; }

html[data-theme="dark"] .public-order-summary { background: #1d2925; }
html[data-theme="dark"] .public-order-summary > header { background: #223630; }

@media (max-width: 560px) {
  .public-order-summary > header { align-items: flex-start; padding: 15px; }
  .public-order-summary header > strong { max-width: 115px; text-align: right; }
  .public-order-summary > div { padding: 0 15px; }
  .public-order-summary article { align-items: flex-start; gap: 10px; }
}

.public-photos {
  margin-top: 28px;
}

.public-photos > div {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap: 9px;
  margin-top: 10px;
}

.public-photos img {
  display: block;
  width: 100%;
  height: 130px;
  border-radius: 9px;
  object-fit: cover;
}

.public-photos a {
  display: block;
  border-radius: 9px;
  cursor: zoom-in;
  overflow: hidden;
}

.public-photos a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.public-photo-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080a09f7;
  color: white;
  overflow: hidden;
}

.public-photo-viewer[open] { display: grid; place-items: center; }
.public-photo-viewer-open { overflow: hidden; }
.public-photo-viewer::backdrop { background: #080a09f7; }
.public-photo-viewer figure { display: grid; width: 100%; height: 100%; margin: 0; place-items: center; touch-action: pan-y; }
.public-photo-viewer figure img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.public-photo-viewer-toolbar { position: fixed; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.public-photo-viewer-toolbar span { padding: 7px 11px; border-radius: 999px; background: #0009; font-size: 13px; }
.public-photo-viewer-toolbar button { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #000a; color: white; cursor: pointer; font-size: 35px; line-height: 1; pointer-events: auto; }
.public-photo-viewer-nav { position: fixed; z-index: 2; top: 50%; width: 48px; height: 58px; padding: 0; border: 0; border-radius: 12px; background: #0009; color: white; cursor: pointer; font-size: 46px; line-height: 1; transform: translateY(-50%); }
.public-photo-viewer-nav.previous { left: 16px; }
.public-photo-viewer-nav.next { right: 16px; }
.public-photo-viewer-nav[hidden] { display: none; }

@media (max-width: 640px) {
  .public-photo-viewer-nav { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
  .public-photo-viewer-nav.previous { left: calc(50% - 64px); }
  .public-photo-viewer-nav.next { right: calc(50% - 64px); }
}

.financial-head-actions { display: flex; align-items: center; gap: 10px; }
.financial-head-actions button:disabled { cursor: not-allowed; opacity: .5; }
.withdrawal-summary { margin-top: 22px; }
.withdrawal-balances { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.withdrawal-balances > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.withdrawal-balances span,.withdrawal-balances strong { display: block; }
.withdrawal-balances span { color: var(--muted); font-size: 11px; }
.withdrawal-balances strong { margin-top: 6px; font: 800 20px Manrope; }
.withdrawal-balances small { display: block; margin-top: 5px; color: var(--muted); }
.withdrawal-balances .available { border-color: #65a98d; background: #edf8f3; }
.withdrawal-history { margin-top: 18px; }
.withdrawal-empty { margin: 18px 0 0; color: var(--muted); }
.withdrawal-dialog { width: min(520px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 24px 80px #0005; }
.withdrawal-dialog::backdrop { background: #07120eb5; }
.withdrawal-dialog form { display: grid; gap: 14px; padding: 24px; }
.withdrawal-dialog form > p { margin: 0; color: var(--muted); line-height: 1.5; }
.withdrawal-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.withdrawal-dialog-head h2 { margin: 4px 0 0; font: 800 25px Manrope; }
.withdrawal-dialog-head button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; font-size: 27px; line-height: 1; }
.withdrawal-dialog-actions { display: flex; align-items: center; gap: 12px; }
.withdrawal-dialog-actions .withdrawal-history-link { width: auto; height: auto; border-radius: 0; background: transparent; color: var(--brown); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.withdrawal-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.withdrawal-partners label { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.withdrawal-partners input { width: auto; margin: 0; }
.withdrawal-partners span,.withdrawal-partners small { display: block; }
.withdrawal-partners small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.withdrawal-choice { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.withdrawal-choice input { width: auto; margin: 0; }
.withdrawal-choice span,.withdrawal-choice small { display: block; }
.withdrawal-choice small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.withdrawal-specific-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.withdrawal-specific-values[hidden],.withdrawal-specific-values [hidden] { display: none !important; }
.withdrawal-specific-values small,.withdrawal-selection-error { display: block; min-height: 16px; margin-top: 5px; color: #b63c2b; }
.withdrawal-live-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.withdrawal-live-summary article { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); }
.withdrawal-live-summary article[hidden] { display: none !important; }
.withdrawal-live-summary article > strong { display: block; margin-bottom: 8px; }
.withdrawal-live-summary dl { display: grid; gap: 5px; margin: 0; }
.withdrawal-live-summary dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.withdrawal-live-summary dt { color: var(--muted); font-size: 10px; text-transform: none; }
.withdrawal-live-summary dd { margin: 0; font-weight: 700; }
.withdrawal-live-summary [data-withdrawal-preview-withdraw] { color: var(--brown); }
.withdrawal-history-dialog { width: min(900px,calc(100vw - 28px)); }
.withdrawal-history-content { max-height: min(86dvh,760px); padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
.withdrawal-history-actions { display: flex; align-items: center; gap: 7px; }
.withdrawal-history-actions form { display: inline; margin: 0; padding: 0; }
.withdrawal-history-actions .btn { width: auto; min-width: 74px; padding: 8px 10px; overflow-wrap: normal; white-space: nowrap; }
.withdrawal-history-actions .danger { background: #fde5df; color: #ad4c34; }
.withdrawal-edit-dialog form { padding: 24px; }
.customers-list-layout { display: block; }
.customer-create-dialog { width: min(520px,calc(100vw - 28px)); max-height: 92dvh; padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: 0 24px 80px #0005; overflow-y: auto; }
.customer-create-dialog::backdrop { background: #07120eb5; }
.customer-create-dialog .compact-form { display: grid; grid-template-columns: 1fr; gap: 13px; margin: 0; padding: 24px; border: 0; }
.customer-create-dialog .compact-form > * { grid-column: 1 / -1; }
.customer-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.customer-dialog-head h2 { margin: 0; }
.customer-dialog-head button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; font-size: 27px; line-height: 1; }

@media (max-width: 640px) {
  .financial-head-actions { align-items: stretch; flex-direction: column; margin-top: 18px; }
  .withdrawal-balances { grid-template-columns: 1fr; }
  .withdrawal-partners,.withdrawal-specific-values,.withdrawal-live-summary { grid-template-columns: 1fr; }
  .withdrawal-dialog form { padding: 20px; }
  .customer-create-dialog .compact-form { padding: 20px; }
  .withdrawal-history-content { max-height: 92dvh; padding: 18px; }
  .withdrawal-history-dialog .withdrawal-dialog-head { position: sticky; z-index: 2; top: -18px; margin: -18px -18px 12px; padding: 18px; background: white; }
  .withdrawal-history-dialog .withdrawal-balances { gap: 7px; }
  .withdrawal-history-dialog .withdrawal-balances > div { padding: 11px 13px; }
  .withdrawal-history-dialog .withdrawal-balances strong { font-size: 17px; }
  .withdrawal-history .responsive-list tbody td.withdrawal-history-actions { display: flex; grid-column: 1 / -1; align-items: stretch; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
  .withdrawal-history-actions::before { display: none !important; }
  .withdrawal-history-actions .btn,.withdrawal-history-actions form { flex: 1 1 0; width: 100%; min-width: 0; }
  .withdrawal-history-actions form { display: flex; }
  .withdrawal-history-actions .btn { min-height: 42px; }
}

html[data-theme="dark"] .tracking-status,
html[data-theme="dark"] .pickup-box {
  background: #2b2a22;
}

html[data-theme="dark"] .tracking-ready .tracking-status,
html[data-theme="dark"] .pickup-box-prominent { background: #20372d; }
html[data-theme="dark"] .tracking-ready .tracking-details > div { background: #202a27; }

@media (max-width: 600px) {
  .pickup-box-prominent { padding: 18px; }
  .tracking-ready .tracking-details { grid-template-columns: 1fr; gap: 7px; }
  .tracking-ready .tracking-details > div { padding: 9px 11px; }
}

@media print {
  .public-tracking-page .customer-budget-actions {
    display: none;
  }
}

/* Escala responsiva global: legibilidade sem cortes em desktop, tablet e celular. */
:root {
  --text-xs: clamp(10px, .62vw, 12px);
  --text-sm: clamp(12px, .72vw, 14px);
  --text-md: clamp(14px, .82vw, 16px);
  --title-sm: clamp(18px, 1.25vw, 23px);
  --title-lg: clamp(28px, 2.35vw, 40px);
}

body {
  font-size: var(--text-md);
  line-height: 1.5;
}

.page main {
  max-width: 1440px;
  padding: clamp(28px, 3.2vw, 52px) clamp(18px, 3.2vw, 52px);
}

.page-head h1 {
  max-width: 100%;
  font-size: var(--title-lg);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.page-head p,
dd,
.card p,
.hint,
.permission-note,
.workflow-help p,
.quick p {
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.customer-profile-link {
  color: var(--accent, #8f6028);
  font-size: .86em;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.customer-profile-link:hover,
.customer-profile-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-summary-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.customer-summary-link:hover,
.customer-summary-link:focus-visible {
  border-color: var(--accent, #8f6028);
  box-shadow: 0 8px 24px rgb(20 35 31 / 8%);
  transform: translateY(-1px);
  outline: none;
}

.customer-pending-records { scroll-margin-top: 92px; }

.card h2,
.card-head h2,
.form-card h2 {
  font-size: var(--title-sm);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

label,
dt,
th,
.kicker,
.metrics span,
.toolbar > span,
.form-progress small,
.camera-inputs > small,
.cpf-feedback,
.active-link-note span,
.active-link-note small,
.tracking-status small,
.tracking-status span,
.pickup-box > span,
.public-photos > span {
  font-size: var(--text-xs);
  line-height: 1.4;
}

input,
select,
textarea,
.btn,
.settings-action,
.photo-source-menu button {
  min-height: 44px;
  font-size: var(--text-sm);
  line-height: 1.35;
}

textarea {
  min-height: 84px;
}

.btn,
.settings-action,
.quick,
.view-tabs a,
.optional-actions button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.sidebar {
  width: clamp(245px, 17vw, 280px);
}

.page {
  margin-left: clamp(245px, 17vw, 280px);
}

.sidebar nav a {
  min-height: 47px;
  font-size: clamp(13px, .78vw, 15px);
  line-height: 1.25;
}

.sidebar nav a span,
.sidebar-user strong,
.sidebar-user small,
.photo-grid small,
.photo-preview figcaption {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.sidebar-user strong {
  max-width: 145px;
  font-size: 11px;
  line-height: 1.25;
}

.sidebar-user small {
  max-width: 145px;
  font-size: 10px;
}

.metrics strong,
.finance .grand-total,
.customer-total strong,
.customer-options article > strong {
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.metrics small,
.stock-list small,
td small,
.suggestion small,
.mini-split span,
.share-url,
.more-menu button {
  font-size: var(--text-xs);
  line-height: 1.4;
}

table {
  font-size: var(--text-sm);
}

td {
  font-size: var(--text-sm);
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.quick strong,
.quick.compact strong {
  font-size: clamp(13px, .85vw, 16px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.order-type,
.status,
.nav-count {
  font-size: clamp(9px, .6vw, 11px) !important;
}

.customer-budget h1,
.tracking-status strong {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.customer-budget dd,
.customer-budget-note,
.customer-budget > footer,
.public-options-panel,
.public-service-copy {
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cost-entry,
.expense-summary {
  min-width: 0;
}

.form-layout,
.form-grid,
.form-card,
.price-card,
.cost-entry,
.expense-entry,
.expense-summary,
.expense-description,
label,
input,
select,
textarea {
  min-width: 0;
}

.form-layout {
  width: 100%;
  min-width: 0;
}

.form-grid,
.form-card,
.price-card,
.cost-entry,
.expense-entry,
.expense-summary,
.expense-description {
  min-width: 0;
  max-width: 100%;
}

label {
  min-width: 0;
}

input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.form-grid label,
.cost-entry label,
.expense-summary label,
.expense-description summary {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.expense-description textarea,
textarea {
  min-width: 0;
}

.price-card {
  align-self: start;
  max-width: 100%;
}

.expense-payer {
  min-height: 44px;
  font-size: var(--text-sm);
}

.expense-description summary {
  padding: 6px 0;
  font-size: var(--text-sm);
}

@media (max-width: 1050px) {
  .sidebar {
    width: 245px;
  }

  .page {
    margin-left: 245px;
  }

  .form-layout,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card {
    position: static;
  }

  .cost-entry,
  .expense-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .cost-entry label,
  .expense-summary label,
  .expense-description summary,
  .cost-entry .expense-payer,
  .expense-summary .expense-payer,
  .add-expense,
  .remove-expense {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cost-entry input,
  .expense-summary input,
  .expense-description textarea,
  textarea {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .menu-open .menu-backdrop {
    z-index: 90;
  }

  .menu-open .sidebar {
    z-index: 100;
  }

  .sidebar {
    width: min(88vw, 320px);
  }

  .page {
    margin-left: 0;
  }

  .page main {
    padding: 24px 14px 38px;
  }

  .page-head,
  .card-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head > .btn,
  .page-head > .status,
  .head-actions {
    align-self: flex-start;
  }

  input,
  select,
  textarea,
  .btn {
    font-size: 16px;
  }

  .search {
    width: 100%;
  }

  .table-wrap {
    margin-inline: -4px;
    padding: 0 4px 5px;
  }

  table {
    min-width: 620px;
  }

  .customer-budget > header,
  .customer-budget > section,
  .customer-budget > footer {
    padding: 20px 18px;
  }

  .customer-budget > header {
    gap: 14px;
    flex-wrap: wrap;
  }
}

/* Itens do orçamento: cartões sem sobreposição e expansão com controle visível. */
.budget-options-admin > article {
  position: relative;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 12px;
  max-height: none;
  padding: 16px 38px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-top: 10px;
  background: #fff;
}
.budget-options-admin .option-main { min-width: 0; }
.budget-options-admin .option-main strong { font-size: var(--text-md); line-height: 1.35; overflow-wrap: anywhere; }
.budget-options-admin .option-main small { margin-top: 5px; font-size: var(--text-xs); line-height: 1.4; }
.budget-options-admin .option-price { align-self: center; font-size: clamp(16px,1.2vw,21px); white-space: nowrap; }
.budget-options-admin .select-option-form { align-self: center; }
.budget-options-admin .select-option-form button { min-height: 40px; padding: 9px 13px; font-size: var(--text-sm); }
.budget-options-admin .option-multiplier-form { grid-column: 1 / -1; justify-self: end; }
.budget-options-admin .option-multiplier-form label { font-size: var(--text-xs); }
.budget-options-admin .option-multiplier-form input { width: 88px; min-height: 40px; font-size: var(--text-sm); }
.budget-options-admin .option-multiplier-form button { min-height: 40px; padding: 8px 12px; font-size: var(--text-sm); }
.budget-options-admin .delete-option-form { position: absolute; top: 8px; right: 8px; }
.budget-options-admin .delete-option-form button { width: 27px; height: 27px; }
html[data-theme="dark"] .budget-options-admin > article { background: #202a27; }

.compact-editor > summary::after,
.add-budget-item > summary::after,
.supplier-assistant > summary::after { content: '+'; margin-left: 8px; font-size: 16px; font-weight: 800; }
.compact-editor[open] > summary::after,
.add-budget-item[open] > summary::after,
.supplier-assistant[open] > summary::after { content: '−'; }
.help-toggle[open] > summary { font-size: 0; }
.help-toggle[open] > summary::after { content: '−'; font-size: 16px; }

@media (max-width: 760px) {
  .budget-options-admin > article { grid-template-columns: minmax(0,1fr) auto; }
  .budget-options-admin .select-option-form { grid-column: 1 / -1; justify-self: start; }
  .budget-options-admin .option-multiplier-form { justify-self: stretch; flex-wrap: wrap; }
}

/* Versão compacta dos itens do orçamento. */
.budget-options-admin > article {
  grid-template-columns: minmax(0,1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 12px 42px 12px 14px;
}
.budget-options-admin .option-price { font-size: clamp(16px,1.1vw,20px); }
.budget-options-admin .option-multiplier-form {
  grid-column: auto;
  justify-self: auto;
  display: grid;
  grid-template-columns: 64px auto;
  align-items: end;
  gap: 6px;
}
.budget-options-admin .option-multiplier-form label { line-height: 1; }
.budget-options-admin .option-multiplier-form input { width: 64px; min-height: 38px; padding: 7px 8px; }
.budget-options-admin .option-multiplier-form button { min-height: 38px; padding: 7px 10px; }
.budget-options-admin .delete-option-form { top: 8px; right: 8px; }
.budget-options-admin .delete-option-form button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #efb8ad;
  border-radius: 50%;
  background: #fff1ed;
  color: #c94f3b;
  font-size: 17px;
  line-height: 1;
}
.budget-options-admin .delete-option-form button:hover { background: #fde1da; }

@media (max-width: 1050px) {
  .budget-options-admin > article { grid-template-columns: minmax(0,1fr) auto auto; }
  .budget-options-admin .option-multiplier-form { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 600px) {
  .budget-options-admin > article { grid-template-columns: minmax(0,1fr) auto; padding: 12px 40px 12px 12px; }
  .budget-options-admin .option-main { grid-column: 1 / -1; }
  .budget-options-admin .select-option-form { grid-column: auto; }
  .budget-options-admin .option-multiplier-form { grid-column: 1 / -1; justify-self: stretch; grid-template-columns: minmax(80px,1fr) auto; }
  .budget-options-admin .option-multiplier-form input { width: 100%; }
}

@media (max-width: 480px) {
  .card {
    padding: 17px 15px;
  }

  .page-head h1 {
    font-size: clamp(27px, 9vw, 34px);
  }

  .metrics,
  .quick-actions,
  .optional-actions,
  .option-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick,
  .quick.primary,
  .quick.budgets,
  .quick.sale,
  .quick.compact {
    grid-column: auto;
    min-height: 66px;
  }

  .quick.compact > span {
    display: grid;
  }

  .cost-entry,
  .expense-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cost-entry label,
  .expense-summary label {
    grid-column: 1 / -1;
  }

  .cost-entry .part-quantity {
    grid-column: 1;
  }

  .cost-entry [data-part-cost-label] {
    grid-column: 2;
  }

  .add-expense,
  .remove-expense {
    width: 44px;
    height: 44px;
  }

  .expense-payer {
    min-width: 0;
    white-space: normal;
  }

  .customer-budget-actions {
    align-items: stretch;
    flex-direction: column;
    padding-inline: 14px;
  }
}

.selection-action {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px;
  padding: 12px 14px;
  border: 1px solid #bad8cb;
  border-radius: 11px;
  background: #edf7f2;
  box-shadow: 0 10px 30px #14231e20;
  z-index: 4;
}

.selection-action[hidden] { display: none; }
.selection-action span { font-size: var(--text-sm); }
.order-selection input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--green); }
.selection-help { margin: 0 16px 10px; padding: 11px 13px; border-radius: 9px; background: #f4ead8; color: #775326; }
.shipment-actions { display: grid; gap: 12px; position: sticky; top: 24px; }
.shipment-actions textarea { width: 100%; min-height: 190px; }
.shipment-actions form { margin: 0; }
.text-danger { border: 0; background: none; color: #c94f3b; font-weight: 700; cursor: pointer; }
.status.aguardando-remessa { background: #fff0d6; color: #8a5910; }
.status.cotação-enviada { background: #e5eef9; color: #356d9c; }
.status.cotação-recebida { background: #dff3e9; color: #187453; }
.shipment-purpose { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.shipment-purpose.cotação { background: #e5eef9; color: #356d9c; }
.shipment-purpose.remessa { background: #fff0d6; color: #8a5910; }
.shipment-purpose.entrada { background: #dff3e9; color: #187453; }
.quote-items-list { display: grid; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quote-item-row { display: block; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; font: inherit; }
.quote-item-row:last-child { border-bottom: 0; }
button.quote-item-row { cursor: pointer; }
button.quote-item-row:hover { background: var(--cream); }
html[data-theme="dark"] .selection-action { background: #25362f; }
html[data-theme="dark"] .selection-help { background: #332d22; color: #dfc495; }
.shipment-item-edit { display: grid; grid-template-columns: minmax(220px,1fr) 100px 150px auto; gap: 9px; align-items: end; }
.shipment-item-edit input { width: 100%; }
.shipment-actions .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.shipment-item-edit input[value^="Definir peça"] { border-color: #d85d50; background: #fff3ef; }
.shipment-metadata-date { max-width: 220px; margin-bottom: 20px; }
.shipment-items + .collapsible-field { margin-top: 20px; }
.shipment-metadata-save { margin-top: 12px; }

.supplier-assistant { width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; }
.supplier-assistant summary { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid #d4b77f; border-radius: 999px; background: #fff8e9; color: #8b5e24; font-size: var(--text-sm); list-style: none; }
.supplier-assistant summary::-webkit-details-marker { display: none; }
.supplier-assistant[open] { width: 100%; padding: 14px; border: 1px dashed #9db2a9; background: #f6faf8; }
.supplier-assistant[open] summary { margin-bottom: 8px; }
.budget-control-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.budget-control-grid > label { width: min(100%,230px); }
.estimate-pricing-settings { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.estimate-pricing-settings .section-title-help { margin-bottom: 0; }
.estimate-pricing-settings .estimate-common-costs { margin-top: 14px; }
.estimate-pricing-note { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.estimate-common-costs {
  display: grid;
  grid-template-columns: repeat(3,minmax(135px,190px));
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb,var(--cream) 58%,var(--card));
}
.estimate-common-costs label { margin: 0!important; }
.estimate-common-costs label small { margin-left: 4px; color: var(--muted); font-weight: 600; }
.estimate-common-costs input { min-height: 42px; background: var(--card); }
.estimate-common-costs > small { grid-column: 1/-1; color: var(--muted); font-size: 10px; }
@media(max-width:700px) {
  .estimate-common-costs { grid-template-columns: 1fr; }
}
.estimate-sticky-stage { position: sticky; top: 0; z-index: 55; margin: -8px 0 14px; padding: 6px 14px 4px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb,var(--cream) 94%,transparent); box-shadow: 0 7px 20px rgba(23,41,35,.08); backdrop-filter: blur(12px); }
.estimate-sticky-stage .status-timeline-fieldset { margin: 0; padding: 0; }
.estimate-sticky-stage .status-timeline-fieldset legend { font-size: 11px; }
.estimate-sticky-stage .stage-lock-slider { width: auto; height: 25px; max-width: none; flex: 1 1 auto; }
.estimate-sticky-stage .stage-lock-slider::before { left: 12px; right: 12px; height: 2px; }
.estimate-sticky-stage .stage-lock { width: 25px; height: 25px; flex-basis: 25px; }
.estimate-sticky-stage .stage-lock [data-stage-lock-icon] { width: 25px; height: 25px; }
.estimate-sticky-stage .status-timeline { margin: 2px 0 0; }
.estimate-sticky-stage .status-marker { width: 22px; height: 22px; font-size: 9px; }
.estimate-sticky-stage .status-step b { margin-top: 3px; font-size: 8px; }
.finance-inline-value { width: 120px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-weight: 800; text-align: right; }
.finance-inline-value:hover { color: var(--brown); }
.finance-inline-value:focus { border: 0; border-bottom: 1px solid var(--brown); outline: 0; box-shadow: none; }
.estimate-photo-add { margin-top: 14px; }
.estimate-photo-add h3 { margin-bottom: 10px; }
html[data-theme="dark"] .estimate-sticky-stage { background: color-mix(in srgb,#17231f 94%,transparent); }
html[data-theme="dark"] .supplier-assistant { background: transparent; }
html[data-theme="dark"] .supplier-assistant[open] { background: #202a27; }

.detail-grid { align-items: start; }
.request-summary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin: 0 0 14px; }
.detail .request-summary > div { padding: 0; border: 0; }
.request-summary dd { margin-top: 4px; font-size: var(--text-md); line-height: 1.45; white-space: pre-line; }
.compact-editor { margin: 10px 0; }
.compact-editor > summary,
.add-budget-item > summary { width: fit-content; padding: 7px 11px; border: 1px solid #d4b77f; border-radius: 999px; background: #fff8e9; color: #8b5e24; font-size: var(--text-sm); font-weight: 700; cursor: pointer; list-style: none; }
.compact-editor > summary::-webkit-details-marker,
.add-budget-item > summary::-webkit-details-marker { display: none; }
.compact-editor[open] { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f5; }
.compact-editor[open] > summary { margin-bottom: 12px; }
.add-budget-item { margin-top: 16px; }
.add-budget-item[open] { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #faf9f5; }
.add-budget-item[open] > summary { margin-bottom: 12px; }
.add-budget-item .option-form { margin-top: 0; grid-template-columns: minmax(220px,1.4fr) repeat(2,minmax(120px,.7fr)); }
.estimate-save-bottom { display: block; width: min(100%,340px); margin: 24px 0 4px auto; background: #25865c !important; }
html[data-theme="dark"] .compact-editor[open],
html[data-theme="dark"] .add-budget-item[open] { background: #202a27; }

@media (max-width: 760px) {
  .request-summary { grid-template-columns: 1fr; gap: 12px; }
  .estimate-sticky-stage { top: 72px; margin-inline: -4px; padding-inline: 8px; }
  .estimate-sticky-stage .status-timeline { align-items: flex-start; flex-direction: row; gap: 0; margin: 3px 0 1px; }
  .estimate-sticky-stage .status-step { display: block; min-height: 0; text-align: center; }
  .estimate-sticky-stage .status-step:not(:last-child)::after { top: 10px; bottom: auto; left: calc(50% + 14px); right: calc(-50% + 14px); width: auto; height: 2px; }
  .estimate-sticky-stage .status-marker { margin: 0 auto 3px; }
  .estimate-sticky-stage .status-step b { padding: 0 2px; font-size: 7px; line-height: 1.1; }
  .add-budget-item .option-form { grid-template-columns: 1fr; }
  .estimate-save-bottom { width: 100%; }
}

@media (max-width: 760px) {
  .selection-action { align-items: stretch; flex-direction: column; }
  .shipment-actions { position: static; }
  .shipment-item-edit { grid-template-columns: 1fr 1fr; }
  .shipment-item-edit label:first-of-type { grid-column: 1 / -1; }
}

/* Cartões comerciais compactos, com seleção intencional por duplo toque. */
.budget-options-admin > article.expandable-option {
  grid-template-areas: "main sale profit";
  grid-template-columns: minmax(0, 1fr) auto 72px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 42px 12px 14px;
}

.budget-options-admin > article.locked-option {
  grid-template-areas: "main sale";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px;
}

.budget-options-admin .option-main { grid-area: main; }
.budget-options-admin .option-main strong,
.budget-options-admin .option-main small,
.budget-options-admin .option-cost { display: block; }
.budget-options-admin .option-main small { margin-top: 2px; }
.budget-options-admin .option-cost {
  margin: 0 0 1px;
  color: #c54b3d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.budget-options-admin .option-sale {
  grid-area: sale;
  display: grid;
  justify-items: end;
  align-self: center;
  min-width: 104px;
}
.budget-options-admin .option-sale small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.budget-options-admin .option-sale .option-cost {
  margin: 0 0 1px;
  color: #c54b3d;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}
.budget-options-admin .option-sale input.option-cost {
  width: 76px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline-offset: 2px;
  background: transparent;
  box-shadow: none;
  text-align: right;
  cursor: text;
}
.budget-options-admin .option-sale input.option-cost:focus {
  outline: 1px dashed currentColor;
}
.budget-options-admin .option-sale .option-price {
  margin-top: 1px;
  color: #236c50;
  font-size: clamp(17px, 1.25vw, 21px);
}

.budget-options-admin .option-multiplier-form {
  grid-area: profit;
  grid-column: auto;
  width: 72px;
  justify-self: end;
}
.budget-options-admin .option-multiplier-form label { font-size: 9px; }

.budget-options-admin .chosen-badge {
  display: none;
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 14px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid #83b99e;
  background: #d9f1e4;
  color: #246c4c;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px #173f2d17;
}
.budget-options-admin .selected-option .chosen-badge { display: inline-flex; }
.budget-options-admin .expandable-option {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
html[data-theme="dark"] .budget-options-admin .option-sale .option-cost { color: #ff9587; }
html[data-theme="dark"] .budget-options-admin .option-sale .option-price { color: #83d5ad; }
html[data-theme="dark"] .budget-options-admin .chosen-badge {
  border-color: #4d9470;
  background: #244b39;
  color: #b9efd3;
}

@media (max-width: 600px) {
  .budget-options-admin > article.expandable-option {
    grid-template-areas:
      "main main"
      "sale profit";
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 9px 12px;
    min-height: 0;
    padding: 14px 40px 12px 12px;
  }
  .budget-options-admin .option-sale {
    justify-self: start;
    justify-items: start;
    min-width: 0;
  }
  .budget-options-admin .option-multiplier-form { justify-self: end; }
  .budget-options-admin > article.locked-option {
    grid-template-areas:
      "main"
      "sale";
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 12px;
  }
  .budget-options-admin > article.locked-option .option-sale {
    justify-self: start;
    justify-items: start;
  }
}

/* Linhas de listagem abrem o registro inteiro; o número permanece curto. */
.record-number,
.record-number a {
  white-space: nowrap;
  word-break: keep-all;
}
.record-number {
  width: 42px;
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}
.record-code,
.record-code a {
  white-space: nowrap;
  word-break: keep-all;
}
.record-code {
  min-width: 72px;
  font-variant-numeric: tabular-nums;
}
.clickable-row {
  cursor: pointer;
  transition: background-color .14s ease, box-shadow .14s ease;
}
.clickable-row:hover,
.clickable-row:focus-visible {
  outline: none;
  background: #f2f8f5;
  box-shadow: inset 3px 0 #3e8b68;
}
html[data-theme="dark"] .clickable-row:hover,
html[data-theme="dark"] .clickable-row:focus-visible {
  background: #24322d;
}

/* O painel financeiro se organiza pela própria largura, sem esmagar campos. */
.order-price-card {
  container-type: inline-size;
}
.order-price-card .cost-entry {
  grid-template-columns: minmax(74px, .42fr) minmax(112px, 1fr) 44px;
  gap: 9px;
  align-items: end;
}
.order-price-card .cost-entry .part-name {
  grid-column: 1 / -1;
}
.order-price-card .cost-entry .part-quantity {
  grid-column: 1;
}
.order-price-card .cost-entry [data-part-cost-label] {
  grid-column: 2;
}
.order-price-card .cost-entry .add-expense {
  grid-column: 3;
  grid-row: 2;
  width: 44px;
  height: 44px;
}
.order-price-card .cost-entry .expense-payer {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  white-space: nowrap;
}
.order-price-card .expense-summary {
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 9px;
  align-items: end;
}
.order-price-card .expense-summary label {
  grid-column: 1 / -1;
}
.order-price-card .expense-summary .expense-payer {
  grid-column: 1;
  width: 100%;
  white-space: nowrap;
}
.order-price-card .expense-summary .remove-expense {
  grid-column: 2;
  width: 44px;
  height: 44px;
}
.order-price-card .cost-entry label,
.order-price-card .expense-summary label {
  overflow-wrap: normal;
  word-break: normal;
}

@container (max-width: 270px) {
  .order-price-card .cost-entry {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .order-price-card .cost-entry .part-quantity,
  .order-price-card .cost-entry [data-part-cost-label] {
    grid-column: 1 / -1;
  }
  .order-price-card .cost-entry .add-expense {
    grid-column: 2;
    grid-row: 4;
  }
  .order-price-card .cost-entry .expense-payer {
    grid-column: 1;
    grid-row: 4;
  }
}

/* Busca rápida de clientes pelo nome. */
.customer-name-first {
  position: relative;
  z-index: 6;
}
.customer-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  max-height: 280px;
  border: 1px solid #b9cec4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px #14231e24;
}
.customer-suggestions[hidden] { display: none; }
.customer-suggestions button {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.customer-suggestions button:last-child { border-bottom: 0; }
.customer-suggestions button:hover,
.customer-suggestions button:focus-visible {
  outline: none;
  background: #eaf5ef;
}
.customer-suggestions b,
.customer-suggestions small { display: block; }
.customer-suggestions b { font-size: 12px; }
.customer-suggestions small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
html[data-theme="dark"] .customer-suggestions {
  border-color: #40564d;
  background: #202a27;
}
html[data-theme="dark"] .customer-suggestions button { color: #eff7f3; border-color: #34443e; }
html[data-theme="dark"] .customer-suggestions button:hover,
html[data-theme="dark"] .customer-suggestions button:focus-visible { background: #2b4037; }

/* Entrada única de pedidos e preço somente na etapa de preparação. */
.simple-order-form {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 980px);
}
.product-brand-quantity { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; align-items: end; }
.product-brand-quantity label { margin: 0; }
.product-brand-quantity input[name="quantity"] { text-align: center; }
.inventory-head-menu { align-self: center; }
.manage-grid.inventory-readonly { grid-template-columns: minmax(0, 1fr); }
.inventory-tabs { margin: 0 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.inventory-tabs button { padding: 9px 14px; border: 0; border-radius: 20px; background: transparent; color: var(--muted); font: 700 10px inherit; cursor: pointer; }
.inventory-tabs button.active { background: var(--ink); color: #fff; }
[data-inventory-panel][hidden] { display: none !important; }
.shipment-date-group th { padding: 14px 10px 8px; background: #f7f3eb; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-align: left; }
html[data-theme="dark"] .shipment-date-group th { background: #202a27; }
.inventory-manager-dialog { width: min(900px, calc(100% - 28px)); max-height: min(82vh, 760px); margin: auto; padding: 22px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 25px 70px #07130f4d; }
.inventory-manager-dialog::backdrop { background: #07130fa8; backdrop-filter: blur(3px); }
.inventory-manager-dialog > header { position: sticky; z-index: 2; top: -22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -22px -22px 18px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.inventory-manager-dialog > header h2 { margin: 3px 0 0; }
.inventory-manager-dialog > header form { margin: 0; }
.inventory-manager-dialog > header button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #f7f3eb; color: var(--ink); font-size: 22px; cursor: pointer; }
.inventory-manager-dialog > p { color: var(--muted); }
html[data-theme="dark"] .inventory-manager-dialog,
html[data-theme="dark"] .inventory-manager-dialog > header { background: #19231f; }
.order-choice-head { margin-bottom: 24px; }
.order-type-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 980px);
}
.order-choice {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 17px;
  min-height: 220px;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.order-choice:hover,
.order-choice:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: #7cae96;
  box-shadow: 0 14px 30px #173d2c18;
}
.order-choice-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #e2f3eb;
  color: #277356;
  font-size: 25px;
}
.order-choice.product .order-choice-icon { background: #fff0e8; color: #cf5636; }
.order-choice small { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.order-choice h2 { margin: 8px 0; font-size: clamp(20px, 2vw, 27px); }
.order-choice p { min-height: 48px; margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.order-choice b { color: #8b5e24; font-size: 12px; }
.prepare-price { margin-top: 18px; }
.prepare-price > summary {
  padding: 12px 14px;
  border: 1px solid #cba76c;
  border-radius: 9px;
  background: #fff8e9;
  color: #80551f;
  font-weight: 800;
  cursor: pointer;
}
.prepare-price form { margin-top: 14px; }
.prepare-price form label { margin: 12px 0; }
.prepare-price .btn { margin-top: 8px; }
.order-options-admin .option-sale input.option-cost {
  width: 76px; min-height: 0; margin: 0; padding: 1px 2px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: #c54b3d; font-size: 11px; font-weight: 800; text-align: right;
  cursor: text;
}
.order-options-admin .option-sale input.option-cost:focus {
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}
.finance-total-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.finance-payer-form { margin: 0; }
.payer-badge {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 0; border: 0; background: none; line-height: 1.1; text-align: right;
}
button.payer-badge { cursor: pointer; }
.payer-badge small {
  font-size: 9px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
}
.payer-badge strong { font: 800 21px Manrope; }
.payer-badge.lucas strong { color: #c25c4b; }
.payer-badge.everton strong { color: #287a68; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.payer-icon {
  display: block;
  width: clamp(128px, 12vw, 168px);
  height: auto;
  aspect-ratio: 20 / 7;
}
.payer-badge.lucas .payer-icon-everton,
.payer-badge.everton .payer-icon-lucas { display: none; }
button.payer-badge .payer-icon {
  border-radius: 0;
}
button.payer-badge:focus-visible {
  border-radius: 2px;
  outline: 2px solid #9a6a2d;
  outline-offset: 2px;
}
html[data-theme="dark"] .order-choice { color: #eff7f3; }
html[data-theme="dark"] .prepare-price > summary { border-color: #765b31; background: #30291f; color: #edc27b; }
html[data-theme="dark"] .order-options-admin .option-sale input.option-cost { color: #ff9587; }

@media (max-width: 760px) {
  .order-type-choices { grid-template-columns: minmax(0, 1fr); }
  .order-choice { min-height: 0; padding: 21px; }
  .order-choice p { min-height: 0; margin-bottom: 18px; }
}

@media (max-width: 480px) {
  .finance-total-row { align-items: center; }
  .payer-icon { width: clamp(112px, 38vw, 146px); }
}

@media (max-width: 420px) {
  .order-choice { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; padding: 18px 15px; }
  .order-choice-icon { width: 46px; height: 46px; border-radius: 12px; font-size: 20px; }
}

@media (min-width: 761px) {
  .quick-actions { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(190px, .7fr); }
}

.device-photo-hint {
  display: block;
  margin-top: -5px;
  color: var(--muted);
  font-size: 9px;
}

.device-photo-section {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.device-photo-section .camera-inputs { margin-bottom: 10px; }
.optional-actions-last { margin-top: 12px; padding-top: 0; border-top: 0; }

/* Fluxo único de status dos pedidos. */
.status.em-análise { background: #e4edf8; color: #38658e; }
.status.aguardando-peças { background: #fff0d6; color: #8a5910; }
.status.pedido-na-bancada { background: #eee8fb; color: #66469b; }
.status.pronto-para-entrega { background: #dff3ea; color: #277255; }
.status.entregue { background: #dff3ea; color: #277255; }
.status.cancelado { background: #fde5df; color: #ad4c34; }

.quick-save-button {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 80;
  min-width: 190px;
  border: 0;
  border-radius: 12px;
  padding: 15px 22px;
  background: #25875f;
  color: #fff;
  font: 700 13px 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(24, 92, 65, .3);
  animation: quick-save-in .2s ease-out;
}
.quick-save-button:hover { background: #1f7552; transform: translateY(-1px); }
.quick-save-button:focus-visible { outline: 3px solid rgba(37, 135, 95, .28); outline-offset: 3px; }
.quick-save-button[hidden] { display: none; }
.quick-save-enabled .save-action { display: none !important; }

.barcode-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 7px; }
.barcode-field > input { min-width: 0; margin: 0; }
.barcode-field > button {
  border: 1px solid #c8a66c;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff8eb;
  color: #80551f;
  font: 700 11px inherit;
  cursor: pointer;
}
.barcode-field > button:hover { background: #f8ebd3; }
.barcode-field + small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }

.quick-sale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, .5fr);
  gap: 22px;
  align-items: start;
}

.quick-sale-main { display: grid; gap: 18px; min-width: 0; }
.quick-sale-product,
.quick-sale-summary { display: grid; gap: 16px; }
.quick-sale-product h2,
.quick-sale-summary h2 { font-size: clamp(21px, 2vw, 27px); }

.quick-product-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 15px;
  border: 1px solid #b8dcca;
  border-radius: 13px;
  background: #eef8f3;
}
.quick-product-result[hidden],.quick-cart-empty[hidden] { display: none !important; }

.quick-product-result strong { display: block; font: 800 16px Manrope; }
.quick-product-result small { color: var(--muted); }
.quick-product-facts { display: flex; gap: 8px; }
.quick-product-facts span { padding: 8px 10px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 9px; }
.quick-product-facts b { display: block; margin-top: 2px; color: var(--ink); font-size: 11px; }
.quick-sale-finder { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quick-sale-finder label { margin: 0; }
.quick-sale-barcode { display: none; }
.quick-sale-search { position: relative; }
.quick-product-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 38px #14231e24;
}
.quick-product-suggestions[hidden] { display: none !important; }
.quick-product-suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.quick-product-suggestions button:last-child { border-bottom: 0; }
.quick-product-suggestions button:hover,.quick-product-suggestions button:focus { background: #edf6f1; outline: none; }
.quick-product-suggestions span,.quick-product-suggestions b,.quick-product-suggestions small { display: block; }
.quick-product-suggestions small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.quick-product-suggestions strong { flex: none; color: var(--green); font-size: 11px; white-space: nowrap; }
.quick-cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.quick-cart-heading h2 { margin: 3px 0 0; }
.quick-cart-heading > span { color: var(--muted); font-size: 11px; }
.quick-cart-empty { display: grid; place-items: center; gap: 4px; min-height: 120px; color: var(--muted); text-align: center; }
.quick-cart-empty b { color: var(--ink); }
.quick-cart-list { display: grid; gap: 9px; }
.quick-cart-item { display: grid; grid-template-columns: minmax(0, 1fr) 105px 135px 34px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel, #fff); }
.quick-cart-product { align-self: center; min-width: 0; }
.quick-cart-product strong,.quick-cart-product small { display: block; }
.quick-cart-product strong { overflow-wrap: anywhere; }
.quick-cart-product small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.quick-cart-item label { margin: 0; font-size: 9px; }
.quick-cart-item input { min-width: 0; margin-top: 4px; }
.quick-cart-remove { width: 34px; height: 34px; margin-bottom: 5px; border: 1px solid #f0b9ae; border-radius: 50%; background: #fff5f2; color: #d34f38; font-size: 19px; cursor: pointer; }
.quick-sale-customer details > p { color: var(--muted); font-size: 11px; }
.quick-sale-customer summary { display: flex; align-items: center; gap: 8px; }
.quick-sale-customer summary small { padding: 2px 7px; border-radius: 999px; background: #edf1ef; color: var(--muted); font-size: 9px; font-weight: 700; }
.quick-sale-customer summary::after { margin-left: auto; }
.quick-sale-summary { position: sticky; top: 24px; }
.quick-sale-summary label { margin: 0; }
.quick-summary-lines { display: grid; gap: 10px; padding: 14px 0; border-block: 1px solid var(--line); }
.quick-summary-lines span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.quick-summary-lines b { color: var(--ink); }
.quick-summary-total { display: grid; gap: 4px; padding: 10px 0; }
.quick-summary-total span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.quick-summary-total strong { color: var(--green); font: 800 clamp(28px, 3vw, 38px) Manrope; }
.quick-summary-help { margin: -8px 0 0; color: var(--muted); font-size: 9px; }
.quick-sale-notes { margin: 0; }
.quick-sale-detail-items { margin: 18px 0; padding: 15px; border-radius: 11px; background: #f4f7f5; }
.quick-sale-detail-items h3 { margin: 0 0 10px; font-size: 15px; }
.quick-sale-detail-items > div { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 11px; }
.quick-sale-detail-items > div strong { white-space: nowrap; color: var(--green); }

html[data-theme="dark"] .quick-product-result { border-color: #345d4b; background: #193027; }
html[data-theme="dark"] .quick-product-facts span { background: #12231d; }
html[data-theme="dark"] .quick-product-suggestions { background: #1b2622; }
html[data-theme="dark"] .quick-product-suggestions button:hover,
html[data-theme="dark"] .quick-product-suggestions button:focus { background: #24342e; }

@media (max-width: 820px) {
  .quick-sale-layout { grid-template-columns: 1fr; }
  .quick-sale-summary { position: static; }
}

@media (max-width: 520px) {
  .quick-sale-finder,.quick-product-result { grid-template-columns: 1fr; }
  .quick-sale-barcode { display: block; }
  .quick-product-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-cart-item { grid-template-columns: minmax(0, 1fr) 88px 34px; }
  .quick-cart-product { grid-column: 1/-1; }
  .quick-cart-item label:nth-of-type(2) { grid-column: 1/3; }
}

/* Checkout público — resumo simples e ação segura fora da área administrativa. */
.public-payment-box {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #cfe3dc;
  border-radius: 16px;
  background: #f3faf7;
}
.public-payment-state {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}
.public-payment-state.waiting { color: #b74432; }
.public-payment-state.paid { color: #18765a; }
.public-payment-box form { margin: 0; }
.public-payment-box small { color: var(--muted); text-align: center; }
.public-payment-box .payment-complete,
.public-payment-box .payment-unavailable { margin: 0; text-align: center; }
@media (max-width: 520px) {
  .public-payment-box { padding: 18px; }
}

/* Controle de pagamentos do pedido. */
.order-payment-summary { display: grid; gap: 10px; }
.payment-summary-head,.order-payment-summary>div,.payment-dialog-shell>header,.payment-history-item>div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.payment-status { display:inline-flex; align-items:center; width:max-content; padding:5px 9px; border-radius:999px; background:#edf0ef; color:var(--ink); font-size:11px; font-weight:800; }
.payment-status-pago { background:#dff3ea; color:#147255; }
.payment-status-parcialmente-pago,.payment-status-pendente { background:#fff1d8; color:#915d18; }
.payment-status-atrasado,.payment-status-parcialmente-pago-—-atrasado,.payment-status-cancelado { background:#fde8e3; color:#a94332; }
.payment-complete { margin:0; padding:10px 12px; border-radius:9px; background:#e8f5ef; color:#18765a; font-weight:800; }
.order-payment-dialog { width:min(1040px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:0; border:0; border-radius:18px; background:var(--card); color:var(--ink); box-shadow:0 22px 70px #10251d55; }
.order-payment-dialog::backdrop { background:#10251db8; backdrop-filter:blur(2px); }
.payment-dialog-shell { padding:24px; overflow:auto; }
.payment-dialog-shell h2 { margin:3px 0 0; }
.dialog-close { width:40px; height:40px; border:0; border-radius:50%; background:var(--soft); color:var(--ink); font-size:25px; cursor:pointer; }
.payment-overview { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }
.payment-overview>div { display:grid; gap:5px; padding:14px; border:1px solid var(--line); border-radius:11px; }
.payment-overview b { font-size:18px; }
.payment-entry-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:22px; }
.payment-entry-unified { grid-template-columns:1fr; }
.payment-entry-grid details { padding:0 16px 16px; border:1px solid var(--line); border-radius:12px; }
.payment-entry-grid summary { padding:15px 0; cursor:pointer; font-weight:800; }
.payment-entry-grid form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.payment-entry-grid form[hidden] { display:none; }
.payment-entry-grid label { display:grid; align-content:start; gap:6px; }
.payment-entry-grid .full { grid-column:1/-1; }
.payment-online-details { grid-column:1/-1; }
.admin-online-payment { display:grid; gap:14px; }
.payment-online-note { margin:0; color:var(--muted); font-size:12px; }
.payment-unified-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.payment-unified-actions[hidden] { display:none; }
.payment-online-method { display:grid; gap:4px; padding:15px; border:1px solid var(--line); border-radius:12px; background:var(--soft); color:var(--ink); text-align:left; cursor:pointer; }
.payment-online-method:hover,.payment-online-method:focus-visible { border-color:var(--gold); box-shadow:0 0 0 2px #92632720; }
.payment-online-method span { color:var(--green); font-size:11px; font-weight:800; letter-spacing:.04em; }
.payment-online-method:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.payment-admin-email { display:grid; gap:6px; }
.payment-admin-email[hidden] { display:none; }
.admin-pix-result,.admin-card-result { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.admin-pix-result[hidden],.admin-card-result[hidden] { display:none; }
.admin-pix-result img { width:min(240px,100%); margin:auto; border-radius:10px; background:#fff; }
.admin-pix-result textarea { min-height:78px; resize:none; overflow-wrap:anywhere; }
.payment-method-choice {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:0;
  padding:0;
  border:0;
}
.payment-method-choice legend { margin-bottom:7px; font-weight:700; }
.payment-entry-grid .payment-method-choice label {
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  cursor:pointer;
}
.payment-method-choice input { position:absolute; opacity:0; pointer-events:none; }
.payment-method-choice label:has(input:checked) {
  border-color:var(--green);
  background:#eaf6f1;
  box-shadow:0 0 0 2px #5cae9130;
}
.payment-method-choice label > span { color:var(--green); font-size:17px; }
.payment-method-choice label > strong { font-size:13px; }
.payment-settle { grid-template-columns:auto 1fr!important; align-items:center; }
.payment-settle input { width:18px; height:18px; }
.payment-section { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.payment-table-wrap { overflow:auto; }
.payment-table { width:100%; min-width:850px; border-collapse:collapse; }
.payment-table th,.payment-table td { padding:10px 8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:12px; }
.table-action { padding:6px 9px; border:1px solid var(--green); border-radius:8px; background:transparent; color:var(--green); font-weight:800; cursor:pointer; }
.table-action.danger,.installment-actions .danger { border-color:#d36c5b; color:#a94332; }
.installment-actions { margin-top:5px; }
.installment-actions summary { cursor:pointer; font-size:11px; }
.installment-actions form { display:grid; gap:6px; margin-top:7px; }
.payment-history-item { display:grid; gap:5px; padding:13px 0; border-bottom:1px solid var(--line); }
.payment-history-item div span { color:var(--muted); }
.payment-history-item p { margin:0; }
.refunded-label { color:#a94332; }

@media (max-width:720px) {
  .payment-dialog-shell { padding:17px; }
  .payment-overview { grid-template-columns:1fr 1fr; }
  .payment-entry-grid { grid-template-columns:1fr; }
  .payment-entry-grid form { grid-template-columns:1fr; }
  .payment-entry-grid .full { grid-column:auto; }
  .payment-method-choice { grid-template-columns:1fr; }
  .payment-unified-actions { grid-template-columns:1fr 1fr; }
}
@media (max-width:430px) {
  .payment-unified-actions { grid-template-columns:1fr; }
}
.barcode-scanner {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 18, 14, .82);
}
.barcode-scanner-panel {
  width: min(480px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.barcode-scanner-panel > strong { display: block; font: 800 18px Manrope, sans-serif; }
.barcode-scanner-panel > p { margin: 5px 0 14px; color: var(--muted); font-size: 11px; }
.barcode-camera { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #0b1210; }
.barcode-camera video { width: 100%; height: 100%; object-fit: cover; }
.barcode-camera > span {
  position: absolute;
  inset: 31% 7%;
  border: 2px solid #ffcf70;
  border-radius: 10px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .2);
}
.barcode-camera > span::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 50%;
  height: 2px;
  background: #ff7348;
  box-shadow: 0 0 8px rgba(255, 115, 72, .8);
  animation: barcode-focus-line 1.6s ease-in-out infinite;
}
@keyframes barcode-focus-line {
  0%,100% { transform: translateY(-28px); opacity: .55; }
  50% { transform: translateY(28px); opacity: 1; }
}
.barcode-scanner-panel > small { display: block; min-height: 18px; margin: 12px 0; color: var(--muted); }
.barcode-scanner-panel > button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 12px;
  background: #e9eeeb;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.barcode-found .barcode-camera > span { border-color: #48d391; }
.barcode-found .barcode-scanner-panel > small { color: var(--green); font-weight: 700; }
.barcode-error .barcode-scanner-panel > small { color: #ad4c34; }
html[data-theme="dark"] .barcode-scanner-panel { background: #202a27; color: #eff7f3; }
html[data-theme="dark"] .barcode-field > button { border-color: #765b31; background: #30291f; color: #edc27b; }

@media (max-width: 420px) {
  .barcode-field { grid-template-columns: minmax(0, 1fr); }
  .barcode-field > button { min-height: 44px; }
  .barcode-scanner-panel { padding: 15px; }
}
@keyframes quick-save-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .quick-save-button {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
  }
}

/* Resumo compacto após a escolha do cliente. */
.selected-customer-order {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #bdd8cc;
  border-radius: 16px;
  background: #fbfefd;
}

.selected-customer-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #d9e8e1;
  background: #edf7f2;
}

.selected-customer-order-head > div { display: grid; gap: 3px; }
.selected-customer-order-head span {
  color: #26705f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.selected-customer-order-head h2 { margin: 0; font-size: 22px; }
.selected-customer-order-head > strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: #d9eee4;
  color: #176746;
  font-size: 10px;
  white-space: nowrap;
}
.selected-customer-order-list { padding: 0 20px; }
.selected-customer-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #e5eee9;
}
.selected-customer-order-item:last-child { border-bottom: 0; }

.selected-customer-order-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}
.selected-customer-order-copy > span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.selected-customer-order-copy > strong { font-size: 14px; overflow-wrap: anywhere; }
.selected-customer-order-copy > small { color: var(--muted); font-size: 10px; }
.selected-customer-order-side { display: grid; flex: none; gap: 2px; justify-items: end; }
.selected-customer-order-side > small,
.selected-customer-order-side > div > small { color: var(--muted); font-size: 9px; }
.selected-customer-order-side b { color: var(--green); font-size: 18px; white-space: nowrap; }
.selected-customer-addon-side { display: flex; align-items: center; gap: 14px; }
.selected-customer-addon-side > div { display: grid; gap: 2px; justify-items: end; }
.selected-customer-order-item form { flex: none; }
.selected-customer-order-item label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.selected-customer-order-item select {
  min-height: 38px;
  padding: 6px 28px 6px 9px;
  border: 1px solid #8db59f;
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
}
.selected-customer-order-empty {
  flex: none;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f2f1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
html[data-theme="dark"] .selected-customer-order { background: #1c2824; }
html[data-theme="dark"] .selected-customer-order-head { background: #223630; }

@media (max-width: 760px) {
  .selected-customer-order-head { align-items: flex-start; padding: 15px; }
  .selected-customer-order-head > strong { white-space: normal; text-align: center; }
  .selected-customer-order-list { padding: 0 15px; }
  .selected-customer-order-item { align-items: flex-start; gap: 12px; }
  .selected-customer-addon-side { align-items: flex-end; flex-direction: column; gap: 7px; }
  .selected-customer-order-item select { min-height: 34px; }
}

/* A observação exibida nos detalhes também é o próprio campo de edição. */
.detail #order-update-form { margin-top: 12px; }
.detail #order-update-form > dl { margin: 0; }
.detail #order-update-form > dl > .editable-detail { padding: 10px 0; }
.detail .editable-detail dd { margin-top: 3px; }
.detail .editable-detail textarea {
  display: block;
  width: 100%;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
}
.detail .editable-detail textarea:hover {
  background: color-mix(in srgb, var(--cream) 55%, transparent);
}
.detail .editable-detail textarea:focus {
  padding: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px #5b927c;
}
@media (max-width: 760px) {
  .detail #order-update-form { margin-top: 9px; }
  .detail #order-update-form > dl > .editable-detail { padding: 8px 0; }
}

/* Pedidos: no celular, cada linha vira um cartão completo sem rolagem lateral. */
@media (max-width: 760px) {
  .order-selection.card {
    padding: 14px;
  }

  .order-selection .toolbar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .order-selection .table-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .orders-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tbody {
    display: grid;
    gap: 10px;
  }

  .orders-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }

  .orders-table tbody tr[hidden] {
    display: none;
  }

  .orders-table tbody td {
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .orders-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .orders-table .order-cell-select {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
  }

  .orders-table .order-cell-code {
    grid-column: 1;
  }

  .orders-table .order-cell-type {
    grid-column: 2;
    text-align: right;
  }

  .orders-table.has-selection .order-cell-type {
    padding-right: 31px;
  }

  .orders-table .order-cell-customer,
  .orders-table .order-cell-item {
    grid-column: 1 / -1;
  }

  .orders-table .order-cell-customer {
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .orders-table .order-cell-item strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .orders-table .order-cell-item small {
    font-size: 11px;
    line-height: 1.4;
  }

  .orders-table .order-cell-status {
    grid-column: 1;
    align-self: end;
  }

  .orders-table .order-cell-value {
    grid-column: 2;
    align-self: end;
    text-align: right;
  }

  .orders-table .order-cell-value strong {
    white-space: nowrap;
  }

  .orders-table .order-cell-payment {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }

  .orders-table tbody tr:has(.empty) {
    display: block;
  }

  .orders-table .empty {
    width: 100%;
    text-align: center;
  }

  html[data-theme="dark"] .orders-table tbody tr {
    background: #202a27;
  }
}

/* Demais listas: cartões completos no celular, sem rolagem horizontal. */
@media (max-width: 760px) {
  .table-wrap:has(> .responsive-list) {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .responsive-list {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .responsive-list thead,
  .responsive-list .list-group-row {
    display: none;
  }

  .responsive-list tbody {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  .responsive-list tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }

  .responsive-list tbody tr[hidden] {
    display: none;
  }

  .responsive-list tbody td {
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .responsive-list tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .responsive-list .list-cell-wide {
    grid-column: 1 / -1;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .responsive-list .list-cell-wide:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .responsive-list td strong,
  .responsive-list td small {
    display: block;
  }

  .responsive-list td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
  }

  .responsive-list tbody tr:has(.empty) {
    display: block;
    padding: 18px 12px;
  }

  .responsive-list .empty {
    width: 100%;
    text-align: center;
  }

  .inventory-products-list tbody tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-products-list .list-cell-wide {
    grid-column: 1 / -1;
  }

  .inventory-history-list tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme="dark"] .responsive-list tbody tr {
    background: #202a27;
  }
}

@media (max-width: 390px) {
  .inventory-products-list tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-products-list td[data-label="Estoque"] {
    grid-column: 1 / -1;
  }
}

/* Duas telas por gesto no celular: ações primeiro, listas na página lateral. */
.mobile-swipe-pages,.mobile-swipe-page { display: contents; }
@media (max-width: 760px) {
  .financial-head-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: 100%; margin-top: 18px; }
  .financial-head-actions .btn { display: grid; width: 100%; min-height: 46px; margin: 0; place-items: center; }
  .mobile-swipe-pages { display: flex; width: 100vw; height: calc(100dvh - 65px); margin: -24px -14px -38px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mobile-swipe-pages::-webkit-scrollbar { display: none; }
  .mobile-swipe-page { display: block; flex: 0 0 100vw; width: 100vw; height: 100%; padding: 24px 14px 38px; overflow-x: hidden; overflow-y: auto; scroll-snap-align: start; scroll-snap-stop: always; }
  .mobile-swipe-primary { overflow-y: hidden; }
  .mobile-swipe-secondary { overflow-y: auto; }
  .mobile-swipe-secondary .dashboard-grid { display: block; }
  .mobile-swipe-secondary .dashboard-grid > .card + .card { margin-top: 14px; }
}
.financial-metric-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 15px;
}
.financial-metric-link article {
  height: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.financial-metric-link:hover article,
.financial-metric-link:focus-visible article {
  border-color: var(--green);
  box-shadow: 0 8px 24px #173c2e1a;
  transform: translateY(-2px);
}
.financial-metric-link.selected article {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px #246b5230;
}
.financial-metric-link .financial-gross {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .055em;
}

/* Ficha do cliente */
.customer-list-row { cursor: pointer; transition: background .16s ease,box-shadow .16s ease; }
.customer-list-row:hover,.customer-list-row:focus-visible { background: #f3f8f5; box-shadow: inset 3px 0 var(--green); outline: 0; }
.text-action { color: var(--brown); font-size: 11px; font-weight: 800; text-decoration: none; }
.customer-profile-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.customer-profile-head .back { display: block; margin-bottom: 20px; }
.customer-profile-head h1 { margin: 5px 0 5px; }
.customer-profile-head p { margin: 0; color: var(--muted); }
.customer-profile-actions { display: flex; align-items: center; gap: 9px; }
.profile-actions-menu { position: relative; }
.profile-actions-menu summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); cursor: pointer; list-style: none; }
.profile-actions-menu form { position: absolute; z-index: 5; top: 48px; right: 0; width: 170px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); box-shadow: 0 12px 28px #14231e24; }
.profile-actions-menu button { width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: #b84f39; text-align: left; cursor: pointer; }
.customer-profile-layout { display: grid; grid-template-columns: minmax(250px,310px) minmax(0,1fr); align-items: start; gap: 20px; }
.customer-data-card { position: sticky; top: 20px; }
.card-head.compact { align-items: flex-start; }
.card-head.compact h2 { font-size: 19px; }
.text-action { padding: 5px 8px; border: 0; background: transparent; cursor: pointer; }
.customer-data-view { margin: 8px 0 0; }
.customer-data-view div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.customer-data-view div:last-child { border-bottom: 0; }
.customer-data-view dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.customer-data-view dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.customer-edit-form { display: grid; gap: 11px; }
.customer-edit-form label,.customer-charge-form label,.payment-dialog label,.quote-item-dialog label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.customer-edit-form input,.customer-edit-form textarea { width: 100%; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.customer-profile-main { min-width: 0; }
.customer-tabs { display: flex; gap: 5px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--card); scrollbar-width: none; }
.customer-tabs a { flex: 1 0 auto; padding: 10px 13px; border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.customer-tabs a:hover { background: #f2f5f3; color: var(--ink); }
.customer-tabs a.active { background: var(--ink); color: white; }
.customer-summary-grid,.customer-financial-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.customer-summary-grid article,.customer-summary-grid .customer-summary-link,.customer-financial-metrics article { min-height: 126px; }
.customer-summary-grid span,.customer-financial-metrics span { color: var(--muted); font-size: 10px; }
.customer-summary-grid strong,.customer-financial-metrics strong { display: block; margin: 8px 0 3px; font: 800 clamp(22px,3vw,31px) Manrope; }
.customer-summary-grid small { color: var(--muted); font-size: 9px; }
.customer-summary-grid .summary-date { font-size: clamp(18px,2.4vw,25px); }
.customer-financial-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; border-color: #d9785d; background: #fff4ef; }
.customer-financial-alert>div { display: flex; align-items: center; gap: 12px; }
.customer-financial-alert>div>span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d45d40; color: white; font-weight: 900; }
.customer-financial-alert p,.customer-financial-alert strong,.customer-financial-alert small { display: block; margin: 0; }
.customer-financial-alert small { margin-top: 3px; color: #8c4432; }
.customer-recent-orders .card-head { margin-bottom: 6px; }
.customer-order-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(85px,auto); align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.customer-order-row:last-child { border-bottom: 0; }
.customer-order-row:hover strong { color: var(--green); }
.customer-order-row strong,.customer-order-row small { display: block; }
.customer-order-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.customer-order-row>b { text-align: right; }
.status-pill,.payment-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #edf1ef; font-size: 9px; font-weight: 800; }
.customer-order-cards { display: grid; gap: 10px; }
.customer-order-cards>a { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(230px,.8fr) auto; align-items: center; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .16s,transform .16s; }
.customer-order-cards>a:hover { border-color: var(--green); transform: translateY(-1px); }
.customer-order-cards h3 { margin: 4px 0; }
.customer-order-cards p { margin: 0; color: var(--muted); }
.customer-order-cards dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 0; }
.customer-order-cards dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.customer-order-cards dd { margin: 4px 0 0; font-size: 10px; font-weight: 700; }
.customer-order-cards>a>b { color: var(--brown); white-space: nowrap; }
.customer-subheading { margin: 25px 0 5px; }
.customer-financial-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.customer-financial-metrics article { min-height: 105px; padding: 17px; }
.customer-financial-metrics strong { font-size: clamp(18px,2.5vw,25px); }
.customer-charge-create { margin-bottom: 14px; }
.customer-charge-create>summary { color: var(--brown); font-weight: 800; cursor: pointer; }
.customer-charge-create[open]>summary { margin-bottom: 18px; }
.customer-charge-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.customer-charge-form .full { grid-column: 1/-1; }
.customer-charge-form .btn { justify-self: start; }
.customer-installments td:first-child small { display: block; margin-top: 3px; color: var(--muted); }
.payment-status.pago { background: #dff4e9; color: #167052; }
.payment-status.pendente { background: #f2efe7; color: #786947; }
.payment-status.atrasado { background: #fde5df; color: #ad432d; }
.payment-status.parcialmente-pago { background: #fff0d5; color: #9a5b09; }
.payment-icon { display: inline-flex; }
.payment-icon svg { width: 20px; height: 20px; }
.payment-icon.pago { color: #167052; }
.payment-icon.parcial { color: #b5720e; }
.payment-icon.nao-pago { color: #ad432d; }
.payment-dialog,.quote-item-dialog { width: min(92vw,480px); padding: 0; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 22px 70px #071a1455; }
.payment-dialog::backdrop,.quote-item-dialog::backdrop { background: #0c1b177a; backdrop-filter: blur(3px); }
.payment-dialog form,.quote-item-dialog form { display: grid; gap: 13px; padding: 24px; }
.quote-item-dialog > .dialog-head { padding: 24px 24px 0; }
.quote-item-dialog .form-actions .text-danger { margin-right: auto; }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin: 4px 0; }
.dialog-head p { margin: 0; color: var(--muted); }
.dialog-head button { align-self: start; border: 0; background: transparent; font-size: 25px; cursor: pointer; }
.customer-devices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.customer-devices article { display: flex; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.device-avatar { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 11px; background: #e7f3ee; color: var(--green); font-size: 20px; }
.customer-devices h3,.customer-devices p { margin: 0; }
.customer-devices p,.customer-devices small { display: block; margin-top: 4px; color: var(--muted); }
.customer-timeline { position: relative; margin: 8px 0 0; padding: 0 0 0 18px; list-style: none; }
.customer-timeline::before { position: absolute; top: 8px; bottom: 8px; left: 4px; width: 2px; background: var(--line); content: ''; }
.customer-timeline li { position: relative; display: grid; grid-template-columns: 135px minmax(0,1fr); gap: 18px; padding: 10px 0 17px 12px; }
.customer-timeline li::before { position: absolute; top: 14px; left: -18px; width: 10px; height: 10px; border: 3px solid var(--card); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); content: ''; }
.customer-timeline time { color: var(--muted); font-size: 9px; }
.customer-timeline strong,.customer-timeline small { display: block; }
.customer-timeline small { margin-top: 4px; color: var(--muted); }

@media (max-width: 1050px) {
  .customer-profile-layout { grid-template-columns: 240px minmax(0,1fr); }
  .customer-financial-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-order-cards>a { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  .customer-profile-head { align-items: flex-start; flex-direction: column; }
  .customer-profile-actions { width: 100%; flex-wrap: wrap; }
  .customer-profile-actions>.btn { flex: 1; }
  .customer-profile-layout { grid-template-columns: 1fr; }
  .customer-data-card { position: static; }
  .customer-profile-main { display: flex; flex-direction: column; }
  .customer-tabs { position: sticky; z-index: 3; top: 68px; order: -1; }
  .customer-summary-grid { grid-template-columns: 1fr 1fr; }
  .customer-summary-grid article:first-child { grid-column: 1/-1; }
  .customer-order-row { grid-template-columns: 1fr auto; }
  .customer-order-row>b { grid-column: 1/-1; text-align: left; }
  .customer-charge-form { grid-template-columns: 1fr; }
  .customer-charge-form .full { grid-column: auto; }
  .customer-devices { grid-template-columns: 1fr; }
  .customer-timeline li { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 480px) {
  .customer-summary-grid,.customer-financial-metrics { grid-template-columns: 1fr; }
  .customer-summary-grid article:first-child { grid-column: auto; }
  .customer-financial-alert { align-items: stretch; flex-direction: column; }
}

.dashboard-link { align-self: center; }
.orders-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.history-filter { position: relative; margin-left: auto; }
.history-filter summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--brown);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.history-filter summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.history-filter summary::-webkit-details-marker { display: none; }
.history-filter[open] summary { border-color: var(--brown); }
.history-filter form {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  right: 0;
  width: min(330px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 14px 35px #10251e26;
}
.history-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.history-filter-head strong { font-size: .88rem; }
.history-filter-head select { width: 88px; min-height: 36px; margin: 0; padding: 7px 9px; }
.history-month-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.history-month-grid button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb,var(--card) 86%,var(--cream));
  color: var(--ink);
  font: 700 .75rem inherit;
  cursor: pointer;
}
.history-month-grid button:hover,
.history-month-grid button.selected { border-color: var(--green); background: color-mix(in srgb,var(--green) 12%,var(--card)); color: var(--green); }
.history-filter form > a { display: block; margin-top: 13px; color: var(--brown); font-size: .75rem; font-weight: 800; text-align: center; }
.financial-empty { padding: 28px; text-align: center; }
.financial-empty strong { font-size: 1.15rem; }
.financial-empty p { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 760px) {
  .history-filter form { right: 0; }
}
@media (max-width: 480px) {
  .orders-tabs-row { align-items: flex-end; }
  .history-filter form { position: fixed; top: 78px; right: 16px; left: 16px; width: auto; }
}
.analytics-head { align-items: center; }
.analytics-actions { display: flex; align-items: end; gap: 10px; }
.dashboard-period { min-width: 175px; color: var(--muted); font-size: .68rem; }
.dashboard-period span { display: block; margin: 0 0 6px 2px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-period select { width: 100%; min-height: 39px; margin: 0; padding: 9px 34px 9px 11px; font-size: .78rem; font-weight: 700; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 14px; }
.analytics-metric { position: relative; min-width: 0; min-height: 133px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.analytics-metric::after { content: ''; position: absolute; inset: auto -28px -38px auto; width: 94px; height: 94px; border: 18px solid color-mix(in srgb,var(--green) 7%,transparent); border-radius: 50%; pointer-events: none; }
.analytics-metric span,.analytics-metric strong,.analytics-metric small { display: block; position: relative; z-index: 1; }
.analytics-metric span { color: var(--muted); font-size: .7rem; }
.analytics-metric strong { margin: 9px 0 8px; font: 800 clamp(1.25rem,2.2vw,1.75rem) Manrope; letter-spacing: -.035em; }
.analytics-metric small { color: var(--muted); font-size: .64rem; line-height: 1.35; }
.analytics-metric.primary-metric { grid-column: span 2; color: #fff; border-color: transparent; background: linear-gradient(135deg,var(--green),color-mix(in srgb,var(--green) 70%,#10251e)); }
.analytics-metric.primary-metric span,.analytics-metric.primary-metric small { color: #d9eee6; }
.analytics-metric.primary-metric::after { width: 150px; height: 150px; border-width: 28px; border-color: #ffffff0d; }
.analytics-metric.partner.lucas { border-top: 3px solid #e88672; }
.analytics-metric.partner.everton { border-top: 3px solid #55b89b; }
.analytics-metric.pending-warn { border-top: 3px solid var(--orange); background: #fdf3e8; }
.analytics-metric.pending-danger { border-top: 3px solid #c94f3c; background: #fbe9e6; }
.metric-change { margin-right: 3px; }
.metric-change.positive { color: #a9ead1; }
.metric-change.negative { color: #ffd0c7; }
.analytics-insights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.analytics-insights>div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb,var(--card) 82%,var(--cream)); }
.analytics-insights>div>span { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 9px; background: color-mix(in srgb,var(--green) 11%,var(--card)); color: var(--green); }
.analytics-insights p,.analytics-insights small,.analytics-insights strong { display: block; min-width: 0; margin: 0; }
.analytics-insights small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; }
.analytics-insights strong { margin: 2px 0; overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.analytics-insights p { overflow: hidden; color: var(--muted); font-size: .62rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.chart-card { min-width: 0; padding: 20px; }
.chart-card.chart-wide { grid-column: span 2; }
.chart-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 52px; }
.chart-card-head .kicker { font-size: .58rem; }
.chart-card-head h2 { margin: 4px 0 2px; font-size: 1rem; }
.chart-card-head p { margin: 0; color: var(--muted); font-size: .65rem; }
.chart-legend-note { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.dashboard-chart { width: 100%; height: 280px; margin-top: 4px; }
.dashboard-chart.chart-large { height: 320px; }
.dashboard-chart.chart-tall { height: 330px; }
.dashboard-empty { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; }
.dashboard-empty>span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb,var(--green) 12%,var(--card)); color: var(--green); font-size: 1.8rem; }
.dashboard-empty h2 { margin: 4px 0 0; font-size: 1.3rem; }
.dashboard-empty p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .analytics-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .analytics-metric.primary-metric { grid-column: span 2; }
  .analytics-insights { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .analytics-head { align-items: flex-start; }
  .analytics-actions { width: 100%; margin-top: 16px; }
  .dashboard-period { flex: 1; }
  .analytics-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-metric { min-height: 120px; padding: 17px; }
  .analytics-metric.primary-metric { grid-column: 1/-1; }
  .analytics-grid { grid-template-columns: 1fr; }
  .chart-card.chart-wide { grid-column: auto; }
  .dashboard-chart,.dashboard-chart.chart-large { height: 280px; }
}
@media (max-width: 480px) {
  .analytics-actions { align-items: stretch; flex-direction: column; }
  .analytics-actions .btn { width: 100%; margin-top: 0!important; }
  .analytics-metrics { gap: 9px; }
  .analytics-metric { min-height: 112px; padding: 15px 13px; }
  .analytics-metric strong { font-size: 1.18rem; }
  .analytics-insights { grid-template-columns: 1fr; gap: 7px; }
  .chart-card { padding: 16px 13px; }
  .chart-card-head { min-height: 58px; }
  .dashboard-chart,.dashboard-chart.chart-large { height: 265px; }
  .dashboard-chart.chart-tall { height: 360px; }
}

.profit-share-control {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--green) 5%, var(--card));
}

.profit-share-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.profit-share-values strong {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.profit-share-values strong:last-child {
  justify-content: flex-end;
  text-align: right;
}

.profit-share-values small {
  color: var(--muted);
  text-align: center;
}

.profit-share-control input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--green);
  direction: rtl;
  cursor: ew-resize;
}

.stock-payer-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.stock-payer-choice legend {
  margin-bottom: 7px;
  color: #59645f;
  font-size: 10px;
  font-weight: 700;
}

.stock-payer-choice > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.stock-payer-choice label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  cursor: pointer;
}

.stock-payer-choice input {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}

.stock-payer-choice label:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent);
}

.stock-payer-choice small {
  display: block;
  margin-top: 6px;
}

.option-share-form {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 9px;
  padding: 13px 14px 9px;
  border-top: 1px solid var(--line);
}

.expandable-option.is-expanded .option-share-form {
  display: block;
}

/* A regra estrutural dos adicionais é mais específica; preserve o mesmo
   estado recolhido usado pelos cartões da lista principal. */
.estimate-addon-option > .option-share-form { display: none; }
.estimate-addon-option.is-expanded > .option-share-form { display: block; }

.settings-menu a.settings-action { text-decoration: none; }
.trash-list { display: grid; gap: 12px; }
.trash-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.trash-item h3 { margin: 8px 0 4px; }
.trash-item p { margin: 0; color: var(--muted); }
.trash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trash-actions form { margin: 0; }
@media (max-width: 700px) { .trash-item { align-items: stretch; flex-direction: column; } .trash-actions, .trash-actions form, .trash-actions .btn { width: 100%; } }

/* Ajuste de preço incorporado ao cartão, sem ocupar uma seção inteira. */
.budget-options-admin .expandable-option.is-expanded .option-multiplier-form {
  display: flex;
  grid-area: auto;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  min-height: 30px;
}
.budget-options-admin .expandable-option.is-expanded .option-multiplier-form label {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}
.budget-options-admin .expandable-option.is-expanded .option-multiplier-form .markup-value { margin: 0; }
.budget-options-admin .expandable-option.is-expanded .profit-thermometer {
  flex: 0 1 320px;
  width: min(320px, 55%);
  margin: 0;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.budget-options-admin .expandable-option.is-expanded .profit-thermometer > div { height: 8px; margin: 0; }
.budget-options-admin .expandable-option.is-expanded .profit-thermometer [data-profit-marker] { width: 18px; height: 18px; }
.budget-options-admin .expandable-option.is-expanded .profit-thermometer strong,
.budget-options-admin .expandable-option.is-expanded .profit-thermometer small { display: none; }
@media (max-width: 600px) {
  .budget-options-admin .expandable-option.is-expanded .option-multiplier-form { gap: 8px; }
  .budget-options-admin .expandable-option.is-expanded .profit-thermometer { flex: 1 1 auto; width: auto; min-width: 120px; }
}

.option-share-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
}

.option-share-labels strong:first-child { color: #287a68; }
.option-share-labels strong:last-child { color: #c25c4b; text-align: right; }
.option-share-labels small { color: var(--muted); text-align: center; }
.option-share-form input[type="range"] { width: 100%; height: 22px; margin: 0; padding: 0; appearance: none; border: 0; background: transparent; cursor: ew-resize; }
.option-share-form input[type="range"]::-webkit-slider-runnable-track { height: 7px; border-radius: 99px; background: linear-gradient(90deg,#7bc5b2 0%,#7bc5b2 var(--share-position),#e89889 var(--share-position),#e89889 100%); }
.option-share-form input[type="range"]::-moz-range-track { height: 7px; border-radius: 99px; background: linear-gradient(90deg,#7bc5b2 0%,#7bc5b2 var(--share-position),#e89889 var(--share-position),#e89889 100%); }
.option-share-form input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -6px; appearance: none; border: 3px solid white; border-radius: 50%; background: #173c32; box-shadow: 0 1px 5px #14231e55; }
.option-share-form input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid white; border-radius: 50%; background: #173c32; box-shadow: 0 1px 5px #14231e55; }
.option-share-amounts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-top: 7px; font-size: 10px; }
.option-share-amounts span:first-child { color: #1d6d5a; }
.option-share-amounts span:last-child { color: #a94738; text-align: right; }
.option-share-amounts small { color: var(--muted); text-align: center; }

@media (max-width: 520px) {
  .profit-share-values {
    grid-template-columns: 1fr 1fr;
  }

  .profit-share-values small {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
