

/* Start:/local/components/auspex/linear.calculator2/templates/.default/style.css?178777158264503*/
/* =========================================================
   Linear Calculator 2.0
   Full style.css
   ========================================================= */

.lc2 {
    --lc2-primary: #0066cc;
    --lc2-primary-dark: #0057b8;
    --lc2-primary-soft: #eef6ff;

    --lc2-text: #1f2937;
    --lc2-muted: #7d8794;
    --lc2-border: #d7e0ea;
    --lc2-border-soft: #e8edf2;

    --lc2-bg: #ffffff;
    --lc2-bg-soft: #f8fafc;

    --lc2-success: #14823b;
    --lc2-success-soft: #eef8f1;

    --lc2-danger: #c62828;
    --lc2-danger-soft: #fff1f1;

    --lc2-warning: #a66d00;
    --lc2-warning-soft: #fff8df;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 0 18px 30px;

    box-sizing: border-box;

    color: var(--lc2-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    line-height: 1.45;
}

.lc2,
.lc2 * {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.lc2__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.lc2__title {
    margin: 0;

    color: #172033;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.lc2__subtitle {
    margin-top: 24px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   COMMON CARD
   ========================================================= */

.lc2-card {
    margin-bottom: 18px;
    padding: 22px;

    border: 1px solid var(--lc2-border);
    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 1px 3px rgba(15, 23, 42, .025);
}

.lc2-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.lc2-card__eyebrow {
    margin-bottom: 5px;

    color: var(--lc2-primary-dark);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.lc2-card__title {
    margin: 0;

    color: #172033;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.lc2-card__description {
    margin-top: 4px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}

.lc2-card__footer {
    margin-top: 14px;
}


/* =========================================================
   PRODUCT
   ========================================================= */

.lc2-product {
    border-left: 4px solid var(--lc2-primary);
}

.lc2-product__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px 28px;

    margin-top: 20px;
}

.lc2-product__meta-item {
    display: inline-flex;
    align-items: baseline;

    gap: 7px;
}

.lc2-product__meta-label {
    color: #758196;
}

.lc2-product__meta-item strong {
    color: #172033;
}

.lc2-link {
    color: var(--lc2-primary-dark);

    font-weight: 600;

    text-decoration: none;
}

.lc2-link:hover {
    text-decoration: underline;
}


/* =========================================================
   ALERTS
   ========================================================= */

.lc2-alert {
    margin-bottom: 16px;
    padding: 14px 16px;

    border-radius: 8px;
}

.lc2-alert--error {
    border: 1px solid #efb7b7;
    background: #fff3f3;
    color: #a52222;
}

.lc2-alert__title {
    margin-bottom: 5px;

    font-weight: 700;
}

.lc2-alert__item {
    font-size: 13px;
}


/* =========================================================
   SETTINGS / FIELDS
   ========================================================= */

.lc2-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-top: 18px;
}

.lc2-field {
    display: block;
}

.lc2-field__label {
    display: block;

    margin-bottom: 7px;

    color: #263449;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.lc2-field__hint {
    display: block;

    margin-top: 7px;

    color: #8995a7;

    font-size: 10px;
    line-height: 1.45;
}

.lc2-input-unit {
    position: relative;
}

.lc2-input-unit .lc2-input {
    padding-right: 42px;
}

.lc2-input-unit__suffix {
    position: absolute;
    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    color: #8793a4;

    font-size: 10px;

    pointer-events: none;
}

.lc2-input {
    display: block;

    width: 100%;
    height: 40px;

    padding: 8px 11px;

    border: 1px solid #c8d4e0;
    border-radius: 6px;

    outline: none;

    background: #fff;

    color: #172033;

    font: inherit;
    font-size: 13px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.lc2-input:focus {
    border-color: #7eb4eb;

    box-shadow:
        0 0 0 3px rgba(0, 102, 204, .09);
}

.lc2-input.is-invalid {
    border-color: #d9534f !important;

    background: #fffafa;

    box-shadow:
        0 0 0 3px rgba(217, 83, 79, .08);
}

.lc2-input--table {
    height: 34px;

    padding: 6px 8px;

    border-radius: 4px;

    font-size: 12px;
}

.lc2-readonly-value {
    min-height: 34px;

    display: flex;
    align-items: center;

    padding: 6px 8px;

    color: #172033;

    font-weight: 600;
}

.lc2-muted {
    color: #8995a7;
}




/* =========================================================
   SETTINGS ALIGNMENT
   ========================================================= */

.lc2-settings-grid .lc2-field {
    display: flex;
    flex-direction: column;
}

.lc2-settings-grid .lc2-field__label {
    min-height: 36px;

    display: flex;
    align-items: flex-end;

    margin-bottom: 7px;
}

.lc2-settings-grid .lc2-input-unit {
    margin-top: 0;
}

.lc2-settings-grid .lc2-field__hint {
    min-height: 30px;
}


/* =========================================================
   TABLES
   ========================================================= */

.lc2-table-wrap {
    margin-top: 16px;

    overflow-x: auto;

    border: 1px solid var(--lc2-border);
    border-radius: 8px;
}

.lc2-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    background: #fff;
}

.lc2-table th {
    padding: 11px 12px;

    border-bottom: 1px solid var(--lc2-border);

    background: #f6f8fa;

    color: #566579;

    text-align: left;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;

    white-space: nowrap;
}

.lc2-table td {
    padding: 9px 11px;

    border-bottom: 1px solid #edf1f4;

    color: #273449;

    font-size: 12px;
    vertical-align: middle;
}

.lc2-table tbody tr:last-child td {
    border-bottom: 0;
}

.lc2-table tbody tr:hover td {
    background: #fbfdff;
}

.lc2-col-number {
    width: 45px;
}

.lc2-col-action {
    width: 44px;
}

.lc2-row-number {
    color: #8190a3 !important;

    text-align: center;
}

.lc2-action-cell {
    text-align: center;
}


/* =========================================================
   STOCK SOURCE
   ========================================================= */

.lc2-source-label {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 4px 7px;
}

.lc2-source-label--warehouse {
    color: #334155;
}

.lc2-stock-source-select {
    min-width: 145px;
}

.lc2-stock-row.is-customer-material td {
    background: #fcfcfd;
}


/* =========================================================
   BADGES
   ========================================================= */

.lc2-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;

    white-space: nowrap;
}

.lc2-badge--stock {
    background: #eaf3ff;
    color: #0057b8;
}

.lc2-badge--remnant {
    background: #edf8ef;
    color: #1b7c39;
}

.lc2-badge--customer {
    background: #f0f2f5;
    color: #596779;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.lc2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 8px 14px;

    border: 1px solid transparent;
    border-radius: 6px;

    cursor: pointer;

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    transition:
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;
}

.lc2-button--primary {
    border-color: var(--lc2-primary);
    background: var(--lc2-primary);
    color: #fff;
}

.lc2-button--primary:hover {
    border-color: var(--lc2-primary-dark);
    background: var(--lc2-primary-dark);
}

.lc2-button--secondary {
    border-color: #cbd7e3;
    background: #fff;
    color: #273449;
}

.lc2-button--secondary:hover {
    border-color: #9eb3c9;
    background: #f8fafc;
}

.lc2-button--large {
    min-width: 220px;
    min-height: 44px;

    padding: 10px 20px;

    font-size: 14px;
}

.lc2-button__plus {
    font-size: 16px;
    line-height: 1;
}

.lc2-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #bf2c2c;

    cursor: pointer;

    font-size: 20px;
    line-height: 1;
}

