/* ═══════════════════════════════════════════════════════════════════
   Hajipur - Add Raw Material / Design Input Page Styles
   DeepPolymer Standard Design & Typography System
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Header Back Button Slot
   ───────────────────────────────────────────────────────────────── */
.header-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #0A0A0A;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    transition: color 0.12s;
}

    .header-back-btn:hover {
        color: #0405AB;
    }

    .header-back-btn svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

/* ─────────────────────────────────────────────────────────────────
   Page Container
   ───────────────────────────────────────────────────────────────── */
.arm-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   Card Common Styles
   ───────────────────────────────────────────────────────────────── */
.arm-card {
    background: #FFFFFF;
    border: 1px solid #E5E5EE;
    border-radius: 8px;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────
   PMR Information Top Card
   ───────────────────────────────────────────────────────────────── */
.arm-info-card {
    padding: 14px 18px;
    width: 100%;
}

.arm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.arm-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arm-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1;
}

.arm-info-badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 50%;
    transition: opacity 0.15s ease;
}

    .arm-info-badge-btn:hover {
        opacity: 0.75;
    }

.arm-info-icon {
    width: 16px;
    height: 16px;
    display: block;
}



/* ─────────────────────────────────────────────────────────────────
   PMR Information Grid (4 Columns)
   ───────────────────────────────────────────────────────────────── */
.arm-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 12px;
    column-gap: 16px;
    width: 100%;
}

.arm-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.arm-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #151515;
    margin: 0;
    line-height: 1.3;
}

