/* ==========================================================================
   KASTURBA TALENTOS DARK FOUNDATION
   Shared visual tokens and Bootstrap-safe global component foundations.
   ========================================================================== */
/* ==========================================================================
   KASTURBA JET BLACK K100 OVERRIDE
   Global background hierarchy only.
   ========================================================================== */
:root {
    --ki-bg: #000000;
    --ki-surface: #0b0c0d;
    --ki-surface-2: #202122;
    --ki-card: #171819;
    --ki-card-dark: #0d0e0f;
    --ki-sidebar: #050606;
    --ki-border: rgba(255,255,255,0.08);
    --ki-border-soft: rgba(255,255,255,0.08);
    --ki-orange: #ff965c;
    --ki-orange-hover: #ff7f38;
    --ki-text: #f5f5f5;
    --ki-text-soft: #b5b7ba;
    --ki-text-muted: #7f8286;
    --ki-danger: #e96b6b;
    --ki-success: #58b887;
    --ki-warning: #e6a45d;

    /* Compatibility aliases used by existing ERP component rules. */
    --ki-topbar: #080909;
    --ki-surface-3: var(--ki-card-dark);
    --ki-border-strong: var(--ki-border);
    --ki-muted: var(--ki-text-soft);
    --ki-orange-soft: rgba(255, 150, 92, .16);
    --ki-accent: var(--ki-orange);
    --ki-blue: var(--ki-orange);
    --ki-green: var(--ki-success);
    --ki-yellow: var(--ki-warning);
    --ki-red: var(--ki-danger);
    --ki-purple: #a77bff;
    --ki-radius: 18px;
    --ki-control-radius: 11px;
    --ki-shadow: 0 10px 28px rgba(0, 0, 0, .16);
    --ki-font: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ki-font-base: 14px;
    --ki-font-heading: 24px;
}

html, body {
    background: var(--ki-bg);
    color: var(--ki-text);
    font-family: var(--ki-font);
    font-size: var(--ki-font-base);
    line-height: 1.5;
}
body { font-weight: 400; letter-spacing: 0; overflow-x: hidden; }
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--ki-text);
    font-family: var(--ki-font);
    font-weight: 600;
    line-height: 1.25;
}
h1, .h1 { font-size: var(--ki-font-heading); }
h2, .h2 { font-size: 20px; }
h3, .h3 { font-size: 18px; }
h4, .h4 { font-size: 16px; }
h5, .h5, h6, .h6 { font-size: 14px; }
small, .small { font-size: 12px; }
a { color: var(--ki-orange); }
a:hover { color: var(--ki-orange-hover); }
::selection { background: rgba(255, 150, 92, .34); color: var(--ki-text); }

* {
    scrollbar-color: #4a4c4f var(--ki-card-dark);
    scrollbar-width: thin;
}
*::-webkit-scrollbar { height: 9px; width: 9px; }
*::-webkit-scrollbar-track { background: var(--ki-card-dark); }
*::-webkit-scrollbar-thumb {
    background: #4a4c4f;
    border: 2px solid var(--ki-card-dark);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: #5a5d60; }

#wrapper { background: var(--ki-bg); min-height: 100vh; }
#content-wrapper { background: var(--ki-surface); margin-left: 264px; min-height: 100vh; }
#content { background: var(--ki-surface); min-height: calc(100vh - 70px); padding-top: 5.4rem; }

/* ==========================================================================
   KASTURBA TALENTOS SIDEBAR
   Visual-only treatment; existing links, conditions and SB Admin behavior stay intact.
   ========================================================================== */
#accordionSidebar {
    background: var(--ki-sidebar) !important;
    background-image: none !important;
    border-right: 1px solid var(--ki-border-soft);
    box-shadow: none;
    height: 100vh;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    scrollbar-gutter: stable;
    top: 0;
    width: 264px;
    z-index: 1035;
}
#accordionSidebar > * { flex-shrink: 0; }
#accordionSidebar.toggled { width: 6.5rem !important; }
@media (min-width: 768px) {
    #accordionSidebar.toggled ~ #content-wrapper { margin-left: 6.5rem; }
    #accordionSidebar.toggled ~ #content-wrapper .topbar { left: 6.5rem; }
}
.bg-gradient-primary,
.sidebar {
    background: var(--ki-sidebar) !important;
    background-image: none !important;
}
.sidebar .sidebar-brand {
    border-bottom: 1px solid var(--ki-border-soft);
    color: var(--ki-text);
    height: 64px;
    justify-content: flex-start !important;
    padding: 0 20px;
}
.sidebar .sidebar-brand-icon {
    color: var(--ki-orange);
    flex: 0 0 18px;
    font-size: 15px;
    line-height: 1;
}
.sidebar .sidebar-brand-icon i { transform: none; }
.sidebar .sidebar-brand-text {
    color: var(--ki-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    margin-left: 10px !important;
    margin-right: 0 !important;
    text-transform: uppercase;
    white-space: nowrap;
}
.sidebar hr.sidebar-divider {
    border: 0;
    border-top: 1px solid var(--ki-border-soft);
    margin: 8px 14px;
    opacity: 1;
}
.sidebar hr.sidebar-divider.my-0 { margin: 8px 14px !important; }
.sidebar .sidebar-heading {
    color: var(--ki-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.2;
    padding: 10px 20px 6px;
    text-transform: uppercase;
}
.sidebar .nav-item { margin: 0; padding: 0; }
.sidebar .nav-item .nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 11px;
    color: var(--ki-text-muted);
    display: flex;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    margin: 2px 12px;
    min-height: 42px;
    padding: 8px 13px;
    position: relative;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
    width: auto;
}
.sidebar .nav-item .nav-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar .nav-item .nav-link i {
    color: currentColor;
    flex: 0 0 18px;
    font-size: 13px;
    margin: 0 10px 0 0;
    text-align: center;
    transition: color 180ms ease;
    width: 18px;
}
.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item .nav-link:focus-visible {
    background: rgba(255, 150, 92, .07);
    color: var(--ki-orange);
    outline: 0;
    transform: none;
}
.sidebar .nav-item .nav-link:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255, 150, 92, .28);
}
.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link[aria-current="page"] {
    background: rgba(255, 150, 92, .13);
    box-shadow: inset 3px 0 0 var(--ki-orange);
    color: var(--ki-orange);
}
.sidebar .nav-item.active .nav-link i,
.sidebar .nav-item .nav-link[aria-current="page"] i {
    color: var(--ki-orange);
}
.sidebar .nav-item .collapse,
.sidebar .nav-item .collapsing {
    margin: 2px 12px 6px;
}
.sidebar .nav-item .collapse .collapse-inner,
.sidebar .nav-item .collapsing .collapse-inner,
.sidebar .nav-item .collapse .bg-white {
    background: rgba(255, 255, 255, .035) !important;
    border: 1px solid var(--ki-border-soft);
    border-radius: 11px;
    box-shadow: none;
    margin: 0;
    padding: 6px;
}
.sidebar .nav-item .collapse .collapse-header {
    color: var(--ki-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 7px 10px 4px;
}
.sidebar .nav-item .collapse .collapse-item,
.sidebar .nav-item .collapsing .collapse-item {
    border-radius: 8px;
    color: var(--ki-text-muted);
    font-size: 12px;
    font-weight: 500;
    margin: 1px 0;
    padding: 8px 10px;
}
.sidebar .nav-item .collapse .collapse-item:hover,
.sidebar .nav-item .collapse .collapse-item:focus,
.sidebar .nav-item .collapse .collapse-item.active {
    background: rgba(255, 150, 92, .08);
    color: var(--ki-orange);
}
.sidebar #sidebarToggle {
    background-color: var(--ki-surface-2);
    color: var(--ki-text-muted);
    height: 34px;
    margin: 4px 0 14px;
    width: 34px;
}
.sidebar #sidebarToggle:hover { background-color: rgba(255, 150, 92, .12); }
.sidebar.toggled .sidebar-brand {
    justify-content: center !important;
    padding-left: 0;
    padding-right: 0;
}
.sidebar.toggled .nav-item .nav-link {
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 8px;
    padding-right: 8px;
}
.sidebar.toggled .nav-item .nav-link i { margin-right: 0; }

/* ==========================================================================
   KASTURBA TALENTOS TOPBAR
   Shared visual treatment for existing controls and dropdown behavior.
   ========================================================================== */
.topbar {
    align-items: center;
    background: var(--ki-topbar) !important;
    border-bottom: 1px solid var(--ki-border-soft);
    box-shadow: none !important;
    gap: 10px;
    height: 70px;
    left: 264px;
    margin: 0 !important;
    padding: 0 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1030;
}
.topbar .nav-link,
.topbar .text-gray-600 { color: var(--ki-text-soft) !important; }
.topbar #sidebarToggleTop {
    align-items: center;
    background: var(--ki-card-dark);
    border: 1px solid var(--ki-border-soft);
    border-radius: 11px !important;
    color: var(--ki-text);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    margin: 0 4px 0 0 !important;
    min-height: 40px;
    padding: 0;
    width: 40px;
}
.topbar #sidebarToggleTop:hover,
.topbar #sidebarToggleTop:focus-visible {
    background: rgba(255, 150, 92, .10);
    border-color: rgba(255, 150, 92, .28);
    color: var(--ki-orange);
}

