/* ==========================================
   WORKSHOPS · PREMIUM UI
========================================== */
.workshop-toolbar,
.workshop-detail-actions,
.workshop-enrollment-actions,
.workshop-registration-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.workshop-toolbar {
    margin-bottom: 12px;
}

.workshop-toolbar-button,
.workshop-action-button {
    width: auto;
    min-width: 168px;
    margin-top: 0;
    padding: 0 17px;
}

.workshops-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.workshop-card {
    position: relative;
    min-height: 126px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(221,185,120,.02), transparent 40%),
        #0f0f0f;
    border: 1px solid #282828;
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.workshop-card::after {
    content: "";
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--gold-dark);
    transition: width 180ms ease;
}

.workshop-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(221,185,120,.06), #10100e 48%);
    border-color: #4a3e2b;
    box-shadow: var(--shadow-md);
}

.workshop-card:hover::after {
    width: 52px;
}

.workshop-card strong {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 820;
    line-height: 1.25;
}

.workshop-card span:not(.workshop-card-status) {
    color: #85827a;
    font-size: 10px;
    line-height: 1.5;
}

.workshop-card-status {
    color: #74716b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.workshop-card-status.is-active {
    color: var(--gold);
}

.workshop-empty-state {
    padding: 19px;
    color: #85827b;
    background: #0e0e0e;
    border: 1px solid #282828;
    font-size: 11px;
    line-height: 1.5;
}

.workshop-detail-summary {
    margin-top: 18px;
}

.workshop-detail-summary > p {
    margin-top: 7px;
}

.workshop-detail-actions {
    margin-top: 15px;
}

.workshop-enrollment-section {
    padding: 19px;
    background: #0d0d0d;
    border: 1px solid #282828;
}

.workshop-search-box,
.workshop-search-group {
    position: relative;
}

.workshop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#workshopDescription {
    min-height: 78px;
}

.workshop-student-suggestions {
    position: absolute;
    z-index: 220;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: rgba(14,14,14,.985);
    border: 1px solid #39352e;
    box-shadow: 0 20px 52px rgba(0,0,0,.56);
    backdrop-filter: blur(12px);
}

.workshop-student-suggestion {
    width: 100%;
    padding: 10px 13px;
    display: block;
    color: var(--white);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #242424;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, padding 160ms ease, box-shadow 160ms ease;
}

.workshop-student-suggestion:last-child {
    border-bottom: 0;
}

.workshop-student-suggestion:hover,
.workshop-student-suggestion.is-active {
    padding-left: 19px;
    background: linear-gradient(90deg, rgba(221,185,120,.075), transparent 70%);
    box-shadow: inset 2px 0 0 var(--gold);
}

.workshop-student-suggestion strong,
.workshop-student-suggestion span {
    display: block;
}

.workshop-student-suggestion strong {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
}

.workshop-student-suggestion span,
.workshop-suggestion-empty {
    color: #85827b;
    font-size: 10px;
    line-height: 1.45;
}

.workshop-suggestion-empty {
    padding: 16px;
}

#workshopSelectedStudentInfo,
#workshopEnrollmentMessage,
#workshopsMessage,
#workshopCreateMessage,
#workshopVisitorMessage,
#workshopStatusDialogMessage {
    min-height: 17px;
    margin: 9px 0;
    color: #aaa69d;
    font-size: 10px;
    line-height: 1.5;
}

.workshop-registrations-list {
    display: grid;
    gap: 8px;
}

.workshop-registration-row {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #0e0e0e;
    border: 1px solid #272727;
    transition: border-color 160ms ease, background 160ms ease;
}

.workshop-registration-row:hover {
    background: #10100f;
    border-color: #36322b;
}

.workshop-registration-info strong,
.workshop-registration-info span {
    display: block;
}

.workshop-registration-info strong {
    margin-bottom: 5px;
    color: #e0ddd5;
    font-size: 12px;
    font-weight: 800;
}

.workshop-registration-info span {
    margin-top: 3px;
    color: #85827b;
    font-size: 10px;
    line-height: 1.45;
}

.workshop-inline-button {
    width: auto;
    min-width: 145px;
    height: 37px;
    margin: 0;
    padding: 0 13px;
    font-size: 8px;
    letter-spacing: 1.4px;
}

