/* Scoped presentation: order fields, prices and handlers remain owned by the Razor page. */
.material-order-page { background: var(--comfy-paper); padding-bottom: 64px; }
.material-order-page .room-hero-photo img { height: 360px; }
.material-order-page .room-hero { padding-bottom: 36px; }
.material-order-page .room-hero h1 { font-size: clamp(2.3rem, 3.5vw, 3.4rem); }
.material-order-steps { display: flex; flex-wrap: wrap; gap: 18px 48px; padding-block: 24px; border-top: 1px solid var(--comfy-line); color: var(--comfy-muted); font-size: .84rem; }
.material-order-steps span { display: flex; gap: 12px; align-items: baseline; }
.material-order-steps b { color: var(--comfy-red); font-size: .76rem; font-weight: 600; }
.material-order-workspace { scroll-margin-top: 110px; }
.material-order-workspace > section { padding: 28px; background: #fff; border: 1px solid var(--comfy-line); border-radius: 12px; }
.material-order-workspace > .container { padding-inline: 0; }
.material-order-page h2 { max-width: none; font-size: 1.7rem; margin: 10px 0 12px; }
.material-order-page h4 { font-family: "Barlow", sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--comfy-ink); }
.material-order-page h5 { font-size: 1.06rem; font-weight: 600; }
.material-order-page h6 { font-size: .86rem; font-weight: 600; }
.material-order-page .g-color-primary { color: var(--comfy-ink) !important; }
.material-order-page .card { border: 1px solid var(--comfy-line); border-radius: 12px; box-shadow: none !important; overflow: hidden; }
.material-order-page .card-header { padding: 20px 24px; background: #fff !important; border-bottom: 1px solid var(--comfy-line); }
.material-order-page .card-body { padding: 24px; }
.material-order-page .card-footer { padding: 22px 24px; background: #fff; border-top: 1px solid var(--comfy-line); }
.material-order-page .form-control, .material-order-page .form-select { border-color: var(--comfy-line); border-radius: 6px; color: var(--comfy-ink); font-size: .9rem; background-color: #fff; }
.material-order-page .form-floating > label { color: var(--comfy-muted); font-size: .87rem; }
.material-order-page input[readonly] { background: var(--comfy-paper); }
.material-order-page .form-control:focus, .material-order-page .form-select:focus { border-color: var(--comfy-red); box-shadow: 0 0 0 3px rgb(178 34 34 / 12%); }
.material-order-page .form-control.is-invalid, .material-order-page .form-select.is-invalid { border-color: #b22222; background-image: none; }
.material-order-page .form-check-input:checked { background-color: var(--comfy-red); border-color: var(--comfy-red); }
.material-order-page .form-check-input:focus { border-color: var(--comfy-red); box-shadow: 0 0 0 3px rgb(178 34 34 / 14%); }
.material-order-page .btn { border-radius: 6px; min-height: 46px; padding: 11px 20px; font-size: .88rem; font-weight: 600; white-space: normal; }
.material-order-page .btn-primary, .material-order-page .btn-danger { background-color: var(--comfy-red); border-color: var(--comfy-red); }
.material-order-page .btn-primary:hover, .material-order-page .btn-danger:hover { background-color: #961d1d; border-color: #961d1d; }
.material-order-page :is(button,input,select,a):focus-visible { outline: 2px solid var(--comfy-red); outline-offset: 3px; }
.decor-search { display: grid; grid-template-columns: auto minmax(180px, 440px) 1fr; align-items: center; gap: 14px; margin: 22px 0 18px; font-size: .85rem; }
.decor-search label { font-weight: 600; }
.decor-search input { min-height: 44px; }
.decor-search [role=status] { color: var(--comfy-muted); font-size: .78rem; }
.material-order-page .grid-container { max-height: 430px; overflow: auto; border: 1px solid var(--comfy-line); border-radius: 8px; background: #fff; scrollbar-width: thin; }
.material-order-page .table { --bs-table-striped-bg: #faf8f5; --bs-table-hover-bg: #f7eeeb; font-size: .86rem; color: var(--comfy-ink); margin: 0; }
.material-order-page .table > :not(caption) > * > * { padding: 13px 14px; border-color: #eae5dd; vertical-align: middle; }
.material-order-page #decorTable { width: 100%; }
.material-order-page .decor-swatch-heading { width: 106px; }
.material-order-page .decor-swatch { display: block; width: 64px; height: 80px; object-fit: cover; border: 1px solid #d8d0c5; border-radius: 4px; background: #f5f2ed; }
.material-order-page #decorTable .decor-swatch-cell { padding-block: 10px; }
.material-order-page #decorTable th { position: sticky; top: 0; background: #f5f2ed; z-index: 1; font-size: .77rem; font-weight: 600; }
.material-order-page #decorTable tbody tr { cursor: pointer; }
.material-order-page #decorTable tbody tr[hidden] { display: none !important; }
.material-order-page #decorTable tbody tr:hover td, .material-order-page #decorTable tr.is-selected td { background: #f9eee9; box-shadow: none; }
.material-order-page .decor-select { border: 0; background: transparent; padding: 3px 0; color: var(--comfy-red); font: inherit; font-weight: 600; text-align: left; }
.material-order-page .edge-preview { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; grid-template-rows: auto 420px auto auto; grid-template-areas: '. top .' 'left board right' '. bottom .' '. raster .'; align-content: center; align-items: center; gap: 20px 8px; }
.edge-top { grid-area: top; }.edge-bottom { grid-area: bottom; }.edge-left { grid-area: left; }.edge-right { grid-area: right; }
.material-order-page .edge-board-stage { grid-area: board; width: 100%; height: 100%; display: grid; place-items: center; }
.material-order-page .edge-board { position: relative; width: 100%; height: 100%; border: 2px solid #b9afa1; border-radius: 4px; overflow: hidden; }
.material-order-page .grain-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.material-order-page .grain-guide[hidden] { display: none; }
.material-order-page .grain-grid { fill: none; stroke: #403a33; stroke-width: 1; stroke-dasharray: 5 7; opacity: .3; vector-effect: non-scaling-stroke; }
.material-order-page .grain-arrow-halo { fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; opacity: .9; vector-effect: non-scaling-stroke; }
.material-order-page .grain-arrow { fill: none; stroke: #302b26; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.material-order-page .edge-preview:has(#chkTop:checked) .edge-board { border-top: 5px solid var(--comfy-red); }
.material-order-page .edge-preview:has(#chkBottom:checked) .edge-board { border-bottom: 5px solid var(--comfy-red); }
.material-order-page .edge-preview:has(#chkLeft:checked) .edge-board { border-left: 5px solid var(--comfy-red); }
.material-order-page .edge-preview:has(#chkRight:checked) .edge-board { border-right: 5px solid var(--comfy-red); }
.material-order-page #imgLDTDPreview { width: 100%; height: 100%; object-fit: cover; display: block; }
.material-order-page .form-switch-custom { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 0; min-height: 0; }
.material-order-page .form-switch-custom .form-check-input { float: none; margin: 0; width: 2.6em; height: 1.4em; cursor: pointer; }
.material-order-page .form-switch-custom .form-check-label { color: var(--comfy-ink); font-size: .77rem; text-align: center; cursor: pointer; }
.material-order-page .edge-top, .material-order-page .edge-bottom { flex-direction: row; justify-content: center; }
.material-order-page .raster-text { grid-area: raster; text-align: center; color: var(--comfy-ink); font-size: .88rem; }
.material-order-page .raster-text span { display: block; margin-top: 4px; color: var(--comfy-muted); font-size: .76rem; }
.material-order-page .order-items-title { margin-bottom: 20px; }
.material-order-page .table-responsive { border: 1px solid var(--comfy-line); border-radius: 10px; background: #fff; scrollbar-width: thin; }
.material-order-page #objednavkaTable { min-width: 1100px; margin: 0 !important; font-size: .78rem; }
.material-order-page #objednavkaTable th { background: #f5f2ed; font-weight: 600; }
.material-order-page .validation-summary { border-left: 4px solid #b22222; }
.material-order-page #minimumOrderWarning { background: #f7f2e8; color: #65512b; border-color: #e6ddca; font-size: .83rem; }
@media(max-width:991.98px) {
 .material-order-page .room-hero-photo img { height: 300px; }
 .material-order-page .edge-preview { grid-template-columns: 70px minmax(0, 380px) 70px; justify-content: center; }
}
@media(max-width:767.98px) {
 .material-order-page { padding-bottom: 40px; }
 .material-order-page .room-hero-photo img { height: auto; aspect-ratio: 1.5; }
 .material-order-steps { gap: 12px; padding-block: 20px; flex-direction: column; }
 .material-order-workspace > section { padding: 20px 16px; }
 .material-order-page h2 { font-size: 1.5rem; }
 .material-order-page .card-header, .material-order-page .card-footer { padding: 18px; }
 .material-order-page .card-body { padding: 18px; }
 .decor-search { grid-template-columns: 1fr; gap: 7px; }
 .material-order-page .edge-preview { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 18px 6px; grid-template-rows: auto 340px auto auto; }
 .material-order-page .card-footer > .btn, .material-order-page #submitButton { width: 100%; padding-inline: 12px !important; }
 .material-order-page #gridContainer { max-height: 430px; }
 .material-order-page #decorTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .material-order-page #decorTable tbody { display: block; }
 .material-order-page #decorTable tbody tr { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; padding: 13px 12px; gap: 3px 10px; border-bottom: 1px solid var(--comfy-line); }
 .material-order-page .decor-swatch { width: 80px; height: 100px; }
 .material-order-page #decorTable td { padding: 0; border: 0; background: transparent; box-shadow: none; font-size: .8rem; overflow-wrap: anywhere; }
 .material-order-page #decorTable td:nth-child(1) { grid-column: 3; grid-row: 1; color: var(--comfy-muted); font-size: .7rem; }
 .material-order-page #decorTable td:nth-child(2) { grid-column: 1; grid-row: 1 / span 3; padding: 0; }
 .material-order-page #decorTable td:nth-child(3) { grid-column: 2; grid-row: 1; }
 .material-order-page #decorTable td:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; font-size: .78rem; }
 .material-order-page #decorTable td:nth-child(5) { grid-column: 2; grid-row: 3; color: var(--comfy-muted); font-size: .74rem; }
 .material-order-page #decorTable td:nth-child(6) { grid-column: 3; grid-row: 3; color: var(--comfy-muted); font-size: .74rem; }
 .material-order-page #decorTable tbody tr:is(:hover,.is-selected) { background: #f9eee9; }
}
