﻿/* =========================================================
   W6 Certificate UI
   Bereinigte, sortierte und dokumentierte Final-Version
   Für:
   - html[data-wiso-theme="light"]
   - html[data-wiso-theme="contrast-light"]
   - html[data-wiso-theme="dark"]
   - html[data-wiso-theme="contrast-dark"]
   ========================================================= */


/* =========================================================
   1) ROOT / BASIS
   ========================================================= */

:root {
    --w6-cert-color: #0b4f9e;
}

.w6-certificate-field {
    position: relative;
}

.w6-certificate-field__inputwrap {
    position: relative;
}

.w6-certificate-field__hidden-value {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.w6-certificate-field__display {
    width: 100%;
    cursor: default;
}

/* Platz rechts für Badge + Trigger */
.w6-certificate-field .wiso_input__wrapper input,
.w6-certificate-field__inputwrap input,
.w6-certificate-field__inputwrap textarea,
.w6-certificate-field__display {
    padding-right: 150px !important;
}


/* =========================================================
   2) TRIGGER / ICONS / BADGES
   ========================================================= */

.w6-certificate-field__trigger {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: #41A7E1;
    transition: transform .12s ease, color .12s ease, filter .12s ease, opacity .12s ease;
}

    .w6-certificate-field__trigger:hover {
        transform: translateY(-50%) scale(1.08);
        color: #7fd8ff;
        filter: drop-shadow(0 0 8px rgba(65, 167, 225, 0.55));
    }

    .w6-certificate-field__trigger:focus,
    .w6-certificate-field__trigger:active {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

.w6-certificate-field__trigger-icon {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.w6-cert-iconimg {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(20%) sepia(88%) saturate(1600%) hue-rotate(200deg) brightness(92%) contrast(95%);
}

.w6-certificate-field__trigger .w6-cert-iconimg {
    width: 18px;
    height: 18px;
    opacity: 0.95;
    filter: brightness(0) saturate(100%) invert(25%) sepia(95%) saturate(2000%) hue-rotate(200deg) brightness(95%) contrast(110%);
}

.w6-certificate-popup__icon .w6-cert-iconimg {
    width: 18px;
    height: 18px;
}

.w6-cert-empty__icon .w6-cert-iconimg,
.w6-cert-toolbtn__icon .w6-cert-iconimg {
    width: 20px;
    height: 20px;
}

.w6-certificate-field__badge {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    max-width: 180px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.w6-certificate-field__badge-empty {
    opacity: 0.5;
}

.w6-certificate-field__badge-status {
    color: inherit;
}

.w6-certificate-field__badge-id {
    opacity: 0.88;
}

.w6-certificate-field__badge-type {
    opacity: 0.68;
}

.w6-certificate-badge,
.w6-cert-chip,
.w6-cert-info__chip,
.w6-certificate-popup__preview-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}


/* Statusfarben allgemein */
.w6-certificate-badge--valid,
.w6-certificate-field__badge--valid {
    background: rgba(28, 155, 79, 0.14);
    color: #1c9b4f;
    box-shadow: inset 0 0 0 1px rgba(28, 155, 79, 0.18);
}

.w6-certificate-badge--expiringsoon,
.w6-certificate-field__badge--expiringsoon {
    background: rgba(244, 149, 25, 0.14);
    color: #b26a00;
    box-shadow: inset 0 0 0 1px rgba(244, 149, 25, 0.18);
}

.w6-certificate-badge--expired,
.w6-certificate-field__badge--expired {
    background: rgba(186, 55, 55, 0.16);
    color: #b63737;
    box-shadow: inset 0 0 0 1px rgba(220, 90, 90, 0.18);
}

.w6-certificate-badge--inactive,
.w6-certificate-field__badge--inactive {
    background: rgba(140, 140, 140, 0.16);
    color: #666;
    box-shadow: inset 0 0 0 1px rgba(180, 180, 180, 0.14);
}


/* =========================================================
   3) PREVIEW IM FELD
   ========================================================= */

.w6-certificate-field__preview {
    margin-top: 8px;
}

.w6-certificate-field__preview-empty {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-style: italic;
}

.w6-certificate-field__preview-card {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(11, 79, 158, 0.10);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.w6-certificate-field__preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.w6-certificate-field__preview-id {
    font-size: 12px;
    opacity: 0.72;
}

.w6-certificate-field__preview-subject {
    margin-bottom: 6px;
    font-weight: 700;
    word-break: break-word;
}

.w6-certificate-field__preview-line {
    margin-top: 4px;
    font-size: 12px;
    word-break: break-word;
}


/* =========================================================
   4) POPUP / DROPDOWN
   ========================================================= */

.w6-certificate-popup {
    position: fixed !important;
    z-index: 2147483000 !important;
    width: 290px !important;
    max-width: calc(100vw - 16px) !important;
    padding: 10px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    backdrop-filter: blur(14px);
    transform-origin: bottom right;
    animation: w6CertPopupRollIn .18s ease-out;
}

    .w6-certificate-popup.is-hiding {
        animation: w6CertPopupRollOut .14s ease-in forwards;
    }

.w6-certificate-popup__preview {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 16px;
}

.w6-certificate-popup__preview--empty {
    border-style: dashed;
}

.w6-certificate-popup__preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.w6-certificate-popup__preview-id {
    font-size: 11px;
}

.w6-certificate-popup__preview-title,
.w6-certificate-popup__preview-subject {
    margin-bottom: 4px;
    font-weight: 800;
    word-break: break-word;
}

.w6-certificate-popup__preview-text,
.w6-certificate-popup__preview-line {
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.w6-certificate-popup__item {
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 12px !important;
    display: grid !important;
    grid-template-columns: 34px 1fr !important;
    gap: 12px !important;
    align-items: center !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background .14s ease, transform .14s ease, box-shadow .14s ease, border-color .14s ease !important;
}

    .w6-certificate-popup__item:hover {
        transform: translateX(2px) !important;
    }

.w6-certificate-popup__item--danger {
    color: #9e2d2d;
}

    .w6-certificate-popup__item--danger:hover {
        background: linear-gradient(180deg, rgba(158, 45, 45, 0.18), rgba(186, 55, 55, 0.10)) !important;
        box-shadow: inset 0 0 0 1px rgba(220, 90, 90, 0.16), 0 0 12px rgba(186, 55, 55, 0.10) !important;
    }

.w6-certificate-popup__icon {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

    .w6-certificate-popup__icon svg {
        display: block;
        width: 18px;
        height: 18px;
    }

.w6-certificate-popup__content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.w6-certificate-popup__label {
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.w6-certificate-popup__sub {
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.w6-certificate-popup__item:hover .w6-cert-iconimg {
    filter: brightness(0) saturate(100%) invert(55%) sepia(90%) saturate(1800%) hue-rotate(180deg) brightness(110%) contrast(110%) drop-shadow(0 0 6px rgba(65,167,225,0.6));
}


/* =========================================================
   5) WINDOW / FORM / PICKER
   ========================================================= */

.w6-cert-window__content {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    box-sizing: border-box;
    padding: 16px;
}

/* ============================
   W6 Dark Slim Scrollbar
   ============================ */

.w6-cert-window {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    overflow: auto;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(11,79,158,0.55) transparent;
}

/* Chrome / Edge / Webkit */
.w6-cert-window::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.w6-cert-window::-webkit-scrollbar-track {
    background: transparent;
}

.w6-cert-window::-webkit-scrollbar-thumb {
    background: linear-gradient( 180deg, rgba(11,79,158,0.65), rgba(65,167,225,0.55) );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background .2s ease;
}

.w6-cert-window::-webkit-scrollbar-thumb:hover {
    background: linear-gradient( 180deg, rgba(65,167,225,0.85), rgba(11,79,158,0.85) );
}

.w6-cert-window::-webkit-scrollbar-corner {
    background: transparent;
}

.w6-cert-window__hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(65, 167, 225, 0.14);
}

.w6-cert-window__hero-main,
.w6-cert-formhost {
    min-width: 0;
}

.w6-cert-window__hero-title {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .01em;
}

.w6-cert-window__hero-text {
    font-size: 13px;
    line-height: 1.5;
}

.w6-cert-window__hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.w6-cert-window__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.w6-cert-formhost,
.w6-cert-picker,
.w6-cert-info-grid {
    width: 100%;
    border-radius: 18px;
}

.w6-cert-formhost {
    padding: 16px;
}

.w6-cert-form .wiso_form-group {
    margin-bottom: 10px;
}

.w6-cert-picker {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    min-height: 0;
    padding: 16px;
}

.w6-cert-picker__toolbar {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
}

.w6-cert-picker__search {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
}

.w6-cert-picker__list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 10px 6px 4px 2px;
}

.w6-cert-picker__empty,
.w6-cert-picker__loading {
    padding: 18px 16px;
    border-radius: 14px;
}


/* =========================================================
   6) BUTTONS / TOOLBAR BUTTONS
   ========================================================= */

.w6-cert-toolbar-btn,
.w6-cert-toolbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .12s ease;
}

.w6-cert-toolbar-btn {
    min-width: 118px;
    height: 42px;
    padding: 0 16px;
    font-weight: 800;
}

    .w6-cert-toolbar-btn:hover,
    .w6-cert-toolbtn:hover {
        transform: translateY(-1px);
    }

.w6-cert-toolbar-btn--light {
    font-weight: 700;
}

.w6-cert-toolbtn {
    min-height: 34px;
    padding: 0 14px;
}

.w6-cert-toolbtn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.w6-cert-toolbtn__label {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.w6-cert-toolbtn--accent {
    color: #fff;
}

.w6-cert-toolbtn--download {
    color: #dff3ff;
}

    .w6-cert-toolbtn--download .w6-cert-iconimg {
        filter: brightness(0) saturate(100%) invert(89%) sepia(18%) saturate(1088%) hue-rotate(176deg) brightness(101%) contrast(101%);
    }


/* =========================================================
   7) LISTEN / ROWS / CHIPS
   ========================================================= */

.w6-cert-row,
.w6-cert-row--rich,
.w6-cert-row--compact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .w6-cert-row:hover,
    .w6-cert-row--rich:hover,
    .w6-cert-row--compact:hover {
        transform: translateY(-1px);
    }

.w6-cert-row--selected {
    transform: translateY(-1px);
}

.w6-cert-row:focus {
    outline: none;
}

.w6-cert-row--compact:first-child {
    margin-top: 4px;
}

.w6-cert-row__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-top: 2px;
    background: url("../img/extended/icons-menu/certificate-action.svg") no-repeat center;
    background-size: 22px 22px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(746%) hue-rotate(189deg) brightness(92%) contrast(101%);
}

.w6-cert-row__content,
.w6-cert-row__titlewrap {
    flex: 1 1 auto;
    min-width: 0;
}

.w6-cert-row__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    margin-bottom: 8px;
}

.w6-cert-row__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.w6-cert-row__subline,
.w6-cert-row__meta {
    font-size: 12px;
    word-break: break-word;
}

.w6-cert-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.w6-cert-row__thumb {
    font-size: 12px;
    word-break: break-all;
}

.w6-cert-row__tools,
.w6-cert-row__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.w6-cert-row__tools {
    justify-content: flex-end;
}

.w6-cert-row__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
}

.w6-cert-row__grid--compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
}

.w6-cert-row__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.w6-cert-row__item--wide {
    grid-column: 1 / -1;
}

.w6-cert-row__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.w6-cert-row__value {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.w6-cert-chip--default,
.w6-cert-info__chip--default {
    background: rgba(11, 79, 158, 0.18);
    color: #8bc7ff;
}

.w6-cert-chip--active,
.w6-cert-info__chip--active {
    background: rgba(28, 155, 79, 0.16);
    color: #9ef0ba;
}

.w6-cert-chip--inactive,
.w6-cert-info__chip--inactive {
    background: rgba(186, 55, 55, 0.16);
    color: #ffb7b7;
}


/* =========================================================
   8) EMPTY STATES
   ========================================================= */

.w6-cert-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    padding: 26px 24px;
    border-radius: 18px;
    text-align: center;
}

.w6-cert-empty--loading {
    border-style: solid;
}

.w6-cert-empty__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

    .w6-cert-empty__icon svg {
        width: 24px;
        height: 24px;
    }

.w6-cert-empty__title {
    font-size: 16px;
    font-weight: 800;
}

.w6-cert-empty__text,
.w6-cert-empty__hint {
    max-width: 520px;
    line-height: 1.5;
}

.w6-cert-empty__hint {
    font-size: 12px;
}


/* =========================================================
   9) INFO GRID / DETAIL-CARDS
   ========================================================= */

.w6-cert-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.w6-cert-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
}

    .w6-cert-info-item strong {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .w6-cert-info-item span {
        word-break: break-word;
    }

.w6-cert-info-item--wide {
    grid-column: 1 / -1;
}


/* =========================================================
   10) DETAILANSICHT / CERT INFO PANEL
   ========================================================= */

.w6-cert-info {
    min-height: auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
    /* optional W6 Look */
    border: 1px solid rgba(65, 167, 225, 0.14);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.w6-cert-info-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.w6-cert-info__hero {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

    .w6-cert-info__hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        height: 10px;
        pointer-events: none;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

.w6-cert-info__heroicon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: url("../img/extended/icons-menu/certificate-action.svg") no-repeat center;
    background-size: 22px 22px;
}

.w6-cert-info__herocontent,
.w6-cert-info__heroheadleft {
    flex: 1 1 auto;
    min-width: 0;
}

.w6-cert-info__herohead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.w6-cert-info__tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.w6-cert-info__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.w6-cert-info__subtitle {
    margin-top: 4px;
    font-size: 12px;
}

.w6-cert-info__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.w6-cert-info__grid--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.w6-cert-info__card {
    min-width: 0;
    padding: 11px 13px;
    border-radius: 14px;
}

.w6-cert-info__card--wide {
    grid-column: 1 / -1;
}

.w6-cert-info__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.w6-cert-info__value {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}


/* =========================================================
   11) STATUS-STYLING AM FELD
   ========================================================= */

.w6-certificate-field--empty .wiso_input__wrapper {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.w6-certificate-field--valid .wiso_input__wrapper {
    box-shadow: inset 0 0 0 1px rgba(28, 155, 79, 0.22), 0 0 14px rgba(28, 155, 79, 0.10);
}

.w6-certificate-field--expiringsoon .wiso_input__wrapper {
    box-shadow: inset 0 0 0 1px rgba(244, 149, 25, 0.24), 0 0 14px rgba(244, 149, 25, 0.12);
}

.w6-certificate-field--expired .wiso_input__wrapper {
    box-shadow: inset 0 0 0 1px rgba(186, 55, 55, 0.24), 0 0 14px rgba(186, 55, 55, 0.12);
}

.w6-certificate-field--inactive .wiso_input__wrapper {
    box-shadow: inset 0 0 0 1px rgba(150, 150, 150, 0.20), 0 0 12px rgba(140, 140, 140, 0.08);
}

.w6-certificate-popup__preview--valid {
    box-shadow: inset 0 0 0 1px rgba(28, 155, 79, 0.18), 0 0 14px rgba(28, 155, 79, 0.08);
}

.w6-certificate-popup__preview--expiringsoon {
    box-shadow: inset 0 0 0 1px rgba(244, 149, 25, 0.18), 0 0 14px rgba(244, 149, 25, 0.08);
}

.w6-certificate-popup__preview--expired {
    box-shadow: inset 0 0 0 1px rgba(186, 55, 55, 0.18), 0 0 14px rgba(186, 55, 55, 0.08);
}

.w6-certificate-popup__preview--inactive {
    box-shadow: inset 0 0 0 1px rgba(160, 160, 160, 0.14), 0 0 12px rgba(140, 140, 140, 0.06);
}


/* =========================================================
   12) LIGHT / CONTRAST-LIGHT
   ========================================================= */

html[data-wiso-theme="light"] .w6-certificate-field__display,
html[data-wiso-theme="contrast-light"] .w6-certificate-field__display {
    background: rgba(255,255,255,0.70);
}

html[data-wiso-theme="light"] .w6-certificate-field__preview-empty,
html[data-wiso-theme="contrast-light"] .w6-certificate-field__preview-empty {
    background: rgba(0,0,0,0.03);
    color: #666;
}

html[data-wiso-theme="light"] .w6-certificate-field__preview-card,
html[data-wiso-theme="contrast-light"] .w6-certificate-field__preview-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,249,252,0.98));
    border-color: rgba(11, 79, 158, 0.10);
}

html[data-wiso-theme="light"] .w6-certificate-field__preview-subject,
html[data-wiso-theme="contrast-light"] .w6-certificate-field__preview-subject {
    color: #2d3039;
}

html[data-wiso-theme="light"] .w6-certificate-field__badge,
html[data-wiso-theme="contrast-light"] .w6-certificate-field__badge {
    background: rgba(11,79,158,0.08);
    color: #2d3039;
    box-shadow: inset 0 0 0 1px rgba(11,79,158,0.08);
}

html[data-wiso-theme="light"] .w6-certificate-popup,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup {
    border: 1px solid rgba(11, 79, 158, 0.14) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.98)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(11, 79, 158, 0.05), 0 0 18px rgba(11, 79, 158, 0.06) !important;
}

