/* Per-branch setup screens (sales products, sales groups, product categories): header with company, activity and
   branches; branch tabs; a branch profile card with its image and a cashier preview. */
.bp-page { --bp-accent: #2E7D32; --bp-accent-soft: rgba(46, 125, 50, .1); --bp-line: rgba(30, 50, 80, .12); --bp-muted: #5b6b80; --bp-card: #fff; display: flex; flex-direction: column; gap: 16px; }
.bp-title { display: flex; align-items: center; gap: 16px; }
.bp-title-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #eef2f7; color: #1f2d4a; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); flex: none; }
.bp-title h1 { margin: 0; font-size: 28px; font-weight: 800; color: #14213d; }
.bp-title p { margin: 2px 0 0; color: var(--bp-muted); }
.bp-title-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bp-head { display: grid; grid-template-columns: minmax(200px, 1.1fr) auto minmax(260px, 2.2fr); gap: 20px 28px; align-items: start; background: var(--bp-card); border: 1px solid var(--bp-line); border-radius: 14px; padding: 18px 20px; }
.bp-branches { border-inline-start: 1px solid var(--bp-line); padding-inline-start: 24px; display: flex; flex-direction: column; gap: 6px; }
.bp-label { display: block; font-size: 13px; color: #34445c; margin-bottom: 6px; }
.bp-muted { color: var(--bp-muted); font-size: 12.5px; }
.bp-activity-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; background: var(--bp-accent-soft); color: #1b5e20; font-weight: 700; }
.bp-activity-badge.is-tailoring { background: rgba(31, 111, 107, .12); color: #1f6f6b; }
.bp-chip-box { display: flex; align-items: center; gap: 6px; min-height: 44px; border: 1px solid var(--bp-line); border-radius: 10px; padding: 4px 6px 4px 10px; }
.bp-chip-box.is-disabled { opacity: .6; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; }
.bp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(46, 125, 50, .35); background: rgba(46, 125, 50, .07); font-weight: 600; font-size: 13.5px; color: #1b3a1d; }
.bp-chip .mud-icon-root { color: var(--bp-accent); }
.bp-chip button { border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; color: #33475b; padding: 0 2px; }
.bp-tabs-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1px solid var(--bp-line); border-bottom: 3px solid transparent; border-radius: 10px 10px 4px 4px; background: #f6f8fb; color: var(--bp-muted); font: inherit; font-weight: 700; cursor: pointer; }
.bp-tab.is-on { background: #fff; color: #1b5e20; border-bottom-color: var(--bp-accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.bp-copy { margin-inline-start: auto !important; }
.bp-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.bp-card { background: var(--bp-card); border: 1px solid var(--bp-line); border-radius: 14px; padding: 20px 22px; }
.bp-card-title { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.bp-card-title .mud-icon-root { color: #1f2d4a; margin-top: 3px; }
.bp-card-title h2 { margin: 0; font-size: 19px; font-weight: 800; color: #14213d; }
.bp-card-title p { margin: 2px 0 0; color: var(--bp-muted); font-size: 13.5px; line-height: 1.55; }
.bp-side { display: flex; flex-direction: column; gap: 16px; }
.bp-preview { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; background: rgba(46, 125, 50, .05); border: 1px solid var(--bp-line); }
.bp-preview-img { width: 82px; height: 76px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #eef2f7; color: #6b7a90; flex: none; }
.bp-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-preview strong { font-size: 19px; color: #14213d; }
.bp-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 12px; background: rgba(46, 125, 50, .06); border: 1px solid rgba(46, 125, 50, .2); }
.bp-note-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--bp-accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.bp-note strong { display: block; color: #14213d; margin-bottom: 2px; }
.bp-note p { margin: 0; color: #415066; font-size: 13.5px; }
.bp-list { background: var(--bp-card); border: 1px solid var(--bp-line); border-radius: 14px; padding: 14px 18px; }
.bp-list h3 { margin: 0 0 10px; font-size: 15px; }
.bp-list-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--bp-line); }
.bp-list-row:first-of-type { border-top: 0; }
.bp-list-row img, .bp-list-row .bp-list-icon { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #eef2f7; display: grid; place-items: center; color: #6b7a90; flex: none; }
.bp-list-row .bp-grow { flex: 1; min-width: 0; }
.bp-list-row small { display: block; color: var(--bp-muted); }
.bp-recipe table { width: 100%; border-collapse: collapse; }
.bp-recipe th { text-align: start; font-size: 12.5px; color: #34445c; font-weight: 600; padding: 6px; border-bottom: 1px solid var(--bp-line); white-space: nowrap; }
.bp-recipe td { padding: 4px 6px; vertical-align: middle; }
.bp-recipe td select, .bp-recipe td input { width: 100%; min-width: 90px; height: 32px; border: 1px solid var(--bp-line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; }
.bp-recipe .bp-num { width: 90px; }
.bp-recipe-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.bp-recipe-hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: rgba(46, 125, 50, .07); border: 1px solid rgba(46, 125, 50, .2); max-width: 560px; font-size: 12.5px; }
.bp-recipe-hint strong { display: block; font-size: 13px; }
.bp-shared { font-size: 11px; color: var(--bp-muted); font-weight: 500; }
@media (max-width: 1100px) { .bp-head { grid-template-columns: 1fr 1fr; } .bp-branches { grid-column: 1 / -1; border: 0; padding: 0; } .bp-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bp-head { grid-template-columns: 1fr; } .bp-title h1 { font-size: 22px; } .bp-copy { margin-inline-start: 0 !important; } }
.dynora-glass-dark .bp-page, .mud-theme-dark .bp-page { --bp-card: rgba(255, 255, 255, .04); }
.bp-status { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #9aa5b4; margin-inline-end: 8px; vertical-align: -1px; }
.bp-status.is-on { background: #43a047; }
.bp-body-flat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.bp-image-panel { display: flex; flex-direction: column; gap: 10px; border-inline-start: 1px solid var(--bp-line); padding-inline-start: 18px; }
@media (max-width: 1100px) { .bp-body-flat { grid-template-columns: 1fr; } .bp-image-panel { border: 0; padding: 0; } }
.bp-recipe-scroll { overflow-x: auto; }
.bp-recipe table { min-width: 860px; }
.bp-recipe td:nth-child(2) select, .bp-recipe td:nth-child(6) select { min-width: 170px; }
/* Form fields as in the approved design: the label above the box (not floating on its border). */
.bp-form .mud-input-control.mud-input-outlined-with-label { margin-top: 26px; }
.bp-form .mud-input-label-outlined.mud-input-label-inputcontrol { transform: translate(0, -25px) scale(1) !important; background: transparent !important; padding: 0 !important; font-size: 13.5px; color: #34445c; pointer-events: none; }
.bp-form .mud-input-outlined-border legend { display: none; }
.bp-form .bp-readonly .mud-input { background: #eef1f5; }
.bp-form .bp-readonly input { color: #5b6b80; }
.bp-image-card { display: flex; flex-direction: column; gap: 10px; }
.bp-image-frame { width: 100%; aspect-ratio: 2.2 / 1; border-radius: 10px; overflow: hidden; background: #eef2f7; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--bp-line); }
.bp-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.bp-image-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #6b7a90; }
.bp-image-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-image-panel .bp-image-frame { aspect-ratio: 1.25 / 1; }
.bp-page > .bp-note { background: rgba(46, 125, 50, .06); }
.bp-list-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #eef2f7; display: inline-grid; place-items: center; color: #6b7a90; vertical-align: middle; }
.bp-page .mud-button-root { text-transform: none; font-weight: 600; }
.bp-recipe td:nth-child(5) select, .bp-recipe td:nth-child(7) select { min-width: 160px; }
/* Invoices (thermal receipt and A4 tax invoice), shared by the designer preview and printing. */
.inv-doc { background: #fff; color: #111; font-family: "Segoe UI", Tahoma, Arial, sans-serif; margin: 0 auto; box-sizing: border-box; }
.inv-doc.is-thermal { padding: 3mm; font-size: 11.5px; line-height: 1.35; }
.inv-doc.is-a4 { width: 210mm; min-height: 297mm; padding: 14mm 12mm; font-size: 12.5px; line-height: 1.45; }
.inv-row { position: relative; padding: 1.2mm 0; display: flex; flex-direction: column; }
.inv-row.is-start { align-items: flex-start; text-align: start; }
.inv-row.is-center { align-items: center; text-align: center; }
.inv-row.is-end { align-items: flex-end; text-align: end; }
.inv-logo { max-height: 22mm; max-width: 60%; object-fit: contain; }
.inv-legal { font-weight: 800; font-size: 1.25em; }
.inv-trade { font-weight: 700; }
.inv-branch { color: #333; }
.inv-pair b { font-weight: 600; }
.inv-items { width: 100%; border-top: 1px dashed #555; border-bottom: 1px dashed #555; padding: 1mm 0; }
.inv-item { padding: .8mm 0; }
.inv-item-calc { display: flex; justify-content: space-between; gap: 6px; }
.inv-item-disc { color: #555; font-size: .9em; }
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th, .inv-table td { border: 1px solid #999; padding: 4px 6px; text-align: center; }
.inv-table th { background: #f2f4f7; font-size: .9em; }
.inv-table td:first-child { text-align: start; }
.inv-total { min-width: 50%; }
.inv-grand { font-weight: 800; font-size: 1.2em; border-top: 2px solid #111; padding-top: 1mm; }
.inv-footer { color: #333; white-space: pre-line; }
.inv-qr { width: 30mm; height: 30mm; }
.is-thermal .inv-qr { width: min(32mm, 70%); height: auto; }
.inv-doc.is-editable .inv-row { cursor: grab; outline: 1px dashed transparent; }
.inv-doc.is-editable .inv-row:hover { outline-color: #2E7D32; }
.inv-row.is-dragging { opacity: .35; }
.inv-drop { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; z-index: 2; }
.inv-drop-zone { border: 1px dashed rgba(46, 125, 50, .6); background: rgba(46, 125, 50, .08); }
.inv-drop-zone:hover { background: rgba(46, 125, 50, .3); }
.inv-end-drop { min-height: 9mm; }
.inv-selected-mark { position: absolute; inset: 0; outline: 2px solid #2E7D32; border-radius: 3px; pointer-events: none; }
@media print { .inv-doc { margin: 0; } .inv-doc.is-a4 { min-height: auto; } }
.inv-title { font-weight: 800; font-size: 1.15em; border-top: 1px solid #111; border-bottom: 1px solid #111; padding: .8mm 3mm; margin: 1mm 0; }
/* Recipe tabs of a branch: the main recipe and extra recipes linked to order types. */
.bp-recipe-tabs { align-items: center; }
.bp-recipe-tab-settings { border: 1px solid var(--bp-line); border-radius: 10px; padding: 12px 14px; background: #fafbfc; }
.bp-order-types { display: flex; flex-wrap: wrap; gap: 4px; }
.bp-order-type { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--bp-line); border-radius: 999px; background: #fff; color: #37474f; font: inherit; font-weight: 600; cursor: pointer; }
.bp-order-type.is-on { background: #e8f5e9; border-color: var(--bp-accent); color: #1b5e20; }
.bp-order-type:disabled { cursor: not-allowed; opacity: .55; }
.bp-order-type-wrap { display: inline-flex; align-items: center; gap: 4px; }
.bp-order-type-wrap.is-on { padding: 2px 4px 2px 2px; border: 1px solid var(--bp-accent); border-radius: 999px; background: #f1f8f2; }
.bp-order-type-wrap.is-on .bp-order-type { border-color: transparent; }
.bp-order-type-price { width: 110px; padding: 5px 10px; border: 1px solid var(--bp-line); border-radius: 999px; font: inherit; text-align: center; background: #fff; }
/* Total recipe cost of the product screen. */
.bp-cost-box { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; border: 1px solid var(--bp-line); border-radius: 12px; padding: 10px 14px; background: #f6fbf6; }
.bp-cost-box > div { display: flex; flex-direction: column; gap: 2px; }
.bp-cost-box small { color: var(--bp-muted); font-size: 12px; }
.bp-cost-box strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.bp-cost-total strong { font-size: 22px; color: #1b5e20; }
.bp-cost-warn strong { color: #c62828; }
.bp-cost-note { font-size: 12px; margin-top: 4px; }
/* Sizes of the item in the branch: one chip per size (default mark, name, price, remove) and the size tabs of the recipe. */
.bp-size-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.bp-size-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--bp-line); border-radius: 999px; background: #fff; }
.bp-size-chip.is-default { border-color: var(--bp-accent); background: #f1f8f2; }
.bp-size-chip label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #37474f; cursor: pointer; }
.bp-size-chip input[type=radio] { accent-color: var(--bp-accent); margin: 0; }
.bp-size-price { width: 90px; padding: 4px 8px; border: 1px solid var(--bp-line); border-radius: 999px; font: inherit; text-align: center; background: #fff; }
.bp-size-remove { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--bp-muted); cursor: pointer; }
.bp-size-remove:hover:not(:disabled) { background: #fdecea; color: #c62828; }
.bp-size-remove:disabled { opacity: .4; cursor: not-allowed; }
.bp-size-add { height: 32px; padding: 0 10px; border: 1px dashed var(--bp-accent); border-radius: 999px; background: #fff; color: #1b5e20; font: inherit; font-weight: 600; cursor: pointer; }
.bp-size-tabs .bp-tab { padding: 8px 16px; }
.product-editor .bp-line-cost { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.product-editor .bp-line-cost.is-last { color: #8a6d00; border-bottom: 1px dashed #c9a400; cursor: help; }