.lc2-icon-button:hover {
    color: #8f1717;
}


/* =========================================================
   CUT PREVIEW
   ========================================================= */

.lc2-cut-preview {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.lc2-cut-preview strong {
    color: #172033;

    font-size: 13px;
}

.lc2-cut-preview span {
    color: #8a94a3;

    font-size: 11px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.lc2-actions {
    display: flex;
    justify-content: center;

    padding: 6px 0 28px;
}

.lc2-form.is-submitting .lc2-button--primary {
    opacity: .7;

    cursor: wait;
}


/* =========================================================
   RESULT
   ========================================================= */

.lc2-result {
    margin-top: 8px;
}

.lc2-result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;
}

.lc2-result__title {
    margin: 0;

    color: #1c2634;

    font-size: 25px;
    line-height: 1.25;
}


/* =========================================================
   SUMMARY — NEW RESULT DESIGN
   ========================================================= */

.lc2-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 14px;
}

.lc2-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-width: 0;
    min-height: 122px;

    padding: 15px;

    border: 1px solid var(--lc2-border);
    border-radius: 9px;

    background: #fff;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, .02);
}

.lc2-summary-card__label {
    min-height: 29px;
    margin-bottom: 6px;

    color: #7d8794;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}

.lc2-summary-card__value {
    color: #202b3a;

    font-size: 23px;
    line-height: 1;

    font-weight: 700;

    white-space: nowrap;
}

.lc2-summary-card__value small {
    margin-left: 2px;

    color: #7c8795;

    font-size: 11px;
    font-weight: 600;
}

.lc2-summary-card__note {
    margin-top: 6px;

    color: #8a94a3;

    font-size: 10px;
    line-height: 1.35;
}

.lc2-summary-card--issue {
    border-color: #b9d5f2;

    background: #f4f9ff;
}

.lc2-summary-card--issue .lc2-summary-card__label {
    color: #4775a4;
}

.lc2-summary-card--issue .lc2-summary-card__value {
    color: #0057b8;
}

.lc2-summary-card--warehouse {
    border-color: #d6eadb;

    background: #f7fbf8;
}

.lc2-summary-card--warehouse .lc2-summary-card__value {
    color: #14823b;
}

.lc2-summary-card--customer {
    border-color: #e1e6ec;

    background: #fafbfc;
}


/* =========================================================
   SALE INSTRUCTION — "ДО ПРОДАЖУ"
   ========================================================= */

.lc2-sale-instruction {
    margin-bottom: 14px;

    overflow: hidden;

    border: 1px solid #bed7f1;
    border-radius: 9px;

    background: #fff;
}

.lc2-sale-instruction__title {
    padding: 10px 15px;

    border-bottom: 1px solid #d9e7f5;

    background: #edf5ff;

    color: #0057b8;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .045em;
}

.lc2-sale-instruction__content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    padding: 14px 15px 12px;

    color: #2d3b4f;

    font-size: 13px;
    line-height: 1.4;
}

.lc2-sale-instruction__item {
    display: inline-flex;
    align-items: baseline;

    gap: 5px;
}

.lc2-sale-instruction__item strong {
    color: #172033;

    font-size: 15px;
}

.lc2-sale-instruction__separator {
    color: #8a96a6;

    font-size: 16px;
    font-weight: 700;
}

.lc2-sale-instruction__total {
    display: inline-flex;
    align-items: baseline;

    gap: 5px;
}

.lc2-sale-instruction__total strong {
    color: #0057b8;

    font-size: 18px;
}

.lc2-sale-instruction__note {
    padding: 9px 15px 10px;

    border-top: 1px solid #e5edf5;

    background: #fafcff;

    color: #6f7e91;

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   TECH SUMMARY
   ========================================================= */

.lc2-tech-summary {
    display: flex;
    flex-wrap: wrap;

    gap: 0;

    margin-bottom: 18px;
    padding: 9px 13px;

    border: 1px solid var(--lc2-border);
    border-radius: 8px;

    background: #f8fafc;
}

.lc2-tech-summary__item {
    position: relative;

    display: inline-flex;

    gap: 5px;

    margin-right: 13px;
    padding: 4px 13px 4px 0;

    font-size: 11px;
    line-height: 1.35;
}

.lc2-tech-summary__item:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 6px;
    right: 0;
    bottom: 6px;

    width: 1px;

    background: #e1e7ed;
}

.lc2-tech-summary__item span {
    color: #7d8794;
}

.lc2-tech-summary__item strong {
    color: #344052;
}


/* =========================================================
   BAR CARDS
   ========================================================= */

.lc2-bars {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.lc2-bar-card {
    overflow: hidden;

    border: 1px solid var(--lc2-border);
    border-radius: 9px;

    background: #fff;

    box-shadow:
        0 2px 6px rgba(20, 32, 48, .03);
}

.lc2-bar-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 18px 14px;

    border-bottom: 1px solid #edf0f3;
}

.lc2-bar-card__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    color: #202b3a;

    font-size: 16px;
    font-weight: 700;
}

.lc2-bar-card__subtitle {
    margin-top: 5px;

    color: #7e8896;

    font-size: 12px;
}


/* =========================================================
   SALE BOX
   ========================================================= */

.lc2-sale-box {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 1px minmax(135px, 1fr);

    min-width: 310px;

    overflow: hidden;

    border: 1px solid #d5e0ea;
    border-radius: 8px;

    background: #f8fbff;
}

.lc2-sale-box__item {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 68px;

    padding: 9px 14px;
}

.lc2-sale-box__divider {
    background: #dce5ed;
}

.lc2-sale-box__label {
    color: #758397;

    font-size: 10px;
    line-height: 1.25;

    text-transform: uppercase;
}