.arm-info-value {
    font-size: 12px;
    font-weight: 400;
    color: #808080;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

/* ─────────────────────────────────────────────────────────────────
   Split Layout: Planning Table + Raw Material Card
   ───────────────────────────────────────────────────────────────── */
.arm-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   Planning Table (Left Card)
   ───────────────────────────────────────────────────────────────── */
.arm-table-wrapper.arm-split-left {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E5EE;
    border-radius: 8px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

    .arm-table-wrapper.arm-split-left::-webkit-scrollbar {
        height: 5px;
    }

    .arm-table-wrapper.arm-split-left::-webkit-scrollbar-track {
        background: #F9FAFB;
        border-radius: 3px;
    }

    .arm-table-wrapper.arm-split-left::-webkit-scrollbar-thumb {
        background: #D1D5DB;
        border-radius: 3px;
    }

        .arm-table-wrapper.arm-split-left::-webkit-scrollbar-thumb:hover {
            background: #9CA3AF;
        }

.arm-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    background: #FFFFFF;
}

    .arm-table thead {
        background-color: #EEF0FF;
    }

        .arm-table thead th {
            padding: 13px 12px;
            font-size: 13px;
            font-weight: 600;
            color: #1F2937;
            text-align: left;
            border-bottom: 1px solid #E5E5EE;
            line-height: 1.3;
        }

            .arm-table thead th:first-child {
                width: 28%;
                min-width: 155px;
                padding-left: 16px;
                padding-right: 12px;
            }

            .arm-table thead th:not(:first-child) {
                width: 36%;
            }

    .arm-table tbody tr {
        border-bottom: 1px solid #F0F1F5;
    }

        .arm-table tbody tr:last-child {
            border-bottom: 1px solid #F0F1F5;
        }

    .arm-table tbody td {
        padding: 9px 10px;
        vertical-align: middle;
        background-color: #FFFFFF;
    }

        .arm-table tbody td:first-child {
            padding-left: 16px;
            padding-right: 14px;
            width: 28%;
            min-width: 155px;
            background-color: #F8F9FA;
        }

        .arm-table tbody td:last-child {
            padding-right: 16px;
        }

.arm-table-type-cell {
    font-size: 13px;
    font-weight: 600;
    color: #4B5563;
    white-space: nowrap;
}

.arm-display-value {
    background-color: #F2F2F2;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    height: 38px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    color: #737373;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────────
   Raw Material Card (Right Card)
   ───────────────────────────────────────────────────────────────── */
.arm-raw-material-card {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E5EE;
    border-radius: 8px;
    box-sizing: border-box;
}

.arm-rm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.arm-rm-header-left {
    display: flex;
    flex-direction: column;
}

.arm-rm-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.arm-rm-subtitle {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.4;
}

.arm-btn-add-material {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none;
    line-height: 1.3;
}

    .arm-btn-add-material:hover {
        background: #F9FAFB;
        border-color: #9CA3AF;
    }

/* ─────────────────────────────────────────────────────────────────
   %LDR Section (Below Raw Material Table) - Blue Based Theme
   ───────────────────────────────────────────────────────────────── */
.arm-ldr-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border: 1px solid #E0E7FF;
    border-left: 4px solid #0405AB;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(4, 5, 171, 0.04);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

    .arm-ldr-card.is-disabled {
        background: #F9FAFB;
        border-color: #E5E7EB;
        border-left-color: #CBD5E1;
        box-shadow: none;
    }

    .arm-ldr-card.has-error {
        background: linear-gradient(135deg, #FFFDFD 0%, #FEF2F2 100%);
        border-color: #FECACA;
        border-left-color: #EF4444;
    }

.arm-ldr-label-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.arm-ldr-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    line-height: 1.3;
}

.arm-ldr-hint {
    font-size: 12px;
    font-weight: 400;
    color: #64748B;
    margin: 0;
    line-height: 1.35;
}

.arm-ldr-card.is-disabled .arm-ldr-hint {
    color: #9CA3AF;
}

.arm-ldr-label .required-star {
    color: #EF4444 !important;
    font-weight: 700;
    margin-left: 0 !important;
}

.required-star {
    color: #EF4444 !important;
    font-weight: 700;
}

.arm-ldr-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.arm-ldr-input {
    width: 130px;
    height: 38px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #1F2937;
    box-sizing: border-box;
    transition: all 0.15s ease;
    text-align: right;
}

    .arm-ldr-input:focus {
        border-color: #9CA3AF;
        outline: none;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
    }

    .arm-ldr-input:disabled {
        background-color: #F3F4F6;
        color: #9CA3AF;
        cursor: not-allowed;
        border-color: #E5E7EB;
    }

    .arm-ldr-input.invalid {
        border-color: #EF4444 !important;
    }

        .arm-ldr-input.invalid:focus {
            box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
        }

.arm-ldr-error-msg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #DC2626;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.25;
    margin-top: 2px;
    text-align: right;
    white-space: nowrap;
}

    .arm-ldr-error-msg svg {
        flex-shrink: 0;
    }

/* ─────────────────────────────────────────────────────────────────
   Raw Material Inner Table
   ───────────────────────────────────────────────────────────────── */
/* Grows with the screen height so PMRs with many materials use the free
   space (same approach as the Santej weights grid). 560px is roughly
   everything else on the page (header, PMR info card, card title, %LDR
   card, warning + buttons). Never smaller than the original 255px, so
   720–768px tall laptops look the same as before. */
.arm-rm-table-wrapper {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow-y: auto;
    max-height: max(255px, calc(100vh - 560px));
    margin-top: 14px;
    margin-bottom: 16px;
    background: #FFFFFF;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.arm-rm-table {
    width: 100%;
    border-collapse: collapse;
}

    .arm-rm-table thead {
        background-color: #F9FAFB;
        position: sticky;
        top: 0;
        z-index: 2;
    }

        .arm-rm-table thead th {
            padding: 11px 16px;
            font-size: 13px;
            font-weight: 500;
            color: #6B7280;
            text-align: left;
            border-bottom: 1px solid #E5E7EB;
            line-height: 1.3;
        }

    .arm-rm-table tbody tr {
        border-bottom: 1px solid #E5E7EB;
    }

        .arm-rm-table tbody tr:last-child {
            border-bottom: none;
        }

    .arm-rm-table tbody td {
        padding: 10px 12px;
        vertical-align: top;
    }

        .arm-rm-table tbody td:first-child {
            padding-left: 16px;
        }

        .arm-rm-table tbody td:last-child {
            padding-right: 16px;
            vertical-align: top;
            padding-top: 15px;
            text-align: center;
        }

/* ─────────────────────────────────────────────────────────────────
   Radzen DropDown & Input Controls
   ───────────────────────────────────────────────────────────────── */
.arm-radzen-dropdown,
.cpmr-radzen-dropdown {
    width: 100%;
    height: 38px;
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
    font-size: 13.5px !important;
    color: #374151 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: left !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease;
}

    .arm-radzen-dropdown .rz-dropdown-label-container,
    .cpmr-radzen-dropdown .rz-dropdown-label-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .arm-radzen-dropdown .rz-dropdown-label,
    .cpmr-radzen-dropdown .rz-dropdown-label,
    .arm-radzen-dropdown .rz-placeholder,
    .cpmr-radzen-dropdown .rz-placeholder,
    .arm-radzen-dropdown .rz-inputtext,
    .cpmr-radzen-dropdown .rz-inputtext {
        padding: 0 28px 0 12px !important;
        font-size: 13.5px !important;
        color: #374151 !important;
        line-height: 1.4 !important;
        height: auto !important;
        margin: 0 !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

        .arm-radzen-dropdown.rz-dropdown:has(.rz-dropdown-clear-icon) .rz-dropdown-label,
        .cpmr-radzen-dropdown.rz-dropdown:has(.rz-dropdown-clear-icon) .rz-dropdown-label,
        .arm-radzen-dropdown .rz-dropdown-label:not(.rz-placeholder),
        .cpmr-radzen-dropdown .rz-dropdown-label:not(.rz-placeholder) {
            padding-right: 50px !important;
        }

    .arm-radzen-dropdown .rz-dropdown-trigger,
    .cpmr-radzen-dropdown .rz-dropdown-trigger {
        color: #9CA3AF !important;
        margin-left: auto !important;
    }

    .arm-radzen-dropdown:focus-within,
    .cpmr-radzen-dropdown:focus-within {
        border: 1px solid #9CA3AF !important;
        background-color: #FFFFFF !important;
        color: #111827 !important;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2) !important;
    }

    /* Invalid / Validation highlight state */
    .arm-radzen-dropdown.invalid,
    .arm-radzen-dropdown.is-invalid,
    .arm-radzen-dropdown.rz-state-invalid {
        border: 1px solid #dc3545 !important;
        box-shadow: none !important;
        outline: unset;
    }

        .arm-radzen-dropdown.invalid:focus-within,
        .arm-radzen-dropdown.is-invalid:focus-within,
        .arm-radzen-dropdown.rz-state-invalid:focus-within {
            border: 1px solid #dc3545 !important;
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
        }

.arm-input.arm-rm-input {
    width: 100%;
    height: 38px;
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
    font-size: 13.5px;
    font-weight: 400;
    color: #374151;
    padding: 0 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .arm-input.arm-rm-input::placeholder {
        color: #9CA3AF;
    }

    .arm-input.arm-rm-input:focus {
        border: 1px solid #9CA3AF !important;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2) !important;
    }

    .arm-input.arm-rm-input.invalid,
    .arm-input.arm-rm-input.is-invalid {
        border: 1px solid #dc3545 !important;
        box-shadow: none !important;
    }

        .arm-input.arm-rm-input.invalid:focus,
        .arm-input.arm-rm-input.is-invalid:focus {
            border: 1px solid #dc3545 !important;
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
        }

/* Validation message displayed below fields */
.arm-field-error {
    color: #dc3545 !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    margin-top: 4px !important;
    display: block !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

.arm-icon-btn.arm-btn-delete-mat {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #9CA3AF;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

    .arm-icon-btn.arm-btn-delete-mat:hover {
        color: #EF4444;
        background-color: #FEF2F2;
    }

/* ─────────────────────────────────────────────────────────────────
   Footer: Warning Alert & Action Buttons
   ───────────────────────────────────────────────────────────────── */
.arm-rm-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #E5E5EE;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.arm-warning-alert {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.arm-warning-icon {
    color: #1e40af;
    flex-shrink: 0;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .arm-warning-icon svg {
        width: 16px;
        height: 16px;
    }

.arm-warning-text {
    font-size: 12px;
    color: #1e40af;
    line-height: 1.45;
}

.arm-rm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
}

.arm-btn-cancel {
    padding: 9px 24px;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    line-height: 1.3;
}

    .arm-btn-cancel:hover {
        background-color: #F9FAFB;
        border-color: #9CA3AF;
    }

.arm-btn-submit {
    padding: 9px 28px;
    background-color: #0405AB;
    border: 1px solid #0405AB;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.15s ease;
    outline: none;
    line-height: 1.3;
}

    .arm-btn-submit:hover {
        background-color: #03048A;
    }

/* ─────────────────────────────────────────────────────────────────
   Scrollbar Styling
   ───────────────────────────────────────────────────────────────── */
.arm-rm-table-wrapper::-webkit-scrollbar {
    width: 5px;
}

.arm-rm-table-wrapper::-webkit-scrollbar-track {
    background: #F9FAFB;
    border-radius: 3px;
}

.arm-rm-table-wrapper::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

    .arm-rm-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: #9CA3AF;
    }

/* ─────────────────────────────────────────────────────────────────
   Responsive Design (Laptop & Desktop: 1200px – 1920px)
   Breakpoints follow css/responsive-layout.css: 1440px, 1280px.
   The 1200px / 992px / 600px blocks further down are at or below the
   supported width (html min-width: 1200px) and are kept as a fallback.
   ───────────────────────────────────────────────────────────────── */

/* Standard laptops (1366 / 1440) */
@media (max-width: 1440px) {
    .arm-raw-material-card {
        padding: 16px 18px;
    }

    .arm-rm-footer {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Small laptops (1240 / 1280): each half of the split is ~560px with the
   sidebar collapsed, so let the Planning table shrink from 580px to 480px
   (values already truncate with "…") and tighten spacing. */
@media (max-width: 1280px) {
    .arm-container {
        gap: 12px;
    }

    .arm-info-card {
        padding: 12px 14px;
    }

    .arm-header {
        margin-bottom: 10px;
    }

    .arm-info-grid {
        column-gap: 12px;
        row-gap: 10px;
    }

    /* Planning table (left half) */
    .arm-table {
        min-width: 480px;
    }

        .arm-table thead th {
            padding: 10px 10px;
            font-size: 12px;
        }

            .arm-table thead th:first-child,
            .arm-table tbody td:first-child {
                min-width: 120px;
                padding-left: 12px;
                padding-right: 10px;
            }

        .arm-table tbody td {
            padding: 6px 8px;
        }

            .arm-table tbody td:last-child {
                padding-right: 12px;
            }

    .arm-table-type-cell {
        font-size: 12px;
    }

    .arm-display-value {
        height: 34px;
        padding: 0 10px;
        font-size: 12.5px;
    }

    /* Raw Material card (right half). Footer negative margins must match
       the card's side padding so the divider still runs edge to edge. */
    .arm-raw-material-card {
        padding: 12px 14px;
    }

    .arm-rm-footer {
        gap: 12px;
        padding-top: 12px;
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .arm-rm-title {
        font-size: 15px;
    }

    .arm-rm-subtitle {
        font-size: 12px;
    }

    .arm-btn-add-material {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .arm-rm-table-wrapper {
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .arm-rm-table thead th {
        padding: 9px 12px;
        font-size: 12px;
    }

    .arm-rm-table tbody td {
        padding: 8px 10px;
    }

        .arm-rm-table tbody td:first-child {
            padding-left: 12px;
        }

        .arm-rm-table tbody td:last-child {
            padding-right: 12px;
            padding-top: 13px;
        }

    /* Inputs: 38px -> 36px tall. */
    .arm-radzen-dropdown,
    .cpmr-radzen-dropdown,
    .arm-input.arm-rm-input {
        height: 36px;
    }

    /* %LDR card */
    .arm-ldr-card {
        padding: 10px 14px;
        margin-bottom: 12px;
        gap: 12px;
    }

    .arm-ldr-input {
        width: 110px;
        height: 36px;
    }

    .arm-btn-cancel,
    .arm-btn-submit {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Small laptops down to 1200px (sidebar open or collapsed): keep the
   Planning table and Raw Material Weights side by side. Each half can be
   as narrow as ~460px, so the Planning table must fit its half instead
   of scrolling sideways and cutting off the Deep Planning column:
   fixed column widths (28% / 36% / 36% from the markup), no minimum
   width, and the Type labels may wrap. Values already end with "…". */
@media (max-width: 1280px) {
    .arm-table {
        min-width: 0;
        table-layout: fixed;
    }

        .arm-table thead th:first-child,
        .arm-table tbody td:first-child {
            min-width: 0;
        }

    .arm-table-type-cell {
        white-space: normal;
        line-height: 1.3;
    }
}

/* Tablet & below only: keep side-by-side split layout on laptops (1024px+). */
@media (max-width: 991.98px) {
    .arm-split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .arm-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 14px;
    }
}

@media (max-width: 600px) {
    .arm-info-card,
    .arm-raw-material-card {
        padding: 12px;
    }

    .arm-info-grid {
        grid-template-columns: 1fr;
    }

    .arm-rm-header {
        flex-direction: column;
        align-items: stretch;
    }

    .arm-btn-add-material {
        width: 100%;
        text-align: center;
    }

    .arm-rm-footer {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .arm-btn-cancel,
    .arm-btn-submit {
        width: 100%;
        text-align: center;
    }
}