html[data-wiso-theme="light"] .w6-certificate-popup__preview,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__preview {
    background: linear-gradient(180deg, rgba(11,79,158,0.04), rgba(65,167,225,0.03));
    border: 1px solid rgba(11,79,158,0.08);
}

html[data-wiso-theme="light"] .w6-certificate-popup__preview-id,
html[data-wiso-theme="light"] .w6-certificate-popup__preview-line,
html[data-wiso-theme="light"] .w6-certificate-popup__preview-text,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__preview-id,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__preview-line,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__preview-text {
    color: #5b6575;
}

html[data-wiso-theme="light"] .w6-certificate-popup__preview-title,
html[data-wiso-theme="light"] .w6-certificate-popup__preview-subject,
html[data-wiso-theme="light"] .w6-certificate-popup__item,
html[data-wiso-theme="light"] .w6-certificate-popup__label,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__preview-title,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__preview-subject,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__item,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__label {
    color: #2d3039 !important;
}

html[data-wiso-theme="light"] .w6-certificate-popup__sub,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__sub {
    color: #667085 !important;
}

html[data-wiso-theme="light"] .w6-certificate-popup__item:hover,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__item:hover {
    background: linear-gradient(180deg, rgba(11, 79, 158, 0.08), rgba(65, 167, 225, 0.06)) !important;
    box-shadow: inset 0 0 0 1px rgba(11, 79, 158, 0.10), 0 0 10px rgba(11, 79, 158, 0.06) !important;
}