.lc2-sale-box__value {
    margin-top: 3px;

    font-size: 18px;
    line-height: 1.05;
    font-weight: 700;
}

.lc2-sale-box__value--sale {
    color: #0057b8;
}

.lc2-sale-box__value--warehouse {
    color: #14823b;
}

.lc2-sale-box__value--zero {
    color: #919ba7;
}

.lc2-sale-box__note {
    margin-top: 3px;

    color: #8995a3;

    font-size: 9px;
}


/* =========================================================
   BAR META
   ========================================================= */

.lc2-bar-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 22px;

    padding: 11px 18px;

    border-bottom: 1px solid #edf0f3;

    background: #fafbfd;
}

.lc2-bar-meta__item {
    display: inline-flex;

    gap: 5px;

    font-size: 11px;
}

.lc2-bar-meta__item span {
    color: #8b95a2;
}

.lc2-bar-meta__item strong {
    color: #3b4655;
}


/* =========================================================
   CUT BAR
   ========================================================= */

.lc2-cut-scroll {
    width: 100%;

    overflow-x: auto;

    padding: 18px;
}

.lc2-cut-bar {
    display: flex;

    width: 100%;
    min-width: 760px;

    height: 72px;

    overflow: hidden;

    border: 1px solid #aab5c1;
    border-radius: 5px;

    background: #f7f8fa;
}

.lc2-cut-segment {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-width: 3px;

    padding: 4px 5px;

    overflow: hidden;

    border-right: 1px solid rgba(46, 59, 73, .34);

    color: #283442;

    text-align: center;

    font-size: 10px;

    white-space: nowrap;
}

.lc2-cut-segment:last-child {
    border-right: 0;
}

.lc2-cut-segment--trim {
    background: #dfe5eb;

    color: #5d6875;

    font-weight: 700;
}

.lc2-cut-segment--part {
    background: #cfe7fb;

    color: #154f88;
}

.lc2-cut-segment--kerf {
    min-width: 2px !important;

    padding: 0;

    background: #34495e;
}

.lc2-cut-segment--customer-extra {
    background: #fff6d9;

    color: #8a6200;
}

.lc2-cut-segment--warehouse {
    background: #e4f4e8;

    color: #23743e;
}

.lc2-cut-segment__name {
    display: block;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    font-size: 10px;
}

.lc2-cut-segment strong {
    font-size: 12px;
}

.lc2-cut-segment small {
    display: block;

    margin-top: 1px;

    opacity: .75;

    font-size: 9px;
}


/* =========================================================
   COORDINATES
   ========================================================= */

.lc2-coordinates {
    padding: 0 18px 18px;
}

.lc2-coordinates--combined {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.lc2-coordinates__group {
    min-width: 0;
}

.lc2-coordinates__group:first-child {
    flex: 1 1 auto;
}

.lc2-coordinates__group--transport {
    flex: 0 0 auto;

    text-align: right;
}

.lc2-coordinates__label {
    margin-bottom: 6px;

    color: #7f8996;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
}

.lc2-coordinates__values {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.lc2-coordinates__group--transport .lc2-coordinates__values {
    justify-content: flex-end;
}

.lc2-coordinates__values span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 43px;

    padding: 4px 7px;

    border: 1px solid #d8dee5;
    border-radius: 4px;

    background: #f8fafb;

    color: #394657;

    font-family: monospace;
    font-size: 10px;
}

.lc2-coordinate-sale-end {
    border-color: #0066cc !important;

    background: #eef6ff !important;

    color: #0057b8 !important;

    font-weight: 700;
}

.lc2-coordinate-transport {
    border-color: #91b8df !important;

    background: #f0f7ff !important;

    color: #0057b8 !important;

    font-weight: 700;
}

.lc2-coordinate-transport small {
    margin-left: 3px;

    font-size: 8px;
}


/* =========================================================
   WAREHOUSE RANGE
   ========================================================= */

.lc2-warehouse-range {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 5px;

    width: auto;

    margin-top: 8px;
    padding: 5px 9px;

    border: 1px solid #cce4d3;
    border-radius: 5px;

    background: #f4fbf6;

    color: #355d42;

    font-size: 10px;
}

.lc2-warehouse-range strong {
    color: #14823b;
}

.lc2-warehouse-range__separator {
    color: #98a7a0;
}


/* =========================================================
   COLLAPSE
   ========================================================= */

.lc2-collapse {
    margin: 0 18px 10px;

    overflow: hidden;

    border: 1px solid #dbe3eb;
    border-radius: 7px;

    background: #fff;
}

.lc2-collapse__summary {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 42px;

    padding: 10px 38px 10px 13px;

    cursor: pointer;

    list-style: none;

    background: #f8fafc;

    color: #304158;

    font-size: 11px;
    font-weight: 600;
}

.lc2-collapse__summary::-webkit-details-marker {
    display: none;
}

.lc2-collapse__summary::after {
    content: "";

    position: absolute;
    right: 15px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 1.5px solid #72849a;
    border-bottom: 1.5px solid #72849a;

    transform:
        translateY(-65%)
        rotate(45deg);

    transition: transform .15s ease;
}

.lc2-collapse[open] > .lc2-collapse__summary::after {
    transform:
        translateY(-30%)
        rotate(225deg);
}

.lc2-collapse__summary small {
    color: #8290a1;

    font-size: 10px;
    font-weight: 400;
}

.lc2-collapse__content {
    padding: 12px 0 0;

    border-top: 1px solid #e5ebf1;
}

.lc2-collapse--transport {
    background: #fff;
}

.lc2-collapse--transport > .lc2-collapse__summary {
    background: #edf6ff;

    color: #1f5b91;
}


/* =========================================================
   PART LIST
   ========================================================= */

.lc2-bar-parts {
    margin: 0 12px 12px;

    overflow: hidden;

    border: 1px solid #e2e7ed;
    border-radius: 6px;
}

.lc2-bar-parts__head,
.lc2-bar-parts__row {
    display: grid;

    grid-template-columns:
        45px
        minmax(160px, 1.7fr)
        minmax(100px, .8fr)
        minmax(90px, .7fr)
        minmax(100px, .8fr);

    align-items: center;
}

.lc2-bar-parts__head {
    background: #f5f7f9;

    color: #717d8b;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .02em;
}

.lc2-bar-parts__head span,
.lc2-bar-parts__row span,
.lc2-bar-parts__row strong {
    padding: 8px 10px;

    border-right: 1px solid #e5e9ee;
}

.lc2-bar-parts__head span:last-child,
.lc2-bar-parts__row strong:last-child {
    border-right: 0;
}

.lc2-bar-parts__row {
    border-top: 1px solid #e8ecf0;

    color: #4a5565;

    font-size: 11px;
}

.lc2-bar-parts__row strong {
    color: #202b3b;
}


/* =========================================================
   TRANSPORT
   ========================================================= */

.lc2-transport {
    margin: 0 12px 12px;
    padding: 12px;

    border: 1px solid #d7e3ef;
    border-radius: 7px;

    background: #fbfdff;
}

.lc2-transport__header {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}

.lc2-transport__title {
    color: #1f3044;

    font-size: 14px;
    font-weight: 700;
}

.lc2-transport__hint {
    margin-top: 2px;

    color: #8090a3;

    font-size: 10px;
}

.lc2-transport-bar {
    display: flex;

    width: 100%;

    min-height: 56px;

    overflow: hidden;

    border: 1px solid #7fa9d2;
    border-radius: 5px;

    background: #eef6ff;
}

.lc2-transport-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 40px;

    padding: 6px 8px;

    border-right: 1px solid #5d8fbd;

    background: #deedfb;

    color: #24445f;

    text-align: center;
}

