.register-heading {
    align-items: center;
    gap: 12px;
}

.register-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.register-filters label {
    display: grid;
    gap: 4px;
    margin: 0;
    min-width: 0;
    font-size: 13px;
}

.register-filters .date-entry { width: 157px; }
.register-filters .date-entry [data-date-text] { width: 114px; padding-inline: 6px; font-size: 14px; }
.register-filters .date-entry [data-date-open] { flex-basis: 36px; margin: 0; }
.register-filters :is(input[type="search"],select) { width: 100%; }
.register-order-search { flex: 1 1 190px; max-width: 280px; }
.register-filter-actions { display: flex; gap: 6px; }
.register-filter-actions .button { margin: 0; }

.register-panel-heading, .register-panel-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.register-panel-heading { justify-content: space-between; margin-bottom: 10px; }
.register-panel-heading h2 { margin: 0; }
.register-view {
    display: inline-flex;
    background: #eaf0f4;
    padding: 3px;
    gap: 2px;
    border-radius: 7px;
}

.register-view a {
    display: inline-grid;
    align-items: center;
    min-height: 34px;
    padding: 4px 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
    border: 1px solid transparent;
    border-radius: 5px;
}

.register-view a[aria-current="page"] { background: white; border-color: var(--line); color: var(--teal, #116a66); }

.register-scroll {
    position: relative;
    overflow: auto;
    max-height: min(69vh, 770px);
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.staff-workspace .production-register {
    width: 100%;
    min-width: 730px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.staff-workspace .production-register :is(td,th) {
    padding: 8px 10px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.staff-workspace .production-register thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.staff-workspace .production-register thead th {
    background: #eef3f7;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.staff-workspace .production-register tr :is(td,th):last-child { border-right: 0; }
.staff-workspace .production-register tbody tr { --row-color: #fff; }
.staff-workspace .production-register tbody tr:nth-child(even) { --row-color: #f7fafc; }
.staff-workspace .production-register tbody tr:is(:hover,:focus-within) { --row-color: #edf6f7; }
.staff-workspace .production-register tbody tr > :is(td,th) { background: var(--row-color); }
.staff-workspace .production-register tr[data-order-panel-row] { cursor: pointer; }
.staff-workspace .production-register .register-key { position: sticky; z-index: 1; }
.staff-workspace .production-register .register-customer {
    left: 0;
    min-width: 147px;
    max-width: 190px;
    overflow-wrap: anywhere;
    font-weight: 650;
    box-shadow: 2px 0 1px #172a400c;
}

.staff-workspace .production-register tbody .register-customer {
    font-size: 14px;
    letter-spacing: normal;
    white-space: normal;
}

.staff-workspace .production-register .register-date { white-space: nowrap; }
.register-open { display: block; width: fit-content; padding: 4px 0; color: inherit; text-decoration: none; }
.register-open:hover, .register-open:focus-visible { text-decoration: underline; }
.register-grand-total { color: var(--teal); }
@media (pointer: coarse) {
    .register-open { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
}

.cake-tint-plum { --cake-tint: var(--tint-plum, #e3f1f3); }
.cake-tint-rich { --cake-tint: var(--tint-rich, #e9edf8); }
.cake-tint-carrot { --cake-tint: var(--tint-carrot, #faefdf); }
.cake-tint-exotic { --cake-tint: var(--tint-exotic, #eaf3e4); }
.cake-tint-special { --cake-tint: var(--tint-special, #f5e9f1); }
.cake-tint-neutral { --cake-tint: #ecf2f7; }

.staff-workspace .production-register thead .register-cake-heading {
    min-width: 98px;
    background: var(--cake-tint);
}

.register-cake-heading strong { display: block; font-size: 15px; margin-top: 3px; }
.staff-workspace .production-register thead .register-variant-heading {
    text-align: right;
    white-space: nowrap;
    min-width: 68px;
    background: color-mix(in srgb, var(--cake-tint) 55%, white);
}

.register-variant-heading small { font-weight: 400; }
.staff-workspace .production-register :is(.register-count,.register-kilos) { text-align: right; }
.register-kilos > strong { display: block; font-size: 18px; line-height: 1.3; white-space: nowrap; }
.register-kilos > small { font-size: 12px; }
.register-size-counts { list-style: none; margin: 3px 0 0; padding: 0; color: var(--muted); font-size: 12px; }
.register-size-counts > li { margin: 0; }

.register-worklist .register-print-table { min-width: 0; width: 100%; }
.register-worklist .register-print-table td { vertical-align: top; text-align: left; }
.worklist-product { margin-top: 14px; break-inside: avoid; }
.worklist-product h3 { display: flex; justify-content: space-between; margin-bottom: 5px; }
.worklist-product .register-print-table :is(th,td):last-child { text-align: right; }
.register-mobile-hint { display: none; }

.production-screen .register-heading { margin: 0; }
.production-screen .register-heading h1 { font-size: clamp(22px, 3vw, 29px); margin: 0; }
.production-screen .register-heading .button { min-height: 34px; padding-block: 4px; }
.production-screen .register-tools { padding-block: 7px; }
.register-filters :is(input,select,.button) { min-height: 36px; }
.order-detail-cancel { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-block: 10px; }
.order-detail-cancel label { flex: 0 1 280px; margin: 0; }

@media (min-width: 761px) {
    .tasta-review.production-screen .workspace { display: flex; flex-direction: column; height: 100dvh; }
    .tasta-review.production-screen .topbar { flex: 0 0 28px; }
    .tasta-review.production-screen main {
        flex: 1; display: flex; flex-direction: column; gap: 8px;
        width: 100%; max-width: none; min-height: 0; padding: 10px 16px;
    }
    .production-screen footer { display: none; }
    .production-screen .register-tools { flex-shrink: 0; margin: 0; }
    .production-screen .register-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; margin: 0; }
    .production-screen .register-scroll { flex: 1; max-height: none; }
}

@media (max-width: 760px) {
    .register-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .register-filters .date-entry { width: 100%; }
    .register-filters .date-entry [data-date-text] { width: 0; min-width: 0; }
    .register-product-search { grid-column: 1/-1; }
    .register-order-search { grid-column: 1/-1; max-width: none; }
    .register-filters .register-filter-actions { grid-column: 1/-1; }
    .register-scroll { max-height: min(64vh, 560px); }
    .staff-workspace .production-register thead { display: table-header-group; }
    .staff-workspace .production-register tbody { display: table-row-group; }
    .staff-workspace .production-register tr { display: table-row; }
    .staff-workspace .production-register :is(td,th) { display: table-cell; }
    .staff-workspace .production-register td::before { display: none !important; }
    .staff-workspace .production-register .register-customer { min-width: 105px; max-width: 125px; }
    .register-kilos > strong { font-size: 17px; }
    .register-mobile-hint { display: block; margin: 0 0 6px; color: var(--muted); font-size: 12px; }
    .production-screen .register-heading { flex-direction: row; flex-wrap: wrap; }
    .production-screen .register-heading .button { width: auto; }
}

@media print {
    .register-worklist .register-print-table { table-layout: fixed; }
    .register-worklist .register-print-table td { overflow-wrap: anywhere; padding: 4pt; }
    .register-worklist .register-print-table td:first-child { width: 21%; }
    .register-worklist .register-print-table td:nth-child(2) { width: 16%; }
    .register-worklist .register-print-table td:nth-child(3) { width: 42%; }
}
