.cbam-mp-wrapper {
    max-width: 1180px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    color: #10213b;
}

.cbam-mp-header {
    background: #0b1f3a;
    color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.cbam-mp-header h2 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 30px;
}

.cbam-mp-header p {
    margin: 0;
    color: #d9e6f2;
}

.cbam-mp-card {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cbam-mp-card h3 {
    margin-top: 0;
}

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

.cbam-mp-field {
    margin-bottom: 16px;
}

.cbam-mp-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.cbam-mp-field input,
.cbam-mp-field select,
.cbam-mp-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd3db;
    border-radius: 6px;
    font-size: 15px;
}

.cbam-mp-full {
    margin-top: 16px;
}

.cbam-mp-button,
.cbam-mp-open {
    display: inline-block;
    background: #0b1f3a;
    color: #ffffff !important;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.cbam-mp-button:hover,
.cbam-mp-open:hover {
    background: #12345f;
}

.cbam-mp-table {
    width: 100%;
    border-collapse: collapse;
}

.cbam-mp-table th,
.cbam-mp-table td {
    border: 1px solid #d8dee6;
    padding: 12px;
    text-align: left;
}

.cbam-mp-table th {
    background: #f4f6f8;
    font-weight: bold;
}

.cbam-progress-wrap {
    background: #e8edf3;
    border-radius: 20px;
    height: 12px;
    width: 100%;
    margin-bottom: 6px;
}

.cbam-progress-bar {
    background: #1f7a4d;
    height: 12px;
    border-radius: 20px;
}

.cbam-status {
    display: inline-block;
    background: #eef3ff;
    color: #0b1f3a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.cbam-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.cbam-sidebar {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 18px;
    height: fit-content;
}

.cbam-sidebar h4 {
    margin: 18px 0 8px;
    font-size: 13px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cbam-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #10213b;
    text-decoration: none;
    margin-bottom: 4px;
}

.cbam-sidebar a.active,
.cbam-sidebar a:hover {
    background: #eef3ff;
    font-weight: bold;
}

.cbam-workspace-main {
    min-width: 0;
}

.cbam-project-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.cbam-meta-box {
    background: #f8fafc;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    padding: 14px;
}

.cbam-meta-box small {
    display: block;
    color: #667085;
    margin-bottom: 4px;
}

.cbam-preview {
    background: #fbfcfe;
    border-left: 4px solid #0b1f3a;
    padding: 18px;
    border-radius: 8px;
    line-height: 1.6;
}

.cbam-back {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.cbam-save-message {
    border-left: 4px solid #1f7a4d;
    background: #f2fbf6;
}

@media (max-width: 900px) {
    .cbam-workspace {
        grid-template-columns: 1fr;
    }

    .cbam-mp-form-grid,
    .cbam-project-meta {
        grid-template-columns: 1fr;
    }
}
.cbam-delete-button {
    background: #7a1f1f !important;
    border-color: #7a1f1f !important;
}

.cbam-delete-button:hover {
    background: #9b2b2b !important;
}

.cbam-sidebar a.cbam-disabled-section {
    color: #9aa4b2;
    background: #f3f4f6;
    opacity: 0.65;
}

.cbam-sidebar a.cbam-disabled-section:hover {
    background: #f3f4f6;
    font-weight: normal;
}

.cbam-section-note {
    display: block;
    font-size: 11px;
    color: #9aa4b2;
    margin-top: 2px;
}
.cbam-review-ready,
.cbam-review-status-complete {
    color: #1f7a4d;
    font-weight: bold;
}

.cbam-review-warning {
    color: #9a6700;
    font-weight: bold;
}

.cbam-review-incomplete,
.cbam-review-status-missing {
    color: #b42318;
    font-weight: bold;
}

@media print {

    body * {
        visibility: hidden;
    }

    .cbam-generated-mp,
    .cbam-generated-mp * {
        visibility: visible;
    }

    .cbam-generated-mp {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 12pt;
        line-height: 1.5;
    }

    .cbam-mp-header,
    .cbam-sidebar,
    .cbam-back,
    .cbam-mp-card:first-child,
    button,
    .cbam-progress-wrap {
        display: none !important;
    }

    .cbam-generated-mp h2 {
        font-size: 20pt;
        margin-bottom: 20px;
    }

    .cbam-generated-mp h3 {
        font-size: 14pt;
        margin-top: 22px;
        page-break-after: avoid;
    }

    .cbam-generated-mp table {
        width: 100%;
        border-collapse: collapse;
    }

    .cbam-generated-mp th,
    .cbam-generated-mp td {
        border: 1px solid #999;
        padding: 6px;
    }

    @page {
        size: A4;
        margin: 18mm;
    }
}
   
.cbam-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.cbam-action-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cbam-mp-table td:last-child {
    text-align: left;
}
.cbam-multi-select {
    position: relative;
    width: 100%;
}

.cbam-multi-select-display {
    min-height: 38px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 9px 12px;
    background: #fff;
    cursor: pointer;
    color: #0b1f3a;
}

.cbam-multi-select-display::after {
    content: "▼";
    float: right;
    font-size: 11px;
    margin-top: 3px;
}

.cbam-multi-select-options {
    display: none;
    position: absolute;
    z-index: 999;
    width: 100%;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    margin-top: 4px;
    padding: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.cbam-multi-select.open .cbam-multi-select-options {
    display: block;
}

.cbam-multi-select-options label {
    display: block;
    padding: 6px 4px;
    cursor: pointer;
}
.cbam-multi-select-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
}

.cbam-multi-select-options input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