.lc2-transport-segment:last-child {
    border-right: 0;
}

.lc2-transport-segment__number {
    font-size: 9px;
}

.lc2-transport-segment strong {
    margin-top: 1px;

    color: #1f2b3b;

    font-size: 13px;
}

.lc2-transport-segment small {
    margin-top: 2px;

    color: #7b8fa4;

    font-size: 8px;
}

.lc2-transport-list {
    margin-top: 10px;

    overflow: hidden;

    border: 1px solid #dfe6ed;
    border-radius: 5px;
}

.lc2-transport-list__head,
.lc2-transport-list__row {
    display: grid;

    grid-template-columns:
        50px
        minmax(130px, 1fr)
        minmax(130px, .9fr)
        minmax(130px, .9fr)
        minmax(80px, .6fr);

    align-items: center;
}

.lc2-transport-list__head {
    background: #f2f5f8;

    color: #748295;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.lc2-transport-list__row {
    border-top: 1px solid #e3e9ef;

    color: #39485a;

    font-size: 10px;
}

.lc2-transport-list__head span,
.lc2-transport-list__row span,
.lc2-transport-list__row strong {
    padding: 7px 9px;

    border-right: 1px solid #e0e6ec;
}

.lc2-transport-list__head span:last-child,
.lc2-transport-list__row span:last-child {
    border-right: 0;
}

.lc2-transport-recommendation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;
    padding: 8px 10px;

    border: 1px solid #c9dff4;
    border-radius: 5px;

    background: #f1f8ff;

    color: #31516e;

    font-size: 10px;
}

.lc2-transport-recommendation > strong {
    color: #14558d;
}

.lc2-transport-recommendation > span {
    padding: 3px 6px;

    border-radius: 4px;

    background: #fff;

    color: #185b96;

    font-weight: 600;
}

.lc2-transport-summary {
    display: inline-flex;
    align-items: baseline;

    gap: 4px;
}


/* =========================================================
   RESULT ACTIONS
   ========================================================= */

.lc2-result-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 16px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .lc2-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lc2-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .lc2 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .lc2-settings-grid {
        grid-template-columns: 1fr;
    }

    .lc2-card {
        padding: 17px;
    }

    .lc2-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lc2-bar-card__header {
        flex-direction: column;
    }

    .lc2-sale-box {
        width: 100%;
        min-width: 0;
    }

    .lc2-coordinates--combined {
        align-items: stretch;
        flex-direction: column;
    }

    .lc2-coordinates__group--transport {
        text-align: left;
    }

    .lc2-coordinates__group--transport .lc2-coordinates__values {
        justify-content: flex-start;
    }
}


@media (max-width: 600px) {

    .lc2 {
        padding-left: 0;
        padding-right: 0;
    }

    .lc2__title {
        font-size: 23px;
    }

    .lc2__subtitle {
        margin-top: 14px;
    }

    .lc2-card__header {
        flex-direction: column;

        gap: 10px;
    }

    .lc2-product__meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 7px;
    }

    .lc2-summary {
        grid-template-columns: 1fr 1fr;
    }

    .lc2-summary-card {
        min-height: 105px;
    }

    .lc2-summary-card__value {
        font-size: 20px;
    }

    .lc2-sale-instruction__content {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .lc2-sale-instruction__separator {
        display: none;
    }

    .lc2-sale-instruction__total {
        margin-top: 4px;
    }

    .lc2-tech-summary {
        display: block;
    }

    .lc2-tech-summary__item {
        display: flex;
        justify-content: space-between;

        width: 100%;

        margin: 0;
        padding: 6px 0;

        border-bottom: 1px solid #e5eaf0;
    }

    .lc2-tech-summary__item:last-child {
        border-bottom: 0;
    }

    .lc2-tech-summary__item::after {
        display: none;
    }

    .lc2-actions {
        display: block;
    }

    .lc2-button--large {
        width: 100%;
    }

    .lc2-bar-card__header,
    .lc2-bar-meta,
    .lc2-cut-scroll,
    .lc2-coordinates {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lc2-collapse {
        margin-left: 12px;
        margin-right: 12px;
    }
}


@media (max-width: 440px) {

    .lc2-summary {
        grid-template-columns: 1fr;
    }

    .lc2-summary-card {
        min-height: auto;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .lc2 {
        max-width: none;

        padding: 0;

        font-size: 11px;
    }

    .lc2-form,
    .lc2-result-actions,
    .lc2__subtitle {
        display: none !important;
    }

    .lc2-result {
        margin-top: 0;
    }

    .lc2-summary {
        grid-template-columns: repeat(4, 1fr);
    }

    .lc2-summary-card {
        min-height: 0;

        break-inside: avoid;
    }

    .lc2-sale-instruction {
        break-inside: avoid;
    }

    .lc2-bar-card {
        page-break-inside: avoid;

        box-shadow: none;
    }

    .lc2-cut-scroll {
        overflow: visible;
    }

    .lc2-cut-bar {
        min-width: 0;
    }

    .lc2-collapse {
        break-inside: avoid;
    }
}


/* =========================================================
   CUSTOMER RETURN / SUPPLIER WASTE
   ========================================================= */

.lc2-sale-box__value--customer-return {
    color: #8a6500;
}

.lc2-sale-box__value--waste {
    color: #b42318;
}

.lc2-cut-segment--customer-return {
    background: #fff6d9;
    color: #7a5b00;
}

.lc2-cut-segment--waste {
    background: #fde8e8;
    color: #a32626;
}


/* =========================================================
   PRODUCT SELECTOR
   ========================================================= */

.lc2-product__header {
    align-items: flex-start;
}

.lc2-product__main {
    flex: 1 1 auto;
    min-width: 0;
}

.lc2-product__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 8px;

    flex: 0 0 auto;
}

.lc2-product-change {
    position: relative;
}

.lc2-product-change > summary {
    list-style: none;
}

.lc2-product-change > summary::-webkit-details-marker {
    display: none;
}

.lc2-product-change[open] > summary {
    border-color: #9fc2e8;
    background: #f4f9ff;
    color: #0057b8;
}

.lc2-product-change__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    z-index: 30;

    width: 480px;
    max-width: min(480px, calc(100vw - 40px));

    padding: 16px;

    border: 1px solid #cdd9e5;
    border-radius: 9px;

    background: #fff;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, .12);
}