/* The existing search input has no form action or search handler. Keep it
   unavailable rather than presenting a non-functional search control. */
.ki-topbar-search { display: none !important; }

.topbar > .ki-topbar-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto !important;
    min-width: 0;
}
.topbar > .navbar-nav {
    flex: 0 0 auto;
    margin-left: 2px !important;
}
.ki-topbar-chip,
.ki-topbar-clock,
.ki-topbar-date {
    align-items: center;
    background: var(--ki-card-dark);
    border: 1px solid var(--ki-border-soft);
    border-radius: 11px;
    color: var(--ki-text-soft);
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    gap: 7px;
    height: 38px;
    line-height: 1;
    padding: 0 11px;
    white-space: nowrap;
}
.ki-topbar-clock {
    color: var(--ki-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: .015em;
}
.ki-topbar-clock i,
.ki-topbar-date i { color: var(--ki-text-muted); font-size: 13px; }
.ki-shift-dot {
    background: var(--ki-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .12);
    flex: 0 0 7px;
    height: 7px;
    width: 7px;
}
.ki-topbar-chip[data-status="UNAVAILABLE"] .ki-shift-dot {
    background: var(--ki-text-muted);
    box-shadow: none;
}
.ki-quick-add-wrap { position: relative; }
.topbar #quickAddButton {
    border-radius: 11px;
    font-size: 12px;
    height: 40px;
    min-height: 40px;
    padding: 0 13px;
}
.ki-quick-add-menu {
    background: var(--ki-surface-2);
    border: 1px solid var(--ki-border-soft);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
    max-height: min(70vh, 520px);
    min-width: 245px;
    overflow-y: auto;
    padding: 7px;
}
.ki-quick-add-heading {
    color: var(--ki-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    padding: 7px 10px 5px;
    text-transform: uppercase;
}
.ki-quick-add-menu .dropdown-item {
    align-items: center;
    border-radius: 9px;
    color: var(--ki-text-soft);
    display: flex;
    font-size: 12px;
    gap: 9px;
    min-height: 38px;
    padding: 8px 10px;
}
.ki-quick-add-menu .dropdown-item i {
    color: var(--ki-text-muted);
    width: 16px;
}
.ki-quick-add-menu .dropdown-item:hover,
.ki-quick-add-menu .dropdown-item:focus {
    background: rgba(255, 150, 92, .09);
    color: var(--ki-orange);
}
.ki-quick-add-menu .dropdown-item:hover i,
.ki-quick-add-menu .dropdown-item:focus i { color: var(--ki-orange); }
.ki-icon-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ki-text-soft);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    position: relative;
    width: 40px;
}
.ki-icon-button i { font-size: 17px; }
.ki-icon-button:hover,
.ki-icon-button:focus-visible {
    background: rgba(255, 150, 92, .09);
    border-color: var(--ki-border-soft);
    color: var(--ki-orange);
}
.ki-notification-dot {
    background: var(--ki-orange);
    border: 2px solid var(--ki-surface);
    border-radius: 50%;
    height: 7px;
    position: absolute;
    right: 7px;
    top: 6px;
    width: 7px;
}
.ki-user-profile { align-items: center; display: flex; }
.topbar .ki-user-profile-toggle {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    display: flex;
    gap: 9px;
    height: 46px;
    padding: 5px 8px !important;
}
.topbar .ki-user-profile-toggle:hover,
.topbar .ki-user-profile-toggle:focus-visible,
.topbar .ki-user-profile.show .ki-user-profile-toggle {
    background: rgba(255, 150, 92, .07);
    border-color: var(--ki-border-soft);
    color: var(--ki-text);
    outline: 0;
}
.topbar .ki-user-profile-toggle::after { display: none; }
.ki-user-avatar {
    background: transparent;
    border: 1px solid var(--ki-border);
    border-radius: 50%;
    flex: 0 0 32px;
    height: 32px;
    object-fit: cover;
    padding: 0;
    width: 32px;
}
.ki-user-identity {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    text-align: left;
}
.ki-user-identity strong {
    color: var(--ki-text);
    font-size: 13px;
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-user-identity small {
    color: var(--ki-text-muted);
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-user-caret {
    color: var(--ki-text-muted);
    font-size: 9px;
    margin-left: 1px;
}
.ki-user-profile .dropdown-menu {
    background: var(--ki-surface-2);
    border: 1px solid var(--ki-border-soft);
    border-radius: 15px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24) !important;
    min-width: 220px;
    padding: 7px;
}
.ki-user-profile .dropdown-item {
    align-items: center;
    border-radius: 9px;
    color: var(--ki-text-soft);
    display: flex;
    font-size: 12px;
    min-height: 40px;
    padding: 8px 10px;
}
.ki-user-profile .dropdown-item i {
    color: var(--ki-text-muted) !important;
    font-size: 14px;
}
.ki-user-profile .dropdown-item:hover,
.ki-user-profile .dropdown-item:focus {
    background: rgba(255, 150, 92, .09);
    color: var(--ki-orange);
}
.ki-user-profile .dropdown-item:hover i,
.ki-user-profile .dropdown-item:focus i { color: var(--ki-orange) !important; }
.ki-user-profile .dropdown-item[data-bs-target="#logoutModal"] { color: var(--ki-danger); }
.ki-user-profile .dropdown-item[data-bs-target="#logoutModal"] i { color: var(--ki-danger) !important; }

@media (max-width: 1199.98px) {
    .ki-topbar-date { display: none; }
}
@media (max-width: 991.98px) {
    .topbar { padding-left: 14px; padding-right: 14px; }
    .topbar > .ki-topbar-actions { gap: 6px; }
    .ki-user-identity small { display: none; }
}
@media (max-width: 767.98px) {
    .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
    .topbar #quickAddButton {
        padding-left: 10px;
        padding-right: 10px;
    }
    .ki-quick-add-menu {
        left: .75rem !important;
        max-height: calc(100vh - 86px);
        position: fixed !important;
        right: .75rem !important;
        top: 74px !important;
        width: auto;
    }
}
@media (max-width: 575.98px) {
    .ki-topbar-chip,
    .ki-topbar-date { display: none; }
    .topbar #quickAddButton {
        flex: 0 0 40px;
        padding: 0;
        width: 40px;
    }
    .topbar #quickAddButton span { display: none; }
    .topbar #quickAddButton i { margin-right: 0 !important; }
    .ki-user-identity,
    .ki-user-caret { display: none; }
    .topbar .ki-user-profile-toggle {
        gap: 0;
        padding: 5px !important;
    }
}

/* ================================================================
   KASTURBA TALENTOS PROFILE AND ROLE PREVIEW
   ================================================================ */

.ki-role-preview-banner {
    align-items: center;
    background: rgba(230, 164, 93, .14);
    border: 1px solid rgba(230, 164, 93, .38);
    border-left: 0;
    border-right: 0;
    color: var(--ki-text);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: -1.5rem 0 1.25rem;
    min-height: 48px;
    padding: 8px clamp(16px, 2.4vw, 32px);
    position: sticky;
    top: 0;
    z-index: 1025;
}

.ki-role-preview-banner > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.ki-role-preview-banner i,
.ki-role-preview-banner strong {
    color: var(--ki-warning);
}

.ki-role-preview-banner span {
    color: var(--ki-text-soft);
    font-size: 12px;
}

.ki-role-preview-banner form {
    flex: 0 0 auto;
    margin: 0;
}

.ki-preview-return {
    background: var(--ki-warning);
    border: 1px solid var(--ki-warning);
    color: #111314;
    font-weight: 600;
    min-height: 34px;
}

.ki-preview-return:hover,
.ki-preview-return:focus-visible {
    background: #f0b576;
    border-color: #f0b576;
    color: #000;
}

.ki-role-preview-control {
    padding: 5px 0;
}

.ki-role-preview-label {
    color: var(--ki-text);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 16px;
    text-transform: uppercase;
}

.ki-role-preview-control p {
    color: var(--ki-text-muted);
    font-size: 11px;
    line-height: 1.45;
    margin: 2px 16px 6px;
    max-width: 240px;
}

.ki-role-preview-control form {
    margin: 0;
}

.ki-profile-page {
    margin-inline: auto;
    max-width: 1180px;
    padding: 4px clamp(16px, 2.4vw, 32px) 32px;
}

.ki-profile-alerts {
    margin-bottom: 16px;
}