@media (max-width: 1050px) {
    .workshops-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .workshops-list,
    .workshop-form-grid {
        grid-template-columns: 1fr;
    }

    .workshop-registration-row {
        align-items: stretch;
        flex-direction: column;
    }

    .workshop-registration-actions,
    .workshop-toolbar,
    .workshop-enrollment-actions,
    .workshop-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .workshop-toolbar-button,
    .workshop-action-button,
    .workshop-inline-button {
        width: 100%;
        min-width: 0;
    }

    .workshop-enrollment-section {
        padding: 22px 18px;
    }
}

/* ==========================================
   HISTORIAL DE WORKSHOPS
========================================== */
.workshop-history-dialog {
    width: min(900px, calc(100vw - 32px));
    max-width: min(900px, calc(100vw - 32px));
}

.workshop-history-dialog-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.workshop-history-list {
    display: grid;
    gap: 8px;
}

.workshop-history-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 13px 15px;
    color: var(--white);
    background: #0d0d0d;
    border: 1px solid #292929;
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.workshop-history-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(120deg, rgba(221,185,120,.05), #0e0e0e 48%);
    border-color: #453b2c;
}

.workshop-history-main strong,
.workshop-history-main small {
    display: block;
}

.workshop-history-main strong {
    margin: 5px 0 4px;
    font-size: 13px;
    font-weight: 820;
}

.workshop-history-main small {
    color: #85827b;
    font-size: 9px;
}

.workshop-history-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.workshop-history-metrics span {
    padding: 5px 7px;
    color: #918d84;
    background: #090909;
    border: 1px solid #252525;
    font-size: 8px;
    white-space: nowrap;
}

.workshop-history-metrics b {
    color: var(--gold);
    font-size: 9px;
}

#workshopHistoryMessage {
    min-height: 16px;
    margin-top: 8px;
    color: #aaa69d;
    font-size: 9px;
}

@media (max-width: 750px) {
    .workshop-history-dialog {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .workshop-history-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .workshop-history-metrics {
        justify-content: flex-start;
    }
}

/* ==========================================
   HISTORIAL DE WORKSHOPS · BÚSQUEDA + DETALLE
========================================== */
.workshop-history-dialog {
    width: min(1040px, calc(100vw - 32px));
    max-width: min(1040px, calc(100vw - 32px));
}

.workshop-history-search-group {
    margin-bottom: 14px;
}

.workshop-history-search-box {
    position: relative;
}

.workshop-history-search-box input {
    width: 100%;
}

.workshop-history-suggestions {
    position: absolute;
    z-index: 260;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: rgba(14,14,14,.992);
    border: 1px solid #39352e;
    box-shadow: 0 22px 54px rgba(0,0,0,.62);
    backdrop-filter: blur(12px);
}

.workshop-history-suggestion {
    width: 100%;
    padding: 11px 14px;
    display: block;
    color: var(--white);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #242424;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, padding 160ms ease, box-shadow 160ms ease;
}

.workshop-history-suggestion:last-child {
    border-bottom: 0;
}

.workshop-history-suggestion:hover,
.workshop-history-suggestion.is-active {
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(221,185,120,.075), transparent 72%);
    box-shadow: inset 2px 0 0 var(--gold);
}

.workshop-history-suggestion strong,
.workshop-history-suggestion span {
    display: block;
}

.workshop-history-suggestion strong {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 820;
}

.workshop-history-suggestion span {
    color: #85827b;
    font-size: 9px;
}

.workshop-history-back {
    width: auto;
    min-width: 190px;
    margin: 0 0 18px;
}

.workshop-history-detail-heading {
    padding: 17px 18px;
    background:
        linear-gradient(120deg, rgba(221,185,120,.045), transparent 42%),
        #0d0d0d;
    border: 1px solid #292929;
}

.workshop-history-detail-heading h2 {
    margin: 5px 0 7px;
    font-size: 25px;
}

.workshop-history-detail-heading > p:not(.section-label) {
    margin-top: 5px;
    color: #918d84;
    font-size: 10px;
    line-height: 1.55;
}

