body.piro-bootstrap {
 --bs-body-bg:#f7f4f1;
 --bs-body-color:#212121;
 --bs-primary:#df2924;
 --bs-primary-rgb:223,41,36;
 --bs-link-color:#b8221d;
 --bs-link-hover-color:#921c18;
 --bs-border-color:#ded8d4;
 --pc-nav-width:15rem;
}
.piro-bootstrap header #logout{
 background:#f7f4f1;color:#9c1713;border:1px solid #fff;font-weight:700;
}
.piro-bootstrap header #logout:hover{background:#fff;color:#b11c16}
.piro-bootstrap header #logout:focus-visible{outline:3px solid #ffbf33;outline-offset:3px}
.piro-bootstrap .billing-tabular .table-wrap{overflow-x:auto}
.piro-bootstrap .billing-tabular table{display:table!important;min-width:680px;table-layout:auto}
.piro-bootstrap .billing-tabular thead{display:table-header-group!important}
.piro-bootstrap .billing-tabular tbody{display:table-row-group!important}
.piro-bootstrap .billing-tabular tr{display:table-row!important;border:0!important;background:transparent}
.piro-bootstrap .billing-tabular :is(td,th){display:table-cell!important;padding:.6rem .65rem;vertical-align:middle}
.piro-bootstrap .billing-tabular td::before{display:none!important}
.piro-bootstrap .billing-tabular [data-billing-subscription]{cursor:pointer}
.piro-bootstrap .billing-tabular [data-billing-subscription]:is(:hover,:focus-visible){background:#fff0ec!important;outline:2px solid #ca211c;outline-offset:-2px}
.piro-bootstrap button[data-action="record-new-reception"]{
 border:1px solid #ca211c;background:white;color:#b8221d;border-radius:.45rem;padding:.6rem .85rem;font-weight:600;
}
.piro-bootstrap button[data-action="record-new-reception"] .create-action-plus{
 color:#16803b;font-size:1.4em;font-weight:800;margin-right:.35rem;
}
.piro-bootstrap #workspace > .heading{margin-bottom:10px;gap:7px}
.piro-bootstrap #workspace > .heading h1{margin-bottom:.25rem}
.piro-bootstrap #content > .tools:empty{display:none}
.piro-bootstrap #content > .tools{margin-bottom:6px}
.piro-bootstrap #content > .fridge-room:first-of-type h2{margin-top:.18rem}
.piro-bootstrap .label-tools{margin:4px 0;gap:.5rem;align-items:center}
.piro-bootstrap .label-command,.piro-bootstrap .fridge-email-tools button{
 border:1px solid #ca211c;background:white;color:#b8221d;border-radius:.45rem;padding:.55rem .8rem;
}
.piro-bootstrap .label-return{border:0;background:transparent;color:#b8221d;padding:.4rem}
.piro-bootstrap .label-editor{max-width:850px}
.piro-bootstrap .label-editor label{margin:10px 0}
.piro-bootstrap .label-archive{margin-top:14px}
.piro-bootstrap .recipe-suggestions{display:flex;flex-direction:column;max-height:260px;overflow:auto}
.piro-bootstrap .recipe-suggestions button{text-align:left;border:1px solid #ddd;background:white;padding:.65rem}
.piro-bootstrap .fridge-email-tools{margin-top:14px}
.piro-bootstrap #content > .context-cards:has(> [data-action="haccp-sheets"], > [data-action="haccp-documents"], > [data-action="haccp-pests"], > [data-action="label-home"]){
 display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem;
}
.piro-bootstrap #content > .context-cards > button[data-action]{
 flex:0 1 auto;width:auto;min-height:44px;padding:.65rem 1rem;
 border:1px solid #ca211c;border-radius:.45rem;background:#fff;
 color:#b8221d;font-size:1rem;line-height:1.25;text-align:center;
}
.piro-bootstrap #content > .context-cards > button[data-action]:hover{
 background:#ca211c;color:#fff;
}
.piro-bootstrap #content > .context-cards > button[data-action]:focus-visible{
 outline:3px solid #df292455;outline-offset:2px;
}
@media(max-width:767px){
 .piro-bootstrap #content > .context-cards > button[data-action]{
  max-width:100%;min-height:40px;padding:.5rem .7rem;font-size:.875rem;
 }
}
.piro-bootstrap .btn-primary,.piro-bootstrap button.primary{
 --bs-btn-color:#fff;
 --bs-btn-bg:#ca211c;
 --bs-btn-border-color:#ca211c;
 --bs-btn-hover-color:#fff;
 --bs-btn-hover-bg:#aa1c18;
 --bs-btn-hover-border-color:#aa1c18;
 --bs-btn-active-color:#fff;
 --bs-btn-active-bg:#921914;
 --bs-btn-active-border-color:#921914;
 --bs-btn-focus-shadow-rgb:223,41,36;
 background:#ca211c;color:#fff;border-color:#ca211c;
}
.piro-bootstrap button.primary:hover,.piro-bootstrap .btn-primary:hover{background:#aa1c18;color:#fff}
.piro-bootstrap :is(.form-control,.form-select):focus{border-color:#df2924;box-shadow:0 0 0 .2rem #df292428}
.piro-bootstrap .form-select{max-width:100%;width:auto;min-width:0}
.piro-bootstrap label .form-select{width:100%}
.piro-bootstrap :is(.tools,.finance-tools){gap:.5rem}
.piro-bootstrap :is(#tabs,#monitor-drawer) :is(button,a).active{
 background:#ca211c;color:#fff;border-color:#ca211c;font-weight:700;
}
.piro-bootstrap :is(#tabs,#monitor-drawer) .secondary-nav.active{background:#dedede;color:#181818;border-color:#df2924}
.piro-bootstrap :is(.finance-nav,.activity-switch,.crm-nav) button.active{
 background:#ca211c;color:#fff;border-color:#ca211c;
}
.piro-bootstrap .context-card:hover{border-color:#df2924}
.piro-bootstrap .table{--bs-table-color:inherit;--bs-table-bg:transparent}
.piro-bootstrap .table td,.piro-bootstrap .table th{vertical-align:middle}
.piro-bootstrap :is(.finance-box,.finance-metric,.fridge-card){min-width:0}
.piro-bootstrap .task-summary{background:#ffbe20;color:#181818}
.piro-bootstrap .drawer-icon,.piro-bootstrap .logout-icon{
 width:1rem;height:1rem;flex:none;vertical-align:middle;pointer-events:none;
}
.piro-bootstrap :is(button[data-action^="archive-"],button[data-action*="delete"],button[data-fin*="delete"],button[data-file-action="remove"]){
 color:#b42318!important;
}
.piro-bootstrap :is(.record-card,.shop-order,.finance-box,.sensor-card,.context-card){padding:.65rem .75rem}
.piro-bootstrap :is(.record-card,.shop-order,.finance-box,.sensor-card,.panel)>p{margin-block:.25rem}
.piro-bootstrap .fridge-room h2{font-size:.9rem;margin:.55rem 0 .3rem}
.piro-bootstrap .fridge-room .fridge-cards{gap:.4rem}
.piro-bootstrap .fridge-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.15rem .45rem;padding:.5rem .65rem;min-height:0}
.piro-bootstrap .fridge-card:has(>details:not([open])) .fridge-link{padding-inline-end:3.15rem}
.piro-bootstrap .fridge-link strong{overflow-wrap:anywhere}
.piro-bootstrap .fridge-link small{grid-column:1/-1}
.piro-bootstrap .fridge-link .fridge-latest{display:block;font-weight:700;text-align:right;font-size:.82rem;color:#555;max-width:8rem}
.piro-bootstrap .fridge-link .fridge-latest.in-range{color:#155e36}
.piro-bootstrap .fridge-link .fridge-latest.out-of-range{color:#b42318}
.piro-bootstrap .overview-shortcuts{align-items:center;gap:.5rem}
.piro-bootstrap .overview-shortcuts>details{border:0;padding:0;margin:0;background:transparent}
.piro-bootstrap .overview-shortcuts>details>summary,.piro-bootstrap .overview-shortcuts>button{
 display:flex;align-items:center;justify-content:center;gap:.3rem;min-height:52px;margin:0;
 border:1px solid #aaa;border-radius:6px;font-size:1rem;padding:.6rem .9rem;line-height:1.2;
}
@media screen and (max-width:767.98px){
 .piro-bootstrap .overview-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.35rem}
 .piro-bootstrap .overview-shortcuts>details>summary,.piro-bootstrap .overview-shortcuts>button{
  width:100%;height:44px;min-height:44px;padding:.2rem .35rem;font-size:.76rem;text-align:center;overflow-wrap:anywhere;
 }
 .piro-bootstrap header #logout:not([hidden]){display:inline-flex;align-items:center;gap:.25rem;min-height:40px;margin-inline-start:auto;flex:none}
 .piro-bootstrap header #identity{min-width:0;flex:1}
 .piro-bootstrap #content tr{padding:.5rem .65rem;margin:.4rem 0}
 .piro-bootstrap #content td{padding-block:.2rem;gap:.35rem}
}
@media screen and (min-width:768px) {
 /* Keep register width independent of viewport-relative padding. */
 .piro-bootstrap main:has(#register){padding-inline:16px;min-width:0}
 .piro-bootstrap main:has(#register)>nav{flex-wrap:wrap;gap:6px;margin-block:12px 8px}
 .piro-bootstrap #register th,.piro-bootstrap #register td{padding:8px 6px}
 .piro-bootstrap #charts.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .piro-bootstrap .radio-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
 .piro-bootstrap:has(#workspace:not([hidden])) #tabs,
 .piro-bootstrap.administrator:has(#monitor-drawer) #monitor-drawer{
  display:flex!important;position:fixed;inset:0 auto 0 0;width:var(--pc-nav-width);
  transform:none;box-shadow:none;padding:5rem .875rem 1rem;z-index:20;
 }
 .piro-bootstrap:has(#workspace:not([hidden])) > main,
 .piro-bootstrap.administrator:has(#monitor-drawer) > main{
  width:calc(100% - var(--pc-nav-width));max-width:none;margin:0 0 0 var(--pc-nav-width);
 }
 .piro-bootstrap:has(#workspace:not([hidden])) > header,
 .piro-bootstrap.administrator:has(#monitor-drawer) > header{position:relative;z-index:21}
 .piro-bootstrap:has(#workspace:not([hidden])) #menu-toggle,
 .piro-bootstrap.administrator:has(#monitor-drawer) #monitor-menu,
 .piro-bootstrap #monitor-menu-close,
 .piro-bootstrap #tabs.drawer-open+#menu-backdrop{display:none}
}

/* Keep the first navigation entry below the actual header, including the brand image. */
.piro-bootstrap:has(#workspace:not([hidden])) #tabs{padding-top:calc(var(--pc-header-height, 90px) + .75rem)}

/* Keep error counts legible inside refrigerator links and visible on mobile. */
.piro-bootstrap .fridge-link .error-badge14,.piro-bootstrap #tabs .error-badge14{color:#fff;display:inline-flex}
.device-tabular small{display:block}.device-tabular{max-width:100%;overflow-x:auto}.device-tabular table{width:100%;font-size:.85rem}.device-tabular :is(th,td){padding:.3rem .4rem}.device-tabular td:nth-child(2){min-width:160px;overflow-wrap:anywhere}