.ki-profile-header {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ki-profile-eyebrow {
    color: var(--ki-orange);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ki-profile-header h1 {
    color: var(--ki-text);
    font-size: 24px;
    margin: 0 0 5px;
}

.ki-profile-header p,
.ki-profile-photo-card p,
.ki-profile-card-heading p {
    color: var(--ki-text-muted);
    font-size: 12px;
    margin: 0;
}

.ki-profile-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
}

.ki-profile-photo-card,
.ki-profile-details-card {
    background: var(--ki-card, #171819);
    border: 1px solid var(--ki-border-soft, rgba(255, 255, 255, .08));
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .18);
    padding: clamp(20px, 3vw, 28px);
}

.ki-profile-photo-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ki-profile-photo-preview {
    background: var(--ki-surface-2);
    border: 2px solid rgba(255, 150, 92, .35);
    border-radius: 50%;
    height: 120px;
    margin-bottom: 16px;
    object-fit: cover;
    width: 120px;
}

.ki-profile-photo-card h2,
.ki-profile-details-card h2 {
    color: var(--ki-text);
    font-size: 17px;
    margin: 0 0 5px;
}

.ki-profile-upload {
    display: grid;
    gap: 10px;
    margin: 22px 0 10px;
    width: 100%;
}

.ki-profile-upload .form-label {
    color: var(--ki-text-soft);
    font-size: 12px;
    margin: 0;
    text-align: left;
}

.ki-profile-photo-card > form:last-child {
    width: 100%;
}

.ki-profile-photo-card .btn {
    width: 100%;
}

.ki-profile-card-heading {
    align-items: center;
    display: flex;
    gap: 13px;
    margin-bottom: 18px;
}

.ki-profile-icon {
    align-items: center;
    background: rgba(255, 150, 92, .12);
    border: 1px solid rgba(255, 150, 92, .24);
    border-radius: 12px;
    color: var(--ki-orange);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ki-profile-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.ki-profile-details > div {
    align-items: center;
    border-top: 1px solid var(--ki-border-soft);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(110px, .7fr) minmax(150px, 1.3fr);
    min-height: 58px;
    padding: 11px 2px;
}

.ki-profile-details dt {
    color: var(--ki-text-muted);
    font-size: 12px;
    font-weight: 500;
}

.ki-profile-details dd {
    color: var(--ki-text);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.ki-profile-role,
.ki-profile-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    line-height: 24px;
    padding: 0 10px;
}

.ki-profile-role {
    background: rgba(255, 150, 92, .12);
    color: var(--ki-orange);
}

.ki-profile-status {
    background: rgba(88, 184, 135, .13);
    color: var(--ki-success);
}

@media (max-width: 767.98px) {
    .ki-role-preview-banner {
        align-items: stretch;
        flex-direction: column;
        margin-top: -1.5rem;
        padding-block: 10px;
    }

    .ki-role-preview-banner form,
    .ki-preview-return {
        width: 100%;
    }

    .ki-profile-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .ki-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .ki-profile-details > div {
        align-items: start;
        gap: 4px;
        grid-template-columns: 1fr;
    }
}
@media (max-width: 419.98px) {
    .ki-topbar-clock { font-size: 11px; padding-left: 8px; padding-right: 8px; }
    .topbar > .ki-topbar-actions { gap: 4px; }
}

.sticky-footer { background: var(--ki-bg) !important; border-top: 1px solid var(--ki-border); color: var(--ki-muted); margin-left: 0; min-height: 3.2rem; padding: .9rem 1.5rem; }
.ki-version { float: right; margin-left: 1rem; }
.ki-breadcrumb { align-items: center; color: var(--ki-muted); display: flex; font-size: .78rem; gap: .55rem; margin-bottom: .45rem; }
.ki-breadcrumb a { color: var(--ki-blue); text-decoration: none; }
.ki-breadcrumb a:hover { color: var(--ki-orange); }
.ki-trend-chart { align-items: end; display: flex; gap: .75rem; height: 220px; justify-content: space-between; }
.ki-trend-column { align-items: center; display: flex; flex: 1 1 0; flex-direction: column; height: 100%; justify-content: end; min-width: 0; }
.ki-trend-value { color: var(--ki-muted); font-size: .68rem; min-height: 1.1rem; }
.ki-trend-bar { background: var(--ki-orange); border-radius: .35rem .35rem 0 0; height: var(--ki-trend-height); max-height: 180px; min-height: 2px; opacity: .9; transition: height .25s ease; width: min(42px, 70%); }
.ki-trend-column small { color: var(--ki-muted); font-size: .68rem; margin-top: .45rem; }

.container-fluid { padding-bottom: 2rem; }
.card,
.modal-content,
.dropdown-menu,
.list-group-item {
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    box-shadow: var(--ki-shadow);
    color: var(--ki-text);
}
.card { border-radius: var(--ki-radius); overflow: hidden; }
.card .card,
.modal-content .card { background: var(--ki-surface-2); }
.dropdown-menu { border-radius: 14px; }
.list-group-item + .list-group-item { border-top-color: var(--ki-border-soft); }
.operator-machine-link { color: inherit; cursor: pointer; display: block; }
.operator-machine-card { transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, color 180ms ease; }
.operator-machine-card:hover { background-color: rgba(255,150,92,.07); border-color: rgba(255,150,92,.75) !important; box-shadow: 0 0 0 1px rgba(255,150,92,.16), 0 10px 24px rgba(0,0,0,.22); transform: translateY(-2px); }
.operator-machine-card:focus-within { outline: none; box-shadow: 0 0 0 2px rgba(255,150,92,.35), 0 10px 24px rgba(0,0,0,.22); }
.operator-machine-link:focus-visible { outline: none; }
.operator-machine-link:focus-visible .operator-machine-card { box-shadow: 0 0 0 2px rgba(255,150,92,.35), 0 10px 24px rgba(0,0,0,.22); }
.operator-machine-card:hover h4.text-gray-800 { color: var(--ki-orange) !important; }
.card-header, .card-footer { background: var(--ki-surface-2); border-color: var(--ki-border-soft); }
.card-header h6, .card-header strong { color: var(--ki-text); }
.text-gray-800, .text-dark { color: var(--ki-text) !important; }
.text-muted, .text-gray-400 { color: var(--ki-text-soft) !important; }
.text-primary, .link-primary { color: var(--ki-orange) !important; }
.border-primary { border-color: var(--ki-orange) !important; }

/* Bootstrap utility classes must never reintroduce white surfaces. */
.bg-white, .bg-light { background-color: var(--ki-card) !important; color: var(--ki-text) !important; }
.table-light, .table-light > th, .table-light > td,
.table-light > tr > th, .table-light > tr > td {
    --bs-table-bg: var(--ki-surface-2);
    --bs-table-color: var(--ki-muted);
    background-color: var(--ki-surface-2) !important;
    border-color: var(--ki-border);
    color: var(--ki-muted) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: rgba(255,255,255,.025); color: var(--ki-text); }
.table tbody td { border-color: var(--ki-border-soft); color: var(--ki-text); }
.dropdown-menu, .dropdown-item { color: var(--ki-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--ki-surface-2); color: var(--ki-text); }
.pagination .page-link { background: var(--ki-surface); border-color: var(--ki-border); color: var(--ki-muted); }
.pagination .page-link:hover { background: var(--ki-surface-2); color: var(--ki-text); }
.pagination .page-item.active .page-link { background: var(--ki-orange); border-color: var(--ki-orange); color: #17191c; }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--ki-orange);
    color: #1b1511;
}

.table {
    --bs-table-active-bg: rgba(255, 150, 92, .10);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--ki-border-soft);
    --bs-table-color: var(--ki-text);
    color: var(--ki-text);
    font-size: 13px;
    margin-bottom: 0;
}
.table thead th {
    background: var(--ki-surface-2);
    border-bottom: 1px solid var(--ki-border-soft);
    color: var(--ki-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .055em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}
.table tbody tr { transition: background-color .2s ease, box-shadow .2s ease; }
.table-hover > tbody > tr:hover {
    --bs-table-accent-bg: rgba(255,150,92,.07);
    --bs-table-hover-bg: rgba(255,150,92,.07);
    --bs-table-hover-color: var(--ki-text);
    box-shadow: inset 2px 0 0 var(--ki-orange), inset 0 0 18px rgba(255,150,92,.04);
    color: var(--ki-text);
}
.table-hover > tbody > tr:hover > * {
    background-color: rgba(255,150,92,.07) !important;
    color: var(--ki-text);
}
.table-hover > tbody > tr:hover > td:nth-child(-n+5) {
    color: var(--ki-text);
}
.table-hover > tbody > tr:hover > td.text-end,
.table-hover > tbody > tr:hover > td:last-child,
.table-hover > tbody > tr:hover > td:last-child a,
.table-hover > tbody > tr:hover > td:last-child button {
    color: inherit;
}
.table-responsive {
    background: var(--ki-card-dark);
    border: 1px solid var(--ki-border-soft);
    border-radius: var(--ki-radius);
}

.form-control,
.form-select,
.input-group-text,
textarea {
    background-color: var(--ki-card-dark);
    border: 1px solid var(--ki-border);
    border-radius: var(--ki-control-radius);
    color: var(--ki-text);
    font-family: var(--ki-font);
    font-size: 13px;
    min-height: 40px;
}
textarea.form-control, textarea { height: auto; min-height: 88px; }
.form-control::placeholder, textarea::placeholder { color: var(--ki-text-muted); opacity: 1; }
.form-control:focus, .form-select:focus, textarea:focus {
    background-color: var(--ki-card-dark);
    border-color: var(--ki-orange);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .16);
    color: var(--ki-text);
}
.form-label { color: var(--ki-text-soft); font-size: 13px; font-weight: 500; }
.form-text { color: var(--ki-text-muted); font-size: 12px; }
.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background-color: #181a1c;
    border-color: var(--ki-border-soft);
    color: var(--ki-text-muted);
    cursor: not-allowed;
    opacity: .72;
}
.form-select option { background: var(--ki-surface-2); color: var(--ki-text); }
.form-check-input {
    background-color: var(--ki-card-dark);
    border-color: var(--ki-border);
}
.form-check-input:checked {
    background-color: var(--ki-orange);
    border-color: var(--ki-orange);
}
.form-check-input:focus {
    border-color: var(--ki-orange);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .16);
}

