﻿/* Maestro categorías · Atelier Premium */
.ccm-page {
    font-family: Inter,system-ui,sans-serif;
    color: #183151;
    min-height: 100%;
    padding: 22px
}

    .ccm-page *, .ccm-overlay * {
        box-sizing: border-box
    }

.ccm-shell {
    max-width: 1650px;
    margin: auto;
    display: grid;
    gap: 19px
}

.ccm-hero {
    position: relative;
    overflow: hidden;
    padding: 31px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(115deg,#0c2345,#17427c 70%,#2f6bc1);
    color: white;
    border-radius: 24px;
    box-shadow: 0 18px 35px #17376122
}

    .ccm-hero:after {
        content: '';
        position: absolute;
        right: 180px;
        top: -100px;
        width: 310px;
        height: 310px;
        border: 1px solid #cbe3ff40;
        border-radius: 50%;
        pointer-events: none
    }

.ccm-overline {
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 800;
    color: #a8d4ff
}

.ccm-hero h1 {
    font-size: clamp(24px,3vw,36px);
    letter-spacing: -.04em;
    margin: 10px 0
}

.ccm-hero p {
    font-size: 12px;
    color: #d4e5fa;
    max-width: 600px;
    line-height: 1.7
}

.ccm-hero-actions {
    display: flex;
    gap: 9px;
    z-index: 1;
    flex-wrap: wrap
}

.ccm-btn {
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    min-height: 39px;
    border: 1px solid #d9e4f2;
    background: white;
    color: #234976;
    padding: 9px 15px;
    cursor: pointer;
    border-radius: 11px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

    .ccm-btn:hover:not(:disabled) {
        filter: brightness(.96)
    }

    .ccm-btn:disabled {
        opacity: .45;
        cursor: not-allowed
    }

.ccm-btn--ghost {
    background: #ffffff19;
    color: white;
    border-color: #ffffff55
}

.ccm-btn--light {
    background: white;
    color: #163b78;
    border: 0
}

.ccm-btn--primary {
    background: #1b5bb9;
    color: white;
    border-color: #1b5bb9
}

.ccm-btn--danger {
    color: #b32941;
    background: #fff1f3;
    border-color: #ffccd4
}

.ccm-btn--sm {
    font-size: 11px;
    padding: 7px 11px;
    min-height: 32px
}

.ccm-alert {
    padding: 14px 17px;
    background: #eef5ff;
    color: #1e4e89;
    border: 1px solid #c8ddfb;
    border-radius: 13px;
    font-size: 12px
}

.ccm-alert--bad {
    background: #fff0f1;
    border-color: #fecdd3;
    color: #9f1239
}

.ccm-alert--good {
    background: #eafbf2;
    border-color: #bbefda;
    color: #047857
}

.ccm-stat-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px
}

    .ccm-stat-grid div {
        display: grid;
        gap: 7px;
        padding: 19px 21px;
        border: 1px solid #e1e9f5;
        border-radius: 17px;
        background: white;
        box-shadow: 0 8px 23px #153c6410
    }

    .ccm-stat-grid small {
        font-size: 11px;
        color: #7c8ca3
    }

    .ccm-stat-grid strong {
        font-size: 27px;
        letter-spacing: -.04em;
        color: #133d72
    }

.ccm-panel {
    border-radius: 20px;
    background: white;
    border: 1px solid #e0e9f5;
    overflow: hidden;
    box-shadow: 0 10px 28px #183b6010
}

.ccm-toolbar {
    padding: 21px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

    .ccm-toolbar h2 {
        font-size: 17px;
        margin: 0 0 5px
    }

    .ccm-toolbar p {
        font-size: 11px;
        color: #74869c;
        margin: 0
    }

.ccm-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.ccm-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #d5e1ef;
    border-radius: 10px;
    background: white;
    color: #1e3756;
    font: inherit;
    font-size: 12px
}

.ccm-toolbar .ccm-input {
    width: 240px
}

.ccm-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #4f6885
}

    .ccm-toggle input {
        accent-color: #2460bd;
        width: 16px;
        height: 16px
    }

.ccm-scroll {
    overflow: auto;
    max-height: 70vh
}

.ccm-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 960px
}

    .ccm-table th {
        position: sticky;
        top: 0;
        background: #f4f8fe;
        color: #71839d;
        text-align: left;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: 13px 15px;
        border-bottom: 1px solid #e2eaf4
    }

    .ccm-table td {
        padding: 14px 15px;
        border-bottom: 1px solid #edf2f9;
        font-size: 12px
    }

    .ccm-table tr:hover td {
        background: #f8fbff
    }

.ccm-num {
    font-variant-numeric: tabular-nums
}

.ccm-code {
    font-weight: 800;
    color: #3268a8
}

.ccm-chip, .ccm-status {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    padding: 5px 9px;
    border-radius: 99px;
    background: #eaf1ff;
    color: #3360a0
}

.ccm-status {
    margin: 0;
    background: #f1f5f9;
    color: #74839a
}

.ccm-status--on {
    background: #e3f9ee;
    color: #087e54
}

.ccm-actions {
    display: flex;
    align-items: center;
    gap: 6px
}

.ccm-footer {
    padding: 13px 23px;
    background: #fbfcfe;
    color: #8495ae;
    font-size: 11px
}

.ccm-empty {
    padding: 32px;
    text-align: center;
    color: #91a2b8;
    font-size: 12px
}

.ccm-overlay {
    z-index: 2600;
    position: fixed;
    inset: 0;
    background: #061c399c;
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 15px
}

.ccm-modal {
    font-family: Inter,system-ui,sans-serif;
    background: white;
    border-radius: 22px;
    box-shadow: 0 25px 95px #071b3b60;
    overflow: hidden;
    width: min(94vw,600px);
    color: #183151
}

.ccm-modal--small {
    width: min(94vw,470px)
}

.ccm-modal header {
    padding: 23px 27px;
    background: linear-gradient(115deg,#102d59,#235bad);
    color: white
}

    .ccm-modal header h2 {
        margin: 9px 0;
        font-size: 22px
    }

    .ccm-modal header p {
        font-size: 12px;
        color: #d5e8ff
    }

.ccm-form {
    padding: 23px 27px;
    display: grid;
    gap: 16px;
    max-height: 60vh;
    overflow: auto;
    font-size: 12px
}

    .ccm-form label {
        display: grid;
        gap: 7px;
        font-weight: 750;
        color: #45617e
    }

    .ccm-form .ccm-toggle {
        display: flex
    }

.ccm-help {
    font-size: 11px;
    line-height: 1.7;
    background: #eff6ff;
    border-radius: 10px;
    padding: 11px;
    color: #41618c
}

.ccm-modal footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 15px 27px;
    background: #fafcff;
    border-top: 1px solid #e7eef8
}

@media(max-width:850px) {
    .ccm-stat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .ccm-page {
        padding: 12px
    }
}

@media(max-width:520px) {
    .ccm-stat-grid {
        grid-template-columns: 1fr 1fr
    }

        .ccm-stat-grid div {
            padding: 12px
        }

    .ccm-toolbar {
        padding: 15px
    }

    .ccm-hero {
        padding: 22px
    }
}