.lc2-product-selector--initial {
    border-left: 4px solid var(--lc2-primary);
}

.lc2-product-search-form {
    margin-top: 14px;
}

.lc2-product-search-form--initial {
    max-width: 620px;
}

.lc2-product-search-field {
    display: block;
}

.lc2-product-search-field__label {
    display: block;

    margin-bottom: 7px;

    color: #263449;

    font-size: 12px;
    font-weight: 700;
}

.lc2-product-search-field__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;

    gap: 8px;

    align-items: center;
}

.lc2-product-search-field__control .lc2-input {
    height: 40px;
}

.lc2-product-search-field__control .lc2-button {
    min-height: 40px;
    white-space: nowrap;
}

.lc2-product-search-message {
    margin-top: 12px;
    padding: 10px 12px;

    border-radius: 6px;

    font-size: 12px;
    line-height: 1.4;
}

.lc2-product-search-message--error {
    border: 1px solid #efc3c3;
    background: #fff5f5;
    color: #a52828;
}

.lc2-product-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 14px;
    padding: 14px;

    border: 1px solid #cfe0f1;
    border-radius: 8px;

    background: #f8fbff;
}

.lc2-product-search-result--initial {
    max-width: 820px;
}

.lc2-product-search-result__body {
    flex: 1 1 auto;
    min-width: 0;
}

.lc2-product-search-result__label {
    margin-bottom: 4px;

    color: #6381a1;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.lc2-product-search-result__name {
    color: #172033;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.lc2-product-search-result__meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 16px;

    margin-top: 8px;

    color: #66768a;

    font-size: 11px;
}

.lc2-product-search-result__meta strong {
    color: #28364a;
}

.lc2-product-search-result__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 8px;

    flex: 0 0 auto;
}

.lc2-product-selector-note {
    margin: 0 0 20px;
    padding: 12px 14px;

    border: 1px solid #d9e3ed;
    border-radius: 7px;

    background: #f8fafc;

    color: #64748b;

    font-size: 12px;
    line-height: 1.45;
}


/* Product metadata */

.lc2-product__meta {
    row-gap: 8px;
}

.lc2-product__meta-item {
    white-space: nowrap;
}

.lc2-product__meta-label {
    color: #758196;
}


/* =========================================================
   PRODUCT SELECTOR RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .lc2-product__header {
        flex-direction: column;
    }

    .lc2-product__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .lc2-product-change {
        position: static;
    }

    .lc2-product-change__panel {
        position: static;

        width: 100%;
        max-width: none;

        margin-top: 8px;

        box-shadow: none;
    }

    .lc2-product-search-result {
        flex-direction: column;
        align-items: flex-start;
    }

    .lc2-product-search-result__actions {
        justify-content: flex-start;
        width: 100%;
    }
}


@media (max-width: 600px) {

    .lc2-product-search-field__control {
        grid-template-columns: 1fr;
    }

    .lc2-product-search-field__control .lc2-button {
        width: 100%;
    }

    .lc2-product__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .lc2-product__actions > .lc2-button,
    .lc2-product-change > summary {
        width: 100%;
    }

    .lc2-product-search-result__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .lc2-product-search-result__actions .lc2-button {
        width: 100%;
    }

    .lc2-settings-grid .lc2-field__label {
        min-height: 0;
        align-items: flex-start;
    }

    .lc2-settings-grid .lc2-field__hint {
        min-height: 0;
    }
}
/* =========================================================
   TRANSPORT TABLE — 6 COLUMNS
   Final override
   ========================================================= */

.lc2-transport-list {
    width: 100%;
    overflow: hidden;
}

.lc2-transport-list__head,
.lc2-transport-list__row {
    display: grid;

    /*
     * № | Довжина | Мін. потрібно | Від/До |
     * К-сть | Чистові деталі
     */
    grid-template-columns:
        54px
        minmax(125px, .95fr)
        minmax(125px, .90fr)
        minmax(135px, .95fr)
        minmax(95px, .70fr)
        minmax(190px, 1.55fr);

    align-items: stretch;
}

.lc2-transport-list__head > span,
.lc2-transport-list__row > span,
.lc2-transport-list__row > strong {
    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 38px;

    padding: 8px 10px;

    border-right: 1px solid #e0e6ec;

    line-height: 1.3;

    overflow-wrap: anywhere;
    word-break: normal;
}