html[data-wiso-theme="light"] .w6-certificate-popup__icon,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__icon {
    color: #0b4f9e !important;
    background: linear-gradient(180deg, rgba(65, 167, 225, 0.10), rgba(11, 79, 158, 0.08)) !important;
    box-shadow: inset 0 0 0 1px rgba(11, 79, 158, 0.10) !important;
}

html[data-wiso-theme="light"] .w6-certificate-popup__item--danger .w6-certificate-popup__icon,
html[data-wiso-theme="contrast-light"] .w6-certificate-popup__item--danger .w6-certificate-popup__icon {
    color: #b63737 !important;
    background: linear-gradient(180deg, rgba(186, 55, 55, 0.10), rgba(120, 35, 35, 0.08)) !important;
    box-shadow: inset 0 0 0 1px rgba(186, 55, 55, 0.12) !important;
}

html[data-wiso-theme="light"] .w6-cert-window__content,
html[data-wiso-theme="contrast-light"] .w6-cert-window__content {
    background: radial-gradient(circle at top right, rgba(65, 167, 225, 0.05), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,250,0.98));
}

html[data-wiso-theme="light"] .w6-cert-window__hero,
html[data-wiso-theme="contrast-light"] .w6-cert-window__hero {
    background: linear-gradient(135deg, rgba(11,79,158,0.08), rgba(65,167,225,0.08));
    border-color: rgba(11,79,158,0.10);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 10px 24px rgba(0,0,0,0.06);
}