.workshop-history-stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.workshop-history-stat {
    min-height: 82px;
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0c0c0c;
    border: 1px solid #292929;
}

.workshop-history-stat span {
    color: var(--gold);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.45px;
    line-height: 1.35;
}

.workshop-history-stat strong {
    color: #f0eee8;
    font-size: 22px;
    font-weight: 850;
}

.workshop-history-participants-section {
    margin-top: 10px;
    padding: 16px 18px;
    background: #0d0d0d;
    border: 1px solid #292929;
}

.workshop-history-participants-section h3 {
    margin: 3px 0 12px;
    color: var(--white);
    font-size: 17px;
}

.workshop-history-participants {
    display: grid;
    gap: 7px;
}

.workshop-history-participant {
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #090909;
    border: 1px solid #242424;
}

.workshop-history-participant strong,
.workshop-history-participant span {
    display: block;
}

.workshop-history-participant strong {
    margin-bottom: 4px;
    color: #ddd9d0;
    font-size: 11px;
    font-weight: 820;
}

.workshop-history-participant span {
    color: #85827b;
    font-size: 9px;
    line-height: 1.4;
}

.workshop-history-participant-progress {
    flex: 0 0 auto;
    text-align: right;
}

.workshop-history-participant-progress b {
    display: block;
    color: var(--gold);
    font-size: 13px;
}

.workshop-history-participant-progress span {
    margin-top: 2px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 980px) {
    .workshop-history-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .workshop-history-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workshop-history-participant {
        align-items: flex-start;
        flex-direction: column;
    }

    .workshop-history-participant-progress {
        text-align: left;
    }

    .workshop-history-back {
        width: 100%;
    }
}
\n\n/* ==========================================\n   CREAR WORKSHOP · COMPACTO SIN SCROLL v17.1\n========================================== */\n@media (min-width: 751px) {\n    #workshopCreateDialog {\n        width: min(500px, calc(100vw - 32px));\n        max-height: calc(100dvh - 24px);\n    }\n\n    #workshopCreateDialog .admin-dialog-card {\n        max-height: calc(100dvh - 26px);\n        padding: 18px 20px 16px;\n        overflow-y: hidden;\n    }\n\n    #workshopCreateDialog .admin-dialog-card::before {\n        left: 20px;\n    }\n\n    #workshopCreateDialog .admin-dialog-header {\n        margin-bottom: 10px;\n    }\n\n    #workshopCreateDialog .admin-dialog-header h2 {\n        margin: 4px 0 0;\n        font-size: 18px;\n    }\n\n    #workshopCreateDialog .form-group {\n        margin-bottom: 8px;\n    }\n\n    #workshopCreateDialog .form-group label {\n        margin-bottom: 5px;\n        font-size: 9px;\n        letter-spacing: 1.7px;\n    }\n\n    #workshopCreateDialog .form-group input,\n    #workshopCreateDialog .form-group select {\n        min-height: 38px;\n        height: 38px;\n    }\n\n    #workshopCreateDialog .form-group textarea {\n        min-height: 58px;\n        height: 58px;\n        resize: none;\n    }\n\n    #workshopCreateDialog .workshop-form-grid {\n        gap: 10px;\n    }\n\n    #workshopCreateDialog .workshop-form-grid-secondary {\n        grid-template-columns: 1fr 1fr;\n    }\n\n    #workshopCreateDialog .workshop-time-field,\n    #workshopCreateDialog .pricing-money-field {\n        min-height: 38px;\n    }\n\n    #workshopCreateDialog .workshop-time-picker-button {\n        min-height: 38px;\n        height: 38px;\n    }\n\n    #workshopCreateDialog #workshopCreateMessage {\n        min-height: 0;\n        margin: 3px 0;\n    }\n\n    #workshopCreateDialog #workshopCreateMessage:empty {\n        display: none;\n    }\n\n    #workshopCreateDialog .dialog-actions {\n        margin-top: 9px;\n        padding-top: 11px;\n    }\n\n    #workshopCreateDialog .dialog-actions .gold-button,\n    #workshopCreateDialog .dialog-actions .logout-button {\n        min-height: 38px;\n        height: 38px;\n    }\n}\n