.lc2-transport-list__head > span {
    color: #64748b;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.lc2-transport-list__row > span,
.lc2-transport-list__row > strong {
    color: #334155;

    font-size: 10px;
}

.lc2-transport-list__row > strong {
    font-weight: 700;
}

.lc2-transport-list__head > span:last-child,
.lc2-transport-list__row > span:last-child,
.lc2-transport-list__row > strong:last-child {
    border-right: 0;
}


/*
 * Окрема колонка з чистовими розмірами деталей.
 *
 * Приклади:
 * 1850 ×1; 785 ×1
 * 785 ×3; 713 ×4
 */
.lc2-transport-list__parts {
    align-items: center !important;

    color: #172033 !important;

    font-weight: 700 !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}


/* =========================================================
   TRANSPORT WARNING
   ========================================================= */

.lc2-transport-recommendation--warning {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    border-color: #efc06c;
    background: #fff8e8;

    color: #7a4b00;
}

.lc2-transport-recommendation--warning > strong {
    color: #9a4d00;
}

.lc2-transport-recommendation--warning > span {
    background: #ffffff;

    color: #7a4b00;

    font-weight: 600;
}


/*
 * На середніх екранах таблицю не ламаємо.
 * Даємо горизонтальний скрол усередині транспортного блока.
 */
@media (max-width: 980px) {

    .lc2-transport-list {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .lc2-transport-list__head,
    .lc2-transport-list__row {
        min-width: 850px;
    }
}


@media (max-width: 600px) {

    .lc2-transport-list__head,
    .lc2-transport-list__row {
        min-width: 820px;
    }
}

/* =========================================================
   READABILITY — IMPORTANT VALUES
   Final override
   ========================================================= */

/*
 * Координати від початку профілю
 */
.lc2-coordinates__label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
}

.lc2-coordinate,
.lc2-coordinates__values > *,
.lc2-coordinates__values--transport > * {
    min-width: 46px;

    padding: 6px 9px !important;

    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;

    text-align: center;
}


/*
 * Таблиця деталей заготовки
 */
.lc2-parts-table__head,
.lc2-parts-table__row {
    font-size: 11px;
}

.lc2-parts-table__head > *,
.lc2-parts-table__row > * {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

.lc2-parts-table__row strong,
.lc2-parts-table__row [class*="cut"],
.lc2-parts-table__row > *:last-child {
    font-size: 12px !important;
    font-weight: 700 !important;
}


/*
 * Транспортна таблиця
 */
.lc2-transport-list__head > span {
    font-size: 10px !important;
}

.lc2-transport-list__row > span,
.lc2-transport-list__row > strong {
    min-height: 42px;

    font-size: 11px !important;
}

.lc2-transport-list__row > span:nth-child(2),
.lc2-transport-list__row > span:nth-child(3),
.lc2-transport-list__row > span:nth-child(4),
.lc2-transport-list__row > span:nth-child(5),
.lc2-transport-list__row > span:nth-child(6),
.lc2-transport-list__row > strong {
    font-weight: 600;
}

/*
 * Фактична довжина транспортного шматка
 * і чистові деталі — найважливіші значення.
 */
.lc2-transport-list__row > span:nth-child(2),
.lc2-transport-list__parts {
    color: #111827 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
}


/*
 * T1 / T2 на графічній схемі
 */
.lc2-transport-segment__number {
    font-size: 10px !important;
    font-weight: 600 !important;
}

.lc2-transport-segment > strong {
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

.lc2-transport-segment > small {
    font-size: 9px !important;
    line-height: 1.25 !important;
}


/*
 * Основна схема розкрою:
 * назва деталі / порізочний розмір / чистовий розмір.
 */
.lc2-cut-segment__name {
    font-size: 10px !important;
}

.lc2-cut-segment__value,
.lc2-cut-segment > strong {
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

.lc2-cut-segment__note,
.lc2-cut-segment > small {
    font-size: 9px !important;
}


/*
 * Верхній рядок параметрів заготовки
 */
.lc2-bar-meta__item,
.lc2-bar-meta > * {
    font-size: 10px !important;
}

.lc2-bar-meta__item strong,
.lc2-bar-meta > * strong {
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* =========================================================
   RESULT PDF BUTTONS — ACTIVE STATE
   Final override
   ========================================================= */

.lc2-result__documents {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.lc2-result__documents .lc2-button--pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 9px 14px;

    border: 1px solid #9fc2e8;
    border-radius: 6px;

    background: #ffffff;
    color: #17324d;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;

    cursor: pointer !important;
    pointer-events: auto !important;

    opacity: 1 !important;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.lc2-result__documents .lc2-button--pdf:hover {
    border-color: #0066cc;

    background: #eef6ff;
    color: #0057b8;
}

.lc2-result__documents .lc2-button--pdf:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.lc2-result__documents .lc2-button--pdf:disabled {
    cursor: pointer !important;
    pointer-events: auto !important;

    opacity: 1 !important;
}

.lc2-result__documents .lc2-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 22px;
    padding: 0 5px;

    border: 1px solid #0066cc;
    border-radius: 3px;

    color: #0057b8;
    background: #ffffff;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .04em;
}

/* =========================================================
 * LC2 — USER / CUSTOMER
 * ========================================================= */

.lc2-customer-card {
    overflow: visible;
}

.lc2-customer-card .lc2-card__header {
    padding-bottom: 12px;
}

.lc2-customer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 16px;
    padding: 0 20px 20px;
}

.lc2-customer-panel {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #fff;
}

.lc2-customer-panel--user {
    background: #f8fafc;
}

.lc2-customer-panel--customer {
    position: relative;
}

.lc2-customer-panel__label {
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.lc2-customer-panel__name {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #172033;
}

.lc2-customer-panel__empty {
    font-size: 14px;
    color: #7b8794;
}

.lc2-customer-panel__note {
    margin-top: 4px;
    font-size: 11px;
    color: #7b8794;
}


/* CRM search */

.lc2-crm-customer {
    position: relative;
}

.lc2-crm-search {
    position: relative;
}

.lc2-crm-search__input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
}

.lc2-crm-search__results {
    position: absolute;
    z-index: 100;

    top: calc(100% + 5px);
    left: 0;
    right: 0;

    max-height: 320px;
    overflow-y: auto;

    border: 1px solid #d7e2ee;
    border-radius: 8px;
    background: #fff;

    box-shadow: 0 10px 30px rgba(31, 41, 55, .13);
}

.lc2-crm-search__results[hidden] {
    display: none !important;
}


/* Selected CRM customer */

.lc2-crm-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-height: 42px;
}

.lc2-crm-selected[hidden] {
    display: none !important;
}

.lc2-crm-selected__body {
    min-width: 0;
    flex: 1 1 auto;
}

.lc2-crm-selected__name {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #172033;
}

.lc2-crm-selected__meta {
    margin-top: 3px;
    font-size: 11px;
    color: #64748b;
}

.lc2-crm-selected__change {
    flex: 0 0 auto;
}


/* Responsive */

@media (max-width: 760px) {

    .lc2-customer-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
 * LC2 — CRM CUSTOMER SEARCH RESULTS
 * ========================================================= */

.lc2-crm-results__group {
    padding: 6px;
}

.lc2-crm-results__group + .lc2-crm-results__group {
    border-top: 1px solid #e2e8f0;
}

.lc2-crm-results__title {
    padding: 7px 9px 5px;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .05em;

    color: #64748b;
}


/* Один результат */

.lc2-crm-results__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;

    margin: 0;
    padding: 9px 10px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.lc2-crm-results__item:hover,
.lc2-crm-results__item:focus {
    background: #f1f6fc;
    outline: none;
}

.lc2-crm-results__item strong {
    display: block;

    width: 100%;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;

    color: #172033;
}

.lc2-crm-results__item span {
    display: block;

    margin-top: 3px;

    font-size: 11px;
    line-height: 1.25;

    color: #718096;
}


/* Empty / loading / error */

.lc2-crm-results__empty {
    padding: 14px 15px;

    font-size: 13px;
    line-height: 1.35;

    color: #64748b;
}

.lc2-crm-results__empty--error {
    color: #b42318;
}


/* Scroll */

.lc2-crm-search__results {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.lc2-crm-search__results::-webkit-scrollbar {
    width: 7px;
}

.lc2-crm-search__results::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #cbd5e1;
}



/* =========================================================
 * PDF — USER / CUSTOMER HEADER
 * ========================================================= */

.lc2-print-document-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr) auto;
    gap: 28px;
    align-items: center;
}

.lc2-print-customer-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lc2-print-customer-info > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.lc2-print-customer-info span {
    flex: 0 0 auto;
    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #6b7280;
}

.lc2-print-customer-info strong {
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}



/* =========================================================
 * LC2 — MY PROJECTS
 * ========================================================= */

.lc2-customer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.lc2-my-projects-button {
    flex: 0 0 auto;
}

.lc2-my-projects {
    margin: 0 20px 20px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.lc2-my-projects[hidden] {
    display: none !important;
}

.lc2-my-projects__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 13px 15px;

    border-bottom: 1px solid #e5edf5;
    background: #f8fafc;
}

.lc2-my-projects__title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #172033;
}

.lc2-my-projects__close {
    width: 30px;
    height: 30px;
    padding: 0;

    border: 0;
    border-radius: 6px;
    background: transparent;

    font-size: 22px;
    line-height: 30px;
    color: #64748b;

    cursor: pointer;
}

.lc2-my-projects__close:hover {
    background: #eef3f8;
}

.lc2-my-projects__body {
    max-height: 360px;
    overflow-y: auto;
}

.lc2-project-list__empty,
.lc2-project-list__loading,
.lc2-project-list__error {
    padding: 18px 16px;
    font-size: 13px;
    color: #64748b;
}

.lc2-project-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;

    padding: 14px 15px;

    border-bottom: 1px solid #edf2f7;
}