html[data-wiso-theme="light"] .w6-cert-window__hero-title,
html[data-wiso-theme="contrast-light"] .w6-cert-window__hero-title {
    color: #2d3039;
}

html[data-wiso-theme="light"] .w6-cert-window__hero-text,
html[data-wiso-theme="contrast-light"] .w6-cert-window__hero-text {
    color: #4f5564;
}

html[data-wiso-theme="light"] .w6-cert-window__hero-badge,
html[data-wiso-theme="contrast-light"] .w6-cert-window__hero-badge {
    background: rgba(11,79,158,0.12);
    color: #0b4f9e;
    box-shadow: inset 0 0 0 1px rgba(11,79,158,0.08);
}

html[data-wiso-theme="light"] .w6-cert-formhost,
html[data-wiso-theme="light"] .w6-cert-picker,
html[data-wiso-theme="light"] .w6-cert-info-grid,
html[data-wiso-theme="contrast-light"] .w6-cert-formhost,
html[data-wiso-theme="contrast-light"] .w6-cert-picker,
html[data-wiso-theme="contrast-light"] .w6-cert-info-grid {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,253,0.98));
    border: 1px solid rgba(11,79,158,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 8px 22px rgba(0,0,0,0.05);
}

html[data-wiso-theme="light"] .w6-cert-picker__search,
html[data-wiso-theme="contrast-light"] .w6-cert-picker__search {
    border: 1px solid rgba(11,79,158,0.12);
    background: rgba(255,255,255,0.95);
    color: #2d3039;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

    html[data-wiso-theme="light"] .w6-cert-picker__search::placeholder,
    html[data-wiso-theme="contrast-light"] .w6-cert-picker__search::placeholder {
        color: rgba(45, 48, 57, 0.42);
    }

html[data-wiso-theme="light"] .w6-cert-picker__empty,
html[data-wiso-theme="light"] .w6-cert-picker__loading,
html[data-wiso-theme="contrast-light"] .w6-cert-picker__empty,
html[data-wiso-theme="contrast-light"] .w6-cert-picker__loading {
    background: rgba(11,79,158,0.03);
    color: #5c6472;
    border: 1px dashed rgba(11,79,158,0.12);
}

html[data-wiso-theme="light"] .w6-cert-toolbar-btn,
html[data-wiso-theme="light"] .w6-cert-toolbtn--accent,
html[data-wiso-theme="contrast-light"] .w6-cert-toolbar-btn,
html[data-wiso-theme="contrast-light"] .w6-cert-toolbtn--accent {
    border: 1px solid rgba(11,79,158,0.18);
    background: linear-gradient(180deg, rgba(11,79,158,0.98), rgba(9,66,132,0.98));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 8px 18px rgba(11,79,158,0.14);
}

    html[data-wiso-theme="light"] .w6-cert-toolbar-btn:hover,
    html[data-wiso-theme="light"] .w6-cert-toolbtn--accent:hover,
    html[data-wiso-theme="contrast-light"] .w6-cert-toolbar-btn:hover,
    html[data-wiso-theme="contrast-light"] .w6-cert-toolbtn--accent:hover {
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 22px rgba(11,79,158,0.18);
    }

html[data-wiso-theme="light"] .w6-cert-toolbar-btn--light,
html[data-wiso-theme="light"] .w6-cert-toolbtn,
html[data-wiso-theme="contrast-light"] .w6-cert-toolbar-btn--light,
html[data-wiso-theme="contrast-light"] .w6-cert-toolbtn {
    border: 1px solid rgba(11,79,158,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,251,0.98));
    color: #0b4f9e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.50), 0 4px 10px rgba(0,0,0,0.06);
}

html[data-wiso-theme="light"] .w6-cert-toolbtn--download,
html[data-wiso-theme="contrast-light"] .w6-cert-toolbtn--download {
    background: linear-gradient(180deg, rgba(26, 98, 162, 0.98), rgba(12, 74, 128, 0.98));
    border-color: rgba(65, 167, 225, 0.22);
    color: #dff3ff;
}

html[data-wiso-theme="light"] .w6-cert-row,
html[data-wiso-theme="light"] .w6-cert-row--rich,
html[data-wiso-theme="light"] .w6-cert-row--compact,
html[data-wiso-theme="contrast-light"] .w6-cert-row,
html[data-wiso-theme="contrast-light"] .w6-cert-row--rich,
html[data-wiso-theme="contrast-light"] .w6-cert-row--compact {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,252,0.98));
    border: 1px solid rgba(11,79,158,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 6px 14px rgba(0,0,0,0.05);
}

    html[data-wiso-theme="light"] .w6-cert-row:hover,
    html[data-wiso-theme="light"] .w6-cert-row--rich:hover,
    html[data-wiso-theme="light"] .w6-cert-row--compact:hover,
    html[data-wiso-theme="contrast-light"] .w6-cert-row:hover,
    html[data-wiso-theme="contrast-light"] .w6-cert-row--rich:hover,
    html[data-wiso-theme="contrast-light"] .w6-cert-row--compact:hover {
        border-color: rgba(11,79,158,0.18);
        box-shadow: inset 0 0 0 1px rgba(11,79,158,0.04), 0 12px 22px rgba(0,0,0,0.08), 0 0 14px rgba(11,79,158,0.05);
    }

html[data-wiso-theme="light"] .w6-cert-row--selected,
html[data-wiso-theme="contrast-light"] .w6-cert-row--selected {
    border-color: rgba(11,79,158,0.32) !important;
    box-shadow: inset 0 0 0 1px rgba(11,79,158,0.08), 0 0 0 1px rgba(11,79,158,0.16), 0 12px 22px rgba(0,0,0,0.08), 0 0 18px rgba(11,79,158,0.08) !important;
}

