:root{color-scheme:light;--ink:#201e1b;--stone:#eceae6;--paper:#faf9f6;--line:#d9d5cd;--muted:#605b53;--green:#465748;font-family:Cardo,Georgia,serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}a{color:inherit;text-underline-offset:4px}button,.button{border:1px solid var(--ink);background:var(--ink);color:#fff;padding:.62rem .95rem;border-radius:5px;cursor:pointer;min-height:44px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}button.alt,.button.alt{background:transparent;color:var(--ink);border-color:#9a9489}button:hover,.button:hover{filter:brightness(.85)}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #647966;outline-offset:3px}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:var(--stone);border-right:1px solid var(--line);padding:19px 15px;overflow:auto}.logo{display:block;width:100%;max-width:183px;aspect-ratio:1;object-fit:contain;margin:0 auto}.nav{display:grid;gap:5px}.nav a{display:block;text-decoration:none;border-radius:5px;padding:11px 12px;white-space:nowrap}.nav a[aria-current=page]{background:#fff9;box-shadow:inset 2px 0 var(--ink);font-weight:700}.main{padding:clamp(24px,5vw,66px);width:100%;max-width:1440px;margin:auto auto auto 0;align-self:start}.loading,.public{max-width:650px;margin:30px auto;padding:24px}.public .logo{max-width:135px}.heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:28px;flex-wrap:wrap}h1,h2,h3,p{margin-top:0}h1{font-weight:400;font-size:clamp(2.2rem,5vw,3.7rem);line-height:1.02;letter-spacing:-.04em;margin-bottom:.5rem}h2{font-weight:400;font-size:1.65rem;margin-bottom:.7rem}h3{font-size:1.12rem;margin-bottom:.55rem}p{line-height:1.48}p:last-child{margin-bottom:0}.muted,small{color:var(--muted)}small{font-size:.9rem}.hero{background:var(--stone);padding:clamp(22px,4vw,42px);border:1px solid var(--line);border-radius:8px 8px 45px 8px;margin-bottom:22px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));gap:14px}.panel,.card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:8px}.panel{margin-bottom:16px}.metric{font-size:2.15rem;margin:0}.table{overflow:auto;background:white;border:1px solid var(--line);border-radius:7px}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:11px 13px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f3f1ed;white-space:nowrap}tr:last-child td{border-bottom:0}.filters,.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr));gap:12px}.filters{margin-bottom:15px}label{display:grid;gap:4px;align-content:start}input,select,textarea{width:100%;min-height:44px;background:white;border:1px solid #a9a397;border-radius:4px;padding:8px 10px;font-size:1rem}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--green)}label.check{display:flex;align-items:center;gap:8px}textarea{min-height:78px;resize:vertical}.form{display:grid;gap:13px}.form .panel{margin-bottom:0}.form .grid+.grid{margin-top:12px}.error{color:#922b20}.notice{margin:.7rem 0;color:var(--green)}.pill{display:inline-block;background:var(--stone);border-radius:20px;padding:3px 9px;font-size:.9rem}.supply-row{display:grid;grid-template-columns:minmax(180px,2fr) 1fr 1fr minmax(105px,1fr) auto;gap:8px;align-items:end;margin:9px 0}.cost{background:#eef0ea;border-color:#ccd2c7}.cost-lines{padding-left:1.2rem}.list{display:grid;gap:10px}.item{border-bottom:1px solid var(--line);padding-bottom:10px}.item:last-child{border:0;padding:0}.swatch{width:50px;height:38px;border:1px solid var(--line);border-radius:4px;display:inline-block;vertical-align:middle;margin-right:8px}.stone{background:var(--stone)}.black{background:#000}.brand-mark{width:min(195px,100%);border:1px solid var(--line);border-radius:90px 90px 4px 4px}.compact{font-size:.92rem}.spaced{margin-top:14px}details summary{cursor:pointer}dialog{max-width:min(710px,calc(100vw - 22px));width:100%;max-height:90dvh;border:1px solid var(--line);border-radius:10px;padding:22px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#201e1b85}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:10px}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;height:auto;padding:3px 12px 8px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .logo{width:100px;height:68px;object-fit:cover}.nav{display:flex;overflow:auto}.nav a{padding:9px 10px;min-height:44px}.main{padding:21px 14px}.supply-row{grid-template-columns:1fr 1fr}.supply-row label:first-child{grid-column:1/-1}.panel,.card{padding:15px}.heading{margin-bottom:18px}}
@media(min-width:761px){.supply-row{grid-template-columns:minmax(120px,1fr) minmax(125px,1fr) minmax(145px,1.4fr) minmax(78px,.65fr) minmax(72px,.55fr) auto}.supply-row>label:last-child:nth-child(7){grid-column:2/5}.table button+button{margin-left:5px}}
.order-line{border-bottom:1px solid var(--line);padding:.65rem 0;margin-bottom:.65rem}.order-line>.button,.order-line>button{margin-top:.45rem}.table td:last-child button{margin:.18rem .25rem .18rem 0}.hero+.panel{margin-top:16px}
.action-menu{
  position:relative;display:inline-grid;inline-size:44px;block-size:44px;place-items:center;
  border:1px solid var(--line);border-radius:8px;background:var(--paper);cursor:pointer;vertical-align:middle
}
.action-menu:focus-within{outline:2px solid var(--green);outline-offset:2px}
.action-menu select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.menu-dots{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:4px;height:4px;border-radius:50%;background:currentColor;box-shadow:-7px 0 currentColor,7px 0 currentColor}
.order-details,.order-line,.order-custom:not([hidden]){display:grid;gap:.9rem}.order-details .grid,.order-line .grid{column-gap:1rem;row-gap:.9rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}.order-line{border:1px solid var(--line);border-radius:8px;padding:1rem;margin:0}.order-line>button{justify-self:start;margin:0}#order-lines{display:grid;gap:.85rem}.order-custom{min-width:0;border:0;padding:0;margin:0}.order-custom[hidden]{display:none}
@media(max-width:540px){.order-details .grid,.order-line .grid{grid-template-columns:1fr 1fr}.order-line [name=orderProduct]{min-width:0}}
.order-details{gap:1rem;margin-bottom:.2rem}.order-details .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.order-details label,.order-details input,.order-details select{min-width:0}.order-details input[type=date]{max-width:100%}
@media(max-width:370px){.order-details .grid{grid-template-columns:minmax(0,1fr)}}
.order-filter-actions{margin-bottom:1rem}
#sale-recipe,#sale-extras{display:grid;gap:.85rem}.sale-part,.sale-extra{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.65rem;align-items:end}.sale-extra{padding-top:.65rem;border-top:1px solid var(--line)}.sale-extra button{justify-self:start}
[data-form="adjust-sale"] label[hidden]{display:none}
[data-form="supply"] label[hidden]{display:none}
[data-form="preset"] label[hidden]{display:none}
[data-form="order"] label[hidden]{display:none}
.order-insights{margin:0 0 1rem}

.production-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,1.4fr);gap:16px;align-items:start}
.production-orders{display:grid;gap:8px;margin-top:14px}
.production-order{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line);border-radius:6px;cursor:pointer}
.production-order:has(:checked){background:var(--paper)}
.production-order>input{margin:3px 0 0}
.production-order>span{display:grid;gap:4px;overflow-wrap:anywhere}
.production-materials{display:grid;gap:14px}
.production-materials section{border:1px solid var(--line);border-radius:6px;overflow:hidden}
.production-materials h3{margin:0;padding:9px 12px;background:#f3f1ed}
.production-materials ul{margin:0;padding:0;list-style:none}
.production-materials li{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;overflow-wrap:anywhere}
.production-materials li+li{border-top:1px solid var(--line)}
.production-amount{display:grid;text-align:right;white-space:nowrap}
.production-warning{padding:12px;background:#f8f2e9;border-radius:6px;margin-bottom:16px}
.production-warning ul{padding-left:1.2rem;margin-bottom:0}
.production-warning li+li{margin-top:10px}
.production-warning button{margin-top:4px}
@media(max-width:850px){.production-layout{grid-template-columns:minmax(0,1fr);gap:0}}

.candle-status select{min-width:10.75rem}
.candle-status .error:not(:empty){margin:.4rem 0 0}
.candle-status button{margin-top:.4rem}

.order-payment{display:grid;gap:.4rem;justify-items:start}
.payment-paid{background:#e1efe3;color:#30543b}
.payment-unpaid{background:#f5e3e2;color:#7e4341}
.payment-partial{background:#f5ead5;color:#674e23}

.status-pink{background:#f6e0ea;color:#76394f}
.status-orange{background:#f7e4d3;color:#7c4622}
.status-green{background:#e1efe3;color:#30543b}
.status-blue{background:#dfedf7;color:#31546c}

.packaging-fields{margin:.65rem 0 1rem}
.packaging-fields h3{margin:0 0 .5rem}

.order-jar-label{margin:.65rem 0;max-width:34rem}
.order-packaging-extras h4{margin:.3rem 0}

/* Shared page, panel and field spacing. */
:root{--field-gap:1rem;--section-gap:1.25rem}
.main,.heading>*,.panel,.card,.table,.form>*,
.grid>*,.filters>*,.supply-row>*,.fixed-field,fieldset,label{min-inline-size:0}
.heading,.panel,.card,.form label{overflow-wrap:anywhere}
.heading>.actions:empty,.form>.error:empty,.order-packaging-extras:empty{display:none}
.panel,.card{padding:clamp(1rem,2vw,1.5rem)}
.form,.filters,.grid{gap:var(--field-gap)}
.grid,.filters,.supply-row{align-items:end}
.form .grid+.grid,.panel>.grid+label,.panel>label+label,.panel>.grid+.check{margin-top:var(--field-gap)}
.form .check{margin-bottom:.25rem}
label,.fixed-field{line-height:1.35;gap:.35rem}
input,select,textarea{display:block;min-inline-size:0;max-inline-size:100%}
input[type=date]{
  -webkit-appearance:none;appearance:none;display:block;inline-size:100%;
  min-inline-size:0;max-inline-size:100%;text-align:start;background-color:white
}
input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:start;margin:0}
input[type=date]::-webkit-datetime-edit{padding:0}
.fixed-field{display:grid}
.fixed-field>div{
  min-height:44px;padding:8px 10px;border:1px solid #a9a397;border-radius:4px;
  display:flex;align-items:center;background:#f5f2ed;overflow-wrap:anywhere
}
dialog{width:min(56rem,calc(100% - 2rem));max-width:none;max-height:calc(100dvh - 2rem);padding:clamp(1rem,2.5vw,1.75rem)}
.dialog-head{align-items:center;gap:var(--field-gap);margin-bottom:var(--section-gap)}
.dialog-head>h2{margin:0;min-width:0;overflow-wrap:anywhere}
.dialog-head>button{flex:none}
.order-details,.order-details .grid,.order-line,.order-line .grid,.order-custom:not([hidden]),#order-lines{gap:var(--field-gap)}
.order-details>.grid+.grid{margin-top:0}
.order-line,.order-details{min-width:0}
.order-line .grid,.order-box-fields .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-custom>details{min-width:0}
.order-line .order-recipe>summary{padding:.5rem 0}
.order-box-fields,.order-jar-label{margin:0}
.order-packaging:not([hidden]){display:grid;gap:var(--field-gap)}
[data-action=add-preset-supply][hidden]{display:none}
.order-jar-label{max-width:36rem;padding:var(--field-gap) 0}
.supply-row{
  grid-template-columns:minmax(0,1.05fr) minmax(0,1.1fr) minmax(0,1.75fr) minmax(0,.65fr) minmax(0,.65fr) auto;
  gap:.75rem;margin:0;padding:.85rem 0;border-bottom:1px solid var(--line)
}
.supply-row>label:last-child:nth-child(7){grid-column:2/6}
.supply-row+button,.preset-recipe-lines+button,#lines+button{margin-top:var(--field-gap)}
.order-unit-production-cost{display:grid;gap:.2rem;background:var(--stone);border-radius:5px;padding:.65rem .85rem}
.order-production-cost{font-weight:700}
.table{max-inline-size:100%;overscroll-behavior-inline:contain}
.table td{overflow-wrap:break-word}
.table td .button,.table td button{flex-shrink:0;white-space:nowrap;overflow-wrap:normal}
.table td:last-child .actions button{margin:0}
.presets-table th:first-child{min-width:8rem}
.presets-table th:last-child{width:1%}
.register-table th:nth-child(2),.register-table td:nth-child(4),.register-table td:nth-child(5){white-space:nowrap}
[data-form=candle] .order-jar-label{max-width:25rem}
#lines{container-type:inline-size}
.table td:last-child button{margin:0}
.table td:last-child button+button{margin:.25rem 0 0}

/* Fit order rows to the workspace width, including when the sidebar is visible. */
.main{container:workspace / inline-size}
.order-table :is(th,td):nth-child(2){min-width:12.5rem}
.order-table :is(th,td):nth-child(5){width:28%}
.order-table :is(th,td):nth-child(8){text-align:right}
.order-table td :is(.order-inline-status,.order-payment) select{min-width:6rem}
.order-cell-label{display:none}
.order-products{list-style:none;padding:0;margin:0;display:grid;gap:.65rem}
.order-products li{min-inline-size:0}
.order-products li+li{border-top:1px solid var(--line);padding-top:.65rem}
.order-products small{display:block;margin-top:.2rem}
.order-materials-caption{display:block;margin-top:.4rem}
.order-table th:last-child,.order-table td:last-child{width:1%;text-align:right}
.order-table td:nth-child(3),.order-table td:nth-child(4),.order-table td:nth-child(8){white-space:nowrap}

@container workspace (max-width:74rem){
  .order-table{background:transparent;border:0;border-radius:0;overflow:visible}
  .order-table table,.order-table tbody{display:block}
  .order-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .order-table tbody{display:grid;gap:var(--field-gap)}
  .order-table tbody tr{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) repeat(2,minmax(0,1fr));
    gap:var(--field-gap);
    padding:clamp(.9rem,2vw,1.25rem);border:1px solid var(--line);border-radius:8px;background:white
  }
  .order-table td{padding:0;border:0;min-width:0}
  .order-table td:nth-child(2){min-width:0}
  .order-table td:nth-child(5){grid-column:1/-1;width:auto;padding:.85rem 0;border-block:1px solid var(--line)}
  .order-table td:last-child{width:auto;align-self:center;justify-self:end}
  .order-cell-label{display:block;margin-bottom:.3rem;color:var(--muted);font-size:.88rem}
}
@container workspace (max-width:35rem){
  .order-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:761px) and (max-width:1280px){
  .shell{grid-template-columns:clamp(10.5rem,18vw,13.625rem) minmax(0,1fr)}
  .sidebar{padding:1rem .65rem}
  .sidebar .logo{max-width:9rem}
  .main{padding:clamp(1rem,3.2vw,2.5rem)}
}
@media (max-width:760px), (max-width:950px) and (max-height:550px){
  .shell{display:block}
  .sidebar{position:relative;height:auto;padding:.3rem clamp(.85rem,3vw,1.75rem) .5rem;border-right:0;border-bottom:1px solid var(--line)}
  .sidebar .logo{width:100px;height:68px;object-fit:cover}
  .nav{display:flex;overflow:auto}
  .nav a{padding:.6rem .8rem;min-height:44px}
  .main{padding:clamp(1rem,3.2vw,2.5rem)}
}
@media(max-width:760px){
  .supply-row{grid-template-columns:repeat(6,minmax(0,1fr))}
  .supply-row>label:first-child,.supply-row>label:nth-child(2){grid-column:span 3}
  .supply-row>label:nth-child(3){grid-column:1/-1}
  .supply-row>label:nth-child(4),.supply-row>label:nth-child(5),.supply-row>button{grid-column:span 2}
  .supply-row>label:last-child:nth-child(7){grid-column:1/-1}
}
@container (max-width:40rem){
  .supply-row{grid-template-columns:repeat(6,minmax(0,1fr))}
  .supply-row>label:first-child,.supply-row>label:nth-child(2){grid-column:span 3}
  .supply-row>label:nth-child(3){grid-column:1/-1}
  .supply-row>label:nth-child(4),.supply-row>label:nth-child(5),.supply-row>button{grid-column:span 2}
  .supply-row>label:last-child:nth-child(7){grid-column:1/-1}
}
@media(max-width:560px){
  dialog{width:calc(100% - 1rem);max-height:calc(100dvh - 1rem)}
  .order-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-custom .grid>.order-container-picker,
  .order-custom .grid>label:has(>select[name=orderFragrance]){grid-column:1/-1}
  .order-box-fields .grid{grid-template-columns:minmax(0,1fr)}
  .order-line{padding:.8rem}
}
@media(max-width:360px){
  .order-details .grid{grid-template-columns:minmax(0,1fr)}
  .supply-row>button{grid-column:1/-1;justify-self:start}
}

.product-image-preview{display:block;width:96px;height:96px;object-fit:contain;margin-bottom:.75rem;border-radius:6px;background:var(--paper)}
.product-image-preview[hidden]{display:none}

.order-table .customer-history-link{
  display:inline;min-height:0;padding:0;border:0;border-radius:0;background:none;color:var(--ink);
  text-align:left;text-decoration:underline;text-underline-offset:.18em;white-space:normal;overflow-wrap:break-word;
}
.customer-sales{display:block;margin-top:.25rem}
.customer-sales>small{font-size:inherit}

.dashboard-section+.dashboard-section,.inventory-investment{margin-top:clamp(1.75rem,4vw,3rem)}
.dashboard-section .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-section .card .metric+.muted{margin-top:.25rem}
.dashboard-section .card .metric+.list{margin-top:.5rem}
.purchase-orders-table :is(th,td):nth-child(4),
.purchase-items-table :is(th,td):last-child{text-align:right;white-space:nowrap}
.purchase-orders-table :is(th,td):last-child{text-align:right;width:1%}
@media(min-width:761px){
  .main{margin-inline:auto;padding-inline:clamp(1.5rem,3.2vw,3.5rem)}
  .heading{align-items:center}
  .heading h1:last-child,.heading p:last-child{margin-bottom:0}
  .table td{vertical-align:middle}
  .dashboard-section .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}
  .progress-page .materials-breakdown{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem}
  .progress-page .materials-donut{flex:0 1 12.5rem;margin:.2rem auto}
  .progress-page .materials-legend{flex:1 1 min(100%,14rem)}
}
@media(max-width:560px){
  .purchase-orders-table table,.purchase-orders-table tbody{display:block}
  .purchase-orders-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .purchase-orders-table tr{
    display:grid;grid-template-columns:1fr auto;gap:.35rem .75rem;
    padding:.85rem;border-bottom:1px solid var(--line)
  }
  .purchase-orders-table tr:last-child{border-bottom:0}
  .purchase-orders-table td{padding:0;border:0}
  .purchase-orders-table td:nth-child(2){grid-row:1;grid-column:1;font-weight:700}
  .purchase-orders-table td:nth-child(3){grid-column:1}
  .purchase-orders-table td:nth-child(4){grid-row:1;grid-column:2}
  .purchase-orders-table td:last-child{grid-row:2/4;grid-column:2;align-self:center;width:auto}
}
@media(max-width:355px){
  .dashboard-section .cards{grid-template-columns:1fr}
}

/* Customer candle requests */
.candle-request{max-width:58rem;margin-block:2rem 4rem}
.candle-request header{text-align:center;margin-bottom:2rem}
.candle-request header .logo{margin:0 auto clamp(1rem,3vw,1.5rem);width:clamp(7rem,22vw,10rem);max-width:100%;border-radius:50%}
.candle-request legend{padding-inline:.4rem;font-size:1.15rem;font-weight:700}
.candle-request [hidden]{display:none}
.request-fragrance-profile{margin-top:.8rem;padding:.65rem .85rem;border-left:2px solid var(--line)}
.request-fragrance-profile p{margin:0}
.request-fragrance-profile p:not([hidden])+p{margin-top:.4rem}
.request-fragrance-notes{color:var(--muted);font-size:.9rem;white-space:pre-line}
.candle-request .request-confirmation{text-align:center;max-width:34rem;margin-inline:auto}
.request-choices{margin-block:1rem;display:grid;gap:var(--field-gap)}
.request-stock-group{min-width:0}
.request-stock-group h3{font-size:1rem;margin-bottom:.6rem}
.request-stock-unavailable{border-top:1px solid var(--line);padding-top:.75rem}
.request-stock-unavailable .request-jar{background:#f5f2ef}
.request-stock-note{margin:0 0 .75rem}
.request-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,10rem),11rem));justify-content:start;gap:var(--field-gap)}
.request-jar{display:grid;gap:.35rem;padding:.75rem;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.request-jar img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:5px;background:#fff}
.request-jar input{width:1rem;min-height:1rem;margin:0;accent-color:var(--green)}
.request-jar:has(input:checked){outline:2px solid var(--green)}
.request-jar:has(input:disabled){opacity:.65;cursor:default}
.request-details{display:grid;gap:var(--field-gap)}
.request-details label small{display:inline;font-weight:400}
.request-total p{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.5rem;margin:0}
.request-total strong{font-size:1.35rem}

.request-product{min-width:0;margin-inline:0}
.request-product:last-child{margin-bottom:0}

.fragrance-tabs{margin-bottom:var(--field-gap)}
.fragrance-inventory-details:not([hidden]){display:grid;gap:var(--field-gap)}
.fragrance-inventory-details[hidden]{display:none}

.fragrance-note-lines{margin-block:1em .35rem;color:var(--muted);font-size:.9rem}
.fragrance-notes-heading{display:block;color:var(--ink)}

.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.45rem;min-height:1.45rem;margin-left:.45rem;padding:0 .3rem;border-radius:99px;background:#f3dce3;color:#632c40;font-size:.8rem;font-weight:700;vertical-align:middle}
.nav-count[hidden],.without-test-labels .order-jar-label,.without-test-labels .candle-packaging label:has(:is([name=boxFrontLabelId],[name=boxTopLabelId])),.without-test-labels .candle-packaging .fixed-field:has(:is([name=boxFrontLabelId],[name=boxTopLabelId])){display:none}
.candle-status select{min-width:0;width:auto;max-width:100%;min-height:2.35rem;padding:.3rem .5rem;font-size:.9rem;border-radius:99px}
.candle-status .error:empty{display:none}
.test-filters{max-width:32rem}
.register-table td:last-child{text-align:right;width:1%}
.register-table .order-cell-label{display:none}
#lines{margin-top:.5rem}
.request-intro{max-width:39rem;margin:1rem auto 0;text-wrap:pretty}
.request-intro p{margin-bottom:.65rem}
.candle-request .request-confirmation{padding:clamp(1rem,3vw,2rem);background:white;border:1px solid var(--line);border-radius:8px}
.candle-request .request-confirmation h2{margin-bottom:1rem}
@media(max-width:660px){
  .register-table{background:none;border:0;overflow:visible}
  .register-table table,.register-table :is(thead,tbody){display:block}
  .register-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .register-table tbody{display:grid;gap:var(--field-gap)}
  .register-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;padding:1rem;border:1px solid var(--line);border-radius:8px;background:white}
  .register-table td{border:0;padding:0;white-space:normal;min-width:0}
  .register-table td:first-child{grid-column:1/-1}
  .register-table td:first-child .order-cell-label{display:none}
  .register-table td:last-child{width:auto;justify-self:end}
  .register-table .order-cell-label{display:block}
  .request-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.order-inline-status select,.order-payment select{width:auto;max-width:100%;min-height:2.35rem;padding:.3rem .5rem;font-size:.9rem;border-radius:99px}
.order-inline-status .error:empty,.order-payment .error:empty{display:none}

.progress-page{display:grid;gap:var(--section-gap)}
.progress-page .panel{margin-bottom:0;min-width:0}
.progress-period{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.3rem 1rem;margin-bottom:.65rem}
.progress-period :is(h2,p){margin:0}
.progress-headline,.progress-overview{display:grid;gap:var(--field-gap)}
.progress-headline{--progress-green:#e1efe3;--progress-red:#f7e3e0;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:.7rem}
.progress-headline .card{display:flex;flex-direction:column;justify-content:space-between;padding:0;overflow:hidden}
.progress-headline .card h3{padding:.8rem 1.25rem;margin:0}
.progress-headline .card .metric{padding:.85rem 1.25rem}
.progress-headline .card:first-child h3{background:var(--progress-green);color:#30543b}
.progress-headline .card:nth-child(2) h3{background:var(--progress-red);color:#753b35}
.progress-headline[data-balance="positive"] .card:last-child{background:var(--progress-green);color:#30543b}
.progress-headline[data-balance="negative"] .card:last-child{background:var(--progress-red);color:#753b35}
.progress-headline[data-balance="even"] .card:last-child{background:var(--stone)}
.progress-headline .metric{font-size:clamp(1.6rem,3vw,2.2rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.progress-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.progress-overview{grid-template-columns:1fr}}
@media(max-width:560px){.progress-headline{grid-template-columns:1fr}}
.progress-overview .metric{margin:.4rem 0 .65rem}
.progress-overview .panel>.muted:last-child{margin-bottom:0}
.progress-amounts{display:grid;margin:1rem 0;gap:.35rem}
.progress-amounts>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;padding:.55rem 0;align-items:baseline}
.progress-amounts dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.progress-subtotal{border-top:1px solid var(--line);font-weight:700}
.progress-subtotal:last-child{background:#eceae6;border:0;border-radius:4px;padding:.65rem}
.progress-monthly summary{cursor:pointer;font-weight:700}
.progress-monthly[open] summary{margin-bottom:.75rem}
.progress-bars{list-style:none;margin:.75rem 0;padding:0;display:grid;gap:.65rem}
.progress-bars li{display:grid;grid-template-columns:minmax(5rem,1fr) minmax(2rem,1.4fr) auto;align-items:center;gap:.6rem}
.progress-bars strong,.progress-table td:not(:first-child){font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.progress-track{display:grid;height:.65rem;border-radius:4px;background:#eceae6;overflow:hidden}
.progress-track-signed{grid-template-columns:1fr 1fr}
.progress-track-signed::after{content:"";grid-area:1/2;border-left:1px solid #79736b;pointer-events:none}
.progress-track progress{appearance:none;width:100%;height:100%;border:0;background:transparent;color:#526854}
.progress-track progress::-webkit-progress-bar{background:transparent}
.progress-track progress::-webkit-progress-value{background:#526854;border-radius:4px}
.progress-track progress::-moz-progress-bar{background:#526854;border-radius:4px}
.progress-track-signed .progress-bar-gain{grid-area:1/2}
.progress-track-signed .progress-bar-loss{grid-area:1/1;transform:scaleX(-1);color:#94554d}
.progress-track .progress-bar-loss::-webkit-progress-value{background:#94554d}
.progress-track .progress-bar-loss::-moz-progress-bar{background:#94554d}
.overview-materials .panel{margin:var(--field-gap) 0 0}
.overview-materials .materials-breakdown{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem clamp(1rem,4vw,3rem)}
.overview-materials .materials-donut{flex:0 1 12.5rem;margin:.2rem auto}
.overview-materials .materials-legend{flex:1 1 min(100%,16rem)}
.materials-donut{position:relative;width:min(100%,12.5rem);margin:.2rem auto .8rem}
.materials-donut svg{display:block;width:100%;height:auto}
.materials-donut-total{position:absolute;inset:0;display:grid;place-content:center;text-align:center;line-height:1.25}
.materials-donut-total strong{font-size:1.2rem;font-variant-numeric:tabular-nums}
.materials-donut-total small{font-size:.82rem}
.materials-slice-0{--slice-colour:#628269}
.materials-slice-1{--slice-colour:#bc7775}
.materials-slice-2{--slice-colour:#c39358}
.materials-slice-3{--slice-colour:#7b7299}
.materials-donut circle{stroke:var(--slice-colour)}
.materials-legend{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}
.materials-legend li{display:grid;grid-template-columns:.7rem minmax(0,1fr) auto;align-items:center;gap:.6rem}
.materials-legend strong{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.materials-key{width:.7rem;height:.7rem;border-radius:50%;background:var(--slice-colour)}
.progress-table td:first-child{white-space:nowrap}

[data-form="burn"]{gap:var(--section-gap);min-inline-size:0}
.burn-section{min-inline-size:0}
.burn-section+.burn-section{border-top:1px solid var(--line);padding-top:var(--section-gap)}
.burn-section h3{margin:0 0 .7rem}
.burn-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--field-gap);align-items:end}
.burn-fields+.burn-fields,.burn-fields+label{margin-top:var(--field-gap)}
.burn-fields label{min-inline-size:0}
.burn-timing{grid-template-columns:repeat(3,minmax(0,1fr))}
.burn-timing input[type="time"]{
  -webkit-appearance:none;appearance:none;inline-size:100%;min-inline-size:0;text-align:start
}
.burn-timing input[type="time"]::-webkit-date-and-time-value{min-width:0;text-align:start;margin:0}
.burn-timing input[type="time"]::-webkit-datetime-edit{padding:0}
.burn-fields label:has([name="pool"]){grid-column:1/-1}
[data-burn-measurements]{margin:0}
[data-burn-measurements]:not(:empty){margin-top:.65rem}
[data-form="burn"]>.error:empty{display:none}
@media (max-width:560px){
  .burn-timing{grid-template-columns:repeat(2,minmax(0,1fr))}
  .burn-timing>label:first-child,.burn-fields:has([type="file"])>label{grid-column:1/-1}
}
@media (max-width:350px){
  .burn-fields,.burn-timing{grid-template-columns:minmax(0,1fr)}
}

.customer-invoice {
  color: #000;
  background: #fff;
  font-family: Cardo, Georgia, serif;
  font-size: 1rem;
  padding: clamp(12px, 3vw, 32px);
  overflow-wrap: anywhere;
}
.invoice-masthead, .invoice-addresses, .invoice-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.invoice-masthead { align-items: center; }
.invoice-masthead img { width: 100%; max-width: 260px; display: block; }
.invoice-masthead > div { text-align: right; }
.invoice-masthead h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 6px; }
.customer-invoice table { width: 100%; border-collapse: collapse; table-layout: auto; }
.customer-invoice th, .customer-invoice td { padding: 8px 5px; text-align: right; vertical-align: top; }
.customer-invoice th:first-child, .customer-invoice td:first-child { text-align: left; width: 55%; }
.customer-invoice td:not(:first-child) { white-space: nowrap; }
.customer-invoice th { background: #ECEAE6; }
.customer-invoice td { border-bottom: 1px solid #ECEAE6; }
.invoice-summary { margin-top: 20px; }
.invoice-summary dl, .invoice-summary dd, .invoice-status { margin: 0; }
.invoice-summary dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.invoice-summary dl > div:last-child { font-weight: bold; border-top: 1px solid #000; }
.customer-invoice footer { padding-top: 16px; border-top: 1px solid #ECEAE6; }
@media screen and (max-width: 540px) {
  .customer-invoice { padding: 8px; font-size: .9rem; }
  .invoice-addresses, .invoice-summary { grid-template-columns: 1fr; }
  .customer-invoice th, .customer-invoice td { padding-inline: 3px; }
}