.lc2-project-list__item:last-child {
    border-bottom: 0;
}

.lc2-project-list__main {
    min-width: 0;
}

.lc2-project-list__name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #172033;
}

.lc2-project-list__customer {
    margin-top: 4px;
    font-size: 12px;
    color: #475569;
}

.lc2-project-list__date {
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.lc2-project-list__open {
    white-space: nowrap;
}

@media (max-width: 760px) {

    .lc2-customer-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .lc2-project-list__item {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
 * LC2 — PROJECT MANAGEMENT
 * ========================================================= */

.lc2-project-list__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.lc2-project-rename {
    width: 100%;
}

.lc2-project-rename[hidden] {
    display: none !important;
}

.lc2-project-rename__input {
    width: 100%;
}

.lc2-project-rename__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.lc2-button--danger {
    border-color: #f0c7c7;
    background: #fff;
    color: #b42318;
}

.lc2-button--danger:hover {
    border-color: #e7abab;
    background: #fff5f5;
    color: #991b1b;
}

@media (max-width: 900px) {

    .lc2-project-list__actions {
        justify-content: flex-start;
    }
}



/* =========================================================
 * LC2 — ACTIVE PROJECT HEADER REFINEMENT
 * ========================================================= */

.lc2-customer-title-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 14px;

    width: 100%;
}

.lc2-customer-title-row .lc2-card__title {
    margin: 0;
    white-space: nowrap;
}

.lc2-my-projects-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.lc2-active-project {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;

    min-width: 0;
    max-width: 100%;

    padding-left: 2px;

    font-size: 12px;
    line-height: 1.35;
}

.lc2-active-project[hidden] {
    display: none !important;
}

.lc2-active-project__label {
    color: #64748b;
    white-space: nowrap;
}

.lc2-active-project__name {
    min-width: 0;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #172033;
    font-weight: 700;
}

.lc2-active-project__date {
    padding: 4px 8px;

    border-radius: 999px;

    background: #eef8f1;

    color: #15803d;
    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

@media (max-width: 1100px) {

    .lc2-customer-title-row {
        grid-template-columns: auto auto;
    }

    .lc2-active-project {
        grid-column: 1 / -1;

        grid-template-columns: auto minmax(0, 1fr) auto;

        padding-top: 4px;
    }
}

@media (max-width: 760px) {

    .lc2-customer-title-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lc2-my-projects-button {
        width: max-content;
    }

    .lc2-active-project {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 3px;

        padding-top: 0;
    }

    .lc2-active-project__date {
        width: max-content;
    }
}



/* =========================================================
 * LC2 — ACTIVE PROJECT HEADER V2
 * ========================================================= */

.lc2-customer-title-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: start;

    column-gap: 14px;
    row-gap: 8px;

    width: 100%;
}

.lc2-customer-title-row .lc2-card__title {
    grid-column: 1;
    grid-row: 1;

    margin: 0;

    white-space: nowrap;
}

.lc2-my-projects-button {
    grid-column: 2;
    grid-row: 1;

    white-space: nowrap;
}


/* Активний проєкт — окремий другий рядок */

.lc2-active-project {
    grid-column: 1 / -1;
    grid-row: 2;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;

    gap: 10px;

    min-width: 0;

    padding-top: 2px;
}

.lc2-active-project[hidden] {
    display: none !important;
}


/* Підпис */

.lc2-active-project__label {
    color: #64748b;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: .03em;

    white-space: nowrap;
}


/* Назва */

.lc2-active-project__name {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #172033;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}


/* Статус / дата */

.lc2-active-project__date {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    background: #eef8f1;

    color: #15803d;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}


/* Крапка статусу */

.lc2-active-project__date::before {
    content: "";

    display: block;

    width: 6px;
    height: 6px;

    margin-right: 6px;

    border-radius: 50%;

    background: currentColor;
}


/* =========================================================
 * TABLET
 * ========================================================= */

@media (max-width: 1000px) {

    .lc2-active-project {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .lc2-active-project__date {
        grid-column: 2;
        justify-self: start;
    }
}


/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 700px) {

    .lc2-customer-title-row {
        grid-template-columns: 1fr auto;
    }

    .lc2-active-project {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .lc2-active-project__label,
    .lc2-active-project__name,
    .lc2-active-project__date {
        grid-column: 1;
    }

    .lc2-active-project__date {
        justify-self: start;

        margin-top: 2px;
    }
}


.lc2-active-project__date.is-dirty {
    background: #fff7ed;
    color: #b45309;
}



/* =========================================================
 * LC2 — NEW PROJECT BUTTON
 * ========================================================= */

.lc2-new-project-button {
    margin-left: auto;
    white-space: nowrap;
}

.lc2-customer-title-row {
    grid-template-columns:
        auto
        auto
        minmax(0, 1fr)
        auto;
}

.lc2-customer-title-row .lc2-card__title {
    grid-column: 1;
}

.lc2-my-projects-button {
    grid-column: 2;
}

.lc2-new-project-button {
    grid-column: 4;
    grid-row: 1;
}

.lc2-active-project {
    grid-column: 1 / -1;
}

@media (max-width: 1000px) {

    .lc2-customer-title-row {
        grid-template-columns:
            auto
            auto
            1fr;
    }

    .lc2-new-project-button {
        grid-column: 3;
        justify-self: end;
    }
}

@media (max-width: 700px) {

    .lc2-customer-title-row {
        grid-template-columns:
            1fr
            auto;
    }

    .lc2-new-project-button {
        grid-column: 2;
        grid-row: 1;
    }

    .lc2-my-projects-button {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .lc2-active-project {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}



/* =========================================================
 * LC2 — NEW PROJECT BUTTON RIGHT CORNER
 * ========================================================= */

.lc2-customer-title-row {
    display: grid;

    grid-template-columns:
        auto
        auto
        minmax(0, 1fr)
        auto;

    grid-template-rows:
        auto
        auto;

    align-items: center;

    column-gap: 14px;
    row-gap: 8px;

    width: 100%;
}


/* Заголовок */
.lc2-customer-title-row .lc2-card__title {
    grid-column: 1;
    grid-row: 1;

    margin: 0;

    white-space: nowrap;
}


/* Мої проєкти */
.lc2-my-projects-button {
    grid-column: 2;
    grid-row: 1;

    justify-self: start;

    white-space: nowrap;
}


/* Новий проєкт — крайній правий кут */
.lc2-new-project-button,
#lc2-new-project {
    grid-column: 4;
    grid-row: 1;

    justify-self: end;

    margin-left: 0;

    white-space: nowrap;
}


/* Активний проєкт — окремий нижній рядок */
.lc2-active-project {
    grid-column: 1 / -1;
    grid-row: 2;

    min-width: 0;
    width: 100%;
}


/* =========================================================
 * TABLET
 * ========================================================= */

@media (max-width: 950px) {

    .lc2-customer-title-row {
        grid-template-columns:
            auto
            auto
            minmax(20px, 1fr)
            auto;
    }
}


/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 700px) {

    .lc2-customer-title-row {
        grid-template-columns:
            1fr
            auto;

        grid-template-rows:
            auto
            auto
            auto;
    }


    .lc2-customer-title-row .lc2-card__title {
        grid-column: 1;
        grid-row: 1;
    }


    .lc2-new-project-button,
    #lc2-new-project {
        grid-column: 2;
        grid-row: 1;

        justify-self: end;
    }


    .lc2-my-projects-button {
        grid-column: 1;
        grid-row: 2;

        justify-self: start;
    }


    .lc2-active-project {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}



/* =========================================================
 * LC2 — FIXED NEW PROJECT POSITION
 * ========================================================= */

.lc2-customer-title-row {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;

    width: 100%;

    /*
     * Резервуємо місце праворуч,
     * щоб заголовок та "Мої проєкти"
     * не заходили під кнопку.
     */
    padding-right: 170px;
}


.lc2-customer-title-row .lc2-card__title {
    margin: 0;

    white-space: nowrap;
}


.lc2-my-projects-button {
    flex: 0 0 auto;
}


/*
 * Новий проєкт завжди прив'язаний
 * до правого верхнього кута шапки.
 */
.lc2-new-project-button,
#lc2-new-project {
    position: absolute;

    top: 0;
    right: 0;

    margin: 0;

    white-space: nowrap;
}


/*
 * Активний проєкт завжди окремим
 * другим рядком і не впливає
 * на координати кнопки.
 */
.lc2-active-project {
    flex: 0 0 100%;

    width: 100%;
    min-width: 0;
}


/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 700px) {

    .lc2-customer-title-row {
        padding-right: 0;
    }


    .lc2-new-project-button,
    #lc2-new-project {
        position: static;

        margin-left: auto;
    }


    .lc2-active-project {
        width: 100%;
    }
}



/* =========================================================
 * Facade dimensions modal
 * ========================================================= */

.lc2-facade-modal[hidden] {
    display: none !important;
}

.lc2-facade-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.lc2-facade-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(20, 32, 48, 0.48);
}

.lc2-facade-modal__dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 560px;

    background: #ffffff;
    border-radius: 12px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.20);

    overflow: hidden;
}