html[data-wiso-theme="light"] .w6-cert-row__title,
html[data-wiso-theme="light"] .w6-cert-row__value,
html[data-wiso-theme="contrast-light"] .w6-cert-row__title,
html[data-wiso-theme="contrast-light"] .w6-cert-row__value {
    color: #2d3039;
}

html[data-wiso-theme="light"] .w6-cert-row__subline,
html[data-wiso-theme="light"] .w6-cert-row__meta,
html[data-wiso-theme="light"] .w6-cert-row__thumb,
html[data-wiso-theme="light"] .w6-cert-row__label,
html[data-wiso-theme="contrast-light"] .w6-cert-row__subline,
html[data-wiso-theme="contrast-light"] .w6-cert-row__meta,
html[data-wiso-theme="contrast-light"] .w6-cert-row__thumb,
html[data-wiso-theme="contrast-light"] .w6-cert-row__label {
    color: #667085;
}

html[data-wiso-theme="light"] .w6-cert-empty,
html[data-wiso-theme="contrast-light"] .w6-cert-empty {
    background: linear-gradient(180deg, rgba(11,79,158,0.03), rgba(11,79,158,0.02));
    border: 1px dashed rgba(11,79,158,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.50), 0 8px 20px rgba(0,0,0,0.05);
}

html[data-wiso-theme="light"] .w6-cert-empty__icon,
html[data-wiso-theme="contrast-light"] .w6-cert-empty__icon {
    color: #0b4f9e;
    background: linear-gradient(180deg, rgba(65, 167, 225, 0.10), rgba(11, 79, 158, 0.08));
    box-shadow: inset 0 0 0 1px rgba(11,79,158,0.10), 0 0 14px rgba(11,79,158,0.05);
}

html[data-wiso-theme="light"] .w6-cert-empty__title,
html[data-wiso-theme="contrast-light"] .w6-cert-empty__title {
    color: #2d3039;
}

html[data-wiso-theme="light"] .w6-cert-empty__text,
html[data-wiso-theme="contrast-light"] .w6-cert-empty__text {
    color: #4f5564;
}

html[data-wiso-theme="light"] .w6-cert-empty__hint,
html[data-wiso-theme="contrast-light"] .w6-cert-empty__hint {
    color: #7a8090;
}

html[data-wiso-theme="light"] .w6-cert-info-item,
html[data-wiso-theme="contrast-light"] .w6-cert-info-item {
    background: rgba(11,79,158,0.03);
    box-shadow: inset 0 0 0 1px rgba(11,79,158,0.05);
}

    html[data-wiso-theme="light"] .w6-cert-info-item strong,
    html[data-wiso-theme="contrast-light"] .w6-cert-info-item strong {
        color: #667085;
    }

    html[data-wiso-theme="light"] .w6-cert-info-item span,
    html[data-wiso-theme="contrast-light"] .w6-cert-info-item span {
        color: #2d3039;
    }

html[data-wiso-theme="light"] .w6-cert-info,
html[data-wiso-theme="contrast-light"] .w6-cert-info {
    background: radial-gradient(circle at top right, rgba(65, 167, 225, 0.05), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,250,0.98));
}

html[data-wiso-theme="light"] .w6-cert-info__hero,
html[data-wiso-theme="contrast-light"] .w6-cert-info__hero {
    background: linear-gradient(180deg, rgba(245,248,252,0.98), rgba(237,242,248,0.98));
    border: 1px solid rgba(11, 79, 158, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.50), 0 10px 24px rgba(0,0,0,0.07);
}

    html[data-wiso-theme="light"] .w6-cert-info__hero::after,
    html[data-wiso-theme="contrast-light"] .w6-cert-info__hero::after {
        background: linear-gradient(180deg, rgba(237,242,248,0.30), rgba(237,242,248,0));
    }

html[data-wiso-theme="light"] .w6-cert-info__heroicon,
html[data-wiso-theme="contrast-light"] .w6-cert-info__heroicon {
    background: linear-gradient(180deg, rgba(11,79,158,0.12), rgba(65,167,225,0.06)), url("../img/extended/icons-menu/certificate-action.svg") no-repeat center;
    background-size: 22px 22px;
    box-shadow: inset 0 0 0 1px rgba(11,79,158,0.08), 0 6px 14px rgba(0,0,0,0.06);
}

html[data-wiso-theme="light"] .w6-cert-info__title,
html[data-wiso-theme="contrast-light"] .w6-cert-info__title {
    color: #2d3039;
}

html[data-wiso-theme="light"] .w6-cert-info__subtitle,
html[data-wiso-theme="contrast-light"] .w6-cert-info__subtitle {
    color: #667085;
}

html[data-wiso-theme="light"] .w6-cert-info__card,
html[data-wiso-theme="contrast-light"] .w6-cert-info__card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,252,0.98));
    border: 1px solid rgba(11,79,158,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 4px 10px rgba(0,0,0,0.05);
}

html[data-wiso-theme="light"] .w6-cert-info__label,
html[data-wiso-theme="contrast-light"] .w6-cert-info__label {
    color: #667085;
}

html[data-wiso-theme="light"] .w6-cert-info__value,
html[data-wiso-theme="contrast-light"] .w6-cert-info__value {
    color: #2d3039;
}

html[data-wiso-theme="light"] .w6-cert-info-scroll,
html[data-wiso-theme="contrast-light"] .w6-cert-info-scroll {
    scrollbar-color: rgba(11,79,158,0.35) transparent;
}

    html[data-wiso-theme="light"] .w6-cert-info-scroll::-webkit-scrollbar-thumb,
    html[data-wiso-theme="contrast-light"] .w6-cert-info-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(65,167,225,0.35), rgba(11,79,158,0.35));
        border-radius: 8px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

html[data-wiso-theme="light"] .w6-cert-picker__list::-webkit-scrollbar-track,
html[data-wiso-theme="contrast-light"] .w6-cert-picker__list::-webkit-scrollbar-track {
    background: rgba(11,79,158,0.04);
}

html[data-wiso-theme="light"] .w6-cert-picker__list::-webkit-scrollbar-thumb,
html[data-wiso-theme="contrast-light"] .w6-cert-picker__list::-webkit-scrollbar-thumb {
    background: rgba(11,79,158,0.24);
    border-radius: 999px;
}

    html[data-wiso-theme="light"] .w6-cert-picker__list::-webkit-scrollbar-thumb:hover,
    html[data-wiso-theme="contrast-light"] .w6-cert-picker__list::-webkit-scrollbar-thumb:hover {
        background: rgba(11,79,158,0.38);
    }