.btn {
    align-items: center;
    border-radius: var(--ki-control-radius);
    display: inline-flex;
    font-family: var(--ki-font);
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    min-height: 38px;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn-sm { min-height: 32px; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
.btn.focus,
.btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .24);
    outline: 0;
}
.btn-primary { background: var(--ki-orange); border-color: var(--ki-orange); color: #1b1511; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--ki-orange-hover);
    border-color: var(--ki-orange-hover);
    color: #1b1511;
}
.btn-check:focus + .btn-primary,
.btn-check:checked + .btn-primary {
    background: var(--ki-orange-hover);
    border-color: var(--ki-orange-hover);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .20);
    color: #1b1511;
}
.btn-secondary, .btn-light {
    background: var(--ki-surface-2);
    border-color: var(--ki-border);
    color: var(--ki-text);
}
.btn-secondary:hover, .btn-light:hover {
    background: #303235;
    border-color: #4a4c4f;
    color: var(--ki-text);
}
.btn-dark {
    background: var(--ki-card-dark);
    border-color: var(--ki-border);
    color: var(--ki-text);
}
.btn-dark:hover { background: #191b1d; border-color: #4a4c4f; color: var(--ki-text); }
.btn-outline-primary { border-color: var(--ki-orange); color: var(--ki-orange); }
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--ki-orange);
    border-color: var(--ki-orange);
    color: #1b1511;
}
.btn-outline-secondary { border-color: var(--ki-border-strong); color: var(--ki-muted); }
.btn-success { background: var(--ki-success); border-color: var(--ki-success); color: #101a15; }
.btn-success:hover { background: #48a979; border-color: #48a979; color: #101a15; }
.btn-danger { background: var(--ki-danger); border-color: var(--ki-danger); color: #fff; }
.btn-danger:hover { background: #d85c5c; border-color: #d85c5c; color: #fff; }
.btn-warning { background: var(--ki-warning); border-color: var(--ki-warning); color: #21170d; }
.btn-close { filter: invert(1) grayscale(1); }

.badge { border-radius: .4rem; font-weight: 700; letter-spacing: .02em; }
.badge { font-size: .7rem; }
.bg-primary { background-color: var(--ki-orange) !important; color: #17191c !important; }
.bg-success { background-color: var(--ki-green) !important; color: #10251d !important; }
.bg-warning { background-color: var(--ki-yellow) !important; color: #2b2413 !important; }
.bg-danger { background-color: var(--ki-red) !important; }
.bg-info { background-color: var(--ki-blue) !important; color: #111b2c !important; }
.alert-primary {
    background: rgba(255, 150, 92, .12);
    border-color: rgba(255, 150, 92, .26);
    color: var(--ki-text);
}

@media (max-width: 767.98px) {
    html, body { font-size: 14px; }
    h1, .h1 { font-size: 22px; }
    h2, .h2 { font-size: 19px; }
    h3, .h3 { font-size: 17px; }
    .form-label, .form-control, .form-select, textarea, .btn { font-size: 13px; }
    .badge { font-size: 11px; }
}

.modal-backdrop.show { opacity: .72; }
.modal {
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}
.modal-dialog {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    max-width: min(var(--bs-modal-width, 500px), calc(100vw - 2rem));
    min-height: 0;
    width: 100%;
}
.modal.show .modal-dialog {
    transform: none !important;
    transition: none !important;
}
.modal-dialog.modal-lg { --bs-modal-width: 800px; }
.modal-dialog.modal-xl { --bs-modal-width: 1140px; }
.modal-dialog.modal-dialog-centered { min-height: calc(100vh - 2rem); min-height: calc(100dvh - 2rem); }
.modal-content {
    border-radius: var(--ki-radius);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    min-height: 0;
    overflow: hidden;
}
.modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}
.modal-header, .modal-footer {
    background: var(--ki-surface);
    border-color: var(--ki-border);
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}
.alert { border: 1px solid var(--ki-border); border-radius: .55rem; }
.alert-light { background: var(--ki-surface-2); color: var(--ki-text); }
.progress { background: var(--ki-surface-3); border-radius: 99px; }
.progress-bar { background: var(--ki-orange); }

/* Keep the shared smart dropdown consistent with the dark portal surface. */
.smart-select-trigger { background: var(--ki-surface-3); border-color: var(--ki-border-strong); color: var(--ki-muted); }
.smart-select-trigger.has-value { color: var(--ki-text); }
.smart-select-trigger:focus { border-color: var(--ki-orange); box-shadow: 0 0 0 .2rem var(--ki-orange-soft); }
.smart-select-menu { background: var(--ki-surface-3); border-color: var(--ki-border-strong); box-shadow: var(--ki-shadow); }
.smart-select-search { background: var(--ki-surface-3); border-color: var(--ki-border-strong); color: var(--ki-text); }
.smart-select-option { color: var(--ki-text); }
.smart-select-option:hover, .smart-select-option.active { background: rgba(255,150,92,.10); color: var(--ki-orange); }
.smart-select-option[aria-selected="true"] { background: rgba(255,150,92,.16); color: var(--ki-orange); }

@media (max-width: 767.98px) {
    #accordionSidebar { height: 100vh; position: fixed; width: 6.5rem; }
    #content-wrapper { margin-left: 6.5rem; }
    .topbar { left: 6.5rem; }
    .sidebar.toggled { width: 6.5rem !important; }
    .sidebar .sidebar-brand {
        justify-content: center !important;
        padding-left: 0;
        padding-right: 0;
    }
    .sidebar .nav-item .nav-link {
        justify-content: center;
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .sidebar .nav-item .nav-link i { margin-right: 0; }
    .topbar { margin-bottom: 1.25rem !important; }
    .card-body { padding: 1rem; }
}

@media (max-width: 575.98px) {
    #accordionSidebar { width: 0; }
    #accordionSidebar.toggled { width: 6.5rem; }
    #content-wrapper { margin-left: 0; }
    .topbar { left: 0; }
    .topbar .ki-user-profile-toggle { gap: .35rem; }
    .ki-user-identity strong, .ki-user-identity small { max-width: 5.5rem; }
    #content { padding-top: 5.25rem; }
    .ki-version { float: none; margin-left: .5rem; }
    .modal { padding: .5rem; }
    .modal-dialog,
    .modal-content {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        max-width: calc(100vw - 1rem);
    }
    .modal-dialog.modal-dialog-centered {
        min-height: calc(100vh - 1rem);
        min-height: calc(100dvh - 1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   KASTURBA TALENTOS DASHBOARD
   Dashboard presentation only; data, routes and interaction hooks are unchanged.
   ========================================================================== */
.ki-dashboard {
    max-width: 1920px;
    padding-left: 22px;
    padding-right: 22px;
}
.ki-dashboard-header {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
}
.ki-dashboard-heading { min-width: 0; }
.ki-dashboard-heading .ki-breadcrumb {
    color: var(--ki-text-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    margin-bottom: 5px;
}
.ki-dashboard-heading h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 4px;
}
.ki-dashboard-heading p {
    color: var(--ki-text-soft);
    font-size: 13px;
    margin: 0;
}
.ki-dashboard-refresh {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}
.ki-dashboard-refresh small {
    color: var(--ki-text-muted);
    font-size: 12px;
    white-space: nowrap;
}
.ki-dashboard-refresh .btn {
    background: var(--ki-card-dark);
    border-color: rgba(255, 150, 92, .42);
    gap: 7px;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
}
.ki-dashboard-refresh .btn:hover,
.ki-dashboard-refresh .btn:focus-visible {
    background: rgba(255, 150, 92, .10);
    border-color: var(--ki-orange);
}
.ki-dashboard-kpis,
.ki-dashboard-section { margin-bottom: 16px; }
.ki-dashboard-section-last { margin-bottom: 0; }
.ki-kpi-card,
.ki-dashboard-panel {
    border-color: var(--ki-border-soft);
    box-shadow: none;
}
.ki-kpi-card {
    min-height: 136px;
    overflow: hidden;
    position: relative;
}
.ki-kpi-card::after {
    background: radial-gradient(circle, rgba(255, 150, 92, .09), transparent 68%);
    content: "";
    height: 110px;
    pointer-events: none;
    position: absolute;
    right: -44px;
    top: -50px;
    width: 110px;
}
.ki-kpi-card .card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 17px 18px 16px;
    position: relative;
    z-index: 1;
}
.ki-kpi-topline {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.ki-kpi-label {
    color: var(--ki-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .055em;
    line-height: 1.35;
    padding-top: 2px;
    text-transform: uppercase;
}
.ki-kpi-icon {
    align-items: center;
    background: rgba(255, 150, 92, .11);
    border: 1px solid rgba(255, 150, 92, .15);
    border-radius: 13px;
    color: var(--ki-orange);
    display: inline-flex;
    flex: 0 0 44px;
    font-size: 16px;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.ki-kpi-value {
    color: var(--ki-text);
    font-size: 27px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: auto 0 4px;
    overflow-wrap: anywhere;
}
.ki-kpi-value small {
    color: var(--ki-text-soft);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}
.ki-kpi-support {
    color: var(--ki-text-muted);
    font-size: 12px;
    line-height: 1.35;
    min-height: 16px;
}
.ki-dashboard-panel { min-height: 0; }
.ki-dashboard-panel > .card-header {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid var(--ki-border-soft);
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 16px 19px;
}
.ki-dashboard-panel > .card-header h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0;
}
.ki-dashboard-panel > .card-body { padding: 18px 19px; }
.ki-machine-grid > [class*="col-"] { display: flex; }
.ki-machine-grid .operator-machine-link { display: flex; width: 100%; }
.ki-machine-grid .operator-machine-card {
    background: var(--ki-surface-2);
    border-color: var(--ki-border-soft);
    border-radius: 15px;
    box-shadow: none;
    width: 100%;
}
.ki-machine-grid .operator-machine-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 148px;
    padding: 15px 16px;
}
.ki-machine-topline {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ki-machine-topline h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.ki-dashboard .badge {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}
.ki-machine-product {
    color: var(--ki-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.ki-machine-meta {
    color: var(--ki-text-muted);
    font-size: 11px;
    line-height: 1.5;
}
.ki-machine-output {
    align-items: center;
    border-top: 1px solid var(--ki-border-soft);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}
.ki-machine-output span {
    color: var(--ki-text-muted);
    font-size: 11px;
}
.ki-machine-output strong {
    color: var(--ki-text);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.ki-status-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.ki-status-row {
    align-items: center;
    border-bottom: 1px solid var(--ki-border-soft);
    color: var(--ki-text-soft);
    display: flex;
    font-size: 13px;
    gap: 12px;
    justify-content: space-between;
    min-height: 49px;
    padding: 8px 2px;
}
.ki-status-row:first-child { padding-top: 0; }
.ki-status-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ki-status-row .badge {
    min-width: 30px;
    text-align: center;
}
.ki-trend-panel > .card-body { padding: 18px; }
.ki-trend-panel .ki-trend-chart {
    background-color: var(--ki-card-dark);
    background-image: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent calc(25% - 1px),
        rgba(255, 255, 255, .045) 25%
    );
    border: 1px solid var(--ki-border-soft);
    border-radius: 14px;
    gap: clamp(8px, 2vw, 20px);
    height: 246px;
    padding: 18px 16px 14px;
}
.ki-trend-panel .ki-trend-bar {
    background: linear-gradient(180deg, var(--ki-orange), var(--ki-orange-hover));
    border-radius: 7px 7px 2px 2px;
    box-shadow: 0 0 18px rgba(255, 150, 92, .11);
    max-height: 185px;
    opacity: 1;
    width: min(38px, 64%);
}
.ki-trend-panel .ki-trend-value {
    color: var(--ki-text-soft);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.ki-trend-panel .ki-trend-column small {
    color: var(--ki-text-muted);
    font-size: 10px;
}
.ki-panel-list { display: flex; flex-direction: column; }
.ki-alert-row,
.ki-development-row,
.ki-activity-row {
    align-items: center;
    border-bottom: 1px solid var(--ki-border-soft);
    display: flex;
    gap: 11px;
    min-height: 58px;
    padding: 10px 1px;
}
.ki-alert-row:first-child,
.ki-development-row:first-child,
.ki-activity-row:first-child { padding-top: 0; }
.ki-alert-row:last-of-type,
.ki-development-row:last-of-type,
.ki-activity-row:last-of-type { border-bottom: 0; }
.ki-list-dot {
    background: var(--ki-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 150, 92, .09);
    flex: 0 0 7px;
    height: 7px;
    width: 7px;
}
.ki-list-dot-danger {
    background: var(--ki-danger);
    box-shadow: 0 0 0 4px rgba(233, 107, 107, .09);
}
.ki-list-content {
    min-width: 0;
    overflow: hidden;
}
.ki-list-content strong {
    color: var(--ki-text);
    display: block;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-list-content small {
    color: var(--ki-text-muted);
    display: block;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-alert-row .ki-list-content,
.ki-development-row .ki-list-content { flex: 1 1 auto; }
.ki-development-row { justify-content: space-between; }
.ki-activity-content {
    flex: 1 1 auto;
    min-width: 0;
}
.ki-activity-content > div {
    color: var(--ki-text);
    font-size: 12px;
    line-height: 1.4;
}
.ki-activity-content small {
    color: var(--ki-text-muted);
    display: block;
    font-size: 10px;
    margin-top: 2px;
}
.ki-activity-row time {
    color: var(--ki-text-muted);
    flex: 0 0 auto;
    font-size: 10px;
    margin-left: auto;
    max-width: 38%;
    text-align: right;
}
.ki-panel-action {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}
.ki-panel-action .btn {
    background: var(--ki-card-dark);
    border-color: var(--ki-border-soft);
    color: var(--ki-text-soft);
    font-size: 11px;
    min-height: 34px;
    padding: 0 12px;
}
.ki-panel-action .btn:hover,
.ki-panel-action .btn:focus-visible {
    background: rgba(255, 150, 92, .08);
    border-color: rgba(255, 150, 92, .40);
    color: var(--ki-orange);
}
.ki-dashboard-empty {
    align-items: center;
    color: var(--ki-text-muted);
    display: flex;
    flex: 1 1 auto;
    font-size: 12px;
    justify-content: center;
    min-height: 92px;
    padding: 18px 8px;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .ki-dashboard { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 767.98px) {
    .ki-dashboard {
        padding-left: 16px;
        padding-right: 16px;
    }
    .ki-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }
    .ki-dashboard-refresh {
        justify-content: space-between;
        width: 100%;
    }
    .ki-dashboard-kpis,
    .ki-dashboard-section { margin-bottom: 14px; }
    .ki-dashboard-panel > .card-header {
        min-height: 54px;
        padding: 14px 16px;
    }
    .ki-dashboard-panel > .card-body { padding: 16px; }
    .ki-activity-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .ki-activity-row time {
        margin-left: 18px;
        max-width: none;
        text-align: left;
    }
}
@media (max-width: 575.98px) {
    .ki-dashboard { padding-left: 12px; padding-right: 12px; }
    .ki-dashboard-heading h1 { font-size: 22px; }
    .ki-dashboard-refresh {
        align-items: flex-start;
        flex-direction: column;
    }
    .ki-dashboard-refresh .btn { width: 100%; }
    .ki-kpi-card { min-height: 128px; }
    .ki-kpi-card .card-body { padding: 15px 16px; }
    .ki-trend-panel .ki-trend-chart {
        gap: 5px;
        height: 220px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .ki-trend-panel .ki-trend-bar { width: min(28px, 70%); }
    .ki-alert-row,
    .ki-development-row { align-items: flex-start; }
    .ki-list-content small {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

/* ==========================================================================
   KASTURBA TALENTOS LOGIN
   Login presentation only; authentication fields and submission remain unchanged.
   ========================================================================== */
.ki-login-page {
    background: #000;
    color: var(--ki-text);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}
.ki-login-page *,
.ki-login-page *::before,
.ki-login-page *::after { box-sizing: border-box; }
.ki-login-shell {
    background:
        radial-gradient(circle at 74% 46%, rgba(255, 150, 92, .075), transparent 28%),
        #000;
    display: grid;
    grid-template-columns: minmax(360px, 1.02fr) minmax(480px, .98fr);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
}
.ki-login-brand-panel {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 150, 92, .035), transparent 40%),
        #080909;
    border-right: 1px solid var(--ki-border-soft);
    display: flex;
    overflow: hidden;
    padding: clamp(42px, 7vw, 108px);
    position: relative;
}
.ki-login-brand-panel::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, .72), transparent 74%);
    pointer-events: none;
    position: absolute;
}
.ki-login-brand-panel::after {
    background: rgba(255, 150, 92, .09);
    border-radius: 50%;
    box-shadow: 0 0 110px rgba(255, 150, 92, .10);
    content: "";
    height: 290px;
    left: -180px;
    position: absolute;
    top: -130px;
    width: 290px;
}
.ki-login-brand-content {
    max-width: 580px;
    position: relative;
    z-index: 2;
}
.ki-login-brand-mark {
    align-items: center;
    background: rgba(255, 150, 92, .11);
    border: 1px solid rgba(255, 150, 92, .22);
    border-radius: 16px;
    color: var(--ki-orange);
    display: flex;
    font-size: 22px;
    height: 54px;
    justify-content: center;
    margin-bottom: 30px;
    width: 54px;
}
.ki-login-brand-kicker {
    color: var(--ki-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.ki-login-brand-content h1 {
    color: var(--ki-text);
    font-size: clamp(34px, 3.2vw, 52px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.12;
    margin: 0;
    max-width: 530px;
}
.ki-login-brand-content h1 span { color: var(--ki-orange); }
.ki-login-brand-rule {
    background: linear-gradient(90deg, var(--ki-orange), rgba(255, 150, 92, 0));
    border-radius: 999px;
    height: 2px;
    margin-top: 28px;
    width: 116px;
}
.ki-login-industrial-art {
    bottom: clamp(32px, 5vw, 72px);
    color: rgba(255, 150, 92, .13);
    height: 190px;
    position: absolute;
    right: clamp(28px, 5vw, 74px);
    width: 250px;
    z-index: 1;
}
.ki-login-industrial-art > i {
    bottom: 12px;
    font-size: 82px;
    position: absolute;
    right: 5px;
}
.ki-login-art-line {
    background: rgba(255, 150, 92, .13);
    height: 1px;
    position: absolute;
    transform-origin: left center;
}
.ki-login-art-line-one { left: 12px; top: 38px; transform: rotate(18deg); width: 170px; }
.ki-login-art-line-two { left: 42px; top: 126px; transform: rotate(-22deg); width: 145px; }
.ki-login-art-line-three { left: 108px; top: 20px; transform: rotate(63deg); width: 108px; }
.ki-login-art-node {
    background: #0d0e0f;
    border: 1px solid rgba(255, 150, 92, .28);
    border-radius: 50%;
    height: 10px;
    position: absolute;
    width: 10px;
}
.ki-login-art-node-one { left: 8px; top: 33px; }
.ki-login-art-node-two { left: 37px; top: 121px; }
.ki-login-art-node-three { left: 104px; top: 15px; }
.ki-login-form-panel {
    align-items: center;
    background: #0b0c0d;
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow-x: clip;
    padding: 38px clamp(28px, 6vw, 82px);
    position: relative;
}
.ki-login-form-panel::before {
    background: radial-gradient(circle, rgba(255, 150, 92, .09), transparent 68%);
    content: "";
    height: min(70vw, 660px);
    pointer-events: none;
    position: absolute;
    right: -38%;
    top: -28%;
    width: min(70vw, 660px);
}
.ki-login-card {
    background: #171819;
    border: 1px solid var(--ki-border-soft);
    border-radius: 23px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .30);
    max-width: 450px;
    padding: clamp(34px, 4vw, 42px);
    position: relative;
    width: 100%;
    z-index: 1;
}
.ki-login-mobile-brand { display: none; }
.ki-login-card-heading { margin-bottom: 28px; }
.ki-login-eyebrow {
    color: var(--ki-orange);
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .13em;
    margin-bottom: 9px;
    text-transform: uppercase;
}
.ki-login-card-heading h2 {
    color: var(--ki-text);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0;
}
.ki-login-alert {
    align-items: flex-start;
    background: rgba(233, 107, 107, .08);
    border: 1px solid rgba(233, 107, 107, .25);
    border-radius: 11px;
    color: #f2a0a0 !important;
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.5;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
    padding: 11px 12px;
}
.ki-login-alert i { flex: 0 0 auto; margin-top: 3px; }
.ki-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ki-login-field {
    display: block;
    margin: 0;
}
.ki-login-label {
    color: var(--ki-text-soft);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}
.ki-login-input-wrap {
    align-items: center;
    background: #0d0e0f;
    border: 1px solid var(--ki-border-soft);
    border-radius: 12px;
    display: flex;
    min-height: 46px;
    overflow: hidden;
    position: relative;
    transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}
.ki-login-input-wrap > i {
    color: var(--ki-text-muted);
    flex: 0 0 44px;
    font-size: 13px;
    pointer-events: none;
    text-align: center;
    transition: color 170ms ease;
}
.ki-login-input-wrap input {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ki-text);
    font-family: var(--ki-font);
    font-size: 13px;
    height: 44px;
    min-width: 0;
    outline: 0;
    padding: 0 14px 0 0;
    width: 100%;
}
.ki-login-input-wrap:focus-within {
    background: #101112;
    border-color: var(--ki-orange);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .14);
}
.ki-login-input-wrap:focus-within > i { color: var(--ki-orange); }
.ki-login-input-wrap input:-webkit-autofill,
.ki-login-input-wrap input:-webkit-autofill:hover,
.ki-login-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0d0e0f inset;
    -webkit-text-fill-color: var(--ki-text);
    caret-color: var(--ki-text);
    transition: background-color 9999s ease-out;
}
.ki-login-submit {
    align-items: center;
    background: var(--ki-orange);
    border: 1px solid var(--ki-orange);
    border-radius: 12px;
    color: #1b1511;
    cursor: pointer;
    display: flex;
    font-family: var(--ki-font);
    font-size: 13px;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    margin-top: 4px;
    padding: 0 20px;
    transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
    width: 100%;
}
.ki-login-submit:hover {
    background: var(--ki-orange-hover);
    border-color: var(--ki-orange-hover);
}
.ki-login-submit:active { transform: translateY(1px); }
.ki-login-submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 150, 92, .22);
    outline: 0;
}

@media (max-width: 1050px) {
    .ki-login-shell { grid-template-columns: minmax(310px, .8fr) minmax(440px, 1.2fr); }
    .ki-login-brand-panel { padding: 42px; }
    .ki-login-brand-content h1 { font-size: 36px; }
    .ki-login-industrial-art { opacity: .62; right: 18px; transform: scale(.82); transform-origin: right bottom; }
    .ki-login-form-panel { padding-left: 34px; padding-right: 34px; }
}
@media (max-width: 760px) {
    .ki-login-shell {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }
    .ki-login-brand-panel { display: none; }
    .ki-login-form-panel {
        align-items: center;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px 16px;
    }
    .ki-login-card {
        border-radius: 20px;
        max-width: 460px;
        padding: 32px 28px;
    }
    .ki-login-mobile-brand {
        align-items: center;
        color: var(--ki-text);
        display: flex;
        font-size: 12px;
        font-weight: 600;
        gap: 10px;
        margin-bottom: 30px;
    }
    .ki-login-mobile-brand strong { color: var(--ki-orange); }
    .ki-login-mobile-mark {
        align-items: center;
        background: rgba(255, 150, 92, .11);
        border: 1px solid rgba(255, 150, 92, .18);
        border-radius: 10px;
        color: var(--ki-orange);
        display: flex;
        flex: 0 0 36px;
        height: 36px;
        justify-content: center;
        width: 36px;
    }
}
@media (max-width: 420px) {
    .ki-login-form-panel {
        align-items: flex-start;
        padding: 16px;
    }
    .ki-login-card {
        border-radius: 18px;
        margin: auto 0;
        padding: 27px 22px;
    }
    .ki-login-mobile-brand { margin-bottom: 26px; }
    .ki-login-card-heading { margin-bottom: 24px; }
    .ki-login-card-heading h2 { font-size: 24px; }
}

/* ==========================================================================
   KASTURBA TALENTOS LIVE STOCK
   Compact family-wise inventory presentation only.
   ========================================================================== */
.ki-stock-page {
    max-width: 1920px;
    padding-left: 22px;
    padding-right: 22px;
}
.ki-stock-header {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ki-stock-kicker {
    color: var(--ki-orange);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .13em;
    margin: 0 0 5px;
    text-transform: uppercase;
}
.ki-stock-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0 0 3px;
}
.ki-stock-subtitle {
    color: var(--ki-text-soft);
    font-size: 12px;
    margin: 0;
}
.ki-stock-ledger-link {
    background: var(--ki-card-dark);
    flex: 0 0 auto;
    gap: 7px;
    height: 38px;
    min-height: 38px;
    padding: 0 13px;
}
.ki-stock-toolbar {
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    border-radius: 15px;
    margin-bottom: 14px;
    padding: 11px 12px;
}
.ki-stock-search-form {
    align-items: center;
    display: flex;
    gap: 9px;
}
.ki-stock-search-field {
    flex: 1 1 420px;
    max-width: 610px;
    position: relative;
}
.ki-stock-search-field > i {
    color: var(--ki-text-muted);
    font-size: 12px;
    left: 14px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.ki-stock-search-field .form-control {
    height: 38px;
    min-height: 38px;
    padding-left: 37px;
}
.ki-stock-search-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}
.ki-stock-search-actions .btn {
    height: 38px;
    min-height: 38px;
    padding-left: 13px;
    padding-right: 13px;
}
.ki-stock-report {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ki-stock-family {
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
}
.ki-stock-family-header {
    align-items: center;
    display: flex;
    gap: 9px;
    min-height: 43px;
    padding: 8px 14px;
}
.ki-stock-family-icon {
    align-items: center;
    background: rgba(255, 150, 92, .10);
    border: 1px solid rgba(255, 150, 92, .15);
    border-radius: 9px;
    color: var(--ki-orange);
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 11px;
    height: 28px;
    justify-content: center;
    width: 28px;
}
.ki-stock-family-header h2 {
    color: var(--ki-text);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.ki-stock-column-headings,
.ki-stock-row {
    display: grid;
    grid-template-columns: minmax(260px, 2.25fr) minmax(145px, 1fr) minmax(100px, .72fr) minmax(100px, .72fr) minmax(135px, .9fr);
}
.ki-stock-column-headings {
    background: var(--ki-card-dark);
    border-bottom: 1px solid var(--ki-border-soft);
    border-top: 1px solid var(--ki-border-soft);
    color: var(--ki-text-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .07em;
    min-height: 29px;
    text-transform: uppercase;
}
.ki-stock-column-headings span {
    align-items: center;
    display: flex;
    padding: 6px 12px;
}
.ki-stock-column-headings span:not(:first-child) {
    border-left: 1px solid var(--ki-border-soft);
    justify-content: flex-end;
    text-align: right;
}
.ki-stock-row {
    align-items: center;
    min-height: 50px;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
.ki-stock-row + .ki-stock-row { border-top: 1px solid var(--ki-border-soft); }
.ki-stock-row:hover {
    background: rgba(255, 150, 92, .045);
    box-shadow: inset 2px 0 0 var(--ki-orange);
}
.ki-stock-product {
    min-width: 0;
    padding: 8px 12px;
}
.ki-stock-product h3 {
    color: var(--ki-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-stock-product-meta {
    align-items: center;
    color: var(--ki-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 9px;
    gap: 0;
    line-height: 1.35;
    margin-top: 2px;
}
.ki-stock-product-meta span {
    align-items: center;
    display: inline-flex;
    white-space: nowrap;
}
.ki-stock-product-meta span + span::before {
    color: #4f5154;
    content: "•";
    margin: 0 6px;
}
.ki-stock-metric {
    align-items: baseline;
    align-self: stretch;
    border-left: 1px solid var(--ki-border-soft);
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
    padding: 8px 12px;
    text-align: right;
}
.ki-stock-metric strong {
    color: var(--ki-text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    margin: auto 0;
}
.ki-stock-metric small {
    color: var(--ki-text-muted);
    font-size: 9px;
    font-weight: 400;
    margin: auto 0;
    white-space: nowrap;
}
.ki-stock-metric-packed {
    flex-wrap: wrap;
    gap: 1px 4px;
}
.ki-stock-metric-pack strong { color: var(--ki-text-soft); font-size: 11px; }
.ki-stock-empty {
    align-items: center;
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    border-radius: 16px;
    color: var(--ki-text-muted);
    display: flex;
    font-size: 12px;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .ki-stock-page { padding-left: 18px; padding-right: 18px; }
    .ki-stock-column-headings,
    .ki-stock-row {
        grid-template-columns: minmax(220px, 1.8fr) minmax(130px, 1fr) minmax(90px, .7fr) minmax(90px, .7fr) minmax(120px, .85fr);
    }
}
@media (max-width: 767.98px) {
    .ki-stock-page { padding-left: 16px; padding-right: 16px; }
    .ki-stock-header {
        align-items: flex-start;
        margin-bottom: 14px;
    }
    .ki-stock-search-form {
        align-items: stretch;
        flex-direction: column;
    }
    .ki-stock-search-field {
        flex-basis: auto;
        max-width: none;
        width: 100%;
    }
    .ki-stock-search-actions { width: 100%; }
    .ki-stock-search-actions .btn { flex: 1 1 auto; }
    .ki-stock-column-headings { display: none; }
    .ki-stock-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0;
    }
    .ki-stock-product {
        border-bottom: 1px solid var(--ki-border-soft);
        grid-column: 1 / -1;
        padding: 10px 12px;
    }
    .ki-stock-product h3 {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    .ki-stock-metric {
        align-items: flex-end;
        border-left: 0;
        flex-direction: column;
        gap: 1px;
        justify-content: center;
        min-height: 60px;
        padding: 9px 10px;
        position: relative;
    }
    .ki-stock-metric + .ki-stock-metric { border-left: 1px solid var(--ki-border-soft); }
    .ki-stock-metric::before {
        color: var(--ki-text-muted);
        content: attr(data-label);
        display: block;
        font-size: 8px;
        font-weight: 600;
        letter-spacing: .04em;
        line-height: 1.2;
        margin-bottom: 3px;
        text-transform: uppercase;
    }
    .ki-stock-metric strong,
    .ki-stock-metric small { margin: 0; }
    .ki-stock-metric-packed { flex-wrap: nowrap; }
}
@media (max-width: 575.98px) {
    .ki-stock-page { padding-left: 12px; padding-right: 12px; }
    .ki-stock-header {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }
    .ki-stock-header h1 { font-size: 22px; }
    .ki-stock-ledger-link { align-self: flex-start; }
    .ki-stock-toolbar { padding: 10px; }
    .ki-stock-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ki-stock-metric {
        align-items: flex-start;
        text-align: left;
    }
    .ki-stock-product + .ki-stock-metric { border-left: 0; }
    .ki-stock-metric:nth-child(3),
    .ki-stock-metric:nth-child(5) { border-left: 1px solid var(--ki-border-soft); }
    .ki-stock-metric:nth-child(4),
    .ki-stock-metric:nth-child(5) { border-top: 1px solid var(--ki-border-soft); }
    .ki-stock-metric:nth-child(4) { border-left: 0; }
}

/* ==========================================================================
   KASTURBA TALENTOS PROFILE DROPDOWN
   Shared identity summary plus existing working account actions.
   ========================================================================== */
.ki-user-profile .dropdown-menu {
    max-width: calc(100vw - 20px);
    min-width: 232px;
    width: 232px;
}
.ki-profile-dropdown-identity {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    padding: 9px 11px 10px;
}
.ki-profile-dropdown-identity strong {
    color: var(--ki-text);
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-profile-dropdown-identity small {
    color: var(--ki-text-muted);
    font-size: 10px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-user-profile .dropdown-divider {
    border-top-color: var(--ki-border-soft);
    margin: 5px 3px;
    opacity: 1;
}
.ki-user-profile .dropdown-item {
    gap: 2px;
    min-height: 41px;
}
.ki-user-profile .dropdown-item i {
    flex: 0 0 16px;
    margin-right: 8px !important;
    text-align: center;
}

@media (max-width: 575.98px) {
    .ki-user-profile .dropdown-menu {
        max-width: calc(100vw - 16px);
        min-width: min(232px, calc(100vw - 16px));
        right: 0;
        width: min(232px, calc(100vw - 16px));
    }
}

/* ==========================================================================
   KASTURBA TALENTOS PASSWORD SECURITY
   Existing password workflow, presented within the shared ERP theme.
   ========================================================================== */
.ki-password-page {
    max-width: 1180px;
    padding: 0 22px 24px;
}
.ki-password-page-header {
    margin-bottom: 16px;
    max-width: 680px;
}
.ki-password-kicker {
    color: var(--ki-orange);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .13em;
    margin: 0 0 5px;
    text-transform: uppercase;
}
.ki-password-page-header h1 {
    color: var(--ki-text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0;
}
.ki-password-card {
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    border-radius: 19px;
    box-shadow: none;
    max-width: 680px;
    padding: 30px;
}
.ki-password-card-header {
    align-items: center;
    border-bottom: 1px solid var(--ki-border-soft);
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
}
.ki-password-shield {
    align-items: center;
    background: rgba(255, 150, 92, .11);
    border: 1px solid rgba(255, 150, 92, .18);
    border-radius: 13px;
    color: var(--ki-orange);
    display: inline-flex;
    flex: 0 0 44px;
    font-size: 16px;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.ki-password-identity {
    min-width: 0;
}
.ki-password-identity h2 {
    color: var(--ki-text);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-password-identity p {
    color: var(--ki-text-muted);
    font-size: 11px;
    margin: 3px 0 0;
}
.ki-password-alert {
    align-items: flex-start;
    background: rgba(230, 164, 93, .09);
    border-color: rgba(230, 164, 93, .24);
    color: #efbd87;
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.5;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
    padding: 11px 12px;
}
.ki-password-alert i { flex: 0 0 auto; margin-top: 3px; }
.ki-password-guidance {
    align-items: center;
    background: var(--ki-card-dark);
    border: 1px solid var(--ki-border-soft);
    border-radius: 11px;
    color: var(--ki-text-soft);
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.45;
    margin-bottom: 20px;
    padding: 10px 12px;
}
.ki-password-guidance i {
    color: var(--ki-text-muted);
    flex: 0 0 auto;
}
.ki-password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ki-password-field {
    display: block;
    margin: 0;
}
.ki-password-field > span {
    color: var(--ki-text-soft);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}
.ki-password-field .form-control {
    background: var(--ki-card-dark);
    border-color: var(--ki-border-soft);
    border-radius: 12px;
    font-size: 13px;
    height: 46px;
    min-height: 46px;
    padding: 0 13px;
}
.ki-password-field .form-control:focus {
    background: #101112;
    border-color: var(--ki-orange);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .15);
}
.ki-password-field .form-control:-webkit-autofill,
.ki-password-field .form-control:-webkit-autofill:hover,
.ki-password-field .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--ki-card-dark) inset;
    -webkit-text-fill-color: var(--ki-text);
    caret-color: var(--ki-text);
}
.ki-password-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}
.ki-password-actions .btn {
    height: 44px;
    min-height: 44px;
    min-width: 170px;
    padding: 0 20px;
}

@media (max-width: 767.98px) {
    .ki-password-page { padding-left: 16px; padding-right: 16px; }
    .ki-password-card {
        max-width: none;
        padding: 26px;
        width: 100%;
    }
}
@media (max-width: 575.98px) {
    .ki-password-page { padding: 0 12px 20px; }
    .ki-password-page-header { margin-bottom: 14px; }
    .ki-password-page-header h1 { font-size: 22px; }
    .ki-password-card {
        border-radius: 17px;
        padding: 22px 18px;
    }
    .ki-password-card-header {
        margin-bottom: 17px;
        padding-bottom: 16px;
    }
    .ki-password-actions .btn {
        min-width: 0;
        width: 100%;
    }
}

/* ==========================================================================
   KASTURBA TALENTOS MASTER LIST SYSTEM
   Opt-in presentation primitives for Bootstrap-based ERP master/list pages.
   ========================================================================== */
.ki-master-page {
    max-width: 1920px;
    padding: 0 22px 28px;
    width: 100%;
}
.ki-master-header {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ki-master-title {
    color: var(--ki-text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0;
}
.ki-master-subtitle {
    color: var(--ki-text-soft);
    font-size: 12px;
    line-height: 1.5;
    margin: 4px 0 0;
}
.ki-master-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.ki-master-actions .btn {
    min-height: 38px;
    padding-left: 13px;
    padding-right: 13px;
}

.ki-list-toolbar {
    align-items: center;
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 11px 12px;
}
.ki-list-search {
    align-items: center;
    display: flex;
    flex: 1 1 320px;
    gap: 8px;
    min-width: min(100%, 220px);
}
.ki-list-filters {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
}
.ki-list-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
}
.ki-list-toolbar .form-control,
.ki-list-toolbar .form-select,
.ki-list-toolbar .input-group-text,
.ki-list-toolbar .btn {
    height: 40px;
    min-height: 40px;
}
.ki-list-toolbar .form-control,
.ki-list-toolbar .form-select { min-width: 0; }

.ki-data-panel {
    background: var(--ki-card);
    border: 1px solid var(--ki-border-soft);
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    overflow: hidden;
}
.ki-data-table-wrap {
    background: transparent;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}
.ki-data-table {
    --bs-table-accent-bg: transparent;
    --bs-table-bg: transparent;
    --bs-table-color: var(--ki-text);
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ki-text);
    font-size: 13px;
    margin: 0;
    width: 100%;
}
.ki-data-table thead th {
    background: var(--ki-card-dark);
    border: 0;
    border-bottom: 1px solid var(--ki-border-soft);
    color: var(--ki-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .065em;
    line-height: 1.3;
    padding: 10px 14px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.ki-data-table-wrap .ki-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}
.ki-data-table tbody tr {
    background: transparent;
    min-height: 54px;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
.ki-data-table tbody tr + tr > * { border-top: 1px solid var(--ki-border-soft); }
.ki-data-table tbody tr:hover {
    background: rgba(255, 150, 92, .045);
    box-shadow: inset 2px 0 0 var(--ki-orange);
}
.ki-data-table tbody tr:focus-within,
.ki-data-table tbody tr.active,
.ki-data-table tbody tr[aria-selected="true"] {
    background: rgba(255, 150, 92, .085);
    box-shadow: inset 3px 0 0 var(--ki-orange);
}
.ki-data-table tbody td,
.ki-data-table tbody th {
    background: transparent;
    border: 0;
    color: var(--ki-text-soft);
    height: 54px;
    line-height: 1.4;
    max-width: 420px;
    overflow-wrap: anywhere;
    padding: 10px 14px;
    vertical-align: middle;
}
.ki-data-table .text-end,
.ki-data-table [data-type="numeric"],
.ki-data-table .ki-numeric {
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.ki-data-table .ki-action-column {
    max-width: 1%;
    text-align: right;
    white-space: nowrap;
}

.ki-primary-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}
.ki-primary-text {
    color: var(--ki-text);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.ki-secondary-text {
    color: var(--ki-text-muted);
    display: block;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 2px;
    overflow-wrap: anywhere;
}
.ki-code-text {
    color: var(--ki-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .015em;
}

.ki-status {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 600;
    gap: 5px;
    justify-content: center;
    line-height: 1;
    min-height: 26px;
    padding: 5px 9px;
    white-space: nowrap;
}
.ki-status-active,
.ki-status-approved {
    background: rgba(88, 184, 135, .12);
    border-color: rgba(88, 184, 135, .22);
    color: #79cda2;
}
.ki-status-inactive {
    background: rgba(127, 130, 134, .12);
    border-color: rgba(127, 130, 134, .20);
    color: var(--ki-text-soft);
}
.ki-status-draft {
    background: rgba(255, 150, 92, .11);
    border-color: rgba(255, 150, 92, .20);
    color: var(--ki-orange);
}
.ki-status-pending {
    background: rgba(230, 164, 93, .12);
    border-color: rgba(230, 164, 93, .22);
    color: #efbd87;
}
.ki-status-rejected {
    background: rgba(233, 107, 107, .11);
    border-color: rgba(233, 107, 107, .22);
    color: #f09292;
}
.ki-status-archived {
    background: rgba(127, 130, 134, .09);
    border-color: rgba(127, 130, 134, .18);
    color: var(--ki-text-muted);
}

.ki-row-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
}
.ki-icon-btn {
    align-items: center;
    background: var(--ki-card-dark);
    border: 1px solid var(--ki-border-soft);
    border-radius: 10px;
    color: var(--ki-text-soft);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 12px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    width: 34px;
}
.ki-icon-btn:hover {
    background: rgba(255, 150, 92, .09);
    border-color: rgba(255, 150, 92, .30);
    color: var(--ki-orange);
    text-decoration: none;
}
.ki-icon-btn:focus-visible {
    border-color: var(--ki-orange);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .18);
    color: var(--ki-orange);
    outline: 0;
}
.ki-icon-btn-danger { color: #ef9292; }
.ki-icon-btn-danger:hover,
.ki-icon-btn-danger:focus-visible {
    background: rgba(233, 107, 107, .10);
    border-color: rgba(233, 107, 107, .32);
    color: var(--ki-danger);
}
.ki-icon-btn-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(233, 107, 107, .17);
}

.ki-pagination,
.ki-master-page .pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 14px 0 0;
}
.ki-pagination .page-item,
.ki-master-page .pagination .page-item { margin: 0; }
.ki-pagination .page-link,
.ki-master-page .pagination .page-link {
    align-items: center;
    background: var(--ki-card-dark);
    border: 1px solid var(--ki-border-soft);
    border-radius: 9px !important;
    color: var(--ki-text-soft);
    display: inline-flex;
    font-size: 11px;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 9px;
}
.ki-pagination .page-link:hover,
.ki-master-page .pagination .page-link:hover {
    background: rgba(255, 150, 92, .08);
    border-color: rgba(255, 150, 92, .28);
    color: var(--ki-orange);
}
.ki-pagination .page-link:focus-visible,
.ki-master-page .pagination .page-link:focus-visible {
    border-color: var(--ki-orange);
    box-shadow: 0 0 0 3px rgba(255, 150, 92, .17);
    outline: 0;
}
.ki-pagination .page-item.active .page-link,
.ki-master-page .pagination .page-item.active .page-link {
    background: var(--ki-orange);
    border-color: var(--ki-orange);
    color: #1b1511;
}
.ki-pagination .page-item.disabled .page-link,
.ki-master-page .pagination .page-item.disabled .page-link {
    background: var(--ki-card-dark);
    border-color: var(--ki-border-soft);
    color: var(--ki-text-muted);
    opacity: .45;
}

.ki-empty-state {
    align-items: center;
    color: var(--ki-text-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 24px 18px;
    text-align: center;
}
.ki-empty-icon {
    align-items: center;
    background: rgba(255, 150, 92, .08);
    border: 1px solid rgba(255, 150, 92, .13);
    border-radius: 13px;
    color: var(--ki-orange);
    display: inline-flex;
    font-size: 16px;
    height: 42px;
    justify-content: center;
    margin-bottom: 11px;
    width: 42px;
}
.ki-empty-title {
    color: var(--ki-text);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.ki-empty-text {
    color: var(--ki-text-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 5px 0 0;
    max-width: 440px;
}
.ki-empty-state > .btn,
.ki-empty-state > .ki-master-actions { margin-top: 14px; }

.ki-mobile-label {
    color: var(--ki-text-muted);
    display: none;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}
.ki-mobile-stack {
    display: flex;
    gap: 10px;
}
.ki-mobile-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

@media (max-width: 991.98px) {
    .ki-master-page { padding-left: 18px; padding-right: 18px; }
    .ki-list-search { flex-basis: 260px; }
    .ki-list-actions { margin-left: 0; }
}
@media (max-width: 767.98px) {
    .ki-master-page { padding-left: 16px; padding-right: 16px; }
    .ki-master-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .ki-master-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .ki-list-toolbar { align-items: stretch; }
    .ki-list-search,
    .ki-list-filters,
    .ki-list-actions {
        flex: 1 1 100%;
        width: 100%;
    }
    .ki-list-search .form-control,
    .ki-list-search .form-select { flex: 1 1 auto; }
    .ki-data-table tbody td,
    .ki-data-table tbody th { padding-left: 12px; padding-right: 12px; }
    .ki-mobile-label { display: block; margin-bottom: 3px; }
    .ki-mobile-stack { flex-direction: column; gap: 4px; }
    .ki-mobile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ki-master-page { padding: 0 12px 22px; }
    .ki-master-title { font-size: 22px; }
    .ki-master-actions .btn { flex: 1 1 auto; }
    .ki-list-toolbar { border-radius: 14px; padding: 10px; }
    .ki-list-filters > *,
    .ki-list-actions > * { flex: 1 1 auto; }
    .ki-data-panel { border-radius: 15px; }
    .ki-mobile-grid { grid-template-columns: 1fr; }
    .ki-pagination,
    .ki-master-page .pagination { justify-content: center; }
}