.lc2-facade-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 24px 26px 18px;

    border-bottom: 1px solid #e8edf3;
}

.lc2-facade-modal__title {
    margin: 4px 0 0;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;

    color: #222222;
}

.lc2-facade-modal__close {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #777777;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.lc2-facade-modal__close:hover {
    background: #f3f6f9;
    color: #222222;
}

.lc2-facade-modal__body {
    padding: 24px 26px;
}

.lc2-facade-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.lc2-facade-modal__grid .lc2-field:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
}

.lc2-facade-modal__hint {
    margin-top: 18px;
    padding: 12px 14px;

    border-radius: 7px;

    background: #f5f8fb;

    color: #687481;

    font-size: 13px;
    line-height: 1.45;
}

.lc2-facade-modal__error {
    margin-top: 16px;
    padding: 11px 14px;

    border: 1px solid #efc5c5;
    border-radius: 7px;

    background: #fff5f5;

    color: #b42318;

    font-size: 13px;
    line-height: 1.4;
}

.lc2-facade-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding: 18px 26px 22px;

    border-top: 1px solid #e8edf3;
}


/* Button in Parts header */

#lc2-facade-size-button {
    flex: 0 0 auto;
    white-space: nowrap;
}


@media (max-width: 640px) {

    .lc2-facade-modal {
        padding: 12px;
    }

    .lc2-facade-modal__dialog {
        max-width: none;
    }

    .lc2-facade-modal__header,
    .lc2-facade-modal__body,
    .lc2-facade-modal__footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .lc2-facade-modal__grid {
        grid-template-columns: 1fr;
    }

    .lc2-facade-modal__grid .lc2-field:last-child {
        grid-column: auto;
        max-width: none;
    }

    .lc2-facade-modal__footer {
        flex-direction: column-reverse;
    }

    .lc2-facade-modal__footer .lc2-button {
        width: 100%;
    }
}

body.lc2-modal-open {
    overflow: hidden;
}

/* End */
/* /local/components/auspex/linear.calculator2/templates/.default/style.css?178777158264503 */