/* =========================================================
   13) DARK / CONTRAST-DARK
   ========================================================= */

html[data-wiso-theme="dark"] .w6-certificate-field__trigger,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__trigger {
    color: #e6eef9;
}

html[data-wiso-theme="dark"] .w6-certificate-field__display,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__display {
    background: rgba(255,255,255,0.02);
}

html[data-wiso-theme="dark"] .w6-certificate-field__preview-empty,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__preview-empty {
    background: rgba(255,255,255,0.06);
    color: #cfd7e6;
}

html[data-wiso-theme="dark"] .w6-certificate-field__preview-card,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__preview-card {
    background: linear-gradient(180deg, rgba(63,67,80,0.98), rgba(45,48,57,0.98));
    border-color: rgba(255,255,255,0.08);
    color: #e6eef9;
}

html[data-wiso-theme="dark"] .w6-certificate-field__preview-subject,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__preview-subject {
    color: #e6eef9;
}

html[data-wiso-theme="dark"] .w6-certificate-field__badge,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__badge {
    background: rgba(255,255,255,0.06);
    color: rgba(230, 238, 249, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

html[data-wiso-theme="dark"] .w6-certificate-field__badge--valid,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__badge--valid {
    color: #8ff0b3;
}

html[data-wiso-theme="dark"] .w6-certificate-field__badge--expiringsoon,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__badge--expiringsoon {
    color: #ffd18a;
}

html[data-wiso-theme="dark"] .w6-certificate-field__badge--expired,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__badge--expired {
    color: #ffb2b2;
}

html[data-wiso-theme="dark"] .w6-certificate-field__badge--inactive,
html[data-wiso-theme="contrast-dark"] .w6-certificate-field__badge--inactive {
    color: #d6d6d6;
}

html[data-wiso-theme="dark"] .w6-certificate-popup,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup {
    border: 1px solid rgba(65, 167, 225, 0.18) !important;
    background: linear-gradient(180deg, rgba(44, 50, 66, 0.98), rgba(34, 39, 52, 0.98)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(65, 167, 225, 0.08), 0 0 18px rgba(65, 167, 225, 0.10) !important;
}

html[data-wiso-theme="dark"] .w6-certificate-popup__preview,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

html[data-wiso-theme="dark"] .w6-certificate-popup__preview-badge,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview-badge {
    background: rgba(65, 167, 225, 0.12);
    color: #9adfff;
}

html[data-wiso-theme="dark"] .w6-certificate-popup__preview-id,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview-id {
    color: rgba(230, 238, 249, 0.58);
}

html[data-wiso-theme="dark"] .w6-certificate-popup__preview-title,
html[data-wiso-theme="dark"] .w6-certificate-popup__preview-subject,
html[data-wiso-theme="dark"] .w6-certificate-popup__item,
html[data-wiso-theme="dark"] .w6-certificate-popup__label,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview-title,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview-subject,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__item,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__label {
    color: #f5f8ff !important;
}

html[data-wiso-theme="dark"] .w6-certificate-popup__preview-text,
html[data-wiso-theme="dark"] .w6-certificate-popup__preview-line,
html[data-wiso-theme="dark"] .w6-certificate-popup__sub,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview-text,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__preview-line,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__sub {
    color: rgba(230, 238, 249, 0.72) !important;
}

html[data-wiso-theme="dark"] .w6-certificate-popup__item:hover,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__item:hover {
    background: linear-gradient(180deg, rgba(11, 79, 158, 0.18), rgba(65, 167, 225, 0.10)) !important;
    box-shadow: inset 0 0 0 1px rgba(65, 167, 225, 0.18), 0 0 14px rgba(65, 167, 225, 0.10) !important;
}

html[data-wiso-theme="dark"] .w6-certificate-popup__icon,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__icon {
    color: #7fd8ff !important;
    background: linear-gradient(180deg, rgba(65, 167, 225, 0.14), rgba(11, 79, 158, 0.12)) !important;
    box-shadow: inset 0 0 0 1px rgba(65, 167, 225, 0.12) !important;
}

html[data-wiso-theme="dark"] .w6-certificate-popup__item--danger .w6-certificate-popup__icon,
html[data-wiso-theme="contrast-dark"] .w6-certificate-popup__item--danger .w6-certificate-popup__icon {
    color: #ffb2b2 !important;
    background: linear-gradient(180deg, rgba(186, 55, 55, 0.14), rgba(120, 35, 35, 0.14)) !important;
    box-shadow: inset 0 0 0 1px rgba(220, 90, 90, 0.12) !important;
}

html[data-wiso-theme="dark"] .w6-cert-window__content,
html[data-wiso-theme="contrast-dark"] .w6-cert-window__content {
    background: radial-gradient(circle at top right, rgba(65, 167, 225, 0.08), transparent 28%), linear-gradient(180deg, rgba(43, 49, 63, 0.98), rgba(34, 39, 52, 0.98));
}

html[data-wiso-theme="dark"] .w6-cert-window__hero,
html[data-wiso-theme="contrast-dark"] .w6-cert-window__hero {
    background: linear-gradient(135deg, rgba(11,79,158,0.16), rgba(65,167,225,0.08));
    border-color: rgba(65, 167, 225, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 24px rgba(0,0,0,0.16);
}

html[data-wiso-theme="dark"] .w6-cert-window__hero-title,
html[data-wiso-theme="contrast-dark"] .w6-cert-window__hero-title {
    color: #f4f8ff;
}

html[data-wiso-theme="dark"] .w6-cert-window__hero-text,
html[data-wiso-theme="contrast-dark"] .w6-cert-window__hero-text {
    color: rgba(230, 238, 249, 0.82);
}

html[data-wiso-theme="dark"] .w6-cert-window__hero-badge,
html[data-wiso-theme="contrast-dark"] .w6-cert-window__hero-badge {
    background: rgba(255,255,255,0.08);
    color: #e6eef9;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

html[data-wiso-theme="dark"] .w6-cert-formhost,
html[data-wiso-theme="dark"] .w6-cert-picker,
html[data-wiso-theme="dark"] .w6-cert-info-grid,
html[data-wiso-theme="contrast-dark"] .w6-cert-formhost,
html[data-wiso-theme="contrast-dark"] .w6-cert-picker,
html[data-wiso-theme="contrast-dark"] .w6-cert-info-grid {
    background: linear-gradient(180deg, rgba(37, 43, 56, 0.98), rgba(31, 36, 48, 0.98));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 22px rgba(0,0,0,0.16);
}

html[data-wiso-theme="dark"] .w6-cert-picker__search,
html[data-wiso-theme="contrast-dark"] .w6-cert-picker__search {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8, 11, 19, 0.55);
    color: #e6eef9;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.16);
}

    html[data-wiso-theme="dark"] .w6-cert-picker__search::placeholder,
    html[data-wiso-theme="contrast-dark"] .w6-cert-picker__search::placeholder {
        color: rgba(230, 238, 249, 0.38);
    }

html[data-wiso-theme="dark"] .w6-cert-picker__empty,
html[data-wiso-theme="dark"] .w6-cert-picker__loading,
html[data-wiso-theme="contrast-dark"] .w6-cert-picker__empty,
html[data-wiso-theme="contrast-dark"] .w6-cert-picker__loading {
    background: rgba(255,255,255,0.04);
    color: rgba(230, 238, 249, 0.72);
    border: 1px dashed rgba(255,255,255,0.08);
}

html[data-wiso-theme="dark"] .w6-cert-toolbar-btn,
html[data-wiso-theme="dark"] .w6-cert-toolbtn--accent,
html[data-wiso-theme="contrast-dark"] .w6-cert-toolbar-btn,
html[data-wiso-theme="contrast-dark"] .w6-cert-toolbtn--accent {
    border: 1px solid rgba(65, 167, 225, 0.16);
    background: linear-gradient(180deg, rgba(11,79,158,0.98), rgba(9,66,132,0.98));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 8px 18px rgba(11,79,158,0.18);
}

    html[data-wiso-theme="dark"] .w6-cert-toolbar-btn:hover,
    html[data-wiso-theme="dark"] .w6-cert-toolbtn--accent:hover,
    html[data-wiso-theme="contrast-dark"] .w6-cert-toolbar-btn:hover,
    html[data-wiso-theme="contrast-dark"] .w6-cert-toolbtn--accent:hover {
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 22px rgba(65,167,225,0.20);
    }

html[data-wiso-theme="dark"] .w6-cert-toolbar-btn--light,
html[data-wiso-theme="dark"] .w6-cert-toolbtn,
html[data-wiso-theme="contrast-dark"] .w6-cert-toolbar-btn--light,
html[data-wiso-theme="contrast-dark"] .w6-cert-toolbtn {
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(70, 82, 104, 0.95), rgba(52, 61, 80, 0.95));
    color: #e6eef9;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 6px 14px rgba(0,0,0,0.18);
}

html[data-wiso-theme="dark"] .w6-cert-toolbtn--download,
html[data-wiso-theme="contrast-dark"] .w6-cert-toolbtn--download {
    background: linear-gradient(180deg, rgba(11,79,158,0.95), rgba(6,58,110,0.95));
    border-color: rgba(65,167,225,0.35);
    color: #dff3ff;
}

html[data-wiso-theme="dark"] .w6-cert-row,
html[data-wiso-theme="dark"] .w6-cert-row--rich,
html[data-wiso-theme="dark"] .w6-cert-row--compact,
html[data-wiso-theme="contrast-dark"] .w6-cert-row,
html[data-wiso-theme="contrast-dark"] .w6-cert-row--rich,
html[data-wiso-theme="contrast-dark"] .w6-cert-row--compact {
    background: linear-gradient(180deg, rgba(47, 54, 68, 0.98), rgba(39, 45, 58, 0.98));
    border: 1px solid rgba(65, 167, 225, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 6px 14px rgba(0,0,0,0.14);
}

    html[data-wiso-theme="dark"] .w6-cert-row:hover,
    html[data-wiso-theme="dark"] .w6-cert-row--rich:hover,
    html[data-wiso-theme="dark"] .w6-cert-row--compact:hover,
    html[data-wiso-theme="contrast-dark"] .w6-cert-row:hover,
    html[data-wiso-theme="contrast-dark"] .w6-cert-row--rich:hover,
    html[data-wiso-theme="contrast-dark"] .w6-cert-row--compact:hover {
        border-color: rgba(65, 167, 225, 0.22);
        box-shadow: inset 0 0 0 1px rgba(65,167,225,0.06), 0 12px 22px rgba(0,0,0,0.18), 0 0 16px rgba(65,167,225,0.08);
    }

html[data-wiso-theme="dark"] .w6-cert-row--selected,
html[data-wiso-theme="contrast-dark"] .w6-cert-row--selected {
    border-color: rgba(65, 167, 225, 0.38) !important;
    box-shadow: inset 0 0 0 1px rgba(65,167,225,0.10), 0 0 0 1px rgba(65,167,225,0.22), 0 12px 22px rgba(0,0,0,0.18), 0 0 20px rgba(65,167,225,0.12) !important;
}

    html[data-wiso-theme="dark"] .w6-cert-row__title,
    html[data-wiso-theme="dark"] .w6-cert-row--selected .w6-cert-row__title,
    html[data-wiso-theme="dark"] .w6-cert-row__value,
    html[data-wiso-theme="contrast-dark"] .w6-cert-row__title,
    html[data-wiso-theme="contrast-dark"] .w6-cert-row--selected .w6-cert-row__title,
    html[data-wiso-theme="contrast-dark"] .w6-cert-row__value {
        color: #f4f8ff;
    }

html[data-wiso-theme="dark"] .w6-cert-row__subline,
html[data-wiso-theme="dark"] .w6-cert-row__meta,
html[data-wiso-theme="dark"] .w6-cert-row__thumb,
html[data-wiso-theme="dark"] .w6-cert-row__label,
html[data-wiso-theme="contrast-dark"] .w6-cert-row__subline,
html[data-wiso-theme="contrast-dark"] .w6-cert-row__meta,
html[data-wiso-theme="contrast-dark"] .w6-cert-row__thumb,
html[data-wiso-theme="contrast-dark"] .w6-cert-row__label {
    color: rgba(230, 238, 249, 0.50);
}

html[data-wiso-theme="dark"] .w6-cert-empty,
html[data-wiso-theme="contrast-dark"] .w6-cert-empty {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border: 1px dashed rgba(65, 167, 225, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 20px rgba(0,0,0,0.14);
}

html[data-wiso-theme="dark"] .w6-cert-empty__icon,
html[data-wiso-theme="contrast-dark"] .w6-cert-empty__icon {
    color: #7fd8ff;
    background: linear-gradient(180deg, rgba(65, 167, 225, 0.14), rgba(11, 79, 158, 0.10));
    box-shadow: inset 0 0 0 1px rgba(65, 167, 225, 0.14), 0 0 18px rgba(65, 167, 225, 0.08);
}

html[data-wiso-theme="dark"] .w6-cert-empty__title,
html[data-wiso-theme="contrast-dark"] .w6-cert-empty__title {
    color: #f5f8ff;
}

html[data-wiso-theme="dark"] .w6-cert-empty__text,
html[data-wiso-theme="contrast-dark"] .w6-cert-empty__text {
    color: rgba(230, 238, 249, 0.80);
}

html[data-wiso-theme="dark"] .w6-cert-empty__hint,
html[data-wiso-theme="contrast-dark"] .w6-cert-empty__hint {
    color: rgba(230, 238, 249, 0.58);
}

html[data-wiso-theme="dark"] .w6-cert-info-item,
html[data-wiso-theme="contrast-dark"] .w6-cert-info-item {
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

    html[data-wiso-theme="dark"] .w6-cert-info-item strong,
    html[data-wiso-theme="contrast-dark"] .w6-cert-info-item strong {
        color: rgba(230, 238, 249, 0.52);
    }

    html[data-wiso-theme="dark"] .w6-cert-info-item span,
    html[data-wiso-theme="contrast-dark"] .w6-cert-info-item span {
        color: #f4f8ff;
    }

html[data-wiso-theme="dark"] .w6-cert-info,
html[data-wiso-theme="contrast-dark"] .w6-cert-info {
    background: radial-gradient(circle at top right, rgba(65, 167, 225, 0.08), transparent 28%), linear-gradient(180deg, rgba(43, 49, 63, 0.98), rgba(34, 39, 52, 0.98));
}

html[data-wiso-theme="dark"] .w6-cert-info__hero,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__hero {
    background: linear-gradient(180deg, rgba(63, 79, 105, 0.97), rgba(48, 61, 82, 0.97));
    border: 1px solid rgba(65, 167, 225, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 24px rgba(0,0,0,0.25);
}

    html[data-wiso-theme="dark"] .w6-cert-info__hero::after,
    html[data-wiso-theme="contrast-dark"] .w6-cert-info__hero::after {
        background: linear-gradient(180deg, rgba(34,39,52,0.24), rgba(34,39,52,0));
    }

html[data-wiso-theme="dark"] .w6-cert-info__heroicon,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__heroicon {
    background: linear-gradient(180deg, rgba(11,79,158,0.22), rgba(65,167,225,0.10)), url("../img/extended/icons-menu/certificate-action.svg") no-repeat center;
    background-size: 22px 22px;
    box-shadow: inset 0 0 0 1px rgba(65,167,225,0.10), 0 6px 14px rgba(0,0,0,0.12);
}

html[data-wiso-theme="dark"] .w6-cert-info__title,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__title {
    color: #f5f8ff;
}

html[data-wiso-theme="dark"] .w6-cert-info__subtitle,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__subtitle {
    color: rgba(230, 238, 249, 0.72);
}

html[data-wiso-theme="dark"] .w6-cert-info__card,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__card {
    background: linear-gradient(180deg, rgba(47, 54, 68, 0.98), rgba(39, 45, 58, 0.98));
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 4px 10px rgba(0,0,0,0.10);
}

html[data-wiso-theme="dark"] .w6-cert-info__label,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__label {
    color: rgba(230, 238, 249, 0.48);
}

html[data-wiso-theme="dark"] .w6-cert-info__value,
html[data-wiso-theme="contrast-dark"] .w6-cert-info__value {
    color: #f4f8ff;
}

html[data-wiso-theme="dark"] .w6-cert-info-scroll,
html[data-wiso-theme="contrast-dark"] .w6-cert-info-scroll {
    scrollbar-color: rgba(65,167,225,0.4) transparent;
}

    html[data-wiso-theme="dark"] .w6-cert-info-scroll::-webkit-scrollbar-thumb,
    html[data-wiso-theme="contrast-dark"] .w6-cert-info-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(65,167,225,0.45), rgba(11,79,158,0.45));
        border-radius: 8px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

html[data-wiso-theme="dark"] .w6-cert-picker__list::-webkit-scrollbar-track,
html[data-wiso-theme="contrast-dark"] .w6-cert-picker__list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
}

html[data-wiso-theme="dark"] .w6-cert-picker__list::-webkit-scrollbar-thumb,
html[data-wiso-theme="contrast-dark"] .w6-cert-picker__list::-webkit-scrollbar-thumb {
    background: rgba(65, 167, 225, 0.28);
    border-radius: 999px;
}

    html[data-wiso-theme="dark"] .w6-cert-picker__list::-webkit-scrollbar-thumb:hover,
    html[data-wiso-theme="contrast-dark"] .w6-cert-picker__list::-webkit-scrollbar-thumb:hover {
        background: rgba(65, 167, 225, 0.42);
    }


/* =========================================================
   14) SCROLLBARS ALLGEMEIN
   ========================================================= */

.w6-cert-picker__list::-webkit-scrollbar,
.w6-cert-info-scroll::-webkit-scrollbar {
    width: 10px;
}

.w6-cert-info-scroll::-webkit-scrollbar-track,
.w6-cert-picker__list::-webkit-scrollbar-track {
    background: transparent;
}


/* =========================================================
   15) RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .w6-cert-row__grid,
    .w6-cert-row__grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .w6-cert-window__hero,
    .w6-cert-info__grid--compact,
    .w6-cert-info-grid {
        grid-template-columns: 1fr;
    }

    .w6-cert-picker__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .w6-cert-info__herohead {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .w6-cert-info__tools {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .w6-cert-row__head {
        grid-template-columns: 1fr;
    }

    .w6-cert-row__tools,
    .w6-cert-row__badges {
        justify-content: flex-start;
    }

    .w6-cert-row__grid--compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .w6-cert-row__grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   16) ANIMATIONEN
   ========================================================= */

@keyframes w6CertPopupRollIn {
    from {
        opacity: 0;
        transform: translateY(8px) scaleY(.92) scaleX(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1) scaleX(1);
    }
}

@keyframes w6CertPopupRollOut {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1) scaleX(1);
    }

    to {
        opacity: 0;
        transform: translateY(6px) scaleY(.90) scaleX(.98);
    }
}

.w6-folder-field,
.w6-file-field {
    position: relative;
}

    .w6-folder-field .w6-certificate-field__trigger,
    .w6-file-field .w6-certificate-field__trigger {
        right: 8px;
    }

    .w6-folder-field .wiso_input__wrapper input,
    .w6-file-field .wiso_input__wrapper input {
        padding-right: 42px !important;
    }