:root {
    /* Brand palette (logo) */
    --oe-brand-primary: #095BAC;
    --oe-brand-secondary: #FD6418;
    --oe-brand-primary-rgb: 9, 91, 172;
    --oe-brand-secondary-rgb: 253, 100, 24;

    /* Semantic tokens */
    --oe-primary: var(--oe-brand-primary);
    --oe-secondary: var(--oe-brand-secondary);
    --oe-accent: var(--oe-brand-secondary);
    --oe-primary-hover: #074a8f;
    --oe-primary-active: #063d76;
    --oe-secondary-hover: #e55a14;
    --oe-secondary-active: #cc4f10;

    --oe-sidebar-width: 292px;
    --oe-topbar-height: 80px;
    --oe-sidebar-bg: #095BAC;
    --oe-sidebar-hover: #074a8f;
    --oe-body-bg: #f4f6f9;
}

html {
    height: 100%;
}

body.admin-body {
    background: var(--oe-body-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.btn-primary {
    --bs-btn-bg: var(--oe-brand-secondary);
    --bs-btn-border-color: var(--oe-brand-secondary);
    --bs-btn-hover-bg: var(--oe-secondary-hover);
    --bs-btn-hover-border-color: var(--oe-secondary-hover);
    --bs-btn-active-bg: var(--oe-secondary-active);
    --bs-btn-active-border-color: var(--oe-secondary-active);
    --bs-btn-focus-shadow-rgb: var(--oe-brand-secondary-rgb);
}

.btn-outline-primary {
    --bs-btn-color: var(--oe-brand-primary);
    --bs-btn-border-color: var(--oe-brand-primary);
    --bs-btn-hover-bg: var(--oe-brand-primary);
    --bs-btn-hover-border-color: var(--oe-brand-primary);
    --bs-btn-active-bg: var(--oe-primary-active);
    --bs-btn-active-border-color: var(--oe-primary-active);
    --bs-btn-focus-shadow-rgb: var(--oe-brand-primary-rgb);
}

.btn-secondary {
    --bs-btn-bg: var(--oe-brand-primary);
    --bs-btn-border-color: var(--oe-brand-primary);
    --bs-btn-hover-bg: var(--oe-primary-hover);
    --bs-btn-hover-border-color: var(--oe-primary-hover);
}

.text-primary { color: var(--oe-brand-primary) !important; }
.bg-primary { background-color: var(--oe-brand-primary) !important; }
.border-primary { border-color: var(--oe-brand-primary) !important; }

.text-brand-secondary { color: var(--oe-brand-secondary) !important; }
.bg-brand-secondary { background-color: var(--oe-brand-secondary) !important; }

.admin-wrapper {
    display: grid;
    grid-template-columns: var(--oe-sidebar-width) minmax(0, 1fr);
    grid-template-rows: var(--oe-topbar-height) minmax(0, 1fr);
    grid-template-areas:
        "brand header"
        "sidebar main";
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.oe-sidebar-brand--desktop {
    grid-area: brand;
    position: sticky;
    top: 0;
    z-index: 1051;
    align-self: start;
}

.admin-navbar {
    grid-area: header;
}

.admin-sidebar {
    grid-area: sidebar;
    width: var(--oe-sidebar-width);
    min-width: var(--oe-sidebar-width);
    max-width: var(--oe-sidebar-width);
    background: var(--oe-sidebar-bg);
    color: #c8cdd8;
    position: sticky;
    top: var(--oe-topbar-height);
    align-self: start;
    height: calc(100vh - var(--oe-topbar-height));
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease;
    box-sizing: border-box;
}

.admin-sidebar .oe-sidebar-brand--mobile {
    display: none;
}

.admin-sidebar .oe-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.65rem 0.625rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.admin-sidebar .oe-sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar .oe-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Brand / logo */
.oe-brand {
    box-sizing: border-box;
    flex-shrink: 0;
}

.oe-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    width: 100%;
}

.oe-sidebar-brand {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 3px solid var(--oe-brand-secondary);
    padding: 0.75rem 1rem;
    min-height: var(--oe-topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.oe-brand--sidebar {
    width: 100%;
}

.oe-brand--sidebar .oe-brand-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-brand--sidebar .oe-brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: center center;
}

.oe-brand--sidebar .oe-brand-logo--default {
    height: 58px;
    width: 100%;
    max-height: none;
}

.oe-brand--sidebar .oe-brand-logo--uploaded {
    max-height: 64px;
    width: 100%;
    object-fit: contain;
    object-position: center top;
}

/* Top navbar — fixed in grid header row */
.admin-navbar {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 0.65rem 1.5rem;
    min-height: var(--oe-topbar-height);
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(9, 91, 172, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.admin-navbar__start {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.admin-navbar__end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.admin-navbar__page {
    min-width: 0;
    flex: 1;
}

.admin-navbar__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--oe-brand-primary);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-navbar__subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-oe-user {
    border: 1px solid #e8ecf1;
    background: #fafbfc;
    color: #1a1d29;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
    border-radius: 999px;
    max-width: 220px;
}

.btn-oe-user:hover,
.btn-oe-user:focus,
.btn-oe-user.show {
    background: #fff;
    border-color: var(--oe-brand-primary);
    color: var(--oe-brand-primary);
    box-shadow: 0 0 0 3px rgba(9, 91, 172, 0.12);
}

.btn-oe-user::after {
    margin-left: 0.35rem;
}

.oe-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--oe-brand-primary), #0a4a8a);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.oe-brand--auth {
    padding: 0;
}

.oe-brand--auth .oe-brand-logo-frame {
    min-height: 64px;
    max-height: 72px;
}

.oe-brand--auth .oe-brand-logo {
    max-height: 68px;
    width: auto;
    max-width: 100%;
}

.oe-brand--auth .oe-brand-logo--default {
    filter: brightness(0) invert(1);
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.oe-brand--auth .oe-brand-tagline {
    color: rgba(255, 255, 255, 0.92);
    border-top-color: rgba(255, 255, 255, 0.25);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.oe-brand-tagline {
    margin: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c6578;
    text-align: center;
    line-height: 1.35;
    border-top: 1px solid #eef1f5;
    background: #fff;
}

.oe-brand-tagline--subtle {
    font-size: 0.6rem;
    color: #6c757d;
    padding-top: 0.35rem;
    padding-bottom: 0.65rem;
    border-top: none;
    background: transparent;
}

.oe-brand-tagline:not(.oe-brand-tagline--subtle)::before {
    content: '⚡ ';
    color: var(--oe-primary);
}

/* Sidebar navigation with dropdown groups */
.oe-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.15rem;
    border-radius: 0.5rem;
    color: #b8bec8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.oe-nav-link i {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.oe-nav-link:hover {
    background: var(--oe-sidebar-hover);
    color: #fff;
}

.oe-nav-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 4px 0 0 var(--oe-brand-secondary);
}

.oe-nav-link.is-active i {
    color: var(--oe-brand-secondary);
}

.oe-nav-link--top {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.oe-nav-link--child {
    padding-left: 2.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.oe-nav-group {
    margin-bottom: 0.25rem;
}

.oe-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.1rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #d1d5de;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.oe-nav-group-toggle:hover,
.oe-nav-group.is-open > .oe-nav-group-toggle {
    background: var(--oe-sidebar-hover);
    color: #fff;
}

.oe-nav-group.has-active > .oe-nav-group-toggle {
    color: #fff;
}

.oe-nav-group-toggle__main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.oe-nav-group-toggle__main i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--oe-brand-secondary);
}

.oe-nav-chevron {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.oe-nav-group.is-open .oe-nav-chevron {
    transform: rotate(180deg);
}

.oe-nav-group-menu {
    padding: 0.15rem 0 0.35rem;
}

.oe-nav-group-menu[hidden] {
    display: none !important;
}

.admin-main {
    grid-area: main;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: calc(100vh - var(--oe-topbar-height));
    max-height: calc(100dvh - var(--oe-topbar-height));
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-navbar .form-select-sm {
    min-width: 110px;
    border-color: #e2e8f0;
    font-size: 0.8125rem;
}

.admin-navbar .btn-light {
    border: 1px solid #e8ecf1;
    background: #fafbfc;
}

.admin-navbar .btn-light:hover {
    background: #f4f6f9;
    border-color: #dee2e6;
}

.admin-content {
    flex: 1 1 auto;
    padding: 1.5rem;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-content .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.admin-footer {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e8ecf1;
    padding: 1rem 1.5rem;
    color: #6c757d;
    font-size: .875rem;
    z-index: 1020;
}

.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card.orange .stat-icon,
.stat-card.secondary .stat-icon {
    background: rgba(var(--oe-brand-secondary-rgb), 0.14);
    color: var(--oe-brand-secondary);
}

.stat-card.blue .stat-icon,
.stat-card.primary .stat-icon {
    background: rgba(var(--oe-brand-primary-rgb), 0.12);
    color: var(--oe-brand-primary);
}

.stat-card.yellow .stat-icon {
    background: rgba(var(--oe-brand-secondary-rgb), 0.1);
    color: var(--oe-brand-secondary);
}
.stat-card.green .stat-icon { background: rgba(25,135,84,.15); color: #198754; }

.page-card {
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: none;
}

.page-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eef1f5;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.filter-bar {
    background: #f8f9fb;
    border-radius: .5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

table.dataTable thead th,
table.oe-table thead th {
    background: #f8f9fb !important;
    color: #212529;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
}

table.oe-table tbody td {
    vertical-align: middle;
}

/* Admin panel — unified Laravel pagination */
.oe-admin-pagination-wrap {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
}

.oe-admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.oe-admin-pagination__summary {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.oe-admin-pagination__summary strong {
    color: #212529;
    font-weight: 600;
}

.oe-admin-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding-left: 0;
}

.oe-admin-pagination__pages .page-item .page-link {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.oe-admin-pagination__pages .page-item .page-link:hover {
    color: var(--oe-brand-primary);
    border-color: rgba(var(--oe-brand-primary-rgb), 0.45);
    background: rgba(var(--oe-brand-primary-rgb), 0.06);
}

.oe-admin-pagination__pages .page-item.active .page-link {
    background: var(--oe-brand-secondary);
    border-color: var(--oe-brand-secondary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(var(--oe-brand-secondary-rgb), 0.35);
}

.oe-admin-pagination__pages .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    box-shadow: none;
}

.oe-admin-pagination__pages .page-item.disabled .page-link.oe-admin-pagination__dots {
    background: transparent;
    border-color: transparent;
    min-width: auto;
    padding: 0 0.25rem;
}

@media (max-width: 575.98px) {
    .oe-admin-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .oe-admin-pagination__pages {
        justify-content: center;
    }
}

.badge-status-active { background: #d1e7dd; color: #0f5132; }
.badge-status-inactive { background: #f8d7da; color: #842029; }
.badge-status-pending { background: #fff3cd; color: #664d03; }
.badge-status-approved { background: #d1e7dd; color: #0f5132; }
.badge-status-rejected { background: #f8d7da; color: #842029; }

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oe-sidebar-bg) 0%, var(--oe-brand-primary) 50%, var(--oe-brand-secondary) 100%);
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}

.auth-card .auth-header {
    background: linear-gradient(135deg, var(--oe-brand-primary), var(--oe-brand-secondary));
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.auth-card .auth-body {
    padding: 2rem;
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: var(--oe-topbar-height) minmax(0, 1fr);
        grid-template-areas:
            "header"
            "main";
    }

    .oe-sidebar-brand--desktop {
        display: none !important;
    }

    .admin-sidebar .oe-sidebar-brand--mobile {
        display: flex;
        flex-shrink: 0;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        grid-area: unset;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        grid-area: main;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - var(--oe-topbar-height));
        max-height: calc(100dvh - var(--oe-topbar-height));
    }

    .admin-navbar {
        grid-area: header;
    }
    .sidebar-toggle {
        display: inline-flex;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 1035;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

.ck-editor__editable {
    min-height: 280px;
}

/* —— Page layout —— */
.oe-page-header {
    padding-bottom: 0.25rem;
}

/* Hide duplicate page titles — title lives in top navbar */
.admin-content .container-fluid > .d-flex.flex-wrap h1.h3,
.admin-content .container-fluid > h1.h3,
.admin-content .container-fluid h1.h3.mb-0 {
    display: none !important;
}

.admin-content .container-fluid > .d-flex.flex-wrap > div > p.text-muted.small:first-of-type {
    display: none;
}

.oe-page-header {
    margin-bottom: 1rem !important;
}

.oe-page-toolbar {
    margin-bottom: 1rem !important;
}

.oe-page-subtitle {
    display: none !important;
}

.oe-profile-show .oe-detail-label,
.oe-profile-show .oe-detail-value,
.oe-profile-show .oe-detail-grid {
    display: none !important;
}

.oe-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.oe-detail-value {
    color: #1a1d29;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.oe-info-list {
    display: grid;
    gap: 0.65rem;
}

.oe-info-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oe-info-list--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oe-info-list--1col {
    grid-template-columns: 1fr;
}

.oe-info-list__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8f9fb;
    border: 1px solid rgba(26, 29, 41, 0.06);
    border-radius: 0.65rem;
    min-height: 100%;
}

.oe-info-list__row--wide {
    grid-column: 1 / -1;
}

.oe-info-list__icon {
    flex-shrink: 0;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.5rem;
    background: #fff;
    color: var(--oe-brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(26, 29, 41, 0.06);
}

.oe-info-list__content {
    flex: 1;
    min-width: 0;
}

.oe-info-list__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.15rem;
    text-transform: none;
    letter-spacing: normal;
}

.oe-info-list__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1d29;
    line-height: 1.45;
    word-break: break-word;
}

.oe-info-list__value .fw-normal {
    font-weight: 500 !important;
}

.oe-info-list__suffix {
    margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
    .oe-info-list--2col,
    .oe-info-list--3col {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card.shadow-sm,
.oe-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(26, 29, 41, 0.06);
}

.card .card-body {
    padding: 1.25rem;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--oe-brand-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--oe-brand-primary-rgb), 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

/* Tables */
.table.oe-table tbody tr {
    transition: background-color 0.12s ease;
}

.table.oe-table tbody tr:hover {
    background-color: rgba(var(--oe-brand-primary-rgb), 0.04);
}

.table .btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Action buttons in tables */
.oe-table-actions .btn {
    margin-left: 0.15rem;
}

.oe-validation-summary {
    position: relative;
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 53, 69, 0.22);
    background: linear-gradient(135deg, #fff5f5 0%, #fff 55%);
    box-shadow: 0 4px 18px rgba(220, 53, 69, 0.08);
    padding: 1rem 1.1rem 1rem 1rem;
    animation: oe-validation-in 0.28s ease-out;
}

@keyframes oe-validation-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oe-validation-summary__body {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.oe-validation-summary__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
    font-size: 1.2rem;
}

.oe-validation-summary__content {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

.oe-validation-summary__title {
    margin: 0 0 0.2rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #842029;
}

.oe-validation-summary__subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: #6c757d;
}

.oe-validation-summary__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    color: #495057;
}

.oe-validation-summary__list li {
    margin-bottom: 0.25rem;
}

.oe-validation-summary__list li:last-child {
    margin-bottom: 0;
}

.oe-validation-summary__single {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
}

.oe-validation-summary__more {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6c757d;
    font-weight: 600;
}

.oe-validation-summary__close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.65;
}

.oe-validation-summary__close:hover {
    opacity: 1;
    color: #842029;
}

.oe-validation-anchor {
    margin-bottom: 1rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.12);
}

.oe-field-error {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.oe-validation-alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.12);
}

/* SweetAlert2 — Oho Enokri theme */
.oe-swal-popup {
    border-radius: 1rem !important;
    padding: 1.5rem 1.25rem 1.25rem !important;
    box-shadow: 0 16px 48px rgba(26, 29, 41, 0.18) !important;
}

.oe-swal-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a1d29 !important;
}

.oe-swal-text {
    font-size: 0.9375rem !important;
    color: #6c757d !important;
}

.oe-swal-btn-confirm {
    min-width: 6rem;
    font-weight: 600;
}

.oe-swal-btn-cancel {
    min-width: 5rem;
}

.oe-swal-error-list {
    padding-left: 1.25rem;
    color: #842029;
}

.oe-swal-error-list li {
    margin-bottom: 0.35rem;
}

div:where(.swal2-container) .swal2-popup.swal2-toast {
    border-radius: 0.65rem;
    box-shadow: 0 8px 24px rgba(26, 29, 41, 0.12);
    padding: 0.75rem 1rem;
}

.swal2-timer-progress-bar {
    background: var(--oe-brand-secondary) !important;
}

/* Table action button group */
.oe-table-actions {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.oe-table-actions .btn-outline-primary {
    --bs-btn-color: var(--oe-brand-primary);
    --bs-btn-border-color: var(--oe-brand-primary);
    --bs-btn-hover-bg: var(--oe-brand-primary);
    --bs-btn-hover-border-color: var(--oe-brand-primary);
}

.oe-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #6c757d;
}

.oe-empty-state i {
    font-size: 2rem;
    opacity: 0.45;
    display: block;
    margin-bottom: 0.5rem;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    font-weight: 500;
}

.btn-outline-danger:hover {
    color: #fff;
}

.admin-content > .container-fluid {
    max-width: 100%;
}

/* Status pill toggle (list tables) */
.oe-status-cell {
    white-space: nowrap;
}

.oe-status-pill {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.oe-status-pill__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.65rem 0.2rem 0.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.oe-status-pill.is-on .oe-status-pill__inner {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.12) 0%, rgba(25, 135, 84, 0.06) 100%);
    border-color: rgba(25, 135, 84, 0.28);
    color: #146c43;
    box-shadow: 0 1px 2px rgba(25, 135, 84, 0.08);
}

.oe-status-pill.is-off .oe-status-pill__inner {
    background: #f8f9fa;
    border-color: #e2e6ea;
    color: #6c757d;
}

.oe-status-pill:hover .oe-status-pill__inner {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.oe-status-pill.is-on:hover .oe-status-pill__inner {
    border-color: rgba(25, 135, 84, 0.45);
}

.oe-status-pill.is-off:hover .oe-status-pill__inner {
    border-color: #ced4da;
    background: #f1f3f5;
}

.oe-status-pill__track {
    position: relative;
    flex-shrink: 0;
    width: 2.125rem;
    height: 1.125rem;
    border-radius: 999px;
    background: #ced4da;
    transition: background-color 0.2s ease;
}

.oe-status-pill.is-on .oe-status-pill__track {
    background: #22a06b;
}

.oe-status-pill__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.125rem - 4px);
    height: calc(1.125rem - 4px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.oe-status-pill.is-on .oe-status-pill__track::after {
    transform: translateX(0.95rem);
}

.oe-status-pill__text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-width: 3rem;
}

.oe-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.oe-status-badge--on {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.22);
    color: #146c43;
}

.oe-status-badge--off {
    background: #f1f3f5;
    border-color: #e2e6ea;
    color: #6c757d;
}

.oe-status-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.oe-status-badge--on .oe-status-badge__dot {
    background: #22a06b;
}

.oe-status-badge--off .oe-status-badge__dot {
    background: #adb5bd;
}

.oe-table th.oe-sno,
.oe-table td.oe-sno {
    width: 3.25rem;
    min-width: 3.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.oe-table thead th.oe-sno {
    color: #6c757d;
    font-weight: 600;
}

.oe-cat-img-col {
    width: 4.5rem;
}

.oe-cat-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.oe-cat-thumb--empty {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    font-size: 1rem;
}

/* Avatars (lists) */
.oe-avatar {
    object-fit: cover;
    display: block;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
}

.oe-avatar--sm {
    width: 40px;
    height: 40px;
}

.oe-avatar--md {
    width: 56px;
    height: 56px;
}

.oe-avatar--lg {
    width: 72px;
    height: 72px;
}

.oe-avatar--xl {
    width: 96px;
    height: 96px;
    border-width: 3px;
    border-color: #fff;
    box-shadow: 0 4px 16px rgba(26, 29, 41, 0.12);
}

.oe-avatar--circle {
    border-radius: 50%;
}

.oe-avatar--rounded {
    border-radius: 0.5rem;
}

.oe-avatar--placeholder {
    object-fit: contain;
    padding: 4px;
    background: #f8f9fa;
}

.oe-table .oe-avatar-col {
    width: 3.25rem;
}

/* Image upload preview (forms) */
.oe-img-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    overflow: hidden;
}

.oe-img-preview--square {
    width: 96px;
    height: 96px;
    border-radius: 0.5rem;
}

.oe-img-preview--circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.oe-img-preview--wide {
    width: 100%;
    max-width: 220px;
    height: 80px;
    border-radius: 0.5rem;
}

.oe-img-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oe-img-preview--wide .oe-img-preview__img {
    object-fit: contain;
}

/* Admin form layout */
.oe-form-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bs-primary);
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin: 0 0 0.25rem;
}

.oe-form-media {
    position: static;
}

.oe-form-media .oe-image-field .form-label {
    font-weight: 600;
}

/* Job seeker form — two-column grid */
.oe-user-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}

@media (min-width: 992px) {
    .oe-user-form {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    }
}

.oe-user-form__sidebar {
    min-width: 0;
    width: 100%;
}

.oe-user-form__main {
    min-width: 0;
    width: 100%;
}

.oe-user-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.oe-user-form-sidebar__photo,
.oe-user-form-sidebar__completion {
    flex-shrink: 0;
    width: 100%;
    background: #fff;
}

.oe-user-form-sidebar .oe-image-field {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.oe-user-form-sidebar .oe-image-field__preview-wrap {
    margin-bottom: 0.75rem;
}

.oe-user-form-sidebar .oe-image-input {
    width: 100%;
    max-width: 100%;
}

.oe-user-form-sidebar__checklist {
    max-height: 11rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}

.oe-crud-form .card-body:has(.oe-user-form) {
    min-height: 0;
    padding-top: 1rem;
}

.oe-page-toolbar {
    width: 100%;
}

.oe-page-toolbar .btn {
    white-space: nowrap;
}

.oe-image-field--centered .oe-image-field__preview-wrap {
    display: flex;
    justify-content: center;
}

.oe-crud-form .card-body {
    min-height: 8rem;
}

/* Form panels (user / employer CRUD) */
.oe-form-panel {
    overflow: hidden;
}

.oe-form-panel__title {
    font-weight: 600;
    color: #212529;
}

.oe-form-panel .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.oe-form-panel .form-control,
.oe-form-panel .form-select {
    max-width: 100%;
}

.oe-user-form .oe-form-panel .row,
.oe-employer-form .oe-form-panel .row {
    --bs-gutter-x: 1rem;
}

.oe-image-field--compact .oe-img-preview--compact-circle {
    width: 120px;
    height: 120px;
}

.oe-image-field--compact .oe-img-preview--compact {
    width: 120px;
    height: 120px;
}

.oe-image-field--compact .oe-image-input {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.oe-image-field--compact .form-text {
    text-align: center;
}

.oe-crud-form > .card > .card-body {
    background: #f8f9fa;
}

.oe-crud-form .oe-form-panel .card-body,
.oe-crud-form .oe-form-media .card-body {
    background: #fff;
}

.oe-profile-completion--compact .oe-profile-completion__bar {
    margin-bottom: 0.15rem;
}

.oe-profile-completion__details summary {
    user-select: none;
}

.oe-user-form .form-control.is-valid,
.oe-user-form .form-select.is-valid {
    border-color: #198754;
}

.oe-user-form .oe-live-feedback {
    font-size: 0.8125rem;
}

@media (max-width: 991.98px) {
    .oe-form-media {
        position: static;
        margin-bottom: 0.5rem;
    }

    .oe-user-form {
        grid-template-columns: 1fr;
    }

    .oe-user-form-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .oe-user-form-sidebar__checklist {
        max-height: 10rem;
    }
}

/* —— Media preview modal —— */
.oe-media-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 29, 41, 0.2);
}

.oe-media-modal .modal-header {
    padding: 1rem 1.25rem 0.5rem;
}

.oe-media-modal .modal-body {
    padding: 0 1.25rem 1rem;
    min-height: 200px;
}

.oe-media-modal__stage {
    background: #f4f6f9;
    border-radius: 0.75rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oe-media-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.oe-media-modal__loading[hidden] {
    display: none !important;
}

.oe-media-modal__image-wrap {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
}

.oe-media-modal__image-wrap[hidden],
.oe-media-modal__pdf-wrap[hidden],
.oe-media-modal__fallback[hidden] {
    display: none !important;
}

.oe-media-modal__img {
    max-width: 100%;
    max-height: min(72vh, 640px);
    width: auto;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(26, 29, 41, 0.12);
}

.oe-media-modal__pdf-wrap {
    width: 100%;
    height: min(72vh, 640px);
}

.oe-media-modal__iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    border-radius: 0.5rem;
    background: #fff;
}

.oe-media-modal__fallback {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.oe-media-modal__fallback-icon {
    font-size: 3rem;
    color: var(--oe-brand-secondary);
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.oe-avatar-btn {
    position: relative;
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: 50%;
    line-height: 0;
}

.oe-avatar-btn--rounded {
    border-radius: 0.75rem;
}

.oe-avatar-btn .oe-avatar {
    display: block;
}

.oe-avatar-btn__hint {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--oe-brand-primary);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(253, 100, 24, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.oe-avatar-btn:hover .oe-avatar-btn__hint,
.oe-avatar-btn:focus-visible .oe-avatar-btn__hint {
    opacity: 1;
}

.oe-img-preview[data-oe-media-preview-img] {
    cursor: zoom-in;
    position: relative;
}

.oe-img-preview[data-oe-media-preview-img]:hover .oe-img-preview__img {
    opacity: 0.92;
}

.oe-img-preview__zoom {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(9, 91, 172, 0.9);
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.oe-img-preview[data-oe-media-preview-img]:hover .oe-img-preview__zoom {
    opacity: 1;
}

/* —— Profile show (job seeker) —— */
.oe-profile-show__hero {
    border: none;
    overflow: hidden;
}

.oe-profile-show__hero-banner {
    height: 88px;
    background: linear-gradient(120deg, var(--oe-brand-secondary) 0%, #0a4a8f 45%, rgba(253, 100, 24, 0.35) 100%);
}

.oe-profile-show__hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
    padding: 0 1.5rem 1.25rem;
    margin-top: -2.5rem;
}

.oe-profile-show__hero-meta h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #1a1d29;
}

.oe-profile-show__section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1d29;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oe-profile-show__section-title i {
    color: var(--oe-brand-secondary);
    font-size: 1.1rem;
}

.oe-profile-show__cert-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: #f8f9fb;
    border: 1px solid rgba(26, 29, 41, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oe-profile-show__cert-row:hover {
    border-color: rgba(9, 91, 172, 0.2);
    box-shadow: 0 4px 12px rgba(26, 29, 41, 0.05);
}

.oe-profile-show__exp-card {
    border-radius: 0.65rem;
    border: 1px solid rgba(26, 29, 41, 0.08);
    padding: 1rem 1.1rem;
    background: #fff;
    border-left: 3px solid var(--oe-brand-primary);
}

.oe-profile-show__sidebar-card .card-header {
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
}

.oe-profile-show__meta-list li {
    padding: 0.65rem 0;
}

.oe-profile-show__meta-list li + li {
    border-top: 1px solid rgba(26, 29, 41, 0.06);
}

.oe-profile-show__skill-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.oe-profile-show .oe-detail-grid {
    --bs-gutter-y: 1.25rem;
}

/* Chip multi-select (mobile-style skills / certifications) */
.oe-chip-select__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}

.oe-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}

.oe-chip:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.oe-chip.is-selected {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.oe-chip__icon {
    font-size: 0.95rem;
    line-height: 1;
}

.oe-chip__icon--on {
    display: none;
}

.oe-chip__icon--off {
    display: inline;
    opacity: 0.45;
}

.oe-chip.is-selected .oe-chip__icon--on {
    display: inline;
}

.oe-chip.is-selected .oe-chip__icon--off {
    display: none;
}

.oe-work-exp__item .card-body {
    background: #fafbfc;
}

/* Searchable skill picker */
.oe-skill-search {
    position: relative;
}

.oe-skill-search__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.oe-skill-search__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.oe-skill-search__count {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    background: #e0e7ff;
    color: #3730a3;
    border: none;
}

.oe-skill-search__count[hidden] {
    display: none !important;
}

.oe-skill-search__panel {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #fff;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.oe-skill-search.is-open .oe-skill-search__panel {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.oe-skill-search__selected {
    padding: 0.75rem 0.85rem;
    min-height: 3rem;
    border-bottom: 1px solid #f1f5f9;
}

.oe-skill-search__selected.is-empty {
    padding-bottom: 0.5rem;
}

.oe-skill-search__selected:not(.is-empty) .oe-skill-search__hint {
    display: none;
}

.oe-skill-search__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.oe-skill-search__selected.is-empty .oe-skill-search__tags {
    display: none;
}

.oe-skill-search__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

.oe-skill-search__hint[hidden] {
    display: none !important;
}

.oe-skill-search__hint .bi {
    color: #cbd5e1;
}

.oe-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.3rem 0.35rem 0.3rem 0.65rem;
    border: 1px solid #93c5fd;
    border-radius: 0.375rem;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.1s;
}

.oe-skill-tag:hover {
    border-color: #60a5fa;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.oe-skill-tag:active {
    transform: scale(0.98);
}

.oe-skill-tag__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-skill-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.65);
    color: #2563eb;
    font-size: 0.75rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}

.oe-skill-tag:hover .oe-skill-tag__remove {
    background: #fff;
    color: #1d4ed8;
}

.oe-skill-search__search {
    position: relative;
    padding: 0.65rem 0.85rem;
}

.oe-skill-search__search-icon {
    position: absolute;
    left: 1.35rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.oe-skill-search__input {
    padding: 0.5rem 2.25rem 0.5rem 2.15rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    min-height: 2.5rem;
    font-size: 0.9rem;
    color: #1e293b;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.oe-skill-search__input::placeholder {
    color: #94a3b8;
}

.oe-skill-search__input:hover {
    background: #fff;
    border-color: #cbd5e1;
}

.oe-skill-search__input:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.oe-skill-search__spinner {
    position: absolute;
    right: 1.35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #3b82f6;
    width: 1rem;
    height: 1rem;
}

.oe-skill-search__dropdown {
    border-top: 1px solid #e2e8f0;
    max-height: 240px;
    overflow-y: auto;
    background: #fafbfc;
}

.oe-skill-search__dropdown[hidden] {
    display: none !important;
}

.oe-skill-search.is-open {
    z-index: 20;
}

.oe-skill-search__dropdown-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.oe-skill-search__dropdown-head span:last-child {
    font-weight: 600;
    color: #3b82f6;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
}

.oe-skill-search__options {
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.15rem;
}

.oe-skill-search__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: #fff;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.oe-skill-search__option:hover,
.oe-skill-search__option:focus {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.oe-skill-search__option-text {
    flex: 1;
    min-width: 0;
}

.oe-skill-search__option-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
    font-size: 0.8rem;
    transition: background 0.12s, color 0.12s;
}

.oe-skill-search__option:hover .oe-skill-search__option-add,
.oe-skill-search__option:focus .oe-skill-search__option-add {
    background: #2563eb;
    color: #fff;
}

.oe-skill-search__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    background: #fff;
}

.oe-skill-search__empty .bi {
    font-size: 1.35rem;
    color: #cbd5e1;
}

/* Certification picker + per-item uploads */
.oe-cert-picker__uploads {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.oe-cert-upload {
    padding: 0.75rem 0.85rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.oe-cert-upload__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.oe-cert-upload__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
}

.oe-cert-upload[hidden] {
    display: none !important;
}
