:root {
    --bg: #edf1f5;
    --panel: #ffffff;
    --ink: #142235;
    --muted: #64748b;
    --line: #d6e0ea;
    --brand: #132e45;
    --brand-soft: #21455f;
    --teal: #1c7a6d;
    --gold: #d89b3c;
    --danger: #b42318;
    --shadow: 0 22px 48px rgba(18, 34, 53, 0.10);
    --shadow-soft: 0 14px 30px rgba(18, 34, 53, 0.06);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.content-shell {
    width: min(1680px, calc(100% - 24px));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(135deg, #10273b 0%, #183a54 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(16, 39, 59, 0.18);
}

.topbar-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.15;
}

.brand strong {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.brand small {
    color: #c1cedc;
    margin-top: 3px;
    font-size: 12px;
}

.header-currency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.header-rates {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-rates .rate-pill {
    min-width: 86px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.header-rates span,
.header-rates strong,
.header-rates small {
    display: block;
    line-height: 1.1;
}

.header-rates span {
    color: #bdd0df;
    font-size: 11px;
    font-weight: 800;
}

.header-rates strong {
    margin-top: 3px;
    color: #fff;
    font-size: 14px;
}

.header-rates small {
    margin-top: 3px;
    color: #9eb3c7;
    font-size: 10px;
}

.currency-refresh-form {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.currency-refresh-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.currency-refresh-btn:hover {
    transform: translateY(-1px) rotate(18deg);
    background: rgba(255, 255, 255, 0.17);
    border-color: rgba(255, 255, 255, 0.30);
}

.currency-refresh-btn:disabled {
    cursor: wait;
    opacity: 0.70;
}

.currency-refresh-form.is-loading .refresh-icon {
    animation: spinRefresh 0.8s linear infinite;
}

.currency-refresh-status {
    min-width: 74px;
    color: #bdd0df;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.currency-refresh-status.is-success {
    color: #b7f7cf;
}

.currency-refresh-status.is-error {
    color: #ffd1d1;
}

@keyframes spinRefresh {
    to { transform: rotate(360deg); }
}

.top-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
}

.top-nav a {
    color: #e3ebf3;
    text-decoration: none;
    padding: 10px 13px;
    border-radius: 8px;
    font-weight: 650;
}

.top-nav a.active,
.top-nav a:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.settings-menu {
    position: relative;
}

.settings-menu summary {
    list-style: none;
}

.settings-menu summary::-webkit-details-marker {
    display: none;
}

.settings-trigger {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #e3ebf3;
    font-weight: 650;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.settings-trigger.active,
.settings-trigger:hover,
.settings-menu[open] .settings-trigger {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.settings-trigger-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    transition: transform 0.2s ease;
}

.settings-trigger-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-menu[open] .settings-trigger-icon {
    transform: rotate(180deg);
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(420px, calc(100vw - 24px));
    padding: 18px;
    border: 1px solid rgba(202, 216, 228, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 56px rgba(11, 28, 43, 0.22);
    color: var(--ink);
    z-index: 20;
}

.settings-dropdown-head {
    margin-bottom: 14px;
}

.settings-dropdown-head .eyebrow {
    margin-bottom: 8px;
}

.settings-dropdown-head h2 {
    margin-bottom: 6px;
    font-size: 24px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.settings-dropdown-head span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.settings-shortcut {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dbe5ee;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-shortcut:hover {
    transform: translateY(-2px);
    border-color: #bfd1df;
    box-shadow: var(--shadow-soft);
}

.settings-shortcut-logo .brand-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
    border: 1px solid #dbe5ee;
    background: #f9fbfc;
}

.settings-shortcut-body strong,
.settings-shortcut-body span {
    display: block;
}

.settings-shortcut-body strong {
    font-size: 16px;
    font-weight: 800;
}

.settings-shortcut-body span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.settings-shortcut-arrow {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eff4f8;
    color: var(--brand);
}

.settings-shortcut-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page {
    padding: 28px 0 56px;
}

.page-title {
    margin-bottom: 18px;
}

.page-title.split {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: clamp(30px, 4vw, 44px);
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.page-title span,
.module-card p,
.list-header span,
.settings-logo span {
    color: var(--muted);
}

.dashboard-hero {
    display: block;
    margin-bottom: 22px;
}

.dashboard-hero-copy {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(10, 31, 48, 0.98), rgba(28, 74, 105, 0.92)),
        linear-gradient(120deg, rgba(216, 155, 60, 0.18), transparent 58%);
    color: #fff;
    box-shadow: var(--shadow);
}

.dashboard-hero-copy::before {
    content: "";
    position: absolute;
    inset: auto -10% -26% auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 155, 60, 0.22) 0%, rgba(216, 155, 60, 0) 68%);
    pointer-events: none;
}

.dashboard-hero-copy .eyebrow {
    color: #d3e5f6;
}

.dashboard-hero-copy h1 {
    max-width: 11ch;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.dashboard-hero-copy span {
    display: block;
    max-width: 60ch;
    color: #d8e5ef;
    line-height: 1.8;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.hero-strip-item {
    position: relative;
    z-index: 1;
    min-height: 88px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-strip-item small,
.hero-strip-item strong {
    display: block;
}

.hero-strip-item small {
    color: #c9d9e6;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-strip-item strong {
    margin-top: 12px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.section-heading {
    margin: 0 0 16px;
}

.section-heading h2 {
    margin-bottom: 6px;
    font-size: 30px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 520px);
    gap: 18px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.settings-card {
    min-height: 220px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    text-decoration: none;
}

.settings-card-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f6fbfb 100%);
}

.settings-card-soft {
    grid-template-columns: auto 1fr;
}

.settings-card-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e2eb;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef5f7 0%, #f8fbfc 100%);
    color: var(--brand);
}

.settings-card-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-card-body h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.settings-card-body p {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.settings-card-body strong {
    color: var(--teal);
    font-size: 14px;
}

.settings-company-preview {
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 24px;
}

.settings-logo-preview {
    width: 100%;
    min-height: 108px;
    border-radius: 16px;
}

.company-settings-form {
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.company-settings-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.company-settings-aside {
    position: sticky;
    top: 24px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.company-settings-overview {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.company-settings-overview strong,
.company-settings-overview span {
    display: block;
}

.company-settings-overview strong {
    font-size: 18px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.company-settings-overview span {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.5;
}

.company-settings-meta {
    display: grid;
    gap: 12px;
}

.company-settings-meta div {
    padding: 14px;
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    background: #fbfdfe;
}

.company-settings-meta small,
.company-settings-meta strong {
    display: block;
}

.company-settings-meta small {
    margin-bottom: 8px;
    color: #6f8296;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.company-settings-meta strong {
    color: var(--ink);
    line-height: 1.6;
}

.company-settings-main {
    min-width: 0;
}

.settings-logo-large {
    margin-bottom: 8px;
    padding: 16px;
    border-radius: 14px;
}

.module-card,
.panel,
.alert-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.module-card {
    min-height: 210px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.company-module .brand-logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.module-card:hover {
    border-color: #b5c7d8;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.module-card h2 {
    margin-bottom: 0;
    font-size: 24px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}

.module-card strong {
    color: var(--teal);
    font-size: 14px;
}

.module-icon {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e2eb;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef5f7 0%, #f8fbfc 100%);
    color: var(--brand);
}

.module-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-module {
    min-height: 228px;
}

.module-body {
    width: 100%;
}

.module-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.module-arrow {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f2f6fa;
    color: var(--brand);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.module-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-module p {
    min-height: 72px;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 14px;
}

.dashboard-module:hover .module-arrow {
    transform: translateX(3px);
    background: var(--brand);
    color: #fff;
}

.workspace {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.narrow {
    max-width: 760px;
}

.panel {
    padding: 20px;
}

.form-panel h2,
.list-header h2 {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 900;
}

.list-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
}

.customer-list-head {
    align-items: flex-start;
    gap: 18px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    min-width: min(360px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d6e0ea;
    border-radius: 14px;
    background: #fbfdfe;
}

.search-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: #70839a;
}

.search-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.search-input::placeholder {
    color: #90a0b4;
}

.search-button {
    min-width: 76px;
}

.form-label {
    display: block;
    margin: 12px 0 6px;
    color: #354156;
    font-size: 13px;
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd6e2;
    border-radius: 9px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea.form-control {
    resize: vertical;
}

.form-control:focus {
    outline: 0;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(33, 107, 103, 0.15);
}

.two-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-actions,
.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-actions {
    margin-top: 16px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 22px rgba(28, 122, 109, 0.20);
}

.btn-light {
    background: #f4f7fa;
    color: var(--ink);
    border: 1px solid #d9e3ec;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: #fee4e2;
    color: var(--danger);
}

.btn-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.icon-action {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--brand);
    cursor: pointer;
}

.icon-action:hover {
    border-color: #b7c7d8;
    background: #eef3f7;
}

.icon-action.danger {
    color: var(--danger);
    background: #fff7f7;
}

.icon-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.actions form {
    margin: 0;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 16px;
}

.table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    overflow: hidden;
    border-radius: 16px;
}

.data-table th {
    background: #f3f7fa;
    color: #354156;
    font-weight: 900;
    text-align: left;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #e9eef4;
    padding: 12px;
    vertical-align: middle;
}

.data-table td {
    overflow-wrap: anywhere;
}

.data-table tbody tr:nth-child(odd) td {
    background: #fcfdff;
}

.data-table tbody tr:nth-child(even) td {
    background: #f8fbfd;
}

.data-table tr:hover td {
    background: #eef5f9;
}

.empty-row,
.alert-panel {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.alert-panel {
    color: var(--danger);
    border-color: #f4b4ad;
    text-align: left;
}

.settings-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.settings-logo strong,
.settings-logo span {
    display: block;
}

@media (max-width: 1050px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        padding: 14px 0;
    }

    .header-rates,
    .top-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-grid,
    .settings-grid,
    .company-settings-layout,
    .workspace {
        grid-template-columns: 1fr;
    }

    .hero-strip {
        grid-template-columns: 1fr;
    }

    .settings-dropdown {
        left: 0;
        right: auto;
    }
}

@media (max-width: 620px) {
    .content-shell {
        width: min(100% - 14px, 1680px);
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand strong {
        max-width: 190px;
    }

    .header-rates div {
        min-width: calc(50% - 25px);
    }

    .top-nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    .settings-menu {
        width: 100%;
    }

    .settings-trigger {
        width: 100%;
        justify-content: center;
    }

    .settings-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .search-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .module-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-copy,
    .module-card,
    .panel {
        padding: 18px;
    }

    .dashboard-grid,
    .two-fields,
    .actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .module-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table {
        min-width: 760px;
    }
}

/* Dashboard modernization - stage 1 */
.btn-hero-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.dashboard-grid-full {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-grid-full .dashboard-module {
    min-height: 248px;
    border-radius: 22px;
    padding: 22px;
}

.module-ready {
    position: relative;
    overflow: hidden;
}

.module-ready::after {
    content: "";
    position: absolute;
    inset: auto -54px -66px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(28, 122, 109, 0.13), transparent 70%);
}

.module-disabled {
    cursor: not-allowed;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f6 100%);
    color: #7d8ea0;
    box-shadow: 0 10px 24px rgba(18, 34, 53, 0.04);
}

.module-disabled:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: 0 10px 24px rgba(18, 34, 53, 0.04);
}

.module-disabled .module-icon,
.module-disabled .module-arrow {
    opacity: 0.55;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-ready {
    background: rgba(28, 122, 109, 0.10);
    color: var(--teal);
}

.status-disabled {
    background: #e6edf3;
    color: #70839a;
}

.module-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.dashboard-module .module-body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.section-heading span {
    display: block;
    color: var(--muted);
    line-height: 1.6;
}

/* Customers page polish */
.customers-title {
    align-items: flex-end;
}

.page-title-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.summary-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: var(--shadow-soft);
}

.summary-card small,
.summary-card strong {
    display: block;
}

.summary-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.summary-card strong {
    margin-top: 8px;
    font-size: 24px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.customers-workspace {
    grid-template-columns: 1fr;
}

.customer-list {
    border-radius: 20px;
    padding: 22px;
}

.customers-table th:last-child,
.customers-table td:last-child {
    width: 112px;
    text-align: right;
}

.phone-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef5f7;
    color: #23485f;
    font-weight: 700;
    white-space: nowrap;
}

.customer-form-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    visibility: hidden;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 37, 0.46);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    overflow: auto;
    padding: 22px;
    background: #f2f6fa;
    box-shadow: -22px 0 42px rgba(9, 24, 37, 0.22);
    transform: translateX(100%);
    transition: transform 0.24s ease;
}

.customer-form-open .customer-form-drawer {
    pointer-events: auto;
    visibility: visible;
}

.customer-form-open .drawer-backdrop {
    opacity: 1;
}

.customer-form-open .drawer-panel {
    transform: translateX(0);
}

.customer-form-panel {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.form-title-row h2 {
    margin: 0;
}

.drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.drawer-close:hover {
    background: #eef3f7;
}

@media (max-width: 1350px) {
    .dashboard-grid-full {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-grid-full,
    .customer-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customers-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .dashboard-grid-full,
    .customer-summary-grid {
        grid-template-columns: 1fr;
    }

    .drawer-panel {
        padding: 14px;
    }

    .page-title-actions .btn {
        width: 100%;
    }
}

/* Phase cleanup requested by user: simpler home + settings */
.dashboard-hero-clean .dashboard-hero-copy h1 {
    max-width: 18ch;
}

.hero-strip-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid-single {
    grid-template-columns: minmax(320px, 620px);
}

.dashboard-grid-single .dashboard-module {
    min-height: 210px;
    border-radius: 24px;
}

.settings-grid-single {
    grid-template-columns: minmax(320px, 680px) minmax(280px, 420px);
    align-items: stretch;
}

.settings-card-large {
    min-height: 210px;
    border-radius: 24px;
}

.settings-company-preview-clean {
    border-radius: 24px;
}

.company-settings-layout-clean {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 22px;
}

.company-profile-card,
.company-settings-form-clean {
    border-radius: 24px;
}

.company-settings-form-clean {
    padding: 26px;
}

.company-settings-overview-clean {
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.company-settings-overview-clean small {
    display: block;
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.form-section-title {
    margin-bottom: 18px;
}

.form-section-title h2 {
    margin-bottom: 5px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 28px;
}

.form-section-title span {
    color: var(--muted);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.company-settings-form-clean textarea.form-control {
    min-height: 120px;
}

@media (max-width: 900px) {
    .hero-strip-two,
    .settings-grid-single,
    .company-settings-layout-clean,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* Final clean UI adjustments */
.page {
    padding-top: 34px;
}

.dashboard-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    align-items: stretch;
}

.dashboard-grid-compact .module-card,
.settings-grid-compact .settings-card {
    cursor: pointer;
}

.dashboard-grid-compact .dashboard-module {
    min-height: 178px;
    padding: 20px;
    border-radius: 18px;
}

.dashboard-grid-compact .module-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 16px;
}

.dashboard-grid-compact .module-icon svg {
    width: 27px;
    height: 27px;
}

.dashboard-grid-compact .module-card h2 {
    font-size: 21px;
}

.dashboard-grid-compact .dashboard-module p {
    min-height: auto;
    margin-bottom: 14px;
    font-size: 13px;
}

.dashboard-grid-compact .module-card:hover,
.settings-grid-compact .settings-card:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: #a8bece;
    box-shadow: 0 22px 44px rgba(18, 34, 53, 0.14);
}

.page-title-compact {
    margin-bottom: 18px;
}

.page-title-compact h1 {
    font-size: clamp(26px, 3vw, 36px);
}

.settings-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
}

.settings-card-compact {
    min-height: 150px;
    padding: 18px;
    border-radius: 18px;
}

.settings-card-compact .settings-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.settings-card-compact .settings-card-icon svg {
    width: 26px;
    height: 26px;
}

.settings-card-compact .settings-card-body h2 {
    font-size: 21px;
}

.settings-card-compact .settings-card-body p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.search-form button,
.search-button {
    display: none !important;
}

/* Material list page */
.material-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.material-panel {
    padding: 22px;
    border-radius: 20px;
}

.material-list-head {
    gap: 18px;
    align-items: center;
}

.material-search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: min(100%, 560px);
}

.material-search-form .search-box {
    min-width: min(100%, 360px);
}

.status-filter {
    width: 150px;
    min-height: 44px;
}

.material-note {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid #dbe7ee;
    border-radius: 14px;
    background: #f7fbfd;
    color: #526173;
    font-size: 13px;
    line-height: 1.55;
}

.material-note strong {
    color: #263345;
}

.material-table td:first-child {
    min-width: 280px;
}

.material-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.material-status.status-ready {
    border: 1px solid #bee4d3;
    background: #edf9f4;
    color: #137a50;
}

.material-status.status-muted {
    border: 1px solid #dce4eb;
    background: #f5f7f9;
    color: #718092;
}

.bottom-note {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .material-list-head,
    .material-search-form {
        align-items: stretch;
        justify-content: stretch;
    }

    .material-search-form,
    .material-search-form .search-box,
    .status-filter {
        width: 100%;
        min-width: 100%;
    }
}

/* Home cards: compact and expandable for upcoming modules */
.dashboard-grid-home {
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    gap: 16px;
}

.dashboard-grid-home .dashboard-module {
    min-height: 164px;
    padding: 18px;
}

.dashboard-grid-home .module-card h2 {
    font-size: 19px;
}

.dashboard-grid-home .dashboard-module p {
    font-size: 12.5px;
    line-height: 1.55;
}

/* Phase 2 database-ready material management */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.material-form-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.material-form-open .material-form-drawer {
    pointer-events: auto;
    opacity: 1;
}

.material-form-drawer .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 38, .42);
    backdrop-filter: blur(3px);
}

.material-form-drawer .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    padding: 20px;
    overflow: auto;
    background: #eef3f7;
    box-shadow: -24px 0 60px rgba(15, 34, 52, .22);
    transform: translateX(100%);
    transition: transform .24s ease;
}

.material-form-open .material-form-drawer .drawer-panel {
    transform: translateX(0);
}

.materials-workspace {
    display: block;
}

.material-form-panel .form-control[type="number"] {
    appearance: textfield;
}

.material-form-panel .form-control[type="number"]::-webkit-outer-spin-button,
.material-form-panel .form-control[type="number"]::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.value-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 10px;
    border: 1px solid #dce8ef;
    border-radius: 999px;
    background: #f8fbfd;
    color: #1f3447;
    font-weight: 800;
    font-size: 12px;
}

.material-table th:last-child,
.material-table td:last-child {
    width: 96px;
    text-align: right;
}

.material-table td:nth-child(6) {
    max-width: 260px;
    color: #64748b;
    font-size: 12px;
}

.settings-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
}

.settings-card-compact {
    min-height: 132px;
    padding: 16px;
}

.settings-card-compact .settings-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.settings-card-compact .settings-card-body h2 {
    font-size: 18px;
}

.settings-card-compact .settings-card-body p {
    font-size: 12.5px;
}

/* Calculation type management */
.calculation-form-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.calculation-form-open .calculation-form-drawer {
    pointer-events: auto;
    opacity: 1;
}

.calculation-form-drawer .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 38, .42);
    backdrop-filter: blur(3px);
}

.calculation-form-drawer .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    padding: 20px;
    overflow: auto;
    background: #eef3f7;
    box-shadow: -24px 0 60px rgba(15, 34, 52, .22);
    transform: translateX(100%);
    transition: transform .24s ease;
}

.calculation-form-open .calculation-form-drawer .drawer-panel {
    transform: translateX(0);
}

.calculation-workspace {
    display: block;
}

.calculation-table th:last-child,
.calculation-table td:last-child {
    width: 96px;
    text-align: right;
}

.three-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 760px) {
    .three-fields {
        grid-template-columns: 1fr;
    }
}


.field-hint-box {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(248, 250, 252, 0.95);
  border-radius: 16px;
  padding: 12px 14px;
  color: #475569;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.field-hint-box strong { color: #0f172a; font-size: 13px; }
.field-hint-box span { line-height: 1.45; }
.value-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Inline editing and unified page sizing */
.materials-workspace,
.calculation-workspace,
.customers-workspace {
    width: 100%;
}

.material-panel,
.calculation-panel,
.customer-list {
    width: 100%;
}

.inline-edit-table {
    min-width: 980px;
}

.inline-edit-table td {
    padding: 8px;
}

.table-input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d6e2eb;
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.table-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(28, 122, 109, .12);
    background: #fbfffe;
}

.table-input-strong {
    font-weight: 900;
    min-width: 220px;
}

.table-input-small {
    min-width: 92px;
}

.table-input-number {
    max-width: 140px;
    font-weight: 800;
}

.table-select {
    min-width: 180px;
}

.inline-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.icon-action.save {
    border-color: #bfe6d8;
    background: #edf9f4;
    color: #137a50;
}

.icon-action.save:hover {
    background: #dff5ec;
    transform: translateY(-1px);
}

.icon-action svg {
    pointer-events: none;
}

.calculation-table th:last-child,
.calculation-table td:last-child,
.material-table th:last-child,
.material-table td:last-child {
    width: 112px;
}

@media (max-width: 900px) {
    .content-shell {
        width: min(100% - 16px, 1680px);
    }

    .material-panel,
    .calculation-panel,
    .customer-list {
        padding: 16px;
    }
}

/* Final professional polish for materials and calculation lists */
.content-shell {
    width: min(100% - 48px, 1720px);
}

.page-title.split {
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.page-title-actions .btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(28, 122, 109, .16);
}

.material-panel,
.calculation-panel {
    padding: 18px;
    border: 1px solid rgba(135, 159, 177, .36);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,253,.96) 100%);
    box-shadow: 0 22px 60px rgba(15, 34, 52, .10);
}

.material-list-head,
.calculation-panel .list-header {
    padding: 6px 4px 16px;
    border-bottom: 1px solid rgba(214, 226, 235, .8);
    margin-bottom: 14px;
}

.material-list-head h2,
.calculation-panel .list-header h2 {
    font-size: 22px;
    letter-spacing: -.02em;
}

.material-note {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(239, 247, 251, .95), rgba(255, 255, 255, .95));
}

.table-wrap {
    border: 1px solid rgba(214, 226, 235, .9);
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f7fa;
    color: #23364a;
    font-size: 12px;
    letter-spacing: .01em;
    text-transform: uppercase;
    border-bottom: 1px solid #dce7ef;
}

.inline-edit-table {
    min-width: 980px;
}

.inline-edit-table td {
    padding: 7px 8px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 235, 241, .82);
}

.inline-edit-row:hover td {
    background: #f8fbfd;
}

.material-table td:first-child {
    min-width: 250px;
}

.material-table td:nth-child(5) {
    max-width: 280px;
    color: #64748b;
    font-size: 12px;
}

.table-input {
    min-height: 36px;
    border-radius: 11px;
    background: #fbfdfe;
}

.table-input:hover {
    border-color: #bed2df;
    background: #fff;
}

.table-input-number {
    max-width: 126px;
}

.table-select {
    min-width: 190px;
}

.inline-actions {
    gap: 6px;
}

.icon-action {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.status-filter,
.material-search-form .search-box,
.calculation-panel .search-box {
    min-height: 42px;
    border-radius: 14px;
}

.material-form-panel,
.calculation-form-panel {
    border-radius: 22px;
}

@media (max-width: 900px) {
    .content-shell {
        width: min(100% - 18px, 1720px);
    }

    .page-title-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .page-title-actions .btn {
        width: auto;
        min-width: 140px;
    }
}

/* Unified professional customer table - same visual system as material list */
.customers-workspace .customer-list {
    padding: 18px;
    border: 1px solid rgba(135, 159, 177, .36);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,253,.96) 100%);
    box-shadow: 0 22px 60px rgba(15, 34, 52, .10);
}

.customer-list-head {
    padding: 6px 4px 16px;
    border-bottom: 1px solid rgba(214, 226, 235, .8);
    margin-bottom: 14px;
    gap: 18px;
    align-items: center;
}

.customer-list-head h2 {
    font-size: 22px;
    letter-spacing: -.02em;
}

.customers-table {
    min-width: 1080px;
}

.customers-table td:first-child {
    min-width: 260px;
}

.customers-table td:nth-child(4),
.customers-table td:nth-child(5) {
    min-width: 220px;
}

.customers-table th:last-child,
.customers-table td:last-child {
    width: 112px;
    text-align: right;
}

.table-input-phone {
    min-width: 160px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.customer-form-panel {
    border-radius: 22px;
}

.brand strong:empty::after {
    content: 'Firma Bilgisi';
}

/* Order module */
.btn-compact{padding:10px 14px;border-radius:12px;font-size:13px;min-height:auto}
.btn-tiny{padding:7px 10px;border-radius:10px;font-size:12px;white-space:nowrap}
.btn-soft{border:1px solid rgba(28,68,93,.16);background:#eef6f8;color:#0b3148;font-weight:800;text-decoration:none;cursor:pointer}
.btn-soft:hover{background:#dff0ef;transform:translateY(-1px)}
.order-workspace,.order-settings-workspace{margin-top:18px}
.order-panel .table-wrap{max-height:calc(100vh - 360px);overflow:auto}
.order-table th,.order-table td{vertical-align:middle;white-space:nowrap}
.order-table td:nth-child(8){min-width:260px;white-space:normal}
.order-no{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#eaf4f6;color:#0d334b;font-size:12px;letter-spacing:.02em}
.table-date{min-width:136px}
.table-mini{margin-top:6px;max-width:86px;font-size:12px;padding:8px 9px}
.drawer-panel-wide{width:min(820px,calc(100vw - 32px))}
.form-subtitle{display:block;margin-top:4px;color:#5c728c;font-size:13px;font-weight:700}
.three-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.next-step-box{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:16px;padding:14px;border-radius:16px;border:1px dashed rgba(31,132,118,.35);background:#f4fbfa;color:#24445b}
.next-step-box span{flex:1;color:#5c728c;font-size:13px}
.settings-tabs{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap}
.settings-tab{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;border:1px solid rgba(28,68,93,.14);background:#fff;color:#24445b;text-decoration:none;font-weight:800;box-shadow:0 8px 20px rgba(17,39,64,.06)}
.settings-tab.active{background:#168577;color:#fff;border-color:#168577}
body.order-form-open .order-form-drawer,
body.order-setting-form-open .order-setting-form-drawer{display:block}
.order-form-drawer,.order-setting-form-drawer{display:none}
@media (max-width:900px){.three-fields{grid-template-columns:1fr}.next-step-box{align-items:flex-start;flex-direction:column}.order-table td:nth-child(8){min-width:180px}}

/* Professional order flow cleanup */
.order-title-clean {
    margin-bottom: 18px;
}

.order-workspace-clean {
    display: block;
}

.professional-list-panel {
    border-radius: 22px;
    padding: 22px;
}

.customer-picker-panel {
    padding: 22px;
    border-radius: 22px;
}

.customer-picker-panel .list-header {
    gap: 16px;
}

.customer-picker-search {
    max-width: 360px;
}

.customer-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.customer-picker-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.customer-picker-card:hover {
    transform: translateY(-3px);
    border-color: #b9cbd9;
    box-shadow: 0 18px 40px rgba(13, 38, 58, 0.14);
}

.customer-picker-card small,
.customer-picker-card span {
    display: block;
    color: var(--muted);
}

.customer-picker-card small {
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-picker-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.25;
}

.customer-picker-card em {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf3f6;
    color: #16364d;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.order-form-clean {
    padding: 24px;
    border-radius: 22px;
}

.form-section-title.compact {
    margin: 18px 0 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.form-section-title.compact:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.form-section-title.compact h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.table-stack {
    display: grid;
    gap: 6px;
}

.order-table th,
.order-table td {
    vertical-align: middle;
}

.order-table .table-input,
.order-table .table-select {
    min-width: 130px;
}

@media (max-width: 1100px) {
    .customer-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .customer-picker-grid {
        grid-template-columns: 1fr;
    }

    .customer-picker-panel .list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-picker-search {
        max-width: none;
        width: 100%;
    }
}

/* Orders card/detail redesign */
.order-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.order-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    gap: 13px;
    padding: 20px;
    border: 1px solid rgba(194, 211, 224, .9);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(17, 39, 64, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.order-card:hover {
    transform: translateY(-4px);
    border-color: #9fb9ca;
    box-shadow: 0 22px 46px rgba(17, 39, 64, .15);
}

.order-card-top,
.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-card-top strong {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf4f6;
    color: #0d334b;
    font-size: 12px;
}

.order-card-top span,
.order-card-meta span,
.order-card-footer small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.order-card h3 {
    margin: 4px 0 2px;
    font-size: 21px;
    line-height: 1.25;
}

.order-card-meta {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(218, 229, 238, .9);
    border-radius: 14px;
    background: #fff;
}

.order-card-meta b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.order-card-footer {
    margin-top: auto;
    padding-top: 4px;
}

.order-card-footer em {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f0f6f8;
    color: #214157;
    font-style: normal;
    font-weight: 900;
    font-size: 12px;
}

.empty-card {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed rgba(31, 132, 118, .35);
    border-radius: 18px;
    background: #f7fcfb;
    color: var(--muted);
}

.empty-card strong {
    color: var(--ink);
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.order-detail-main .order-form-panel {
    margin: 0;
}

.order-detail-side {
    display: grid;
    gap: 16px;
}

.order-summary-card,
.order-products-card {
    padding: 20px;
    border-radius: 22px;
}

.order-summary-card small,
.order-products-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-summary-card strong,
.order-products-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.order-summary-card span,
.order-products-card span {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}

.order-products-card {
    display: grid;
    gap: 18px;
}

.order-form-clean input[type="date"] {
    cursor: pointer;
}

@media (max-width: 1200px) {
    .order-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .order-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .order-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Order form/detail professional alignment patch */
body.order-edit-open .order-edit-drawer{display:block}
.order-form-pro{max-width:980px;margin:0 auto;padding:28px;border-radius:24px}
.order-form-grid{display:grid;gap:16px;margin-bottom:16px;align-items:start}
.order-form-grid-1{grid-template-columns:1fr}
.order-form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.field-group{display:grid;gap:8px;min-width:0}
.field-group .form-control{width:100%;min-height:50px;box-sizing:border-box}
.field-group textarea.form-control{min-height:96px;resize:vertical;line-height:1.45}
.date-control{appearance:auto;-webkit-appearance:auto;cursor:pointer;color:var(--ink);font-weight:800;background:#fff}
.order-form-pro .form-section-title.compact{margin:22px 0 14px;padding-top:18px}
.order-form-pro .form-section-title.compact:first-of-type{margin-top:4px;padding-top:0}
.order-form-pro .form-actions{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.order-detail-pro-layout{display:grid;gap:18px;margin-top:18px}
.order-detail-hero{padding:24px;border-radius:24px}
.order-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.order-detail-heading small,.order-info-item small,.order-text-grid small{display:block;margin-bottom:6px;color:var(--teal);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.order-detail-heading h2{margin:0 0 6px;font-size:30px;line-height:1.15;color:var(--ink)}
.order-detail-heading span{color:var(--muted);font-weight:800}
.order-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:999px;background:#e8f7f3;color:#0d7669;font-size:12px;font-weight:900}
.order-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.order-info-item{min-height:104px;padding:16px;border:1px solid rgba(194,211,224,.9);border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f8fbfd 100%)}
.order-info-item strong{display:block;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:18px}
.order-info-item span{display:block;color:var(--muted);font-size:13px;line-height:1.35}
.order-text-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.order-text-grid>div{padding:16px;border:1px solid rgba(194,211,224,.9);border-radius:18px;background:#fff}
.order-text-grid p{margin:0;color:var(--ink);line-height:1.55;white-space:pre-wrap}
.order-products-section{padding:22px;border-radius:24px}
.product-placeholder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.product-placeholder-card{min-height:130px;padding:18px;border:1px dashed rgba(31,132,118,.35);border-radius:18px;background:#f7fcfb;display:grid;align-content:center;gap:8px}
.product-placeholder-card strong{font-size:17px;color:var(--ink)}
.product-placeholder-card span{color:var(--muted);line-height:1.5}
@media (max-width:1100px){.order-form-grid-3,.order-info-grid,.product-placeholder-grid{grid-template-columns:1fr 1fr}.order-form-grid-2{grid-template-columns:1fr}}
@media (max-width:720px){.order-form-grid-3,.order-info-grid,.product-placeholder-grid,.order-text-grid{grid-template-columns:1fr}.order-detail-heading{flex-direction:column}.order-detail-heading h2{font-size:24px}}

/* BOM / order item professional stage */
.settings-param-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.setting-param-card{
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
    background:linear-gradient(180deg,#fff,#f8fbfd);
    display:grid;
    gap:10px;
}
.setting-param-card span{font-weight:900;color:var(--ink)}
.setting-param-card div{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.setting-param-card em{font-style:normal;color:var(--muted);font-weight:800;min-width:48px;text-align:center}
.setting-param-card small{color:var(--muted);line-height:1.45}
.project-settings-panel{padding:24px;border-radius:24px}
.item-form-drawer,.item-edit-drawer{display:none}
body.item-form-open .item-form-drawer{display:block}
.order-item-form-panel{max-width:980px;margin:0 auto;padding:28px;border-radius:24px}
.order-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.order-detail-hero-modern{border-radius:26px;padding:24px;background:linear-gradient(135deg,#ffffff,#f6fbfd)}
.compact-info-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.unknown-alert{margin:18px 0;padding:16px 18px;border:1px solid #f2c15d;background:#fff8e8;border-radius:18px;display:flex;justify-content:space-between;gap:12px;color:#8a5200}
.unknown-alert strong{font-size:16px}.unknown-alert span{color:#8a5200}
.result-panel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.result-card{padding:18px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(13,43,66,.06);display:grid;gap:7px}
.result-card small{font-weight:900;color:var(--muted);text-transform:uppercase;font-size:11px;letter-spacing:.04em}
.result-card strong{font-size:24px;color:var(--ink)}
.result-card span{color:var(--muted)}
.result-card.total{background:linear-gradient(135deg,#0f344d,#1f8476);border-color:transparent}
.result-card.total small,.result-card.total strong,.result-card.total span{color:#fff}
.result-detail-panel,.unknown-table-panel{margin:18px 0;padding:22px;border-radius:24px}
.result-detail-panel h2,.unknown-table-panel h2{margin:0 0 14px;color:var(--ink)}
.cutting-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cutting-bar{border:1px solid var(--line);border-radius:16px;padding:14px;background:#f8fbfd;display:grid;gap:6px}
.cutting-bar strong{color:var(--ink)}.cutting-bar span,.cutting-bar em{font-style:normal;color:var(--muted)}
.product-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.product-card{border:1px solid var(--line);border-radius:22px;background:#fff;padding:18px;box-shadow:0 14px 36px rgba(13,43,66,.06);display:grid;gap:16px;transition:.2s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(13,43,66,.10)}
.product-card-warning{border-color:#efc56b;background:linear-gradient(180deg,#fff,#fffaf0)}
.product-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.product-card-head small{display:block;color:var(--green);font-weight:900;text-transform:uppercase;font-size:11px;letter-spacing:.04em}
.product-card-head h3{margin:4px 0;color:var(--ink);font-size:20px}
.product-card-head span{color:var(--muted)}
.product-card-head strong{background:#eef7f6;border-radius:999px;padding:8px 12px;color:var(--green);white-space:nowrap}
.product-card-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.product-card-specs span{padding:10px;border-radius:14px;background:#f5f8fb;color:var(--muted);font-size:13px}
.product-card-specs b{color:var(--ink)}
.mini-warning{border-radius:14px;background:#fff1d2;color:#8a5200;padding:10px 12px;font-weight:800}
.product-card-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}
.product-card-actions form{margin:0}
.btn-danger-soft{background:#fff1f1;border:1px solid #f3caca;color:#b42318}
body[class*="item-edit-open-"] .item-edit-drawer{display:none}
body.item-edit-open-1 .item-edit-open-1,
body.item-edit-open-2 .item-edit-open-2,
body.item-edit-open-3 .item-edit-open-3,
body.item-edit-open-4 .item-edit-open-4,
body.item-edit-open-5 .item-edit-open-5,
body.item-edit-open-6 .item-edit-open-6,
body.item-edit-open-7 .item-edit-open-7,
body.item-edit-open-8 .item-edit-open-8,
body.item-edit-open-9 .item-edit-open-9,
body.item-edit-open-10 .item-edit-open-10,
body.item-edit-open-11 .item-edit-open-11,
body.item-edit-open-12 .item-edit-open-12,
body.item-edit-open-13 .item-edit-open-13,
body.item-edit-open-14 .item-edit-open-14,
body.item-edit-open-15 .item-edit-open-15,
body.item-edit-open-16 .item-edit-open-16,
body.item-edit-open-17 .item-edit-open-17,
body.item-edit-open-18 .item-edit-open-18,
body.item-edit-open-19 .item-edit-open-19,
body.item-edit-open-20 .item-edit-open-20{display:block}
@media (max-width:1100px){.settings-param-grid,.result-panel-grid,.compact-info-grid,.product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.cutting-bars{grid-template-columns:1fr 1fr}}
@media (max-width:720px){.settings-param-grid,.result-panel-grid,.compact-info-grid,.product-card-grid,.product-card-specs,.order-form-grid-4,.cutting-bars{grid-template-columns:1fr}.unknown-alert{flex-direction:column}}

/* Product/order clean flow refinements */
.order-detail-pro-layout {
  display: grid;
  gap: 22px;
}
.order-products-section .list-header {
  align-items: center;
  gap: 16px;
}
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.product-card-clickable {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 168, 190, .35);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 16px 40px rgba(17, 47, 70, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card-clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 132, 116, .45);
  box-shadow: 0 22px 52px rgba(17, 47, 70, .14);
}
.product-card-main {
  display: block;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}
.product-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.product-card-head small,
.product-summary-head small {
  display: inline-block;
  color: #08735f;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}
.product-card-head h3,
.product-summary-head h2 {
  margin: 0;
  color: #061b36;
  font-size: 18px;
  line-height: 1.25;
}
.product-card-head span,
.product-summary-head span {
  display: block;
  margin-top: 5px;
  color: #5c7190;
  font-size: 13px;
}
.product-card-head strong,
.product-summary-head strong {
  flex: 0 0 auto;
  background: #eef8f6;
  color: #08735f;
  border: 1px solid #cfe9e4;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}
.product-card-specs {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.product-card-specs span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f3f7fa;
  color: #5c7190;
  font-size: 13px;
}
.product-card-specs b { color: #0b223d; }
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e3edf4;
  padding-top: 14px;
  color: #5c7190;
}
.product-card-footer small {
  color: #08735f;
  font-weight: 800;
}
.product-card-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  transition: opacity .18s ease;
}
.product-card-clickable:hover .product-card-delete { opacity: 1; }
.product-form-pro {
  max-width: 960px;
  margin: 0 auto;
}
.product-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-form-grid .span-2 { grid-column: span 2; }
.product-form-grid .span-3 { grid-column: span 3; }
.product-detail-layout {
  display: grid;
  gap: 22px;
}
.product-summary-panel,
.excel-import-panel,
.bom-result-panel {
  border-radius: 24px;
}
.product-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.excel-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px dashed #b9ccd9;
  border-radius: 18px;
  background: #f7fbfd;
}
.excel-upload-box label {
  flex: 1;
  display: grid;
  gap: 5px;
  cursor: pointer;
}
.excel-upload-box label strong { color: #061b36; }
.excel-upload-box label span { color: #5c7190; font-size: 13px; }
.excel-upload-box input[type="file"] {
  margin-top: 10px;
  width: 100%;
}
.clean-bom-table th,
.clean-bom-table td {
  vertical-align: middle;
}
.status-chip {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef8f6;
  color: #08735f;
  font-size: 12px;
  font-weight: 800;
}
body.item-edit-open .item-edit-drawer-global { display: block; }
.item-edit-drawer-global { display: none; }
.date-control {
  cursor: pointer;
}
@media (max-width: 900px) {
  .product-form-grid { grid-template-columns: 1fr; }
  .product-form-grid .span-2,
  .product-form-grid .span-3 { grid-column: span 1; }
  .excel-upload-box { align-items: stretch; flex-direction: column; }
}

/* Real BOM / product detail refinements */
.product-detail-real-flow { display: grid; gap: 18px; }
.product-summary-hero { border: 1px solid rgba(20, 64, 96, .14); background: linear-gradient(135deg, #ffffff, #f7fbfd); }
.product-bom-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 14px; }
.product-bom-kpi { background: #fff; border: 1px solid rgba(20, 64, 96, .14); border-radius: 18px; padding: 18px; box-shadow: 0 14px 36px rgba(15, 44, 65, .06); }
.product-bom-kpi small { display: block; color: #58708a; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.product-bom-kpi strong { display: block; margin-top: 6px; font-size: 28px; color: #081f3d; }
.product-bom-kpi span { display: block; margin-top: 4px; color: #63758b; font-size: 13px; }
.product-bom-kpi.warning { border-color: rgba(214, 126, 12, .28); background: #fffaf0; }
.excel-import-pro { overflow: hidden; }
.excel-upload-pro { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px dashed rgba(20, 64, 96, .25); border-radius: 18px; background: #f8fbfd; }
.excel-upload-pro label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.excel-upload-pro label strong { color: #081f3d; }
.excel-upload-pro label span { color: #64748b; font-size: 13px; }
.excel-upload-pro input[type=file] { margin-top: 10px; }
.bom-result-pro .table-wrap { border: 1px solid rgba(20, 64, 96, .12); border-radius: 18px; overflow: auto; }
.real-bom-table { min-width: 1180px; }
.real-bom-table th { white-space: nowrap; }
.real-bom-table td { vertical-align: middle; }
.bom-row-warning { background: #fff7ed; }
.status-chip.status-ok { background: #e8f8f3; color: #087a5c; border-color: #b9eadc; }
.status-chip.status-danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.product-unknown-alert { margin: 0; }
.product-form-pro .product-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-form-pro .span-2 { grid-column: span 2; }
.product-form-pro .span-3 { grid-column: 1 / -1; }
@media (max-width: 1050px) { .product-bom-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .excel-upload-pro { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .product-bom-kpi-grid { grid-template-columns: 1fr; } .product-form-pro .product-form-grid { grid-template-columns: 1fr; } .product-form-pro .span-2, .product-form-pro .span-3 { grid-column: auto; } }

/* Professional BOM sorting tabs */
.professional-bom-tabs { padding: 22px; border-radius: 24px; }
.bom-tab-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 16px; padding: 8px; background: #f3f7fa; border: 1px solid rgba(20,64,96,.10); border-radius: 18px; }
.bom-tab-button { border: 1px solid transparent; background: #fff; color: #25445b; border-radius: 14px; padding: 10px 13px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 900; box-shadow: 0 8px 20px rgba(13,43,66,.05); transition: .18s ease; }
.bom-tab-button strong { min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #edf6f5; color: #168577; font-size: 12px; }
.bom-tab-button:hover { transform: translateY(-1px); border-color: rgba(22,133,119,.24); }
.bom-tab-button.active { background: #123047; color: #fff; border-color: #123047; box-shadow: 0 12px 28px rgba(18,48,71,.18); }
.bom-tab-button.active strong { background: rgba(255,255,255,.18); color: #fff; }
.bom-tab-panel { display: none; }
.bom-tab-panel.active { display: block; }
.bom-tab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 12px; }
.bom-tab-head h3 { margin: 0 0 4px; color: #0b223d; font-size: 18px; }
.bom-tab-head span { color: #68788c; font-size: 13px; }
.categorized-bom-table { min-width: 1080px; }
.categorized-bom-table th:nth-child(2),
.categorized-bom-table td:nth-child(2) { min-width: 280px; white-space: normal; }
.bom-material-cell { display: grid; gap: 4px; }
.bom-material-cell strong { color: #0b223d; font-size: 14px; line-height: 1.35; }
.bom-material-cell small { color: #6b7c8f; font-size: 12px; line-height: 1.35; }
.bom-material-cell em { color: #b15d06; font-style: normal; font-size: 12px; }
.category-mini-pill { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; background: #eef7f6; color: #117768; font-weight: 900; font-size: 12px; white-space: nowrap; }
.bom-move-form { margin: 0; min-width: 150px; }
.bom-move-form select { min-width: 150px; font-size: 12px; padding: 8px 9px; }
@media (max-width: 760px) {
  .bom-tab-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .bom-tab-button { justify-content: space-between; }
}

/* Professional BOM grouping workspace */
.bom-workspace-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}
.bom-summary-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border: 1px solid rgba(19, 53, 79, .10);
  border-radius: 18px;
  padding: 14px 15px;
  box-shadow: 0 10px 24px rgba(13, 43, 66, .055);
}
.bom-summary-card small { display:block; color:#6b7c8e; font-weight:800; font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
.bom-summary-card strong { display:block; color:#0b223d; font-size:26px; line-height:1.1; margin:5px 0 3px; }
.bom-summary-card span { color:#5f7081; font-size:12px; font-weight:700; }
.bom-summary-card.warning { border-color: rgba(219, 129, 32, .28); background: linear-gradient(180deg, #fff, #fff8ee); }
.pro-bom-tab-head { background:#f8fbfd; border:1px solid rgba(19,53,79,.09); border-radius:18px; padding:14px 16px; }
.bom-tab-statline { text-align:right; min-width:120px; color:#0b223d; }
.bom-tab-statline b { display:block; font-size:18px; }
.bom-tab-statline small { display:block; color:#7b8997; font-weight:800; font-size:11px; text-transform:uppercase; }
.empty-bom-state { border:1px dashed rgba(19,53,79,.18); border-radius:18px; padding:22px; background:#fbfdff; color:#607285; display:flex; flex-direction:column; gap:4px; }
.empty-bom-state strong { color:#0b223d; }
.bom-accordion-list { display:flex; flex-direction:column; gap:12px; }
.bom-material-group { border:1px solid rgba(19,53,79,.12); border-radius:20px; background:#fff; box-shadow:0 12px 28px rgba(13,43,66,.06); overflow:hidden; }
.bom-material-group.warning { border-color:rgba(219,129,32,.30); box-shadow:0 12px 28px rgba(219,129,32,.08); }
.bom-material-group summary { list-style:none; }
.bom-material-group summary::-webkit-details-marker { display:none; }
.bom-material-summary { cursor:pointer; display:grid; grid-template-columns:38px minmax(230px, 1fr) minmax(360px, .9fr); align-items:center; gap:14px; padding:15px 16px; background:linear-gradient(180deg,#fff,#f8fbfd); transition:.18s ease; }
.bom-material-summary:hover { background:#f4f9fb; }
.bom-plus { width:32px; height:32px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; background:#eaf4f3; color:#168577; font-weight:1000; font-size:20px; }
.bom-material-group[open] .bom-plus { transform:rotate(45deg); background:#123047; color:#fff; }
.bom-summary-main strong { display:block; color:#0b223d; font-size:15px; line-height:1.25; }
.bom-summary-main small { display:block; color:#708093; font-weight:800; margin-top:4px; }
.bom-summary-stats { display:grid; grid-template-columns:repeat(3, minmax(80px, 1fr)); gap:10px; }
.bom-summary-stats span { border:1px solid rgba(19,53,79,.09); background:#fff; border-radius:14px; padding:9px 10px; min-width:0; }
.bom-summary-stats b { display:block; color:#0b223d; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bom-summary-stats small { display:block; color:#7a8997; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.03em; margin-top:2px; }
.bom-inner-list { padding:10px 14px 14px; background:#fbfdff; border-top:1px solid rgba(19,53,79,.08); display:flex; flex-direction:column; gap:9px; }
.bom-inner-row { display:grid; grid-template-columns:70px minmax(260px, 1.5fr) 80px 120px 150px 100px 120px 180px; gap:10px; align-items:stretch; background:#fff; border:1px solid rgba(19,53,79,.08); border-radius:16px; padding:10px; }
.bom-inner-row.warning { background:#fffaf2; border-color:rgba(219,129,32,.22); }
.bom-cell { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.bom-cell small { color:#7b8997; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.bom-cell strong { color:#0b223d; font-size:13px; overflow-wrap:anywhere; }
.bom-cell.material strong { font-size:14px; }
.bom-cell.material small + strong { margin-top:1px; }
.bom-cell.material em { color:#8a5a10; font-style:normal; font-size:12px; font-weight:700; }
.bom-cell.move select { width:100%; min-height:34px; font-size:12px; padding:6px 8px; }
@media (max-width: 1100px) {
  .bom-material-summary { grid-template-columns:34px 1fr; }
  .bom-summary-stats { grid-column:2; grid-template-columns:repeat(3,1fr); }
  .bom-inner-row { grid-template-columns:1fr 1fr; }
  .bom-cell.material { grid-column:1 / -1; }
}
@media (max-width: 640px) {
  .bom-tab-nav { grid-template-columns:1fr; }
  .bom-workspace-summary { grid-template-columns:1fr 1fr; }
  .bom-summary-stats { grid-template-columns:1fr; }
  .bom-inner-row { grid-template-columns:1fr; }
}

/* BOM classification cleanup: single statistics area + clear expandable groups */
.product-bom-kpi-grid,
.bom-workspace-summary {
  display: none !important;
}
.bom-master-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin: 16px 0 14px;
  border: 1px solid rgba(19, 53, 79, .10);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
  box-shadow: 0 10px 24px rgba(13, 43, 66, .055);
}
.bom-master-summary strong {
  display: block;
  color: #0b223d;
  font-size: 17px;
  margin-bottom: 4px;
}
.bom-master-summary span {
  color: #51677c;
  font-weight: 800;
  font-size: 13px;
}
.bom-master-summary small {
  color: #718294;
  font-weight: 700;
  text-align: right;
  max-width: 360px;
}
.bom-tab-nav.pro-only-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  margin: 14px 0 18px;
  border-radius: 22px;
  background: #eef4f8;
}
.bom-tab-nav.pro-only-stats .bom-tab-button {
  min-height: 92px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
}
.bom-tab-nav.pro-only-stats .bom-tab-button span {
  font-size: 14px;
  font-weight: 950;
}
.bom-tab-nav.pro-only-stats .bom-tab-button strong {
  min-width: auto;
  width: auto;
  height: auto;
  background: transparent;
  color: #0b223d;
  font-size: 26px;
  line-height: 1;
}
.bom-tab-nav.pro-only-stats .bom-tab-button small {
  color: #5c7185;
  font-size: 12px;
  font-weight: 850;
}
.bom-tab-nav.pro-only-stats .bom-tab-button.active strong,
.bom-tab-nav.pro-only-stats .bom-tab-button.active small {
  color: #fff;
}
.bom-tab-nav.pro-only-stats .bom-tab-button.warning:not(.active) {
  border-color: rgba(219, 129, 32, .28);
  background: linear-gradient(180deg, #fff, #fff8ee);
}
.bom-tab-head.pro-bom-tab-head {
  align-items: center;
  margin-top: 4px;
  margin-bottom: 14px;
}
.bom-accordion-list {
  gap: 14px;
}
.bom-material-summary {
  grid-template-columns: 42px minmax(280px, 1.2fr) minmax(430px, .9fr);
  padding: 16px 18px;
}
.bom-summary-stats span {
  min-height: 54px;
}
.bom-inner-row {
  grid-template-columns: 70px minmax(260px, 1.7fr) 88px 120px 160px 100px 120px 190px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .bom-master-summary { flex-direction: column; align-items: flex-start; }
  .bom-master-summary small { text-align: left; max-width: none; }
  .bom-tab-nav.pro-only-stats { grid-template-columns: 1fr 1fr; }
}

/* Final BOM organization cleanup */
body.item-edit-open .item-edit-drawer-global{
    display:block;
    pointer-events:auto;
    visibility:visible;
    z-index:80;
}
body.item-edit-open .item-edit-drawer-global .drawer-backdrop{opacity:1}
body.item-edit-open .item-edit-drawer-global .drawer-panel{transform:translateX(0)}
.compact-product-title{margin-bottom:14px}
.compact-product-title h1{font-size:clamp(28px,3.5vw,44px)}
.product-detail-clean-flow{display:grid;grid-template-columns:1fr;gap:16px}
.product-summary-compact{padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,#fff,#f7fbfd);border:1px solid rgba(20,64,96,.12)}
.product-summary-line{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.product-summary-line small{display:block;color:#168577;font-weight:900;text-transform:uppercase;font-size:11px;letter-spacing:.04em}
.product-summary-line h2{margin:3px 0;font-size:22px;color:#0b223d}
.product-summary-line span{color:#64778d;font-size:13px;font-weight:700}
.product-summary-line strong{padding:8px 12px;border-radius:12px;background:#eaf6f4;color:#08735f;white-space:nowrap}
.compact-product-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.compact-product-metrics div{border:1px solid rgba(20,64,96,.10);background:#fff;border-radius:14px;padding:10px 12px}
.compact-product-metrics small{display:block;color:#6f8092;font-weight:800;font-size:11px;text-transform:uppercase}
.compact-product-metrics b{display:block;margin-top:4px;color:#0b223d;font-size:17px}
.compact-product-metrics .metric-warning{border-color:rgba(217,119,6,.28);background:#fff8ed}
.compact-product-note{margin:12px 0 0;color:#50677d;font-weight:700}
.bom-list-details{padding:0;overflow:hidden;border-radius:24px}
.bom-list-details > summary{list-style:none;cursor:pointer}
.bom-list-details > summary::-webkit-details-marker{display:none}
.bom-list-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;background:linear-gradient(135deg,#123047,#1d4f68);color:#fff}
.bom-list-summary h2{margin:0 0 4px;font-size:22px;color:#fff}
.bom-list-summary span{color:rgba(255,255,255,.78);font-size:13px;font-weight:700}
.bom-list-summary b{display:inline-flex;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.14);white-space:nowrap}
.bom-list-details .bom-tab-nav{margin:18px 22px 10px}
.clean-tabs-only{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:8px;background:#f4f8fa;border-radius:20px;border:1px solid rgba(20,64,96,.10)}
.clean-tabs-only .bom-tab-button{width:100%;display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;gap:4px;padding:13px 14px;border-radius:16px}
.clean-tabs-only .bom-tab-button span{grid-column:1/2;font-size:14px}
.clean-tabs-only .bom-tab-button strong{grid-column:2/3;grid-row:1/3;min-width:34px;height:34px;font-size:14px}
.clean-tabs-only .bom-tab-button small{grid-column:1/2;font-size:11px;color:#6d7f91;font-weight:800}
.clean-tabs-only .bom-tab-button.active small{color:rgba(255,255,255,.78)}
.bom-tab-panel{padding:0 22px 22px}
.bom-category-block{border:1px solid rgba(20,64,96,.12);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 14px 34px rgba(13,43,66,.06)}
.bom-category-block > summary{list-style:none;display:flex;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;background:linear-gradient(180deg,#fff,#f6fafc)}
.bom-category-block > summary::-webkit-details-marker{display:none}
.bom-category-block .bom-plus{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#eaf6f4;color:#168577;font-size:22px;font-weight:900;transition:.18s ease}
.bom-category-block[open] .bom-plus{transform:rotate(45deg);background:#123047;color:#fff}
.bom-category-block h3{margin:0 0 3px;color:#0b223d;font-size:20px}
.bom-category-block small{color:#687d90;font-weight:800}
.bom-clean-table{display:grid;gap:0;background:#fff}
.bom-clean-head{display:grid;grid-template-columns:minmax(260px,1.3fr) 90px 130px 120px minmax(180px,.6fr);gap:10px;padding:11px 16px;background:#eef5f8;color:#49637c;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.bom-clean-group{border-top:1px solid rgba(20,64,96,.10)}
.bom-clean-group.warning{background:#fff9ef}
.bom-clean-group-head{display:grid;grid-template-columns:minmax(260px,1.3fr) 90px 130px 120px minmax(180px,.6fr);gap:10px;align-items:center;padding:14px 16px;background:#fbfdfe}
.bom-clean-group-head strong{display:block;color:#0b223d;font-size:15px}
.bom-clean-group-head small{color:#738397;font-weight:800}
.bom-clean-group-head b{color:#0b223d;font-size:15px}
.bom-clean-group-head em{font-style:normal;color:#7990a3;font-size:12px;font-weight:800}
.bom-clean-row{display:grid;grid-template-columns:minmax(260px,1.3fr) 90px 130px 160px 120px minmax(180px,.6fr);gap:10px;align-items:center;padding:11px 16px;border-top:1px solid rgba(20,64,96,.08);background:#fff}
.bom-clean-row.warning{background:#fffaf2}
.bom-clean-row .bom-cell{min-width:0}
.bom-clean-row .bom-cell small{display:block;color:#7a8b9a;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:3px}
.bom-clean-row .bom-cell strong{display:block;color:#0b223d;font-size:13px;line-height:1.32;overflow-wrap:anywhere}
.bom-clean-row .bom-cell span{display:block;color:#667a8e;font-size:12px;margin-top:2px}
.bom-clean-row .bom-cell em{display:block;color:#b15d06;font-size:12px;font-style:normal;margin-top:3px}
.bom-clean-row .table-select{width:100%;min-width:150px}
.product-form-grid{align-items:start}
@media(max-width:980px){
  .compact-product-metrics{grid-template-columns:1fr 1fr}
  .bom-clean-head{display:none}
  .bom-clean-group-head,.bom-clean-row{grid-template-columns:1fr;gap:8px}
  .bom-clean-group-head em{display:none}
  .bom-list-summary{flex-direction:column;align-items:flex-start}
}

/* Global clean-up: professional product/BOM workspace */
.product-workspace{display:grid;gap:14px}
.product-workspace-header{position:relative;padding:16px 18px;border-radius:22px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}
.product-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#4d657d;font-weight:800;font-size:14px}
.product-breadcrumb strong{color:#0b223d;font-size:18px}
.product-breadcrumb b{color:#9aa9b7}
.product-meta-line{display:flex;flex-wrap:wrap;gap:10px 18px;color:#5b7086;font-size:13px;font-weight:700}
.product-meta-line b{color:#0b223d}
.product-header-actions{display:flex;gap:8px;justify-content:flex-end;grid-column:2/3;grid-row:1/3}
.product-mini-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin-top:4px}
.product-mini-stats span{border:1px solid rgba(20,64,96,.10);background:#f8fbfd;border-radius:14px;padding:9px 12px;color:#5b7086;font-size:12px;font-weight:900;text-transform:uppercase}
.product-mini-stats b{display:block;color:#0b223d;font-size:18px;margin-bottom:2px}
.product-mini-stats .warning{border-color:rgba(217,119,6,.28);background:#fff8ed;color:#9a5b00}
.product-header-note{grid-column:1/-1;margin:0;color:#5f7488;font-weight:700;font-size:13px}
.compact-import-card{padding:12px 14px;border-radius:20px}
.compact-import-form{display:grid;grid-template-columns:1fr minmax(220px,340px) auto;gap:12px;align-items:center}
.compact-import-form strong{display:block;color:#0b223d;font-size:15px}
.compact-import-form span{display:block;color:#64798d;font-size:13px;margin-top:2px}
.compact-import-form input[type=file]{width:100%;border:1px solid rgba(20,64,96,.15);border-radius:12px;padding:9px 10px;background:#fff;color:#334b63;font-weight:700}
.compact-warning{margin:0;padding:12px 14px;border-radius:16px}
.bom-list-summary{padding:16px 18px!important;min-height:auto!important}
.bom-list-summary h2{font-size:20px;margin:0 0 3px}
.bom-list-summary span{font-size:13px;color:#64798d;font-weight:700}
.single-category-list{border:1px solid rgba(20,64,96,.10);border-radius:18px;background:#fff;overflow:hidden}
.single-category-list>summary{padding:13px 15px;background:#f7fbfd;border-bottom:1px solid rgba(20,64,96,.08);cursor:pointer}
.single-category-list>summary h3{margin:0;color:#0b223d;font-size:16px}
.single-category-list>summary small{font-size:12px;color:#61768b;font-weight:800}
.flat-bom-table{border:0;background:#fff;overflow:auto}
.flat-bom-table .bom-clean-head{grid-template-columns:minmax(250px,1.4fr) 88px 110px minmax(240px,1fr) 150px minmax(180px,.8fr) 90px;position:sticky;top:0;z-index:1}
.flat-bom-table .bom-clean-row{grid-template-columns:minmax(250px,1.4fr) 88px 110px minmax(240px,1fr) 150px minmax(180px,.8fr) 90px;border-top:1px solid rgba(20,64,96,.08)}
.bom-edit-row{margin:0;background:#fff}
.bom-edit-row.warning{background:#fffaf2}
.bom-edit-row .table-input{height:36px;border-radius:10px;border:1px solid rgba(20,64,96,.14);padding:8px 9px;background:#fff;color:#0b223d;font-weight:800;width:100%;min-width:0}
.bom-edit-row .material-name-input{font-size:13px;font-weight:900}
.bom-edit-row .mini-input{text-align:center}
.bom-edit-row .sheet-dims,.bom-edit-row .angle-dims{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;align-items:end}
.bom-edit-row .angle-dims{grid-template-columns:1fr 1fr}
.bom-edit-row .sheet-dims small,.bom-edit-row .angle-dims small{grid-column:1/-1;margin-bottom:0}
.bom-edit-row .move{display:grid;gap:6px}
.bom-edit-row .actions{display:grid;gap:6px;justify-items:stretch}
.btn-mini{min-height:36px;padding:8px 10px;border-radius:10px;font-size:12px}
.bom-edit-row .status-chip{justify-content:center;width:100%;font-size:11px;padding:5px 7px}
.bom-tab-nav.pro-only-stats.clean-tabs-only{margin:14px 18px 12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;background:#f2f7fa;border-radius:18px;padding:8px}
.bom-tab-nav.pro-only-stats.clean-tabs-only .bom-tab-button{min-height:74px;box-shadow:none;border:1px solid rgba(20,64,96,.10)}
.bom-tab-panel{padding:0 18px 18px}
@media (max-width: 900px){
  .product-workspace-header{grid-template-columns:1fr}
  .product-header-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-start;flex-wrap:wrap}
  .product-mini-stats{grid-template-columns:1fr 1fr}
  .compact-import-form{grid-template-columns:1fr}
  .flat-bom-table .bom-clean-head{display:none}
  .flat-bom-table .bom-clean-row{grid-template-columns:1fr;gap:8px}
}

/* One-dimensional BOM organization refinement */
.compact-import-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
}
.delete-bom-form{display:flex;justify-content:flex-end;margin:0}
.one-dim-intro{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin:0 0 12px;
  padding:12px 14px;
  border:1px solid rgba(20,64,96,.10);
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbfd,#eef6f9);
}
.one-dim-intro strong{color:#0b223d;font-weight:950}
.one-dim-intro span{color:#62788c;font-weight:750;font-size:13px;text-align:right}
.one-dim-grid{display:flex;flex-direction:column;gap:12px}
.one-dim-block{border-left-width:6px!important}
.bom-category-block.cat-profil{border-color:rgba(33,100,180,.24);border-left-color:#2164b4!important}
.bom-category-block.cat-profil>summary{background:linear-gradient(90deg,rgba(33,100,180,.10),#fff)}
.bom-category-block.cat-profil .bom-plus{background:rgba(33,100,180,.12);color:#2164b4}
.bom-category-block.cat-lama{border-color:rgba(22,133,119,.24);border-left-color:#168577!important}
.bom-category-block.cat-lama>summary{background:linear-gradient(90deg,rgba(22,133,119,.11),#fff)}
.bom-category-block.cat-lama .bom-plus{background:rgba(22,133,119,.12);color:#168577}
.bom-category-block.cat-silme{border-color:rgba(126,87,194,.24);border-left-color:#7e57c2!important}
.bom-category-block.cat-silme>summary{background:linear-gradient(90deg,rgba(126,87,194,.11),#fff)}
.bom-category-block.cat-silme .bom-plus{background:rgba(126,87,194,.12);color:#7e57c2}
.bom-category-block.cat-mil{border-color:rgba(219,129,32,.28);border-left-color:#db8120!important}
.bom-category-block.cat-mil>summary{background:linear-gradient(90deg,rgba(219,129,32,.12),#fff)}
.bom-category-block.cat-mil .bom-plus{background:rgba(219,129,32,.14);color:#b86410}
.bom-category-block.cat-sac{border-left:6px solid #607d8b!important}
.bom-category-block.cat-lazer{border-left:6px solid #c62828!important}
.bom-category-block.cat-profil-lazer{border-left:6px solid #ad1457!important}
.bom-category-block.cat-branda{border-left:6px solid #6d4c41!important}
.bom-category-block.cat-ready{border-left:6px solid #455a64!important}
.bom-category-block.cat-plastic{border-left:6px solid #00897b!important}
.bom-category-block.cat-unknown{border-left:6px solid #d97706!important;background:#fffaf2}
.bom-category-block.cat-other{border-left:6px solid #78909c!important}
.bom-category-block[open] .bom-plus{transform:rotate(45deg)}
.clean-tabs-only .bom-tab-button[data-bom-tab="tek-boyutlu"]{border-color:rgba(33,100,180,.14);background:linear-gradient(180deg,#fff,#f3f8ff)}
.clean-tabs-only .bom-tab-button[data-bom-tab="tek-boyutlu"].active{background:#123047;border-color:#123047}
@media(max-width:900px){
  .compact-import-actions{grid-template-columns:1fr}
  .delete-bom-form{justify-content:flex-start}
  .one-dim-intro{flex-direction:column;align-items:flex-start}
  .one-dim-intro span{text-align:left}
}


/* Deep BOM organization cleanup - category-aware compact industrial layout */
.manufacturing-tabs.clean-tabs-only{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  margin:12px 16px;
  padding:8px;
  background:#eef5f8;
  border:1px solid rgba(20,64,96,.10);
  border-radius:18px;
}
.manufacturing-tabs .bom-tab-button{
  min-height:76px;
  border-radius:16px;
  padding:12px 14px;
  border:1px solid rgba(20,64,96,.12);
  background:#fff;
  box-shadow:none;
  text-align:left;
}
.manufacturing-tabs .bom-tab-button span{font-size:13px;font-weight:950}
.manufacturing-tabs .bom-tab-button strong{font-size:24px;line-height:1.1}
.manufacturing-tabs .bom-tab-button small{font-size:11px;color:#607489;font-weight:800}
.manufacturing-tabs .bom-tab-button.active{
  background:#123047;
  border-color:#123047;
  color:#fff;
}
.manufacturing-tabs .bom-tab-button.active small{color:rgba(255,255,255,.78)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="tek-boyutlu"]{border-color:rgba(33,100,180,.18);background:linear-gradient(180deg,#fff,#f4f8ff)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="sac"]{border-color:rgba(74,111,130,.20);background:linear-gradient(180deg,#fff,#f5f8fa)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="lazer"]{border-color:rgba(198,40,40,.18);background:linear-gradient(180deg,#fff,#fff6f6)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="branda"]{border-color:rgba(109,76,65,.18);background:linear-gradient(180deg,#fff,#fff8f5)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="hazir-parca"]{border-color:rgba(69,90,100,.18);background:linear-gradient(180deg,#fff,#f7fafb)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="plastik"]{border-color:rgba(0,137,123,.18);background:linear-gradient(180deg,#fff,#f2fbfa)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="diger"]{border-color:rgba(120,144,156,.18);background:linear-gradient(180deg,#fff,#f8fafb)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="tanimsiz"]{border-color:rgba(217,119,6,.35);background:linear-gradient(180deg,#fff,#fff8ed)}

.refined-one-dim-grid{display:flex;flex-direction:column;gap:10px}
.compact-category-list{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(20,64,96,.11);
  background:#fff;
}
.compact-category-list>summary{
  min-height:62px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  list-style:none;
}
.compact-category-list>summary::-webkit-details-marker{display:none}
.compact-category-list>summary h3{font-size:16px;margin:0;color:#0b223d}
.compact-category-list>summary small{font-size:12px;color:#63788d;font-weight:850}
.compact-category-list .bom-plus{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
}
.compact-category-list[open] .bom-plus{transform:rotate(45deg)}

.flat-bom-table.mode-one .bom-clean-head,
.flat-bom-table.mode-one .bom-clean-row{
  grid-template-columns:minmax(260px,1.45fr) 86px 120px 150px minmax(190px,.75fr) 92px;
}
.flat-bom-table.mode-sheet .bom-clean-head,
.flat-bom-table.mode-sheet .bom-clean-row{
  grid-template-columns:minmax(260px,1.35fr) 86px 105px 105px 105px minmax(190px,.75fr) 92px;
}
.flat-bom-table.mode-simple .bom-clean-head,
.flat-bom-table.mode-simple .bom-clean-row{
  grid-template-columns:minmax(300px,1.5fr) 86px minmax(210px,.8fr) 130px 92px;
}
.flat-bom-table .bom-clean-head{
  position:sticky;
  top:0;
  z-index:2;
  gap:10px;
  padding:10px 14px;
  background:#f0f6f9;
  border-top:1px solid rgba(20,64,96,.08);
}
.flat-bom-table .bom-clean-row{
  gap:10px;
  padding:10px 14px;
  align-items:center;
}
.bom-row-mode-one .compact-angle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.bom-row-mode-one .compact-angle small{grid-column:1/-1}
.bom-edit-row .table-input{
  height:34px;
  border-radius:10px;
  border:1px solid rgba(20,64,96,.14);
  background:#fff;
}
.bom-edit-row .material-name-input{font-weight:900}
.bom-edit-row .table-select{font-weight:850}
.bom-edit-row .actions .btn-mini{height:34px;min-height:34px}

.bom-category-block.cat-profil{border-left:5px solid #2164b4!important}
.bom-category-block.cat-lama{border-left:5px solid #168577!important}
.bom-category-block.cat-silme{border-left:5px solid #7e57c2!important}
.bom-category-block.cat-mil{border-left:5px solid #db8120!important}
.bom-category-block.cat-profil-lazer{border-left:5px solid #ad1457!important}
.bom-category-block.cat-sac{border-left:5px solid #607d8b!important}
.bom-category-block.cat-lazer{border-left:5px solid #c62828!important}
.bom-category-block.cat-branda{border-left:5px solid #6d4c41!important}
.bom-category-block.cat-ready{border-left:5px solid #455a64!important}
.bom-category-block.cat-plastic{border-left:5px solid #00897b!important}
.bom-category-block.cat-unknown{border-left:5px solid #d97706!important;background:#fffaf2}

.bom-category-block.cat-profil>summary{background:linear-gradient(90deg,rgba(33,100,180,.10),#fff)}
.bom-category-block.cat-lama>summary{background:linear-gradient(90deg,rgba(22,133,119,.11),#fff)}
.bom-category-block.cat-silme>summary{background:linear-gradient(90deg,rgba(126,87,194,.11),#fff)}
.bom-category-block.cat-mil>summary{background:linear-gradient(90deg,rgba(219,129,32,.12),#fff)}
.bom-category-block.cat-profil-lazer>summary{background:linear-gradient(90deg,rgba(173,20,87,.10),#fff)}
.bom-category-block.cat-sac>summary{background:linear-gradient(90deg,rgba(96,125,139,.10),#fff)}
.bom-category-block.cat-lazer>summary{background:linear-gradient(90deg,rgba(198,40,40,.09),#fff)}
.bom-category-block.cat-branda>summary{background:linear-gradient(90deg,rgba(109,76,65,.10),#fff)}
.bom-category-block.cat-ready>summary{background:linear-gradient(90deg,rgba(69,90,100,.08),#fff)}
.bom-category-block.cat-plastic>summary{background:linear-gradient(90deg,rgba(0,137,123,.09),#fff)}
.bom-category-block.cat-unknown>summary{background:linear-gradient(90deg,rgba(217,119,6,.12),#fffaf2)}

@media(max-width:980px){
  .flat-bom-table.mode-one .bom-clean-head,
  .flat-bom-table.mode-sheet .bom-clean-head,
  .flat-bom-table.mode-simple .bom-clean-head{display:none}
  .flat-bom-table.mode-one .bom-clean-row,
  .flat-bom-table.mode-sheet .bom-clean-row,
  .flat-bom-table.mode-simple .bom-clean-row{grid-template-columns:1fr}
}


/* World-class BOM cleanup pass */
.world-product-workspace{display:grid;gap:14px}
.world-product-header{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px 16px;
  align-items:center;
  padding:16px 18px!important;
}
.world-product-header .product-breadcrumb{
  font-size:15px;
  font-weight:950;
  color:#0b223d;
}
.world-product-header .product-header-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.world-product-header .product-mini-stats{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.world-product-header .product-mini-stats span{
  padding:7px 10px;
  border-radius:12px;
  background:#f5f9fb;
  border:1px solid rgba(20,64,96,.10);
  font-size:12px;
  font-weight:850;
}
.world-product-header .product-mini-stats .warning{
  background:#fff7ed;
  border-color:#f5c48a;
}

.ultra-compact-import{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:10px;
  align-items:center;
  padding:12px 14px!important;
}
.ultra-compact-import .compact-import-form,
.ultra-compact-import .manual-bom-form,
.ultra-compact-import .delete-bom-form{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
}
.ultra-compact-import strong{white-space:nowrap}
.ultra-compact-import input[type=file]{max-width:260px}
.manual-bom-form{justify-content:flex-end}
.manual-bom-form .table-input{height:36px}
.manual-bom-form input[name=cleaned_name]{min-width:220px}
.manual-bom-form .table-select{min-width:155px}

.manufacturing-tabs.clean-tabs-only{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  margin:12px 16px;
  padding:8px;
  background:#eef5f8;
  border:1px solid rgba(20,64,96,.10);
  border-radius:18px;
}
.manufacturing-tabs .bom-tab-button{
  min-height:76px;
  border-radius:16px;
  padding:12px 14px;
  border:1px solid rgba(20,64,96,.12);
  background:#fff;
  box-shadow:none;
  text-align:left;
}
.manufacturing-tabs .bom-tab-button span{font-size:13px;font-weight:950}
.manufacturing-tabs .bom-tab-button strong{font-size:24px;line-height:1.1}
.manufacturing-tabs .bom-tab-button small{font-size:11px;color:#607489;font-weight:800}
.manufacturing-tabs .bom-tab-button.active{background:#123047!important;border-color:#123047!important;color:#fff}
.manufacturing-tabs .bom-tab-button.active small{color:rgba(255,255,255,.78)}

.compact-category-list{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(20,64,96,.11);
  background:#fff;
  margin:10px 16px;
}
.compact-category-list>summary{
  min-height:60px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  list-style:none;
}
.compact-category-list>summary::-webkit-details-marker{display:none}
.compact-category-list>summary h3{font-size:16px;margin:0;color:#0b223d}
.compact-category-list>summary small{font-size:12px;color:#63788d;font-weight:850}
.compact-category-list .bom-plus{
  flex:0 0 34px;
  width:34px;height:34px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-weight:950;
}
.compact-category-list[open] .bom-plus{transform:rotate(45deg)}

.world-bom-table.mode-one .bom-clean-head,
.world-bom-table.mode-one .bom-clean-row{
  grid-template-columns:minmax(260px,1.45fr) 86px 120px 150px minmax(190px,.75fr) 92px;
}
.world-bom-table.mode-sheet .bom-clean-head,
.world-bom-table.mode-sheet .bom-clean-row{
  grid-template-columns:minmax(260px,1.35fr) 86px 105px 105px 105px minmax(190px,.75fr) 92px;
}
.world-bom-table.mode-simple .bom-clean-head,
.world-bom-table.mode-simple .bom-clean-row{
  grid-template-columns:minmax(300px,1.5fr) 86px minmax(210px,.8fr) 130px 92px;
}
.world-bom-table .bom-clean-head{
  position:sticky;top:0;z-index:2;
  gap:10px;
  padding:9px 14px;
  background:#f0f6f9;
  border-top:1px solid rgba(20,64,96,.08);
}
.world-bom-table .world-bom-row{
  gap:10px;
  padding:8px 14px;
  align-items:center;
  min-height:58px;
}
.world-bom-row .table-input{
  height:34px;
  border-radius:10px;
  border:1px solid rgba(20,64,96,.14);
  background:#fff;
}
.world-bom-row .material-name-input{font-weight:900}
.world-bom-row .table-select{font-weight:850}
.world-bom-row .actions .btn-mini{height:34px;min-height:34px}
.world-bom-row .compact-angle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.world-bom-row .compact-angle small{grid-column:1/-1}

.bom-category-block.cat-profil{border-left:5px solid #2164b4!important}
.bom-category-block.cat-lama{border-left:5px solid #168577!important}
.bom-category-block.cat-silme{border-left:5px solid #7e57c2!important}
.bom-category-block.cat-mil{border-left:5px solid #db8120!important}
.bom-category-block.cat-profil-lazer{border-left:5px solid #ad1457!important}
.bom-category-block.cat-sac{border-left:5px solid #607d8b!important}
.bom-category-block.cat-lazer{border-left:5px solid #c62828!important}
.bom-category-block.cat-branda{border-left:5px solid #6d4c41!important}
.bom-category-block.cat-ready{border-left:5px solid #455a64!important}
.bom-category-block.cat-plastic{border-left:5px solid #00897b!important}
.bom-category-block.cat-unknown{border-left:5px solid #d97706!important;background:#fffaf2}

.bom-category-block.cat-profil>summary{background:linear-gradient(90deg,rgba(33,100,180,.10),#fff)}
.bom-category-block.cat-lama>summary{background:linear-gradient(90deg,rgba(22,133,119,.11),#fff)}
.bom-category-block.cat-silme>summary{background:linear-gradient(90deg,rgba(126,87,194,.11),#fff)}
.bom-category-block.cat-mil>summary{background:linear-gradient(90deg,rgba(219,129,32,.12),#fff)}
.bom-category-block.cat-profil-lazer>summary{background:linear-gradient(90deg,rgba(173,20,87,.10),#fff)}
.bom-category-block.cat-sac>summary{background:linear-gradient(90deg,rgba(96,125,139,.10),#fff)}
.bom-category-block.cat-lazer>summary{background:linear-gradient(90deg,rgba(198,40,40,.09),#fff)}
.bom-category-block.cat-branda>summary{background:linear-gradient(90deg,rgba(109,76,65,.10),#fff)}
.bom-category-block.cat-ready>summary{background:linear-gradient(90deg,rgba(69,90,100,.08),#fff)}
.bom-category-block.cat-plastic>summary{background:linear-gradient(90deg,rgba(0,137,123,.09),#fff)}
.bom-category-block.cat-unknown>summary{background:linear-gradient(90deg,rgba(217,119,6,.12),#fffaf2)}

@media(max-width:1100px){
  .ultra-compact-import{grid-template-columns:1fr}
  .ultra-compact-import .compact-import-form,
  .ultra-compact-import .manual-bom-form{flex-wrap:wrap;justify-content:flex-start}
}
@media(max-width:980px){
  .world-bom-table .bom-clean-head{display:none}
  .world-bom-table.mode-one .bom-clean-row,
  .world-bom-table.mode-sheet .bom-clean-row,
  .world-bom-table.mode-simple .bom-clean-row{grid-template-columns:1fr}
  .world-product-header{grid-template-columns:1fr}
}


/* Final BOM organization patch: manual rows per section + refined product info */
.refined-product-info{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(420px,1.7fr) auto;
  gap:12px 16px;
  align-items:center;
}
.product-main-id span{
  display:block;
  color:#007861;
  font-weight:950;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.product-main-id strong{
  display:block;
  font-size:24px;
  line-height:1.1;
  color:#071d35;
}
.product-main-id small{
  display:block;
  margin-top:4px;
  color:#5d7189;
  font-weight:800;
}
.product-detail-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(90px,1fr));
  gap:8px;
}
.product-detail-strip span{
  padding:9px 11px;
  border:1px solid rgba(20,64,96,.10);
  background:#f7fbfd;
  border-radius:14px;
  min-height:52px;
}
.product-detail-strip small{
  display:block;
  color:#5f7288;
  font-weight:900;
  font-size:11px;
}
.product-detail-strip b{
  display:block;
  margin-top:3px;
  color:#071d35;
  font-size:14px;
}
.refined-product-info .product-mini-stats{
  grid-column:1/-1;
}

.manual-row-box{
  margin:10px 14px 14px;
  border:1px dashed rgba(20,64,96,.22);
  border-radius:14px;
  background:#fbfdfe;
}
.manual-row-box>summary{
  cursor:pointer;
  padding:10px 12px;
  list-style:none;
  font-size:13px;
  font-weight:950;
  color:#123047;
}
.manual-row-box>summary::-webkit-details-marker{display:none}
.manual-row-inline-form{
  display:grid;
  gap:8px;
  padding:0 12px 12px;
  align-items:center;
}
.manual-row-one .manual-row-inline-form{
  grid-template-columns:minmax(220px,1fr) 80px 100px 80px 80px auto;
}
.manual-row-sheet .manual-row-inline-form{
  grid-template-columns:minmax(220px,1fr) 80px 100px 100px 100px auto;
}
.manual-row-simple .manual-row-inline-form{
  grid-template-columns:minmax(260px,1fr) 90px auto;
}
.quick-empty-add-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:10px;
  padding:12px;
}

.ultra-compact-import .manual-bom-form{display:none!important}

@media(max-width:1100px){
  .refined-product-info{grid-template-columns:1fr}
  .product-detail-strip{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .manual-row-one .manual-row-inline-form,
  .manual-row-sheet .manual-row-inline-form,
  .manual-row-simple .manual-row-inline-form{grid-template-columns:1fr}
}


/* Patch: product edit drawer safety + clearer BOM import categories */
.refined-product-info{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(420px,1.7fr) auto;
  gap:12px 16px;
  align-items:center;
}
.product-main-id span{
  display:block;
  color:#007861;
  font-weight:950;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.product-main-id strong{
  display:block;
  font-size:24px;
  line-height:1.1;
  color:#071d35;
}
.product-main-id small{
  display:block;
  margin-top:4px;
  color:#5d7189;
  font-weight:800;
}
.product-detail-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(90px,1fr));
  gap:8px;
}
.product-detail-strip span{
  padding:9px 11px;
  border:1px solid rgba(20,64,96,.10);
  background:#f7fbfd;
  border-radius:14px;
  min-height:52px;
}
.product-detail-strip small{
  display:block;
  color:#5f7288;
  font-weight:900;
  font-size:11px;
}
.product-detail-strip b{
  display:block;
  margin-top:3px;
  color:#071d35;
  font-size:14px;
}
.refined-product-info .product-mini-stats{grid-column:1/-1}
.item-edit-drawer-global .drawer-panel{
  max-width:760px;
  width:min(760px, 96vw);
}
@media(max-width:1100px){
  .refined-product-info{grid-template-columns:1fr}
  .product-detail-strip{grid-template-columns:repeat(2,minmax(120px,1fr))}
}

/* Fix drawer overlay and always-visible BOM category tabs */
.mini-empty{margin:12px 14px;padding:12px;border-radius:14px;background:#f7fbfd;border:1px solid rgba(20,64,96,.08)}
.item-edit-drawer-global{position:fixed;inset:0;z-index:9999;display:none}
body.item-edit-open .item-edit-drawer-global{display:block}
.item-edit-drawer-global .drawer-backdrop{position:absolute;inset:0;background:rgba(7,29,53,.55)}
.item-edit-drawer-global .drawer-panel{position:absolute;top:0;right:0;width:min(760px,96vw);height:100%;overflow:auto;background:#f6fbfd;box-shadow:-20px 0 60px rgba(7,29,53,.22);padding:20px}
.item-edit-drawer-global .drawer-panel .panel{margin:0}
.manufacturing-tabs .bom-tab-button{min-width:0}
.manual-row-box{margin:10px 14px 14px;border:1px dashed rgba(20,64,96,.22);border-radius:14px;background:#fbfdfe}
.manual-row-box>summary{cursor:pointer;padding:10px 12px;list-style:none;font-size:13px;font-weight:950;color:#123047}
.manual-row-box>summary::-webkit-details-marker{display:none}
.manual-row-inline-form{display:grid;gap:8px;padding:0 12px 12px;align-items:center}
.manual-row-one .manual-row-inline-form{grid-template-columns:minmax(220px,1fr) 80px 100px 80px 80px auto}
.manual-row-sheet .manual-row-inline-form{grid-template-columns:minmax(220px,1fr) 80px 100px 100px 100px auto}
.manual-row-simple .manual-row-inline-form{grid-template-columns:minmax(260px,1fr) 90px auto}
@media(max-width:1100px){.manual-row-one .manual-row-inline-form,.manual-row-sheet .manual-row-inline-form,.manual-row-simple .manual-row-inline-form{grid-template-columns:1fr}}


/* Final visual cleanup: product cards and product dimensions */
.clean-products-panel{
  padding:22px;
}
.panel-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.panel-heading-row h2{
  margin:0;
  font-size:24px;
  color:#071d35;
}
.panel-heading-row p{
  margin:6px 0 0;
  color:#607489;
}
.clean-product-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:14px;
}
.clean-product-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:220px;
  padding:18px;
  border:1px solid rgba(20,64,96,.14);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#f8fbfd);
  text-decoration:none;
  color:#071d35;
  box-shadow:0 14px 35px rgba(7,29,53,.08);
  transition:.18s ease;
}
.clean-product-card:hover{
  transform:translateY(-3px);
  border-color:#1f8a78;
  box-shadow:0 20px 50px rgba(7,29,53,.13);
}
.product-card-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.product-type-chip{
  padding:6px 10px;
  border-radius:999px;
  background:#e9f7f4;
  color:#087764;
  font-weight:950;
  font-size:12px;
}
.qty-chip{
  padding:7px 12px;
  border-radius:999px;
  background:#eaf7f3;
  border:1px solid rgba(31,138,120,.18);
  color:#087764;
  font-weight:950;
}
.clean-product-card h3{
  margin:2px 0 0;
  font-size:22px;
  line-height:1.15;
}
.clean-product-card .muted{
  color:#607489;
  font-weight:800;
}
.product-card-info-line{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.product-card-info-line span{
  min-height:58px;
  padding:10px 12px;
  border-radius:16px;
  background:#f1f6f9;
  border:1px solid rgba(20,64,96,.08);
  overflow:hidden;
}
.product-card-info-line b{
  display:block;
  font-size:12px;
  color:#607489;
  margin-bottom:4px;
}
.product-card-info-line em{
  display:block;
  font-style:normal;
  font-weight:950;
  color:#071d35;
  white-space:normal;
  word-break:break-word;
}
.product-note{
  margin:0;
  color:#52677d;
  font-size:13px;
}
.product-card-footer{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#607489;
  font-style:italic;
}
.product-card-footer strong{
  color:#087764;
  font-style:normal;
}
.product-detail-strip{
  grid-template-columns:repeat(4,minmax(110px,1fr));
}
.product-detail-strip span:last-child{
  grid-column:auto;
}
.product-detail-strip b{
  white-space:normal;
  word-break:break-word;
}

/* Hide empty one-dimensional subgroups if no rows */
.one-dim-block:not([open]) .mini-empty{
  display:none;
}

@media(max-width:700px){
  .panel-heading-row{flex-direction:column}
  .product-card-info-line{grid-template-columns:1fr}
  .product-detail-strip{grid-template-columns:1fr 1fr}
}

/* Emergency bugfix polish */
.mini-empty{margin:12px 14px;padding:12px;border-radius:14px;background:#f7fbfd;border:1px solid rgba(20,64,96,.08)}
.manufacturing-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.product-detail-strip b{white-space:normal;word-break:break-word}
.item-edit-drawer-global{position:fixed;inset:0;z-index:9999;display:none}
body.item-edit-open .item-edit-drawer-global{display:block}
.item-edit-drawer-global .drawer-backdrop{position:absolute;inset:0;background:rgba(7,29,53,.55)}
.item-edit-drawer-global .drawer-panel{position:absolute;top:0;right:0;width:min(760px,96vw);height:100%;overflow:auto;background:#f6fbfd;box-shadow:-20px 0 60px rgba(7,29,53,.22);padding:20px}

/* Final full fix: product info values and stable BOM rendering */
.product-detail-strip b{white-space:normal;word-break:break-word}
.product-detail-strip span{overflow:hidden}
.item-edit-drawer-global{position:fixed;inset:0;z-index:9999;display:none}
body.item-edit-open .item-edit-drawer-global{display:block}
.item-edit-drawer-global .drawer-backdrop{position:absolute;inset:0;background:rgba(7,29,53,.55)}
.item-edit-drawer-global .drawer-panel{position:absolute;top:0;right:0;width:min(760px,96vw);height:100%;overflow:auto;background:#f6fbfd;box-shadow:-20px 0 60px rgba(7,29,53,.22);padding:20px}
.mini-empty{margin:12px 14px;padding:12px;border-radius:14px;background:#f7fbfd;border:1px solid rgba(20,64,96,.08)}

/* Show BOM rows reliably and improve product info display */
.bom-tab-panel{display:none}
.bom-tab-panel.active{display:block}
.world-bom-table .bom-clean-row{display:grid}
.product-detail-strip b{white-space:normal;word-break:break-word}
.mini-empty{margin:12px 14px;padding:12px;border-radius:14px;background:#f7fbfd;border:1px solid rgba(20,64,96,.08)}
.item-edit-drawer-global{position:fixed;inset:0;z-index:9999;display:none}
body.item-edit-open .item-edit-drawer-global{display:block}
.item-edit-drawer-global .drawer-backdrop{position:absolute;inset:0;background:rgba(7,29,53,.55)}
.item-edit-drawer-global .drawer-panel{position:absolute;top:0;right:0;width:min(760px,96vw);height:100%;overflow:auto;background:#f6fbfd;box-shadow:-20px 0 60px rgba(7,29,53,.22);padding:20px}

/* Final bugfix: render BOM rows + clean product cards */
.bom-tab-panel{display:none}
.bom-tab-panel.active{display:block}
.world-bom-table .bom-clean-row{display:grid}
.bom-clean-table{width:100%}
.product-detail-strip b{white-space:normal;word-break:break-word}
.mini-empty{margin:12px 14px;padding:12px;border-radius:14px;background:#f7fbfd;border:1px solid rgba(20,64,96,.08)}
.clean-products-panel{padding:22px}
.panel-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.panel-heading-row h2{margin:0;font-size:24px;color:#071d35}
.panel-heading-row p{margin:6px 0 0;color:#607489}
.clean-product-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.clean-product-card{display:flex;flex-direction:column;gap:10px;min-height:210px;padding:18px;border:1px solid rgba(20,64,96,.14);border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbfd);text-decoration:none;color:#071d35;box-shadow:0 14px 35px rgba(7,29,53,.08);transition:.18s ease}
.clean-product-card:hover{transform:translateY(-3px);border-color:#1f8a78;box-shadow:0 20px 50px rgba(7,29,53,.13)}
.product-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.product-type-chip{padding:6px 10px;border-radius:999px;background:#e9f7f4;color:#087764;font-weight:950;font-size:12px}
.qty-chip{padding:7px 12px;border-radius:999px;background:#eaf7f3;border:1px solid rgba(31,138,120,.18);color:#087764;font-weight:950}
.clean-product-card h3{margin:2px 0 0;font-size:22px;line-height:1.15}
.clean-product-card .muted{color:#607489;font-weight:800}
.product-card-info-line{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.product-card-info-line span{min-height:58px;padding:10px 12px;border-radius:16px;background:#f1f6f9;border:1px solid rgba(20,64,96,.08);overflow:hidden}
.product-card-info-line b{display:block;font-size:12px;color:#607489;margin-bottom:4px}
.product-card-info-line em{display:block;font-style:normal;font-weight:950;color:#071d35;white-space:normal;word-break:break-word}
.product-card-footer{margin-top:auto;display:flex;justify-content:space-between;gap:10px;color:#607489;font-style:italic}
.product-card-footer strong{color:#087764;font-style:normal}
.item-edit-drawer-global{position:fixed;inset:0;z-index:9999;display:none}
body.item-edit-open .item-edit-drawer-global{display:block}
.item-edit-drawer-global .drawer-backdrop{position:absolute;inset:0;background:rgba(7,29,53,.55)}
.item-edit-drawer-global .drawer-panel{position:absolute;top:0;right:0;width:min(760px,96vw);height:100%;overflow:auto;background:#f6fbfd;box-shadow:-20px 0 60px rgba(7,29,53,.22);padding:20px}
@media(max-width:700px){.panel-heading-row{flex-direction:column}.product-card-info-line{grid-template-columns:1fr}}

/* Critical classification + product form cleanup */
.compact-product-form .product-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:16px;
}
.compact-product-form .product-form-grid label.wide{grid-column:1/-1}
.compact-product-form input,
.compact-product-form textarea{
  width:100%;
}
.compact-product-form textarea{min-height:100px}
.product-detail-strip span:last-child{
  grid-column:auto;
}
.product-detail-strip b{
  white-space:normal;
  word-break:break-word;
}
@media(max-width:760px){
  .compact-product-form .product-form-grid{grid-template-columns:1fr}
}

/* =========================================================
   Unified modern UI refresh - product/order/settings screens
   ========================================================= */
:root{
  --ui-bg:#f3f7fb;
  --ui-card:#ffffff;
  --ui-ink:#0b2239;
  --ui-muted:#64788d;
  --ui-line:rgba(15,45,75,.11);
  --ui-primary:#0f766e;
  --ui-primary-2:#14b8a6;
  --ui-blue:#2563eb;
  --ui-shadow:0 20px 55px rgba(10,31,55,.10);
  --ui-radius:24px;
}
body{background:linear-gradient(180deg,#eef5fa 0,#f7fafc 340px,#f5f8fb 100%);color:var(--ui-ink)}
.panel,.page-title,.order-detail-hero,.order-products-section,.excel-import-panel,.bom-result-panel{border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);background:rgba(255,255,255,.92);backdrop-filter:blur(8px)}
.modern-page-title{padding:28px 30px;background:linear-gradient(135deg,#fff,#f4fbf9);overflow:hidden;position:relative}
.modern-page-title:after{content:"";position:absolute;right:-70px;top:-70px;width:190px;height:190px;border-radius:999px;background:rgba(20,184,166,.12)}
.modern-page-title h1{font-size:34px;letter-spacing:-.04em;margin-bottom:8px}.modern-page-title span{color:var(--ui-muted);font-weight:600}
.btn{border-radius:14px;font-weight:850;box-shadow:none}.btn-primary{background:linear-gradient(135deg,#0f766e,#14b8a6);border:0}.btn-light{background:#fff;border:1px solid var(--ui-line);color:var(--ui-ink)}

.settings-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:18px;margin-top:18px}
.settings-hub-card{position:relative;display:flex;gap:18px;min-height:178px;padding:24px;border-radius:28px;text-decoration:none;color:var(--ui-ink);background:linear-gradient(180deg,#fff,#f8fbfd);border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);overflow:hidden;transition:.18s ease}
.settings-hub-card:hover{transform:translateY(-4px);border-color:rgba(20,184,166,.38)}
.settings-hub-card:after{content:"";position:absolute;right:-50px;bottom:-70px;width:170px;height:170px;border-radius:999px;background:rgba(20,184,166,.10)}
.settings-hub-card.tone-blue:after{background:rgba(37,99,235,.10)}.settings-hub-card.tone-neutral:after{background:rgba(100,116,139,.12)}.settings-hub-icon{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:#e9fbf8;color:#0f766e;flex:0 0 auto}.settings-hub-icon svg{width:29px;height:29px;stroke:currentColor;fill:none;stroke-width:2}.settings-hub-content small{text-transform:uppercase;letter-spacing:.12em;color:#71869a;font-weight:900}.settings-hub-content h2{margin:8px 0 7px;font-size:24px;letter-spacing:-.03em}.settings-hub-content p{margin:0 0 18px;color:var(--ui-muted);line-height:1.45}.settings-hub-content strong{color:#0f766e;font-size:14px}.settings-hub-content strong span{font-size:18px}

.modern-settings-panel{padding:24px}.settings-section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px;padding:20px;border-radius:22px;background:linear-gradient(135deg,#f0fdfa,#f8fafc);border:1px solid var(--ui-line)}.settings-section-head small{font-weight:950;color:#0f766e;text-transform:uppercase;letter-spacing:.12em}.settings-section-head h2{margin:6px 0;font-size:28px}.settings-section-head p{margin:0;color:var(--ui-muted)}.modern-param-grid{display:grid;grid-template-columns:repeat(3,minmax(210px,1fr));gap:14px}.modern-param-card{display:block;padding:17px;border:1px solid var(--ui-line);border-radius:20px;background:#fff}.modern-param-card>span{display:block;font-weight:950;margin-bottom:10px}.param-input-row{display:flex;align-items:center;gap:8px}.param-input-row input{width:100%;height:44px;border-radius:14px;border:1px solid var(--ui-line);padding:0 12px;font-weight:850;background:#f8fafc}.param-input-row em{min-width:54px;text-align:center;font-style:normal;color:#0f766e;font-weight:900}.modern-param-card small{display:block;margin-top:9px;color:var(--ui-muted);line-height:1.35}.modern-settings-actions{margin-top:20px}

.item-form-drawer,.item-edit-drawer-global,.order-edit-drawer{position:fixed;inset:0;z-index:9999;display:none}body.item-form-open .item-form-drawer,body.item-edit-open .item-edit-drawer-global,body.order-edit-open .order-edit-drawer{display:block}.drawer-backdrop{position:absolute;inset:0;background:rgba(6,24,44,.56);backdrop-filter:blur(3px)}.drawer-panel{position:absolute;right:0;top:0;height:100%;width:min(860px,96vw);overflow:auto;background:#f6f9fc;padding:24px;box-shadow:-22px 0 70px rgba(8,28,49,.28)}
.product-editor-card{background:#fff;border-radius:28px;border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);padding:22px}.product-editor-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:6px 4px 18px;border-bottom:1px solid var(--ui-line);margin-bottom:18px}.product-editor-head small{color:#0f766e;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.product-editor-head h2{margin:6px 0;font-size:30px;letter-spacing:-.04em}.product-editor-head p{margin:0;color:var(--ui-muted)}.drawer-x{width:42px;height:42px;border-radius:14px;border:1px solid var(--ui-line);background:#fff;font-size:28px;line-height:1;color:#334155;cursor:pointer}.modern-product-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modern-product-form .wide{grid-column:1/-1}.form-block label{display:block;margin-bottom:7px;font-weight:900;color:#334155}.form-block label b{color:#dc2626}.form-block input,.form-block textarea{width:100%;border:1px solid var(--ui-line);border-radius:16px;padding:13px 14px;background:#f8fafc;font-weight:750;outline:none}.form-block input:focus,.form-block textarea:focus{border-color:#14b8a6;box-shadow:0 0 0 4px rgba(20,184,166,.13);background:#fff}.form-block textarea{min-height:116px;resize:vertical}

.order-products-section{padding:24px}.order-products-section .list-header{margin-bottom:18px}.product-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px}.modern-product-card{position:relative;border:1px solid var(--ui-line);border-radius:28px;background:linear-gradient(180deg,#fff,#f8fbfd);box-shadow:0 16px 42px rgba(10,31,55,.09);overflow:hidden;transition:.18s ease}.modern-product-card:hover{transform:translateY(-4px);box-shadow:0 24px 58px rgba(10,31,55,.14);border-color:rgba(20,184,166,.38)}.modern-product-link{display:flex;flex-direction:column;min-height:300px;padding:20px;text-decoration:none;color:var(--ui-ink)}.modern-product-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.product-badge,.product-qty{display:inline-flex;align-items:center;min-height:32px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:950}.product-badge{background:#e9fbf8;color:#0f766e}.product-qty{background:#eef4ff;color:#1d4ed8}.modern-product-card h3{margin:18px 0 6px;font-size:24px;line-height:1.15;letter-spacing:-.035em}.product-code-line{margin:0 0 14px;color:var(--ui-muted);font-weight:800}.modern-product-meta{display:grid;gap:10px}.modern-product-meta span{padding:12px;border-radius:17px;background:#f1f6f9;border:1px solid rgba(15,45,75,.07)}.modern-product-meta small{display:block;color:#71869a;font-weight:900;margin-bottom:4px}.modern-product-meta b{display:block;color:#0b2239;word-break:break-word}.modern-card-footer{margin-top:auto;padding-top:16px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#71869a}.modern-card-footer em{font-style:normal}.modern-card-footer strong{color:#0f766e}.modern-delete{position:absolute;top:17px;right:17px;opacity:0;transition:.18s}.modern-product-card:hover .modern-delete{opacity:1}.card-warning-line{margin-top:12px;border-radius:14px;background:#fff7ed;color:#c2410c;padding:9px 11px;font-weight:900}.modern-product-card.has-warning{border-color:rgba(249,115,22,.35)}

.world-product-header{padding:24px;display:grid;grid-template-columns:1.2fr 1.8fr auto;gap:18px;align-items:start}.product-main-id span{display:inline-block;color:#0f766e;font-weight:950;text-transform:uppercase;letter-spacing:.12em}.product-main-id strong{display:block;margin:8px 0 4px;font-size:32px;line-height:1.08;letter-spacing:-.045em}.product-main-id small{color:var(--ui-muted);font-weight:750}.product-detail-strip{display:grid!important;grid-template-columns:repeat(4,minmax(110px,1fr))!important;gap:10px}.product-detail-strip span{display:block;padding:13px;border-radius:18px;background:#f1f6f9;border:1px solid rgba(15,45,75,.07)}.product-detail-strip small{display:block;color:#71869a;font-weight:900;margin-bottom:5px}.product-detail-strip b{color:#0b2239}.product-header-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.product-mini-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.product-mini-stats span{padding:13px;border-radius:18px;background:#fff;border:1px solid var(--ui-line);font-weight:900;color:#556b80}.product-mini-stats b{font-size:20px;color:#0f766e}.ultra-compact-import{padding:16px 18px}.compact-import-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.compact-import-form input[type=file]{padding:10px;border-radius:14px;background:#f8fafc;border:1px solid var(--ui-line)}

@media(max-width:980px){.settings-hub-grid,.modern-param-grid{grid-template-columns:1fr}.world-product-header{grid-template-columns:1fr}.product-detail-strip{grid-template-columns:1fr 1fr!important}.product-mini-stats{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.modern-product-form,.product-card-grid{grid-template-columns:1fr}.product-detail-strip,.product-mini-stats{grid-template-columns:1fr!important}.settings-section-head{flex-direction:column}.drawer-panel{padding:14px}.modern-page-title h1{font-size:28px}}

/* =========================================================
   Full application visual polish: home, all pages, materials table
   ========================================================= */
:root{
  --tone-1:#0f766e;--tone-1-bg:#ecfdf5;
  --tone-2:#2563eb;--tone-2-bg:#eff6ff;
  --tone-3:#7c3aed;--tone-3-bg:#f5f3ff;
  --tone-4:#ea580c;--tone-4-bg:#fff7ed;
  --tone-5:#be123c;--tone-5-bg:#fff1f2;
  --tone-6:#0891b2;--tone-6-bg:#ecfeff;
  --tone-7:#4f46e5;--tone-7-bg:#eef2ff;
  --tone-8:#ca8a04;--tone-8-bg:#fefce8;
}
.page{padding-top:34px;padding-bottom:44px}.content-shell{width:min(1720px,calc(100% - 32px))}
.topbar{position:sticky;top:0;z-index:50;background:linear-gradient(135deg,#082338,#123d5a 48%,#0f766e 160%)}
.topbar-inner{min-height:82px}.brand-logo{border-radius:16px;box-shadow:0 12px 26px rgba(0,0,0,.12)}
.top-nav a,.settings-trigger{border:1px solid transparent}.top-nav a:hover,.top-nav a.active,.settings-trigger:hover,.settings-trigger.active{border-color:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.dashboard-grid-home{display:grid!important;grid-template-columns:repeat(3,minmax(260px,1fr));gap:22px;margin-top:18px}
.dashboard-module{min-height:235px;padding:26px!important;border-radius:30px!important;background:linear-gradient(145deg,#ffffff 0%,#f8fbfd 100%)!important;border:1px solid rgba(15,45,75,.10)!important;box-shadow:0 24px 64px rgba(10,31,55,.11)!important;position:relative;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.dashboard-module:before{content:"";position:absolute;right:-70px;top:-70px;width:190px;height:190px;border-radius:999px;background:rgba(20,184,166,.12)}
.dashboard-module:nth-child(2):before{background:rgba(37,99,235,.11)}.dashboard-module:nth-child(3):before{background:rgba(124,58,237,.10)}
.dashboard-module:hover{transform:translateY(-6px);box-shadow:0 34px 82px rgba(10,31,55,.16)!important;border-color:rgba(20,184,166,.35)!important}
.module-icon{width:68px!important;height:68px!important;border-radius:24px!important;background:linear-gradient(135deg,#e6fffb,#ffffff)!important;color:#0f766e!important;box-shadow:inset 0 0 0 1px rgba(15,118,110,.10)}
.dashboard-module:nth-child(2) .module-icon{background:linear-gradient(135deg,#eff6ff,#fff)!important;color:#2563eb!important}.dashboard-module:nth-child(3) .module-icon{background:linear-gradient(135deg,#f5f3ff,#fff)!important;color:#7c3aed!important}
.module-top h2{font-size:27px!important;letter-spacing:-.04em}.module-body p{font-size:15px!important;line-height:1.55!important;color:#5e7287!important}.module-footer{padding-top:18px!important;border-top:1px dashed rgba(15,45,75,.13)}
.page-title{position:relative;overflow:hidden}.page-title:not(.modern-page-title){padding:26px 30px!important;background:linear-gradient(135deg,#fff,#f6fbfd)!important}.page-title:after{content:"";position:absolute;right:-80px;top:-90px;width:220px;height:220px;border-radius:999px;background:rgba(20,184,166,.09);pointer-events:none}.page-title h1{font-size:34px!important;letter-spacing:-.045em}.eyebrow{color:#0f766e!important;font-weight:950!important;letter-spacing:.14em!important}
.customer-summary-grid,.material-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:16px;margin:18px 0}.summary-card{border-radius:24px!important;background:linear-gradient(180deg,#fff,#f8fbfd)!important;border:1px solid rgba(15,45,75,.10)!important;box-shadow:0 16px 38px rgba(10,31,55,.08)!important;padding:20px!important}.summary-card small{font-weight:950!important;color:#71869a!important}.summary-card strong{font-size:30px!important;color:#0f766e!important;letter-spacing:-.04em}
.panel,.professional-list-panel,.material-panel,.customer-list{overflow:hidden}.list-header{background:linear-gradient(135deg,#ffffff,#f0fdfa);border-bottom:1px solid rgba(15,45,75,.09);padding:20px 22px!important;margin:-1px -1px 0!important}.list-header h2{font-size:24px!important;letter-spacing:-.035em}.list-header span{color:#71869a!important;font-weight:750!important}
.search-box{height:48px!important;border-radius:18px!important;border:1px solid rgba(15,45,75,.12)!important;background:#fff!important;box-shadow:0 8px 22px rgba(10,31,55,.05)}.search-input{font-weight:750!important}.status-filter,.form-control{border-radius:16px!important;border:1px solid rgba(15,45,75,.13)!important;background:#fff!important}
.material-note{margin:18px 22px!important;padding:14px 16px!important;border-radius:18px!important;background:#f0fdfa!important;color:#31586a!important;border:1px solid rgba(15,118,110,.12)!important}.material-note strong{color:#0f766e!important}
.table-wrap{border-radius:0 0 24px 24px;overflow:auto;background:#fff}.data-table{border-collapse:separate!important;border-spacing:0 10px!important;width:100%;padding:0 16px 16px}.data-table thead th{position:sticky;top:0;z-index:2;background:#102f45!important;color:#eaf6ff!important;text-transform:uppercase;letter-spacing:.08em;font-size:12px!important;padding:14px 16px!important;border:0!important}.data-table thead th:first-child{border-radius:16px 0 0 16px}.data-table thead th:last-child{border-radius:0 16px 16px 0}.data-table tbody tr{background:#fff;box-shadow:0 10px 26px rgba(10,31,55,.06);transition:transform .15s ease,box-shadow .15s ease}.data-table tbody tr:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(10,31,55,.12)}.data-table tbody td{border-top:1px solid rgba(15,45,75,.08)!important;border-bottom:1px solid rgba(15,45,75,.08)!important;padding:10px 12px!important}.data-table tbody td:first-child{border-left:5px solid #0f766e!important;border-radius:18px 0 0 18px}.data-table tbody td:last-child{border-right:1px solid rgba(15,45,75,.08)!important;border-radius:0 18px 18px 0}
.material-tone-row.tone-1 td:first-child{border-left-color:var(--tone-1)!important}.material-tone-row.tone-2 td:first-child{border-left-color:var(--tone-2)!important}.material-tone-row.tone-3 td:first-child{border-left-color:var(--tone-3)!important}.material-tone-row.tone-4 td:first-child{border-left-color:var(--tone-4)!important}.material-tone-row.tone-5 td:first-child{border-left-color:var(--tone-5)!important}.material-tone-row.tone-6 td:first-child{border-left-color:var(--tone-6)!important}.material-tone-row.tone-7 td:first-child{border-left-color:var(--tone-7)!important}.material-tone-row.tone-8 td:first-child{border-left-color:var(--tone-8)!important}
.material-tone-row.tone-1 td:nth-child(2) .table-input{background:var(--tone-1-bg)!important;color:var(--tone-1)!important}.material-tone-row.tone-2 td:nth-child(2) .table-input{background:var(--tone-2-bg)!important;color:var(--tone-2)!important}.material-tone-row.tone-3 td:nth-child(2) .table-input{background:var(--tone-3-bg)!important;color:var(--tone-3)!important}.material-tone-row.tone-4 td:nth-child(2) .table-input{background:var(--tone-4-bg)!important;color:var(--tone-4)!important}.material-tone-row.tone-5 td:nth-child(2) .table-input{background:var(--tone-5-bg)!important;color:var(--tone-5)!important}.material-tone-row.tone-6 td:nth-child(2) .table-input{background:var(--tone-6-bg)!important;color:var(--tone-6)!important}.material-tone-row.tone-7 td:nth-child(2) .table-input{background:var(--tone-7-bg)!important;color:var(--tone-7)!important}.material-tone-row.tone-8 td:nth-child(2) .table-input{background:var(--tone-8-bg)!important;color:var(--tone-8)!important}
.table-input{height:42px!important;border-radius:14px!important;border:1px solid rgba(15,45,75,.10)!important;background:#f8fafc!important;font-weight:800!important}.table-input-strong{font-size:14px!important;color:#102f45!important;background:#fff!important}.table-input:focus{outline:0;border-color:#14b8a6!important;box-shadow:0 0 0 4px rgba(20,184,166,.12)!important;background:#fff!important}.table-select{min-width:190px}.inline-actions{gap:8px!important}.icon-action{width:40px!important;height:40px!important;border-radius:14px!important;box-shadow:0 8px 18px rgba(10,31,55,.08)}.icon-action.save{background:#ecfdf5!important;color:#0f766e!important}.icon-action.danger{background:#fff1f2!important;color:#be123c!important}
.order-card,.modern-product-card,.settings-hub-card,.product-editor-card{border:1px solid rgba(15,45,75,.10)!important}.order-card{border-radius:26px!important;background:linear-gradient(180deg,#fff,#f8fbfd)!important;box-shadow:0 16px 40px rgba(10,31,55,.08)!important}.order-card:hover{transform:translateY(-4px);box-shadow:0 26px 58px rgba(10,31,55,.14)!important}.order-card-top strong{background:#e9fbf8;color:#0f766e;border-radius:999px;padding:7px 11px}.order-card-footer{border-top:1px dashed rgba(15,45,75,.13);padding-top:14px!important}
.form-card,.settings-card,.narrow>form,.clean-form{border-radius:28px!important;border:1px solid rgba(15,45,75,.10)!important;box-shadow:0 22px 58px rgba(10,31,55,.10)!important;background:#fff!important}.form-label,label{font-weight:900;color:#334155}.form-control,input,textarea,select{transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}input:focus,textarea:focus,select:focus{outline:0;border-color:#14b8a6!important;box-shadow:0 0 0 4px rgba(20,184,166,.12)!important}
.alert-panel{border-radius:22px!important;background:#fff7ed!important;border:1px solid rgba(234,88,12,.18)!important;color:#9a3412!important;box-shadow:0 18px 44px rgba(154,52,18,.08)!important}.empty-row,.empty-bom-state{border-radius:18px!important;background:#f8fafc!important;color:#64748b!important}
@media(max-width:1000px){.dashboard-grid-home{grid-template-columns:1fr}.customer-summary-grid,.material-summary-grid{grid-template-columns:1fr}.data-table{min-width:920px}.content-shell{width:min(100% - 20px,1720px)}}

/* === FINAL UI FIX: drawers + professional imported Excel/BOM table === */
.order-form-drawer,.order-edit-drawer,.item-form-drawer,.item-edit-drawer-global{position:fixed!important;inset:0!important;z-index:99999!important;display:none!important}
body.order-form-open .order-form-drawer,body.order-edit-open .order-edit-drawer,body.item-form-open .item-form-drawer,body.item-edit-open .item-edit-drawer-global{display:block!important}
.order-form-drawer .drawer-backdrop,.order-edit-drawer .drawer-backdrop,.item-form-drawer .drawer-backdrop,.item-edit-drawer-global .drawer-backdrop{position:absolute!important;inset:0!important;background:rgba(6,24,44,.58)!important;backdrop-filter:blur(4px)!important;opacity:1!important}
.order-form-drawer .drawer-panel,.order-edit-drawer .drawer-panel,.item-form-drawer .drawer-panel,.item-edit-drawer-global .drawer-panel{position:absolute!important;top:0!important;right:0!important;height:100%!important;width:min(920px,96vw)!important;overflow:auto!important;background:linear-gradient(180deg,#f7fbff,#eef6f8)!important;padding:24px!important;box-shadow:-28px 0 80px rgba(8,28,49,.32)!important;transform:none!important;opacity:1!important}
.order-form-drawer .order-form-panel,.order-edit-drawer .order-form-panel,.item-form-drawer .product-editor-card,.item-edit-drawer-global .product-editor-card{margin:0!important;max-width:none!important;border-radius:26px!important}

.excel-import-panel{border:1px solid rgba(20,184,166,.25)!important;background:linear-gradient(135deg,#f0fdfa,#eff6ff)!important;box-shadow:0 18px 45px rgba(15,50,75,.08)!important}
.bom-result-panel,.world-bom-details{border-radius:28px!important;overflow:hidden!important;background:#ffffff!important;border:1px solid rgba(148,163,184,.28)!important;box-shadow:0 20px 60px rgba(15,23,42,.08)!important}
.bom-list-summary{background:linear-gradient(135deg,#0f3a56,#126b72)!important;color:#fff!important;padding:22px 24px!important;list-style:none!important;cursor:pointer!important}
.bom-list-summary h2{color:#fff!important;margin:0 0 4px!important}.bom-list-summary span{color:rgba(255,255,255,.78)!important}.bom-list-summary b{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:999px!important;padding:8px 13px!important}
.manufacturing-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;padding:16px!important;background:#f8fafc!important;border-bottom:1px solid rgba(148,163,184,.25)!important}
.bom-tab-button{border:1px solid rgba(148,163,184,.28)!important;background:#fff!important;border-radius:18px!important;padding:14px!important;text-align:left!important;box-shadow:0 10px 22px rgba(15,23,42,.05)!important;cursor:pointer!important;transition:.18s ease!important}
.bom-tab-button:hover{transform:translateY(-2px)!important;box-shadow:0 16px 32px rgba(15,23,42,.09)!important}.bom-tab-button.active{background:linear-gradient(135deg,#14b8a6,#2563eb)!important;color:#fff!important;border-color:transparent!important}.bom-tab-button.active small,.bom-tab-button.active strong{color:#fff!important}.bom-tab-button span{font-weight:950!important}.bom-tab-button strong{display:block!important;font-size:22px!important;color:#0f3a56!important}.bom-tab-button small{color:#64748b!important;font-weight:750!important}
.bom-tab-panel{display:none!important;padding:18px!important;background:#f8fafc!important}.bom-tab-panel.active{display:block!important}
.bom-category-block{border:1px solid rgba(148,163,184,.28)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 14px 35px rgba(15,23,42,.06)!important;margin-bottom:16px!important;overflow:hidden!important}.bom-category-block>summary{display:flex!important;align-items:center!important;gap:12px!important;padding:16px 18px!important;cursor:pointer!important;background:linear-gradient(90deg,#fff,#f8fafc)!important;border-bottom:1px solid rgba(148,163,184,.18)!important}.bom-category-block h3{margin:0!important;color:#0f172a!important}.bom-category-block small{color:#64748b!important;font-weight:800!important}.bom-plus{width:34px;height:34px;border-radius:12px;background:#e0f2fe;color:#0369a1;display:inline-flex;align-items:center;justify-content:center;font-weight:950}
.bom-clean-table{display:block!important;width:100%!important;overflow:auto!important;border-radius:18px!important;background:#fff!important}.bom-clean-head{position:sticky!important;top:0!important;z-index:2!important;display:grid!important;gap:10px!important;align-items:center!important;padding:12px 14px!important;background:#0f3a56!important;color:#fff!important;font-size:12px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.04em!important}.mode-one .bom-clean-head{grid-template-columns:minmax(260px,2fr) 90px 110px 150px 160px 100px!important}.mode-sheet .bom-clean-head{grid-template-columns:minmax(260px,2fr) 90px 105px 105px 110px 160px 100px!important}.mode-simple .bom-clean-head{grid-template-columns:minmax(260px,2fr) 90px 160px 140px 100px!important}
.bom-clean-row{display:grid!important;gap:10px!important;align-items:center!important;padding:12px 14px!important;border-bottom:1px solid #e2e8f0!important;background:#fff!important;transition:.15s ease!important}.bom-clean-row:nth-child(even){background:#f8fafc!important}.bom-clean-row:hover{background:#ecfeff!important;box-shadow:inset 4px 0 0 #14b8a6!important}.bom-row-mode-one{grid-template-columns:minmax(260px,2fr) 90px 110px 150px 160px 100px!important}.bom-row-mode-sheet{grid-template-columns:minmax(260px,2fr) 90px 105px 105px 110px 160px 100px!important}.bom-row-mode-simple{grid-template-columns:minmax(260px,2fr) 90px 160px 140px 100px!important}.bom-cell small{display:block!important;margin-bottom:5px!important;color:#64748b!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important}.bom-cell.material small{color:#0f766e!important}.table-input{width:100%!important;min-height:38px!important;border:1px solid #cbd5e1!important;border-radius:12px!important;background:#fff!important;padding:8px 10px!important;font-weight:800!important;color:#0f172a!important;box-sizing:border-box!important}.material-name-input{font-weight:950!important;background:#f8fafc!important}.table-input:focus{outline:none!important;border-color:#14b8a6!important;box-shadow:0 0 0 4px rgba(20,184,166,.14)!important}.compact-angle{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.compact-angle small{grid-column:1/-1!important}.table-select{background:#eff6ff!important;border-color:#bfdbfe!important;color:#1d4ed8!important}.status-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;border-radius:999px!important;padding:6px 11px!important;font-weight:950!important;background:#e2e8f0!important;color:#334155!important}.status-ok{background:#dcfce7!important;color:#166534!important}.status-danger{background:#fee2e2!important;color:#991b1b!important}.bom-cell.actions .btn{width:100%!important;border-radius:12px!important;min-height:38px!important}
.bom-category-block.category-profil,.bom-category-block.category-lama,.bom-category-block.category-sac,.bom-category-block.category-lazer,.bom-category-block.category-plastik,.bom-category-block.category-branda{border-top-width:5px!important}.category-profil{border-top-color:#0ea5e9!important}.category-lama{border-top-color:#8b5cf6!important}.category-sac{border-top-color:#f59e0b!important}.category-lazer{border-top-color:#ef4444!important}.category-plastik{border-top-color:#22c55e!important}.category-branda{border-top-color:#14b8a6!important}
@media(max-width:900px){.bom-clean-head{display:none!important}.bom-clean-row,.bom-row-mode-one,.bom-row-mode-sheet,.bom-row-mode-simple{grid-template-columns:1fr 1fr!important}.bom-cell.material{grid-column:1/-1!important}.bom-cell.actions{grid-column:1/-1!important}.order-form-drawer .drawer-panel,.order-edit-drawer .drawer-panel,.item-form-drawer .drawer-panel,.item-edit-drawer-global .drawer-panel{width:100%!important;padding:14px!important}}

/* 2026-05-22 final polish: BOM import table, delete buttons, one-dimensional cards */
.inline-delete-form{display:inline-flex;margin:0}.page-title-actions,.product-header-actions{gap:10px;flex-wrap:wrap}.btn-danger-soft{background:#fff1f2!important;color:#be123c!important;border:1px solid rgba(225,29,72,.22)!important}.btn-danger-soft:hover{background:#ffe4e6!important;transform:translateY(-1px)}
.manufacturing-tabs .bom-tab-button{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;min-height:86px!important;padding:15px 16px!important}.manufacturing-tabs .bom-tab-button span{font-size:15px!important;letter-spacing:-.01em!important}.manufacturing-tabs .bom-tab-button strong{font-size:14px!important;line-height:1.2!important;display:block!important;width:auto!important;height:auto!important;min-width:0!important;background:transparent!important;border-radius:0!important;justify-content:flex-start!important;color:#0f3a56!important}.manufacturing-tabs .bom-tab-button small{font-size:12px!important;line-height:1.25!important}.manufacturing-tabs .bom-tab-button.active strong{color:#fff!important;background:transparent!important}.manufacturing-tabs .bom-tab-button.active small{color:rgba(255,255,255,.85)!important}
.one-dim-grid.refined-one-dim-grid{display:flex!important;flex-direction:column!important;gap:14px!important}.one-dim-block summary h3:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:#2563eb;margin-right:8px}.one-dim-block:nth-child(2) summary h3:before{background:#06b6d4}.one-dim-block:nth-child(3) summary h3:before{background:#22c55e}.one-dim-block:nth-child(4) summary h3:before{background:#f97316}.one-dim-block:nth-child(5) summary h3:before{background:#8b5cf6}.one-dim-block:nth-child(6) summary h3:before{background:#ef4444}
.world-bom-table{border-radius:18px!important;overflow:hidden!important;border:1px solid rgba(15,23,42,.09)!important;background:#fff!important;box-shadow:0 18px 42px rgba(15,23,42,.06)!important}.world-bom-table .bom-clean-head{background:linear-gradient(135deg,#0f3a56,#155e75)!important;color:#fff!important;font-weight:900!important;padding:12px 14px!important}.world-bom-table .bom-clean-head span{color:#fff!important}.world-bom-table .world-bom-row{border-bottom:1px solid rgba(148,163,184,.20)!important;background:#ffffff!important}.world-bom-table .world-bom-row:nth-child(odd){background:#f8fbff!important}.world-bom-table .world-bom-row:hover{background:#eef8ff!important}.world-bom-table .table-input{border:1px solid rgba(100,116,139,.22)!important;background:#fff!important;border-radius:10px!important}.world-bom-table .material-name-input{font-weight:850;color:#0f172a}.world-bom-table .bom-cell small{color:#64748b!important;font-weight:850!important}.row-actions{display:flex!important;align-items:end!important;gap:7px!important}.btn-mini{padding:7px 10px!important;border-radius:10px!important;font-size:12px!important;font-weight:900!important}.mode-one .bom-clean-head,.mode-one .world-bom-row{grid-template-columns:minmax(230px,1.4fr) 86px 96px 140px 150px 130px!important}.mode-sheet .bom-clean-head,.mode-sheet .world-bom-row{grid-template-columns:minmax(230px,1.4fr) 86px 96px 96px 96px 150px 130px!important}.mode-simple .bom-clean-head,.mode-simple .world-bom-row{grid-template-columns:minmax(230px,1.5fr) 86px 160px 130px 130px!important}

/* Final compact BOM cleanup */
.bom-tab-nav .bom-tab-button:empty{display:none!important}
.row-actions{justify-content:flex-end!important;align-items:center!important;gap:6px!important}
.bom-row-icon{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.bom-row-icon svg{width:16px!important;height:16px!important}
.bom-cell.actions .bom-row-icon{width:34px!important;min-height:34px!important}
.mode-one .bom-clean-head,.mode-one .world-bom-row{grid-template-columns:minmax(260px,1.6fr) 78px 90px 116px 145px 84px!important}
.mode-sheet .bom-clean-head,.mode-sheet .world-bom-row{grid-template-columns:minmax(260px,1.6fr) 78px 86px 86px 90px 145px 84px!important}
.mode-simple .bom-clean-head,.mode-simple .world-bom-row{grid-template-columns:minmax(260px,1.8fr) 78px 150px 120px 84px!important}
.world-bom-table .table-input{min-height:34px!important;height:34px!important;padding:6px 9px!important;border-radius:9px!important}
.world-bom-table .bom-clean-row{padding:8px 12px!important;gap:8px!important}
.world-bom-table .bom-cell small{font-size:9px!important;margin-bottom:3px!important}
.status-chip{min-height:32px!important;padding:4px 9px!important}


/* 2026-05-22: keep BOM row action buttons compact and horizontal */
.world-bom-table .row-actions,
.bom-edit-row .row-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:3px!important;
  justify-items:end!important;
  align-items:center!important;
}
.world-bom-table .row-actions small,
.bom-edit-row .row-actions small{
  width:100%!important;
  text-align:right!important;
  margin:0 0 2px!important;
}
.bom-action-buttons{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  width:auto!important;
  min-width:74px!important;
  white-space:nowrap!important;
}
.bom-action-buttons .bom-row-icon{
  flex:0 0 34px!important;
}
@media(max-width:900px){
  .world-bom-table .row-actions,
  .bom-edit-row .row-actions{justify-items:flex-start!important}
  .world-bom-table .row-actions small,
  .bom-edit-row .row-actions small{text-align:left!important}
  .bom-action-buttons{justify-content:flex-start!important}
}

/* 2026-05-22: BOM rows get a very light professional tone per normalized material type.
   Spaces are ignored, so 'Profil30x30x3mm' and 'Profil 30x30x3mm' receive the same tone. */
.world-bom-table .world-bom-row{
  background:var(--bom-row-bg,#fff)!important;
  box-shadow:inset 4px 0 0 var(--bom-row-accent,rgba(20,184,166,.45))!important;
}
.world-bom-table .world-bom-row:nth-child(odd){
  background:var(--bom-row-bg-alt,var(--bom-row-bg,#f8fbff))!important;
}
.world-bom-table .world-bom-row:hover{
  background:color-mix(in srgb,var(--bom-row-bg,#eef8ff) 72%,#ffffff)!important;
}
.world-bom-table .bom-cell.status .status-chip{
  width:100%!important;
}
.mode-one .bom-clean-head,.mode-one .world-bom-row{
  grid-template-columns:minmax(250px,1.6fr) 72px 82px 108px 136px 102px 78px!important;
}
.mode-sheet .bom-clean-head,.mode-sheet .world-bom-row{
  grid-template-columns:minmax(250px,1.6fr) 72px 78px 78px 86px 136px 102px 78px!important;
}
.mode-simple .bom-clean-head,.mode-simple .world-bom-row{
  grid-template-columns:minmax(250px,1.8fr) 72px 136px 102px 78px!important;
}

/* 2026-05-22: Stronger non-annoying material color separation.
   The color comes from the normalized material name, with spaces ignored. */
.world-bom-table .world-bom-row{
  background:var(--bom-row-bg,#fff)!important;
  box-shadow:inset 6px 0 0 var(--bom-row-accent,#14b8a6)!important;
}
.world-bom-table .world-bom-row:nth-child(odd){
  background:var(--bom-row-bg-alt,var(--bom-row-bg,#fff))!important;
}
.world-bom-table .world-bom-row:hover{
  background:color-mix(in srgb,var(--bom-row-bg,#eef8ff) 82%,#ffffff)!important;
  box-shadow:inset 8px 0 0 var(--bom-row-accent,#14b8a6),0 8px 20px rgba(15,23,42,.06)!important;
}
.world-bom-table .world-bom-row .material-name-input{
  background:color-mix(in srgb,var(--bom-row-bg,#f8fafc) 72%,#ffffff)!important;
  border-color:color-mix(in srgb,var(--bom-row-accent,#94a3b8) 36%,#cbd5e1)!important;
  color:#0f172a!important;
}
.world-bom-table .world-bom-row .bom-cell.material small{
  color:var(--bom-row-fg,#0f766e)!important;
}
.world-bom-table .world-bom-row .table-select{
  background:color-mix(in srgb,var(--bom-row-bg,#eff6ff) 62%,#ffffff)!important;
  border-color:color-mix(in srgb,var(--bom-row-accent,#bfdbfe) 34%,#cbd5e1)!important;
  color:var(--bom-row-fg,#1d4ed8)!important;
}

/* 2026-05-22: stronger professional separation between material sizes.
   Same normalized material keeps same tone; different sizes get visibly different tones. */
.world-bom-table .world-bom-row{
  background:var(--bom-row-bg,#fff)!important;
  box-shadow:inset 9px 0 0 var(--bom-row-accent,#14b8a6)!important;
}
.world-bom-table .world-bom-row:nth-child(odd){
  background:var(--bom-row-bg,var(--bom-row-bg-alt,#fff))!important;
}
.world-bom-table .world-bom-row:hover{
  background:color-mix(in srgb,var(--bom-row-bg,#eef8ff) 92%,#ffffff)!important;
  box-shadow:inset 11px 0 0 var(--bom-row-accent,#14b8a6),0 10px 24px rgba(15,23,42,.08)!important;
}
.world-bom-table .world-bom-row .material-name-input{
  background:#fff!important;
  border-color:color-mix(in srgb,var(--bom-row-accent,#94a3b8) 48%,#cbd5e1)!important;
}
.world-bom-table .world-bom-row .bom-cell.material small{
  color:var(--bom-row-fg,#0f766e)!important;
}


/* === Modern industrial home dashboard upgrade - 2026-05-22 === */
.dashboard-grid-home{
  display:grid!important;
  grid-template-columns:1.18fr 1fr 1fr!important;
  gap:24px!important;
  align-items:stretch!important;
  margin-top:22px!important;
}
.dashboard-grid-home .dashboard-module{
  min-height:250px!important;
  border-radius:32px!important;
  padding:28px!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  border:1px solid rgba(15,45,75,.12)!important;
  box-shadow:0 24px 70px rgba(10,31,55,.12)!important;
  background:#fff!important;
}
.dashboard-grid-home .dashboard-module:before{
  content:""!important;
  position:absolute!important;
  inset:auto -78px -86px auto!important;
  width:230px!important;
  height:230px!important;
  border-radius:999px!important;
  opacity:.72!important;
  z-index:-2!important;
}
.dashboard-grid-home .dashboard-module:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.38))!important;
  z-index:-1!important;
}
.dashboard-grid-home .dashboard-module:hover{
  transform:translateY(-7px)!important;
  box-shadow:0 34px 90px rgba(10,31,55,.18)!important;
}
.dashboard-grid-home .dashboard-tone-order{
  background:linear-gradient(135deg,#ecfeff 0%,#ffffff 46%,#e0f2fe 100%)!important;
  border-color:rgba(14,116,144,.24)!important;
}
.dashboard-grid-home .dashboard-tone-order:before{background:linear-gradient(135deg,#06b6d4,#2563eb)!important;}
.dashboard-grid-home .dashboard-tone-order .module-icon{
  background:linear-gradient(135deg,#0891b2,#2563eb)!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(37,99,235,.27)!important;
}
.dashboard-grid-home .dashboard-tone-customers{
  background:linear-gradient(135deg,#f0fdf4 0%,#ffffff 48%,#dcfce7 100%)!important;
  border-color:rgba(22,163,74,.22)!important;
}
.dashboard-grid-home .dashboard-tone-customers:before{background:linear-gradient(135deg,#22c55e,#0f766e)!important;}
.dashboard-grid-home .dashboard-tone-customers .module-icon{
  background:linear-gradient(135deg,#16a34a,#0f766e)!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(22,163,74,.25)!important;
}
.dashboard-grid-home .dashboard-tone-materials{
  background:linear-gradient(135deg,#fff7ed 0%,#ffffff 48%,#ffedd5 100%)!important;
  border-color:rgba(234,88,12,.22)!important;
}
.dashboard-grid-home .dashboard-tone-materials:before{background:linear-gradient(135deg,#f97316,#7c3aed)!important;}
.dashboard-grid-home .dashboard-tone-materials .module-icon{
  background:linear-gradient(135deg,#f97316,#7c3aed)!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(249,115,22,.23)!important;
}
.dashboard-grid-home .dashboard-tone-order .module-footer strong{
  background:#0e7490!important;
  color:#fff!important;
  padding:8px 12px!important;
  border-radius:999px!important;
}
.dashboard-grid-home .module-icon{
  width:58px!important;
  height:58px!important;
  border-radius:20px!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:20px!important;
}
.dashboard-grid-home .module-body{position:relative!important;z-index:1!important;}
.dashboard-grid-home .module-card h2{
  font-size:1.42rem!important;
  letter-spacing:-.02em!important;
  color:#0f172a!important;
}
.dashboard-grid-home .dashboard-module p{
  color:#475569!important;
  line-height:1.65!important;
  max-width:40rem!important;
}
.dashboard-grid-home .module-footer{
  margin-top:22px!important;
  padding-top:16px!important;
  border-top:1px solid rgba(15,45,75,.09)!important;
}
.dashboard-grid-home .module-arrow{
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(15,45,75,.10)!important;
  border-radius:16px!important;
}
@media(max-width:1100px){.dashboard-grid-home{grid-template-columns:1fr!important;}.dashboard-grid-home .dashboard-module{min-height:210px!important;}}

/* Final fix: keep all main material tabs visible and give new tabs their own tones */
.manufacturing-tabs .bom-tab-button[data-bom-tab="iscilik"]{border-color:rgba(147,51,234,.22);background:linear-gradient(180deg,#fff,#faf5ff)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="kontrol"]{border-color:rgba(220,38,38,.22);background:linear-gradient(180deg,#fff,#fff1f2)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="diger"]{border-color:rgba(100,116,139,.20);background:linear-gradient(180deg,#fff,#f8fafc)}
.manufacturing-tabs .bom-tab-button strong{min-width:38px}
.world-bom-table.mode-one .bom-clean-head,
.world-bom-table.mode-one .bom-clean-row{
  grid-template-columns:minmax(260px,1.45fr) 86px 120px 150px minmax(190px,.75fr) 118px 92px!important;
}
.world-bom-table.mode-sheet .bom-clean-head,
.world-bom-table.mode-sheet .bom-clean-row{
  grid-template-columns:minmax(260px,1.35fr) 86px 105px 105px 105px minmax(190px,.75fr) 118px 92px!important;
}
.world-bom-table.mode-simple .bom-clean-head,
.world-bom-table.mode-simple .bom-clean-row{
  grid-template-columns:minmax(300px,1.5fr) 86px minmax(210px,.8fr) 118px 92px!important;
}
.status-chip{white-space:nowrap;text-align:center}
@media(max-width:1100px){
  .world-bom-table.mode-one .bom-clean-head,
  .world-bom-table.mode-one .bom-clean-row,
  .world-bom-table.mode-sheet .bom-clean-head,
  .world-bom-table.mode-sheet .bom-clean-row,
  .world-bom-table.mode-simple .bom-clean-head,
  .world-bom-table.mode-simple .bom-clean-row{grid-template-columns:1fr!important}
}

/* === REAL FIX 2026-05-25: colored professional BOM statistics + unsaved row indicator === */
.professional-bom-tabs .manufacturing-tabs{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(165px,1fr))!important;
  gap:14px!important;
  padding:16px!important;
  background:linear-gradient(135deg,#f8fafc,#eef6fb)!important;
  border:1px solid rgba(15,45,75,.10)!important;
  border-radius:24px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 16px 45px rgba(15,45,75,.07)!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button{
  position:relative!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  grid-template-areas:"title count" "hint hint"!important;
  align-items:start!important;
  min-height:104px!important;
  padding:18px 18px 16px!important;
  border-radius:22px!important;
  border:1px solid rgba(15,45,75,.12)!important;
  background:linear-gradient(135deg,#ffffff,#f8fafc)!important;
  box-shadow:0 12px 28px rgba(15,45,75,.07)!important;
  text-align:left!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button:before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:7px!important;
  background:var(--tab-accent,#0f766e)!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button:after{
  content:""!important;
  position:absolute!important;
  right:-42px!important;
  bottom:-48px!important;
  width:125px!important;
  height:125px!important;
  border-radius:999px!important;
  background:var(--tab-soft,rgba(15,118,110,.12))!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 20px 45px rgba(15,45,75,.12)!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button span{
  grid-area:title!important;
  position:relative!important;
  z-index:1!important;
  font-size:15px!important;
  font-weight:950!important;
  color:#16364f!important;
  line-height:1.18!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button strong{
  grid-area:count!important;
  position:relative!important;
  z-index:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:64px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  background:var(--tab-accent,#0f766e)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:950!important;
  box-shadow:0 10px 22px var(--tab-shadow,rgba(15,118,110,.22))!important;
  white-space:nowrap!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button small{
  grid-area:hint!important;
  position:relative!important;
  z-index:1!important;
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(15,45,75,.08)!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active{
  color:#fff!important;
  background:linear-gradient(135deg,var(--tab-accent,#0f766e),var(--tab-accent-2,#155e75))!important;
  border-color:transparent!important;
  box-shadow:0 24px 55px var(--tab-shadow,rgba(15,118,110,.26))!important;
}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active:before{background:rgba(255,255,255,.50)!important;}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active:after{background:rgba(255,255,255,.16)!important;}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active span,
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active small{color:#fff!important;}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active small{border-top-color:rgba(255,255,255,.22)!important;}
.professional-bom-tabs .manufacturing-tabs .bom-tab-button.active strong{background:rgba(255,255,255,.20)!important;color:#fff!important;box-shadow:none!important;}
.manufacturing-tabs .bom-tab-button[data-bom-tab="tek-boyutlu"]{--tab-accent:#2563eb;--tab-accent-2:#0e7490;--tab-soft:rgba(37,99,235,.13);--tab-shadow:rgba(37,99,235,.26)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="sac"]{--tab-accent:#475569;--tab-accent-2:#0f766e;--tab-soft:rgba(71,85,105,.13);--tab-shadow:rgba(71,85,105,.22)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="lazer"]{--tab-accent:#dc2626;--tab-accent-2:#f97316;--tab-soft:rgba(220,38,38,.13);--tab-shadow:rgba(220,38,38,.24)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="branda"]{--tab-accent:#0891b2;--tab-accent-2:#06b6d4;--tab-soft:rgba(8,145,178,.13);--tab-shadow:rgba(8,145,178,.24)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="hazir-parca"]{--tab-accent:#ca8a04;--tab-accent-2:#ea580c;--tab-soft:rgba(202,138,4,.16);--tab-shadow:rgba(202,138,4,.24)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="plastik"]{--tab-accent:#16a34a;--tab-accent-2:#0f766e;--tab-soft:rgba(22,163,74,.14);--tab-shadow:rgba(22,163,74,.24)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="iscilik"]{--tab-accent:#7c3aed;--tab-accent-2:#9333ea;--tab-soft:rgba(124,58,237,.14);--tab-shadow:rgba(124,58,237,.24)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="diger"]{--tab-accent:#64748b;--tab-accent-2:#334155;--tab-soft:rgba(100,116,139,.13);--tab-shadow:rgba(100,116,139,.20)}
.manufacturing-tabs .bom-tab-button[data-bom-tab="kontrol"]{--tab-accent:#e11d48;--tab-accent-2:#b91c1c;--tab-soft:rgba(225,29,72,.14);--tab-shadow:rgba(225,29,72,.24)}

.world-bom-table .bom-edit-row.is-dirty{
  outline:2px solid #f59e0b!important;
  outline-offset:-2px!important;
  box-shadow:inset 7px 0 0 #f59e0b,0 14px 30px rgba(245,158,11,.18)!important;
  background:linear-gradient(90deg,rgba(255,251,235,.98),var(--bom-row-bg,#fff))!important;
}
.world-bom-table .bom-edit-row.is-dirty .table-input,
.world-bom-table .bom-edit-row.is-dirty .table-select{
  border-color:rgba(245,158,11,.72)!important;
  background:#fffdf5!important;
}
.bom-unsaved-badge{
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#fffbeb!important;
  color:#92400e!important;
  border:1px solid rgba(245,158,11,.38)!important;
  font-size:11px!important;
  font-weight:950!important;
  white-space:nowrap!important;
  box-shadow:0 8px 18px rgba(245,158,11,.14)!important;
}
.bom-edit-row.is-dirty .bom-unsaved-badge{display:inline-flex!important;}
.bom-edit-row.is-dirty .icon-action.save{
  background:#f59e0b!important;
  border-color:#f59e0b!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(245,158,11,.28)!important;
  animation:savePulse 1.2s ease-in-out infinite!important;
}
.bom-edit-row.is-saving .bom-unsaved-badge{display:inline-flex!important;background:#eff6ff!important;color:#1d4ed8!important;border-color:rgba(37,99,235,.30)!important;}
.bom-edit-row.is-saving .bom-unsaved-badge:before{content:"Kaydediliyor · "}
.bom-edit-row.is-saving .icon-action.save{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;}
@keyframes savePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.world-bom-table .row-actions .bom-action-buttons{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;}
@media(max-width:900px){.professional-bom-tabs .manufacturing-tabs{grid-template-columns:1fr 1fr!important}.bom-unsaved-badge{margin-top:6px!important}}

/* 2026-05-25: cleaner stats cards + dirty row without text badge */
.manufacturing-tabs .bom-tab-button{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(15,45,75,.10)!important;
  background:linear-gradient(135deg,#ffffff 0%,var(--tab-soft,rgba(15,118,110,.10)) 100%)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.06)!important;
}
.manufacturing-tabs .bom-tab-button:before{
  content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,var(--tab-accent,#0f766e),var(--tab-accent-2,#155e75));
}
.manufacturing-tabs .bom-tab-button strong{
  display:flex!important;align-items:baseline!important;gap:5px!important;margin-top:4px!important;color:#334155!important;
}
.manufacturing-tabs .bom-tab-button strong em{
  font-style:normal!important;font-size:28px!important;line-height:1!important;font-weight:1000!important;color:var(--tab-accent,#0f766e)!important;letter-spacing:-.04em!important;
}
.manufacturing-tabs .bom-tab-button strong i{
  font-style:normal!important;font-size:12px!important;font-weight:950!important;color:#64748b!important;
}
.manufacturing-tabs .bom-tab-button small{
  color:#66788a!important;font-weight:900!important;
}
.manufacturing-tabs .bom-tab-button.active{
  background:linear-gradient(135deg,var(--tab-accent,#0f3a56),var(--tab-accent-2,#155e75))!important;
  box-shadow:0 18px 34px var(--tab-shadow,rgba(15,118,110,.24))!important;
}
.manufacturing-tabs .bom-tab-button.active:before{background:rgba(255,255,255,.65)!important;}
.manufacturing-tabs .bom-tab-button.active strong em,
.manufacturing-tabs .bom-tab-button.active strong i,
.manufacturing-tabs .bom-tab-button.active span,
.manufacturing-tabs .bom-tab-button.active small{color:#fff!important;}

/* show unsaved state by row/input style only, not by text */
.bom-unsaved-badge{display:none!important;visibility:hidden!important;width:0!important;height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;}
.bom-edit-row.is-dirty .bom-unsaved-badge,
.bom-edit-row.is-saving .bom-unsaved-badge{display:none!important;visibility:hidden!important;}
.world-bom-table .bom-edit-row.is-dirty{
  outline:0!important;
  box-shadow:inset 5px 0 0 #f59e0b,0 10px 24px rgba(245,158,11,.12)!important;
  background:linear-gradient(90deg,rgba(255,247,237,.96),var(--bom-row-bg,#fff))!important;
}
.world-bom-table .bom-edit-row.is-dirty .table-input,
.world-bom-table .bom-edit-row.is-dirty .table-select{
  font-style:italic!important;
  border-color:rgba(245,158,11,.55)!important;
  background:#fffaf0!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.08)!important;
}
.world-bom-table .bom-edit-row.is-dirty .material-name-input{font-style:italic!important;}
.bom-edit-row.is-dirty .icon-action.save{
  background:#f59e0b!important;border-color:#f59e0b!important;color:#fff!important;box-shadow:0 9px 18px rgba(245,158,11,.24)!important;
}
.world-bom-table .row-actions,
.bom-edit-row .row-actions{
  display:grid!important;grid-template-columns:1fr!important;align-items:center!important;justify-items:center!important;gap:4px!important;min-width:82px!important;
}
.world-bom-table .row-actions small,
.bom-edit-row .row-actions small{text-align:center!important;width:100%!important;margin:0!important;}
.world-bom-table .row-actions .bom-action-buttons,
.bom-action-buttons{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:74px!important;white-space:nowrap!important;}
.bom-action-buttons .bom-row-icon{width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;}

/* 2026-05-25 FINAL: organized visible statistics cards */
.manufacturing-tabs.clean-tabs-only{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;
  gap:12px!important;
  padding:14px!important;
  background:linear-gradient(135deg,#f8fbfd,#eef6fb)!important;
  border:1px solid rgba(15,45,75,.10)!important;
  border-radius:24px!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:112px!important;
  padding:18px 16px!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#fff 0%,var(--tab-soft,rgba(15,118,110,.10)) 100%)!important;
  border:1px solid rgba(15,45,75,.12)!important;
  box-shadow:0 12px 26px rgba(15,23,42,.07)!important;
  overflow:hidden!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button:before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:6px!important;
  background:linear-gradient(180deg,var(--tab-accent,#0f766e),var(--tab-accent-2,#155e75))!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button:after{
  content:""!important;
  position:absolute!important;
  right:-35px!important;
  bottom:-38px!important;
  width:110px!important;
  height:110px!important;
  border-radius:999px!important;
  background:var(--tab-soft,rgba(15,118,110,.12))!important;
  pointer-events:none!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button span,
.manufacturing-tabs.clean-tabs-only .bom-tab-button strong,
.manufacturing-tabs.clean-tabs-only .bom-tab-button small{
  position:relative!important;
  z-index:2!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button span{
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:1000!important;
  color:#14364f!important;
  max-width:100%!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button strong{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  white-space:nowrap!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button strong em{
  display:inline-block!important;
  font-style:normal!important;
  font-size:30px!important;
  line-height:.9!important;
  font-weight:1000!important;
  letter-spacing:-.05em!important;
  color:var(--tab-accent,#0f766e)!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button strong i{
  display:inline-block!important;
  font-style:normal!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:950!important;
  color:#52677c!important;
  padding-bottom:2px!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button small{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding-top:8px!important;
  border-top:1px solid rgba(15,45,75,.10)!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-align:left!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active{
  background:linear-gradient(135deg,var(--tab-accent,#0f3a56),var(--tab-accent-2,#155e75))!important;
  border-color:transparent!important;
  box-shadow:0 18px 38px var(--tab-shadow,rgba(15,118,110,.28))!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active:before{background:rgba(255,255,255,.60)!important;}
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active:after{background:rgba(255,255,255,.16)!important;}
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active span,
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active strong em,
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active strong i,
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active small{
  color:#fff!important;
}
.manufacturing-tabs.clean-tabs-only .bom-tab-button.active small{border-top-color:rgba(255,255,255,.24)!important;}

/* Professional cutting optimization stabilization - 2026 */
.cutting-pro-section{margin-top:22px!important;border-radius:24px!important;overflow:hidden!important;background:#f8fafc!important;border:1px solid rgba(15,23,42,.10)!important;box-shadow:0 24px 55px rgba(15,23,42,.08)!important}
.cutting-pro-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;background:linear-gradient(135deg,#0f172a,#164e63)!important;color:#fff!important}
.cutting-pro-head h2{margin:2px 0 6px!important;color:#fff!important;font-size:26px!important}.cutting-pro-head span{color:rgba(255,255,255,.76)!important;font-weight:700}.cutting-pro-head .eyebrow{color:#67e8f9!important;margin:0!important;font-weight:950!important;letter-spacing:.08em!important}
.cutting-summary-cards{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px;padding:20px 24px;background:#fff!important}
.cutting-square-card{min-height:150px;border-radius:24px;text-decoration:none!important;padding:22px;display:grid;align-content:space-between;position:relative;overflow:hidden;color:#fff!important;box-shadow:0 18px 40px rgba(15,23,42,.12)!important;transition:.18s ease transform,.18s ease box-shadow}
.cutting-square-card:hover{transform:translateY(-3px);box-shadow:0 25px 56px rgba(15,23,42,.18)!important}.cutting-square-card:after{content:"";position:absolute;right:-40px;top:-50px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.16)}
.cutting-square-card small{font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.82)!important}.cutting-square-card strong{font-size:46px;line-height:1;color:#fff!important}.cutting-square-card span,.cutting-square-card em{color:#fff!important;font-weight:900;font-style:normal}.card-one{background:linear-gradient(135deg,#1d4ed8,#0f766e)!important}.card-sheet{background:linear-gradient(135deg,#7c2d12,#be123c)!important}
.cutting-result-block{padding:22px 24px;border-top:1px solid rgba(15,23,42,.08);background:#f8fafc}.cutting-result-block h3,.cutting-final-summary h3{margin:0 0 16px;font-size:21px;color:#0f172a}.cutting-material-report{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;margin:0 0 18px;overflow:hidden;box-shadow:0 16px 38px rgba(15,23,42,.06)}
.cutting-material-report>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;background:linear-gradient(135deg,#f8fafc,#eef6ff);border-bottom:1px solid rgba(15,23,42,.08)}.cutting-material-report header strong{display:block;color:#0f172a;font-size:18px}.cutting-material-report header span{display:block;color:#64748b;font-weight:800;margin-top:4px}.cutting-material-report header b{background:#0f172a;color:#fff;border-radius:999px;padding:9px 13px;white-space:nowrap}
.bar-layout,.sheet-layout-row{padding:16px 18px;border-top:1px dashed rgba(148,163,184,.45)}.bar-layout:first-of-type,.sheet-layout-row:first-of-type{border-top:0}.bar-title,.sheet-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.bar-title strong,.sheet-title strong{font-size:14px;color:#0f172a}.bar-title span,.sheet-title span{font-size:12px;color:#64748b;font-weight:850}
.bar-visual{height:42px;background:repeating-linear-gradient(45deg,#f1f5f9,#f1f5f9 7px,#e2e8f0 7px,#e2e8f0 14px);border-radius:14px;overflow:hidden;display:flex;gap:2px;padding:3px;border:1px solid rgba(15,23,42,.08)}.bar-visual span{display:flex;align-items:center;justify-content:center;min-width:34px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;font-size:11px;font-weight:950;white-space:nowrap}
.piece-summary-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.piece-summary-line em{font-style:normal;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px}.sheet-report .piece-summary-line em{background:#fff1f2;color:#9f1239;border-color:#fecdd3}
.sheet-visual-pro{height:250px;position:relative;border-radius:18px;background:linear-gradient(135deg,#ecfeff,#f8fafc);border:2px solid #0f172a;overflow:hidden;display:flex;align-content:flex-start;flex-wrap:wrap;gap:5px;padding:8px}.sheet-visual-pro:before{content:"LEVHA";position:absolute;right:12px;top:10px;color:rgba(15,23,42,.22);font-size:12px;font-weight:950;letter-spacing:.12em}.sheet-visual-pro i{display:block;min-width:34px;min-height:26px;border-radius:8px;background:linear-gradient(135deg,#38bdf8,#2563eb);border:1px solid rgba(15,23,42,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.cutting-final-summary{padding:22px 24px;background:#fff;border-top:1px solid rgba(15,23,42,.08)}.empty-state-mini{padding:18px;border:1px dashed #cbd5e1;border-radius:18px;color:#64748b;background:#fff;font-weight:850}
.bom-list-details:not([open]){background:#fff!important}.ultra-compact-import{margin-bottom:18px!important}.bom-edit-row.is-dirty .table-input{font-style:italic!important;border-color:#f59e0b!important;background:#fffbeb!important}.bom-edit-row.is-saving{opacity:.72!important}
@media (max-width:900px){.cutting-summary-cards{grid-template-columns:1fr}.cutting-pro-head{flex-direction:column;align-items:flex-start}.cutting-square-card{min-height:130px}.sheet-visual-pro{height:190px}}
@media print{body *{visibility:hidden!important}.cutting-pro-section,.cutting-pro-section *{visibility:visible!important}.cutting-pro-section{position:absolute!important;left:0!important;top:0!important;width:100%!important;box-shadow:none!important}.sidebar,.topbar,.product-workspace-header,.excel-import-panel,.bom-result-panel{display:none!important}}

/* PRO rebuild: settings + stock + cutting report refinement */
.pro-settings-head{background:linear-gradient(135deg,#ecfeff,#f8fafc)!important;border:1px solid rgba(20,184,166,.18)!important;border-radius:22px!important;margin-bottom:18px!important}
.pro-param-grid{grid-template-columns:repeat(2,minmax(260px,1fr))!important}.pro-param-card{border:1px solid rgba(15,23,42,.10)!important;box-shadow:0 14px 32px rgba(15,23,42,.06)!important}.settings-dirty{box-shadow:0 0 0 3px rgba(245,158,11,.18),0 18px 45px rgba(15,23,42,.08)!important}.settings-dirty:after{content:"Optimizasyon sonuçlarını ürün sayfasında yeniden kontrol edin";display:block;margin:14px 0 0;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:14px;padding:10px 14px;font-weight:900}
.cutting-stale-alert,.stock-success-alert{display:flex;justify-content:space-between;gap:18px;align-items:center;border-radius:18px;padding:15px 18px;margin:0 0 18px;font-weight:850}.cutting-stale-alert{background:#fffbeb;border:1px solid #f59e0b;color:#92400e}.stock-success-alert{background:#ecfdf5;border:1px solid #34d399;color:#065f46}.cutting-stale-alert strong,.stock-success-alert strong{font-size:15px}.cutting-stale-alert span,.stock-success-alert span{font-size:13px;opacity:.85}
.stock-management-panel{margin-top:22px!important;border-radius:24px!important;overflow:hidden!important;background:#fff!important;border:1px solid rgba(15,23,42,.10)!important;box-shadow:0 20px 50px rgba(15,23,42,.08)!important}.stock-management-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;background:linear-gradient(135deg,#0f172a,#0f766e);color:#fff}.stock-management-head h2{color:#fff!important;margin:4px 0 6px!important}.stock-management-head span{display:block;color:rgba(255,255,255,.76);font-weight:750}.stock-management-head .eyebrow{color:#67e8f9!important;margin:0!important}.stock-import-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stock-import-form input{background:#fff;color:#0f172a;border-radius:12px;padding:10px;border:1px solid rgba(255,255,255,.3);font-weight:850}.stock-inline-add{display:grid;grid-template-columns:minmax(230px,2fr) repeat(4,minmax(90px,1fr)) minmax(140px,1.2fr) auto;gap:10px;padding:18px 20px;background:#f8fafc;border-bottom:1px solid rgba(15,23,42,.08)}.stock-inline-add input{border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;font-weight:850;background:#fff}.stock-table-wrap{overflow:auto;max-height:520px;padding:16px 20px}.stock-table th{position:sticky;top:0;z-index:2}.stock-row input{min-width:86px}.stock-type-chip{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:#e0f2fe;color:#075985;font-weight:950;font-size:12px;white-space:nowrap}.stock-actions{white-space:nowrap}.stock-actions .icon-action{vertical-align:middle;margin-inline:2px}
.cutting-pro-v2{border-radius:28px!important;box-shadow:0 28px 68px rgba(15,23,42,.09)!important}.cutting-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stock-missing-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;background:#fff1f2;border-bottom:1px solid #fecdd3;color:#9f1239;font-weight:850}.stock-missing-banner a{color:#fff!important;background:#e11d48;border-radius:999px;padding:8px 12px;text-decoration:none;font-weight:950}.cutting-summary-cards{grid-template-columns:repeat(2,minmax(260px,1fr))!important}.cutting-square-card{min-height:165px!important;border-radius:24px!important}.cutting-square-card strong{font-size:54px!important}.cutting-details-card{padding:0!important}.cutting-details-card>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;cursor:pointer;background:#fff;border-bottom:1px solid rgba(15,23,42,.08);list-style:none}.cutting-details-card>summary::-webkit-details-marker{display:none}.cutting-details-card>summary h3{margin:0 0 5px!important}.cutting-details-card>summary span{color:#64748b;font-weight:850}.cutting-details-card>summary b{background:#0f172a;color:#fff;border-radius:999px;padding:10px 14px;white-space:nowrap}.cutting-program-table{width:100%;border-collapse:separate;border-spacing:0 6px}.cutting-program-table th{background:#0f3a56;color:#fff;text-align:left;padding:12px 14px;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.cutting-program-table th:first-child{border-radius:14px 0 0 14px}.cutting-program-table th:last-child{border-radius:0 14px 14px 0}.cutting-program-table td{background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:12px 14px;font-weight:850;color:#0f172a}.cutting-program-table td:first-child{border-left:1px solid #e2e8f0;border-radius:14px 0 0 14px}.cutting-program-table td:last-child{border-right:1px solid #e2e8f0;border-radius:0 14px 14px 0}.cutting-table-wrap{padding:16px 18px 0;overflow:auto}.stock-missing{border-color:#fda4af!important;box-shadow:0 0 0 3px rgba(225,29,72,.08),0 14px 34px rgba(225,29,72,.08)!important}.stock-missing>header{background:linear-gradient(135deg,#fff1f2,#fff7ed)!important}.stock-missing>header b{background:#e11d48!important}.stock-missing-row td{background:#fff1f2!important;color:#9f1239!important;font-weight:950!important}
.sheet-visual-frame{position:relative;padding:24px 0 0 34px;margin:12px 0 8px;max-width:460px}.sheet-dim-top{position:absolute;left:34px;right:0;top:0;text-align:center;font-size:12px;font-weight:950;color:#0f172a}.sheet-dim-left{position:absolute;left:0;top:56px;writing-mode:vertical-rl;transform:rotate(180deg);font-size:12px;font-weight:950;color:#0f172a}.sheet-visual-pro.layout-absolute{height:420px!important;max-width:360px!important;border-radius:0!important;background:repeating-linear-gradient(135deg,#f8fafc,#f8fafc 4px,#e2e8f0 4px,#e2e8f0 7px)!important;border:2px solid #111827!important;position:relative!important;padding:0!important;display:block!important;overflow:hidden!important}.sheet-visual-pro.layout-absolute:before{content:""!important;display:none!important}.sheet-visual-pro.layout-absolute i{position:absolute!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:0!important;background:#fff!important;border:1.5px solid #14532d!important;box-shadow:none!important;color:#0f172a!important;min-width:0!important;min-height:0!important;overflow:hidden}.sheet-visual-pro.layout-absolute i span{font-size:10px;font-weight:900;line-height:1.05;text-align:center;color:#0f172a;transform:scale(.95)}.sheet-waste-label{position:absolute;right:7px;top:50%;transform:translateY(-50%) rotate(90deg);transform-origin:center;font-size:11px;font-weight:950;color:rgba(15,23,42,.46);white-space:nowrap}.cut-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px}.cut-summary-grid h4{margin:0 0 10px;color:#0f766e;font-size:16px}.bom-list-details:not([open]){margin-bottom:20px!important}.bom-category-block:not([open]){margin-bottom:12px!important}.bom-edit-row.is-dirty .material-name-input,.bom-edit-row.is-dirty .table-input{font-style:italic!important}.bom-action-buttons{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}.bom-cell.actions{align-self:center!important}.bom-cell.actions small{display:block!important;height:16px!important}.icon-action.save,.icon-action.danger{display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:980px){.stock-management-head{flex-direction:column;align-items:flex-start}.stock-inline-add{grid-template-columns:1fr 1fr}.stock-inline-add button{grid-column:1/-1}.cut-summary-grid{grid-template-columns:1fr}.sheet-visual-pro.layout-absolute{height:300px!important}.cutting-summary-cards{grid-template-columns:1fr!important}}
@media print{body *{visibility:hidden!important}.cutting-pro-section,.cutting-pro-section *{visibility:visible!important}.cutting-pro-section{position:absolute!important;left:0!important;top:0!important;width:100%!important;box-shadow:none!important;border:0!important}.cutting-details-card{display:block!important}.cutting-details-card>summary b{display:none!important}.cutting-details-card[open]{display:block!important}.sidebar,.topbar,.product-workspace-header,.excel-import-panel,.bom-result-panel,.stock-management-panel{display:none!important}}

/* PRO product page tabs + stock import refinement - 2026-06 */
.pro-product-workspace{display:grid;gap:18px!important}
.product-main-tabs-shell{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px;margin:2px 0 0;padding:8px;background:rgba(248,250,252,.78);border:1px solid rgba(15,23,42,.08);border-radius:28px;box-shadow:0 24px 60px rgba(15,23,42,.06)}
.product-main-tab{position:relative;min-height:138px;border:1px solid rgba(15,23,42,.10);border-radius:24px;background:linear-gradient(135deg,#ffffff,#f8fafc);box-shadow:0 16px 36px rgba(15,23,42,.07);padding:22px 24px;text-align:left;cursor:pointer;overflow:hidden;display:grid;align-content:space-between;gap:8px;color:#0f172a;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.product-main-tab:before{content:"";position:absolute;right:-46px;top:-54px;width:170px;height:170px;border-radius:999px;background:linear-gradient(135deg,rgba(20,184,166,.16),rgba(59,130,246,.12));pointer-events:none}
.product-main-tab:hover{transform:translateY(-3px);box-shadow:0 26px 58px rgba(15,23,42,.12)}
.product-main-tab.active{border-color:#0f766e;background:linear-gradient(135deg,#0f3a56,#0f766e);color:#fff;box-shadow:0 30px 72px rgba(15,118,110,.20)}
.product-main-tab.active:before{background:rgba(255,255,255,.16)}
.product-main-tab strong{font-size:24px;line-height:1.12;letter-spacing:-.02em;position:relative;z-index:1;color:inherit!important}
.product-main-tab small{font-weight:850;color:#64748b;position:relative;z-index:1}.product-main-tab.active small{color:rgba(255,255,255,.82)!important}
.product-main-tab .tab-kicker{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:950;color:#0f766e;position:relative;z-index:1}.product-main-tab.active .tab-kicker{color:#99f6e4!important}
.product-main-tab em{position:absolute;right:18px;bottom:18px;font-style:normal;border-radius:999px;background:#dc2626;color:#fff;padding:7px 11px;font-weight:950;box-shadow:0 12px 24px rgba(220,38,38,.24);z-index:2}
.product-main-tab.has-alert:not(.active){border-color:#fecaca;background:linear-gradient(135deg,#fff,#fff1f2)}
.product-main-tab.has-alert:not(.active):before{background:linear-gradient(135deg,rgba(244,63,94,.16),rgba(251,146,60,.12))}
.product-main-tab-panel{display:none}.product-main-tab-panel.active{display:block;animation:productTabFade .18s ease both}@keyframes productTabFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.product-section-card{border-radius:28px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 28px 68px rgba(15,23,42,.08)!important;border:1px solid rgba(15,23,42,.08)!important}
.product-section-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 26px;background:linear-gradient(135deg,#f0fdfa,#f8fafc);border-bottom:1px solid rgba(15,23,42,.08)}
.product-section-head h2{margin:2px 0 6px!important;font-size:28px;color:#0f172a}.product-section-head span{color:#64748b;font-weight:800}.material-head-pro .eyebrow{color:#0f766e!important;font-weight:950;letter-spacing:.12em}
.detached-import-form{background:#fff;border:1px solid rgba(15,118,110,.16);border-radius:18px;box-shadow:0 14px 34px rgba(15,23,42,.06);padding:12px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.detached-import-form strong{color:#0f172a}.detached-import-form input[type=file]{max-width:260px}
.bom-card-toolbar{display:flex;justify-content:flex-end;padding:14px 22px;border-bottom:1px solid rgba(15,23,42,.06);background:#fff}.pro-tab-warning{margin:16px 22px!important}
.bom-tabs-wrapper{padding:18px 20px 24px}.warning-aware-bom-tabs{margin:0 0 18px!important}.warning-aware-bom-tabs .bom-tab-button{position:relative;overflow:visible!important}.warning-aware-bom-tabs .bom-tab-button.has-warning{border-color:#fecaca!important;background:linear-gradient(135deg,#fff,#fff1f2)!important}.warning-aware-bom-tabs .bom-tab-button.has-warning.active{background:linear-gradient(135deg,#991b1b,#dc2626)!important;color:#fff!important}.warning-aware-bom-tabs .bom-tab-button.has-warning.active small,.warning-aware-bom-tabs .bom-tab-button.has-warning.active i{color:rgba(255,255,255,.82)!important}
.tab-alert-badge{position:absolute;right:12px;top:-10px;min-width:28px;height:28px;border-radius:999px;background:#dc2626;color:#fff!important;display:grid;place-items:center;font-size:12px;font-weight:950;box-shadow:0 10px 24px rgba(220,38,38,.30);border:2px solid #fff}.bom-tab-button.active .tab-alert-badge{border-color:rgba(255,255,255,.92)}
.pro-stock-import-form{display:grid!important;grid-template-columns:minmax(220px,1fr) auto auto!important;align-items:center!important;gap:10px!important}.stock-replace-toggle{display:flex;align-items:center;gap:8px;border:1px solid rgba(15,118,110,.16);background:#f0fdfa;color:#0f766e;border-radius:999px;padding:9px 12px;font-weight:900;font-size:12px;white-space:nowrap}.stock-replace-toggle input{accent-color:#0f766e}.stock-management-head{align-items:flex-start!important}.stock-table-wrap{max-height:640px;overflow:auto;border-radius:18px;border:1px solid rgba(15,23,42,.08);background:#fff}.stock-table thead th{position:sticky;top:0;z-index:1}.stock-row:nth-child(even) td{background:#f8fafc!important}
.stock-type-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-weight:950;background:#e0f2fe;color:#075985;min-width:86px}.stock-row td{vertical-align:middle}.stock-actions{display:flex!important;gap:8px;align-items:center;justify-content:center}
.cutting-pro-section{margin-top:0!important}.product-main-tab-panel .cutting-pro-section{border-radius:28px!important}.cutting-pro-head{color:#fff!important}.cutting-pro-head h2,.cutting-pro-head .eyebrow,.cutting-pro-head span{color:#fff!important}.cutting-pro-head .btn-light{background:rgba(255,255,255,.16)!important;color:#fff!important;border-color:rgba(255,255,255,.28)!important}
@media(max-width:980px){.product-main-tabs-shell{grid-template-columns:1fr}.product-section-head{flex-direction:column;align-items:flex-start}.pro-stock-import-form{grid-template-columns:1fr!important}.stock-replace-toggle{white-space:normal}.detached-import-form{width:100%}}

/* 2026-06-11: compact professional product workspace, BOM import outside tabs */
.bom-import-strip-pro{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) minmax(320px,auto) auto!important;
  gap:14px!important;
  align-items:center!important;
  padding:14px 16px!important;
  margin:14px 0 12px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f2fbfa 100%)!important;
  border:1px solid rgba(15,118,110,.15)!important;
  box-shadow:0 16px 38px rgba(15,23,42,.055)!important;
}
.bom-import-strip-title small{
  display:block!important;
  color:#0f766e!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:1000!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  margin-bottom:5px!important;
}
.bom-import-strip-title strong{
  display:block!important;
  color:#0f172a!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:1000!important;
}
.bom-import-strip-title span{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:12.5px!important;
  font-weight:800!important;
}
.bom-import-inline-pro{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0!important;
}
.file-picker-pro{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  min-width:310px!important;
  max-width:430px!important;
  height:42px!important;
  border:1px solid rgba(15,45,75,.13)!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background:#f8fafc!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75)!important;
  cursor:pointer!important;
}
.file-picker-pro input[type=file]{
  position:absolute!important;
  inset:0!important;
  opacity:0!important;
  cursor:pointer!important;
  width:100%!important;
  height:100%!important;
}
.file-picker-pro span{
  display:flex!important;
  align-items:center!important;
  height:100%!important;
  padding:0 13px!important;
  background:#fff!important;
  color:#0f3a56!important;
  font-weight:950!important;
  border-right:1px solid rgba(15,45,75,.11)!important;
  white-space:nowrap!important;
}
.file-picker-pro b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  padding:0 13px!important;
  color:#64748b!important;
  font-size:13px!important;
  font-weight:900!important;
}
.bom-clear-inline-pro{display:flex!important;justify-content:flex-end!important;margin:0!important;}
.product-main-tabs-shell.compact-work-tabs{
  display:flex!important;
  gap:10px!important;
  align-items:center!important;
  margin:0 0 12px!important;
  padding:8px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.04)!important;
}
.compact-work-tabs .product-main-tab{
  min-height:58px!important;
  flex:1 1 0!important;
  border-radius:14px!important;
  padding:10px 14px!important;
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  grid-template-areas:"k title alert" "k meta alert"!important;
  column-gap:12px!important;
  row-gap:2px!important;
  align-items:center!important;
  align-content:center!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.compact-work-tabs .product-main-tab:before{display:none!important;}
.compact-work-tabs .product-main-tab .tab-kicker{
  grid-area:k!important;
  width:34px!important;
  height:34px!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(15,118,110,.10)!important;
  color:#0f766e!important;
  letter-spacing:0!important;
  font-size:12px!important;
}
.compact-work-tabs .product-main-tab strong{
  grid-area:title!important;
  font-size:16px!important;
  line-height:1.1!important;
  letter-spacing:-.01em!important;
}
.compact-work-tabs .product-main-tab small{
  grid-area:meta!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:900!important;
}
.compact-work-tabs .product-main-tab em{
  grid-area:alert!important;
  position:static!important;
  align-self:center!important;
  justify-self:end!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  font-size:11px!important;
  box-shadow:none!important;
}
.compact-work-tabs .product-main-tab.active{
  background:linear-gradient(135deg,#123a55,#0f766e)!important;
  border-color:rgba(15,118,110,.42)!important;
  box-shadow:0 12px 26px rgba(15,118,110,.14)!important;
}
.compact-work-tabs .product-main-tab.active .tab-kicker{
  background:rgba(255,255,255,.18)!important;
  color:#ccfbf1!important;
}
.compact-material-card{border-radius:22px!important;box-shadow:0 18px 44px rgba(15,23,42,.06)!important;}
.compact-material-head{
  min-height:0!important;
  padding:14px 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  background:linear-gradient(135deg,#ffffff,#f7fbfc)!important;
  border-bottom:1px solid rgba(15,23,42,.07)!important;
}
.compact-material-head .eyebrow{
  margin:0 0 3px!important;
  font-size:11px!important;
  line-height:1!important;
}
.compact-material-head h2{
  margin:0!important;
  font-size:20px!important;
  line-height:1.15!important;
  letter-spacing:-.02em!important;
}
.section-mini-metrics{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.section-mini-metrics span{
  display:flex!important;
  gap:5px!important;
  align-items:center!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:#eef6f8!important;
  border:1px solid rgba(15,45,75,.08)!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:950!important;
}
.section-mini-metrics b{color:#0f766e!important;font-size:14px!important;}
.compact-material-card .professional-bom-tabs{
  padding:14px!important;
  border-radius:0!important;
}
.compact-material-card .manufacturing-tabs.clean-tabs-only{
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;
  gap:8px!important;
  padding:9px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button{
  min-height:66px!important;
  padding:10px 12px 10px 14px!important;
  border-radius:14px!important;
  gap:4px!important;
  box-shadow:none!important;
}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button:before{width:4px!important;}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button:after{width:70px!important;height:70px!important;right:-28px!important;bottom:-30px!important;opacity:.75!important;}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button span{font-size:13px!important;line-height:1.05!important;}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button strong em{font-size:18px!important;}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button strong i{font-size:10px!important;}
.compact-material-card .manufacturing-tabs.clean-tabs-only .bom-tab-button small{font-size:10px!important;line-height:1.1!important;}
.compact-material-card .tab-alert-badge{top:5px!important;right:5px!important;min-width:18px!important;height:18px!important;font-size:10px!important;}
.compact-material-card .bom-tab-panel{padding-top:12px!important;}
@media(max-width:980px){
  .bom-import-strip-pro{grid-template-columns:1fr!important;align-items:start!important;}
  .bom-import-inline-pro{justify-content:flex-start!important;flex-wrap:wrap!important;}
  .file-picker-pro{min-width:min(100%,310px)!important;width:100%!important;}
  .product-main-tabs-shell.compact-work-tabs{flex-direction:column!important;align-items:stretch!important;}
  .compact-material-head{align-items:flex-start!important;flex-direction:column!important;}
  .section-mini-metrics{justify-content:flex-start!important;}
}

/* 2026-06-11 cutting results UI refinement */
.compact-cutting-cards{padding:14px 18px!important;gap:12px!important}
.compact-cutting-cards .cutting-square-card{min-height:112px!important;padding:16px 18px!important;border-radius:18px!important}
.compact-cutting-cards .cutting-square-card strong{font-size:38px!important}
.compact-cutting-cards .cutting-square-card small{font-size:11px!important}
.cutting-details-card>summary{padding:16px 20px!important}
.cutting-details-card>summary h3{font-size:20px!important}
.unified-cutting-report{border-radius:18px!important;box-shadow:0 12px 30px rgba(15,23,42,.055)!important;margin-bottom:16px!important}
.unified-cutting-report>header{padding:14px 16px!important}
.unified-cutting-report>header strong{font-size:16px!important}
.unified-cutting-report>header span{font-size:13px!important}
.unified-cutting-report>header b{padding:8px 12px!important;font-size:13px!important}
.material-chip-line{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 14px}
.piece-chip-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.piece-chip-line.vertical{align-content:flex-start}
.piece-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;border:1px solid rgba(15,23,42,.10);background:#fff;font-size:12px;font-weight:850;color:#0f172a;line-height:1;white-space:nowrap}
.piece-chip b{font-weight:950}
.total-chip{background:#f8fafc;border-color:#cbd5e1}
.waste-chip{background:#fff1f2!important;border-color:#fecdd3!important;color:#9f1239!important}
.color-1{background:#eff6ff!important;border-color:#bfdbfe!important;color:#1d4ed8!important}
.color-2{background:#ecfdf5!important;border-color:#a7f3d0!important;color:#047857!important}
.color-3{background:#fff7ed!important;border-color:#fed7aa!important;color:#c2410c!important}
.color-4{background:#f5f3ff!important;border-color:#ddd6fe!important;color:#6d28d9!important}
.color-5{background:#f0fdfa!important;border-color:#99f6e4!important;color:#0f766e!important}
.color-6{background:#fdf2f8!important;border-color:#fbcfe8!important;color:#be185d!important}
.unified-result-table{border-spacing:0 5px!important}
.unified-result-table th{padding:10px 12px!important;font-size:11px!important}
.unified-result-table td{padding:10px 12px!important;font-size:13px!important;font-weight:800!important;vertical-align:top!important}
.unified-result-table td small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:800}
.graphic1d-cell{display:grid;gap:10px;min-width:320px}
.mini-bar-track{display:flex;align-items:stretch;gap:3px;height:26px;border-radius:999px;background:#e2e8f0;padding:3px;overflow:hidden}
.mini-bar-piece{display:flex;align-items:center;justify-content:center;height:100%;border-radius:999px;min-width:24px;white-space:nowrap;overflow:hidden}
.mini-bar-piece i{font-style:normal;font-size:10px;font-weight:950;line-height:1;padding:0 6px;color:currentColor}
.mini-bar-waste{display:flex;align-items:center;justify-content:center;min-width:40px;background:#fee2e2;color:#991b1b;border-radius:999px;padding:0 8px;font-weight:950}
.mini-bar-waste i{font-style:normal;font-size:10px}
.sheet-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:14px;padding:0 18px 18px}
.sheet-plan-card{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.sheet-plan-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(15,23,42,.07);background:linear-gradient(135deg,#f8fafc,#eef6ff)}
.sheet-plan-head strong{font-size:14px;color:#0f172a}.sheet-plan-head span{font-size:12px;font-weight:800;color:#64748b}
.sheet-layout-row.compact-layout{display:grid;grid-template-columns:minmax(220px,1fr) 180px;gap:14px;padding:14px}
.sheet-plan-side{display:flex;align-items:flex-start}
.sheet-plan-side .piece-chip-line{display:flex;flex-wrap:wrap;gap:8px}
.sheet-visual-frame{max-width:none!important;margin:0!important;padding:24px 0 0 28px!important}
.sheet-visual-pro.layout-absolute{height:280px!important;max-width:none!important;background:#f8fafc!important;border:1.5px solid #0f172a!important;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)!important}
.sheet-visual-pro.layout-absolute i{border:1px solid rgba(15,23,42,.18)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)!important}
.sheet-visual-pro.layout-absolute i span{font-size:10px!important;font-weight:900!important;color:currentColor!important;background:rgba(255,255,255,.74);padding:1px 4px;border-radius:8px}
.sheet-waste-label{font-size:10px!important;letter-spacing:.03em}
.summary-table td,.summary-table th{font-size:13px!important}
@media(max-width:1100px){.sheet-plan-grid{grid-template-columns:1fr}.sheet-layout-row.compact-layout{grid-template-columns:1fr}.graphic1d-cell{min-width:260px}}
@media(max-width:720px){.compact-cutting-cards .cutting-square-card{min-height:96px!important}.compact-cutting-cards .cutting-square-card strong{font-size:32px!important}.graphic1d-cell{min-width:220px}.sheet-visual-pro.layout-absolute{height:220px!important}}

/* 2026-06-11: product quantity aware cutting table + unified program style */
.cutting-pro-v4{border-radius:22px!important;overflow:hidden!important;background:#f8fafc!important}
.compact-cutting-head{padding:16px 20px!important;min-height:0!important;background:linear-gradient(135deg,#0f3a56,#0f766e)!important}
.compact-cutting-head h2{font-size:21px!important;margin:1px 0 4px!important;line-height:1.12!important}
.compact-cutting-head .eyebrow{font-size:11px!important;line-height:1!important;margin:0!important}
.compact-cutting-head span{font-size:13px!important}.compact-cutting-head span b{color:#fff!important}
.tiny-cutting-cards{grid-template-columns:repeat(2,minmax(180px,260px))!important;justify-content:start!important;padding:12px 16px!important;background:#fff!important}
.tiny-cutting-cards .cutting-square-card{min-height:88px!important;padding:13px 15px!important;border-radius:16px!important;display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:"label count" "unit count" "fire fire"!important;align-items:center!important;align-content:center!important;gap:2px 12px!important}
.tiny-cutting-cards .cutting-square-card:after{width:74px!important;height:74px!important;right:-22px!important;top:-24px!important;opacity:.55!important}
.tiny-cutting-cards .cutting-square-card small{grid-area:label;font-size:10px!important;letter-spacing:.08em!important}
.tiny-cutting-cards .cutting-square-card strong{grid-area:count;font-size:32px!important;text-align:right!important;line-height:1!important}
.tiny-cutting-cards .cutting-square-card span{grid-area:unit;font-size:13px!important;line-height:1!important}
.tiny-cutting-cards .cutting-square-card em{grid-area:fire;font-size:12px!important;opacity:.9!important;margin-top:4px!important}
.cutting-flat-table{background:#fff!important;padding:0!important}
.cutting-flat-table>summary{padding:13px 16px!important;background:#f8fafc!important;border-top:1px solid rgba(15,23,42,.07)!important;border-bottom:1px solid rgba(15,23,42,.07)!important}
.cutting-flat-table>summary h3{font-size:18px!important;margin:0 0 3px!important}.cutting-flat-table>summary span{font-size:12px!important;color:#64748b!important}
.cutting-flat-table>summary b{font-size:12px!important;padding:7px 11px!important;background:#123a55!important}
.cutting-master-table{border-spacing:0!important;border-collapse:collapse!important;min-width:920px!important;background:#fff!important;border:1px solid #b6c3d1!important}
.cutting-master-table thead th{border:1px solid #94a3b8!important;background:#cfe8ff!important;color:#0f172a!important;font-size:12px!important;letter-spacing:0!important;text-transform:none!important;padding:7px 9px!important;border-radius:0!important;line-height:1.15!important}
.cutting-master-table tbody td{border:1px solid #c9d2dc!important;background:#fff!important;color:#0f172a!important;padding:7px 9px!important;border-radius:0!important;font-size:13px!important;line-height:1.25!important;vertical-align:top!important}
.cutting-master-table tbody tr:nth-child(even) td{background:#fbfdff!important}
.cutting-master-table td:first-child,.cutting-master-table td:last-child{border-radius:0!important}
.cutting-master-table td strong{font-weight:850!important}.cutting-master-table td small{display:block!important;margin-top:3px!important;color:#dc2626!important;font-size:11px!important;font-weight:850!important}
.cutting-table-wrap{padding:12px 14px!important;overflow:auto!important;background:#fff!important}
.table-graphic-cell{min-width:380px!important;gap:6px!important}.pro-mini-track{height:28px!important;border-radius:8px!important;background:#eef2f7!important;border:1px solid #d6dee8!important;padding:3px!important;gap:3px!important}
.pro-mini-track .mini-bar-piece{border-radius:6px!important;border:1px solid rgba(15,23,42,.12)!important}.pro-mini-track .mini-bar-piece i{font-size:10px!important;color:currentColor!important;text-shadow:none!important}.pro-mini-track .mini-bar-waste{border-radius:6px!important;min-width:58px!important;background:#fff1f2!important;color:#9f1239!important;border:1px dashed #fda4af!important}
.compact-chip-line{gap:5px!important}.compact-chip-line .piece-chip{font-size:11px!important;padding:4px 7px!important;border-radius:8px!important}
.compact-sheet-plans{grid-template-columns:repeat(2,minmax(300px,1fr))!important;gap:12px!important;padding:12px 14px 16px!important;background:#fff!important;border-top:1px solid rgba(15,23,42,.06)!important}
.compact-sheet-plans .sheet-plan-card{border-radius:14px!important;box-shadow:0 8px 18px rgba(15,23,42,.04)!important}.compact-sheet-plans .sheet-plan-head{padding:10px 12px!important}.compact-sheet-plans .sheet-layout-row.compact-layout{grid-template-columns:minmax(220px,1fr) 150px!important;padding:12px!important;gap:10px!important}.compact-sheet-plans .sheet-visual-pro.layout-absolute{height:230px!important}.compact-sheet-plans .sheet-plan-side .piece-chip{font-size:11px!important;padding:5px 7px!important;border-radius:8px!important}
.stock-missing-row td{background:#fff1f2!important;color:#9f1239!important}.stock-missing-row .pro-mini-track{border-color:#fda4af!important;background:#fff7ed!important}
@media(max-width:980px){.tiny-cutting-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.compact-sheet-plans{grid-template-columns:1fr!important}.compact-sheet-plans .sheet-layout-row.compact-layout{grid-template-columns:1fr!important}.table-graphic-cell{min-width:300px!important}}
@media(max-width:620px){.tiny-cutting-cards{grid-template-columns:1fr!important}.tiny-cutting-cards .cutting-square-card{min-height:78px!important}.tiny-cutting-cards .cutting-square-card strong{font-size:28px!important}}

/* 2026-06-11 import rules + professional cutting summary */
.pro-cutting-report-summary{background:#fff!important;border-top:1px solid rgba(15,23,42,.08)!important;padding:20px 22px!important}
.cutting-settings-strip{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px;margin:0 0 18px!important}
.cutting-settings-strip span{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#f8fafc,#eef6ff);border:1px solid rgba(15,23,42,.08);font-weight:900;color:#0f172a}
.cutting-settings-strip b{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#0f766e}
.pro-summary-table td strong{display:block;color:#0f172a}.pro-summary-table td small{display:block;margin-top:4px;color:#dc2626;font-weight:950}.pro-summary-table td:nth-child(4){line-height:1.55;color:#334155!important;font-weight:850!important}
@media(max-width:900px){.cutting-settings-strip{grid-template-columns:1fr}.pro-summary-table{min-width:720px}}

/* 2026-06-11 strict BOM import + professional cut list tables */
.bom-row-warning-note{display:block;margin-top:6px;font-size:11px;font-weight:900;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:5px 8px;line-height:1.25}
.input-warning{background:#fff7ed!important;border-color:#fb923c!important;box-shadow:0 0 0 3px rgba(251,146,60,.12)!important}
.status-chip.status-danger{background:#fee2e2!important;color:#991b1b!important;border-color:#fecaca!important}
.cut-list-table-section{margin-top:18px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:16px 18px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.cut-list-table-section h4{margin:0 0 12px;color:#0f766e;font-size:16px;font-weight:1000;letter-spacing:.01em}
.cut-list-table{width:100%!important}
.cut-list-table th{background:#0f3a56!important;color:#fff!important}
.cut-list-table td:nth-child(1),.cut-list-table td:nth-child(2),.cut-list-table td:nth-child(3){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-weight:900!important;text-align:right}
.cut-list-table td:nth-child(4){font-weight:900!important;color:#0f172a!important}
.pro-cutting-report-summary .cut-summary-grid{margin-bottom:4px}
@media(max-width:800px){.cut-list-table-section{padding:12px;overflow:auto}.cut-list-table{min-width:560px}}

/* 2026-06-11: professional table grouping and visual hierarchy */
.pro-cutting-report-summary{display:grid;gap:18px!important;background:#f8fafc!important;border-top:1px solid rgba(15,23,42,.08)!important}
.pro-cutting-report-summary h3{font-size:22px!important;margin-bottom:0!important;color:#0f172a!important}
.pro-table-card{border:1px solid rgba(15,23,42,.08)!important;border-radius:22px!important;background:#fff!important;box-shadow:0 16px 36px rgba(15,23,42,.055)!important;overflow:hidden!important;padding:0!important}
.pro-table-card h4{margin:0!important;padding:14px 18px!important;font-size:15px!important;font-weight:950!important;letter-spacing:.02em!important;color:#fff!important}
.table-card-1d h4,.table-card-cut1d h4{background:linear-gradient(135deg,#0f3a56,#0f766e)!important}
.table-card-sac h4,.table-card-cutsac h4{background:linear-gradient(135deg,#7c2d12,#be123c)!important}
.cut-summary-grid{align-items:start!important}.cut-summary-grid>div.pro-table-card{min-width:0!important}
.pro-table-card .cutting-program-table{margin:12px!important;width:calc(100% - 24px)!important}
.tone-table th{color:#fff!important;font-size:11px!important;letter-spacing:.08em!important;white-space:nowrap!important}
.tone-table td{font-size:13px!important;background:#f8fafc!important;vertical-align:middle!important}
.tone-table td:first-child{font-weight:900!important}.tone-table strong{font-weight:950!important;color:#0f172a!important}
.tone-1d th,.tone-cut1d th{background:#123d5a!important}.tone-1d td:first-child,.tone-cut1d td:first-child{border-left:4px solid #0f766e!important}
.tone-sac th,.tone-cutsac th{background:#7f1d1d!important}.tone-sac td:first-child,.tone-cutsac td:first-child{border-left:4px solid #be123c!important}
.cut-list-table-section{margin-top:0!important}.cut-list-table-section+.cut-list-table-section{margin-top:4px!important}
.cutting-settings-strip{background:#fff!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:18px!important;padding:12px!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important}
.stock-missing-row td{background:#fff1f2!important;color:#9f1239!important}.stock-missing-row strong{color:#9f1239!important}
@media(max-width:900px){.pro-table-card .cutting-program-table{min-width:760px!important}.pro-table-card{overflow:auto!important}}

/* 2026-06-11 final polish: unified table typography, colored sheet pieces, no stok boyu in cut-list */
.cut-list-table td,
.cut-list-table th,
.pro-summary-table td,
.pro-summary-table th,
.cutting-program-table td,
.cutting-program-table th{
  font-family:inherit!important;
}
.cut-list-table td:nth-child(1),
.cut-list-table td:nth-child(2),
.cut-list-table td:nth-child(3),
.cut-list-table td:nth-child(4),
.cut-list-table td:nth-child(5){
  font-family:inherit!important;
  text-align:left!important;
}
.cut-list-table td:nth-child(2),
.cut-list-table td:nth-child(3),
.cut-list-table td:nth-child(4){
  text-align:center!important;
  font-weight:900!important;
}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1{background:#dbeafe!important;border-color:#2563eb!important;color:#1d4ed8!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2{background:#dcfce7!important;border-color:#16a34a!important;color:#166534!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3{background:#ffedd5!important;border-color:#f97316!important;color:#9a3412!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4{background:#ede9fe!important;border-color:#7c3aed!important;color:#5b21b6!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5{background:#ccfbf1!important;border-color:#0d9488!important;color:#0f766e!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6{background:#fce7f3!important;border-color:#db2777!important;color:#9d174d!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color span{
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.08)!important;
}
.sheet-orientation-length-first{background:#f8fafc!important}
.table-card-cut1d .tone-cut1d th:nth-child(2),
.table-card-cut1d .tone-cut1d th:nth-child(3),
.table-card-cut1d .tone-cut1d th:nth-child(4){text-align:center!important}

/* 2026-06-11 final cutting card integration + grouped sheet layouts */
.integrated-cutting-cards .cutting-square-card{border:0!important;cursor:pointer!important;text-align:left!important;font-family:inherit!important}
.integrated-cutting-cards .cutting-square-card:focus{outline:3px solid rgba(20,184,166,.32)!important;outline-offset:3px!important}
.cutting-pro-v4 .cutting-details-card>summary{display:none!important}
.cutting-pro-v4 .cutting-details-card{margin:0!important;border-top:1px solid rgba(15,23,42,.08)!important}
.cutting-pro-v4 .cutting-details-card[open]{display:block!important}
.sheet-plan-card{overflow:hidden!important}
.sheet-plan-head strong{display:flex;align-items:center;gap:8px}.sheet-plan-head strong::before{content:"";width:8px;height:8px;border-radius:999px;background:#0f766e;display:inline-block;box-shadow:0 0 0 4px rgba(15,118,110,.10)}
.sheet-visual-pro.layout-absolute{background:#f8fafc!important;background-image:none!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color{opacity:.96!important;border-width:1.5px!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1{background:#dbeafe!important;border-color:#2563eb!important;color:#1d4ed8!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2{background:#dcfce7!important;border-color:#16a34a!important;color:#166534!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3{background:#ffedd5!important;border-color:#f97316!important;color:#9a3412!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4{background:#ede9fe!important;border-color:#7c3aed!important;color:#5b21b6!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5{background:#ccfbf1!important;border-color:#0d9488!important;color:#0f766e!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6{background:#fce7f3!important;border-color:#db2777!important;color:#9d174d!important}
.sheet-visual-pro.layout-absolute i.sheet-piece-color span{background:rgba(255,255,255,.82)!important;border:1px solid rgba(255,255,255,.65)!important;box-shadow:0 4px 10px rgba(15,23,42,.08)!important}
.sheet-waste-label{display:none!important}.sheet-fire-note{margin-top:8px;font-size:11px;font-weight:900;color:#64748b;text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:6px 8px}
.repeat-chip{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important}
.compact-sheet-plans{grid-template-columns:repeat(2,minmax(360px,1fr))!important;align-items:start!important}.compact-sheet-plans .sheet-plan-card{break-inside:avoid!important}.compact-sheet-plans .sheet-plan-head{background:linear-gradient(135deg,#f8fafc,#eef6ff)!important;border-bottom:1px solid rgba(15,23,42,.08)!important}.compact-sheet-plans .sheet-plan-head span{background:#fff!important;border:1px solid #dbeafe!important;border-radius:999px;padding:6px 9px;color:#334155!important}
@media(max-width:1000px){.compact-sheet-plans{grid-template-columns:1fr!important}}

/* sheet layout card refinement */
.sheet-plan-title{display:flex;flex-direction:column;gap:2px}
.sheet-plan-subtitle{display:block;font-size:11px;font-weight:800;color:#64748b}
.sheet-plan-meta{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px 0}
.sheet-meta-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f8fafc;border:1px solid #dbe7f1;color:#334155;font-size:12px;font-weight:800}
.sheet-meta-pill b{color:#0f172a}
.compact-sheet-plans .sheet-layout-row.compact-layout{padding-top:10px!important}
.sheet-fire-note{display:none!important}
@media (max-width: 900px){.sheet-plan-meta{padding:10px 10px 0}.sheet-meta-pill{font-size:11px;padding:5px 8px}}

/* clearer sheet layout info cards */
.sheet-plan-meta{display:grid!important;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px!important;padding:12px 14px 4px!important}
.sheet-meta-card{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #dbe7f1;border-radius:14px;background:linear-gradient(180deg,#ffffff,#f8fbfd)}
.sheet-meta-card small{font-size:11px;font-weight:800;color:#64748b;letter-spacing:.02em}
.sheet-meta-card strong{font-size:16px;font-weight:900;color:#0f172a;line-height:1.25}
.table-card-cutsac .cutting-program-table th:nth-child(1),
.table-card-cutsac .cutting-program-table td:nth-child(1){width:40%}
.table-card-cutsac .cutting-program-table th,
.table-card-cutsac .cutting-program-table td{text-align:center}
.table-card-cutsac .cutting-program-table th:first-child,
.table-card-cutsac .cutting-program-table td:first-child{text-align:left}
.compact-sheet-plans .sheet-plan-head{padding-bottom:10px!important}
.compact-sheet-plans .sheet-plan-head strong{font-size:20px!important;line-height:1.2}
.compact-sheet-plans .sheet-plan-head span{font-size:13px!important}
@media (max-width: 1100px){.sheet-plan-meta{grid-template-columns:repeat(2,minmax(140px,1fr))!important}}
@media (max-width: 640px){.sheet-plan-meta{grid-template-columns:1fr!important}.sheet-meta-card strong{font-size:15px}}

/* missing stock warnings in material and cutting panels */
.inline-stock-warning{margin:0 0 14px;padding:14px 16px;border:1px solid #f5c2c7;background:linear-gradient(180deg,#fff7f7,#fff2f2);border-radius:16px}
.inline-stock-warning strong{display:block;color:#a61b3c;margin-bottom:8px;font-size:15px}
.inline-stock-warning p{margin:10px 0 0;color:#7a4b57;font-size:13px;font-weight:700}
.warning-chip-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.warning-name-chip{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid #f0a7b3;color:#a61b3c;font-size:12px;font-weight:800;box-shadow:0 3px 10px rgba(166,27,60,.08)}
.product-main-tab.has-alert em{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:#ff3b30;color:#fff;font-style:normal;font-size:11px;font-weight:900;margin-top:6px;align-self:flex-start}
.stock-missing-banner{display:flex;justify-content:space-between;gap:16px;align-items:center}
.stock-missing-copy{display:flex;flex-direction:column;gap:8px}
.stock-missing-copy > span{color:#8a3352;font-weight:800;font-size:13px}
@media (max-width: 900px){.stock-missing-banner{flex-direction:column;align-items:flex-start}}

/* 2026-06-12: organized BOM tables, clear tabs, red missing-stock parts */
/* Unified section headers for all product/material/cutting tables */
.product-section-head,
.compact-material-head,
.cutting-pro-head,
.pro-table-card h4,
.cut-list-table-section h4,
.compact-sheet-plans .sheet-plan-head{
  border-radius:0!important;
  background:linear-gradient(135deg,#ecfeff 0%,#f0fdfa 52%,#f8fafc 100%)!important;
  border-bottom:1px solid rgba(15,118,110,.16)!important;
}
.product-section-head,
.compact-material-head,
.cutting-pro-head,
.compact-sheet-plans .sheet-plan-head{
  padding:18px 22px!important;
}
.product-section-head .eyebrow,
.compact-material-head .eyebrow,
.cutting-pro-head .eyebrow{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 7px!important;
  color:#0f766e!important;
  font-size:11px!important;
  font-weight:1000!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}
.product-section-head .eyebrow:before,
.compact-material-head .eyebrow:before,
.cutting-pro-head .eyebrow:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#0f766e;
  box-shadow:0 0 0 4px rgba(15,118,110,.11);
}
.product-section-head h2,
.compact-material-head h2,
.cutting-pro-head h2{
  margin:0!important;
  color:#0f172a!important;
  font-size:24px!important;
  line-height:1.15!important;
  letter-spacing:-.025em!important;
}
.product-section-head span,
.compact-material-head span,
.cutting-pro-head span{
  color:#475569!important;
  font-weight:800!important;
}
.section-mini-metrics{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  justify-content:flex-end!important;
}
.section-mini-metrics span,
.product-mini-stats span{
  background:#eef8fb!important;
  border:1px solid #d6edf2!important;
  color:#0f3a56!important;
  border-radius:999px!important;
  padding:8px 12px!important;
  font-weight:900!important;
}
.section-mini-metrics b,
.product-mini-stats b{
  color:#0f766e!important;
}
.pro-table-card h4,
.cut-list-table-section h4{
  color:#0f172a!important;
  padding:13px 18px!important;
  font-size:15px!important;
  font-weight:1000!important;
}

/* Make main table tabs visually separate from the page background */
.product-main-tabs-shell.compact-work-tabs{
  background:linear-gradient(135deg,#d9edf2,#eef7fa)!important;
  border:1px solid #bfdce4!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 18px 42px rgba(15,23,42,.08)!important;
  padding:10px!important;
  gap:12px!important;
}
.compact-work-tabs .product-main-tab{
  background:linear-gradient(180deg,#ffffff,#f4f9fb)!important;
  border:1px solid #b9dce5!important;
  box-shadow:0 10px 24px rgba(15,58,86,.10)!important;
}
.compact-work-tabs .product-main-tab:not(.active):hover{
  border-color:#0f766e!important;
  background:linear-gradient(180deg,#ffffff,#eaf8f7)!important;
}
.compact-work-tabs .product-main-tab.active{
  background:linear-gradient(135deg,#0f3a56,#0f766e)!important;
  border-color:#0f766e!important;
  color:#fff!important;
  box-shadow:0 18px 42px rgba(15,118,110,.22)!important;
}
.compact-work-tabs .product-main-tab.has-alert:not(.active){
  background:linear-gradient(180deg,#fff,#fff1f2)!important;
  border-color:#fda4af!important;
}
.compact-work-tabs .product-main-tab .tab-kicker{
  background:#e0f2fe!important;
  color:#075985!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  width:max-content!important;
}
.compact-work-tabs .product-main-tab.active .tab-kicker{
  background:rgba(255,255,255,.18)!important;
  color:#ccfbf1!important;
}

/* Red, unmistakable stock-missing materials and pieces */
.inline-stock-warning,
.stock-missing-banner{
  background:linear-gradient(135deg,#fff1f2,#fff7ed)!important;
  border:1px solid #fecdd3!important;
  border-radius:18px!important;
  color:#9f1239!important;
}
.inline-stock-warning strong,
.stock-missing-banner strong{
  color:#be123c!important;
  font-weight:1000!important;
}
.warning-name-chip{
  background:#ffe4e6!important;
  border:1px solid #fb7185!important;
  color:#be123c!important;
  font-weight:1000!important;
}
.stock-missing-row td{
  background:#fff1f2!important;
  color:#9f1239!important;
  border-top-color:#fecdd3!important;
  border-bottom-color:#fecdd3!important;
}
.stock-missing-row td:first-child{border-left-color:#fb7185!important;box-shadow:inset 4px 0 0 #e11d48!important}
.stock-missing-row strong,
.stock-missing-row small,
.stock-missing-row .piece-chip,
.stock-missing-row .piece-chip b{
  color:#b91c1c!important;
}
.stock-missing-row small{
  display:inline-flex!important;
  margin-left:8px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#fee2e2!important;
  border:1px solid #fca5a5!important;
  font-size:11px!important;
  font-weight:1000!important;
}
.stock-missing-row .piece-chip{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
}

@media(max-width:900px){
  .product-section-head,
  .compact-material-head,
  .cutting-pro-head{align-items:flex-start!important;flex-direction:column!important}
  .section-mini-metrics{justify-content:flex-start!important}
}

/* === Professional alignment patch: product main tabs + section headers === */
.product-main-tabs-shell.compact-work-tabs{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  padding:14px!important;
  margin:18px 0 20px!important;
  border-radius:26px!important;
  background:linear-gradient(180deg,#edf5f8,#f7fbfd)!important;
  border:1px solid rgba(15,45,75,.12)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 16px 42px rgba(7,29,53,.07)!important;
}
.product-main-tab{
  position:relative!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  grid-template-areas:"no title badge" "no meta badge"!important;
  align-items:center!important;
  column-gap:14px!important;
  row-gap:2px!important;
  min-height:82px!important;
  width:100%!important;
  padding:17px 18px!important;
  border-radius:20px!important;
  border:1px solid rgba(20,64,96,.14)!important;
  background:linear-gradient(180deg,#ffffff,#f8fbfd)!important;
  color:#10243d!important;
  text-align:left!important;
  box-shadow:0 10px 26px rgba(15,23,42,.055)!important;
  overflow:hidden!important;
}
.product-main-tab:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:transparent;
}
.product-main-tab .tab-kicker{
  grid-area:no!important;
  width:44px!important;
  height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:15px!important;
  background:#e8f2f4!important;
  color:#0f766e!important;
  font-weight:950!important;
  font-size:14px!important;
  letter-spacing:.03em!important;
}
.product-main-tab strong{
  grid-area:title!important;
  display:block!important;
  min-width:0!important;
  font-size:18px!important;
  line-height:1.15!important;
  font-weight:950!important;
  color:inherit!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-main-tab small{
  grid-area:meta!important;
  display:block!important;
  color:#61758a!important;
  font-size:13px!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-main-tab em{
  grid-area:badge!important;
  justify-self:end!important;
  align-self:center!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:6px 11px!important;
  border-radius:999px!important;
  background:#dc2626!important;
  color:#fff!important;
  font-style:normal!important;
  font-weight:950!important;
  font-size:12px!important;
  white-space:nowrap!important;
  box-shadow:0 8px 18px rgba(220,38,38,.18)!important;
}
.product-main-tab.active{
  background:linear-gradient(135deg,#0f5b66,#0f766e)!important;
  border-color:transparent!important;
  color:#fff!important;
  box-shadow:0 18px 42px rgba(15,118,110,.22)!important;
}
.product-main-tab.active:before{background:#8ff3e4!important}
.product-main-tab.active .tab-kicker{
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.product-main-tab.active small{color:rgba(255,255,255,.82)!important}
.product-main-tab.has-alert:not(.active){
  border-color:rgba(220,38,38,.22)!important;
  background:linear-gradient(180deg,#fff,#fff7f7)!important;
}
.product-main-tab.has-alert:not(.active):before{background:#ef4444!important}

.product-section-head.compact-material-head,
.cutting-pro-head.compact-cutting-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:92px!important;
  padding:22px 24px!important;
  margin:0!important;
  border-radius:0!important;
  background:linear-gradient(135deg,#0f3a56,#0f766e)!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}
.product-section-head.compact-material-head .eyebrow,
.cutting-pro-head.compact-cutting-head .eyebrow{
  margin:0 0 5px!important;
  color:#baf7ed!important;
  font-size:11px!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  font-weight:950!important;
}
.product-section-head.compact-material-head h2,
.cutting-pro-head.compact-cutting-head h2{
  margin:0!important;
  color:#fff!important;
  font-size:24px!important;
  line-height:1.1!important;
  font-weight:950!important;
}
.cutting-pro-head.compact-cutting-head span,
.product-section-head.compact-material-head span{
  color:rgba(255,255,255,.82)!important;
  font-weight:800!important;
}
.section-mini-metrics{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:10px!important;
}
.section-mini-metrics span{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.14)!important;
  border:1px solid rgba(255,255,255,.20)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:850!important;
}
.section-mini-metrics b{color:#fff!important;font-weight:950!important}
.material-list-card-pro.compact-material-card,
.cutting-pro-section.cutting-pro-v4{
  padding:0!important;
  overflow:hidden!important;
  border-radius:28px!important;
  border:1px solid rgba(148,163,184,.28)!important;
  background:#fff!important;
  box-shadow:0 20px 60px rgba(15,23,42,.08)!important;
}
.inline-stock-warning{
  margin:18px!important;
  padding:16px 18px!important;
  border-radius:18px!important;
  background:#fff1f2!important;
  border:1px solid rgba(225,29,72,.22)!important;
  color:#9f1239!important;
}
.inline-stock-warning strong{display:block!important;color:#9f1239!important;margin-bottom:8px!important}
.warning-chip-list{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:4px 0 8px!important}
.warning-name-chip{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#fee2e2!important;
  border:1px solid rgba(220,38,38,.22)!important;
  color:#b91c1c!important;
  font-weight:950!important;
}
.inline-stock-warning p{margin:0!important;color:#7f1d1d!important;font-weight:750!important}

@media(max-width:900px){
  .product-main-tabs-shell.compact-work-tabs{grid-template-columns:1fr!important}
  .product-main-tab{grid-template-columns:44px minmax(0,1fr)!important;grid-template-areas:"no title" "no meta" "badge badge"!important}
  .product-main-tab em{justify-self:start!important;margin-top:6px!important}
  .product-section-head.compact-material-head,.cutting-pro-head.compact-cutting-head{flex-direction:column!important;align-items:flex-start!important}
  .section-mini-metrics{justify-content:flex-start!important}
}

/* 2026-06-12: exclusive cutting view to reduce crowding */
.cutting-actions-strip.only-buttons{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 16px!important;
  background:transparent!important;
  border-bottom:none!important;
}
.cutting-head-actions.actions-only{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}
.cutting-head-actions.actions-only .btn{
  min-height:36px!important;
  padding:8px 14px!important;
  border-radius:12px!important;
  font-size:13px!important;
  font-weight:850!important;
  box-shadow:none!important;
}
.cutting-head-actions.actions-only .btn-light{
  background:#eef6f8!important;
  color:#0f5b66!important;
  border-color:rgba(15,118,110,.16)!important;
}
.cutting-head-actions.actions-only .btn-primary{
  background:linear-gradient(135deg,#0f5b66,#14b8a6)!important;
  border-color:transparent!important;
  color:#fff!important;
}
.cutting-select-hint{
  margin:0 16px 12px!important;
  padding:10px 14px!important;
  border:1px dashed rgba(15,118,110,.28)!important;
  border-radius:14px!important;
  background:#f0fdfa!important;
  color:#0f5b66!important;
  font-size:13px!important;
  font-weight:850!important;
}
.integrated-cutting-cards .cutting-square-card{
  opacity:.78!important;
  transform:none!important;
}
.integrated-cutting-cards .cutting-square-card:hover,
.integrated-cutting-cards .cutting-square-card.is-active{
  opacity:1!important;
  transform:translateY(-2px)!important;
}
.integrated-cutting-cards .cutting-square-card.is-active{
  outline:4px solid rgba(20,184,166,.24)!important;
  outline-offset:3px!important;
  box-shadow:0 18px 40px rgba(15,23,42,.18)!important;
}
.cutting-mode-selected .cut-summary-grid{
  grid-template-columns:1fr!important;
}
.cutting-mode-selected .pro-table-card,
.cutting-mode-selected .cut-list-table-section{
  width:100%!important;
}
.cutting-result-block[hidden],
.cutting-final-summary[hidden],
.pro-table-card[hidden],
.cut-list-table-section[hidden],
.cutting-select-hint[hidden]{
  display:none!important;
}
@media(max-width:720px){
  .cutting-actions-strip.only-buttons{justify-content:flex-start!important;}
  .cutting-head-actions.actions-only{width:100%!important;justify-content:flex-start!important;}
}


/* 2026-06-12: add Kesim Ozeti card next to 1D and Sac selection */
.three-cutting-actions{
  grid-template-columns:repeat(3,minmax(170px,260px))!important;
  align-items:stretch!important;
}
.three-cutting-actions .card-summary{
  background:linear-gradient(135deg,#0f172a,#334155)!important;
  color:#fff!important;
  border-color:rgba(148,163,184,.32)!important;
}
.three-cutting-actions .card-summary:after{
  background:rgba(255,255,255,.10)!important;
}
.three-cutting-actions .card-summary strong{
  font-size:24px!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
}
.three-cutting-actions .card-summary span,
.three-cutting-actions .card-summary em{
  color:rgba(255,255,255,.88)!important;
}
.show-cutting-summary .cutting-final-summary{
  margin-top:8px!important;
}
@media(max-width:980px){
  .three-cutting-actions{
    grid-template-columns:1fr!important;
  }
}

/* 2026-06-12: compact professional product data header */
.product-workspace.world-product-workspace.pro-product-workspace{
  display:grid!important;
  gap:12px!important;
}
.product-workspace-header.panel.world-product-header.refined-product-info{
  display:grid!important;
  grid-template-columns:minmax(230px,1.05fr) minmax(440px,1.75fr) auto!important;
  align-items:center!important;
  gap:12px 14px!important;
  min-height:0!important;
  padding:12px 14px!important;
  margin:0!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff,#fbfdff)!important;
  border:1px solid rgba(15,45,75,.08)!important;
  box-shadow:0 8px 22px rgba(10,31,55,.055)!important;
  overflow:visible!important;
}
.product-workspace-header.refined-product-info .product-main-id{
  min-width:0!important;
  padding-right:8px!important;
}
.product-workspace-header.refined-product-info .product-main-id span{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#0f766e!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  line-height:1!important;
  text-transform:uppercase!important;
}
.product-workspace-header.refined-product-info .product-main-id span:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:99px;
  background:#14b8a6;
  box-shadow:0 0 0 4px rgba(20,184,166,.12);
}
.product-workspace-header.refined-product-info .product-main-id strong{
  display:block!important;
  margin:6px 0 2px!important;
  font-size:25px!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  color:#0b2239!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-workspace-header.refined-product-info .product-main-id small{
  display:block!important;
  color:#64748b!important;
  font-size:13px!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-workspace-header.refined-product-info .product-detail-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(100px,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
  min-width:0!important;
}
.product-workspace-header.refined-product-info .product-detail-strip span{
  min-height:54px!important;
  padding:9px 11px!important;
  border-radius:14px!important;
  background:#f8fbfd!important;
  border:1px solid rgba(15,45,75,.08)!important;
  box-shadow:none!important;
}
.product-workspace-header.refined-product-info .product-detail-strip small{
  margin:0 0 5px!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}
.product-workspace-header.refined-product-info .product-detail-strip b{
  display:block!important;
  color:#0b2239!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.18!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-workspace-header.refined-product-info .product-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  min-width:max-content!important;
}
.product-workspace-header.refined-product-info .product-header-actions .btn{
  min-height:38px!important;
  padding:8px 13px!important;
  border-radius:12px!important;
  font-size:12px!important;
  font-weight:900!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
.product-workspace-header.refined-product-info .product-mini-stats{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  padding-top:2px!important;
  margin:0!important;
}
.product-workspace-header.refined-product-info .product-mini-stats span{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:#eef6f8!important;
  border:1px solid rgba(15,118,110,.10)!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:none!important;
}
.product-workspace-header.refined-product-info .product-mini-stats span.warning{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#9f1239!important;
}
.product-workspace-header.refined-product-info .product-mini-stats b{
  font-size:15px!important;
  line-height:1!important;
  color:#0f766e!important;
  font-weight:950!important;
}
.product-workspace-header.refined-product-info .product-mini-stats span.warning b{color:#e11d48!important}

@media(max-width:1180px){
  .product-workspace-header.panel.world-product-header.refined-product-info{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }
  .product-workspace-header.refined-product-info .product-header-actions{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    min-width:0!important;
  }
}
@media(max-width:680px){
  .product-workspace-header.refined-product-info .product-detail-strip{
    grid-template-columns:1fr 1fr!important;
  }
  .product-workspace-header.refined-product-info .product-mini-stats{
    flex-wrap:wrap!important;
  }
}
@media(max-width:460px){
  .product-workspace-header.refined-product-info .product-detail-strip{
    grid-template-columns:1fr!important;
  }
}

/* 2026-06-12: reduce oversized BOM section header */
.product-section-head.compact-material-head{
  min-height:0!important;
  padding:14px 18px!important;
  border-radius:18px 18px 0 0!important;
  background:linear-gradient(135deg,#0f3a56,#0f766e)!important;
}
.product-section-head.compact-material-head h2{
  font-size:22px!important;
  line-height:1.08!important;
}
.product-section-head.compact-material-head .eyebrow{
  margin-bottom:4px!important;
  font-size:11px!important;
  line-height:1!important;
}
.product-section-head.compact-material-head .section-mini-metrics span{
  min-height:32px!important;
  padding:6px 10px!important;
  font-size:11px!important;
}
.product-section-head.compact-material-head .section-mini-metrics b{
  font-size:13px!important;
}

/* 2026-06-12: product image + compact BOM import inside product info card */
.product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{
  grid-template-columns:92px minmax(210px,.95fr) minmax(360px,1.45fr) auto!important;
  align-items:center!important;
  padding:12px!important;
  gap:12px!important;
}
.product-image-box{
  width:84px!important;
  height:84px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#eef6f8,#f8fafc)!important;
  border:1px solid rgba(15,118,110,.14)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)!important;
}
.product-image-box a{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  color:#fff!important;
  text-decoration:none!important;
}
.product-image-box img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.product-image-box a span{
  position:absolute!important;
  left:7px!important;
  right:7px!important;
  bottom:7px!important;
  padding:4px 6px!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.72)!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  text-align:center!important;
  opacity:0!important;
  transition:.18s ease!important;
}
.product-image-box a:hover span{opacity:1!important}
.product-image-placeholder{
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  gap:4px!important;
  color:#0f766e!important;
  text-align:center!important;
}
.product-image-placeholder b{font-size:16px!important;line-height:1!important;font-weight:950!important}
.product-image-placeholder small{font-size:10px!important;font-weight:850!important;color:#64748b!important}
.product-image-lightbox{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:9999!important;
  background:rgba(2,6,23,.76)!important;
  align-items:center!important;
  justify-content:center!important;
  padding:32px!important;
}
.product-image-lightbox:target{display:flex!important}
.product-image-lightbox img{
  width:auto!important;
  height:auto!important;
  max-width:min(92vw,1100px)!important;
  max-height:86vh!important;
  object-fit:contain!important;
  border-radius:22px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.42)!important;
  background:#fff!important;
}
.product-image-lightbox-close{
  position:fixed!important;
  top:22px!important;
  right:24px!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:28px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats{
  grid-column:2/4!important;
  padding-top:0!important;
}
.product-bom-compact{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:auto minmax(360px,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#f0fdfa,#f8fafc)!important;
  border:1px solid rgba(15,118,110,.13)!important;
}
.product-bom-title{min-width:120px!important}
.product-bom-title small{
  display:block!important;
  color:#0f766e!important;
  font-size:10px!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  line-height:1!important;
  margin-bottom:3px!important;
}
.product-bom-title strong{display:block!important;color:#0f172a!important;font-size:14px!important;line-height:1.1!important}
.product-bom-compact .bom-import-inline-pro{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.product-bom-compact .file-picker-pro{
  min-width:0!important;
  width:100%!important;
  max-width:480px!important;
  min-height:38px!important;
}
.product-bom-compact .file-picker-pro span,
.product-bom-compact .file-picker-pro b{padding:9px 12px!important;font-size:12px!important}
.product-bom-compact .btn{min-height:38px!important;padding:8px 13px!important;border-radius:12px!important;font-size:12px!important;white-space:nowrap!important}
.product-bom-compact .delete-bom-form{justify-self:end!important;margin:0!important}
.product-image-form-block{background:#f8fafc!important;border:1px solid rgba(15,45,75,.08)!important;border-radius:16px!important;padding:12px!important}
.product-image-upload-row{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important}
.product-image-upload-row img,
.product-image-empty{
  width:72px!important;
  height:72px!important;
  border-radius:16px!important;
  object-fit:cover!important;
  border:1px solid rgba(15,118,110,.16)!important;
  background:#eef6f8!important;
}
.product-image-empty{display:grid!important;place-items:center!important;color:#64748b!important;font-size:11px!important;font-weight:850!important;text-align:center!important}
.compact-image-picker{min-width:min(100%,320px)!important;flex:1!important}
.product-image-form-block small{display:block!important;margin-top:8px!important;color:#64748b!important;font-weight:750!important}
@media(max-width:1180px){
  .product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{grid-template-columns:92px 1fr!important;align-items:start!important}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats,
  .product-bom-compact{grid-column:1/-1!important}
}
@media(max-width:760px){
  .product-bom-compact{grid-template-columns:1fr!important;align-items:stretch!important}
  .product-bom-compact .bom-import-inline-pro{flex-direction:column!important;align-items:stretch!important}
  .product-bom-compact .file-picker-pro{max-width:none!important}
  .product-bom-compact .delete-bom-form{justify-self:stretch!important}
  .product-bom-compact .delete-bom-form .btn{width:100%!important}
}
@media(max-width:560px){
  .product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{grid-template-columns:1fr!important}
  .product-image-box{width:100%!important;height:160px!important}
}
.modern-product-thumb{height:132px;margin:-4px -4px 14px;border-radius:18px;overflow:hidden;background:#eef6f8;border:1px solid rgba(15,118,110,.12)}
.modern-product-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.modern-product-card:hover .modern-product-thumb img{transform:scale(1.03)}

/* 2026-06-12: professional product header actions, fixed image preview, and product-card thumbnails */
.product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{
  position:relative!important;
  grid-template-columns:96px minmax(240px,1.05fr) minmax(380px,1.35fr) minmax(250px,auto)!important;
  align-items:start!important;
  padding:16px!important;
  gap:14px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-image-box{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:92px!important;
  height:92px!important;
  border-radius:20px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  padding-top:3px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
  grid-column:3!important;
  grid-row:1!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
  grid-column:4!important;
  grid-row:1!important;
  align-self:start!important;
  justify-self:end!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:7px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  border:1px solid rgba(15,45,75,.08)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
  min-width:max-content!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions .btn{
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:12px!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:-.01em!important;
  box-shadow:none!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions .btn-primary{
  background:#0f9488!important;
  border-color:#0f9488!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions .btn-light{
  background:#fff!important;
  color:#0b2239!important;
  border-color:rgba(15,45,75,.10)!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions .btn-danger-soft{
  background:#fff!important;
  color:#be123c!important;
  border-color:rgba(225,29,72,.20)!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats{
  grid-column:2 / 5!important;
  grid-row:2!important;
  align-self:end!important;
  padding-top:0!important;
  flex-wrap:wrap!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact{
  grid-column:1 / -1!important;
  grid-row:3!important;
  margin-top:2px!important;
  padding:9px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#f8fafc,#f0fdfa)!important;
}
.product-image-box .product-image-open span{
  opacity:1!important;
  background:rgba(15,118,110,.88)!important;
}
.product-image-lightbox{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  padding:28px!important;
  background:rgba(2,6,23,.78)!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:auto!important;
}
.product-image-lightbox:target{display:flex!important}
.product-image-lightbox-backdrop{
  position:fixed!important;
  inset:0!important;
  display:block!important;
  background:transparent!important;
}
.product-image-lightbox figure{
  position:relative!important;
  z-index:2!important;
  margin:0!important;
  max-width:min(1180px,94vw)!important;
  max-height:92vh!important;
  padding:14px!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 34px 100px rgba(0,0,0,.48)!important;
  display:grid!important;
  gap:10px!important;
}
.product-image-lightbox figure img,
.product-image-box .product-image-lightbox figure img{
  width:auto!important;
  height:auto!important;
  max-width:calc(94vw - 56px)!important;
  max-height:calc(92vh - 92px)!important;
  object-fit:contain!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  display:block!important;
}
.product-image-lightbox figcaption{
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:900!important;
  text-align:center!important;
}
.product-image-lightbox-close{
  position:absolute!important;
  top:-16px!important;
  right:-16px!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:28px!important;
  line-height:1!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(0,0,0,.22)!important;
}
.modern-product-thumb{
  height:150px!important;
  margin:-6px -6px 14px!important;
  border-radius:22px!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#eef6f8,#f8fafc)!important;
  border:1px solid rgba(15,118,110,.12)!important;
}
.modern-product-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.modern-product-thumb-empty{
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  gap:6px!important;
  color:#0f766e!important;
  text-align:center!important;
}
.modern-product-thumb-empty b{font-size:14px!important;font-weight:950!important;line-height:1!important}
.modern-product-thumb-empty small{font-size:11px!important;color:#64748b!important;font-weight:850!important}
@media(max-width:1280px){
  .product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px minmax(220px,1fr) minmax(360px,1.2fr)!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
    grid-column:2 / 4!important;
    grid-row:2!important;
    justify-self:start!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats{
    grid-column:1 / -1!important;
    grid-row:3!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact{grid-row:4!important}
}
@media(max-width:900px){
  .product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{grid-template-columns:96px 1fr!important}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{grid-column:2!important}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact{grid-column:1/-1!important;grid-row:auto!important}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{justify-self:stretch!important;justify-content:flex-start!important;min-width:0!important;flex-wrap:wrap!important}
}
@media(max-width:560px){
  .product-workspace-header.refined-product-info.product-info-pro-card .product-image-box{grid-column:1/-1!important;width:100%!important;height:180px!important}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{grid-column:1/-1!important}
}

/* 2026-06-12: show full product images in cards and full-size preview */
.product-image-box{
  background:#f8fafc!important;
}
.product-image-box img,
.product-image-box .product-image-open img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#f8fafc!important;
  padding:3px!important;
  box-sizing:border-box!important;
}
.modern-product-thumb{
  background:#f8fafc!important;
}
.modern-product-thumb img,
.modern-product-card .modern-product-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#f8fafc!important;
  padding:8px!important;
  box-sizing:border-box!important;
}
.modern-product-card:hover .modern-product-thumb img{
  transform:none!important;
}
.product-image-lightbox{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  background:rgba(2,6,23,.82)!important;
  overflow:hidden!important;
}
.product-image-lightbox:target{
  display:flex!important;
}
.product-image-lightbox figure{
  position:relative!important;
  z-index:2!important;
  width:min(1180px,94vw)!important;
  height:min(820px,88vh)!important;
  max-width:94vw!important;
  max-height:88vh!important;
  margin:0!important;
  padding:16px!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 34px 100px rgba(0,0,0,.48)!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  gap:10px!important;
  box-sizing:border-box!important;
}
.product-image-lightbox figure img,
.product-image-lightbox img,
.product-image-box .product-image-lightbox figure img{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  display:block!important;
  box-shadow:none!important;
}
.product-image-lightbox figcaption{
  margin:0!important;
  line-height:1.25!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:900!important;
  text-align:center!important;
}
.product-image-lightbox-close{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:3!important;
}
@media(max-width:760px){
  .product-image-lightbox{padding:12px!important}
  .product-image-lightbox figure{width:96vw!important;height:86vh!important;padding:10px!important;border-radius:18px!important}
  .product-image-lightbox figure img{border-radius:14px!important}
}


/* 2026-06-12: final image preview and compact BOM panel fixes */
.material-list-card-pro.compact-material-card{
  border-radius:22px!important;
  overflow:hidden!important;
}
.material-list-card-pro.compact-material-card > .product-section-head.compact-material-head{
  display:none!important;
}
.product-image-lightbox{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(2,6,23,.84)!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}
.product-image-lightbox:target{display:flex!important;}
.product-image-lightbox figure{
  width:min(1280px,96vw)!important;
  height:auto!important;
  max-height:96vh!important;
  margin:auto!important;
  padding:16px!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 34px 100px rgba(0,0,0,.50)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  box-sizing:border-box!important;
}
.product-image-lightbox figure img,
.product-image-lightbox img,
.product-image-box .product-image-lightbox figure img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(96vw - 42px)!important;
  max-height:calc(96vh - 84px)!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:0!important;
  margin:0 auto!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
.product-image-lightbox figcaption{
  flex:0 0 auto!important;
  max-width:100%!important;
  margin:0!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-align:center!important;
}
.product-image-lightbox-close{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  z-index:4!important;
  width:36px!important;
  height:36px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:#0f172a!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:22px!important;
  line-height:1!important;
  box-shadow:0 12px 30px rgba(15,23,42,.24)!important;
}
@media(max-width:760px){
  .product-image-lightbox{padding:10px!important;}
  .product-image-lightbox figure{width:98vw!important;max-height:96vh!important;padding:10px!important;border-radius:18px!important;}
  .product-image-lightbox figure img{max-width:calc(98vw - 24px)!important;max-height:calc(96vh - 70px)!important;border-radius:14px!important;}
}

/* 2026-06-12: final full-screen product image preview + compact cutting selector */
.product-workspace,
.product-workspace-header,
.product-info-pro-card,
.product-main-tab-panel,
.cutting-pro-section.cutting-pro-v4{
  overflow:visible!important;
}
.product-image-box img,
.modern-product-thumb img,
.product-card-thumb img,
.order-product-thumb img{
  object-fit:contain!important;
  object-position:center center!important;
  background:#f8fafc!important;
}
.product-image-lightbox.product-image-lightbox-global,
.product-image-lightbox{
  display:none!important;
  position:fixed!important;
  left:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  z-index:2147483647!important;
  padding:18px!important;
  margin:0!important;
  background:rgba(2,6,23,.88)!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  overflow:auto!important;
  transform:none!important;
  border-radius:0!important;
  max-width:none!important;
  max-height:none!important;
}
.product-image-lightbox.product-image-lightbox-global:target,
.product-image-lightbox:target{
  display:flex!important;
}
.product-image-lightbox .product-image-lightbox-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:1!important;
  display:block!important;
  background:transparent!important;
}
.product-image-lightbox figure{
  position:relative!important;
  z-index:2!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 36px)!important;
  max-height:calc(100dvh - 36px)!important;
  margin:auto!important;
  padding:14px!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 34px 110px rgba(0,0,0,.55)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.product-image-lightbox figure img,
.product-image-lightbox img,
.product-image-box .product-image-lightbox figure img{
  display:block!important;
  flex:0 1 auto!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 68px)!important;
  max-height:calc(100dvh - 94px)!important;
  min-width:0!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  margin:0 auto!important;
  padding:0!important;
}
.product-image-lightbox figcaption{
  flex:0 0 auto!important;
  width:100%!important;
  max-width:calc(100vw - 68px)!important;
  margin:0!important;
  text-align:center!important;
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:900!important;
  white-space:normal!important;
}
.product-image-lightbox-close{
  position:fixed!important;
  top:18px!important;
  right:20px!important;
  z-index:3!important;
  width:42px!important;
  height:42px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#0f172a!important;
  text-decoration:none!important;
  font-size:28px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 14px 34px rgba(0,0,0,.24)!important;
}
.cutting-pro-section.cutting-pro-v4{
  border-radius:22px!important;
  padding:14px!important;
  background:#fff!important;
}
.cutting-pro-section.cutting-pro-v4 .cutting-actions-strip.only-buttons{
  padding:0 0 10px!important;
  margin:0!important;
}
.three-cutting-actions.integrated-cutting-cards,
.cutting-summary-cards.three-cutting-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  padding:0!important;
  margin:0 0 12px!important;
  background:transparent!important;
  max-width:none!important;
  justify-content:stretch!important;
}
.three-cutting-actions .cutting-square-card{
  min-height:66px!important;
  height:66px!important;
  border-radius:16px!important;
  padding:10px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"label count" "unit count" "fire count"!important;
  align-items:center!important;
  align-content:center!important;
  gap:1px 10px!important;
  box-shadow:0 10px 26px rgba(15,23,42,.08)!important;
  opacity:1!important;
}
.three-cutting-actions .cutting-square-card:after{
  width:62px!important;
  height:62px!important;
  right:-18px!important;
  top:-20px!important;
  opacity:.42!important;
}
.three-cutting-actions .cutting-square-card small{
  grid-area:label!important;
  font-size:9px!important;
  line-height:1.05!important;
  letter-spacing:.06em!important;
  margin:0!important;
}
.three-cutting-actions .cutting-square-card span{
  grid-area:unit!important;
  font-size:12px!important;
  line-height:1.05!important;
  margin:0!important;
}
.three-cutting-actions .cutting-square-card em{
  grid-area:fire!important;
  font-size:11px!important;
  line-height:1.05!important;
  margin:0!important;
}
.three-cutting-actions .cutting-square-card strong{
  grid-area:count!important;
  font-size:26px!important;
  line-height:1!important;
  text-align:right!important;
  white-space:nowrap!important;
}
.three-cutting-actions .cutting-square-card.card-summary strong{font-size:20px!important;}
.integrated-cutting-cards .cutting-square-card:hover,
.integrated-cutting-cards .cutting-square-card.is-active{
  transform:none!important;
  outline:2px solid rgba(20,184,166,.35)!important;
  outline-offset:2px!important;
  box-shadow:0 12px 28px rgba(15,23,42,.12)!important;
}
.cutting-select-hint{
  margin:0!important;
  padding:9px 12px!important;
  border-radius:12px!important;
  font-size:12px!important;
}
@media(max-width:900px){
  .three-cutting-actions.integrated-cutting-cards,
  .cutting-summary-cards.three-cutting-actions{grid-template-columns:1fr!important;}
  .three-cutting-actions .cutting-square-card{height:auto!important;min-height:62px!important;}
}
@media(max-width:760px){
  .product-image-lightbox.product-image-lightbox-global,
  .product-image-lightbox{padding:10px!important;}
  .product-image-lightbox figure{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;padding:10px!important;border-radius:18px!important;}
  .product-image-lightbox figure img{max-width:calc(100vw - 42px)!important;max-height:calc(100dvh - 78px)!important;border-radius:14px!important;}
  .product-image-lightbox-close{top:12px!important;right:12px!important;width:38px!important;height:38px!important;font-size:25px!important;}
}


/* 2026-06-12 final cutting UI refinement */
.cutting-pro-section.cutting-pro-v4{
  padding:18px!important;
}
.cutting-pro-section.cutting-pro-v4 .cutting-actions-strip.only-buttons{
  width:fit-content!important;
  margin:0 0 14px auto!important;
  padding:8px!important;
  background:#f8fafc!important;
  border:1px solid rgba(15,118,110,.12)!important;
  border-radius:16px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.05)!important;
}
.cutting-head-actions.actions-only{
  gap:8px!important;
}
.cutting-head-actions.actions-only .btn{
  min-height:40px!important;
  padding:9px 16px!important;
  border-radius:13px!important;
  font-size:14px!important;
  font-weight:900!important;
}
.cutting-head-actions.actions-only .btn-light{
  background:#ecf7f6!important;
  color:#0f5b66!important;
  border-color:rgba(15,118,110,.18)!important;
}
.cutting-head-actions.actions-only .btn-primary{
  background:linear-gradient(135deg,#0f5b66,#14b8a6)!important;
}
.three-cutting-actions.integrated-cutting-cards,
.cutting-summary-cards.three-cutting-actions{
  gap:12px!important;
  margin:0!important;
}
.three-cutting-actions .cutting-square-card{
  min-height:86px!important;
  height:86px!important;
  border-radius:18px!important;
  padding:14px 16px!important;
  gap:4px 12px!important;
}
.three-cutting-actions .cutting-square-card small{
  font-size:12px!important;
  line-height:1.1!important;
  letter-spacing:.08em!important;
  font-weight:900!important;
}
.three-cutting-actions .cutting-square-card span{
  font-size:17px!important;
  line-height:1.1!important;
  font-weight:900!important;
}
.three-cutting-actions .cutting-square-card em{
  font-size:15px!important;
  line-height:1.1!important;
  font-style:normal!important;
  font-weight:800!important;
}
.three-cutting-actions .cutting-square-card strong{
  font-size:42px!important;
  line-height:1!important;
}
.three-cutting-actions .cutting-square-card.card-summary strong{
  font-size:20px!important;
  line-height:1.15!important;
}
.three-cutting-actions .cutting-square-card.card-summary span{
  font-size:17px!important;
}
/* keep summary card balanced */
.three-cutting-actions .cutting-square-card.card-summary{
  grid-template-areas:"label count" "fire count" "unit count"!important;
}
/* remove obsolete hint area if still rendered by cache */
.cutting-select-hint{display:none!important}

/* green tone for cutting detail tables to distinguish from material tables */
.table-card-1d h4,
.table-card-cut1d h4,
.table-card-sac h4,
.table-card-cutsac h4{
  background:linear-gradient(135deg,#0f766e,#16a34a)!important;
}
.tone-1d th,
.tone-cut1d th,
.tone-sac th,
.tone-cutsac th{
  background:#0f766e!important;
}
.tone-1d td:first-child,
.tone-cut1d td:first-child,
.tone-sac td:first-child,
.tone-cutsac td:first-child{
  border-left:4px solid #16a34a!important;
}
.pro-table-card{
  border-color:rgba(22,163,74,.14)!important;
}
.pro-table-card .cutting-program-table tbody tr:nth-child(odd) td{
  background:#f6fef9!important;
}
.pro-table-card .cutting-program-table tbody tr:nth-child(even) td{
  background:#ffffff!important;
}

@media (max-width: 900px){
  .cutting-pro-section.cutting-pro-v4 .cutting-actions-strip.only-buttons{
    width:100%!important;
    margin:0 0 12px 0!important;
  }
  .cutting-head-actions.actions-only{
    width:100%!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
  .three-cutting-actions.integrated-cutting-cards,
  .cutting-summary-cards.three-cutting-actions{
    grid-template-columns:1fr!important;
  }
  .three-cutting-actions .cutting-square-card{
    height:auto!important;
    min-height:84px!important;
  }
}


/* 2026-06-12: cutting selector as compact category cards */
.cutting-pro-section.cutting-pro-v4{
  padding:14px!important;
  border-radius:22px!important;
  background:#fff!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
}
.cutting-pro-section.cutting-pro-v4 .cutting-actions-strip.only-buttons{
  width:fit-content!important;
  margin:0 0 10px auto!important;
  padding:6px!important;
  background:#f7fbfc!important;
  border:1px solid rgba(15,118,110,.14)!important;
  border-radius:16px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
}
.cutting-head-actions.actions-only{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;}
.cutting-head-actions.actions-only .btn{min-height:38px!important;padding:8px 15px!important;border-radius:12px!important;font-size:13px!important;font-weight:900!important;box-shadow:none!important;}
.cutting-head-actions.actions-only .btn-light{background:#edf8fa!important;color:#075969!important;border-color:rgba(15,118,110,.18)!important;}
.cutting-head-actions.actions-only .btn-primary{background:linear-gradient(135deg,#047481,#10a79a)!important;border-color:transparent!important;color:#fff!important;}
.cutting-summary-cards.three-cutting-actions,.three-cutting-actions.integrated-cutting-cards{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(190px,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:10px!important;
  background:linear-gradient(180deg,#fbfdff,#f7fbfd)!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:18px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
.three-cutting-actions .cutting-square-card{
  position:relative!important;
  isolation:isolate!important;
  min-height:80px!important;
  height:80px!important;
  width:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto 1fr auto!important;
  grid-template-areas:"title count" "unit count" "meta meta"!important;
  align-items:center!important;
  gap:1px 10px!important;
  padding:10px 13px!important;
  border-radius:14px!important;
  border:1px solid rgba(15,23,42,.12)!important;
  background:#f8fafc!important;
  box-shadow:0 8px 18px rgba(15,23,42,.055)!important;
  opacity:1!important;
  transform:none!important;
  cursor:pointer!important;
  text-align:left!important;
  color:#0f172a!important;
}
.three-cutting-actions .cutting-square-card:before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;z-index:0!important;background:#94a3b8!important;}
.three-cutting-actions .cutting-square-card:after{content:""!important;position:absolute!important;right:-22px!important;bottom:-28px!important;top:auto!important;width:78px!important;height:78px!important;border-radius:999px!important;background:rgba(148,163,184,.18)!important;z-index:0!important;}
.three-cutting-actions .cutting-square-card>*{position:relative!important;z-index:1!important;}
.three-cutting-actions .cutting-square-card small{grid-area:title!important;margin:0!important;font-size:13px!important;line-height:1.05!important;letter-spacing:0!important;text-transform:none!important;color:#0f172a!important;font-weight:950!important;}
.three-cutting-actions .cutting-square-card strong{grid-area:count!important;margin:0!important;font-size:27px!important;line-height:1!important;color:#0f172a!important;font-weight:950!important;text-align:right!important;white-space:nowrap!important;}
.three-cutting-actions .cutting-square-card span{grid-area:unit!important;margin:0!important;font-size:12px!important;line-height:1.05!important;color:#334155!important;font-weight:850!important;}
.three-cutting-actions .cutting-square-card em{grid-area:meta!important;margin:4px 0 0!important;font-size:11px!important;line-height:1.05!important;color:#64748b!important;font-style:normal!important;font-weight:850!important;}
.three-cutting-actions .cutting-square-card.card-one{background:linear-gradient(135deg,#eef6ff,#f8fbff)!important;border-color:rgba(37,99,235,.18)!important;}
.three-cutting-actions .cutting-square-card.card-one:before{background:#2563eb!important;}
.three-cutting-actions .cutting-square-card.card-one:after{background:rgba(37,99,235,.13)!important;}
.three-cutting-actions .cutting-square-card.card-sheet{background:linear-gradient(135deg,#fff7f7,#fff1f2)!important;border-color:rgba(190,18,60,.18)!important;}
.three-cutting-actions .cutting-square-card.card-sheet:before{background:#dc2626!important;}
.three-cutting-actions .cutting-square-card.card-sheet:after{background:rgba(244,63,94,.13)!important;}
.three-cutting-actions .cutting-square-card.card-summary{background:linear-gradient(135deg,#f8fafc,#f1f5f9)!important;border-color:rgba(15,23,42,.13)!important;}
.three-cutting-actions .cutting-square-card.card-summary:before{background:#334155!important;}
.three-cutting-actions .cutting-square-card.card-summary:after{background:rgba(51,65,85,.12)!important;}
.three-cutting-actions .cutting-square-card:hover{transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(15,23,42,.09)!important;}
.three-cutting-actions .cutting-square-card.is-active,.three-cutting-actions .cutting-square-card[aria-pressed="true"]{background:linear-gradient(135deg,#195bd8,#0f766e)!important;border-color:transparent!important;box-shadow:0 12px 28px rgba(15,76,129,.22)!important;}
.three-cutting-actions .cutting-square-card.is-active:before,.three-cutting-actions .cutting-square-card[aria-pressed="true"]:before{background:#ffffff!important;opacity:.9!important;}
.three-cutting-actions .cutting-square-card.is-active:after,.three-cutting-actions .cutting-square-card[aria-pressed="true"]:after{background:rgba(255,255,255,.16)!important;}
.three-cutting-actions .cutting-square-card.is-active small,.three-cutting-actions .cutting-square-card.is-active strong,.three-cutting-actions .cutting-square-card.is-active span,.three-cutting-actions .cutting-square-card.is-active em,.three-cutting-actions .cutting-square-card[aria-pressed="true"] small,.three-cutting-actions .cutting-square-card[aria-pressed="true"] strong,.three-cutting-actions .cutting-square-card[aria-pressed="true"] span,.three-cutting-actions .cutting-square-card[aria-pressed="true"] em{color:#fff!important;}
.three-cutting-actions .cutting-square-card.card-summary strong{font-size:20px!important;}
.cutting-select-hint{display:none!important;}
@media(max-width:900px){
  .cutting-summary-cards.three-cutting-actions,.three-cutting-actions.integrated-cutting-cards{grid-template-columns:1fr!important;}
  .cutting-pro-section.cutting-pro-v4 .cutting-actions-strip.only-buttons{width:100%!important;margin:0 0 10px!important;}
  .cutting-head-actions.actions-only{justify-content:flex-start!important;}
}

/* Professional unified warnings + distinct cut-list table colors */
.unified-data-warning,
.unified-stock-warning,
.inline-stock-warning.unified-data-warning{
  border:1px solid rgba(245,158,11,.28)!important;
  background:linear-gradient(135deg,#fffbeb,#fff7ed)!important;
  color:#92400e!important;
  border-radius:18px!important;
  box-shadow:0 18px 44px rgba(245,158,11,.10)!important;
}
.unified-stock-warning,
.inline-stock-warning:not(.unified-data-warning){
  border-color:rgba(225,29,72,.25)!important;
  background:linear-gradient(135deg,#fff1f2,#fff7ed)!important;
  color:#9f1239!important;
}
.unified-data-warning strong:before{content:"⚠ ";}
.unified-stock-warning strong:before{content:"⛔ ";}
.unified-warning-note{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:6px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#fff7ed!important;
  color:#9a3412!important;
  font-size:11px!important;
  font-weight:900!important;
  border:1px solid #fed7aa!important;
}
.input-warning{
  border-color:#f59e0b!important;
  background:#fffbeb!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.12)!important;
}
.bom-tab-button.has-warning,
.cutting-square-card.has-alert{
  border-color:#f59e0b!important;
  box-shadow:0 16px 38px rgba(245,158,11,.15)!important;
}
.cutting-alert-badge{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  min-width:28px!important;
  height:28px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#dc2626!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:950!important;
  border:2px solid #fff!important;
  box-shadow:0 12px 26px rgba(220,38,38,.28)!important;
}
.table-card-cut1d,
.table-card-cutsac{
  overflow:hidden!important;
  border-width:1px!important;
}
.table-card-cut1d h4{
  background:linear-gradient(135deg,#1d4ed8,#06b6d4)!important;
  color:#fff!important;
}
.table-card-cutsac h4{
  background:linear-gradient(135deg,#7c3aed,#f97316)!important;
  color:#fff!important;
}
.tone-cut1d th{background:#1e40af!important;}
.tone-cutsac th{background:#7c2d12!important;}
.tone-cut1d td:first-child{border-left:4px solid #06b6d4!important;}
.tone-cutsac td:first-child{border-left:4px solid #f97316!important;}
.table-card-cut1d .cutting-program-table tbody tr:nth-child(odd) td{background:#eff6ff!important;}
.table-card-cut1d .cutting-program-table tbody tr:nth-child(even) td{background:#f8fafc!important;}
.table-card-cutsac .cutting-program-table tbody tr:nth-child(odd) td{background:#fff7ed!important;}
.table-card-cutsac .cutting-program-table tbody tr:nth-child(even) td{background:#faf5ff!important;}
.stock-missing-row td{
  background:#fff1f2!important;
  color:#9f1239!important;
}
.product-mini-stats span.warning{
  background:#fff7ed!important;
  color:#9a3412!important;
  border-color:#fed7aa!important;
}

/* Final polish: unified missing-stock warning button in both material and cutting tables */
.unified-stock-warning a.btn,
.unified-stock-warning a.btn-primary,
.stock-missing-banner.unified-stock-warning a.btn-primary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:8px 14px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#16a34a,#15803d)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950!important;
  box-shadow:0 10px 24px rgba(22,163,74,.24)!important;
  white-space:nowrap!important;
}

/* 2026-06-12 premium sheet layout redesign */
.pro-sheet-layout-card{display:flex;flex-direction:column}
.pro-sheet-layout-card .sheet-plan-head{align-items:flex-start!important;padding:14px 16px!important;gap:14px!important}
.pro-sheet-layout-card .sheet-plan-title strong{font-size:18px!important;line-height:1.2!important}
.pro-sheet-layout-card .sheet-plan-subtitle{font-size:12px!important;color:#64748b!important;line-height:1.35!important}
.pro-sheet-layout-card .sheet-plan-status{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
.pro-sheet-layout-card .sheet-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;border:1px solid #dbe7f1;background:#fff;font-size:12px;font-weight:900;color:#334155;white-space:nowrap}
.pro-sheet-layout-card .sheet-status-pill.status-good{background:#ecfdf5;border-color:#a7f3d0;color:#166534}
.pro-sheet-layout-card .sheet-status-pill.status-soft{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.pro-sheet-layout-card .sheet-plan-meta{grid-template-columns:repeat(5,minmax(110px,1fr))!important;padding:12px 16px 6px!important}
.pro-sheet-layout-card .sheet-layout-row.compact-layout{grid-template-columns:minmax(320px,1.25fr) minmax(280px,.95fr)!important;align-items:start!important;padding:14px 16px 18px!important;gap:14px!important}
.pro-sheet-layout-card .sheet-visual-panel{display:flex;flex-direction:column;gap:10px;min-width:0}
.pro-sheet-layout-card .sheet-visual-frame{padding:26px 0 0 34px!important;max-width:none!important}
.pro-sheet-layout-card .sheet-dim-top,.pro-sheet-layout-card .sheet-dim-left{font-size:12px!important;font-weight:900!important;color:#1e293b!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:var(--sheet-ratio,1.6)!important;min-height:220px;border-radius:12px!important;border:1.5px solid #0f172a!important;background:linear-gradient(180deg,#fbfdff,#f1f5f9)!important;box-shadow:inset 0 0 0 1px rgba(15,23,42,.05)!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::after{content:"";position:absolute;inset:0;background-image:linear-gradient(to right, rgba(148,163,184,.14) 1px, transparent 1px),linear-gradient(to bottom, rgba(148,163,184,.14) 1px, transparent 1px);background-size:32px 32px;pointer-events:none;opacity:.55}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border-radius:6px!important;z-index:1;min-width:0!important;min-height:0!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini{border-style:dashed!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color span{max-width:100%;font-size:10px!important;line-height:1.05!important;padding:2px 5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pro-sheet-layout-card .sheet-footnote-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:0 2px;color:#475569;font-size:12px;font-weight:700}
.pro-sheet-layout-card .sheet-footnote-row span{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0}
.pro-sheet-layout-card .sheet-footnote-row b{color:#0f172a}
.pro-sheet-layout-card .sheet-plan-side{align-self:stretch}
.pro-sheet-layout-card .sheet-legend-card{width:100%;border:1px solid #dbe7f1;border-radius:16px;background:linear-gradient(180deg,#ffffff,#f8fbfd);box-shadow:0 6px 18px rgba(15,23,42,.04);overflow:hidden}
.pro-sheet-layout-card .sheet-legend-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f8fafc,#eef6ff)}
.pro-sheet-layout-card .sheet-legend-head strong{font-size:14px;color:#0f172a}
.pro-sheet-layout-card .sheet-legend-head span{font-size:11px;font-weight:800;color:#64748b}
.pro-sheet-layout-card .sheet-legend-table-wrap{padding:10px 12px 12px}
.pro-sheet-layout-card .sheet-legend-table{width:100%;border-collapse:collapse}
.pro-sheet-layout-card .sheet-legend-table th,.pro-sheet-layout-card .sheet-legend-table td{padding:9px 8px;border-bottom:1px solid #edf2f7;font-size:12px;vertical-align:middle}
.pro-sheet-layout-card .sheet-legend-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;text-align:left}
.pro-sheet-layout-card .sheet-legend-table td:nth-child(1){width:32px}
.pro-sheet-layout-card .sheet-legend-table td:nth-child(3),.pro-sheet-layout-card .sheet-legend-table td:nth-child(4),.pro-sheet-layout-card .sheet-legend-table th:nth-child(3),.pro-sheet-layout-card .sheet-legend-table th:nth-child(4){text-align:center;font-weight:900;color:#0f172a}
.pro-sheet-layout-card .sheet-legend-table tr:last-child td{border-bottom:0}
.legend-color-dot{display:inline-flex;width:14px;height:14px;border-radius:999px;border:2px solid rgba(15,23,42,.22);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
.legend-color-dot.color-1{background:#dbeafe;border-color:#2563eb}
.legend-color-dot.color-2{background:#dcfce7;border-color:#16a34a}
.legend-color-dot.color-3{background:#ffedd5;border-color:#f97316}
.legend-color-dot.color-4{background:#ede9fe;border-color:#7c3aed}
.legend-color-dot.color-5{background:#ccfbf1;border-color:#0d9488}
.legend-color-dot.color-6{background:#fce7f3;border-color:#db2777}
.pro-sheet-layout-card .sheet-repeat-note{margin:0 12px 12px;padding:10px 12px;border-radius:12px;background:#0f172a;color:#fff;font-size:12px;font-weight:800;line-height:1.35}
@media (max-width:1180px){.pro-sheet-layout-card .sheet-plan-meta{grid-template-columns:repeat(3,minmax(110px,1fr))!important}.pro-sheet-layout-card .sheet-layout-row.compact-layout{grid-template-columns:1fr!important}.pro-sheet-layout-card .sheet-plan-side{order:2}}
@media (max-width:760px){.pro-sheet-layout-card .sheet-plan-head{flex-direction:column!important}.pro-sheet-layout-card .sheet-plan-status{justify-content:flex-start;margin-left:0}.pro-sheet-layout-card .sheet-plan-meta{grid-template-columns:repeat(2,minmax(120px,1fr))!important}.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{min-height:190px}.pro-sheet-layout-card .sheet-footnote-row{font-size:11px}}
@media (max-width:520px){.pro-sheet-layout-card .sheet-plan-meta{grid-template-columns:1fr!important}.pro-sheet-layout-card .sheet-legend-head{flex-direction:column}.pro-sheet-layout-card .sheet-legend-table th,.pro-sheet-layout-card .sheet-legend-table td{padding:8px 6px}}

/* 2026-06-12 clearer sheet pieces for shear cutting */
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{background:linear-gradient(180deg,#ffffff,#f8fafc)!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color{border-radius:3px!important;border-width:1.5px!important;border-style:solid!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.32),0 1px 2px rgba(15,23,42,.05)!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini{border-style:dashed!important;opacity:.92!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1{background:#cfe1ff!important;border-color:#1d4ed8!important;color:#123ea1!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2{background:#c9f5d8!important;border-color:#15803d!important;color:#166534!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3{background:#ffe1c2!important;border-color:#ea580c!important;color:#9a3412!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4{background:#e4dbff!important;border-color:#7c3aed!important;color:#5b21b6!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5{background:#c8f7f1!important;border-color:#0f766e!important;color:#115e59!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6{background:#ffd3ec!important;border-color:#be185d!important;color:#9d174d!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color span{background:rgba(255,255,255,.94)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 1px 2px rgba(15,23,42,.06)!important;font-weight:950!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-vertical span{transform:rotate(90deg);transform-origin:center;max-width:none!important}
.pro-sheet-layout-card .sheet-legend-table th:nth-child(1),.pro-sheet-layout-card .sheet-legend-table td:nth-child(1){width:28px}
.pro-sheet-layout-card .sheet-legend-table th:nth-child(3),.pro-sheet-layout-card .sheet-legend-table td:nth-child(3){text-align:left!important;width:120px}
.pro-sheet-layout-card .sheet-legend-table th:nth-child(4),.pro-sheet-layout-card .sheet-legend-table td:nth-child(4),.pro-sheet-layout-card .sheet-legend-table th:nth-child(5),.pro-sheet-layout-card .sheet-legend-table td:nth-child(5){text-align:center!important;font-weight:900;color:#0f172a}
.pro-sheet-layout-card .sheet-legend-table td strong{font-size:13px}
.zone-chip{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#f8fafc;border:1px solid #dbe7f1;color:#334155;font-size:11px;font-weight:900;white-space:nowrap}
@media (max-width:760px){.pro-sheet-layout-card .sheet-legend-table th:nth-child(3),.pro-sheet-layout-card .sheet-legend-table td:nth-child(3){width:auto}.zone-chip{font-size:10px;padding:4px 7px}}

/* 2026-06-13 Cutting Optimization Pro style sheet view */
.pro-sheet-layout-card.cop-mode,.pro-sheet-layout-card{background:#f3f4f6!important;border:1px solid #cbd5e1!important;border-radius:12px!important;box-shadow:0 10px 26px rgba(15,23,42,.10)!important}
.pro-sheet-layout-card .sheet-plan-head{background:#e5e7eb!important;border-bottom:1px solid #cbd5e1!important;border-radius:12px 12px 0 0!important}
.pro-sheet-layout-card .sheet-plan-title strong{font-size:17px!important;color:#111827!important}
.pro-sheet-layout-card .sheet-plan-subtitle{color:#334155!important}
.pro-sheet-layout-card .sheet-layout-row.compact-layout{background:#fff!important;border-top:1px solid #e5e7eb!important}
.cop-sheet-tabs{display:flex;align-items:flex-end;gap:3px;height:24px;margin:0 0 -1px 34px;position:relative;z-index:2}
.cop-sheet-tabs span{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:24px;border:1px solid #9ca3af;border-bottom:0;background:#e5e7eb;color:#111827;font-size:13px;font-weight:900;border-radius:4px 4px 0 0}
.cop-sheet-tabs span.is-active{background:#fff;color:#0f172a}
.pro-sheet-layout-card .cop-sheet-frame{background:#fff!important;border:1px solid #9ca3af!important;border-radius:0!important;padding:26px 22px 0 34px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important}
.pro-sheet-layout-card .sheet-dim-top{top:2px!important;font-size:16px!important;font-weight:800!important;color:#111827!important;font-family:Georgia,'Times New Roman',serif!important}
.pro-sheet-layout-card .sheet-dim-left{left:4px!important;top:72px!important;font-size:16px!important;font-weight:800!important;color:#111827!important;font-family:Georgia,'Times New Roman',serif!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{border:2px solid #111827!important;border-radius:0!important;background-color:#fff!important;background-image:repeating-linear-gradient(45deg,rgba(17,24,39,.05) 0,rgba(17,24,39,.05) 1px,transparent 1px,transparent 7px)!important;box-shadow:none!important;min-height:280px!important;overflow:hidden!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::after{display:none!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color{border:2px solid #111827!important;border-radius:0!important;opacity:1!important;box-shadow:none!important;display:block!important;color:#111827!important;z-index:2;background-clip:padding-box!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color::before{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.45);pointer-events:none}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-main{position:absolute;top:4px;left:50%;transform:translateX(-50%);font-family:Georgia,'Times New Roman',serif!important;font-size:15px!important;font-weight:800!important;line-height:1!important;color:#111827!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;white-space:nowrap;z-index:3}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-side{position:absolute;left:4px;top:50%;transform:translateY(-50%) rotate(-90deg);transform-origin:center;font-family:Georgia,'Times New Roman',serif!important;font-size:15px!important;font-weight:800!important;line-height:1!important;color:#111827!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;white-space:nowrap;z-index:3}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-vertical .piece-dim-main{top:50%;left:50%;transform:translate(-50%,-50%) rotate(-90deg)}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-vertical .piece-dim-side{left:50%;top:4px;transform:translateX(-50%)}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini::after{content:"";position:absolute;inset:2px;border:1px dashed rgba(17,24,39,.55)}
.cop-sheet-footer{font-family:Georgia,'Times New Roman',serif!important;text-align:center;font-size:16px;font-weight:800;color:#111827;padding:8px 4px 10px;background:#fff}
.pro-sheet-layout-card .sheet-footnote-row{justify-content:center!important;margin-top:8px!important}
.pro-sheet-layout-card .sheet-footnote-row span{background:#fff!important;border-color:#cbd5e1!important;border-radius:4px!important;color:#111827!important}
.pro-sheet-layout-card .sheet-legend-card{border-color:#9ca3af!important;border-radius:6px!important;background:#fff!important;box-shadow:none!important}
.pro-sheet-layout-card .sheet-legend-head{background:#e5e7eb!important;border-bottom:1px solid #9ca3af!important;border-radius:6px 6px 0 0!important}
.pro-sheet-layout-card .sheet-legend-table th{background:#f3f4f6!important;color:#111827!important;font-size:12px!important;border-bottom:1px solid #9ca3af!important}
.pro-sheet-layout-card .sheet-legend-table td{border-bottom:1px solid #d1d5db!important;color:#111827!important;font-size:13px!important}
.pro-sheet-layout-card .sheet-legend-table td strong{font-size:13px!important;color:#111827!important}
.pro-sheet-layout-card .zone-chip{border-radius:3px!important;background:#f9fafb!important;border-color:#d1d5db!important;color:#111827!important}
/* stable COP palette: same dimension = same color in sheet and list */
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1,.legend-color-dot.color-1{background:#f8c7c7!important;border-color:#dc2626!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2,.legend-color-dot.color-2{background:#c6f6d5!important;border-color:#16a34a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3,.legend-color-dot.color-3{background:#bfdbfe!important;border-color:#2563eb!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4,.legend-color-dot.color-4{background:#fef3c7!important;border-color:#d97706!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5,.legend-color-dot.color-5{background:#ddd6fe!important;border-color:#7c3aed!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6,.legend-color-dot.color-6{background:#fecdd3!important;border-color:#be123c!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7,.legend-color-dot.color-7{background:#a7f3d0!important;border-color:#059669!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8,.legend-color-dot.color-8{background:#bae6fd!important;border-color:#0284c7!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9,.legend-color-dot.color-9{background:#fed7aa!important;border-color:#ea580c!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10,.legend-color-dot.color-10{background:#f5d0fe!important;border-color:#c026d3!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11,.legend-color-dot.color-11{background:#ccfbf1!important;border-color:#0f766e!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12,.legend-color-dot.color-12{background:#e5e7eb!important;border-color:#4b5563!important}
.legend-color-dot{border-radius:2px!important;width:18px!important;height:18px!important;border-width:2px!important;box-shadow:none!important}
@media (max-width:760px){.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{min-height:220px!important}.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-main,.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-side{font-size:11px!important}.cop-sheet-footer{font-size:13px}.pro-sheet-layout-card .sheet-dim-top,.pro-sheet-layout-card .sheet-dim-left{font-size:13px!important}}

/* 2026-06-13 exact sheet ratio + click zoom */
.pro-sheet-layout-card .sheet-plan-subtitle{display:none!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{
  aspect-ratio:var(--sheet-ratio,1.6)!important;
  height:auto!important;
  min-height:0!important;
  width:100%!important;
  cursor:zoom-in!important;
}
.pro-sheet-layout-card .cop-sheet-frame{max-width:100%!important}
.sheet-visual-pro.is-zoomable-sheet:focus{outline:3px solid rgba(37,99,235,.34)!important;outline-offset:4px!important}
.sheet-zoom-open{overflow:hidden!important}
.sheet-zoom-overlay{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:26px}
.sheet-zoom-dialog{position:relative;width:min(96vw,1320px);max-height:94vh;overflow:auto;background:#fff;border-radius:10px;box-shadow:0 30px 90px rgba(0,0,0,.45);padding:18px 18px 22px}
.sheet-zoom-close{position:sticky;top:0;float:right;z-index:2;width:38px;height:38px;border:1px solid #9ca3af;border-radius:999px;background:#111827;color:#fff;font-size:26px;line-height:1;cursor:pointer;font-weight:900}
.sheet-zoom-content{clear:both;padding:8px 8px 0}
.sheet-zoom-clone{transform:none!important;width:100%!important;margin:0 auto!important;box-sizing:border-box!important}
.sheet-zoom-clone .sheet-visual-pro.layout-absolute{cursor:default!important;width:100%!important;max-width:100%!important;aspect-ratio:var(--sheet-ratio,1.6)!important;height:auto!important;min-height:0!important}
.sheet-zoom-clone .sheet-dim-top{font-size:20px!important}
.sheet-zoom-clone .sheet-dim-left{font-size:20px!important}
.sheet-zoom-clone .cop-sheet-footer{font-size:20px!important;padding-top:12px!important}
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-main,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-side{font-size:20px!important}
@media(max-width:760px){.sheet-zoom-overlay{padding:10px}.sheet-zoom-dialog{width:98vw;padding:10px}.sheet-zoom-clone .sheet-dim-top,.sheet-zoom-clone .sheet-dim-left,.sheet-zoom-clone .cop-sheet-footer{font-size:14px!important}.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-main,.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-dim-side{font-size:12px!important}}

/* 2026-06-13 A4 portrait sheet plans + exact legend colors */
.compact-sheet-plans{
  grid-template-columns:1fr!important;
  max-width:210mm!important;
  margin:0 auto!important;
  padding:10mm 8mm!important;
  gap:12mm!important;
  background:#fff!important;
}
.compact-sheet-plans .pro-sheet-layout-card{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  box-shadow:none!important;
  border:1px solid #9ca3af!important;
  border-radius:6px!important;
  background:#fff!important;
}
.pro-sheet-layout-card .sheet-layout-row.compact-layout{
  grid-template-columns:1fr!important;
  gap:8mm!important;
  padding:8mm!important;
}
.pro-sheet-layout-card .sheet-plan-side{width:100%!important;display:block!important}
.pro-sheet-layout-card .sheet-legend-card{max-width:100%!important;width:100%!important}
.pro-sheet-layout-card .sheet-visual-panel{width:100%!important}
.pro-sheet-layout-card .cop-sheet-frame{width:100%!important;max-width:100%!important;margin:0 auto!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{width:100%!important;max-width:100%!important}

/* force exact same fill + border for sheet pieces and list dots */
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1,body .pro-sheet-layout-card .legend-color-dot.color-1{background:#f8c7c7!important;border-color:#dc2626!important;color:#7f1d1d!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2,body .pro-sheet-layout-card .legend-color-dot.color-2{background:#c6f6d5!important;border-color:#16a34a!important;color:#14532d!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3,body .pro-sheet-layout-card .legend-color-dot.color-3{background:#bfdbfe!important;border-color:#2563eb!important;color:#1e3a8a!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4,body .pro-sheet-layout-card .legend-color-dot.color-4{background:#fef3c7!important;border-color:#d97706!important;color:#78350f!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5,body .pro-sheet-layout-card .legend-color-dot.color-5{background:#ddd6fe!important;border-color:#7c3aed!important;color:#4c1d95!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6,body .pro-sheet-layout-card .legend-color-dot.color-6{background:#fecdd3!important;border-color:#be123c!important;color:#881337!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7,body .pro-sheet-layout-card .legend-color-dot.color-7{background:#a7f3d0!important;border-color:#059669!important;color:#064e3b!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8,body .pro-sheet-layout-card .legend-color-dot.color-8{background:#bae6fd!important;border-color:#0284c7!important;color:#075985!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9,body .pro-sheet-layout-card .legend-color-dot.color-9{background:#fed7aa!important;border-color:#ea580c!important;color:#7c2d12!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10,body .pro-sheet-layout-card .legend-color-dot.color-10{background:#f5d0fe!important;border-color:#c026d3!important;color:#701a75!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11,body .pro-sheet-layout-card .legend-color-dot.color-11{background:#ccfbf1!important;border-color:#0f766e!important;color:#134e4a!important}
body .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12,body .pro-sheet-layout-card .legend-color-dot.color-12{background:#e5e7eb!important;border-color:#4b5563!important;color:#111827!important}
body .pro-sheet-layout-card .legend-color-dot{display:inline-flex!important;width:18px!important;height:18px!important;border-width:2px!important;border-style:solid!important;border-radius:2px!important;box-shadow:none!important}

@media print{
  @page{size:A4 portrait;margin:8mm}
  body{background:#fff!important}
  .compact-sheet-plans{display:block!important;max-width:194mm!important;width:194mm!important;padding:0!important;margin:0 auto!important;background:#fff!important}
  .compact-sheet-plans .pro-sheet-layout-card{display:block!important;width:100%!important;margin:0 0 8mm!important;page-break-inside:avoid!important;break-inside:avoid!important;box-shadow:none!important;border:1px solid #111827!important;border-radius:0!important}
  .compact-sheet-plans .pro-sheet-layout-card:not(:last-child){page-break-after:always!important;break-after:page!important}
  .pro-sheet-layout-card .sheet-plan-head,.pro-sheet-layout-card .sheet-plan-meta,.pro-sheet-layout-card .sheet-layout-row.compact-layout{padding:5mm!important}
  .pro-sheet-layout-card .sheet-layout-row.compact-layout{grid-template-columns:1fr!important;gap:5mm!important}
  .pro-sheet-layout-card .sheet-footnote-row{display:none!important}
  .pro-sheet-layout-card .sheet-legend-table th,.pro-sheet-layout-card .sheet-legend-table td{padding:5px 7px!important;font-size:11px!important}
  .pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body .pro-sheet-layout-card .legend-color-dot{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}

/* Professional sheet cutting output - clear for workshop manufacturing */
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{
  background-color:#fff!important;
  background-image:linear-gradient(rgba(15,23,42,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.08) 1px,transparent 1px)!important;
  background-size:25px 25px!important;
  min-height:340px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::before{
  content:"ORIGIN 0,0"!important;
  display:block!important;
  position:absolute!important;
  left:6px!important;
  top:6px!important;
  z-index:5!important;
  font:900 10px/1 Arial,sans-serif!important;
  color:#111827!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid #111827!important;
  padding:3px 5px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color{
  outline:1px solid rgba(17,24,39,.78)!important;
  outline-offset:-3px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no{
  position:absolute!important;
  right:3px!important;
  bottom:3px!important;
  min-width:18px!important;
  height:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#111827!important;
  color:#fff!important;
  border:1px solid #fff!important;
  font:900 10px/1 Arial,sans-serif!important;
  z-index:6!important;
  padding:0!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini .piece-cut-no{
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
}
.pro-cut-sequence{
  margin-top:10px!important;
  border:1px solid #cbd5e1!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.cut-sequence-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:8px 10px!important;
  background:#f1f5f9!important;
  border-bottom:1px solid #cbd5e1!important;
}
.cut-sequence-head strong{font-size:13px!important;color:#111827!important;font-weight:950!important}
.cut-sequence-head span{font-size:11px!important;color:#475569!important;font-weight:800!important;text-align:right!important}
.cut-sequence-table-wrap{max-height:220px!important;overflow:auto!important}
.cut-sequence-table{width:100%!important;border-collapse:collapse!important;font-size:12px!important}
.cut-sequence-table th,.cut-sequence-table td{border-bottom:1px solid #e2e8f0!important;padding:7px 8px!important;text-align:center!important;white-space:nowrap!important}
.cut-sequence-table th{position:sticky!important;top:0!important;background:#0f172a!important;color:#fff!important;font-size:11px!important;font-weight:950!important;z-index:1!important}
.cut-sequence-table td:first-child{background:#f8fafc!important;color:#111827!important}
.cut-sequence-table tr.is-oversize td{background:#fee2e2!important;color:#991b1b!important;font-weight:900!important}
.pro-sheet-layout-card .sheet-footnote-row{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:10px!important;margin-top:8px!important;padding:7px 8px!important}
.pro-sheet-layout-card .sheet-meta-card small{text-transform:uppercase!important;letter-spacing:.04em!important}
@media(max-width:760px){
  .pro-sheet-layout-card .sheet-visual-pro.layout-absolute{min-height:260px!important;background-size:20px 20px!important}
  .cut-sequence-head{align-items:flex-start!important;flex-direction:column!important}
  .cut-sequence-head span{text-align:left!important}
}

/* Sac kesim imalat görünümü - tablo kaldırıldı, renkli numaralı büyük plan */
.pro-sheet-layout-card .sheet-layout-row.compact-layout{
    grid-template-columns:1fr!important;
    gap:18px!important;
}
.pro-sheet-layout-card .sheet-plan-side{
    display:none!important;
}
.pro-sheet-layout-card .sheet-visual-frame{
    max-width:none!important;
    width:100%!important;
    margin:18px 0 10px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{
    min-height:520px!important;
    aspect-ratio:var(--sheet-ratio,1.6)!important;
    border-width:3px!important;
    border-radius:16px!important;
    background:#ffffff!important;
    box-shadow:inset 0 0 0 1px rgba(15,23,42,.08),0 12px 28px rgba(15,23,42,.08)!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::after{
    background-size:42px 42px!important;
    opacity:.75!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:7px!important;
    border-width:2px!important;
    border-style:solid!important;
    overflow:hidden!important;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.40),0 2px 6px rgba(15,23,42,.18)!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:30px!important;
    height:24px!important;
    padding:2px 7px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(15,23,42,.18)!important;
    color:#0f172a!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:.01em!important;
    box-shadow:0 2px 6px rgba(15,23,42,.14)!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini .piece-cut-no,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini .piece-cut-no{
    min-width:22px!important;
    height:19px!important;
    padding:1px 4px!important;
    font-size:10px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1{background:#60a5fa!important;border-color:#1d4ed8!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2{background:#4ade80!important;border-color:#15803d!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3{background:#fb923c!important;border-color:#c2410c!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4{background:#a78bfa!important;border-color:#6d28d9!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5{background:#2dd4bf!important;border-color:#0f766e!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6{background:#f472b6!important;border-color:#be185d!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7{background:#facc15!important;border-color:#a16207!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8{background:#38bdf8!important;border-color:#0369a1!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9{background:#f87171!important;border-color:#b91c1c!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10{background:#34d399!important;border-color:#047857!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11{background:#c084fc!important;border-color:#7e22ce!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12{background:#94a3b8!important;border-color:#475569!important;color:#0f172a!important}
.sheet-visual-only-note{
    margin-top:8px!important;
    font-size:13px!important;
}
.sheet-cut-sequence,
.pro-cut-sequence{
    display:none!important;
}
.sheet-zoom-dialog{
    width:min(96vw,1500px)!important;
}
.sheet-zoom-clone .sheet-visual-pro.layout-absolute{
    min-height:74vh!important;
    background:#ffffff!important;
}
@media (max-width:900px){
    .pro-sheet-layout-card .sheet-visual-pro.layout-absolute{min-height:360px!important}
}

/* 2026-06-13: CUT style real-scale sheet output requested by workshop */
.compact-sheet-plans,
.sheet-plan-grid.compact-sheet-plans{
  display:grid!important;
  grid-template-columns:1fr!important;
  width:100%!important;
  max-width:none!important;
  padding:14px 18px 22px!important;
  gap:22px!important;
  box-sizing:border-box!important;
}
.compact-sheet-plans .sheet-plan-card,
.compact-sheet-plans .pro-sheet-layout-card,
.pro-sheet-layout-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.pro-sheet-layout-card .sheet-layout-row.compact-layout{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
  padding:14px 18px 20px!important;
  background:#fff!important;
}
.pro-sheet-layout-card .sheet-plan-side{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  order:2!important;
}
.pro-sheet-layout-card .sheet-visual-panel{
  width:100%!important;
  max-width:none!important;
}
.pro-sheet-layout-card .sheet-visual-frame,
.pro-sheet-layout-card .cop-sheet-frame{
  width:100%!important;
  max-width:none!important;
  margin:10px 0 8px!important;
  padding:28px 22px 8px 42px!important;
  box-sizing:border-box!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:var(--sheet-ratio,1.6)!important;
  border:2px solid #111827!important;
  border-radius:0!important;
  background-color:#fff!important;
  background-image:linear-gradient(to right,rgba(15,23,42,.08) 1px,transparent 1px),linear-gradient(to bottom,rgba(15,23,42,.08) 1px,transparent 1px)!important;
  background-size:32px 32px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::after{display:none!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::before{
  content:"0,0"!important;
  left:6px!important;
  top:6px!important;
  background:#fff!important;
  border:1px solid #111827!important;
  color:#111827!important;
  font:900 11px/1 Arial,sans-serif!important;
  padding:4px 6px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:0!important;
  border-width:2px!important;
  border-style:solid!important;
  box-shadow:none!important;
  opacity:1!important;
  overflow:hidden!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no{
  position:static!important;
  transform:none!important;
  min-width:30px!important;
  height:24px!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:1px solid #111827!important;
  color:#111827!important;
  font:950 13px/1 Arial,sans-serif!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini .piece-cut-no,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini .piece-cut-no{
  min-width:22px!important;
  height:18px!important;
  padding:1px 4px!important;
  font-size:10px!important;
}
.pro-sheet-layout-card .sheet-piece-number-card{
  width:100%!important;
  border-radius:0!important;
  border:1px solid #94a3b8!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-piece-number-card .sheet-legend-head{
  background:#e5eef8!important;
  border-bottom:1px solid #94a3b8!important;
  border-radius:0!important;
}
.pro-sheet-layout-card .sheet-piece-number-table{
  width:100%!important;
  border-collapse:collapse!important;
}
.pro-sheet-layout-card .sheet-piece-number-table th,
.pro-sheet-layout-card .sheet-piece-number-table td{
  border:1px solid #cbd5e1!important;
  padding:7px 9px!important;
  font-size:13px!important;
  text-align:center!important;
  color:#111827!important;
  background:#fff!important;
  white-space:nowrap!important;
}
.pro-sheet-layout-card .sheet-piece-number-table th{
  background:#0f172a!important;
  color:#fff!important;
  font-weight:950!important;
}
.pro-sheet-layout-card .sheet-piece-number-table td:nth-child(2){font-weight:950!important}
.pro-sheet-layout-card .sheet-piece-number-table td:nth-child(1){width:54px!important}
.pro-sheet-layout-card .sheet-piece-number-table .legend-color-dot,
.pro-sheet-layout-card .legend-color-dot{
  display:inline-flex!important;
  width:22px!important;
  height:18px!important;
  border-radius:0!important;
  border-width:2px!important;
  border-style:solid!important;
  vertical-align:middle!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-repeat-note{
  margin:10px 12px 12px!important;
  border-radius:0!important;
  background:#f8fafc!important;
  color:#111827!important;
  border:1px solid #cbd5e1!important;
}
.pro-sheet-layout-card .sheet-footnote-row{display:none!important}
.sheet-zoom-clone .sheet-visual-pro.layout-absolute{
  min-height:0!important;
  height:auto!important;
  width:100%!important;
  max-width:100%!important;
  aspect-ratio:var(--sheet-ratio,1.6)!important;
}
@media (max-width:900px){
  .pro-sheet-layout-card .sheet-visual-frame,
  .pro-sheet-layout-card .cop-sheet-frame{padding-left:36px!important;padding-right:10px!important}
  .pro-sheet-layout-card .sheet-piece-number-table th,
  .pro-sheet-layout-card .sheet-piece-number-table td{font-size:11px!important;padding:6px!important}
}

/* 2026-06-13 workshop correction: real CUT-style type numbering, no 0,0 ruler, consistent zoom colors */
.cutting-pro-section,
.cutting-result-block,
.sheet-plan-grid.compact-sheet-plans{
  width:100%!important;
  max-width:none!important;
}
.sheet-plan-grid.compact-sheet-plans{
  padding-left:0!important;
  padding-right:0!important;
}
.pro-sheet-layout-card{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
.pro-sheet-layout-card .sheet-layout-row.compact-layout{
  grid-template-columns:1fr!important;
  width:100%!important;
}
.pro-sheet-layout-card .sheet-plan-side{
  display:block!important;
  width:100%!important;
  max-width:none!important;
}
.pro-sheet-layout-card .sheet-visual-frame,
.pro-sheet-layout-card .cop-sheet-frame,
.sheet-zoom-clone .sheet-visual-frame,
.sheet-zoom-clone .cop-sheet-frame{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute{
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:var(--sheet-ratio,2)!important;
  border:2px solid #111827!important;
  border-radius:0!important;
  background-color:#fff!important;
  background-image:linear-gradient(to right,rgba(15,23,42,.08) 1px,transparent 1px),linear-gradient(to bottom,rgba(15,23,42,.08) 1px,transparent 1px)!important;
  background-size:32px 32px!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::before,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute::before{
  content:""!important;
  display:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::after,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute::after{
  display:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color{
  position:absolute!important;
  border-radius:0!important;
  border-width:2px!important;
  border-style:solid!important;
  box-shadow:none!important;
  opacity:1!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no{
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:28px!important;
  height:22px!important;
  padding:2px 7px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:1px solid #111827!important;
  color:#111827!important;
  font:950 13px/1 Arial,sans-serif!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-piece-number-card{
  width:100%!important;
  max-width:none!important;
  border-radius:0!important;
  border:1px solid #94a3b8!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-piece-number-table th,
.pro-sheet-layout-card .sheet-piece-number-table td{
  text-align:center!important;
  vertical-align:middle!important;
}
.pro-sheet-layout-card .legend-color-dot{
  width:28px!important;
  height:18px!important;
  border-radius:0!important;
  border-width:2px!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.pro-sheet-layout-card .sheet-footnote-row{
  display:flex!important;
}
/* one final palette used by normal view, zoom clone, and table dots */
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1,
.pro-sheet-layout-card .legend-color-dot.color-1{background:#60a5fa!important;border-color:#1d4ed8!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2,
.pro-sheet-layout-card .legend-color-dot.color-2{background:#4ade80!important;border-color:#15803d!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3,
.pro-sheet-layout-card .legend-color-dot.color-3{background:#fb923c!important;border-color:#c2410c!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4,
.pro-sheet-layout-card .legend-color-dot.color-4{background:#a78bfa!important;border-color:#6d28d9!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5,
.pro-sheet-layout-card .legend-color-dot.color-5{background:#2dd4bf!important;border-color:#0f766e!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6,
.pro-sheet-layout-card .legend-color-dot.color-6{background:#f472b6!important;border-color:#be185d!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7,
.pro-sheet-layout-card .legend-color-dot.color-7{background:#facc15!important;border-color:#a16207!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8,
.pro-sheet-layout-card .legend-color-dot.color-8{background:#38bdf8!important;border-color:#0369a1!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9,
.pro-sheet-layout-card .legend-color-dot.color-9{background:#f87171!important;border-color:#b91c1c!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10,
.pro-sheet-layout-card .legend-color-dot.color-10{background:#34d399!important;border-color:#047857!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11,
.pro-sheet-layout-card .legend-color-dot.color-11{background:#c084fc!important;border-color:#7e22ce!important;color:#0f172a!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12,
.sheet-zoom-clone .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12,
.pro-sheet-layout-card .legend-color-dot.color-12{background:#94a3b8!important;border-color:#475569!important;color:#0f172a!important}

/* 2026-06-13 workshop correction: no zoom, true scale, readable type numbers */
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute{
  cursor:default!important;
  aspect-ratio:var(--sheet-ratio,2)!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  border:2px solid #111827!important;
  border-radius:0!important;
  background-color:#fff!important;
  background-image:linear-gradient(to right,rgba(15,23,42,.075) 1px,transparent 1px),linear-gradient(to bottom,rgba(15,23,42,.075) 1px,transparent 1px)!important;
  background-size:40px 40px!important;
  box-shadow:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::before{
  content:none!important;
  display:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute::after{
  display:none!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color{
  cursor:default!important;
  border-radius:0!important;
  border-width:2px!important;
  border-style:solid!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)!important;
  outline:1px solid rgba(17,24,39,.35)!important;
  outline-offset:-4px!important;
  overflow:hidden!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color .piece-cut-no{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:28px!important;
  height:22px!important;
  padding:1px 7px!important;
  border-radius:999px!important;
  background:#ffffff!important;
  border:2px solid #111827!important;
  color:#111827!important;
  font:950 14px/1 Arial,sans-serif!important;
  letter-spacing:0!important;
  box-shadow:0 1px 3px rgba(15,23,42,.20)!important;
  z-index:10!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.is-mini .piece-cut-no{
  min-width:24px!important;
  height:19px!important;
  padding:1px 5px!important;
  font-size:12px!important;
}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-1,
.pro-sheet-layout-card .legend-color-dot.color-1{background:#60a5fa!important;border-color:#1d4ed8!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-2,
.pro-sheet-layout-card .legend-color-dot.color-2{background:#4ade80!important;border-color:#15803d!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-3,
.pro-sheet-layout-card .legend-color-dot.color-3{background:#fb923c!important;border-color:#c2410c!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-4,
.pro-sheet-layout-card .legend-color-dot.color-4{background:#a78bfa!important;border-color:#6d28d9!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-5,
.pro-sheet-layout-card .legend-color-dot.color-5{background:#2dd4bf!important;border-color:#0f766e!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-6,
.pro-sheet-layout-card .legend-color-dot.color-6{background:#f472b6!important;border-color:#be185d!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-7,
.pro-sheet-layout-card .legend-color-dot.color-7{background:#facc15!important;border-color:#a16207!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-8,
.pro-sheet-layout-card .legend-color-dot.color-8{background:#38bdf8!important;border-color:#0369a1!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-9,
.pro-sheet-layout-card .legend-color-dot.color-9{background:#f87171!important;border-color:#b91c1c!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-10,
.pro-sheet-layout-card .legend-color-dot.color-10{background:#34d399!important;border-color:#047857!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-11,
.pro-sheet-layout-card .legend-color-dot.color-11{background:#c084fc!important;border-color:#7e22ce!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-pro.layout-absolute i.sheet-piece-color.color-12,
.pro-sheet-layout-card .legend-color-dot.color-12{background:#94a3b8!important;border-color:#475569!important;color:#111827!important}
.pro-sheet-layout-card .sheet-visual-only-note span:nth-child(n+2){display:none!important}
.sheet-zoom-overlay,
.sheet-zoom-dialog,
.sheet-zoom-clone{display:none!important}
body.sheet-zoom-open{overflow:auto!important}

/* Bends column in the first BOM/material table only. */
.world-bom-table.mode-one .bom-clean-head,
.world-bom-table.mode-one .bom-clean-row,
.mode-one .bom-clean-head,
.mode-one .world-bom-row,
.bom-row-mode-one{
  grid-template-columns:minmax(260px,1.55fr) 72px 86px 112px 136px 104px 76px 78px!important;
}
.world-bom-table.mode-sheet .bom-clean-head,
.world-bom-table.mode-sheet .bom-clean-row,
.mode-sheet .bom-clean-head,
.mode-sheet .world-bom-row,
.bom-row-mode-sheet{
  grid-template-columns:minmax(260px,1.55fr) 72px 78px 78px 86px 136px 104px 76px 78px!important;
}
.world-bom-table.mode-simple .bom-clean-head,
.world-bom-table.mode-simple .bom-clean-row,
.mode-simple .bom-clean-head,
.mode-simple .world-bom-row,
.bom-row-mode-simple{
  grid-template-columns:minmax(260px,1.7fr) 72px 136px 104px 76px 78px!important;
}

/* Professional separate labor table: İŞÇİLİK is no longer mixed inside Malzeme Listesi. */
.professional-labor-card{
  margin:18px 0 22px;
  padding:18px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 58%,#eef2ff 100%);
  box-shadow:0 18px 42px rgba(15,23,42,.08);
}
.labor-summary-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.labor-summary-head small{
  display:block;
  color:#4f46e5;
  font-weight:900;
  letter-spacing:.12em;
  font-size:11px;
}
.labor-summary-head h3{
  margin:2px 0 3px;
  font-size:20px;
  color:#111827;
}
.labor-summary-head span{
  color:#64748b;
  font-size:13px;
}
.labor-summary-totals{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.labor-summary-totals span{
  min-width:128px;
  padding:11px 13px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.09);
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.labor-summary-totals small{
  color:#64748b;
  letter-spacing:0;
  font-size:11px;
}
.labor-summary-totals b{
  display:block;
  margin-top:2px;
  color:#111827;
  font-size:22px;
}
.labor-operation-table{
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.09);
  background:#fff;
}
.labor-operation-table table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.labor-operation-table th{
  padding:12px 14px;
  text-align:left;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.labor-operation-table td{
  padding:12px 14px;
  border-top:1px solid rgba(15,23,42,.08);
  color:#1f2937;
  vertical-align:middle;
}
.labor-operation-table td b{display:block;color:#111827;}
.labor-operation-table td small{display:block;color:#64748b;margin-top:2px;}
.labor-row-bend td:first-child strong{color:#7c3aed;}
.labor-row-cut td:first-child strong{color:#0f766e;}
.labor-row-manual td:first-child strong{color:#b45309;}
.labor-row-muted td{color:#94a3b8;background:#f8fafc;}
.labor-total-row td{
  background:#f8fafc;
  font-weight:900;
  color:#0f172a;
}
.labor-total-row td:last-child{font-size:17px;}
@media (max-width: 820px){
  .labor-summary-head{display:block;}
  .labor-summary-totals{justify-content:flex-start;margin-top:12px;}
}

/* İşçilik artık ana ürün sekmelerinde üçüncü kart olarak gösterilir. */
.product-main-tabs-shell.compact-work-tabs{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.labor-tab-section{
  margin-top:0!important;
}
.professional-labor-card .labor-operation-block{
  margin-top:14px!important;
}
.professional-labor-card .labor-operation-block>summary{
  cursor:pointer;
}
@media(max-width:1100px){
  .product-main-tabs-shell.compact-work-tabs{grid-template-columns:1fr!important;}
}

/* Product data donut charts: real HTML/CSS charts, not images. */
.product-data-charts{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.product-donut-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 12px 32px rgba(15,23,42,.06);
  padding:16px;
  min-width:0;
}
.product-donut-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.product-donut-head strong{
  display:block;
  color:#0f172a;
  font-size:15px;
  font-weight:900;
}
.product-donut-head small{
  display:block;
  color:#64748b;
  font-size:11px;
  text-align:right;
  line-height:1.35;
  max-width:220px;
}
.product-donut-body{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:14px;
  align-items:center;
}
.product-donut{
  width:126px;
  height:126px;
  border-radius:50%;
  position:relative;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08),0 10px 22px rgba(15,23,42,.08);
}
.product-donut:after{
  content:"";
  position:absolute;
  inset:24px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);
}
.product-donut span{
  position:absolute;
  inset:27px;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.product-donut span b{
  color:#0f172a;
  font-size:20px;
  line-height:1;
}
.product-donut span small{
  color:#64748b;
  margin-top:3px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
.product-donut-legend{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.product-donut-legend span{
  display:grid;
  grid-template-columns:12px 1fr;
  gap:7px;
  align-items:center;
  padding:8px 9px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(15,23,42,.07);
  min-width:0;
}
.product-donut-legend i{
  width:12px;
  height:12px;
  border-radius:999px;
  box-shadow:0 0 0 3px rgba(15,23,42,.04);
}
.product-donut-legend b{
  color:#111827;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-donut-legend em{
  grid-column:2;
  color:#64748b;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  white-space:normal;
  line-height:1.35;
}
.product-donut-empty{
  height:126px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:#f8fafc;
  color:#94a3b8;
  font-weight:900;
}
@media(max-width:1200px){
  .product-data-charts{grid-template-columns:1fr;}
}
@media(max-width:680px){
  .product-donut-body{grid-template-columns:1fr;}
  .product-donut{margin:auto;}
  .product-donut-legend{grid-template-columns:1fr;}
  .product-donut-head{display:block;}
  .product-donut-head small{text-align:left;max-width:none;margin-top:4px;}
}

/* 2026-06-17: show both one-product and total counts inside material donut center only. */
.product-donut.has-unit-total span{
  inset:25px;
  gap:1px;
}
.product-donut.has-unit-total span b{
  font-size:17px;
  line-height:.95;
}
.product-donut.has-unit-total span b.total-value{
  margin-top:3px;
}
.product-donut.has-unit-total span small{
  margin-top:0;
  font-size:8.5px;
  line-height:1.05;
  letter-spacing:.02em;
}

/* 1D kesim grafiği: ilk satır gerçek stok oranı ile çizilir; ikinci satır kesim açıklaması olarak kalır. */
.oned-real-track{gap:0!important;border-radius:8px!important;padding:3px!important;background:#edf2f7!important;min-height:30px!important}
.oned-real-piece{min-width:0!important;border-radius:4px!important;margin:0!important;border-left:1px solid rgba(15,23,42,.18)!important;border-right:1px solid rgba(255,255,255,.55)!important;box-sizing:border-box!important;overflow:hidden!important}
.oned-real-piece i{display:block!important;width:100%!important;text-align:center!important;padding:0 2px!important;font-size:9px!important;line-height:24px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
.oned-kerf-gap{height:100%;background:rgba(15,23,42,.22);min-width:1px;box-sizing:border-box}
.oned-real-waste{min-width:0!important;margin:0!important;border-radius:4px!important;box-sizing:border-box!important;overflow:hidden!important;padding:0!important}
.oned-real-waste i{display:block!important;width:100%!important;text-align:center!important;font-size:9px!important;line-height:24px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;padding:0 2px!important}

/* 2026-06: 1D Graphic display simplified: remove visual first row, keep cut chips clear. */
.graphic1d-chips-only{gap:0!important;min-width:260px!important}
.graphic1d-chips-only .piece-chip-line{gap:8px!important;padding:0!important}
.piece-chip-cut{gap:7px!important;padding:7px 10px!important;border-width:1px!important}
.piece-chip-cut .piece-chip-count{display:inline-flex!important;align-items:center!important;padding:3px 7px!important;border-radius:999px!important;background:#0f172a!important;color:#fff!important;border:1px solid #0f172a!important;font-weight:950!important;letter-spacing:.02em!important}
.piece-chip-cut .piece-chip-length{display:inline-flex!important;align-items:center!important;padding:3px 8px!important;border-radius:999px!important;background:#fff!important;color:var(--cut-length-color,currentColor)!important;border:1px solid currentColor!important;font-weight:950!important}

/* 2026-06-17: 1D kesim chiplerinde adet x sabit koyu, kesilecek boy ayrı renkte. */
.graphic1d-chips-only .piece-chip-cut{
  display:inline-flex!important;
  gap:7px!important;
  align-items:center!important;
  padding:5px 7px!important;
  border-radius:12px!important;
}
.graphic1d-chips-only .piece-chip-cut .piece-chip-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:#111827!important;
  border:1px solid #111827!important;
  color:#fff!important;
  font-weight:950!important;
  min-width:34px!important;
}
.graphic1d-chips-only .piece-chip-cut .piece-chip-length{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:1px solid currentColor!important;
  color:currentColor!important;
  font-weight:950!important;
}

/* 2026-06-17: İşçilik dağılımı donut yerine okunabilir operasyon özeti. */
.product-labor-overview-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 12px 32px rgba(15,23,42,.06);
  padding:16px;
  min-width:0;
}
.product-labor-overview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.product-labor-overview-head strong{
  display:block;
  color:#0f172a;
  font-size:15px;
  font-weight:950;
}
.product-labor-overview-head small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
}
.labor-overview-list{
  display:grid;
  gap:10px;
}
.labor-overview-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) minmax(210px,auto);
  gap:12px;
  align-items:center;
  padding:13px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:18px;
  background:#fff;
}
.labor-overview-icon{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  font-size:22px;
  font-weight:950;
  background:#ecfdf5;
  color:#0f766e;
  box-shadow:inset 0 0 0 1px rgba(15,118,110,.14);
}
.labor-overview-cut .labor-overview-icon{background:#eff6ff;color:#2563eb;box-shadow:inset 0 0 0 1px rgba(37,99,235,.16)}
.labor-overview-manual .labor-overview-icon{background:#f5f3ff;color:#7c3aed;box-shadow:inset 0 0 0 1px rgba(124,58,237,.16)}
.labor-overview-text b{
  display:block;
  color:#0f172a;
  font-size:14px;
  font-weight:950;
}
.labor-overview-text small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
}
.labor-overview-values{
  display:grid;
  grid-template-columns:repeat(2,minmax(95px,1fr));
  gap:8px;
  min-width:230px;
}
.labor-overview-values.single{
  grid-template-columns:minmax(130px,1fr);
  min-width:150px;
}
.labor-overview-values span{
  display:block;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:9px 10px;
  text-align:center;
}
.labor-overview-values small{
  display:block;
  color:#64748b;
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  font-weight:950;
  letter-spacing:.04em;
}
.labor-overview-values strong{
  display:block;
  margin-top:5px;
  color:#0f172a;
  font-size:20px;
  line-height:1;
  font-weight:950;
}
.labor-overview-values em{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:10px;
  font-style:normal;
  font-weight:900;
}
@media(max-width:760px){
  .labor-overview-row{grid-template-columns:38px 1fr;align-items:start}
  .labor-overview-values{grid-column:1/-1;min-width:0;width:100%}
  .labor-overview-values.single{min-width:0}
}

/* 2026-06-17: Daha profesyonel işçilik özeti kartları. */
.pro-labor-overview-card{
  border:1px solid rgba(15,23,42,.10)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  box-shadow:0 18px 46px rgba(15,23,42,.07)!important;
  padding:18px!important;
}
.pro-labor-overview-card .product-labor-overview-head{
  margin-bottom:14px!important;
  padding-bottom:12px!important;
  border-bottom:1px solid rgba(15,23,42,.07)!important;
}
.pro-labor-overview-card .product-labor-overview-head strong{
  font-size:17px!important;
  letter-spacing:-.02em!important;
}
.pro-labor-overview-card .product-labor-overview-head small{
  max-width:760px!important;
  font-size:12px!important;
  line-height:1.55!important;
  color:#475569!important;
}
.pro-labor-overview-card .labor-overview-list{
  gap:12px!important;
}
.pro-labor-overview-card .labor-overview-row{
  grid-template-columns:58px minmax(280px,1fr) minmax(245px,auto)!important;
  gap:16px!important;
  padding:16px 18px!important;
  border:1px solid rgba(15,23,42,.09)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;
}
.pro-labor-overview-card .labor-overview-icon{
  width:54px!important;
  height:54px!important;
  border-radius:18px!important;
  background:#ecfdf5!important;
  color:#0f766e!important;
  box-shadow:inset 0 0 0 1px rgba(15,118,110,.18),0 10px 24px rgba(15,118,110,.10)!important;
}
.pro-labor-overview-card .labor-overview-cut .labor-overview-icon{
  background:#eff6ff!important;
  color:#1d4ed8!important;
  box-shadow:inset 0 0 0 1px rgba(29,78,216,.18),0 10px 24px rgba(29,78,216,.10)!important;
}
.pro-labor-overview-card .labor-overview-manual .labor-overview-icon{
  background:#f5f3ff!important;
  color:#7c3aed!important;
}
.pro-labor-overview-card .labor-overview-icon svg{
  width:31px!important;
  height:31px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:3.1!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.pro-labor-overview-card .labor-overview-text b{
  font-size:16px!important;
  color:#0f172a!important;
  margin-bottom:5px!important;
}
.pro-labor-overview-card .labor-overview-text small{
  font-size:12px!important;
  line-height:1.55!important;
  color:#52657a!important;
  font-weight:850!important;
}
.pro-labor-overview-card .labor-overview-text small strong{
  color:#0f172a!important;
  font-weight:950!important;
}
.pro-labor-overview-card .labor-overview-values{
  grid-template-columns:repeat(2,minmax(115px,1fr))!important;
  min-width:270px!important;
  gap:10px!important;
}
.pro-labor-overview-card .labor-overview-values.single{
  grid-template-columns:minmax(180px,1fr)!important;
  min-width:210px!important;
}
.pro-labor-overview-card .labor-overview-values span{
  border-radius:18px!important;
  background:linear-gradient(180deg,#f8fafc,#eef4f8)!important;
  border:1px solid #dbe5ee!important;
  padding:12px 14px!important;
  text-align:center!important;
}
.pro-labor-overview-card .labor-overview-values small{
  color:#64748b!important;
  font-size:10px!important;
  letter-spacing:.08em!important;
}
.pro-labor-overview-card .labor-overview-values strong{
  font-size:25px!important;
  margin-top:6px!important;
}
.pro-labor-overview-card .labor-overview-values em{
  font-size:11px!important;
  color:#475569!important;
}
@media(max-width:900px){
  .pro-labor-overview-card .labor-overview-row{grid-template-columns:54px 1fr!important;align-items:start!important;}
  .pro-labor-overview-card .labor-overview-values{grid-column:1/-1!important;width:100%!important;min-width:0!important;}
  .pro-labor-overview-card .labor-overview-values.single{min-width:0!important;}
}

/* 2026-06-17: üst istatistikler kaldırıldı, BOM aktarım alanı kompaktlaştırıldı. */
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact{
  margin-top:0!important;
  padding:7px 9px!important;
  border-radius:14px!important;
  gap:8px!important;
  min-height:0!important;
  grid-template-columns:auto minmax(300px,1fr) auto!important;
}
.product-bom-compact .product-bom-title{min-width:96px!important;line-height:1!important;}
.product-bom-compact .product-bom-title small{font-size:9px!important;margin-bottom:2px!important;}
.product-bom-compact .product-bom-title strong{font-size:13px!important;}
.product-bom-compact .file-picker-pro{min-height:34px!important;max-width:420px!important;}
.product-bom-compact .file-picker-pro span,
.product-bom-compact .file-picker-pro b{padding:7px 10px!important;font-size:11px!important;}
.product-bom-compact .btn{min-height:34px!important;padding:7px 12px!important;font-size:11px!important;border-radius:11px!important;}
.pro-labor-overview-card .product-labor-overview-head{margin-bottom:10px!important;padding-bottom:8px!important;}
.pro-labor-overview-card .product-labor-overview-head small{display:none!important;}
.pro-labor-overview-card .labor-overview-cut .labor-overview-icon{background:#fff7ed!important;color:#c2410c!important;box-shadow:inset 0 0 0 1px rgba(194,65,12,.20),0 10px 24px rgba(194,65,12,.10)!important;}

/* Server-side optimization cache + processing overlay */
.system-processing-overlay{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;background:rgba(7,29,53,.52);backdrop-filter:blur(5px)}
.system-processing-overlay.is-visible{display:flex}
.system-processing-card{width:min(420px,calc(100vw - 36px));border-radius:24px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.28);padding:26px;text-align:center;color:#0f172a;border:1px solid rgba(15,23,42,.08)}
.system-processing-spinner{width:54px;height:54px;margin:0 auto 16px;border-radius:999px;border:5px solid #e2e8f0;border-top-color:#0f766e;animation:systemSpin .8s linear infinite}
.system-processing-card strong{display:block;font-size:19px;margin-bottom:7px;color:#0b2239}
.system-processing-card span{display:block;font-size:13px;font-weight:800;color:#64748b;line-height:1.45}
@keyframes systemSpin{to{transform:rotate(360deg)}}
.cut-cache-chip{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:5px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:950;vertical-align:middle}
.cut-cache-chip.generated{background:#eff6ff;color:#1d4ed8}

/* 2026-06-17: Montaj işçiliği + daha okunur işçilik dağılımı. */
.world-bom-table.mode-one .bom-clean-head,
.world-bom-table.mode-one .bom-clean-row,
.mode-one .bom-clean-head,
.mode-one .world-bom-row,
.bom-row-mode-one{
  grid-template-columns:minmax(250px,1.45fr) 68px 82px 104px 126px 96px 70px 82px 74px!important;
}
.world-bom-table.mode-sheet .bom-clean-head,
.world-bom-table.mode-sheet .bom-clean-row,
.mode-sheet .bom-clean-head,
.mode-sheet .world-bom-row,
.bom-row-mode-sheet{
  grid-template-columns:minmax(250px,1.45fr) 68px 74px 74px 82px 126px 96px 70px 82px 74px!important;
}
.world-bom-table.mode-simple .bom-clean-head,
.world-bom-table.mode-simple .bom-clean-row,
.mode-simple .bom-clean-head,
.mode-simple .world-bom-row,
.bom-row-mode-simple{
  grid-template-columns:minmax(250px,1.55fr) 68px 126px 96px 70px 82px 74px!important;
}
.mini-select{min-height:38px!important;padding-left:8px!important;padding-right:8px!important}
.labor-donut-card .labor-cut-separate-box{
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(194,65,12,.18);
  background:linear-gradient(135deg,#fff7ed,#fffbeb);
  padding:12px 14px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
}
.labor-donut-card .labor-cut-separate-box strong{color:#9a3412;font-size:13px;font-weight:950}
.labor-donut-card .labor-cut-separate-box span{color:#0f172a;font-size:18px;font-weight:950;white-space:nowrap}
.labor-donut-card .labor-cut-separate-box small{grid-column:1/-1;color:#64748b;font-weight:850;line-height:1.35}
.pro-labor-overview-card{grid-column:1/-1!important}
.pro-labor-overview-card .labor-overview-montaj .labor-overview-icon{background:#f5f3ff!important;color:#7c3aed!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.18),0 10px 24px rgba(124,58,237,.10)!important}
.pro-labor-overview-card .labor-overview-branda .labor-overview-icon{background:#fdf2f8!important;color:#db2777!important;box-shadow:inset 0 0 0 1px rgba(219,39,119,.18),0 10px 24px rgba(219,39,119,.10)!important}
.labor-montaj-block>summary{background:linear-gradient(135deg,#faf5ff,#f5f3ff)!important}
.labor-branda-block>summary{background:linear-gradient(135deg,#fdf2f8,#fff1f2)!important}
.labor-row-montaj td:first-child{border-left:4px solid #7c3aed!important}
.labor-row-branda td:first-child{border-left:4px solid #db2777!important}
@media(max-width:900px){
  .world-bom-table.mode-one .bom-clean-row,.world-bom-table.mode-sheet .bom-clean-row,.world-bom-table.mode-simple .bom-clean-row{grid-template-columns:1fr 1fr!important}
  .labor-donut-card .labor-cut-separate-box{grid-template-columns:1fr}
}

/* 2026-06-17: align product data donut cards and show labor donut center like material donut. */
.product-data-charts{align-items:stretch!important;}
.product-donut-card{display:flex!important;flex-direction:column!important;}
.product-donut-head{min-height:38px!important;}
.product-donut-body{flex:1!important;align-items:start!important;}
.product-donut.has-unit-total.labor-work-donut span{
  inset:25px!important;
  gap:1px!important;
}
.product-donut.has-unit-total.labor-work-donut span b{
  font-size:17px!important;
  line-height:.95!important;
}
.product-donut.has-unit-total.labor-work-donut span b.total-value{
  margin-top:3px!important;
}
.product-donut.has-unit-total.labor-work-donut span small{
  margin-top:0!important;
  font-size:8.5px!important;
  line-height:1.05!important;
  letter-spacing:.02em!important;
}


/* 2026-06-22: sheet fit warnings, no empty 0-piece layouts */
.sheet-fit-warning-box{margin:16px 18px;border:1px solid #fecaca;background:#fff7f7;border-radius:18px;padding:14px 16px;color:#7f1d1d;box-shadow:0 8px 22px rgba(127,29,29,.06)}
.sheet-fit-warning-box strong{display:block;font-size:14px;font-weight:950;margin-bottom:4px}.sheet-fit-warning-box span{display:block;color:#991b1b;font-weight:800;font-size:12px;margin-bottom:10px}.sheet-fit-warning-box table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}.sheet-fit-warning-box th,.sheet-fit-warning-box td{padding:9px 10px;border-bottom:1px solid #fee2e2;text-align:left;font-size:12px;font-weight:850}.sheet-fit-warning-box th{background:#fee2e2;color:#7f1d1d;text-transform:uppercase;letter-spacing:.04em}.sheet-fit-warning-box tr:last-child td{border-bottom:0}

/* 2026-06-24: Fiyat tablosu */
.price-section-card{padding:18px!important;border-radius:24px!important;background:#fff!important}
.price-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#fff7ed,#f8fafc);border:1px solid rgba(15,23,42,.08)}
.price-section-head small{font-weight:950;color:#9a3412;letter-spacing:.08em}.price-section-head h3{margin:2px 0 4px;color:#0f172a}.price-section-head span{color:#64748b;font-weight:850}.price-section-head>b{background:#7c2d12;color:#fff;border-radius:999px;padding:9px 13px;white-space:nowrap}
.price-table-wrap{overflow:auto}.price-program-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0 7px}.price-program-table th{background:#7c2d12;color:#fff;text-align:left;padding:12px 14px;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.price-program-table th small{display:block;text-transform:none;letter-spacing:0;font-size:10px;opacity:.82}.price-program-table th:first-child{border-radius:14px 0 0 14px}.price-program-table th:last-child{border-radius:0 14px 14px 0}.price-program-table td{background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:10px 14px;font-weight:850;color:#0f172a}.price-program-table td:first-child{border-left:4px solid #f97316;border-radius:14px 0 0 14px}.price-program-table td:last-child{border-right:1px solid #e2e8f0;border-radius:0 14px 14px 0}.price-type-chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px;border:1px solid #cbd5e1;background:#fff}.price-type-1d{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.price-type-sac{color:#0f766e;background:#ecfdf5;border-color:#a7f3d0}.price-eur-input{max-width:140px}.price-table-actions{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:14px}.price-table-actions span{font-size:12px;color:#64748b;font-weight:850}

/* 2026-06-24: Fiyat tablosu */
.price-section-card{padding:18px!important;border-radius:24px!important;background:#fff!important}
.price-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#fff7ed,#f8fafc);border:1px solid rgba(15,23,42,.08)}
.price-section-head small{font-weight:950;color:#9a3412;letter-spacing:.08em}.price-section-head h3{margin:2px 0 4px;color:#0f172a}.price-section-head span{color:#64748b;font-weight:850}.price-section-head>b{background:#7c2d12;color:#fff;border-radius:999px;padding:9px 13px;white-space:nowrap}
.price-table-wrap{overflow:auto}.price-program-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0 7px}.price-program-table th{background:#7c2d12;color:#fff;text-align:left;padding:12px 14px;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.price-program-table th small{display:block;text-transform:none;letter-spacing:0;font-size:10px;opacity:.82}.price-program-table th:first-child{border-radius:14px 0 0 14px}.price-program-table th:last-child{border-radius:0 14px 14px 0}.price-program-table td{background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:10px 14px;font-weight:850;color:#0f172a}.price-program-table td:first-child{border-left:4px solid #f97316;border-radius:14px 0 0 14px}.price-program-table td:last-child{border-right:1px solid #e2e8f0;border-radius:0 14px 14px 0}.price-type-chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px;border:1px solid #cbd5e1;background:#fff}.price-type-1d{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.price-type-sac{color:#0f766e;background:#ecfdf5;border-color:#a7f3d0}.price-eur-input{max-width:140px}.price-table-actions{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:14px}.price-table-actions span{font-size:12px;color:#64748b;font-weight:850}

/* Professional editable price table */
.price-section-card{padding:22px!important;border-radius:28px!important;background:linear-gradient(180deg,#ffffff,#f8fafc)!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 18px 48px rgba(15,23,42,.08)!important}
.price-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-bottom:18px!important;padding:18px 20px!important;border-radius:22px!important;background:linear-gradient(135deg,#7c2d12,#9a3412)!important;color:#fff!important;border:0!important;box-shadow:0 12px 28px rgba(124,45,18,.18)!important}
.price-section-head small,.price-section-head h3,.price-section-head span{color:#fff!important}.price-section-head h3{font-size:22px!important;margin:2px 0 4px!important}.price-section-head span{opacity:.88!important}.price-section-head>b{background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important}
.price-table-wrap{overflow:auto!important;border-radius:22px!important;border:1px solid #dbe5ef!important;background:#fff!important}.pro-price-table{width:100%!important;min-width:1080px!important;border-collapse:collapse!important;border-spacing:0!important}.pro-price-table th{background:#102f46!important;color:#fff!important;text-align:left!important;padding:14px 16px!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.055em!important;border-bottom:0!important}.pro-price-table th small{display:block!important;color:rgba(255,255,255,.72)!important;text-transform:none!important;letter-spacing:0!important;font-size:10px!important;margin-top:2px!important}.pro-price-table td{background:#fff!important;border-bottom:1px solid #e2e8f0!important;padding:12px 16px!important;vertical-align:middle!important}.pro-price-table tr:nth-child(even) td{background:#f8fafc!important}.pro-price-table tr:hover td{background:#fff7ed!important}.price-name-cell strong{display:block!important;color:#0f172a!important;font-size:14px!important}.price-name-cell small{display:block!important;margin-top:3px!important;color:#64748b!important;font-size:11px!important;font-weight:850!important}.price-type-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:54px!important;border-radius:999px!important;padding:7px 11px!important;font-weight:950!important;font-size:12px!important}.price-type-1d{color:#1d4ed8!important;background:#eff6ff!important;border-color:#bfdbfe!important}.price-type-sac{color:#0f766e!important;background:#ecfdf5!important;border-color:#a7f3d0!important}.price-qty-input,.price-eur-input{height:42px!important;border-radius:13px!important;font-weight:900!important;background:#fff!important}.price-qty-input{max-width:130px!important}.price-eur-input{max-width:150px!important}.price-line-total strong{display:block!important;color:#0f172a!important;font-size:16px!important}.price-line-total small{display:block!important;color:#64748b!important;font-size:11px!important;font-weight:900!important}.price-save-note{display:flex!important;align-items:center!important;gap:9px!important;margin-top:12px!important;color:#64748b!important;font-size:12px!important;font-weight:850!important}.autosave-dot{width:9px!important;height:9px!important;border-radius:999px!important;background:#14b8a6!important;box-shadow:0 0 0 4px rgba(20,184,166,.12)!important}.price-table-actions{display:none!important}

/* Fiyat tablosu profesyonel görünüm - net satır sınırları ve hesaplanan fiyat kolonları */
.price-section-card .price-section-head{
  background:linear-gradient(135deg,#0f766e,#0f3a56)!important;
  color:#fff!important;
  border-radius:22px!important;
  padding:18px 22px!important;
  margin-bottom:16px!important;
}
.price-section-card .price-section-head small,
.price-section-card .price-section-head span{color:rgba(255,255,255,.82)!important}
.price-section-card .price-section-head h3{color:#fff!important;margin:3px 0!important}
.price-section-card .price-section-head b{background:#fff!important;color:#0f766e!important;border-radius:999px!important;padding:8px 13px!important}
.price-table-wrap{overflow:auto!important;border-radius:24px!important;border:1px solid #cbd5e1!important;background:#f8fafc!important;padding:10px!important;box-shadow:0 16px 42px rgba(15,23,42,.08)!important}
.pro-price-table{width:100%!important;min-width:1180px!important;border-collapse:separate!important;border-spacing:0 8px!important;background:transparent!important}
.pro-price-table th{background:#0f172a!important;color:#fff!important;text-align:left!important;padding:13px 16px!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.055em!important;border:0!important}
.pro-price-table th:first-child{border-radius:16px 0 0 16px!important}.pro-price-table th:last-child{border-radius:0 16px 16px 0!important}
.pro-price-table th small{display:block!important;color:rgba(255,255,255,.72)!important;text-transform:none!important;letter-spacing:0!important;font-size:10px!important;margin-top:2px!important}
.pro-price-table td{background:#fff!important;border-top:1px solid #dbe5ef!important;border-bottom:1px solid #dbe5ef!important;padding:11px 14px!important;vertical-align:middle!important;color:#0f172a!important;font-weight:850!important}
.pro-price-table tr.price-edit-row td:first-child{border-left:5px solid #14b8a6!important;border-radius:16px 0 0 16px!important}
.pro-price-table tr.price-edit-row td:last-child{border-right:1px solid #dbe5ef!important;border-radius:0 16px 16px 0!important}
.pro-price-table tr.price-row-sac td:first-child{border-left-color:#f97316!important}
.pro-price-table tr.price-edit-row:hover td{background:#f0fdfa!important;box-shadow:inset 0 0 0 9999px rgba(20,184,166,.025)!important}
.pro-price-table tr.price-row-sac:hover td{background:#fff7ed!important;box-shadow:inset 0 0 0 9999px rgba(249,115,22,.025)!important}
.price-name-cell strong{display:block!important;color:#071d35!important;font-size:14px!important;letter-spacing:-.01em!important}
.price-name-cell small{display:none!important}
.price-qty-input,.price-eur-input{height:40px!important;border-radius:13px!important;font-weight:950!important;background:#fff!important;border:1px solid #cbd5e1!important;box-shadow:none!important}
.price-qty-input:focus,.price-eur-input:focus{border-color:#14b8a6!important;box-shadow:0 0 0 4px rgba(20,184,166,.13)!important;outline:none!important}
.price-qty-input{max-width:120px!important}.price-eur-input{max-width:145px!important}
.price-calc-cell{background:#f8fafc!important;min-width:130px!important}
.price-calc-cell strong{display:block!important;color:#0f172a!important;font-size:15px!important;line-height:1.1!important}
.price-calc-cell small{display:block!important;color:#64748b!important;font-size:10px!important;font-weight:900!important;margin-top:4px!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.price-grand-total strong{color:#0f766e!important;font-size:16px!important}
.price-save-note{display:flex!important;align-items:center!important;gap:9px!important;margin-top:12px!important;color:#64748b!important;font-size:12px!important;font-weight:850!important}.autosave-dot{width:9px!important;height:9px!important;border-radius:999px!important;background:#14b8a6!important;box-shadow:0 0 0 4px rgba(20,184,166,.12)!important}
.price-type-chip{display:none!important}

/* Fiyat tablosu profesyonel satir ayrimi - final */
.price-table-wrap{
  overflow:auto!important;
  border:1px solid #cbd5e1!important;
  border-radius:24px!important;
  background:#f8fafc!important;
  padding:10px!important;
  box-shadow:0 18px 45px rgba(15,23,42,.07)!important;
}
.pro-price-table{
  width:100%!important;
  min-width:1040px!important;
  border-collapse:separate!important;
  border-spacing:0 10px!important;
  background:transparent!important;
}
.pro-price-table th{
  background:linear-gradient(135deg,#123047,#0f766e)!important;
  color:#fff!important;
  text-align:left!important;
  padding:14px 16px!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  border:0!important;
}
.pro-price-table th:first-child{border-radius:16px 0 0 16px!important;}
.pro-price-table th:last-child{border-radius:0 16px 16px 0!important;}
.pro-price-table th small{display:block!important;color:rgba(255,255,255,.78)!important;text-transform:none!important;letter-spacing:0!important;font-size:10px!important;margin-top:3px!important;}
.pro-price-table tbody tr.price-edit-row td{
  border-top:1px solid #cbd5e1!important;
  border-bottom:1px solid #cbd5e1!important;
  background:#ffffff!important;
  padding:12px 15px!important;
  vertical-align:middle!important;
  color:#0f172a!important;
  font-weight:900!important;
}
.pro-price-table tbody tr.price-edit-row:nth-child(even) td{background:#eef7f6!important;}
.pro-price-table tbody tr.price-edit-row:nth-child(odd) td{background:#fffaf3!important;}
.pro-price-table tbody tr.price-edit-row td:first-child{
  border-left:6px solid #0f766e!important;
  border-radius:18px 0 0 18px!important;
}
.pro-price-table tbody tr.price-edit-row td:last-child{
  border-right:1px solid #cbd5e1!important;
  border-radius:0 18px 18px 0!important;
}
.pro-price-table tbody tr.price-row-sac td:first-child{border-left-color:#f97316!important;}
.pro-price-table tbody tr.price-edit-row:hover td{
  background:#ecfeff!important;
  box-shadow:0 10px 26px rgba(15,23,42,.06)!important;
}
.price-name-cell strong{display:block!important;font-size:14px!important;color:#0b2239!important;white-space:nowrap!important;}
.price-qty-input,.price-eur-input{
  height:42px!important;
  border-radius:14px!important;
  border:1px solid #b8c6d6!important;
  background:#fff!important;
  font-weight:950!important;
  color:#0f172a!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important;
}
.price-qty-input:focus,.price-eur-input:focus{
  outline:none!important;
  border-color:#0f766e!important;
  box-shadow:0 0 0 4px rgba(15,118,110,.14)!important;
}
.price-qty-input{max-width:140px!important;}
.price-eur-input{max-width:165px!important;}
.price-calc-cell{
  min-width:135px!important;
  text-align:left!important;
  background:inherit!important;
}
.price-calc-cell strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:92px!important;
  min-height:36px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:#eef2ff!important;
  color:#1e3a8a!important;
  border:1px solid #c7d2fe!important;
  font-size:14px!important;
  line-height:1!important;
}
.price-grand-total strong{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#a7f3d0!important;
}
.price-calc-cell small{display:none!important;}
.price-save-note{margin-top:10px!important;color:#64748b!important;font-weight:850!important;font-size:12px!important;}

/* Final fiyat tablosu temiz profesyonel tasarim */
.price-section-card{
  padding:24px!important;
  border-radius:28px!important;
  background:#ffffff!important;
  border:1px solid #d9e4ef!important;
  box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
}
.price-section-card .price-section-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 18px!important;
  padding:16px 18px!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#0b3a53,#0f766e)!important;
  color:#fff!important;
}
.price-section-card .price-section-head h3{margin:2px 0!important;color:#fff!important;font-size:22px!important;letter-spacing:-.02em!important;}
.price-section-card .price-section-head small{color:rgba(255,255,255,.78)!important;font-weight:950!important;letter-spacing:.08em!important;}
.price-section-card .price-section-head span{color:rgba(255,255,255,.86)!important;font-size:13px!important;font-weight:850!important;}
.price-section-card .price-section-head>b{background:#fff!important;color:#0f766e!important;border-radius:999px!important;padding:8px 14px!important;border:0!important;}
.price-table-wrap{
  overflow:auto!important;
  border:1px solid #cbd5e1!important;
  border-radius:22px!important;
  background:#eef4f8!important;
  padding:12px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important;
}
.pro-price-table{
  width:100%!important;
  min-width:1040px!important;
  border-collapse:separate!important;
  border-spacing:0 9px!important;
  background:transparent!important;
}
.pro-price-table thead th{
  background:#132f44!important;
  color:#ffffff!important;
  padding:14px 16px!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  border-top:1px solid #132f44!important;
  border-bottom:1px solid #132f44!important;
}
.pro-price-table thead th:first-child{border-radius:16px 0 0 16px!important;}
.pro-price-table thead th:last-child{border-radius:0 16px 16px 0!important;}
.pro-price-table thead th small{display:none!important;}
.pro-price-table tbody tr.price-edit-row td{
  padding:12px 15px!important;
  vertical-align:middle!important;
  font-weight:900!important;
  color:#0f172a!important;
  border-top:1px solid #cbd5e1!important;
  border-bottom:1px solid #cbd5e1!important;
  background:#ffffff!important;
}
.pro-price-table tbody tr.price-edit-row:nth-child(odd) td{background:#fff8ee!important;}
.pro-price-table tbody tr.price-edit-row:nth-child(even) td{background:#eef8f6!important;}
.pro-price-table tbody tr.price-edit-row td:first-child{
  border-left:6px solid #0f766e!important;
  border-radius:18px 0 0 18px!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-sac td:first-child{border-left-color:#f97316!important;}
.pro-price-table tbody tr.price-edit-row td:last-child{
  border-right:1px solid #cbd5e1!important;
  border-radius:0 18px 18px 0!important;
}
.pro-price-table tbody tr.price-edit-row:hover td{
  background:#e0f2fe!important;
  box-shadow:0 10px 24px rgba(15,23,42,.07)!important;
}
.price-name-cell strong{
  display:block!important;
  color:#061a2f!important;
  font-size:14px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.price-qty-input,.price-eur-input{
  width:100%!important;
  max-width:160px!important;
  height:42px!important;
  border-radius:13px!important;
  border:1px solid #b6c6d8!important;
  background:#fff!important;
  color:#0f172a!important;
  font-weight:950!important;
  padding:8px 12px!important;
  box-shadow:0 1px 0 rgba(255,255,255,.9), inset 0 1px 2px rgba(15,23,42,.04)!important;
}
.price-qty-input:focus,.price-eur-input:focus{
  outline:none!important;
  border-color:#0f766e!important;
  box-shadow:0 0 0 4px rgba(15,118,110,.14)!important;
}
.price-calc-cell{
  min-width:130px!important;
  background:inherit!important;
}
.price-calc-cell strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:84px!important;
  min-height:36px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#64748b!important;
  border:1px solid #cbd5e1!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:950!important;
}
.price-calc-cell small{display:none!important;}
.price-save-note{margin-top:10px!important;font-size:12px!important;color:#64748b!important;font-weight:850!important;}


/* Final compact price table - no currency symbol */
.price-section-card{
  border-radius:22px!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid #d8e3ee!important;
  box-shadow:0 18px 45px rgba(15,23,42,.08)!important;
}
.price-section-card .price-section-head{
  padding:14px 18px!important;
  background:linear-gradient(135deg,#0f3a56,#0f766e)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.price-section-card .price-section-head h3{font-size:20px!important;margin:1px 0!important;color:#fff!important;}
.price-section-card .price-section-head span{font-size:12px!important;color:rgba(255,255,255,.86)!important;}
.price-section-card .price-section-head small{font-size:10px!important;color:rgba(255,255,255,.72)!important;}
.price-table-wrap{
  padding:14px 16px!important;
  overflow:auto!important;
  background:#f5f8fb!important;
}
.pro-price-table{
  width:100%!important;
  min-width:980px!important;
  border-collapse:separate!important;
  border-spacing:0 5px!important;
  table-layout:fixed!important;
}
.pro-price-table thead th{
  background:#132f45!important;
  color:#fff!important;
  padding:10px 12px!important;
  font-size:12px!important;
  font-weight:950!important;
  text-align:left!important;
  border-top:1px solid #0b2133!important;
  border-bottom:1px solid #0b2133!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
.pro-price-table thead th:first-child{border-radius:12px 0 0 12px!important;}
.pro-price-table thead th:last-child{border-radius:0 12px 12px 0!important;}
.pro-price-table thead th small{display:none!important;}
.pro-price-table tbody tr.price-edit-row td{
  padding:7px 10px!important;
  height:44px!important;
  border-top:1px solid #d3dfeb!important;
  border-bottom:1px solid #d3dfeb!important;
  color:#0b2239!important;
  font-size:13px!important;
  font-weight:850!important;
  vertical-align:middle!important;
  background:#fff!important;
}
.pro-price-table tbody tr.price-edit-row:nth-child(odd) td{background:#fff7ec!important;}
.pro-price-table tbody tr.price-edit-row:nth-child(even) td{background:#eef8f6!important;}
.pro-price-table tbody tr.price-edit-row td:first-child{
  border-left:5px solid #14b8a6!important;
  border-radius:12px 0 0 12px!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-sac td:first-child{border-left-color:#f97316!important;}
.pro-price-table tbody tr.price-edit-row td:last-child{
  border-right:1px solid #d3dfeb!important;
  border-radius:0 12px 12px 0!important;
}
.pro-price-table tbody tr.price-edit-row:hover td{
  background:#e8f3ff!important;
  box-shadow:inset 0 0 0 9999px rgba(37,99,235,.035)!important;
}
.price-name-cell strong{
  display:block!important;
  font-size:13px!important;
  line-height:1.15!important;
  color:#071d35!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.price-qty-input,.price-eur-input{
  height:34px!important;
  min-height:34px!important;
  border-radius:10px!important;
  padding:6px 9px!important;
  font-size:13px!important;
  font-weight:900!important;
  border:1px solid #b9c8d8!important;
  background:#fff!important;
  color:#071d35!important;
  box-shadow:none!important;
}
.price-qty-input{max-width:110px!important;}
.price-eur-input{max-width:130px!important;}
.price-qty-input:focus,.price-eur-input:focus{
  outline:none!important;
  border-color:#0f766e!important;
  box-shadow:0 0 0 3px rgba(15,118,110,.13)!important;
}
.price-calc-cell{
  background:#f8fafc!important;
  text-align:left!important;
  min-width:105px!important;
}
.price-calc-cell strong{
  font-size:14px!important;
  line-height:1!important;
  color:#0f172a!important;
}
.price-calc-cell small{display:none!important;}
.price-save-note{
  padding:0 16px 14px!important;
  margin-top:0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
}

/* Fiyat table final compact professional corrections */
.product-main-tabs{display:flex!important;align-items:stretch!important;gap:10px!important;flex-wrap:nowrap!important}
.product-main-tab{min-height:54px!important;padding:10px 14px!important;display:flex!important;align-items:center!important;gap:10px!important;white-space:nowrap!important}
.product-main-tab strong{white-space:nowrap!important}.product-main-tab small{display:none!important}
.price-section-card{padding:14px!important;border-radius:22px!important;background:#f8fafc!important;border:1px solid #dbe5ef!important;box-shadow:0 16px 36px rgba(15,23,42,.07)!important}
.price-section-title-only{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 10px!important;padding:0 2px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#0f172a!important}
.price-section-title-only h3{display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;color:#0f172a!important;font-size:18px!important;line-height:1!important}
.price-section-title-only h3 b{font-size:12px!important;background:#0f766e!important;color:#fff!important;border-radius:999px!important;padding:6px 10px!important}
.price-danger-head{display:inline-flex!important;align-items:center!important;border-radius:999px!important;background:#fee2e2!important;color:#991b1b!important;border:1px solid #fca5a5!important;padding:7px 11px!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}
.price-table-wrap{border-radius:16px!important;border:1px solid #b9c7d6!important;background:#fff!important;overflow:auto!important;box-shadow:0 8px 20px rgba(15,23,42,.04)!important}
.pro-price-table{width:100%!important;min-width:1080px!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important}
.pro-price-table thead th{background:#0f2f46!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.14)!important;border-bottom:2px solid #0b2132!important;padding:9px 11px!important;font-size:11px!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important}
.pro-price-table thead th:first-child,.pro-price-table thead th:last-child{border-radius:0!important}
.pro-price-table tbody tr.price-edit-row td{border-right:1px solid #d8e2ec!important;border-bottom:1px solid #cbd5e1!important;padding:7px 10px!important;vertical-align:middle!important;color:#0f172a!important;font-weight:850!important;background:#fff!important}
.pro-price-table tbody tr.price-edit-row:nth-child(odd) td{background:#fff8ec!important}
.pro-price-table tbody tr.price-edit-row:nth-child(even) td{background:#eff8f7!important}
.pro-price-table tbody tr.price-edit-row:hover td{background:#e6fffb!important}
.pro-price-table tbody tr.price-edit-row td:first-child{border-left:5px solid #14b8a6!important;border-radius:0!important}
.pro-price-table tbody tr.price-edit-row.price-row-sac td:first-child{border-left-color:#f97316!important}
.pro-price-table tbody tr.price-edit-row td:last-child{border-radius:0!important;border-right:0!important}
.pro-price-table .table-input{min-height:32px!important;height:32px!important;padding:5px 8px!important;border-radius:9px!important;font-size:13px!important;font-weight:900!important;background:#fff!important}
.price-qty-input{max-width:110px!important}.price-eur-input{max-width:120px!important}.price-calc-cell strong{font-size:13px!important}.price-name-cell strong{font-size:13px!important;color:#0b2239!important;white-space:nowrap!important}
.price-save-note{margin-top:8px!important;font-size:11px!important;color:#64748b!important}
.price-row-missing-bom td{background:#fff1f2!important;border-color:#fca5a5!important;color:#7f1d1d!important}
.price-row-missing-bom td:first-child{border-left-color:#dc2626!important}.price-row-missing-bom:hover td{background:#fee2e2!important}
.price-bom-danger{display:inline-flex!important;margin-top:4px!important;border-radius:999px!important;background:#dc2626!important;color:#fff!important;padding:3px 7px!important;font-size:10px!important;font-weight:950!important}

/* Restore compact tab statistics: four work tabs in one row, price last */
.product-main-tabs-shell.compact-work-tabs{
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  padding:7px!important;
}
.compact-work-tabs .product-main-tab{
  flex:1 1 0!important;
  min-width:0!important;
  min-height:58px!important;
  padding:9px 10px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-areas:"no title" "no meta"!important;
  align-content:center!important;
  column-gap:9px!important;
  row-gap:1px!important;
  white-space:normal!important;
}
.compact-work-tabs .product-main-tab .tab-kicker{grid-area:no!important;align-self:center!important;justify-self:center!important;min-width:30px!important;height:30px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:rgba(15,118,110,.10)!important;font-size:11px!important;letter-spacing:0!important;}
.compact-work-tabs .product-main-tab strong{grid-area:title!important;display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:15px!important;line-height:1.1!important;}
.compact-work-tabs .product-main-tab small{grid-area:meta!important;display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;font-weight:850!important;color:#64748b!important;}
.compact-work-tabs .product-main-tab.active small{color:rgba(255,255,255,.82)!important;}
.compact-work-tabs .product-main-tab em{position:absolute!important;right:8px!important;top:8px!important;bottom:auto!important;font-size:10px!important;padding:4px 7px!important;max-width:42%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
@media(max-width:1180px){.product-main-tabs-shell.compact-work-tabs{flex-wrap:wrap!important}.compact-work-tabs .product-main-tab{flex-basis:calc(50% - 6px)!important}}

/* Price table missing material: full-row critical warning */
.price-danger-head span{display:none!important}
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom td,
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom:nth-child(even) td{
  background:#fee2e2!important;
  color:#7f1d1d!important;
  border-top:1px solid #ef4444!important;
  border-bottom:1px solid #ef4444!important;
  border-right-color:#fca5a5!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom td:first-child{
  border-left:6px solid #dc2626!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom:hover td{
  background:#fecaca!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom .table-input{
  background:#fffafa!important;
  border-color:#fca5a5!important;
  color:#7f1d1d!important;
}
.price-bom-danger{
  display:inline-flex!important;
  margin-top:4px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:#dc2626!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:950!important;
}

/* Price table editable professional rows */
.price-head-warnings{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.price-duplicate-head{display:inline-flex;align-items:center;border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;padding:8px 12px;font-size:12px;font-weight:950}
.price-name-input{min-width:220px;font-weight:950!important;background:#fff!important}
.price-action-cell{width:76px;text-align:center!important}
.price-row-delete{border:1px solid #fecdd3;background:#fff1f2;color:#be123c;border-radius:10px;font-weight:950;padding:7px 10px;cursor:pointer}
.price-row-delete:hover{background:#fee2e2}
.pro-price-table tbody tr.price-edit-row.price-row-duplicate td{background:#fff7ed!important;border-color:#fed7aa!important}
.pro-price-table tbody tr.price-edit-row.price-row-duplicate td:first-child{border-left-color:#f59e0b!important}
.price-duplicate-warning{display:block;margin-top:4px;color:#9a3412!important;font-weight:950!important;font-size:11px!important}
.price-add-row-form{display:grid;grid-template-columns:auto minmax(240px,1.4fr) minmax(100px,.6fr) minmax(100px,.6fr) minmax(120px,.7fr) auto;gap:8px;align-items:center;margin-top:12px;padding:12px;border:1px dashed #99f6e4;border-radius:16px;background:#f0fdfa}
.price-add-row-form strong{color:#0f766e;font-size:13px;white-space:nowrap}
.price-add-row-form input{min-height:38px;border:1px solid #cbd5e1;border-radius:11px;padding:8px 10px;font-weight:850;color:#0f172a;background:#fff;box-sizing:border-box;width:100%}
@media(max-width:980px){.price-add-row-form{grid-template-columns:1fr}.price-head-warnings{justify-content:flex-start}}

/* Malzeme listesi tarih kolonu */
.material-table .table-input-date{min-width:132px;font-weight:700;}
.material-form-panel input[type="date"]{font-weight:700;}

/* Fiyat hesaplama uyarisi - otomatik hesap guvenligi */
.price-calc-warning{
  display:block;
  margin-top:2px;
  font-size:11px;
  line-height:1.15;
  font-weight:700;
  color:#b45309;
  white-space:nowrap;
}

/* Fiyat tablosu grup ve hata duzeltmeleri */
.pro-price-table tbody tr.price-group-row th{
  background:#e2e8f0!important;
  color:#0f172a!important;
  border:1px solid #cbd5e1!important;
  padding:8px 12px!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-special-missing td,
.pro-price-table tbody tr.price-edit-row.price-row-special-missing:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-special-missing:nth-child(even) td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(even) td{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#7f1d1d!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-special-missing td:first-child,
.pro-price-table tbody tr.price-edit-row.price-row-price-one td:first-child{
  border-left-color:#dc2626!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-special-missing .table-input,
.pro-price-table tbody tr.price-edit-row.price-row-price-one .table-input{
  background:#fff!important;
  border-color:#fca5a5!important;
  color:#7f1d1d!important;
}
.price-calc-warning{
  display:block!important;
  margin-top:3px!important;
  font-size:10px!important;
  font-weight:950!important;
  color:#b91c1c!important;
  line-height:1.15!important;
}

/* Price warning color system - compact legend */
.price-head-side{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:4px!important;
  min-width:0!important;
}
.price-warning-legend{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex-wrap:wrap!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  color:#475569!important;
  max-width:100%!important;
}
.price-warning-legend span{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  white-space:nowrap!important;
}
.price-warning-legend i{width:8px!important;height:8px!important;border-radius:999px!important;display:inline-block!important;flex:0 0 8px!important;}
.price-warning-legend .legend-red i{background:#dc2626!important;}
.price-warning-legend .legend-orange i{background:#f59e0b!important;}
.price-warning-legend .legend-purple i{background:#7c3aed!important;}
.price-warning-legend .legend-yellow i{background:#eab308!important;}
.price-head-warnings{gap:5px!important;}
.price-danger-head,.price-duplicate-head,.price-special-head,.price-one-head,.price-calc-head{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.price-danger-head,.price-one-head{background:#fee2e2!important;color:#991b1b!important;border:1px solid #fca5a5!important;}
.price-duplicate-head{background:#fff7ed!important;color:#9a3412!important;border:1px solid #fed7aa!important;}
.price-special-head{background:#f3e8ff!important;color:#6b21a8!important;border:1px solid #d8b4fe!important;}
.price-calc-head{background:#fef9c3!important;color:#854d0e!important;border:1px solid #fde68a!important;}

/* Row meanings: red critical, orange duplicate source, purple manual price, yellow missing calculation definition */
.pro-price-table tbody tr.price-edit-row.price-row-price-one td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(even) td{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  color:#7f1d1d!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-price-one td:first-child{border-left-color:#dc2626!important;}
.pro-price-table tbody tr.price-edit-row.price-row-special-missing td,
.pro-price-table tbody tr.price-edit-row.price-row-special-missing:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-special-missing:nth-child(even) td{
  background:#f3e8ff!important;
  border-color:#d8b4fe!important;
  color:#581c87!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-special-missing td:first-child{border-left-color:#7c3aed!important;}
.pro-price-table tbody tr.price-edit-row.price-row-special-missing .table-input{
  border-color:#d8b4fe!important;
  color:#581c87!important;
  background:#fff!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning td,
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning:nth-child(even) td{
  background:#fef9c3!important;
  border-color:#fde68a!important;
  color:#713f12!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning td:first-child{border-left-color:#eab308!important;}
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning .table-input{
  border-color:#fde68a!important;
  color:#713f12!important;
  background:#fffef5!important;
}
.price-row-special-missing .price-calc-warning{color:#6b21a8!important;}
.price-row-calc-warning .price-calc-warning{color:#854d0e!important;}
.price-row-price-one .price-calc-warning{color:#b91c1c!important;}
@media(max-width:980px){
  .price-section-title-only{align-items:flex-start!important;flex-direction:column!important;}
  .price-head-side{align-items:flex-start!important;}
  .price-warning-legend{justify-content:flex-start!important;}
}

/* Final warning color clarity - 2026-06-25
   Normal rows must not look orange; orange is reserved only for true Malzeme Listesi duplicates. */
.price-section-card .price-section-head .price-warning-legend,
.price-section-card .price-section-head .price-warning-legend span{
  color:#334155!important;
}
.price-section-card .price-section-head .price-warning-legend span{
  background:#ffffff!important;
  border-color:#d8e3ee!important;
  box-shadow:0 1px 2px rgba(15,23,42,.05)!important;
}
.price-section-card .price-section-head .price-warning-legend{
  gap:6px!important;
}
.price-section-card .price-section-head .price-warning-legend i{
  box-shadow:0 0 0 2px rgba(255,255,255,.9)!important;
}

/* Neutral zebra rows: no orange for ordinary rows. */
.pro-price-table tbody tr.price-edit-row:not(.price-row-missing-bom):not(.price-row-price-one):not(.price-row-duplicate):not(.price-row-special-missing):not(.price-row-calc-warning):nth-child(odd) td{
  background:#ffffff!important;
  border-color:#d8e2ec!important;
}
.pro-price-table tbody tr.price-edit-row:not(.price-row-missing-bom):not(.price-row-price-one):not(.price-row-duplicate):not(.price-row-special-missing):not(.price-row-calc-warning):nth-child(even) td{
  background:#f4f8fb!important;
  border-color:#d8e2ec!important;
}
.pro-price-table tbody tr.price-edit-row:not(.price-row-missing-bom):not(.price-row-price-one):not(.price-row-duplicate):not(.price-row-special-missing):not(.price-row-calc-warning):hover td{
  background:#edf7ff!important;
}

/* Orange is only for true duplicate in Malzeme Listesi. */
.pro-price-table tbody tr.price-edit-row.price-row-duplicate td,
.pro-price-table tbody tr.price-edit-row.price-row-duplicate:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-duplicate:nth-child(even) td{
  background:#fff7ed!important;
  border-top-color:#fdba74!important;
  border-bottom-color:#fdba74!important;
  border-right-color:#fed7aa!important;
  color:#7c2d12!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-duplicate td:first-child{
  border-left:6px solid #f59e0b!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-duplicate .table-input{
  background:#fff!important;
  border-color:#fdba74!important;
  color:#7c2d12!important;
}
.price-duplicate-warning{
  display:inline-flex!important;
  margin-top:4px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:#f59e0b!important;
  color:#ffffff!important;
  font-size:10px!important;
  font-weight:950!important;
}


/* Price warning legend clarity: no second yellow, blue means calculation definition is missing */
.price-warning-legend .legend-yellow{display:none!important;}
.price-warning-legend .legend-blue i{background:#0284c7!important;}
.price-warning-legend .legend-blue{color:#0f172a!important;}
.price-calc-head{background:#e0f2fe!important;color:#075985!important;border:1px solid #7dd3fc!important;}
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning td,
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning:nth-child(even) td{
  background:#e0f2fe!important;
  border-color:#7dd3fc!important;
  color:#075985!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning td:first-child{border-left-color:#0284c7!important;}
.pro-price-table tbody tr.price-edit-row.price-row-calc-warning .table-input{
  border-color:#7dd3fc!important;
  color:#075985!important;
  background:#f0f9ff!important;
}
.price-row-calc-warning .price-calc-warning{color:#075985!important;}

/* 2026-06-26: no generated cut-info strip under sheet print plans */
.sheet-print-info-strip{display:none!important;}

/* Keep BOM row action icons on the same line after adding Civata column */
.world-bom-table.mode-one .bom-clean-head,
.world-bom-table.mode-one .bom-clean-row,
.mode-one .bom-clean-head,
.mode-one .world-bom-row,
.bom-row-mode-one{
  grid-template-columns:minmax(230px,1.35fr) 64px 78px 96px 120px 92px 66px 74px 58px!important;
}
.world-bom-table.mode-sheet .bom-clean-head,
.world-bom-table.mode-sheet .bom-clean-row,
.mode-sheet .bom-clean-head,
.mode-sheet .world-bom-row,
.bom-row-mode-sheet{
  grid-template-columns:minmax(230px,1.35fr) 64px 70px 70px 78px 120px 92px 66px 74px 58px!important;
}
.world-bom-table.mode-simple .bom-clean-head,
.world-bom-table.mode-simple .bom-clean-row,
.mode-simple .bom-clean-head,
.mode-simple .world-bom-row,
.bom-row-mode-simple{
  grid-template-columns:minmax(240px,1.45fr) 64px 120px 92px 66px 74px 58px!important;
}
.bom-edit-row .actions.row-actions{
  align-self:end!important;
  justify-self:stretch!important;
  min-width:58px!important;
}
.bom-edit-row .actions.row-actions small{height:14px!important;margin-bottom:3px!important}
.bom-action-buttons{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
}
.bom-row-icon{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  padding:0!important;
}

/* Price table polish: sticky headers and per-section row creation */
.price-section-card .price-section-head{
  position: sticky!important;
  top: 8px!important;
  z-index: 30!important;
}
.price-table-wrap{
  max-height: calc(100vh - 190px)!important;
}
.pro-price-table thead th{
  position: sticky!important;
  top: 0!important;
  z-index: 24!important;
}
.pro-price-table tbody tr.price-group-row th{
  position: sticky!important;
  top: 36px!important;
  z-index: 23!important;
}
.price-add-hidden-form{display:none!important}
.price-group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.price-section-add-row td{
  padding:0!important;
  background:#f8fbfd!important;
  border:0!important;
}
.price-section-add{
  margin:0 0 8px;
  border:1px solid #cbd5e1;
  border-top:0;
  background:#ffffff;
}
.price-section-add summary{
  list-style:none;
  cursor:pointer;
  min-height:34px;
  display:flex;
  align-items:center;
  padding:7px 12px;
  color:#0f766e;
  font-weight:950;
  font-size:12px;
  user-select:none;
}
.price-section-add summary::-webkit-details-marker{display:none}
.price-section-add-fields{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(100px,.55fr) minmax(100px,.55fr) minmax(120px,.65fr) auto;
  gap:8px;
  padding:10px 12px 12px;
  border-top:1px solid #e2e8f0;
  background:#f0fdfa;
}
.price-section-add-fields input{
  min-height:36px;
  width:100%;
  box-sizing:border-box;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  padding:7px 10px;
  color:#0f172a;
  font-weight:850;
}
@media(max-width:980px){
  .price-table-wrap{max-height:none!important}
  .price-section-card .price-section-head{top:0!important}
  .price-section-add-fields{grid-template-columns:1fr}
}

/* 2026-06-25 - Fiyat table sticky on page scroll, without inner vertical box scroll.
   Keeps the Fiyat header and columns visible while the whole page scrolls normally. */
.price-section-card{
  overflow:visible!important;
}
.price-section-card .price-section-head{
  position:sticky!important;
  top:8px!important;
  z-index:70!important;
}
.price-table-wrap{
  max-height:none!important;
  overflow:visible!important;
}
.pro-price-table thead th{
  position:sticky!important;
  top:78px!important;
  z-index:65!important;
}
.pro-price-table tbody tr.price-group-row th{
  position:sticky!important;
  top:116px!important;
  z-index:60!important;
}
@media(max-width:980px){
  .price-table-wrap{
    overflow-x:auto!important;
    overflow-y:visible!important;
    max-height:none!important;
  }
  .price-section-card .price-section-head{
    top:0!important;
  }
  .pro-price-table thead th{
    top:92px!important;
  }
  .pro-price-table tbody tr.price-group-row th{
    top:130px!important;
  }
}

/* 2026-06-25 - Keep Fiyat Girdileri bar fixed on the viewport while the page scrolls. */
.price-section-card{
  padding-top:78px!important;
}
.price-section-card .price-section-head{
  position:fixed!important;
  top:8px!important;
  left:max(36px, calc((100vw - 1720px) / 2 + 20px))!important;
  right:max(36px, calc((100vw - 1720px) / 2 + 20px))!important;
  z-index:500!important;
  margin-bottom:0!important;
}
.pro-price-table thead th{
  top:86px!important;
}
.pro-price-table tbody tr.price-group-row th{
  top:124px!important;
}
@media(max-width:980px){
  .price-section-card{
    padding-top:84px!important;
  }
  .price-section-card .price-section-head{
    top:6px!important;
    left:18px!important;
    right:18px!important;
  }
  .pro-price-table thead th{
    top:94px!important;
  }
  .pro-price-table tbody tr.price-group-row th{
    top:132px!important;
  }
}

/* 2026-06-25 - Correct Fiyat sticky layout: keep both title bar and column headers sticky
   on normal page scroll, without shrinking the title bar or creating an inner vertical scroll box. */
.price-section-card,
.product-section-card.price-section-card{
  overflow:visible!important;
  padding:18px!important;
}
.price-section-card .price-section-head{
  position:sticky!important;
  top:8px!important;
  left:auto!important;
  right:auto!important;
  width:auto!important;
  max-width:none!important;
  z-index:700!important;
  margin:0 0 12px 0!important;
  box-sizing:border-box!important;
}
.price-table-wrap{
  max-height:none!important;
  overflow:visible!important;
}
.pro-price-table thead th{
  position:sticky!important;
  top:82px!important;
  z-index:680!important;
}
.pro-price-table tbody tr.price-group-row th{
  position:sticky!important;
  top:126px!important;
  z-index:660!important;
}
@media(max-width:980px){
  .price-section-card,
  .product-section-card.price-section-card{
    padding:14px!important;
  }
  .price-section-card .price-section-head{
    top:6px!important;
  }
  .pro-price-table thead th{
    top:104px!important;
  }
  .pro-price-table tbody tr.price-group-row th{
    top:148px!important;
  }
}

/* 2026-06-25 - Strong fixed Fiyat header + fixed column header clone on page scroll. */
.price-sticky-placeholder{display:none!important;height:0!important;}
body.price-fixed-active .price-section-card .price-section-head.price-fixed-live{
  position:fixed!important;
  top:8px!important;
  left:var(--price-fixed-left, 24px)!important;
  width:var(--price-fixed-width, calc(100vw - 48px))!important;
  right:auto!important;
  z-index:3000!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.price-fixed-active .price-sticky-placeholder.price-fixed-live{
  display:block!important;
  height:var(--price-fixed-head-height, 58px)!important;
  margin-bottom:12px!important;
}
.price-fixed-thead-clone{
  position:fixed!important;
  left:var(--price-fixed-left, 24px)!important;
  top:var(--price-fixed-thead-top, 78px)!important;
  width:var(--price-fixed-width, calc(100vw - 48px))!important;
  z-index:2990!important;
  overflow:hidden!important;
  pointer-events:none!important;
  display:none;
  box-sizing:border-box!important;
}
.price-fixed-thead-clone.price-fixed-live{display:block!important;}
.price-fixed-thead-clone table{
  width:var(--price-fixed-table-width, 100%)!important;
  min-width:var(--price-fixed-table-width, 100%)!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  transform:translateX(calc(-1px * var(--price-fixed-scroll-left, 0)))!important;
}
.price-fixed-thead-clone th{
  position:static!important;
  background:#0f2f46!important;
  color:#fff!important;
  border-right:1px solid rgba(255,255,255,.14)!important;
  border-bottom:2px solid #0b2132!important;
  padding:9px 11px!important;
  font-size:11px!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  text-align:left!important;
}
body.price-fixed-active .price-section-card .pro-price-table thead th{
  position:static!important;
}

/* Price totals / quotation summary */
.price-total-panel{
  display:grid!important;
  grid-template-columns:1.15fr 1fr 1.15fr 1fr 1.05fr!important;
  gap:12px!important;
  margin:0 0 16px!important;
  padding:14px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#f8fafc,#eefaf8)!important;
  border:1px solid rgba(15,118,110,.16)!important;
  box-shadow:0 12px 30px rgba(15,23,42,.07)!important;
}
.price-total-card{
  min-height:88px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:5px!important;
  padding:13px 14px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid rgba(15,23,42,.09)!important;
  box-shadow:0 8px 20px rgba(15,23,42,.055)!important;
}
.price-total-card span{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
.price-total-card strong{
  color:#0f172a!important;
  font-size:22px!important;
  line-height:1.12!important;
  font-weight:1000!important;
}
.price-total-card small{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:800!important;
}
.price-total-main,
.price-try-unit{
  background:linear-gradient(135deg,#0f4c5c,#0f766e)!important;
  border-color:transparent!important;
}
.price-total-main span,.price-total-main small,.price-total-main strong,
.price-try-unit span,.price-try-unit small,.price-try-unit strong{color:#fff!important;}
.price-euro-total,
.price-euro-unit{
  background:linear-gradient(135deg,#eff6ff,#ffffff)!important;
  border-color:rgba(37,99,235,.22)!important;
}
.price-euro-total strong,
.price-euro-unit strong{color:#1d4ed8!important;}
.price-offer-card{
  background:linear-gradient(135deg,#fff7ed,#ffffff)!important;
  border-color:rgba(217,119,6,.24)!important;
}
.price-offer-card span{color:#9a3412!important;}
.price-offer-input{
  width:100%!important;
  border:1px solid rgba(217,119,6,.28)!important;
  border-radius:13px!important;
  padding:10px 11px!important;
  font-size:16px!important;
  font-weight:1000!important;
  color:#7c2d12!important;
  background:#fff!important;
  outline:0!important;
}
.price-offer-input:focus{
  border-color:#d97706!important;
  box-shadow:0 0 0 3px rgba(217,119,6,.14)!important;
}
@media (max-width:1400px){.price-total-panel{grid-template-columns:repeat(3,minmax(170px,1fr))!important;}}
@media (max-width:760px){.price-total-panel{grid-template-columns:1fr!important;}.price-total-card strong{font-size:20px!important;}}

/* Product price overview beside statistics */
.product-price-overview-section{
  grid-column:1/-1!important;
  margin-top:14px!important;
  padding:16px!important;
  border-radius:24px!important;
  border:1px solid rgba(15,118,110,.16)!important;
  background:linear-gradient(135deg,#f8fafc 0%,#eefaf8 55%,#f8fafc 100%)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.07)!important;
}
.price-overview-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.price-overview-head span{
  display:block!important;
  color:#0f766e!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.price-overview-head strong{
  display:block!important;
  color:#0f172a!important;
  font-size:18px!important;
  font-weight:1000!important;
  margin-top:2px!important;
}
.price-overview-head small{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
  text-align:right!important;
}
.price-overview-totals{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.price-overview-total{
  min-height:92px!important;
  border-radius:19px!important;
  padding:14px 15px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:5px!important;
  border:1px solid rgba(15,23,42,.09)!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.055)!important;
}
.price-overview-total span,
.price-overview-group-values small{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
.price-overview-total strong{
  color:#0f172a!important;
  font-size:24px!important;
  line-height:1.1!important;
  font-weight:1000!important;
}
.price-overview-total small{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:800!important;
}
.price-overview-total.total-try,
.price-overview-total.unit-try{
  background:linear-gradient(135deg,#0f4c5c,#0f766e)!important;
  border-color:transparent!important;
}
.price-overview-total.total-try span,
.price-overview-total.total-try strong,
.price-overview-total.total-try small,
.price-overview-total.unit-try span,
.price-overview-total.unit-try strong,
.price-overview-total.unit-try small{color:#fff!important;}
.price-overview-total.total-eur,
.price-overview-total.unit-eur{
  background:linear-gradient(135deg,#eff6ff,#ffffff)!important;
  border-color:rgba(37,99,235,.22)!important;
}
.price-overview-total.total-eur strong,
.price-overview-total.unit-eur strong{color:#1d4ed8!important;}
.price-overview-groups{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:11px!important;
}
.price-overview-group{
  border-radius:18px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.045)!important;
  overflow:hidden!important;
}
.price-overview-group.no-price{opacity:.72!important;}
.price-overview-group-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:11px 13px!important;
  border-bottom:1px solid rgba(15,23,42,.07)!important;
  background:linear-gradient(135deg,#f8fafc,#f0fdfa)!important;
}
.price-overview-group-title b{
  color:#0f172a!important;
  font-size:14px!important;
  font-weight:1000!important;
}
.price-overview-group-title em{
  color:#64748b!important;
  font-size:11px!important;
  font-style:normal!important;
  font-weight:850!important;
}
.price-overview-group-values{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  padding:11px!important;
}
.price-overview-group-values span{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  gap:2px!important;
  padding:9px 10px!important;
  border-radius:13px!important;
  background:#f8fafc!important;
  border:1px solid rgba(15,23,42,.055)!important;
}
.price-overview-group-values strong{
  color:#0f172a!important;
  font-size:14px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.price-overview-group-values span:nth-child(3),
.price-overview-group-values span:nth-child(4){background:#eff6ff!important;border-color:rgba(37,99,235,.12)!important;}
.price-overview-group-values span:nth-child(3) strong,
.price-overview-group-values span:nth-child(4) strong{color:#1d4ed8!important;}
@media(max-width:1250px){
  .price-overview-totals{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .price-overview-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  .price-overview-head{flex-direction:column!important;}
  .price-overview-head small{text-align:left!important;}
  .price-overview-totals,
  .price-overview-groups{grid-template-columns:1fr!important;}
}

/* 2026-06-25: fiyat bolum ozeti, kartlar yerine urun basi EUR grafik gorunumu */
.price-eur-chart-section{
  grid-column:1/-1!important;
  margin-top:14px!important;
  padding:18px!important;
  border-radius:26px!important;
  border:1px solid rgba(15,118,110,.16)!important;
  background:linear-gradient(135deg,#f8fafc 0%,#eefaf8 56%,#ffffff 100%)!important;
  box-shadow:0 18px 44px rgba(15,23,42,.075)!important;
}
.price-eur-chart-section .price-overview-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:14px!important;
}
.price-eur-chart-section .price-overview-head span{
  display:block!important;
  color:#0f766e!important;
  font-size:11px!important;
  font-weight:1000!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.price-eur-chart-section .price-overview-head strong{
  display:block!important;
  color:#0f172a!important;
  font-size:19px!important;
  font-weight:1000!important;
  margin-top:3px!important;
}
.price-eur-chart-section .price-overview-head small{
  color:#64748b!important;
  font-weight:900!important;
  text-align:right!important;
}
.price-eur-chart-layout{
  display:grid!important;
  grid-template-columns:minmax(260px,360px) 1fr!important;
  gap:16px!important;
  align-items:stretch!important;
}
.price-eur-donut-card{
  border-radius:24px!important;
  background:#fff!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.06)!important;
  padding:18px!important;
  display:grid!important;
  grid-template-columns:132px 1fr!important;
  gap:16px!important;
  align-items:center!important;
}
.price-eur-donut{
  width:132px!important;
  height:132px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#e2e8f0!important;
  box-shadow:0 14px 30px rgba(15,23,42,.10)!important;
}
.price-eur-donut>div{
  width:86px!important;
  height:86px!important;
  border-radius:999px!important;
  background:#fff!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)!important;
}
.price-eur-donut small{
  color:#64748b!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
.price-eur-donut strong{
  color:#0f172a!important;
  font-size:18px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  margin-top:3px!important;
}
.price-eur-donut em{
  color:#64748b!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:900!important;
  margin-top:2px!important;
}
.price-eur-donut-note b{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
  font-weight:1000!important;
  margin-bottom:6px!important;
}
.price-eur-donut-note span{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.45!important;
}
.price-eur-legend-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.price-eur-legend-item{
  min-height:76px!important;
  display:grid!important;
  grid-template-columns:14px minmax(0,1fr) auto!important;
  gap:11px!important;
  align-items:center!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid rgba(15,23,42,.08)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.045)!important;
  padding:13px 14px!important;
}
.price-eur-legend-item i{
  width:12px!important;
  height:12px!important;
  border-radius:999px!important;
  background:var(--price-color,#0f766e)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--price-color,#0f766e) 16%,transparent)!important;
}
.price-eur-legend-item b{
  display:block!important;
  color:#0f172a!important;
  font-size:14px!important;
  font-weight:1000!important;
  margin-bottom:4px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.price-eur-legend-item small{
  display:block!important;
  color:#2563eb!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.price-eur-legend-item strong{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
.price-eur-empty{
  grid-column:1/-1!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px dashed rgba(100,116,139,.35)!important;
  color:#64748b!important;
  font-weight:900!important;
  padding:18px!important;
}
.price-eur-chart-section .price-overview-totals,
.price-eur-chart-section .price-overview-groups{display:none!important;}
@media(max-width:1150px){
  .price-eur-chart-layout{grid-template-columns:1fr!important;}
  .price-eur-donut-card{grid-template-columns:132px 1fr!important;}
}
@media(max-width:760px){
  .price-eur-chart-section .price-overview-head{flex-direction:column!important;}
  .price-eur-chart-section .price-overview-head small{text-align:left!important;}
  .price-eur-donut-card{grid-template-columns:1fr!important;text-align:center!important;justify-items:center!important;}
  .price-eur-legend-grid{grid-template-columns:1fr!important;}
}


.product-price-donut-section{
  margin:18px 0 10px;
}
.product-price-donut-section .price-donut-summary-card{
  background:linear-gradient(180deg,#f8fbfd 0%,#ffffff 100%);
  border:1px solid #d9e4ee;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}
.product-price-donut-section .product-donut-head small{
  max-width:520px;
}
.product-price-donut-section .price-cost-donut{
  width:138px;
  height:138px;
}
.product-price-donut-section .price-cost-donut span{
  gap:2px;
}
.product-price-donut-section .price-cost-donut.has-unit-total span b{
  font-size:24px;
  line-height:1.05;
  white-space:nowrap;
}
.product-price-donut-section .price-cost-donut.has-unit-total span b.total-value{
  font-size:18px;
  color:#2563eb;
}
.product-price-donut-section .price-cost-donut.has-unit-total span small{
  font-size:11px;
}
.product-price-donut-section .price-donut-legend span{
  min-height:84px;
}
.product-price-donut-section .price-donut-legend em{
  font-size:12px;
  color:#5b6f8e;
}
@media (max-width: 900px){
  .product-price-donut-section .price-cost-donut{
    width:128px;
    height:128px;
  }
}


/* Three top distribution cards: material, labor and price in the same row */
.product-data-charts.three-donut-charts{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:16px!important;
}
.product-data-charts.three-donut-charts>.product-donut-card,
.product-data-charts.three-donut-charts>.product-price-donut-section{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.product-data-charts.three-donut-charts .product-donut-head{
  min-height:54px!important;
}
.product-data-charts.three-donut-charts .product-donut-head small{
  max-width:310px!important;
}
.product-price-donut-section{
  margin:0!important;
  background:linear-gradient(180deg,#f8fbfd 0%,#fff 100%)!important;
  border:1px solid #d9e4ee!important;
  box-shadow:0 18px 40px rgba(15,23,42,.06)!important;
}
.product-price-donut-section .product-donut-body{
  grid-template-columns:138px 1fr!important;
  gap:14px!important;
}
.product-price-donut-section .price-cost-donut{
  width:138px!important;
  height:138px!important;
}
.product-price-donut-section .price-cost-donut.has-unit-total span b{
  font-size:21px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
.product-price-donut-section .price-cost-donut.has-unit-total span b.total-value{
  font-size:15px!important;
  color:#2563eb!important;
}
.product-price-donut-section .price-cost-donut.has-unit-total span small{
  font-size:10px!important;
}
.product-price-donut-section .price-donut-legend{
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.product-price-donut-section .price-donut-legend span{
  min-height:58px!important;
  padding:9px 10px!important;
  border-radius:14px!important;
}
.product-price-donut-section .price-donut-legend b{
  font-size:12px!important;
  white-space:normal!important;
}
.product-price-donut-section .price-donut-legend em{
  font-size:10.5px!important;
  line-height:1.35!important;
}
@media (max-width:1350px){
  .product-data-charts.three-donut-charts{grid-template-columns:1fr!important;}
}

/* 2026-06-25: Price distribution compact layout only. */
.product-price-donut-section .price-cost-donut-compact span{
  gap:3px!important;
  inset:30px!important;
}
.product-price-donut-section .price-cost-donut-compact.has-unit-total span b{
  font-size:15px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
.product-price-donut-section .price-cost-donut-compact.has-unit-total span b.total-value{
  font-size:12px!important;
  color:#2563eb!important;
}
.product-price-donut-section .price-cost-donut-compact.has-unit-total span small{
  display:none!important;
}
.product-price-donut-section .price-donut-legend{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.product-price-donut-section .price-donut-legend span{
  min-height:44px!important;
  padding:7px 8px!important;
  border-radius:13px!important;
}
.product-price-donut-section .price-donut-legend b{
  font-size:11.5px!important;
  line-height:1.1!important;
}
.product-price-donut-section .price-donut-legend em{
  font-size:11px!important;
  line-height:1.15!important;
  color:#2563eb!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
@media (max-width:520px){
  .product-price-donut-section .price-donut-legend{grid-template-columns:1fr!important;}
}


/* 2026-06-26: further compact price donut layout with one-product note and inline stats. */
.product-price-donut-section .product-donut-body{
  grid-template-columns:122px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
}
.product-price-donut-section .price-cost-donut,
.product-price-donut-section .price-cost-donut-compact{
  width:122px!important;
  height:122px!important;
}
.product-price-donut-section .price-cost-donut-unit-only span,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span{
  inset:31px!important;
  gap:0!important;
}
.product-price-donut-section .price-cost-donut-unit-only span b,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span b{
  font-size:17px!important;
  line-height:1.08!important;
  white-space:nowrap!important;
}
.product-price-donut-section .price-donut-side{
  min-width:0!important;
}
.product-price-donut-section .price-donut-legend-note{
  margin:0 0 8px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  background:#f8fbfd!important;
  border:1px solid #d9e4ee!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:800!important;
}
.product-price-donut-section .price-donut-legend{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.product-price-donut-section .price-donut-legend span{
  grid-template-columns:12px minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  min-height:0!important;
  padding:10px 12px!important;
}
.product-price-donut-section .price-donut-legend b{
  font-size:12px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-price-donut-section .price-donut-legend em{
  grid-column:auto!important;
  justify-self:end!important;
  align-self:center!important;
  font-size:11.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  color:#2563eb!important;
  font-weight:1000!important;
}
@media (max-width:700px){
  .product-price-donut-section .product-donut-body{
    grid-template-columns:116px minmax(0,1fr)!important;
  }
  .product-price-donut-section .price-cost-donut,
  .product-price-donut-section .price-cost-donut-compact{
    width:116px!important;
    height:116px!important;
  }
}
@media (max-width:560px){
  .product-price-donut-section .product-donut-body{
    grid-template-columns:1fr!important;
  }
  .product-price-donut-section .price-cost-donut,
  .product-price-donut-section .price-cost-donut-compact{
    margin:auto!important;
  }
}
@media (max-width:430px){
  .product-price-donut-section .price-donut-legend{
    grid-template-columns:1fr!important;
  }
}


/* 2026-06-26 v3: make price section cards clearly horizontal and side-by-side. */
.product-price-donut-section .price-donut-legend{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(220px,1fr))!important;
  gap:10px!important;
  align-items:start!important;
}
.product-price-donut-section .price-donut-legend span{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  min-height:48px!important;
  padding:10px 12px!important;
}
.product-price-donut-section .price-donut-legend i{
  flex:0 0 12px!important;
}
.product-price-donut-section .price-donut-legend b{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
}
.product-price-donut-section .price-donut-legend em{
  margin-inline-start:auto!important;
  justify-self:auto!important;
  align-self:center!important;
  display:block!important;
}
.product-price-donut-section .price-donut-legend-note{
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
}
@media (max-width:900px){
  .product-price-donut-section .price-donut-legend{
    grid-template-columns:repeat(2,minmax(180px,1fr))!important;
  }
}
@media (max-width:620px){
  .product-price-donut-section .price-donut-legend{
    grid-template-columns:1fr!important;
  }
}


/* 2026-06-26 v4: keep price section fully inside the card and more compact. */
.product-price-donut-section{
  overflow:hidden!important;
}
.product-price-donut-section .product-donut-body{
  grid-template-columns:108px minmax(0,1fr)!important;
  gap:10px!important;
  min-width:0!important;
}
.product-price-donut-section .price-cost-donut,
.product-price-donut-section .price-cost-donut-compact{
  width:108px!important;
  height:108px!important;
}
.product-price-donut-section .price-cost-donut-unit-only span,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span{
  inset:27px!important;
}
.product-price-donut-section .price-cost-donut-unit-only span b,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span b{
  font-size:15px!important;
}
.product-price-donut-section .price-donut-side{
  width:100%!important;
  min-width:0!important;
}
.product-price-donut-section .price-donut-legend-note{
  margin:0 0 7px!important;
  padding:7px 9px!important;
  font-size:10.5px!important;
}
.product-price-donut-section .price-donut-legend{
  width:100%!important;
  min-width:0!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.product-price-donut-section .price-donut-legend span{
  min-width:0!important;
  min-height:44px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
}
.product-price-donut-section .price-donut-legend b{
  font-size:11.5px!important;
}
.product-price-donut-section .price-donut-legend em{
  font-size:11px!important;
}
@media (max-width:760px){
  .product-price-donut-section .product-donut-body{
    grid-template-columns:100px minmax(0,1fr)!important;
  }
  .product-price-donut-section .price-cost-donut,
  .product-price-donut-section .price-cost-donut-compact{
    width:100px!important;
    height:100px!important;
  }
}
@media (max-width:620px){
  .product-price-donut-section .price-donut-legend{
    grid-template-columns:1fr!important;
  }
}


/* 2026-06-26 v5: keep the price donut at normal size; only compact the list so it stays inside the card. */
.product-price-donut-section .product-donut-body{
  grid-template-columns:122px minmax(0,1fr)!important;
  gap:10px!important;
  min-width:0!important;
}
.product-price-donut-section .price-cost-donut,
.product-price-donut-section .price-cost-donut-compact{
  width:122px!important;
  height:122px!important;
}
.product-price-donut-section .price-cost-donut-unit-only span,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span{
  inset:31px!important;
}
.product-price-donut-section .price-cost-donut-unit-only span b,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span b{
  font-size:17px!important;
}
.product-price-donut-section .price-donut-legend{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.product-price-donut-section .price-donut-legend span{
  min-height:42px!important;
  padding:7px 8px!important;
  gap:7px!important;
}
.product-price-donut-section .price-donut-legend b{
  font-size:11px!important;
}
.product-price-donut-section .price-donut-legend em{
  font-size:10.5px!important;
}
.product-price-donut-section .price-donut-legend-note{
  padding:6px 8px!important;
  margin-bottom:7px!important;
  font-size:10px!important;
}
@media (max-width:620px){
  .product-price-donut-section .price-donut-legend{
    grid-template-columns:1fr!important;
  }
}

/* 2026-06-26 v8: Smart print for cutting tab. It prints only the currently open cutting section. */
.cutting-print-product-head{display:none;}
@media print{
  body.product-print-cutting *{visibility:hidden!important;}
  body.product-print-cutting .cutting-pro-section,
  body.product-print-cutting .cutting-pro-section *{visibility:visible!important;}
  body.product-print-cutting .cutting-pro-section{
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    max-width:none!important;
    box-shadow:none!important;
    border:0!important;
    padding:0!important;
    background:#fff!important;
  }
  body.product-print-cutting .sidebar,
  body.product-print-cutting .topbar,
  body.product-print-cutting .product-workspace-header,
  body.product-print-cutting .excel-import-panel,
  body.product-print-cutting .bom-result-panel,
  body.product-print-cutting .stock-management-panel,
  body.product-print-cutting .cutting-summary-cards,
  body.product-print-cutting .cutting-cache-line,
  body.product-print-cutting .stock-missing-banner,
  body.product-print-cutting .cutting-result-block>summary b,
  body.product-print-cutting .cutting-select-hint{display:none!important;}
  body.product-print-cutting .cutting-print-product-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    margin:0 0 14px!important;
    padding:12px 14px!important;
    border:1px solid #0f172a!important;
    border-radius:0!important;
    background:#fff!important;
    color:#0f172a!important;
    page-break-inside:avoid!important;
  }
  body.product-print-cutting .cutting-print-product-head small{display:block!important;font-size:11px!important;font-weight:800!important;color:#475569!important;margin-bottom:3px!important;}
  body.product-print-cutting .cutting-print-product-head strong{font-size:18px!important;line-height:1.1!important;color:#0f172a!important;}
  body.product-print-cutting .cutting-print-meta{display:flex!important;gap:10px!important;flex-wrap:wrap!important;}
  body.product-print-cutting .cutting-print-meta span{display:grid!important;gap:2px!important;min-width:110px!important;padding:7px 9px!important;border:1px solid #cbd5e1!important;background:#f8fafc!important;}
  body.product-print-cutting .cutting-print-meta b{font-size:10px!important;text-transform:uppercase!important;color:#64748b!important;}
  body.product-print-cutting .cutting-result-block,
  body.product-print-cutting .cutting-final-summary,
  body.product-print-cutting .pro-table-card,
  body.product-print-cutting .cutting-table-wrap{
    box-shadow:none!important;
    border-radius:0!important;
    background:#fff!important;
  }
  body.product-print-cutting .cutting-result-block{border:1px solid #cbd5e1!important;margin:0 0 12px!important;padding:0!important;page-break-inside:auto!important;}
  body.product-print-cutting .cutting-result-block>summary{display:block!important;padding:10px 12px!important;border-bottom:1px solid #cbd5e1!important;background:#f8fafc!important;}
  body.product-print-cutting .cutting-result-block>summary h3{margin:0!important;font-size:17px!important;color:#0f172a!important;}
  body.product-print-cutting .cutting-result-block>summary span{font-size:11px!important;color:#475569!important;}
  body.product-print-cutting .cutting-program-table{width:100%!important;border-collapse:collapse!important;font-size:11px!important;}
  body.product-print-cutting .cutting-program-table th,
  body.product-print-cutting .cutting-program-table td{border:1px solid #cbd5e1!important;padding:6px 7px!important;color:#0f172a!important;background:#fff!important;}
  body.product-print-cutting .cutting-program-table th{background:#e2e8f0!important;font-weight:900!important;}
  body.product-print-cutting .piece-chip-line{display:flex!important;gap:4px!important;flex-wrap:wrap!important;}
  body.product-print-cutting .piece-chip{border:1px solid #94a3b8!important;background:#fff!important;color:#0f172a!important;padding:2px 5px!important;box-shadow:none!important;}
  body.product-print-cutting.print-cutting-1d #cutting-1d{display:block!important;}
  body.product-print-cutting.print-cutting-1d #cutting-sac,
  body.product-print-cutting.print-cutting-1d .table-card-sac,
  body.product-print-cutting.print-cutting-1d .table-card-cutsac{display:none!important;visibility:hidden!important;}
  body.product-print-cutting.print-cutting-1d .cutting-final-summary{display:block!important;margin-top:10px!important;}
  body.product-print-cutting.print-cutting-1d .table-card-1d,
  body.product-print-cutting.print-cutting-1d .table-card-cut1d{display:block!important;}
  body.product-print-cutting.print-cutting-1d .print-lazer-row{display:none!important;visibility:hidden!important;}
  body.product-print-cutting.print-cutting-sac #cutting-sac{display:block!important;}
  body.product-print-cutting.print-cutting-sac #cutting-1d,
  body.product-print-cutting.print-cutting-sac .table-card-1d,
  body.product-print-cutting.print-cutting-sac .table-card-cut1d{display:none!important;visibility:hidden!important;}
  body.product-print-cutting.print-cutting-summary #cutting-1d,
  body.product-print-cutting.print-cutting-summary #cutting-sac{display:none!important;visibility:hidden!important;}
  body.product-print-cutting.print-cutting-summary .cutting-final-summary{display:block!important;}
}

/* 2026-06-29: Professional login and password settings */
.login-body{min-height:100vh;margin:0;background:radial-gradient(circle at top left,#fff7ed 0,#f8fafc 38%,#e2e8f0 100%);display:flex;align-items:center;justify-content:center;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a;}
.login-shell{width:min(440px,calc(100vw - 28px));}
.login-card{background:rgba(255,255,255,.94);border:1px solid rgba(148,163,184,.35);box-shadow:0 24px 70px rgba(15,23,42,.18);border-radius:26px;padding:30px;backdrop-filter:blur(12px);}
.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:12px;}
.login-logo{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#8a2f14;color:#fff;font-weight:900;letter-spacing:.04em;box-shadow:0 12px 30px rgba(138,47,20,.28);}
.login-brand small{display:block;text-transform:uppercase;letter-spacing:.12em;color:#64748b;font-size:11px;font-weight:800;}
.login-brand h1{margin:2px 0 0;font-size:28px;line-height:1.1;color:#111827;}
.login-text{margin:0 0 20px;color:#475569;font-weight:600;}
.login-alert{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-weight:800;}
.login-form{display:grid;gap:14px;}
.login-form label,.security-form label{display:grid;gap:7px;font-weight:800;color:#334155;}
.login-form input,.security-form input{height:46px;border:1px solid #cbd5e1;border-radius:14px;padding:0 14px;font:inherit;font-weight:700;background:#fff;color:#0f172a;outline:none;transition:border-color .15s,box-shadow .15s;}
.login-form input:focus,.security-form input:focus{border-color:#8a2f14;box-shadow:0 0 0 4px rgba(138,47,20,.12);}
.login-form .btn{height:48px;margin-top:4px;justify-content:center;}
.login-hint{margin-top:16px;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px dashed #cbd5e1;color:#475569;font-size:13px;line-height:1.5;}
.auth-user-pill,.auth-logout-link{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;text-decoration:none;font-weight:900;font-size:13px;}
.auth-user-pill{background:#fff7ed;color:#8a2f14;border:1px solid rgba(138,47,20,.18);}
.auth-logout-link{background:#0f172a;color:#fff!important;border:1px solid #0f172a;}
.security-workspace{max-width:760px;}
.security-panel{padding:24px;}
.security-form{display:grid;gap:16px;max-width:520px;margin-top:18px;}
.security-form small{font-weight:700;color:#64748b;}
.success-panel{background:#ecfdf5!important;border-color:#bbf7d0!important;color:#065f46!important;}
.settings-hub-card.tone-red{border-color:rgba(153,27,27,.16);background:linear-gradient(135deg,#fff7ed,#fff1f2);}
.settings-hub-card.tone-red .settings-hub-icon{background:#991b1b;color:#fff;}
@media (max-width:720px){.login-card{padding:22px;border-radius:22px}.auth-user-pill{display:none}.auth-logout-link{padding:0 10px}}

/* 2026-06-29: Professional multi-user administration */
.auth-user-pill{background:#ffffff!important;color:#111827!important;border:1px solid rgba(15,23,42,.16)!important;box-shadow:0 8px 20px rgba(15,23,42,.12);}
.auth-user-pill span{color:#111827!important;}
.users-workspace{max-width:1180px;display:grid;gap:18px;}
.user-admin-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;border-radius:24px;background:linear-gradient(135deg,#8a2f14,#6f2410);color:#fff;box-shadow:0 18px 45px rgba(138,47,20,.24);}
.user-admin-summary small{display:block;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:rgba(255,255,255,.72);font-size:11px;}
.user-admin-summary h2{margin:4px 0;font-size:24px;color:#fff;}
.user-admin-summary p{margin:0;max-width:760px;color:rgba(255,255,255,.82);font-weight:700;line-height:1.5;}
.user-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start;}
.users-table-panel{padding:24px;}
.add-user-panel,.quick-password-panel{padding:24px;min-height:100%;}
.user-count-badge{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:13px;font-weight:900;border:1px solid #e2e8f0;}
.users-admin-list{display:grid;gap:14px;margin-top:18px;}
.user-admin-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:16px;padding:18px;border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.05);}
.user-admin-card.is-current-user{border-color:rgba(138,47,20,.35);background:linear-gradient(180deg,#fff7ed,#fff);}
.user-avatar{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#8a2f14;color:#fff;font-size:22px;font-weight:950;box-shadow:0 12px 28px rgba(138,47,20,.22);}
.user-edit-form{display:grid;gap:12px;}
.user-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.user-card-head strong{display:block;color:#0f172a;font-size:18px;line-height:1.15;}
.user-card-head span{display:block;color:#64748b;font-weight:900;margin-top:3px;}
.user-card-head em{font-style:normal;white-space:nowrap;background:#ecfdf5;color:#047857;border:1px solid #bbf7d0;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:950;}
.user-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.user-fields label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:900;}
.user-fields label small{font-weight:800;color:#94a3b8;}
.user-fields input{width:100%;height:42px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;color:#0f172a;padding:0 12px;font:inherit;font-weight:750;outline:none;}
.user-fields input:focus{border-color:#8a2f14;box-shadow:0 0 0 4px rgba(138,47,20,.11);}
.user-meta-row{display:flex;gap:10px;flex-wrap:wrap;color:#64748b;font-weight:800;font-size:13px;}
.user-card-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;}
.user-card-actions form{margin:0;}
.btn-danger{background:#991b1b!important;color:#fff!important;border-color:#991b1b!important;}
button[disabled],.btn[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.25);}
@media (max-width:1020px){.user-admin-grid{grid-template-columns:1fr}.user-fields{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:720px){.user-admin-summary{align-items:flex-start;flex-direction:column}.user-admin-card{grid-template-columns:1fr}.user-avatar{width:48px;height:48px}.user-fields{grid-template-columns:1fr}.user-card-head{flex-direction:column}.user-card-actions{justify-content:flex-start;flex-wrap:wrap}}

/* 2026-06-29: Users page organized row layout */
.users-workspace{max-width:1320px!important;gap:16px!important;}
.user-admin-summary{display:grid!important;grid-template-columns:minmax(220px,320px) minmax(0,1fr) auto!important;align-items:center!important;padding:16px 18px!important;border-radius:18px!important;box-shadow:0 12px 28px rgba(138,47,20,.16)!important;}
.user-admin-summary h2{font-size:22px!important;margin:2px 0!important;}
.user-admin-summary p{max-width:none!important;font-size:14px!important;line-height:1.45!important;}
.user-admin-summary .btn{white-space:nowrap!important;}
.user-admin-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;}
.add-user-panel,.quick-password-panel,.users-table-panel{padding:18px!important;border-radius:20px!important;}
.add-user-panel .settings-section-head,.quick-password-panel .settings-section-head,.users-table-panel .settings-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:14px!important;}
.add-user-panel .settings-section-head h2,.quick-password-panel .settings-section-head h2,.users-table-panel .settings-section-head h2{font-size:22px!important;margin:4px 0!important;}
.add-user-panel .settings-section-head p,.quick-password-panel .settings-section-head p,.users-table-panel .settings-section-head p{margin:0!important;}
.security-form{max-width:none!important;margin-top:0!important;}
.user-create-form,.quick-password-panel .security-form{display:grid!important;grid-template-columns:1.25fr 1fr 1fr 1fr auto!important;align-items:end!important;gap:12px!important;}
.quick-password-panel .security-form{grid-template-columns:1fr 1fr 1fr auto!important;}
.user-create-form label,.quick-password-panel .security-form label{margin:0!important;}
.user-create-form input,.quick-password-panel .security-form input{width:100%!important;}
.user-create-form .form-actions,.quick-password-panel .security-form .form-actions{margin:0!important;display:flex!important;align-items:end!important;}
.user-create-form .btn,.quick-password-panel .security-form .btn{height:46px!important;white-space:nowrap!important;}
.users-admin-list{display:grid!important;gap:10px!important;margin-top:14px!important;}
.user-admin-card{display:grid!important;grid-template-columns:48px minmax(220px,1.2fr) minmax(0,3.4fr) minmax(160px,.8fr) auto!important;align-items:center!important;gap:12px!important;padding:12px 14px!important;border-radius:16px!important;box-shadow:0 5px 18px rgba(15,23,42,.04)!important;}
.user-admin-card:hover{border-color:rgba(138,47,20,.25)!important;box-shadow:0 8px 24px rgba(15,23,42,.07)!important;}
.user-avatar{width:44px!important;height:44px!important;border-radius:14px!important;font-size:19px!important;}
.user-edit-form{display:contents!important;}
.user-card-head{display:block!important;min-width:0!important;}
.user-card-head strong{font-size:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.user-card-head span{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.user-card-head em{display:inline-flex!important;margin-top:7px!important;padding:4px 8px!important;font-size:11px!important;}
.user-fields{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr!important;gap:10px!important;}
.user-fields label{font-size:12px!important;gap:4px!important;}
.user-fields input{height:38px!important;border-radius:11px!important;}
.user-meta-row{display:block!important;font-size:12px!important;color:#64748b!important;}
.user-card-actions{justify-content:flex-end!important;gap:8px!important;white-space:nowrap!important;}
.user-card-actions .btn{height:38px!important;min-height:38px!important;padding:0 12px!important;}
@media (max-width:1180px){
  .user-admin-card{grid-template-columns:44px minmax(180px,1fr)!important;align-items:start!important;}
  .user-fields{grid-column:2 / -1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .user-meta-row{grid-column:2 / -1!important;}
  .user-card-actions{grid-column:2 / -1!important;justify-content:flex-start!important;}
  .user-create-form,.quick-password-panel .security-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .user-create-form .form-actions,.quick-password-panel .security-form .form-actions{grid-column:1 / -1!important;}
}
@media (max-width:720px){
  .user-admin-summary{grid-template-columns:1fr!important;align-items:start!important;}
  .user-create-form,.quick-password-panel .security-form,.user-fields{grid-template-columns:1fr!important;}
  .user-admin-card{grid-template-columns:1fr!important;}
  .user-fields,.user-meta-row,.user-card-actions{grid-column:auto!important;}
}

/* 2026-06-29: Professional table-style user management, remove top user badge need */
.top-nav .auth-user-pill{display:none!important;}
.users-table-workspace{max-width:1500px!important;gap:14px!important;}
.users-toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #dbe3ee;border-radius:18px;background:#ffffff;box-shadow:0 10px 28px rgba(15,23,42,.05);}
.users-toolbar-row div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.users-toolbar-row small{letter-spacing:.12em;text-transform:uppercase;font-size:11px;font-weight:950;color:#64748b;}
.users-toolbar-row strong{font-size:16px;color:#0f172a;font-weight:950;}
.users-toolbar-row span{font-size:13px;color:#64748b;font-weight:800;}
.compact-user-panel{padding:14px 16px!important;border-radius:18px!important;background:#fff!important;}
.compact-user-panel .settings-section-head{margin-bottom:10px!important;}
.compact-user-panel .settings-section-head h2{font-size:18px!important;margin:2px 0!important;}
.compact-user-panel .settings-section-head small{font-size:11px!important;letter-spacing:.12em!important;color:#0f766e!important;}
.compact-user-panel .security-form{margin-top:0!important;max-width:none!important;}
.user-create-form,.my-password-form{display:grid!important;align-items:end!important;gap:10px!important;}
.user-create-form{grid-template-columns:1.35fr 1.1fr 1fr 1fr auto!important;}
.my-password-form{grid-template-columns:1fr 1fr 1fr auto!important;}
.user-create-form label,.my-password-form label{font-size:13px!important;margin:0!important;gap:5px!important;}
.user-create-form input,.my-password-form input{height:40px!important;border-radius:10px!important;}
.user-create-form .btn,.my-password-form .btn{height:40px!important;min-height:40px!important;white-space:nowrap!important;padding:0 14px!important;}
.pro-users-table-panel{padding:0!important;overflow:hidden!important;border-radius:20px!important;background:#fff!important;}
.pro-users-table-panel .settings-section-head{padding:16px 18px 12px!important;margin:0!important;border-bottom:1px solid #e5edf5!important;background:#f8fafc!important;}
.pro-users-table-panel .settings-section-head h2{font-size:20px!important;margin:2px 0!important;}
.pro-users-table-panel .settings-section-head p{margin:0!important;color:#64748b!important;}
.pro-users-table{width:100%;overflow-x:auto;}
.pro-users-head,.pro-user-form{display:grid!important;grid-template-columns:70px minmax(220px,1.2fr) minmax(190px,1fr) minmax(300px,1.6fr) minmax(150px,.8fr) minmax(210px,.9fr)!important;align-items:center;min-width:1180px;}
.pro-users-head{background:linear-gradient(90deg,#243449,#3b315d);color:#eef2ff;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;border-top:1px solid rgba(255,255,255,.08);}
.pro-users-head span{padding:14px 14px;}
.pro-user-row{border-bottom:1px solid #e8eef6;background:#fff;transition:background .15s,box-shadow .15s;}
.pro-user-row:hover{background:#fbfdff;box-shadow:inset 3px 0 0 rgba(138,47,20,.22);}
.pro-user-row.is-current-user{background:#fff7ed;box-shadow:inset 3px 0 0 #8a2f14;}
.pro-user-form > div{padding:10px 14px;min-width:0;}
.user-id-cell{font-weight:950;color:#475569;}
.pro-user-form input{width:100%;height:38px;border:1px solid #d1dbe8;border-radius:10px;background:#fff;color:#0f172a;padding:0 10px;font:inherit;font-size:13px;font-weight:800;outline:none;}
.pro-user-form input:focus{border-color:#8a2f14;box-shadow:0 0 0 3px rgba(138,47,20,.10);}
.user-name-cell{display:grid;gap:6px;}
.user-name-cell em{display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;background:#ecfdf5;border:1px solid #bbf7d0;color:#047857;font-size:11px;font-weight:950;font-style:normal;}
.password-inline{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;}
.last-login-cell{font-size:13px;color:#64748b;font-weight:850;white-space:nowrap;}
.row-actions{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;white-space:nowrap;}
.row-actions form{margin:0!important;display:inline-flex!important;}
.row-actions .btn{height:36px!important;min-height:36px!important;padding:0 12px!important;border-radius:999px!important;font-size:12px!important;}
.btn-danger{background:#8f2443!important;color:#fff!important;border-color:#8f2443!important;}
@media (max-width:1100px){
  .user-create-form,.my-password-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .user-create-form .form-actions,.my-password-form .form-actions{grid-column:1 / -1!important;}
}
@media (max-width:700px){
  .users-toolbar-row{align-items:flex-start;flex-direction:column;}
  .user-create-form,.my-password-form{grid-template-columns:1fr!important;}
}


/* 2026-06-29: users page cleanup - remove clutter and horizontal scrollbar */
.users-table-workspace{gap:14px!important;max-width:100%!important;overflow-x:hidden!important;}
.users-toolbar-row{display:none!important;}
.compact-user-panel{margin-top:0!important;}
.my-password-form{display:none!important;}
.pro-users-table{overflow-x:visible!important;width:100%!important;}
.pro-users-head,.pro-user-form{min-width:0!important;width:100%!important;grid-template-columns:54px minmax(120px,1fr) minmax(140px,1fr) minmax(190px,1.35fr) minmax(120px,.8fr) minmax(150px,.85fr)!important;}
.pro-users-head span,.pro-user-form > div{padding-left:10px!important;padding-right:10px!important;}
.password-inline{grid-template-columns:1fr 1fr!important;}
@media (max-width:900px){
  .pro-users-head{display:none!important;}
  .pro-user-row{border:1px solid #e5edf5!important;border-radius:14px!important;margin-bottom:10px!important;overflow:hidden!important;}
  .pro-user-form{display:grid!important;grid-template-columns:1fr!important;gap:0!important;}
  .pro-user-form > div{padding:8px 10px!important;}
  .row-actions{justify-content:flex-start!important;}
}

/* 2026-06-29: final compact users table - add user in row, active badge in row, header welcome */
.header-welcome{
  display:inline-flex!important;align-items:center;gap:4px;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:#fff!important;font-size:13px;font-weight:850;white-space:nowrap;
}
.header-welcome strong{color:#fff!important;font-weight:950;}
.users-table-workspace{display:block!important;max-width:100%!important;overflow:visible!important;}
.compact-user-panel{display:none!important;}
.pro-users-table-panel{width:100%!important;margin:0!important;overflow:hidden!important;}
.pro-users-table{overflow-x:visible!important;overflow-y:visible!important;}
.pro-users-head,.pro-user-form{grid-template-columns:76px minmax(150px,1fr) minmax(150px,1fr) minmax(230px,1.25fr) minmax(140px,.8fr) minmax(150px,.7fr)!important;min-width:0!important;width:100%!important;}
.user-create-row{background:#f8fffe!important;box-shadow:inset 3px 0 0 #0f766e!important;}
.user-create-row .pro-user-form input{background:#ffffff!important;border-color:#cbd9e7!important;}
.add-user-id{color:#0f766e!important;font-weight:950!important;}
.user-id-cell{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;}
.active-row-badge{display:inline-flex!important;align-items:center;padding:3px 7px;border-radius:999px;background:#ecfdf5;border:1px solid #bbf7d0;color:#047857;font-size:10px;font-weight:950;font-style:normal;line-height:1;white-space:nowrap;}
.user-name-cell em{display:none!important;}
.muted-cell{color:#94a3b8!important;}
@media (max-width:1100px){
  .header-welcome{order:5;width:100%;justify-content:center;margin-top:6px;}
  .pro-users-head,.pro-user-form{grid-template-columns:60px minmax(120px,1fr) minmax(130px,1fr) minmax(190px,1.2fr) minmax(110px,.8fr) minmax(130px,.75fr)!important;}
  .active-row-badge{font-size:9px;padding:3px 6px;}
}
@media (max-width:900px){
  .pro-users-table{overflow-x:visible!important;}
  .pro-user-form{grid-template-columns:1fr!important;}
  .user-id-cell{justify-content:space-between;}
}

/* 2026-06-29: remove display name column, use username only */
.pro-users-head,.pro-user-form{
  grid-template-columns:76px minmax(220px,1.25fr) minmax(300px,1.35fr) minmax(160px,.8fr) minmax(170px,.75fr)!important;
  min-width:0!important;width:100%!important;
}
.username-cell{display:flex!important;align-items:center;gap:8px;min-width:0;}
.username-cell input{min-width:0;}
.user-id-cell{justify-content:flex-start!important;}
@media (max-width:1100px){
  .pro-users-head,.pro-user-form{grid-template-columns:60px minmax(160px,1fr) minmax(220px,1.2fr) minmax(120px,.75fr) minmax(140px,.75fr)!important;}
}
@media (max-width:900px){
  .pro-users-head{display:none!important;}
  .pro-user-form{grid-template-columns:1fr!important;}
  .username-cell{align-items:flex-start!important;flex-direction:column!important;}
}


/* 2026-06-29: add old password column for secure password changes */
.pro-users-head,.pro-user-form{
  grid-template-columns:70px minmax(180px,1.1fr) minmax(170px,1fr) minmax(260px,1.35fr) minmax(150px,.8fr) minmax(160px,.75fr)!important;
  min-width:0!important;width:100%!important;
}
.old-password-cell{min-width:0;}
.old-password-cell input{width:100%;}
@media (max-width:1200px){
  .pro-users-head,.pro-user-form{grid-template-columns:60px minmax(150px,1fr) minmax(145px,.9fr) minmax(220px,1.2fr) minmax(120px,.75fr) minmax(140px,.7fr)!important;}
}
@media (max-width:900px){
  .pro-users-head{display:none!important;}
  .pro-user-form{grid-template-columns:1fr!important;}
}

.login-links{margin-top:14px;text-align:center;font-weight:900;}
.login-links a{color:#0f766e;text-decoration:none;border-bottom:1px solid rgba(15,118,110,.35);}
.login-links a:hover{color:#8a2f14;border-color:rgba(138,47,20,.45);}
.login-success{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-weight:800;}

/* Firma listesi arama alanini daha belirgin hale getirir */
.customer-picker-panel .customer-picker-search.search-input {
    width: min(420px, 100%);
    max-width: 420px;
    min-height: 46px;
    padding: 0 18px 0 44px;
    border: 1px solid #c8d6e3;
    border-radius: 16px;
    background: #ffffff;
    color: #0b2239;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(10, 31, 55, 0.07);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7d90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px 18px;
}

.customer-picker-panel .customer-picker-search.search-input::placeholder {
    color: #64748b;
    opacity: 1;
    font-weight: 850;
}

.customer-picker-panel .customer-picker-search.search-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14), 0 10px 24px rgba(10, 31, 55, 0.08);
}

@media (max-width: 700px) {
    .customer-picker-panel .customer-picker-search.search-input {
        width: 100%;
        max-width: none;
    }
}

/* Siparis sayfasi: kart yerine profesyonel satir/tablo gorunumu */
.order-list-panel {
    overflow: hidden;
}

.order-list-header {
    align-items: center;
    gap: 18px;
}

.order-list-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.order-search-input {
    width: min(420px, 100%);
    min-height: 46px;
    padding: 0 18px 0 44px;
    border: 1px solid #c8d6e3;
    border-radius: 16px;
    background: #ffffff;
    color: #0b2239;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(10, 31, 55, 0.07);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7d90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px 18px;
}

.order-search-input::placeholder {
    color: #64748b;
    opacity: 1;
    font-weight: 850;
}

.order-search-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14), 0 10px 24px rgba(10, 31, 55, 0.08);
}

.order-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.order-row-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    color: #12233a;
    table-layout: fixed;
}


.order-row-table th:nth-child(1),
.order-row-table td:nth-child(1) { width: 280px; }

.order-row-table th:nth-child(2),
.order-row-table td:nth-child(2) { width: 130px; }

.order-row-table th:nth-child(3),
.order-row-table td:nth-child(3) { width: 310px; }

.order-row-table th:nth-child(4),
.order-row-table td:nth-child(4) { width: 210px; }

.order-row-table th:nth-child(5),
.order-row-table td:nth-child(5) { width: 120px; }

.order-row-table th:nth-child(6),
.order-row-table td:nth-child(6) { width: 120px; }

.order-row-table thead th {
    padding: 15px 16px;
    background: linear-gradient(135deg, #24344f, #3a315f);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
    text-align: left;
    text-transform: uppercase;
}

.order-row-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 45, 75, .08);
    background: #ffffff;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 750;
}

.order-row-table tbody tr:nth-child(even) td {
    background: #f8fbfd;
}

.order-row-table tbody tr:hover td {
    background: #eefbf8;
}

.order-no-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9fbf8;
    color: #0f766e;
    font-weight: 950;
    text-decoration: none;
}

.order-no-link:hover {
    color: #8a2f14;
    background: #fff3ed;
}

.order-title-text {
    display: block;
    max-width: 360px;
    overflow: hidden;
    color: #0b2239;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-row-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 14px;
    background: #eef6f8;
    color: #244158;
    font-size: 12px;
    font-weight: 900;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
}

.order-row-pill.muted {
    background: #f2f5f7;
    color: #64748b;
}

@media (max-width: 900px) {
    .order-list-header {
        align-items: stretch;
    }
    .order-list-tools {
        width: 100%;
        justify-content: flex-start;
    }
    .order-search-input {
        width: 100%;
    }
}


/* Login page company logo */
.login-logo.login-logo-image {
    background: #ffffff;
    color: var(--brand);
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
    overflow: hidden;
}
.login-logo.login-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}


/* Header back button */
.topbar-inner {
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
}
.header-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.header-back-link:hover {
    background: rgba(255,255,255,0.17);
    border-color: rgba(255,255,255,0.30);
    transform: translateY(-1px);
}
@media (max-width: 1100px) {
    .topbar-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    .header-back-link {
        order: -1;
        justify-self: start;
    }
    .brand {
        grid-column: 1 / -1;
    }
}


/* Empty BOM category add-row helper */
.empty-category-block {
    border-style: dashed;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.empty-category-block > summary small {
    color: #7890a5;
}
.empty-category-block .mini-empty {
    margin: 10px 14px 0;
}
.empty-category-block .manual-row-box {
    margin-top: 10px;
}


/* Manual BOM add row available in every section */
.manual-row-select {
    margin: 0 0 14px !important;
    border-color: rgba(20, 184, 166, .30) !important;
    background: #f8fffd !important;
}
.manual-row-select > summary {
    color: #0f766e !important;
}
.manual-row-inline-select {
    grid-template-columns: 150px minmax(220px,1fr) 80px 100px 80px 80px 80px 90px auto !important;
}
@media(max-width:1200px){
    .manual-row-inline-select { grid-template-columns: 1fr 1fr !important; }
    .manual-row-inline-select button { grid-column: 1 / -1; }
}

/* Price table manual save: no autosave while typing */
.price-manual-save-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.price-save-button {
    margin-left: 8px;
}

/* 2026-06-30: Price table add/edit rows aligned with the table grid */
.pro-price-table tbody tr.price-section-add-row td{
  padding:10px 10px!important;
  background:#f6fffd!important;
  border-top:1px solid rgba(20,184,166,.18)!important;
  border-bottom:1px solid rgba(20,184,166,.18)!important;
  vertical-align:middle!important;
}
.pro-price-table tbody tr.price-section-add-row td:first-child{
  border-left:5px solid #14b8a6!important;
}
.pro-price-table .price-add-input,
.pro-price-table .price-edit-row .table-input{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
}
.pro-price-table .price-add-row-button{
  width:100%!important;
  min-height:42px!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
.pro-price-table tr.price-row-unsaved td,
.pro-price-table tr.price-row-unsaved input,
.pro-price-table tr.price-row-unsaved button,
.pro-price-table tr.price-row-unsaved .price-calc-cell{
  font-style:italic!important;
}
.pro-price-table tr.price-row-unsaved td{
  background:#f0fdfa!important;
}
.pro-price-table tr.price-edit-row.price-row-unsaved td:first-child{
  border-left:5px solid #14b8a6!important;
}
.pro-price-table tr.price-row-unsaved .table-input{
  border-color:#5eead4!important;
  box-shadow:0 0 0 3px rgba(20,184,166,.10)!important;
}
.pro-price-table .price-calc-cell.muted{
  color:#64748b!important;
  font-weight:900!important;
  text-align:center!important;
}
.price-section-add,
.price-section-add-fields{display:none!important;}
@media(max-width:980px){
  .pro-price-table .price-add-input,
  .pro-price-table .price-edit-row .table-input{height:40px!important;}
}


/* 2026-06-30: Price add row appears only after + Satır Ekle */
.pro-price-table tr.price-add-row-hidden{display:none!important;}
.price-show-add-row{
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.price-group-title span{min-width:0;}

/* 2026-06-30: keep price group rows inside the table, not floating/sticky */
.pro-price-table tbody tr.price-group-row th{
  position:static!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  z-index:auto!important;
  display:table-cell!important;
  background:#e2e8f0!important;
  color:#0f172a!important;
  border:1px solid #cbd5e1!important;
  border-radius:12px!important;
  padding:10px 14px!important;
  box-shadow:none!important;
}
.pro-price-table tbody tr.price-group-row{
  position:static!important;
  transform:none!important;
}
.pro-price-table tbody tr.price-group-row .price-group-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
}


/* Price table warning color contract: red = not in Malzeme Listesi, purple = price/value problem */
.price-one-head{background:#f3e8ff!important;color:#6b21a8!important;border:1px solid #d8b4fe!important;}
.pro-price-table tbody tr.price-edit-row.price-row-price-one td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(even) td{
    background:#f5edff!important;
    border-color:#d8b4fe!important;
    color:#3b255f!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-price-one td:first-child{border-left-color:#7c3aed!important;}
.pro-price-table tbody tr.price-edit-row.price-row-price-one .table-input{border-color:#c084fc!important;background:#fff!important;}
.price-row-price-one .price-calc-warning{color:#6b21a8!important;}


/* FINAL price warning fix: purple means price/value problem, red only means not in Malzeme Listesi */
.pro-price-table tbody tr.price-edit-row.price-row-price-one td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-price-one:nth-child(even) td{
    background:#f5edff!important;
    border-color:#d8b4fe!important;
    color:#3b255f!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-price-one td:first-child{border-left-color:#7c3aed!important;}
.pro-price-table tbody tr.price-edit-row.price-row-price-one .table-input,
.pro-price-table tbody tr.price-edit-row.price-row-price-one .price-name-input{
    border-color:#c084fc!important;
    background:#fff!important;
    color:#3b255f!important;
}
.price-row-price-one .price-calc-warning{color:#6b21a8!important;}


/* Manual override fix: fiyat 1/sorunlu fiyat mor, liste disi kirmizi kalir */
.pro-price-table tbody tr.price-edit-row.price-row-price-one:not(.price-row-missing-bom) .price-name-input,
.pro-price-table tbody tr.price-edit-row.price-row-special-missing:not(.price-row-missing-bom) .price-name-input {
    color: #6b21a8 !important;
    border-color: #c084fc !important;
}
.pro-price-table tbody tr.price-edit-row.price-row-missing-bom .price-name-input {
    color: #b91c1c !important;
}

/* Quantity warning: Miktar and Kasa Basi cannot both be empty or zero */
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:not(.price-row-missing-bom) td,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:not(.price-row-missing-bom):nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:not(.price-row-missing-bom):nth-child(even) td{
    background:#f5f0ff!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:not(.price-row-missing-bom) td:first-child{
    border-left-color:#7c3aed!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:not(.price-row-missing-bom) .table-input{
    border-color:#c084fc!important;
    background:#fff!important;
}
.price-row-qty-missing .price-calc-warning,
.price-qty-warning{
    display:block;
    margin-top:4px;
    color:#6b21a8!important;
    font-size:11px;
    font-weight:900;
}

/* FINAL qty warning row highlight: color the whole row, not only the message text */
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing td,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:nth-child(odd) td,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:nth-child(even) td,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing:hover td{
    background:#f5edff!important;
    border-top:1px solid #d8b4fe!important;
    border-bottom:1px solid #d8b4fe!important;
    color:#3b255f!important;
    box-shadow:inset 0 0 0 9999px rgba(124,58,237,.035)!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing td:first-child{
    border-left:5px solid #7c3aed!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing td:last-child{
    border-right:1px solid #d8b4fe!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing .table-input,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing .price-name-input{
    border-color:#c084fc!important;
    background:#fff!important;
    color:#3b255f!important;
}
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing .price-qty-warning,
.pro-price-table tbody tr.price-edit-row.price-row-qty-missing .price-calc-warning{
    color:#6b21a8!important;
}

/* Sac parca levhadan buyuk / uygun levha yok uyarisi */
.sheet-oversize-banner{background:#fff7ed!important;border-bottom-color:#fed7aa!important;color:#9a3412!important}
.sheet-oversize-banner .warning-name-chip{background:#ffedd5!important;border-color:#fdba74!important;color:#9a3412!important}
.sheet-fit-error-row td{background:#fff7ed!important;color:#9a3412!important;font-weight:950!important}
.sheet-fit-error-row td:first-child{box-shadow:inset 4px 0 0 #f97316!important}

/* Material price table: widen only the material/name column */
.pro-price-table thead th:first-child,
.pro-price-table tbody td.price-name-cell {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
}
.pro-price-table .price-name-cell .price-name-input,
.pro-price-table .price-name-cell .table-input {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}


/* ==========================================================
   2026-07-15 - Login redesign only
   Professional login page aligned with the Çözsan visual identity.
   Does not change calculation or system logic.
   ========================================================== */
body.metal-login-theme{
  min-height:100vh;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow-x:hidden;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#edf3ff;
  background:
    radial-gradient(980px 620px at 10% 4%, rgba(34,197,94,.12) 0%, rgba(34,197,94,0) 56%),
    radial-gradient(860px 620px at 92% 12%, rgba(14,165,233,.16) 0%, rgba(14,165,233,0) 54%),
    radial-gradient(780px 540px at 84% 100%, rgba(6,182,212,.12) 0%, rgba(6,182,212,0) 56%),
    linear-gradient(180deg, #061423 0%, #0b2137 48%, #12314a 100%);
}
body.metal-login-theme::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg, rgba(255,255,255,.018), rgba(255,255,255,0) 32%, rgba(255,255,255,.02) 60%, rgba(255,255,255,0) 100%);
}
body.metal-login-theme .mm-login-shell{
  position:relative;
  z-index:1;
  width:min(1320px,100%);
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:24px;
  align-items:stretch;
}
body.metal-login-theme .mm-login-intro,
body.metal-login-theme .mm-login-form-side{
  position:relative;
  overflow:hidden;
  min-height:690px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  box-shadow:0 24px 70px rgba(0,0,0,.32);
  backdrop-filter:blur(18px);
}
body.metal-login-theme .mm-login-intro{padding:42px;display:flex;flex-direction:column;justify-content:space-between;}
body.metal-login-theme .mm-login-intro::before{
  content:"";position:absolute;width:360px;height:360px;right:-130px;top:-130px;border-radius:50%;
  background:radial-gradient(circle,rgba(124,109,242,.24),transparent 68%);
}
body.metal-login-theme .mm-login-intro::after{
  content:"";position:absolute;width:330px;height:330px;left:-130px;bottom:-140px;border-radius:50%;
  background:radial-gradient(circle,rgba(94,163,255,.20),transparent 68%);
}
body.metal-login-theme .mm-login-intro>*{position:relative;z-index:1;}
body.metal-login-theme .mm-login-brand{display:flex;align-items:center;gap:16px;}
body.metal-login-theme .mm-login-brand .login-logo{
  width:86px;height:86px;border-radius:26px;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;
  background:linear-gradient(135deg, rgba(124,109,242,.26), rgba(94,163,255,.16));
  border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:#fff;
}
body.metal-login-theme .mm-login-brand .login-logo img{width:100%;height:100%;object-fit:contain;padding:12px;display:block;}
body.metal-login-theme .mm-login-brand strong{display:block;font-size:26px;letter-spacing:-.03em;color:#fff;}
body.metal-login-theme .mm-login-brand span{display:block;margin-top:5px;color:rgba(237,243,255,.76);font-size:14px;}
body.metal-login-theme .mm-login-copy{margin-top:18px;}
body.metal-login-theme .mm-login-kicker{display:none !important;}
body.metal-login-theme .mm-login-copy h1{margin:22px 0 16px;max-width:720px;color:#fff;font-size:clamp(40px,5vw,66px);line-height:1.03;letter-spacing:-.055em;}
body.metal-login-theme .mm-login-copy h1 em{font-style:normal;color:transparent;background:linear-gradient(90deg,#d6dbff,#8fbaff);-webkit-background-clip:text;background-clip:text;}
body.metal-login-theme .mm-login-copy p{margin:0;max-width:620px;color:rgba(237,243,255,.76);font-size:17px;line-height:1.82;}
body.metal-login-theme .mm-login-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:34px;}
body.metal-login-theme .mm-login-features>div{padding:17px;border-radius:19px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.045);}
body.metal-login-theme .mm-login-features b{display:block;color:#fff;font-size:14px;margin-bottom:7px;}
body.metal-login-theme .mm-login-features span{display:block;color:rgba(237,243,255,.74);font-size:13px;line-height:1.6;}
body.metal-login-theme .mm-login-form-side{padding:36px;display:flex;align-items:center;justify-content:center;}
body.metal-login-theme .mm-login-form-side::after{content:"";position:absolute;width:280px;height:280px;right:-100px;bottom:-100px;border-radius:50%;background:radial-gradient(circle,rgba(124,109,242,.16),transparent 68%);}
body.metal-login-theme .mm-login-form-side .login-card{
  width:100%;max-width:470px;min-height:auto;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none;position:relative;z-index:1;
}
body.metal-login-theme .login-heading small{display:block;color:#c9d3ff;font-size:12px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:7px;}
body.metal-login-theme .login-heading h2{margin:0;color:#fff;font-size:34px;line-height:1.1;}
body.metal-login-theme .login-heading p{margin:10px 0 26px;color:rgba(237,243,255,.76);font-size:14px;line-height:1.7;}
body.metal-login-theme .login-form{display:grid;gap:16px;}
body.metal-login-theme .login-form label{display:grid;gap:8px;color:#f8fbff;font-weight:700;font-size:13px;}
body.metal-login-theme .login-input-wrap{position:relative;}
body.metal-login-theme .login-input-wrap>span{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:16px;opacity:.8;pointer-events:none;}
body.metal-login-theme .login-form input{
  width:100%;min-height:52px;padding:0 14px 0 46px;border-radius:15px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);color:#fff;outline:none;transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
body.metal-login-theme .login-form input::placeholder{color:rgba(234,241,255,.45);}
body.metal-login-theme .login-form input:focus{border-color:rgba(148,163,255,.44);background:rgba(255,255,255,.11);box-shadow:0 0 0 4px rgba(109,103,234,.14);}
body.metal-login-theme .login-submit,
body.metal-login-theme .login-form .btn-primary{
  width:100%;min-height:54px;border:none !important;border-radius:16px !important;background:linear-gradient(135deg, #6d67ea, #4e85e9) !important;color:#fff !important;font-weight:900;letter-spacing:.02em;box-shadow:0 16px 30px rgba(78,133,233,.22);
}
body.metal-login-theme .login-alert,
body.metal-login-theme .login-success,
body.metal-login-theme .login-hint,
body.metal-login-theme .login-security-note{
  border-radius:16px;padding:13px 14px;font-size:13px;line-height:1.6;
}
body.metal-login-theme .login-alert{background:rgba(255,71,87,.16);border:1px solid rgba(255,71,87,.24);color:#ffe5ea;margin-bottom:14px;}
body.metal-login-theme .login-success{background:rgba(46,204,113,.16);border:1px solid rgba(46,204,113,.24);color:#eafff2;margin-bottom:14px;}
body.metal-login-theme .login-hint,
body.metal-login-theme .login-security-note{margin-top:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:rgba(237,243,255,.76);}
body.metal-login-theme .login-links{display:flex;justify-content:center;margin-top:16px;}
body.metal-login-theme .login-links a{color:#dbe4ff;text-decoration:none;font-weight:800;}
body.metal-login-theme .login-links a:hover{text-decoration:underline;}
@media(max-width:1080px){
  body.metal-login-theme .mm-login-shell{grid-template-columns:1fr;max-width:760px;}
  body.metal-login-theme .mm-login-intro,body.metal-login-theme .mm-login-form-side{min-height:auto;}
}
@media(max-width:680px){
  body.metal-login-theme{padding:12px;}
  body.metal-login-theme .mm-login-intro,body.metal-login-theme .mm-login-form-side{padding:24px;border-radius:24px;}
  body.metal-login-theme .mm-login-brand .login-logo{width:72px;height:72px;border-radius:22px;}
  body.metal-login-theme .mm-login-brand strong{font-size:22px;}
  body.metal-login-theme .mm-login-copy{margin-top:30px;}
  body.metal-login-theme .mm-login-copy h1{font-size:38px;}
  body.metal-login-theme .mm-login-copy p{font-size:15px;}
  body.metal-login-theme .mm-login-features{grid-template-columns:1fr;}
  body.metal-login-theme .login-heading h2{font-size:29px;}
}

/* Manufacturing synchronization status */
.btn-manufacturing-warning{
  background:linear-gradient(135deg,#f4b400,#d99600)!important;
  border-color:#c88700!important;
  color:#241800!important;
  box-shadow:0 9px 24px rgba(217,150,0,.24)!important;
}
.btn-manufacturing-warning:hover{
  background:linear-gradient(135deg,#ffc21a,#e6a400)!important;
  transform:translateY(-1px);
}
.manufacturing-update-note{
  display:flex;
  align-items:center;
  gap:10px;
  width:max-content;
  max-width:100%;
  margin:10px 0 0;
  padding:9px 11px;
  border:1px solid #ecd28b;
  border-radius:10px;
  background:#fff9e8;
  color:#6f5200;
  box-shadow:none;
}
.manufacturing-update-note .manufacturing-note-icon{
  width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  flex:0 0 22px;background:#efb81c;color:#fff;font-size:13px;font-weight:900;
}
.manufacturing-update-note>div{min-width:0}
.manufacturing-update-note strong{display:block;font-size:12px;line-height:1.35;color:#5e4500}
.manufacturing-update-note small{display:block;margin-top:1px;font-size:11px;line-height:1.4;color:#856a1d}
.manufacturing-update-note form{margin:0 0 0 6px;flex:0 0 auto}
.manufacturing-update-note button{
  width:24px;height:24px;border:0;border-radius:7px;cursor:pointer;
  background:transparent;color:#82661b;font-size:18px;line-height:22px;
  display:flex;align-items:center;justify-content:center;padding:0;
}
.manufacturing-update-note button:hover{background:rgba(130,102,27,.10)}
@media(max-width:700px){
  .manufacturing-update-note{width:100%;align-items:flex-start}
  .manufacturing-update-note form{margin-left:auto}
}


.order-table-row[data-row-href] {
    cursor: pointer;
}

.order-table-row[data-row-href]:focus {
    outline: 3px solid rgba(20, 184, 166, 0.35);
    outline-offset: -3px;
}


/* 2026-07-16: separate price and percentage visually in price distribution legend. */
.product-price-donut-section .price-donut-legend em{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.product-price-donut-section .price-donut-legend .price-amount{
  color:#2563eb!important;
  font-weight:700!important;
}
.product-price-donut-section .price-donut-legend .price-percent{
  color:#64748b!important;
  font-weight:600!important;
}

/* 2026-07-16: preserve full material names and keep price details clear. */
.product-price-donut-section .price-donut-legend span{
  display:grid!important;
  grid-template-columns:12px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:8px!important;
  row-gap:5px!important;
  align-items:center!important;
  min-height:52px!important;
  padding:8px 10px!important;
}
.product-price-donut-section .price-donut-legend i{
  grid-column:1!important;
  grid-row:1!important;
}
.product-price-donut-section .price-donut-legend b{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.2!important;
}
.product-price-donut-section .price-donut-legend em{
  grid-column:2!important;
  grid-row:2!important;
  justify-self:start!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}

/* 2026-07-16: keep amount and percent fully inside their own inline badges. */
.product-price-donut-section .price-donut-legend > span > em{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  width:auto!important;
  max-width:100%!important;
}
.product-price-donut-section .price-donut-legend > span > em > span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  min-width:0!important;
  width:auto!important;
  min-height:30px!important;
  height:30px!important;
  padding:0 9px!important;
  margin:0!important;
  gap:0!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#ffffff!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:visible!important;
  line-height:1!important;
}
.product-price-donut-section .price-donut-legend > span > em > .price-amount,
.product-price-donut-section .price-donut-legend > span > em > .price-percent{
  flex:0 0 auto!important;
}

/* 2026-07-16: widen only the product dimension card */
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
  grid-template-columns:minmax(88px,.85fr) minmax(88px,.85fr) minmax(96px,.9fr) minmax(170px,1.55fr)!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip span:last-child{
  min-width:170px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip span:last-child b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:900px){
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
    grid-template-columns:1fr 1fr!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip span:last-child{
    min-width:0!important;
  }
}
@media(max-width:560px){
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
    grid-template-columns:1fr!important;
  }
}

/* Horizontal order cards with product previews */
.order-rect-list{display:grid;gap:14px}
.order-rect-card{border:1px solid #dfe6ef;border-radius:18px;background:#fff;padding:16px 18px;box-shadow:0 8px 24px rgba(18,32,56,.06)}
.order-rect-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.order-rect-main-link{text-decoration:none;color:inherit;min-width:0}
.order-rect-main-link small{display:block;color:#7a8798;font-weight:800;font-size:11px;letter-spacing:.04em}
.order-rect-main-link h3{margin:2px 0 0;font-size:18px;color:#142033}
.order-rect-statuses{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.approval-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 11px;border-radius:999px;background:#e7f8ed;color:#15803d;border:1px solid #b7e7c6;font-size:12px;font-weight:900;font-style:normal;white-space:nowrap}
.approval-badge.small{padding:3px 7px;font-size:10px}
.order-rect-meta{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 10px;padding:9px 12px;border-radius:12px;background:#f7f9fc}
.order-rect-meta span{display:grid;gap:1px;min-width:95px}.order-rect-meta small{font-size:10px;color:#7d8999}.order-rect-meta b{font-size:12px;color:#243147}
.order-horizontal-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;overflow:visible;padding:4px 0 0;width:100%}
.order-mini-product{min-width:0;width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e4e9f1;border-radius:14px;background:#fbfcfe;text-decoration:none;color:inherit;transition:.2s ease;box-sizing:border-box}
.order-mini-product:hover{transform:translateY(-1px);border-color:#c8d4e5;box-shadow:0 7px 16px rgba(18,32,56,.08)}
.order-mini-product-image{width:58px;height:50px;flex:0 0 58px;border-radius:10px;overflow:hidden;background:#eef2f7;display:grid;place-items:center;color:#8793a5;font-size:9px}
.order-mini-product-image img{width:100%;height:100%;object-fit:cover}
.order-mini-product-info{min-width:0;display:grid;gap:3px;flex:1 1 auto}.order-mini-product-info strong{font-size:12px;color:#162238;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-mini-product-info small{font-size:10px;color:#748195}
.order-no-products{padding:12px;border-radius:12px;background:#f7f9fc;color:#7b8798;font-size:12px}
.product-top-right{display:flex;align-items:center;gap:6px}.product-detail-approval{margin-top:8px;width:max-content}
@media(max-width:960px){.order-horizontal-products{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
@media(max-width:760px){.order-rect-head{align-items:flex-start;flex-direction:column}.order-rect-statuses{justify-content:flex-start}.order-horizontal-products{grid-template-columns:1fr}.order-mini-product{min-width:0}}

/* Price revision tabs */
.price-revision-shell{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:12px 14px;border:1px solid #dfe7f1;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(18,32,56,.05)}
.price-revision-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px;min-width:0}
.price-revision-tab{flex:0 0 auto;display:grid;gap:3px;min-width:118px;padding:9px 12px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc;text-decoration:none;color:#334155}
.price-revision-tab span{font-size:12px;font-weight:900}.price-revision-tab em{font-size:9px;font-style:normal;color:#15803d;font-weight:900}
.price-revision-tab.active{background:#14213a;border-color:#14213a;color:#fff;box-shadow:0 7px 16px rgba(20,33,58,.18)}
.price-revision-shell>form{display:flex;align-items:center;gap:7px;flex:0 0 auto}.price-revision-shell>form input{width:190px;padding:8px 10px;border:1px solid #d7e0eb;border-radius:10px}
.manufacturing-revision-form{display:flex!important;align-items:flex-end!important;gap:7px!important}.manufacturing-revision-form label{display:grid;gap:3px}.manufacturing-revision-form label small{font-size:9px;color:#64748b;font-weight:800}.manufacturing-revision-form select{min-width:140px;padding:7px 9px;border:1px solid #d7e0eb;border-radius:9px;background:#fff;font-size:11px}
.order-approval-filters{display:flex;gap:5px;padding:3px;border-radius:10px;background:#f1f5f9}.order-approval-filters button{border:0;background:transparent;padding:7px 10px;border-radius:8px;color:#64748b;font-size:11px;font-weight:900;cursor:pointer}.order-approval-filters button.active{background:#14213a;color:#fff}
@media(max-width:850px){.price-revision-shell{align-items:stretch;flex-direction:column}.price-revision-shell>form{width:100%}.price-revision-shell>form input{flex:1;width:auto}.manufacturing-revision-form{flex-wrap:wrap}.order-list-tools{flex-wrap:wrap}.order-approval-filters{order:3;width:100%}}


/* Chrome-style price revision tabs */
.chrome-revision-shell{padding:8px 10px 0;background:#e9eef5;border-radius:15px 15px 10px 10px;overflow:hidden}
.chrome-revision-tabs{display:flex;align-items:flex-end;gap:2px;overflow-x:auto;padding:0 2px;scrollbar-width:thin}
.chrome-revision-tab{position:relative;min-width:132px;max-width:210px;height:46px;padding:8px 15px 7px;border:0;border-radius:12px 12px 0 0;background:rgba(255,255,255,.48);box-shadow:none;display:flex;flex-direction:column;justify-content:center;gap:2px;color:#566273;transition:.16s ease}
.chrome-revision-tab:hover{background:rgba(255,255,255,.72)}
.chrome-revision-tab.active{z-index:2;background:#fff;color:#14213a;border:0;box-shadow:0 -2px 8px rgba(18,32,56,.08)}
.chrome-revision-tab.active:before,.chrome-revision-tab.active:after{content:"";position:absolute;bottom:0;width:14px;height:14px;background:transparent}
.chrome-revision-tab.active:before{left:-14px;border-bottom-right-radius:14px;box-shadow:7px 7px 0 7px #fff}
.chrome-revision-tab.active:after{right:-14px;border-bottom-left-radius:14px;box-shadow:-7px 7px 0 7px #fff}
.chrome-revision-tab span{position:relative;z-index:3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:900}
.chrome-revision-tab em{position:relative;z-index:3;display:flex;align-items:center;gap:4px;font-size:9px;color:#15803d;font-style:normal;font-weight:900;white-space:nowrap}
.chrome-revision-tab em i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.13)}
.chrome-revision-add-form{flex:0 0 auto;margin:0 0 6px 6px!important;display:block!important}
.chrome-revision-plus{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#334155;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:.15s ease}
.chrome-revision-plus:hover{background:rgba(255,255,255,.72);transform:rotate(90deg)}

/* Revision choice shown as compact tabs before manufacturing send */
.chrome-send-revision-form{align-items:center!important;gap:8px!important}
.chrome-send-picker{display:grid;gap:4px;min-width:0}
.chrome-send-picker>small{font-size:9px;color:#64748b;font-weight:900}
.chrome-send-tabs{display:flex;align-items:flex-end;gap:2px;padding:4px 5px 0;border:1px solid #d9e3ef;border-radius:11px;background:#eaf0f6;max-width:360px;overflow-x:auto}
.chrome-send-tab{position:relative;flex:0 0 auto;cursor:pointer}
.chrome-send-tab input{position:absolute;opacity:0;pointer-events:none}
.chrome-send-tab span{display:block;min-width:78px;max-width:135px;padding:7px 11px 8px;border-radius:9px 9px 0 0;color:#64748b;font-size:10px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chrome-send-tab:hover span{background:rgba(255,255,255,.55)}
.chrome-send-tab input:checked+span{background:#fff;color:#14213a;box-shadow:0 -1px 6px rgba(18,32,56,.08)}
@media(max-width:900px){.chrome-send-revision-form{width:100%;flex-wrap:wrap}.chrome-send-picker{width:100%}.chrome-send-tabs{max-width:100%}.chrome-revision-tab{min-width:115px}}


/* 2026-07-21: browser-style price tabs directly under product approval */
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id .chrome-revision-shell{
  width:100%;
  max-width:100%;
  margin:10px 0 0!important;
  padding:7px 8px 0!important;
  border:1px solid #d9e2ec!important;
  border-bottom-color:#fff!important;
  border-radius:13px 13px 0 0!important;
  background:#e8edf3!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id .chrome-revision-tabs{
  width:100%;
  max-width:100%;
  min-width:0;
  padding:0 2px!important;
  gap:2px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id .chrome-revision-tab{
  min-width:112px;
  max-width:170px;
  height:42px;
  padding:7px 13px 6px;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id .chrome-revision-add-form{
  margin:0 0 5px 5px!important;
  flex:0 0 auto!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id .chrome-revision-plus{
  width:32px;
  height:32px;
  font-size:23px;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{
  overflow:visible!important;
}
@media(max-width:1350px){
  .product-workspace-header.panel.world-product-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px minmax(280px,1.15fr) minmax(330px,1.15fr) minmax(230px,auto)!important;
  }
}

/* Final browser-like price tabs: blank add, delete, manufacturing picker */
.chrome-revision-tab{padding:0!important;display:flex!important;flex-direction:row!important;align-items:stretch!important;overflow:visible}
.chrome-revision-link{position:relative;z-index:3;display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center;gap:2px;padding:8px 34px 7px 15px;color:inherit;text-decoration:none}
.chrome-revision-tab:not(:has(.chrome-revision-delete-form)) .chrome-revision-link{padding-right:15px}
.chrome-revision-delete-form{position:absolute;z-index:5;right:7px;top:8px;margin:0!important}
.chrome-revision-close{width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:#64748b;font-size:17px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.chrome-revision-close:hover{background:rgba(239,68,68,.12);color:#dc2626}
.chrome-revision-tab.active .chrome-revision-close{color:#475569}
.manufacturing-revision-dialog{width:min(560px,calc(100vw - 28px));border:0;border-radius:18px;padding:0;box-shadow:0 30px 80px rgba(15,23,42,.32);color:#14213a}
.manufacturing-revision-dialog::backdrop{background:rgba(15,23,42,.48);backdrop-filter:blur(3px)}
.manufacturing-revision-dialog>form{padding:18px}
.manufacturing-revision-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px}
.manufacturing-revision-dialog-head strong{display:block;font-size:17px}.manufacturing-revision-dialog-head small{display:block;margin-top:3px;color:#64748b;font-size:11px}
.manufacturing-revision-dialog-head>button{width:30px;height:30px;border:0;border-radius:50%;background:#f1f5f9;color:#475569;font-size:20px;cursor:pointer}
.manufacturing-revision-choice-list{display:grid;gap:8px;max-height:360px;overflow:auto}
.manufacturing-revision-choice{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc;cursor:pointer}
.manufacturing-revision-choice:has(input:checked){border-color:#0f9f8f;background:#ecfdf8;box-shadow:0 0 0 2px rgba(15,159,143,.10)}
.manufacturing-revision-choice input{accent-color:#0f9f8f}.manufacturing-revision-choice span{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1}.manufacturing-revision-choice b{font-size:13px}.manufacturing-revision-choice em{font-style:normal;color:#15803d;font-size:10px;font-weight:900}
.manufacturing-revision-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}


/* Production integration center + clear labor source separation */
.product-general-actions{gap:8px;align-items:center}.manufacturing-control-center{grid-column:1/-1;margin-top:14px;padding:14px 16px;border:1px solid #d7e2ec;border-radius:16px;background:linear-gradient(135deg,#f8fbfd,#eef6f7);display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 10px 28px rgba(15,40,60,.06)}
.manufacturing-control-info small{display:block;font-size:10px;font-weight:900;letter-spacing:.15em;color:#668092}.manufacturing-status-line{display:flex;align-items:center;gap:10px;margin-top:4px}.manufacturing-status-line strong{font-size:15px;color:#0e5c5b}.manufacturing-status-line span{font-size:13px;color:#526979}.manufacturing-control-info em{display:block;margin-top:4px;font-style:normal;font-size:11px;color:#78909d}.manufacturing-control-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.manufacturing-control-center.is-complete{border-color:#b9e2cf;background:linear-gradient(135deg,#f4fbf7,#eaf8f1)}.manufacturing-control-center.is-cancelled{border-color:#f0c8c8;background:#fff7f7}.manufacturing-control-center.is-unlinked{border-style:dashed;background:#fafbfc}
.labor-source-separation{border:1px solid #b7dccf;border-radius:16px;background:#f5fbf8;padding:16px;margin-bottom:18px}.labor-source-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.labor-source-title small{display:block;font-weight:900;letter-spacing:.14em;font-size:10px}.labor-source-title h3{margin:2px 0 3px;font-size:19px}.labor-source-title span{font-size:12px;color:#647987}.labor-source-title.actual small{color:#12816f}.labor-source-title.actual>b{background:#dff5ec;border:1px solid #bce8da;color:#0f6a5c;padding:8px 12px;border-radius:999px;white-space:nowrap}.labor-source-title.theoretical{margin:20px 0 10px;padding:14px 16px;border-radius:14px;background:#f5f7fb;border:1px solid #dce3ed}.labor-source-title.theoretical small{color:#5b6f8a}.actual-labor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.actual-labor-card{background:#fff;border:1px solid #d4e9e2;border-radius:14px;padding:14px;box-shadow:0 5px 16px rgba(17,86,74,.05)}.actual-labor-card small{display:inline-block;padding:3px 7px;border-radius:999px;background:#e6f7f1;color:#137160;font-weight:800;font-size:10px}.actual-labor-card h4{margin:8px 0 2px;font-size:16px}.actual-labor-card>div>span{font-weight:800;color:#1c4d49}.actual-labor-meta{display:flex;gap:14px;margin-top:12px;padding-top:10px;border-top:1px solid #edf2f0;font-size:11px;color:#71827e}.actual-labor-meta span{display:flex;flex-direction:column}.actual-labor-meta b{color:#253f3b}.actual-labor-card>a{display:inline-flex;margin-top:12px;font-size:12px;font-weight:800;color:#087d70;text-decoration:none}.actual-labor-empty{grid-column:1/-1;padding:18px;border:1px dashed #bcd8cf;border-radius:12px;color:#607d75;background:#fff}.labor-summary-card{border-color:#dfe5ee!important}
@media(max-width:900px){.manufacturing-control-center{align-items:flex-start;flex-direction:column}.manufacturing-control-actions{width:100%}.manufacturing-control-actions .btn{flex:1}.labor-source-title{flex-direction:column}.actual-labor-grid{grid-template-columns:1fr}}
.manual-actual-labor{margin-top:14px;padding-top:14px;border-top:1px solid #dbe9e4}.manual-actual-head small{display:block;color:#896b16;font-size:10px;font-weight:900;letter-spacing:.13em}.manual-actual-head strong{display:block;font-size:15px;margin-top:2px}.manual-actual-head span{font-size:11px;color:#718079}.manual-actual-row{display:grid;grid-template-columns:minmax(150px,1.2fr) 100px minmax(160px,1fr) 80px auto;gap:8px;align-items:center;margin-top:10px}.manual-actual-row input{min-width:0;padding:9px 10px;border:1px solid #d5dfdc;border-radius:9px;background:#fff}.manual-actual-row>span{font-size:11px;color:#6a7d76}.manual-actual-delete{display:flex;justify-content:flex-end;margin-top:-36px;margin-right:64px;pointer-events:none}.manual-actual-delete button{pointer-events:auto}.manual-actual-add{padding-top:10px;border-top:1px dashed #d9e3df}@media(max-width:900px){.manual-actual-row{grid-template-columns:1fr 90px}.manual-actual-row input[name=note]{grid-column:1/-1}.manual-actual-delete{margin:6px 0 0;justify-content:flex-start}}
/* Manufacturing status: in-progress projects are deliberately orange for quick recognition. */
.manufacturing-control-center.is-progress{border-color:#f3b46a;background:linear-gradient(135deg,#fffaf2,#fff0d9);box-shadow:0 10px 28px rgba(234,124,20,.11)}
.manufacturing-control-center.is-progress .manufacturing-status-line strong{color:#c65d06}
.actual-labor-donut .product-donut-head strong{color:#0f766e}

/* 2026-07-23: compact product header flow without changing behavior */
.product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-control-center{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  order:20!important;
  margin-top:2px!important;
  padding:11px 14px!important;
  min-height:0!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  order:21!important;
  width:min(100%,920px)!important;
  justify-self:start!important;
  margin:0!important;
  padding:7px 9px!important;
  grid-template-columns:auto minmax(280px,560px) auto!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-update-note{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  order:22!important;
  width:min(100%,760px)!important;
  max-width:760px!important;
  justify-self:start!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:10px 12px!important;
  flex-wrap:nowrap!important;
  white-space:normal!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-update-note>div{
  flex:1 1 auto!important;
  min-width:0!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-update-note strong,
.product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-update-note small{
  word-break:normal!important;
  overflow-wrap:break-word!important;
  white-space:normal!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-update-note form{
  margin-left:auto!important;
}
@media(max-width:900px){
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact{
    width:100%!important;
    grid-template-columns:1fr!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .manufacturing-update-note{
    width:100%!important;
    max-width:none!important;
  }
}

/* 2026-07-23: imalat, BOM ve güncelleme kartlarını ürün bilgilerinin hemen altına taşı. */
.product-top-operations-stack{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  width:100%!important;
  margin:10px 0 12px!important;
  align-items:start!important;
}
.product-top-operations-stack .manufacturing-control-center{
  width:100%!important;
  margin:0!important;
}
.product-top-operations-stack .product-bom-compact{
  width:min(920px,100%)!important;
  margin:0!important;
  justify-self:start!important;
}
.product-top-operations-stack .manufacturing-update-note,
.product-top-operations-stack .alert-panel{
  width:min(920px,100%)!important;
  max-width:none!important;
  margin:0!important;
  justify-self:start!important;
}
@media(max-width:900px){
  .product-top-operations-stack{margin-top:8px!important;gap:8px!important;}
  .product-top-operations-stack .product-bom-compact,
  .product-top-operations-stack .manufacturing-update-note,
  .product-top-operations-stack .alert-panel{width:100%!important;}
}

/* Unified compact manufacturing + BOM control beside price revision tabs */
.product-main-id .product-top-operations-stack.is-unified-compact{
  width:min(980px,100%);
  margin:10px 0 0!important;
  padding:9px!important;
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(390px,1.4fr)!important;
  gap:8px!important;
  align-items:center!important;
  border:1px solid #f1bf68!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fff9ed 0%,#fffdf8 56%,#effcf9 100%)!important;
  box-shadow:0 8px 22px rgba(92,67,15,.07)!important;
}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-center{
  width:auto!important;min-width:0!important;margin:0!important;padding:7px 9px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;border-radius:11px!important;
  display:grid!important;grid-template-columns:minmax(145px,1fr) auto!important;gap:8px!important;align-items:center!important;
}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-info small{font-size:8px!important;letter-spacing:.12em!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-status-line{gap:6px!important;flex-wrap:wrap!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-status-line strong{font-size:12px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-status-line span{font-size:10px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-info em{font-size:9px!important;margin-top:2px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-actions{display:flex!important;gap:5px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-actions>.btn,
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-actions>form>.btn{
 min-height:30px!important;padding:5px 9px!important;font-size:10px!important;border-radius:10px!important;
}
.product-main-id .product-top-operations-stack.is-unified-compact .product-bom-compact{
 width:auto!important;max-width:none!important;margin:0!important;padding:7px 9px!important;
 border:0!important;border-left:1px solid rgba(15,118,110,.18)!important;background:transparent!important;
 display:grid!important;grid-template-columns:auto minmax(220px,1fr) auto!important;gap:7px!important;align-items:center!important;
}
.product-main-id .product-top-operations-stack.is-unified-compact .product-bom-title{min-width:72px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .product-bom-title small{font-size:8px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .product-bom-title strong{font-size:11px!important;white-space:nowrap!important}
.product-main-id .product-top-operations-stack.is-unified-compact .bom-import-inline-pro{min-width:0!important;gap:5px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .file-picker-pro{min-width:0!important;max-width:none!important;min-height:30px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .file-picker-pro span,
.product-main-id .product-top-operations-stack.is-unified-compact .file-picker-pro b{padding:5px 8px!important;font-size:9px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .product-bom-compact .btn{min-height:30px!important;padding:5px 9px!important;font-size:9px!important}
.product-main-id .product-top-operations-stack.is-unified-compact>.alert-panel,
.product-main-id .product-top-operations-stack.is-unified-compact>.manufacturing-update-note{
 grid-column:1/-1!important;width:100%!important;max-width:none!important;margin:0!important;padding:7px 10px!important;
}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-update-note strong{font-size:10px!important}
.product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-update-note small{font-size:9px!important}
@media(max-width:1200px){
 .product-main-id .product-top-operations-stack.is-unified-compact{grid-template-columns:1fr!important}
 .product-main-id .product-top-operations-stack.is-unified-compact .product-bom-compact{border-left:0!important;border-top:1px solid rgba(15,118,110,.18)!important}
}
@media(max-width:760px){
 .product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-center{grid-template-columns:1fr!important}
 .product-main-id .product-top-operations-stack.is-unified-compact .manufacturing-control-actions{justify-content:flex-start!important}
 .product-main-id .product-top-operations-stack.is-unified-compact .product-bom-compact{grid-template-columns:1fr!important}
}

/* 2026-07-23: keep price tabs and unified manufacturing/BOM card side by side. */
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:minmax(320px,500px) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  width:100%!important;
  margin-top:4px!important;
  order:30!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row>.chrome-revision-shell{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  align-self:start!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row>.product-top-operations-stack.is-unified-compact{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:8px 10px!important;
  grid-template-columns:minmax(300px,.9fr) minmax(430px,1.3fr)!important;
  align-self:start!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row .manufacturing-control-center{
  min-width:0!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row .manufacturing-control-actions{
  min-width:0!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row .manufacturing-control-actions .btn{
  white-space:nowrap!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row .product-bom-compact{
  min-width:0!important;
}
@media(max-width:1500px){
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{
    grid-template-columns:minmax(300px,430px) minmax(0,1fr)!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row>.product-top-operations-stack.is-unified-compact{
    grid-template-columns:1fr!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row .product-bom-compact{
    border-left:0!important;
    border-top:1px solid rgba(15,118,110,.18)!important;
  }
}
@media(max-width:1050px){
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{
    grid-template-columns:1fr!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row>.chrome-revision-shell{
    max-width:560px!important;
  }
}

/* 2026-07-23: lift the revision/production controls directly under product information. */
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{
  grid-row:2!important;
  order:0!important;
  margin-top:0!important;
  align-self:start!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats{
  grid-row:3!important;
}

/* 2026-07-23: use the empty space under the product summary on wide screens. */
@media (min-width:1181px){
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{
    grid-column:2 / 5!important;
    grid-row:2!important;
    position:relative!important;
    top:-62px!important;
    margin-bottom:-62px!important;
    z-index:3!important;
    align-items:start!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row>.product-top-operations-stack.is-unified-compact{
    align-self:start!important;
  }
}
@media (max-width:1180px){
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{
    top:auto!important;
    margin-bottom:0!important;
  }
}


/* 2026-07-23: keep price tabs under product identity; place operation card in a separate row to avoid overlap. */
.product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.product-header-operations-row{
  grid-column:2 / -1!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  margin:8px 0 0!important;
  padding:8px 10px!important;
  display:grid!important;
  grid-template-columns:minmax(300px,.9fr) minmax(430px,1.3fr)!important;
  gap:8px!important;
  align-items:center!important;
  border:1px solid #f1bf68!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fff9ed 0%,#fffdf8 56%,#effcf9 100%)!important;
  box-shadow:0 8px 22px rgba(92,67,15,.07)!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.product-header-operations-row .manufacturing-control-center{
  width:auto!important;min-width:0!important;margin:0!important;padding:7px 9px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;border-radius:11px!important;
  display:grid!important;grid-template-columns:minmax(145px,1fr) auto!important;gap:8px!important;align-items:center!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.product-header-operations-row .product-bom-compact{
  width:auto!important;max-width:none!important;margin:0!important;padding:7px 9px!important;
  border:0!important;border-left:1px solid rgba(15,118,110,.18)!important;background:transparent!important;
  display:grid!important;grid-template-columns:auto minmax(220px,1fr) auto!important;gap:7px!important;align-items:center!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id .chrome-revision-shell{
  position:relative!important;
  z-index:1!important;
  margin-top:10px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row{display:none!important;}
@media(max-width:1500px){
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.product-header-operations-row{grid-template-columns:1fr!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.product-header-operations-row .product-bom-compact{border-left:0!important;border-top:1px solid rgba(15,118,110,.18)!important;}
}
@media(max-width:900px){
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.product-header-operations-row{grid-column:1/-1!important;grid-row:auto!important;}
}

/* FINAL 2026-07-23: production status, BOM and price revisions in one clean card under product information. */
.product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  position:static!important;
  top:auto!important;
  order:50!important;
  width:100%!important;
  min-width:0!important;
  margin:10px 0 0!important;
  padding:0!important;
  display:block!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:14px 16px!important;
  display:grid!important;
  grid-template-columns:minmax(220px,.75fr) minmax(520px,1.8fr)!important;
  grid-template-areas:
    "info actions"
    "bom tabs"!important;
  column-gap:18px!important;
  row-gap:10px!important;
  align-items:center!important;
  border:1px solid #f1aa4d!important;
  border-radius:17px!important;
  background:linear-gradient(105deg,#fff9ef 0%,#fffdf8 58%,#effbf8 100%)!important;
  box-shadow:0 9px 24px rgba(89,62,8,.08)!important;
}
.integrated-production-card>.manufacturing-control-info{grid-area:info!important;min-width:0!important;align-self:start!important;}
.integrated-production-card>.manufacturing-control-actions{grid-area:actions!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;min-width:0!important;}
.integrated-production-card>.product-bom-compact{
  grid-area:bom!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:9px 10px!important;
  display:grid!important;
  grid-template-columns:auto minmax(210px,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  border:1px solid rgba(13,148,136,.16)!important;
  border-radius:13px!important;
  background:rgba(239,252,249,.82)!important;
  box-shadow:none!important;
}
.integrated-production-card>.price-revision-shell.inside-production-card{
  grid-area:tabs!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:7px 9px!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  border:1px solid #dbe4ef!important;
  border-radius:13px!important;
  background:#e8eef6!important;
  box-shadow:none!important;
}
.integrated-production-card>.price-revision-shell.inside-production-card .price-revision-tabs{width:100%!important;min-width:0!important;}
.integrated-production-card>.price-revision-shell.inside-production-card .price-revision-tab{min-width:118px!important;}
.integrated-production-card>.manufacturing-update-note,
.integrated-production-card>.alert-panel{grid-column:1 / -1!important;width:100%!important;max-width:none!important;margin:0!important;}
@media(max-width:1250px){
  .product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card{
    grid-template-columns:1fr!important;
    grid-template-areas:"info" "actions" "tabs" "bom"!important;
  }
  .integrated-production-card>.manufacturing-control-actions{justify-content:flex-start!important;}
}
@media(max-width:760px){
  .integrated-production-card>.product-bom-compact{grid-template-columns:1fr!important;}
  .integrated-production-card>.manufacturing-control-actions .btn{flex:1 1 auto!important;}
}

/* 2026-07-23: lift the compact BOM row into the unused space under project status */
@media (min-width:1251px){
  .integrated-production-card>.product-bom-compact{
    align-self:start!important;
    transform:translateY(-42px)!important;
    margin-bottom:-42px!important;
  }
}


/* 2026-07-23 FINAL LAYOUT TUNE: place BOM card beside the product strip and lift the analytics/tables upward without shrinking typography. */
.product-workspace-header.refined-product-info.product-info-pro-card{
  grid-template-columns:96px minmax(260px,1.03fr) minmax(370px,1.18fr) minmax(330px,1fr) auto!important;
  grid-template-rows:auto auto!important;
  align-items:start!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{
  grid-column:2!important;
  grid-row:1!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
  grid-column:3!important;
  grid-row:1!important;
  align-self:start!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
  grid-column:5!important;
  grid-row:1!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{
  grid-column:4!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:10px 11px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  border-radius:18px!important;
  border:1px solid rgba(15,118,110,.14)!important;
  background:linear-gradient(135deg,#f8fafc 0%,#f4fffb 100%)!important;
  box-shadow:0 10px 22px rgba(15,23,42,.045)!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .product-bom-title{
  min-width:108px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .product-bom-title strong{
  font-size:18px!important;
  line-height:1.05!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .product-bom-title small{
  font-size:11px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .bom-import-inline-pro{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .file-picker-pro{
  min-width:0!important;
  max-width:none!important;
  flex:1 1 auto!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .delete-bom-form{
  justify-self:end!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{
  grid-column:2 / -1!important;
  grid-row:2!important;
  margin:8px 0 0!important;
}
.product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card{
  grid-template-columns:minmax(230px,.78fr) minmax(420px,1.22fr)!important;
  grid-template-areas:
    "info actions"
    "tabs tabs"!important;
  padding:12px 14px!important;
  column-gap:16px!important;
  row-gap:10px!important;
}
.product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card>.product-bom-compact{
  display:none!important;
}
.integrated-production-card>.manufacturing-control-actions{
  justify-content:flex-end!important;
}
.integrated-production-card>.price-revision-shell.inside-production-card{
  grid-area:tabs!important;
  padding:8px 10px!important;
}
.integrated-production-card>.price-revision-shell.inside-production-card .price-revision-tab{
  min-width:126px!important;
}
@media(max-width:1650px){
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px minmax(240px,1fr) minmax(330px,1fr) minmax(290px,.95fr) auto!important;
  }
}
@media(max-width:1450px){
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px minmax(240px,1fr) minmax(320px,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
    grid-column:3!important;
    grid-row:1!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{
    grid-column:2 / 4!important;
    grid-row:2!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
    grid-column:4!important;
    grid-row:1 / span 2!important;
    align-self:start!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{
    grid-column:1 / -1!important;
    grid-row:3!important;
  }
}
@media(max-width:1080px){
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px 1fr!important;
    grid-template-rows:auto auto auto auto auto!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{grid-column:2!important;grid-row:1!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{grid-column:1 / -1!important;grid-row:2!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{grid-column:1 / -1!important;grid-row:3!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{grid-column:1 / -1!important;grid-row:4!important;justify-self:stretch!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{grid-column:1 / -1!important;grid-row:5!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .bom-import-inline-pro{flex-wrap:wrap!important;}
}
@media(max-width:760px){
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{
    grid-template-columns:1fr!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .delete-bom-form{
    justify-self:stretch!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .delete-bom-form .btn{
    width:100%!important;
  }
}


/* 2026-07-23 CORRECTION: no overlap. BOM sits in its own grid area beside the manufacturing row, never over the product strip. */
.product-workspace-header.refined-product-info.product-info-pro-card{
  grid-template-columns:96px minmax(250px,.95fr) minmax(560px,1.55fr) minmax(420px,1.05fr) auto!important;
  grid-template-rows:auto auto!important;
  gap:14px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-image-box{
  grid-column:1!important;grid-row:1 / span 2!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{
  grid-column:2!important;grid-row:1!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
  grid-column:3!important;grid-row:1!important;
  min-width:0!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
  grid-column:4 / 6!important;grid-row:1!important;
  justify-self:end!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{
  grid-column:2 / 4!important;
  grid-row:2!important;
  width:100%!important;
  margin:6px 0 0!important;
}
.product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card{
  grid-template-columns:minmax(210px,.72fr) minmax(360px,1.28fr)!important;
  grid-template-areas:
    "info actions"
    "tabs tabs"!important;
  padding:11px 13px!important;
  row-gap:9px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{
  grid-column:4 / 6!important;
  grid-row:2!important;
  align-self:start!important;
  width:100%!important;
  min-width:0!important;
  margin:6px 0 0!important;
  padding:11px 12px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  gap:8px!important;
  border-radius:16px!important;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .product-bom-title{min-width:118px!important;}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .product-bom-title strong{font-size:17px!important;}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .bom-import-inline-pro{min-width:0!important;flex-wrap:nowrap!important;}
.product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .file-picker-pro{min-width:0!important;max-width:none!important;}
@media(max-width:1580px){
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px minmax(240px,.9fr) minmax(500px,1.45fr) minmax(390px,1fr)!important;
    grid-template-rows:auto auto auto!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{grid-column:4!important;grid-row:1!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{grid-column:2 / 4!important;grid-row:2!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{grid-column:4!important;grid-row:2!important;}
}
@media(max-width:1320px){
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:96px minmax(240px,1fr) minmax(420px,1.35fr) auto!important;
    grid-template-rows:auto auto auto!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{grid-column:2 / 4!important;grid-row:2!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{grid-column:2 / 4!important;grid-row:3!important;}
}
@media(max-width:1080px){
  .product-workspace-header.refined-product-info.product-info-pro-card{grid-template-columns:96px 1fr!important;grid-template-rows:auto auto auto auto auto!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{grid-column:2!important;grid-row:1!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{grid-column:1 / -1!important;grid-row:2!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{grid-column:1 / -1!important;grid-row:3!important;justify-self:stretch!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{grid-column:1 / -1!important;grid-row:4!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{grid-column:1 / -1!important;grid-row:5!important;}
}


/* Product note: show saved product note clearly on the product detail card. */
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-note{
  margin-top:10px;
  padding:9px 11px;
  max-width:100%;
  border:1px solid rgba(245,158,11,.24);
  border-radius:12px;
  background:rgba(255,248,230,.78);
  color:#59440e;
  line-height:1.42;
  overflow-wrap:anywhere;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-note small{
  display:block;
  margin-bottom:3px;
  color:#a16207;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}
.product-workspace-header.refined-product-info.product-info-pro-card .product-detail-note span{
  display:block;
  color:#4b3a12;
  font-size:12px;
  font-weight:600;
}


/* 2026-07-23: keep the unit price value fully inside the donut circle without affecting the rest of the layout. */
.product-price-donut-section .price-cost-donut.price-cost-donut-unit-only,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only{
  width:132px!important;
  height:132px!important;
}
.product-price-donut-section .price-cost-donut.price-cost-donut-unit-only::after,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only::after{
  inset:23px!important;
}
.product-price-donut-section .price-cost-donut.price-cost-donut-unit-only span,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span{
  inset:23px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.product-price-donut-section .price-cost-donut.price-cost-donut-unit-only span b,
.product-price-donut-section .price-cost-donut-compact.price-cost-donut-unit-only span b{
  font-size:15px!important;
  line-height:1.08!important;
  white-space:nowrap!important;
  max-width:100%!important;
}

/* Product color / RAL preview */
.ral-input-wrap{display:flex;align-items:center;gap:10px}.ral-input-wrap input{flex:1;min-width:0}.ral-live-preview,.ral-color-swatch{width:42px;height:28px;border-radius:9px;border:1px solid rgba(15,45,75,.18);background:var(--ral-color,#eef2f6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 4px 12px rgba(15,45,75,.10);flex:0 0 auto}.ral-live-preview:empty{display:none}.ral-live-preview.is-visible{display:inline-block;background:var(--ral-color,#eef2f6)}.ral-live-preview.is-neutral,.ral-color-swatch.is-neutral{background:linear-gradient(135deg,#eef2f6 0 45%,#dfe5ea 45% 55%,#eef2f6 55%)}.ral-color-display{display:flex;align-items:center;gap:9px;min-height:28px}.ral-color-display .ral-color-swatch{width:34px;height:24px}.ral-color-display b{font-weight:900}.product-detail-strip .product-color-meta{min-width:145px}.color-form-block small{display:block;margin-top:6px;color:#718096;font-weight:650}


/* Product color card: keep it on the same row as code, quantity, weight and dimensions. */
@media (min-width: 981px){
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
    grid-template-columns:minmax(105px,.78fr) minmax(105px,.78fr) minmax(120px,.88fr) minmax(190px,1.42fr) minmax(170px,1.14fr)!important;
    align-items:stretch!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip > span{
    min-width:0!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip .product-color-meta{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
  }
}
.product-detail-strip .product-color-meta .ral-color-display{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:10px!important;
  min-height:28px!important;
}
.product-detail-strip .product-color-meta .ral-color-swatch{
  width:38px!important;
  height:26px!important;
  border-radius:8px!important;
  flex:0 0 38px!important;
}
.product-detail-strip .product-color-meta .ral-color-display b{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Manufacturing project status additions: company, order and product cards */
.manufacturing-project-status-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:5px 10px;border-radius:999px;font-size:12px;font-style:normal;font-weight:800;line-height:1;white-space:nowrap;border:1px solid transparent}
.manufacturing-project-status-badge.small{min-height:24px;padding:4px 8px;font-size:11px}
.manufacturing-project-status-badge.is-progress{color:#8a4b00;background:#fff4d6;border-color:#f2d18a}
.manufacturing-project-status-badge.is-complete{color:#17633a;background:#e9f8ef;border-color:#a9ddbc}
.manufacturing-project-status-badge.is-cancelled{color:#8b2635;background:#fdecef;border-color:#efb8c0}
.manufacturing-project-status-badge.is-approved{color:#31557a;background:#edf5fc;border-color:#bed5ea}
.ongoing-customer-panel{margin-bottom:18px;border:1px solid #ead49b;background:linear-gradient(180deg,#fffdf7 0%,#fff 100%)}
.customer-picker-card.has-ongoing-project{border-color:#e6c875;box-shadow:0 8px 24px rgba(155,108,13,.08)}
.customer-picker-card.has-ongoing-project>div:first-child>small{color:#9a6500}
.customer-card-counts{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.customer-card-counts b{font-size:12px;color:#8a4b00;background:#fff4d6;border:1px solid #f2d18a;border-radius:999px;padding:5px 9px;white-space:nowrap}
.customer-card-counts em{font-style:normal}

/* ============================================================
   2026-08-28 — Deep Responsive Audit Layer
   Authoritative final responsive rules. Loaded after legacy CSS.
   Keeps calculations and page structure untouched.
   ============================================================ */
:root{
  --rp-page-pad:clamp(12px,2vw,28px);
  --rp-control-h:44px;
  --rp-touch:44px;
  --metal-header-height:78px;
}
html{
  min-width:320px;
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-padding-top:calc(var(--metal-header-height) + 16px);
}
body{min-width:320px;max-width:100%;overflow-x:clip;}
img,svg,video,canvas{max-width:100%;height:auto;}
input,select,textarea,button{max-width:100%;font:inherit;}
input,select,textarea{min-height:var(--rp-control-h);}
button,.btn,[role="button"]{touch-action:manipulation;}
.content-shell{
  width:min(1720px,calc(100% - (var(--rp-page-pad) * 2)))!important;
  max-width:100%!important;
  margin-inline:auto!important;
}
.page{padding:clamp(18px,2.2vw,30px) 0 clamp(42px,5vw,72px)!important;}
.panel,.module-card,.dashboard-module,.workspace-panel,.product-workspace-header,.order-detail-card,.settings-card,.settings-panel,.table-panel,.list-panel,.price-section-card,.cutting-pro-section{max-width:100%;}
.page-title,.page-title.split,.modern-page-title,.page-title>*{min-width:0;}
.page-title.split{flex-wrap:wrap;gap:14px;}
.page-title h1,.modern-page-title h1{overflow-wrap:anywhere;}

/* ---------- Header: one authoritative system ---------- */
.topbar{position:sticky!important;top:0!important;z-index:2000!important;}
.topbar-inner{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:clamp(10px,1vw,18px)!important;
  min-height:78px!important;
  padding-block:9px!important;
}
.topbar-inner>.header-back-link{flex:0 0 auto!important;width:auto!important;min-width:86px!important;max-width:none!important;white-space:nowrap!important;}
.topbar-inner>.brand{flex:1 1 auto!important;width:auto!important;min-width:220px!important;max-width:none!important;}
.brand>span{min-width:0!important;}
.brand strong{display:block!important;max-width:min(34vw,520px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.brand small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.topbar-inner>.header-currency{flex:0 0 auto!important;width:auto!important;min-width:0!important;}
.header-rates{min-width:0!important;max-width:100%!important;}
.header-rates .rate-pill{flex:0 0 auto;}
.topbar-inner>.top-nav{flex:0 0 auto!important;width:auto!important;min-width:0!important;justify-content:flex-end!important;}
.top-nav a,.settings-trigger,.auth-logout-link,.header-welcome{min-height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;}
/* Undo old user-page rules that accidentally changed the global header. */
.top-nav .header-welcome{order:initial!important;width:auto!important;margin:0!important;justify-content:center!important;flex:0 0 auto!important;}
.mobile-nav-toggle{display:none!important;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.10);color:#fff;font-weight:850;cursor:pointer;}
.mobile-nav-toggle b{font-size:16px;line-height:1;}

/* Medium desktop/laptop: navigation gets its own balanced row. */
@media(max-width:1400px) and (min-width:901px){
  :root{--rp-page-pad:18px;}
  .topbar-inner{flex-wrap:wrap!important;gap:8px 14px!important;padding-block:9px!important;}
  .topbar-inner>.header-back-link{order:0!important;}
  .topbar-inner>.brand{order:1!important;flex:1 1 300px!important;min-width:200px!important;}
  .topbar-inner>.header-currency{order:2!important;}
  .topbar-inner>.top-nav{order:3!important;flex:1 1 100%!important;width:100%!important;justify-content:flex-end!important;padding:0!important;overflow:visible!important;}
  .brand strong{max-width:min(55vw,560px)!important;}
  .currency-refresh-status{display:none!important;}
}

/* Tablet / phone: compact header with explicit menu. */
@media(max-width:900px){
  :root{--rp-page-pad:14px;}
  .topbar-inner{flex-wrap:wrap!important;gap:8px!important;min-height:0!important;padding:9px 0 10px!important;}
  .topbar-inner>.header-back-link{order:0!important;flex:0 0 auto!important;min-width:0!important;min-height:40px!important;padding:0 10px!important;}
  .topbar-inner>.brand{order:1!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;}
  .topbar-inner>.mobile-nav-toggle{display:inline-flex!important;order:2!important;flex:0 0 auto!important;margin:0!important;}
  .topbar-inner>.top-nav{order:3!important;display:none!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;padding:6px 0 2px!important;scrollbar-width:thin;}
  .topbar-inner>.header-currency{order:4!important;display:none!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;justify-content:flex-start!important;overflow:hidden!important;padding-top:2px!important;}
  .topbar.is-mobile-open .top-nav{display:flex!important;}
  .topbar.is-mobile-open .header-currency{display:flex!important;}
  .topbar.is-mobile-open .mobile-nav-toggle{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.30);}
  .topbar.is-mobile-open .mobile-nav-toggle b{transform:rotate(90deg);}
  .header-rates{width:100%!important;justify-content:flex-start!important;overflow-x:auto!important;padding-bottom:2px;scrollbar-width:thin;}
  .currency-refresh-form{flex:0 0 auto;}
  .currency-refresh-status{display:none!important;}
  .brand-logo{width:40px!important;height:40px!important;flex:0 0 40px!important;}
  .brand{gap:9px!important;}
  .brand strong{max-width:100%!important;font-size:13px!important;}
  .brand small{font-size:9px!important;}
}
@media(max-width:430px){
  :root{--rp-page-pad:8px;}
  .topbar-inner{gap:6px!important;}
  .header-back-link{font-size:0!important;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;}
  .header-back-link::before{content:"←";font-size:18px!important;line-height:1!important;}
  .brand-logo{width:36px!important;height:36px!important;flex-basis:36px!important;}
  .brand strong{font-size:12px!important;}
  .brand small{display:none!important;}
  .mobile-nav-toggle{width:40px!important;min-width:40px!important;padding:0!important;}
  .mobile-nav-toggle span{display:none!important;}
}

/* ---------- Generic responsive primitives ---------- */
.page-actions,.panel-actions,.form-actions,.header-actions,.product-header-actions,.order-list-tools,.price-table-actions,.manufacturing-control-actions,.stock-management-actions,.settings-section-actions,.user-card-actions,.cutting-head-actions{flex-wrap:wrap!important;min-width:0;}
.page-actions>*,.panel-actions>*,.form-actions>*,.header-actions>*,.product-header-actions>*{max-width:100%;}
.dashboard-grid,.dashboard-grid-home,.customer-summary-grid,.material-summary-grid,.order-info-grid,.order-form-grid-2,.order-form-grid-3,.order-form-grid-4,.settings-param-grid,.result-panel-grid,.compact-info-grid,.product-card-grid,.product-card-specs,.product-mini-stats,.product-detail-strip,.price-total-panel,.actual-labor-grid,.stock-inline-add,.sheet-plan-grid,.sheet-plan-meta,.user-admin-grid,.user-fields{min-width:0;}
.dashboard-grid>*,.dashboard-grid-home>*,.customer-summary-grid>*,.material-summary-grid>*,.order-info-grid>*,.settings-param-grid>*,.result-panel-grid>*,.compact-info-grid>*,.product-card-grid>*,.product-mini-stats>*,.product-detail-strip>*,.price-total-panel>*{min-width:0;}

/* ---------- Tables: scroll inside the component, never the whole page ---------- */
.table-wrap,.data-table-wrap,.movement-table-wrap,.price-table-wrap,.report-table-wrap,.real-bom-table-wrap,.categorized-bom-wrap,.cutting-table-wrap,.labor-operation-table,.sheet-legend-table-wrap,.stock-table-wrap,.users-table-wrap,.order-table-wrap,.bom-table-wrap,.pro-users-table{
  max-width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  scrollbar-gutter:stable;
}
.data-table,.real-bom-table,.categorized-bom-table,.pro-price-table,.price-program-table,.cutting-master-table,.cutting-program-table,.pro-summary-table,.order-row-table,.users-table{max-width:none;}
.sheet-fit-warning-box{max-width:100%;overflow-x:auto;}
.sheet-fit-warning-box table{min-width:620px;}

/* ---------- Drawers / dialogs / overlays ---------- */
.drawer-overlay,.modal-overlay,.sheet-zoom-overlay{max-width:100vw;}
.drawer-panel{max-width:min(860px,100vw)!important;max-height:100dvh!important;overflow:auto!important;overscroll-behavior:contain;}
dialog,.manufacturing-revision-dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto;}
.sheet-zoom-dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;}
.company-settings-aside{top:calc(var(--metal-header-height) + 16px)!important;}

/* ---------- Price table: desktop sticky only; simple scroll on smaller screens ---------- */
body.price-fixed-active .price-section-card .price-section-head.price-fixed-live{
  top:calc(var(--metal-header-height) + 8px)!important;
}
.price-section-card .price-section-head{top:calc(var(--metal-header-height) + 8px)!important;}
@media(max-width:1400px){
  .price-section-card,.product-section-card.price-section-card{padding-top:14px!important;}
  .price-section-card .price-section-head,
  body.price-fixed-active .price-section-card .price-section-head.price-fixed-live{position:static!important;top:auto!important;left:auto!important;right:auto!important;width:auto!important;margin:0 0 12px!important;}
  .price-sticky-placeholder,.price-fixed-thead-clone,.price-fixed-thead-clone.price-fixed-live{display:none!important;height:0!important;}
  .pro-price-table thead th,.pro-price-table tbody tr.price-group-row th,body.price-fixed-active .price-section-card .pro-price-table thead th{position:static!important;top:auto!important;}
  .price-table-wrap{overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;}
}

/* ---------- Content breakpoints ---------- */
@media(max-width:1200px){
  .dashboard-grid-home{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .customer-summary-grid,.material-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .price-total-panel{grid-template-columns:repeat(3,minmax(150px,1fr))!important;}
}
@media(max-width:980px){
  .page-title.split{align-items:flex-start!important;flex-direction:column!important;}
  .settings-hub-grid,.modern-param-grid{grid-template-columns:1fr!important;}
  .settings-param-grid,.result-panel-grid,.compact-info-grid,.product-card-grid,.order-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card{grid-template-columns:88px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:12px!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{grid-column:2!important;grid-row:auto!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions,
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card,
  .product-workspace-header.refined-product-info.product-info-pro-card .revision-operations-row,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-mini-stats{grid-column:1/-1!important;grid-row:auto!important;position:static!important;top:auto!important;margin:0!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{justify-self:stretch!important;justify-content:flex-start!important;}
  .product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card{grid-template-columns:1fr!important;grid-template-areas:"info" "actions" "tabs"!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{grid-template-columns:1fr!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .bom-import-inline-pro{flex-wrap:wrap!important;}
  .product-main-tabs-shell,.manufacturing-tabs,.professional-bom-tabs .manufacturing-tabs{overflow-x:auto!important;display:flex!important;flex-wrap:nowrap!important;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:4px;}
  .product-main-tab,.manufacturing-tabs>*{flex:0 0 auto!important;min-width:max-content;scroll-snap-align:start;}
  .price-total-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .company-settings-layout{grid-template-columns:1fr!important;}
  .company-settings-aside{position:static!important;top:auto!important;}
}
@media(max-width:720px){
  :root{--rp-control-h:44px;}
  .page{padding-top:16px!important;}
  .page-title,.modern-page-title{padding:18px!important;border-radius:18px!important;}
  .page-title h1,.modern-page-title h1{font-size:clamp(25px,8vw,31px)!important;line-height:1.12!important;}
  .page-actions,.form-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:8px!important;}
  .page-actions .btn,.form-actions .btn,.page-actions button,.form-actions button{width:100%!important;}
  .dashboard-grid-home,.customer-summary-grid,.material-summary-grid,.settings-param-grid,.result-panel-grid,.compact-info-grid,.product-card-grid,.product-card-specs,.order-form-grid-2,.order-form-grid-3,.order-form-grid-4,.order-info-grid,.product-placeholder-grid,.product-mini-stats,.product-detail-strip,.price-total-panel,.actual-labor-grid,.stock-inline-add,.cutting-bars,.sheet-plan-meta,.user-fields{grid-template-columns:1fr!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card{grid-template-columns:68px minmax(0,1fr)!important;padding:14px!important;gap:10px!important;}
  .product-workspace-header .product-image,.product-workspace-header .product-thumb{max-width:68px!important;}
  .product-header-actions,.manufacturing-control-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:8px!important;}
  .product-header-actions .btn,.manufacturing-control-actions .btn,.manufacturing-control-actions form,.manufacturing-control-actions form .btn{width:100%!important;}
  .product-bom-compact .bom-import-inline-pro,.bom-import-inline-pro{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  .file-picker-pro{width:100%!important;max-width:none!important;}
  .chrome-revision-shell,.price-revision-shell{width:100%!important;max-width:none!important;}
  .chrome-send-revision-form,.manufacturing-revision-form{width:100%!important;display:grid!important;grid-template-columns:1fr!important;}
  .chrome-send-tabs,.compact-work-tabs{max-width:100%!important;overflow-x:auto!important;}
  .stock-management-head,.cutting-pro-head,.section-head,.settings-section-head,.panel-heading-row,.order-detail-heading,.product-editor-head,.product-section-head,.cutting-stale-alert,.stock-success-alert,.stock-missing-banner,.user-admin-summary{align-items:flex-start!important;flex-direction:column!important;}
  .stock-management-head>*,.cutting-pro-head>*,.section-head>*,.settings-section-head>*,.panel-heading-row>*,.product-section-head>*{max-width:100%!important;}
  .sheet-plan-grid,.compact-sheet-plans,.sheet-layout-row.compact-layout,.tiny-cutting-cards,.cutting-summary-cards{grid-template-columns:1fr!important;}
  .manual-row-inline-form,.manual-actual-row{grid-template-columns:1fr!important;}
  .manual-actual-row input[name=note]{grid-column:auto!important;}
  .manual-actual-delete{margin:6px 0 0!important;justify-content:flex-start!important;}
  .stock-table-wrap{max-height:none!important;}
  .stock-table thead th{position:static!important;}
  .drawer-overlay{padding:0!important;align-items:stretch!important;}
  .drawer-panel{width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:16px!important;}
  input,select,textarea{font-size:16px!important;}
  .btn,button,input,select,textarea{min-height:44px;}
  .sheet-visual-pro.layout-absolute{width:100%!important;max-width:360px!important;height:min(420px,110vw)!important;min-height:280px!important;}
}
@media(max-width:480px){
  .product-workspace-header.refined-product-info.product-info-pro-card{grid-template-columns:56px minmax(0,1fr)!important;padding:12px!important;gap:9px!important;}
  .product-header-actions,.manufacturing-control-actions{grid-template-columns:1fr!important;}
  .status-badge,.manufacturing-project-status-badge{white-space:normal!important;text-align:center!important;}
  .sheet-zoom-overlay{padding:4px!important;}
  .sheet-zoom-dialog{width:calc(100vw - 8px)!important;max-width:none!important;}
}

/* ---------- Deep audit: remaining wide components ---------- */
@media(max-width:900px){
  .pro-table-card,.cut-list-table-section{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;}
  .pro-table-card .cutting-program-table,.cut-list-table-section .cutting-program-table{min-width:720px!important;}
  .sheet-fit-warning-box{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
  .sheet-fit-warning-box table{min-width:620px!important;}
}
@media(max-width:720px){
  .pro-param-grid,.dashboard-grid-single,.settings-grid-single,.settings-grid-single>*{grid-template-columns:1fr!important;min-width:0!important;}
  .dashboard-grid-single,.settings-grid-single{width:100%!important;}
  .list-header{align-items:flex-start!important;flex-direction:column!important;gap:10px!important;}
  .list-header>*{max-width:100%!important;}
  .order-list-tools{width:100%!important;justify-content:flex-start!important;margin-left:0!important;}
}
@media(max-width:480px){
  .pro-table-card .cutting-program-table,.cut-list-table-section .cutting-program-table{min-width:640px!important;}
}

/* ---------- User management: card-like labels on narrow screens ---------- */
@media(max-width:900px){
  .pro-users-head{display:none!important;}
  .pro-users-table{overflow:visible!important;}
  .pro-user-row{border:1px solid #e5edf5!important;border-radius:14px!important;margin-bottom:12px!important;overflow:hidden!important;}
  .pro-user-form{display:grid!important;grid-template-columns:1fr!important;gap:0!important;min-width:0!important;width:100%!important;}
  .pro-user-form>div{padding:9px 12px!important;}
  .pro-user-form>div[data-label]::before{content:attr(data-label);display:block;margin-bottom:5px;color:#64748b;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;}
  .password-inline{grid-template-columns:1fr 1fr!important;}
  .password-inline::before{grid-column:1/-1;}
  .username-cell{align-items:stretch!important;flex-direction:column!important;}
  .last-login-cell{white-space:normal!important;}
  .row-actions{justify-content:flex-start!important;white-space:normal!important;flex-wrap:wrap!important;}
}
@media(max-width:520px){.password-inline{grid-template-columns:1fr!important;}}

/* Safe area for modern phones. */
@supports(padding:max(0px)){
  .topbar-inner{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right));}
  @media(max-width:720px){.drawer-panel{padding-bottom:max(16px,env(safe-area-inset-bottom))!important;}}
}

/* 2026-08-28 — Order cards overflow guard after deep responsive audit */
.order-list-panel,
.order-rect-list,
.order-rect-card,
.order-horizontal-products{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.order-rect-card{overflow:hidden;}
.order-rect-head,
.order-rect-main-link,
.order-rect-main-link>div,
.order-rect-statuses,
.order-list-header,
.order-list-tools{
  min-width:0;
  max-width:100%;
}
.order-rect-main-link{flex:1 1 auto;}
.order-rect-main-link h3{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.order-rect-statuses{flex:0 1 auto;}
.order-list-tools .order-search-input{min-width:0;}
.order-mini-product-info strong{max-width:100%;}
@media(max-width:1100px){
  .order-list-header{align-items:stretch;flex-wrap:wrap;}
  .order-list-tools{width:100%;margin-left:0;justify-content:flex-start;}
  .order-search-input{flex:1 1 260px;width:auto;max-width:100%;}
}
@media(max-width:600px){
  .order-list-tools{display:grid;grid-template-columns:1fr;align-items:stretch;}
  .order-list-tools>*{width:100%;max-width:100%;}
  .order-approval-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
  .order-approval-filters button{min-width:0;padding-inline:7px;}
}

/* ============================================================
   2026-08-28 — Product detail mobile-first hardening
   UI-only. No calculation, BOM, price, cutting or DB logic change.
   ============================================================ */
.product-workspace,
.product-workspace > *,
.product-main-tab-panel,
.product-main-tab-panel > *,
.product-section-card,
.price-section-card,
.cutting-pro-section,
.professional-labor-card{
  min-width:0;
  max-width:100%;
}

@media(max-width:900px){
  /* Header/card: keep the image and identity inside the phone width. */
  .product-workspace-header.refined-product-info.product-info-pro-card{
    overflow:hidden!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-image-box{
    width:78px!important;
    height:78px!important;
    max-width:100%!important;
    align-self:start!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{
    min-width:0!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id strong{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id small{
    overflow-wrap:anywhere!important;
  }

  /* Old fixed-width product controls must never dictate page width. */
  .product-bom-compact,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card,
  .product-top-operations-stack.integrated-production-row,
  .product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card,
  .integrated-production-card>.product-bom-compact,
  .integrated-production-card>.price-revision-shell.inside-production-card,
  .revision-operations-row,
  .chrome-revision-shell,
  .price-revision-shell{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .product-bom-title,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .product-bom-title{
    min-width:0!important;
  }
  .product-bom-compact .file-picker-pro,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .file-picker-pro{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  .integrated-production-card>.price-revision-shell.inside-production-card{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
  }
  .integrated-production-card>.price-revision-shell.inside-production-card .price-revision-tabs{
    min-width:0!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  /* Wide data always scrolls inside its card, never the page. */
  .product-main-tab-panel .table-wrap,
  .product-main-tab-panel .price-table-wrap,
  .product-main-tab-panel .labor-operation-table,
  .product-main-tab-panel .pro-table-card,
  .product-main-tab-panel .cut-list-table-section,
  .product-main-tab-panel .flat-bom-table,
  .product-main-tab-panel .world-bom-table,
  .product-main-tab-panel .sheet-fit-warning-box{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
  }

  .product-form-pro,
  .product-editor-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .bom-master-summary small,
  .product-price-donut-section .product-donut-head small,
  .product-data-charts.three-donut-charts .product-donut-head small{
    width:auto!important;
    max-width:100%!important;
  }
  .price-eur-chart-layout{
    grid-template-columns:1fr!important;
  }
  .pro-labor-overview-card .product-labor-overview-head small{
    width:auto!important;
    max-width:100%!important;
  }
}

@media(max-width:720px){
  /* Product hero: compact but readable. */
  .product-workspace{
    gap:10px!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:64px minmax(0,1fr)!important;
    padding:12px!important;
    gap:10px!important;
    border-radius:18px!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-image-box{
    width:64px!important;
    height:64px!important;
    border-radius:14px!important;
    grid-column:1!important;
    grid-row:1!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-main-id{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
  }
  .product-main-id span{font-size:10px!important;}
  .product-main-id strong{
    font-size:19px!important;
    line-height:1.16!important;
  }
  .product-main-id small{
    font-size:11px!important;
    line-height:1.35!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-note{
    padding:8px 9px!important;
    margin-top:8px!important;
  }

  /* Product facts: two compact columns, one on very small phones. */
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
    grid-column:1/-1!important;
    grid-row:auto!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip>span{
    min-width:0!important;
    padding:8px 9px!important;
    border-radius:11px!important;
  }
  .product-detail-strip small{font-size:9px!important;}
  .product-detail-strip b{font-size:12px!important;overflow-wrap:anywhere!important;}
  .product-detail-strip .product-color-meta{min-width:0!important;}
  .product-detail-strip .product-color-meta .ral-color-display b{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
  }

  /* General actions: touch-friendly, no horizontal overflow. */
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
    grid-column:1/-1!important;
    grid-row:auto!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    gap:7px!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions>*{
    min-width:0!important;
    width:100%!important;
    margin:0!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions .btn,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions form .btn{
    width:100%!important;
    min-height:42px!important;
    padding-inline:8px!important;
    white-space:normal!important;
    line-height:1.15!important;
  }

  /* Manufacturing + revision area becomes a clean vertical stack. */
  .product-workspace-header.refined-product-info.product-info-pro-card>.product-top-operations-stack.integrated-production-row{
    grid-column:1/-1!important;
    grid-row:auto!important;
    margin:0!important;
  }
  .product-top-operations-stack.integrated-production-row>.manufacturing-control-center.integrated-production-card{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:"info" "actions" "tabs"!important;
    padding:11px!important;
    gap:9px!important;
    border-radius:15px!important;
  }
  .integrated-production-card>.manufacturing-control-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:7px!important;
  }
  .integrated-production-card>.manufacturing-control-actions>*{
    width:100%!important;
    min-width:0!important;
  }
  .integrated-production-card>.manufacturing-control-actions .btn,
  .integrated-production-card>.manufacturing-control-actions form .btn{
    width:100%!important;
    white-space:normal!important;
  }
  .integrated-production-card>.price-revision-shell.inside-production-card{
    padding:6px!important;
  }
  .integrated-production-card>.price-revision-shell.inside-production-card .price-revision-tab{
    min-width:104px!important;
  }

  /* BOM import card: every control fits the card width. */
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card{
    grid-column:1/-1!important;
    grid-row:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    padding:10px!important;
    gap:8px!important;
    margin:0!important;
  }
  .product-bom-compact .bom-import-inline-pro,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .bom-import-inline-pro{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:7px!important;
  }
  .product-bom-compact .delete-bom-form,
  .product-workspace-header.refined-product-info.product-info-pro-card .product-bom-compact.bom-inline-header-card .delete-bom-form{
    width:100%!important;
    justify-self:stretch!important;
  }
  .product-bom-compact .btn,
  .product-bom-compact .delete-bom-form .btn{
    width:100%!important;
    white-space:normal!important;
  }

  /* Work tabs: no horizontal carousel on phones; use a stable 2x2 grid. */
  .product-main-tabs-shell.compact-work-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    overflow:visible!important;
    padding:6px!important;
    border-radius:16px!important;
  }
  .compact-work-tabs .product-main-tab{
    width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    flex:none!important;
    padding:8px!important;
    grid-template-columns:26px minmax(0,1fr)!important;
    column-gap:7px!important;
  }
  .compact-work-tabs .product-main-tab .tab-kicker{
    min-width:26px!important;
    width:26px!important;
    height:26px!important;
    font-size:9px!important;
  }
  .compact-work-tabs .product-main-tab strong{
    font-size:12px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.15!important;
  }
  .compact-work-tabs .product-main-tab small{
    display:none!important;
  }
  .compact-work-tabs .product-main-tab em{
    position:static!important;
    grid-column:1/-1!important;
    justify-self:start!important;
    max-width:100%!important;
    white-space:normal!important;
  }

  /* BOM category navigation: phone-friendly two-column buttons. */
  .manufacturing-tabs.clean-tabs-only,
  .professional-bom-tabs .manufacturing-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow:visible!important;
    margin:8px!important;
    padding:6px!important;
    gap:7px!important;
  }
  .manufacturing-tabs .bom-tab-button{
    min-width:0!important;
    min-height:62px!important;
    padding:9px!important;
    white-space:normal!important;
  }
  .manufacturing-tabs .bom-tab-button span{font-size:11px!important;}
  .manufacturing-tabs .bom-tab-button strong{font-size:18px!important;}
  .manufacturing-tabs .bom-tab-button small{font-size:9px!important;}

  .compact-category-list{margin:8px!important;}
  .compact-category-list>summary{
    padding:10px!important;
    min-width:0!important;
  }
  .compact-category-list>summary>div{min-width:0!important;}
  .compact-category-list>summary h3,
  .compact-category-list>summary small{
    overflow-wrap:anywhere!important;
  }
  .bom-tab-panel{padding:0 8px 10px!important;}
  .bom-tab-head,
  .pro-bom-tab-head{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  .bom-tab-statline{
    min-width:0!important;
    text-align:left!important;
  }

  /* Charts and labor blocks should use full mobile width. */
  .product-data-charts,
  .product-data-charts.three-donut-charts{
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .product-donut-card,
  .product-price-donut-section{
    width:100%!important;
    max-width:100%!important;
    padding:12px!important;
  }
  .product-donut-body{grid-template-columns:1fr!important;}
  .product-donut{margin-inline:auto!important;}
  .product-donut-legend{grid-template-columns:1fr!important;}
  .pro-labor-overview-card .labor-overview-row,
  .actual-labor-card{
    grid-template-columns:1fr!important;
    min-width:0!important;
  }

  /* Clear visual cue that wide engineering tables scroll inside their card. */
  .product-main-tab-panel .price-table-wrap,
  .product-main-tab-panel .labor-operation-table,
  .product-main-tab-panel .pro-table-card,
  .product-main-tab-panel .cut-list-table-section,
  .product-main-tab-panel .sheet-fit-warning-box{
    position:relative!important;
    border-radius:12px!important;
  }
}

@media(max-width:480px){
  .product-workspace-header.refined-product-info.product-info-pro-card{
    grid-template-columns:54px minmax(0,1fr)!important;
    padding:10px!important;
    gap:8px!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-image-box{
    width:54px!important;
    height:54px!important;
    border-radius:12px!important;
  }
  .product-main-id strong{font-size:17px!important;}
  .product-workspace-header.refined-product-info.product-info-pro-card .product-detail-strip{
    grid-template-columns:1fr!important;
  }
  .product-workspace-header.refined-product-info.product-info-pro-card .product-header-actions{
    grid-template-columns:1fr!important;
  }
  .product-main-tabs-shell.compact-work-tabs{
    grid-template-columns:1fr!important;
  }
  .compact-work-tabs .product-main-tab{
    min-height:54px!important;
  }
  .manufacturing-tabs.clean-tabs-only,
  .professional-bom-tabs .manufacturing-tabs{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:720px){
  .product-main-tab-panel .product-section-card,
  .product-main-tab-panel .price-section-card,
  .product-main-tab-panel .cutting-pro-section,
  .product-main-tab-panel .professional-labor-card{
    padding:10px!important;
    border-radius:16px!important;
  }
  .product-main-tab-panel .price-section-head,
  .product-main-tab-panel .cutting-pro-head,
  .product-main-tab-panel .labor-summary-head{
    margin-bottom:9px!important;
  }
  .product-image-box .product-image-open span{
    opacity:.9!important;
    left:5px!important;
    right:5px!important;
    bottom:5px!important;
    padding:3px 4px!important;
    font-size:8px!important;
  }
}

/* 2026-10-01 — Materials: professional filters + quote/order link protection */
.material-summary-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
}

.material-list-head-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px !important;
}

.material-filter-shell {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid rgba(15, 45, 75, .10);
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbfd 0%, #ffffff 70%);
    box-shadow: 0 10px 28px rgba(15, 34, 52, .05);
}

.material-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.material-filter-head > div {
    min-width: 0;
}

.material-filter-head strong,
.material-filter-head span {
    display: block;
}

.material-filter-head strong {
    font-size: 15px;
    color: var(--ink);
}

.material-filter-head > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.material-filter-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #d9e5ec;
    border-radius: 999px;
    background: #fff;
    color: #526173;
    font-size: 11px;
    font-weight: 850;
}

.material-search-form.material-filter-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(125px, .8fr) minmax(150px, 1fr) minmax(170px, 1fr) minmax(150px, .9fr) auto;
    align-items: end;
    justify-content: stretch;
    gap: 10px;
}

.material-filter-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.material-filter-field > span:first-child {
    color: #526173;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .015em;
}

.material-filter-grid .search-box,
.material-filter-grid .status-filter,
.material-filter-grid .form-control {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px;
    margin: 0;
}

.material-filter-grid .search-box {
    display: flex;
}

.material-filter-grid .search-input {
    min-width: 0;
}

.material-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.material-filter-grid .material-filter-apply {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.material-link-note {
    display: block;
    margin-top: 0;
}

.material-table-linked {
    min-width: 1240px !important;
}

.material-table-linked th:nth-child(6),
.material-table-linked td:nth-child(6) {
    width: 190px;
    min-width: 170px;
    max-width: 210px;
}

.material-table-linked th:nth-child(7),
.material-table-linked td:nth-child(7) {
    min-width: 220px;
    max-width: 300px;
    color: #64748b;
    font-size: 12px;
}

.material-table-linked th:nth-child(8),
.material-table-linked td:nth-child(8) {
    width: 112px;
    min-width: 112px;
    text-align: right;
}

.material-row-linked td {
    background-image: linear-gradient(90deg, rgba(28, 122, 109, .018), rgba(255,255,255,0));
}

.material-usage-cell {
    vertical-align: middle !important;
}

.material-usage-cell > small {
    display: block;
    max-width: 175px;
    margin-top: 5px;
    overflow: hidden;
    color: #718092;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.material-link-badge {
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid #dbe5ec;
    border-radius: 999px;
    background: #f7fafc;
    color: #5e6d7e;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

button.material-link-badge {
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

button.material-link-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 34, 52, .08);
}

.material-link-badge.is-linked {
    border-color: #b8e2d8;
    background: #effaf6;
    color: #156b5f;
}

.material-link-badge.is-free {
    border-color: #dde5eb;
    background: #f7f9fb;
    color: #667789;
}

.material-link-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.material-link-badge em {
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(21, 107, 95, .10);
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
}

.material-action-alert {
    margin-bottom: 16px;
}

.material-action-alert a {
    font-weight: 850;
}

.material-usage-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.material-usage-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.material-usage-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 34, .52);
    backdrop-filter: blur(4px);
}

.material-usage-dialog {
    position: relative;
    z-index: 1;
    width: min(660px, 100%);
    max-height: min(78vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(8, 22, 34, .28);
    transform: translateY(10px) scale(.985);
    transition: transform .16s ease;
}

.material-usage-modal.is-open .material-usage-dialog {
    transform: translateY(0) scale(1);
}

.material-usage-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #e3ebf0;
}

.material-usage-dialog-head small {
    display: block;
    margin-bottom: 4px;
    color: #718092;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.material-usage-dialog-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
}

.material-usage-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #dce6ec;
    border-radius: 10px;
    background: #f7fafc;
    color: #526173;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.material-usage-warning {
    margin: 16px 20px 8px;
    padding: 12px 14px;
    border: 1px solid #f0d7c9;
    border-radius: 14px;
    background: #fff8f3;
    color: #6d4a37;
    font-size: 12.5px;
    line-height: 1.5;
}

.material-usage-list {
    min-height: 80px;
    padding: 8px 20px 14px;
    overflow: auto;
}

.material-usage-item {
    display: block;
    margin: 8px 0;
    padding: 12px 14px;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fbfdfe;
    color: inherit;
    text-decoration: none;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.material-usage-item:hover {
    border-color: #bcd5df;
    box-shadow: 0 8px 20px rgba(15, 34, 52, .06);
    transform: translateY(-1px);
}

.material-usage-item span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.material-usage-item b {
    flex: 0 0 auto;
    color: #0f766e;
}

.material-usage-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.material-usage-item small {
    display: block;
    margin-top: 5px;
    color: #718092;
    line-height: 1.35;
}

.material-usage-more {
    padding: 10px;
    text-align: center;
    color: #718092;
    font-size: 12px;
    font-weight: 800;
}

.material-usage-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 20px;
    border-top: 1px solid #e5edf2;
    background: #fbfdfe;
}

.material-usage-dialog-actions .btn[hidden] {
    display: none !important;
}

body.material-usage-modal-open {
    overflow: hidden;
}

@media (max-width: 1260px) {
    .material-search-form.material-filter-grid {
        grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(150px, 1fr));
    }

    .material-filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .material-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .material-search-form.material-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .material-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .material-summary-grid,
    .material-search-form.material-filter-grid {
        grid-template-columns: 1fr !important;
    }

    .material-filter-shell {
        padding: 13px;
        border-radius: 15px;
    }

    .material-filter-head {
        align-items: flex-start;
    }

    .material-filter-actions {
        width: 100%;
    }

    .material-filter-actions .btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .material-usage-modal {
        padding: 10px;
        align-items: end;
    }

    .material-usage-dialog {
        width: 100%;
        max-height: 86vh;
        border-radius: 20px 20px 12px 12px;
    }

    .material-usage-dialog-actions {
        flex-direction: column-reverse;
    }

    .material-usage-dialog-actions .btn {
        width: 100%;
    }
}


/* 2026-10-01 — Materials v4: compact filter toolbar + link status filter */
.material-panel .material-filter-bar {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(120px, .75fr) minmax(145px, .9fr) minmax(160px, 1fr) minmax(145px, .9fr) minmax(135px, .85fr) auto;
    align-items: end;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(15, 45, 75, .09);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.material-panel .material-filter-bar .material-filter-field {
    gap: 5px;
}
.material-panel .material-filter-bar .material-filter-field > span:first-child {
    font-size: 10.5px;
    color: #667487;
}
.material-panel .material-filter-bar .search-box,
.material-panel .material-filter-bar .status-filter,
.material-panel .material-filter-bar .form-control {
    min-height: 39px;
    height: 39px;
}
.material-panel .material-filter-bar .material-filter-apply {
    min-height: 39px;
}
.material-panel .material-filter-bar .material-filter-actions {
    align-self: end;
}
.material-panel .material-filter-shell,
.material-panel .material-filter-head,
.material-panel .material-filter-count,
.material-panel .material-link-note {
    display: none !important;
}
@media (max-width: 1320px) {
    .material-panel .material-filter-bar {
        grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(145px, 1fr));
    }
    .material-panel .material-filter-bar .material-filter-actions {
        grid-column: auto;
    }
}
@media (max-width: 900px) {
    .material-panel .material-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .material-panel .material-filter-bar .material-filter-search {
        grid-column: 1 / -1;
    }
}
@media (max-width: 620px) {
    .material-panel .material-filter-bar {
        grid-template-columns: 1fr !important;
        gap: 9px;
        padding-bottom: 10px;
    }
    .material-panel .material-filter-bar .material-filter-search {
        grid-column: auto;
    }
}

/* 2026-10-01 — Materials v5: clean list header, filters + search + add only */
.material-panel-clean {
    margin-top: 0 !important;
}
.material-panel-clean > .material-filter-bar {
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(15,45,75,.09) !important;
    background: linear-gradient(180deg,#fff 0%,#fbfdfd 100%) !important;
}
.material-panel-clean .material-filter-bar {
    grid-template-columns: minmax(280px,2fr) minmax(115px,.72fr) minmax(140px,.9fr) minmax(160px,1fr) minmax(145px,.9fr) minmax(135px,.85fr) auto !important;
    gap: 9px !important;
    align-items: end !important;
}
.material-panel-clean .material-filter-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    white-space: nowrap;
}
.material-panel-clean .material-filter-actions .btn {
    min-height: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.material-panel-clean .material-add-inline {
    margin-left: 2px;
    padding-inline: 15px !important;
    font-weight: 850 !important;
}
.material-panel-clean .table-wrap {
    border-top: 0 !important;
}
@media (max-width: 1480px) {
    .material-panel-clean .material-filter-bar {
        grid-template-columns: minmax(250px,2fr) repeat(3,minmax(135px,1fr)) !important;
    }
    .material-panel-clean .material-filter-search {
        grid-column: span 2;
    }
    .material-panel-clean .material-filter-actions {
        grid-column: auto / span 2;
    }
}
@media (max-width: 980px) {
    .material-panel-clean .material-filter-bar {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
    .material-panel-clean .material-filter-search,
    .material-panel-clean .material-filter-actions {
        grid-column: 1 / -1 !important;
    }
    .material-panel-clean .material-filter-actions {
        justify-content: stretch !important;
    }
    .material-panel-clean .material-filter-actions .btn {
        flex: 1 1 0;
    }
}
@media (max-width: 620px) {
    .material-panel-clean > .material-filter-bar {
        padding: 12px !important;
    }
    .material-panel-clean .material-filter-bar {
        grid-template-columns: 1fr !important;
    }
    .material-panel-clean .material-filter-search,
    .material-panel-clean .material-filter-actions {
        grid-column: auto !important;
    }
    .material-panel-clean .material-filter-actions {
        flex-wrap: wrap;
    }
    .material-panel-clean .material-filter-actions .btn {
        flex: 1 1 calc(50% - 6px);
    }
    .material-panel-clean .material-add-inline {
        flex-basis: 100% !important;
        margin-left: 0;
    }
}

/* 2026-10-01 — Materials v6: always-visible add button + compact stable toolbar */
.material-panel-clean .material-toolbar-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px 0;
    background: #fff;
}
.material-panel-clean .material-add-prominent {
    min-height: 40px;
    height: 40px;
    padding-inline: 18px !important;
    font-weight: 850 !important;
    white-space: nowrap;
    flex: 0 0 auto;
}
.material-panel-clean > .material-filter-bar {
    padding-top: 10px !important;
}
@media (max-width: 620px) {
    .material-panel-clean .material-toolbar-compact {
        padding: 12px 12px 0;
    }
    .material-panel-clean .material-add-prominent {
        width: 100%;
        justify-content: center;
    }
}

/* 2026-11-05: freeze column labels at the topbar, without moving section content. */
#price-table .price-section-head {position:static!important;top:auto!important;}
#price-table .pro-price-table thead th,
#price-table .pro-price-table tbody tr.price-group-row th {position:static!important;top:auto!important;}
.price-fixed-thead-clone.price-stable-columns.price-fixed-live {display:block!important;height:auto!important;}
.price-fixed-thead-clone.price-stable-columns {z-index:49!important;}
@media print {
 .price-fixed-thead-clone.price-stable-columns.price-fixed-live {display:none!important;}
}

/* Compact product overview: ID scope isolates this layout from legacy header rules. */
@media screen {
#product-overview-compact {
 display:grid!important;grid-template-columns:64px repeat(11,minmax(0,1fr))!important;
 grid-template-rows:auto auto auto auto!important;grid-template-areas:none!important;
 gap:10px 12px!important;padding:16px!important;margin-bottom:14px!important;
 background:#fff!important;border:1px solid #e0e8ee!important;border-radius:16px!important;
 box-shadow:0 5px 20px #12304708!important;align-items:center!important;overflow:visible!important;
}
#product-overview-compact>* {min-width:0!important;max-width:none!important;box-sizing:border-box!important;}
#product-overview-compact .product-image-box {
 grid-area:1/1/2/2!important;width:64px!important;height:64px!important;min-height:0!important;
 margin:0!important;border-radius:11px!important;align-self:center!important;
}
#product-overview-compact .product-main-id {grid-area:1/2/2/8!important;padding:0!important;margin:0!important;align-self:center!important;}
#product-overview-compact .product-main-id>span {font-size:9px!important;line-height:1.2!important;}
#product-overview-compact .product-main-id>strong {font-size:23px!important;line-height:1.2!important;margin:3px 0!important;overflow-wrap:anywhere!important;}
#product-overview-compact .product-main-id>small {font-size:11px!important;line-height:1.4!important;white-space:normal!important;}
#product-overview-compact .product-detail-note {margin-top:6px!important;padding:6px 9px!important;font-size:11px!important;}
#product-overview-compact .product-header-actions {
 grid-area:1/8/2/-1!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 justify-content:flex-end!important;justify-self:stretch!important;position:static!important;
 width:auto!important;gap:6px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;
}
#product-overview-compact .product-header-actions>* {width:auto!important;margin:0!important;min-width:0!important;}
#product-overview-compact .btn {min-height:34px!important;padding:7px 11px!important;font-size:11px!important;line-height:1.35!important;border-radius:8px!important;}
#product-overview-compact .product-header-actions .btn {width:auto!important;white-space:nowrap!important;}
#product-overview-compact .product-detail-strip {
 grid-area:2/1/3/-1!important;display:grid!important;grid-template-columns:.8fr .6fr .7fr 1.2fr 1.8fr!important;
 width:100%!important;max-width:none!important;gap:0!important;margin:0!important;padding:0!important;
 border:1px solid #e2e9ef!important;border-radius:10px!important;background:#f7f9fb!important;overflow:hidden!important;
}
#product-overview-compact .product-detail-strip>span {
 grid-area:auto!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
 gap:4px!important;min-width:0!important;min-height:54px!important;height:auto!important;
 padding:8px 14px!important;margin:0!important;border:0!important;border-right:1px solid #e2e9ef!important;
 border-radius:0!important;background:transparent!important;box-shadow:none!important;box-sizing:border-box!important;
}
#product-overview-compact .product-detail-strip>span:last-child {border-right:0!important;}
#product-overview-compact .product-detail-strip small {font-size:9px!important;line-height:1.15!important;margin:0!important;color:#718297!important;}
#product-overview-compact .product-detail-strip b {font-size:13px!important;line-height:1.3!important;color:#163047!important;white-space:normal!important;overflow-wrap:anywhere!important;}
#product-overview-compact .ral-color-display {display:flex!important;gap:8px!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;}
#product-overview-compact .ral-color-display .ral-color-swatch {width:23px!important;height:18px!important;min-height:0!important;padding:0!important;border-radius:5px!important;}
#product-overview-compact .ral-color-display b {font-size:12px!important;overflow:visible!important;text-overflow:clip!important;}
#product-overview-compact>.product-top-operations-stack {
 grid-area:3/1/4/7!important;display:block!important;width:100%!important;max-width:none!important;
 margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;align-self:center!important;
}
#product-overview-compact .manufacturing-control-center {
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;
 grid-template-columns:none!important;grid-template-areas:none!important;grid-area:auto!important;
 width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:8px 14px 8px 0!important;gap:12px!important;border:0!important;
 border-right:1px solid #dce5ec!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;box-sizing:border-box!important;
}
#product-overview-compact .manufacturing-control-info {grid-area:auto!important;min-width:0!important;align-self:center!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;max-width:240px!important;}
#product-overview-compact .manufacturing-control-info>small {font-size:11px!important;letter-spacing:0!important;}
#product-overview-compact .manufacturing-status-line {display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important;margin:0!important;}
#product-overview-compact #manufacturing-status-label {display:inline-flex!important;padding:3px 7px!important;border-radius:5px!important;background:#e6f0ed!important;color:#315e53!important;font-size:11px!important;line-height:1.2!important;}
#product-overview-compact .is-progress #manufacturing-status-label {background:#fff0cc!important;color:#8b5a0a!important;}
#product-overview-compact .is-complete #manufacturing-status-label {background:#daf1e3!important;color:#19613e!important;}
#product-overview-compact .is-cancelled #manufacturing-status-label {background:#fde6e7!important;color:#a12c37!important;}
#product-overview-compact #manufacturing-project-name {font-size:10px!important;overflow-wrap:anywhere!important;}
#product-overview-compact #manufacturing-last-sync {flex-basis:100%!important;font-size:9px!important;margin:0!important;line-height:1.2!important;}
#product-overview-compact .manufacturing-control-actions {
 grid-area:auto!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 width:auto!important;min-width:0!important;gap:6px!important;margin:0!important;align-items:center!important;
}
#product-overview-compact .manufacturing-control-actions>*:not(dialog),#product-overview-compact .manufacturing-control-actions .btn {width:auto!important;min-width:0!important;flex:0 1 auto!important;}
#product-overview-compact .product-bom-compact {
 grid-area:3/7/4/-1!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 align-items:center!important;justify-content:flex-start!important;align-self:center!important;
 width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;gap:7px!important;
 padding:8px 0 8px 4px!important;margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;box-sizing:border-box!important;
}
#product-overview-compact .product-bom-title {min-width:0!important;flex:0 0 auto!important;}
#product-overview-compact .product-bom-title small {font-size:11px!important;letter-spacing:0!important;}
#product-overview-compact .product-bom-title strong {font-size:12px!important;line-height:1.3!important;}
#product-overview-compact .bom-import-inline-pro {display:flex!important;flex:1 1 220px!important;flex-wrap:wrap!important;width:auto!important;min-width:0!important;gap:6px!important;}
#product-overview-compact .file-picker-pro.compact-bom-picker {display:flex!important;flex:1 1 140px!important;min-width:0!important;max-width:100%!important;width:auto!important;flex-wrap:wrap!important;border-radius:8px!important;background:#fff!important;}
#product-overview-compact .file-picker-pro span,#product-overview-compact .file-picker-pro b {font-size:9px!important;padding:7px!important;min-width:0!important;}
#product-overview-compact .file-picker-pro b {overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
#product-overview-compact .bom-clear-inline-pro {width:auto!important;margin:0!important;flex:0 0 auto!important;}
#product-overview-compact .bom-clear-inline-pro .btn {width:auto!important;font-size:10px!important;padding:6px 8px!important;min-height:30px!important;}
#product-overview-compact>.product-header-revisions {
 grid-area:4/1/5/-1!important;position:static!important;width:100%!important;max-width:none!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
}
#product-overview-compact .chrome-revision-tabs {display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:4px 0 0!important;border:0!important;border-top:1px solid #e5ebf0!important;border-radius:0!important;background:none!important;}
#product-overview-compact .chrome-revision-tab {min-width:100px!important;max-width:240px!important;height:auto!important;min-height:36px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#607183!important;}
#product-overview-compact .chrome-revision-tab.active {border-bottom-color:#0b8b80!important;color:#087b72!important;background:transparent!important;}
#product-overview-compact .chrome-revision-tab:hover {background:#f1f7f7!important;}
#product-overview-compact .chrome-revision-tab::before,#product-overview-compact .chrome-revision-tab::after {display:none!important;}
#product-overview-compact .chrome-revision-link {padding:7px 30px 7px 12px!important;border-radius:0!important;}
#product-overview-compact .chrome-revision-tab:not(:has(.chrome-revision-delete-form)) .chrome-revision-link {padding-right:12px!important;}
#product-overview-compact .chrome-revision-delete-form {top:5px!important;right:3px!important;}
#product-overview-compact .chrome-revision-plus {width:34px!important;height:34px!important;min-height:0!important;}
#product-overview-compact .product-more-actions {position:relative!important;order:10!important;}
#product-overview-compact .product-more-actions>summary {list-style:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;border:1px solid #dfe7ee!important;border-radius:8px!important;background:#fff!important;color:#53687c!important;cursor:pointer!important;font-size:22px!important;}
#product-overview-compact .product-more-actions>summary::-webkit-details-marker {display:none;}
#product-overview-compact .product-more-actions>summary:focus-visible {outline:2px solid #0d9488;outline-offset:2px;}
#product-overview-compact .product-more-menu {position:absolute;right:0;top:40px;padding:7px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 20px #102f451a;z-index:80;min-width:150px;}
}
@media screen and (max-width:1200px) {
#product-overview-compact .manufacturing-control-center {border-right:0!important;padding-right:0!important;}
#product-overview-compact .product-bom-compact {border-top:1px solid #e5ebf0!important;padding-left:0!important;}
#product-overview-compact .product-main-id {grid-area:1/2/2/7!important;}
#product-overview-compact .product-header-actions {grid-area:1/7/2/-1!important;}
#product-overview-compact>.product-top-operations-stack {grid-area:3/1/4/-1!important;}
#product-overview-compact .product-bom-compact {grid-area:4/1/5/-1!important;}
#product-overview-compact>.product-header-revisions {grid-area:5/1/6/-1!important;}
}
@media screen and (max-width:700px) {
#product-overview-compact {padding:12px!important;gap:8px!important;}
#product-overview-compact .product-main-id {grid-area:1/2/2/-1!important;}
#product-overview-compact .product-header-actions {grid-area:2/1/3/-1!important;justify-content:flex-start!important;}
#product-overview-compact .product-detail-strip {grid-area:3/1/4/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
#product-overview-compact .product-detail-strip>.product-color-meta {grid-column:1/-1!important;}
#product-overview-compact .product-detail-strip>span {padding:8px 10px!important;border-bottom:1px solid #e2e9ef!important;}
#product-overview-compact>.product-top-operations-stack {grid-area:4/1/5/-1!important;}
#product-overview-compact .product-bom-compact {grid-area:5/1/6/-1!important;}
#product-overview-compact>.product-header-revisions {grid-area:6/1/7/-1!important;}
}
@media print {.product-more-actions{display:none!important;}}

/* Keep the last successful currency update discreet and in a stable space. */
.currency-rates-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.currency-last-updated {
    display: block;
    width: 112px;
    flex: 0 0 112px;
    min-height: 12px;
    color: #bdd0df;
    font-size: 9px;
    font-weight: 400;
    line-height: 12px;
    white-space: normal;
    font-variant-numeric: tabular-nums;
}

/* Compact product facts, including products without a selected color. */
#product-overview-compact .product-detail-strip>span {
    min-height: 44px!important;
    padding: 5px 12px!important;
    gap: 2px!important;
}
#product-overview-compact .product-detail-strip .product-color-meta>.color-empty {
    display: block!important;
    min-width: 0!important;
    min-height: 0!important;
    height: auto!important;
    padding: 0!important;
    margin: 0!important;
    border: 0!important;
    border-radius: 0!important;
    background: transparent!important;
    box-shadow: none!important;
    font-size: 13px!important;
    line-height: 18px!important;
}
