:root {
    --ow-bg: #020817;
    --ow-bg-soft: #071328;
    --ow-panel: rgba(7, 19, 40, 0.84);
    --ow-line: rgba(0, 212, 255, 0.18);
    --ow-line-strong: rgba(0, 212, 255, 0.42);
    --ow-text: #f7fbff;
    --ow-muted: #aab8cf;
    --ow-blue: #0057ff;
    --ow-cyan: #00aeef;
    --ow-electric: #00d4ff;
    --ow-shadow: 0 28px 90px rgba(0, 87, 255, 0.22);
    --ow-nav-offset: 88px;
}

html {
    scroll-behavior: smooth;
}

body.owc-body {
    font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #06142c;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 87, 255, 0.09), transparent 32rem),
        radial-gradient(circle at 86% 12%, rgba(0, 212, 255, 0.12), transparent 28rem),
        linear-gradient(180deg, #f4f8ff 0%, #ffffff 45%, #f6f9ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.owc-body.owc-auth-mode {
    background: var(--ow-bg);
    color: var(--ow-text);
}

h1, h2, h3, h4, h5, h6, strong {
    font-family: "Inter", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

.container-premium {
    max-width: 1400px;
    margin: 0 auto;
    padding-inline: clamp(1rem, 3.5vw, 3.2rem);
}

/* Pagination: Bootstrap markup with the same blue/cyan finish as the OWC interface. */
.pagination {
    --bs-pagination-color: #24436d;
    --bs-pagination-bg: #ffffff;
    --bs-pagination-border-color: rgba(0, 87, 255, 0.14);
    --bs-pagination-hover-color: #0047d1;
    --bs-pagination-hover-bg: #eef6ff;
    --bs-pagination-hover-border-color: rgba(0, 87, 255, 0.3);
    --bs-pagination-focus-color: #0047d1;
    --bs-pagination-focus-bg: #eef6ff;
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.18);
    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: #0057ff;
    --bs-pagination-active-border-color: #0057ff;
    --bs-pagination-disabled-color: #97a7bd;
    --bs-pagination-disabled-bg: #f7faff;
    --bs-pagination-disabled-border-color: rgba(0, 87, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: inline-flex;
    min-width: 2.45rem;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 0.75rem !important;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(2, 8, 23, 0.045);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pagination .page-item:not(.disabled) .page-link:hover {
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--ow-blue), var(--ow-cyan));
    border-color: transparent;
    box-shadow: 0 7px 16px rgba(0, 87, 255, 0.2);
}

.pagination .page-item.disabled .page-link {
    box-shadow: none;
}

.owc-body .note-editor.note-frame {
    overflow: hidden;
    border: 1px solid rgba(0, 87, 255, 0.2);
    border-radius: 0.9rem;
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.045);
}

.owc-body .note-editor .note-toolbar {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid rgba(0, 87, 255, 0.12);
    background: #f5f9ff;
}

.owc-body .note-editor .note-btn {
    color: #24436d;
    border-color: rgba(0, 87, 255, 0.14);
    background: #ffffff;
}

.owc-body .note-editor .note-btn:hover,
.owc-body .note-editor .note-btn.active {
    color: #0047d1;
    border-color: rgba(0, 87, 255, 0.28);
    background: #eaf3ff;
}

.owc-body .note-editor .note-editable {
    color: #152a45;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 0.94rem;
}

nav[aria-label="Pagination Navigation"] {
    gap: 1rem;
}

nav[aria-label="Pagination Navigation"] .text-muted {
    color: #718198 !important;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ==========================================
   ONEWAY CONSULTING NAVBAR (.ow-nav)
   ========================================== */
.ow-nav {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(2, 8, 23, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    box-shadow: 0 14px 44px rgba(2, 8, 23, 0.07);
    transition: all 240ms ease;
    z-index: 1030;
}

.ow-nav .container-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    flex-wrap: nowrap;
}

.ow-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0;
    padding: 0;
}

.ow-brand img {
    width: clamp(128px, 10.5vw, 168px);
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.ow-brand:hover img {
    transform: scale(1.03);
}

.ow-toggler {
    display: grid;
    place-items: center;
    color: #020817;
    border: 1px solid rgba(2, 8, 23, 0.14);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 8, 23, 0.08);
    flex-shrink: 0;
}

.ow-toggler i {
    font-size: 1.6rem;
    line-height: 1;
}

@media (min-width: 992px) {
    .ow-toggler {
        display: none !important;
    }
}

.ow-nav .navbar-collapse {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.ow-nav .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: 0.32rem;
    border: 1px solid rgba(2, 8, 23, 0.08);
    border-radius: 999px;
    background: rgba(247, 250, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.ow-nav .nav-item {
    flex-shrink: 0;
}

.ow-nav .nav-link,
.owc-nav-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap !important;
    color: rgba(2, 8, 23, 0.74) !important;
    margin: 0 !important;
    padding: 0.56rem clamp(0.62rem, 0.85vw, 0.98rem) !important;
    border-radius: 999px;
    font-weight: 800;
    font-size: clamp(0.8rem, 0.82vw, 0.9rem);
    line-height: 1.2;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ow-nav .nav-link i,
.owc-nav-link i {
    font-size: 0.95em;
    line-height: 1;
    flex-shrink: 0;
}

.ow-nav .nav-link:hover,
.owc-nav-link:hover {
    color: #020817 !important;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 8, 23, 0.08);
}

.ow-nav .nav-link.active,
.owc-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ow-blue), var(--ow-cyan) 70%, var(--ow-electric));
    box-shadow: 0 10px 26px rgba(0, 87, 255, 0.28);
}

.ow-dropdown-menu {
    min-width: 230px;
    margin-top: 0.65rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 87, 255, 0.12) !important;
    box-shadow: 0 22px 54px rgba(2, 8, 23, 0.14) !important;
}

.ow-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    color: #06142c;
    transition: background 160ms ease, color 160ms ease;
}

.ow-dropdown-menu .dropdown-item:hover {
    background: #eef5ff;
    color: var(--ow-blue);
}

.ow-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.ow-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 40px;
    padding: 0.38rem 0.82rem;
    border: 1px solid rgba(2, 8, 23, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: #06142c;
    font-weight: 800;
    font-size: 0.83rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ow-user-pill .ow-user-name {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ow-user-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 87, 255, 0.25);
    color: var(--ow-blue);
    box-shadow: 0 14px 34px rgba(0, 87, 255, 0.12);
}

.ow-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 40px;
    padding: 0.38rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: #ffffff;
    color: #dc2626;
    font-weight: 800;
    font-size: 0.83rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.06);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ow-logout-btn:hover {
    transform: translateY(-2px);
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

@media (max-width: 991.98px) {
    .ow-nav {
        padding: 0.55rem 0;
    }

    .ow-nav .container-premium {
        display: grid;
        grid-template-columns: auto 44px;
        gap: 0.65rem;
        align-items: center;
    }

    .ow-brand img {
        width: 132px;
    }

    .ow-nav .navbar-collapse {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid rgba(2, 8, 23, 0.1);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 44px rgba(2, 8, 23, 0.12);
    }

    .ow-nav .navbar-nav {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        padding: 0.15rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ow-nav .nav-link,
    .owc-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 0.85rem !important;
        border-radius: 12px;
        font-size: 0.92rem;
    }

    .ow-nav-actions {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(2, 8, 23, 0.08);
        justify-content: space-between;
        width: 100%;
    }
}

/* ==========================================
   ONEWAY CONSULTING BUTTONS & KICKERS
   ========================================== */
.ow-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--ow-electric);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-kicker::before {
    content: "";
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, var(--ow-blue), var(--ow-electric));
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.72);
}

.ow-kicker-light {
    color: var(--ow-blue);
}

.ow-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 212, 255, 0.48) !important;
    background: linear-gradient(135deg, var(--ow-blue), var(--ow-cyan) 70%, var(--ow-electric)) !important;
    box-shadow: 0 14px 36px rgba(0, 87, 255, 0.3), 0 0 24px rgba(0, 212, 255, 0.15);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.ow-btn:hover,
.btn-primary:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 87, 255, 0.44), 0 0 36px rgba(0, 212, 255, 0.28);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    font-weight: 800 !important;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 87, 255, 0.14);
    color: #06142c;
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-glass:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 87, 255, 0.32);
    background: #ffffff;
    color: var(--ow-blue);
    box-shadow: 0 14px 32px rgba(0, 87, 255, 0.12);
}

/* ==========================================
   HERO LOGIN EXPERIENCE (.ow-hero)
   ========================================== */
.ow-hero {
    position: relative;
    min-height: calc(100vh - 78px);
    isolation: isolate;
    color: var(--ow-text);
    background: #020817;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ow-hero-bg,
.ow-hero-bg .carousel-inner,
.ow-hero-bg .carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ow-hero-bg {
    z-index: 0;
}

.ow-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.95) contrast(1.08);
    transform: scale(1.02);
}

.ow-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.94) 0%, rgba(2, 8, 23, 0.82) 48%, rgba(2, 8, 23, 0.58) 100%),
        linear-gradient(180deg, rgba(2, 8, 23, 0.4) 0%, rgba(2, 8, 23, 0.82) 100%),
        radial-gradient(circle at 24% 42%, rgba(0, 87, 255, 0.32), transparent 28rem),
        radial-gradient(circle at 76% 34%, rgba(0, 212, 255, 0.2), transparent 24rem);
}

.ow-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 80%);
}

.ow-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
}

.ow-hero-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    line-height: 1.02;
    font-weight: 900;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.ow-hero-copy {
    color: #d8e5f8;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2rem;
}

.ow-service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.ow-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.95rem;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)), rgba(7, 19, 40, 0.65);
    backdrop-filter: blur(12px);
    color: #dce9fb;
    font-size: 0.88rem;
    font-weight: 800;
}

.ow-service-pill i {
    color: var(--ow-electric);
}

/* OneWay Login Glass Card */
.ow-login-card {
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(0, 87, 255, 0.22), transparent 20rem),
        radial-gradient(circle at 12% 88%, rgba(0, 212, 255, 0.12), transparent 18rem),
        rgba(7, 19, 40, 0.84);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: clamp(1.8rem, 3.5vw, 2.8rem);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 87, 255, 0.22);
    color: #f7fbff;
}

.ow-login-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.16);
}

.ow-login-head span {
    color: var(--ow-electric);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ow-login-head h2 {
    margin: 0.25rem 0 0;
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 900;
}

.ow-login-head-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--ow-electric);
    font-size: 1.35rem;
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.2);
}

.ow-login-card .form-label {
    color: #dce9fb;
    font-size: 0.85rem;
    font-weight: 800;
}

.ow-login-card .form-control {
    min-height: 54px;
    color: #ffffff;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 14px;
    background: rgba(2, 8, 23, 0.68);
    padding: 0.75rem 1rem;
}

.ow-login-card .form-control::placeholder {
    color: rgba(170, 184, 207, 0.55);
}

.ow-login-card .form-control:focus {
    border-color: var(--ow-electric);
    background: rgba(2, 8, 23, 0.88);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.16);
}

.ow-login-card .input-group-text.glass-addon {
    background: rgba(2, 8, 23, 0.68);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-right: 0;
    color: var(--ow-electric);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    padding-inline: 1rem;
}

.ow-login-card .input-group .form-control {
    border-left: 0;
}

/* ==========================================
   INTERNAL PLATFORM CARDS (.glass-card & .ow-proof)
   ========================================== */
.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92)), #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 87, 255, 0.11);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(2, 8, 23, 0.07);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.glass-card-interactive {
    position: relative;
    overflow: hidden;
}

.glass-card-interactive::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(180deg, var(--ow-blue), var(--ow-electric));
}

.glass-card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 87, 255, 0.24);
    box-shadow: 0 22px 60px rgba(0, 87, 255, 0.12);
}

.glass-header {
    background: rgba(246, 249, 255, 0.8);
    border-bottom: 1px solid rgba(0, 87, 255, 0.09);
    padding: 1.05rem 1.4rem;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    font-weight: 800;
    color: #06142c;
}

.glass-subcard {
    background: #ffffff;
    border: 1px solid rgba(0, 87, 255, 0.09);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.04);
}

.kpi-icon-orb {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.orb-primary {
    border: 1px solid rgba(0, 87, 255, 0.16);
    background: linear-gradient(135deg, rgba(0, 87, 255, 0.12), rgba(0, 212, 255, 0.14));
    color: var(--ow-blue);
}

.orb-indigo {
    border: 1px solid rgba(0, 174, 239, 0.2);
    background: linear-gradient(135deg, rgba(2, 8, 23, 0.92), rgba(7, 19, 40, 0.96));
    color: var(--ow-electric);
}

.orb-danger {
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Form Controls inside Platform */
.form-control, .form-select {
    color: #1d1d1f;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f5f7fb;
    padding: 0.65rem 0.95rem;
    font-weight: 600;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ow-blue);
    background: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(0, 87, 255, 0.1);
}

.ow-input-group {
    border-radius: 14px;
    transition: box-shadow 180ms ease;
}

.ow-input-group .ow-input-icon {
    background: #eef4ff;
    border: 1px solid #e2e8f0;
    border-right: 0;
    color: var(--ow-blue);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    padding-inline: 0.9rem;
    font-size: 1rem;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ow-input-group > .form-control,
.ow-input-group > .form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ow-input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(0, 87, 255, 0.1);
}

.ow-input-group:focus-within .ow-input-icon {
    border-color: var(--ow-blue);
    background: #e0ecff;
    color: var(--ow-blue-deep);
}

.ow-input-group:focus-within > .form-control,
.ow-input-group:focus-within > .form-select {
    border-color: var(--ow-blue);
    background: #ffffff;
    box-shadow: none;
}

.ow-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    border: 1px solid #e2e8f0;
    border-left: 0;
    color: #475569;
    padding-inline: 0.95rem;
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ow-password-toggle:hover {
    background: #eef4ff;
    color: var(--ow-blue);
}

.ow-input-group:focus-within .ow-password-toggle {
    border-color: var(--ow-blue);
    background: #ffffff;
}

/* Badges */
.badge-pill-soft {
    padding: 0.42em 0.88em;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.badge-soft-primary {
    background: rgba(0, 87, 255, 0.1);
    color: var(--ow-blue);
    border: 1px solid rgba(0, 87, 255, 0.2);
}
.badge-soft-danger {
    background: rgba(239, 68, 68, 0.11);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-soft-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-soft-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-soft-info {
    background: rgba(0, 174, 239, 0.13);
    color: #0369a1;
    border: 1px solid rgba(0, 174, 239, 0.28);
}
.badge-soft-dark {
    background: #071328;
    color: var(--ow-electric);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

/* Tables */
.table-glass {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}
.table-glass thead th {
    background: rgba(244, 248, 255, 0.9);
    color: #06142c;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 900;
    border-bottom: 1px solid rgba(0, 87, 255, 0.1);
    padding: 0.9rem 1.15rem;
}
.table-glass tbody td {
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
    vertical-align: middle;
}

/* ==========================================
   EXECUTIVE BITÁCORA SHEET (.ow-bitacora-sheet)
   ========================================== */
.ow-bitacora-sheet {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(0, 87, 255, 0.16);
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(2, 8, 23, 0.09);
}

.ow-bitacora-banner {
    position: relative;
    padding: 1.5rem 1.75rem;
    background:
        radial-gradient(circle at 88% 18%, rgba(0, 212, 255, 0.22), transparent 24rem),
        radial-gradient(circle at 12% 85%, rgba(0, 87, 255, 0.28), transparent 24rem),
        linear-gradient(135deg, #020817 0%, #071328 58%, #041026 100%);
    color: #f7fbff;
    border-bottom: 2px solid var(--ow-electric);
}

.ow-bitacora-logo-box {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.ow-bitacora-logo-box img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.ow-bitacora-folio {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.38);
    background: rgba(0, 212, 255, 0.12);
    color: var(--ow-electric);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ow-bitacora-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.35rem 1.75rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 87, 255, 0.1);
}

.ow-bitacora-meta-cell {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.9rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 87, 255, 0.1);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.04);
}

.ow-bitacora-meta-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.ow-bitacora-meta-label i {
    color: var(--ow-blue);
    font-size: 0.9rem;
}

.ow-bitacora-meta-value {
    overflow-wrap: anywhere;
    color: #06142c;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.25;
}

.ow-bitacora-meta-sub {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #526070;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.ow-evidence-dropzone {
    border: 2px dashed #a6c3ef;
    border-radius: 14px;
    background: #f4f8ff;
    transition: border-color .15s, background-color .15s;
}
.ow-evidence-dropzone.is-dragging {
    border-color: #0057ff;
    background: #e4efff;
}
.ow-evidence-card {
    min-width: 0;
    border: 1px solid #d9e4f3;
    border-radius: 12px;
    background: #fff;
}
.ow-evidence-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: 8px;
    background: #f1f5f9;
    overflow: hidden;
    text-decoration: none;
}
.ow-evidence-preview img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 991.98px) {
    .ow-bitacora-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ow-bitacora-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ONEWAY CONSULTING SWEETALERT2 (.ow-swal-sso-popup)
   ========================================== */
.swal2-popup.owc-swal-glass {
    padding: clamp(1.4rem, 3vw, 2rem) !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 87, 255, 0.24), transparent 22rem),
        radial-gradient(circle at 15% 85%, rgba(0, 212, 255, 0.12), transparent 20rem),
        #071328 !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 87, 255, 0.28) !important;
    color: #f7fbff !important;
    font-family: "Manrope", "Inter", sans-serif !important;
}

.swal2-popup.owc-swal-glass .swal2-title {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.swal2-popup.owc-swal-glass .swal2-html-container {
    color: #d8e5f8 !important;
}

.swal2-icon.swal2-success,
.swal2-icon.swal2-success::before,
.swal2-icon.swal2-success::after,
.swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-icon.swal2-success .swal2-success-circular-line-right,
.swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success [class^="swal2-success-circular-line"] {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-icon.swal2-success .swal2-success-circular-line-right,
.swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success .swal2-success-ring,
.swal2-icon.swal2-success::before,
.swal2-icon.swal2-success::after {
    display: none !important;
}

/* ==========================================
   MOBILE & TABLET NATIVE APP EXPERIENCE
   ========================================== */
.ow-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 19, 40, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.28);
    box-shadow: 0 -10px 34px rgba(2, 8, 23, 0.35);
}

.ow-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.3rem 0.2rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 12px;
    transition: color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.ow-mobile-tab i {
    font-size: 1.18rem;
    line-height: 1;
}

.ow-mobile-tab.active,
.ow-mobile-tab:hover {
    color: var(--ow-electric);
}

.ow-mobile-fab-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ow-mobile-fab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: -18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ow-blue), var(--ow-cyan) 70%, var(--ow-electric));
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 87, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
}

@media (max-width: 991.98px) {
    body.owc-auth-mode .ow-hero {
        min-height: 100svh;
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    }

    body.owc-auth-mode .ow-login-promo {
        display: none;
    }

    body.owc-auth-mode .ow-login-panel {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    body.owc-auth-mode .ow-hero-content {
        padding-top: calc(5.2rem + env(safe-area-inset-top, 0px));
        padding-bottom: 1rem;
    }

    body.owc-body:not(.owc-auth-mode) {
        padding-bottom: 88px;
    }

    .container-premium {
        width: min(100% - 1.25rem, var(--container));
    }

    .ow-hero {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .ow-hero-content {
        padding-top: 5.2rem;
        padding-bottom: 2rem;
    }

    .ow-hero-title {
        font-size: clamp(1.65rem, 5vw, 2.4rem);
        margin-bottom: 0.75rem;
    }

    .ow-hero-copy {
        font-size: 0.95rem;
        margin-bottom: 1.1rem;
    }

    .ow-bitacora-banner {
        padding: 1.15rem 1.1rem;
    }

    .ow-bitacora-logo-box img {
        height: 44px;
    }

    .ow-bitacora-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem 1.1rem;
        gap: 0.65rem;
    }
}

@media (max-width: 767.98px) {
    html,
    body.owc-body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .ow-bitacora-sheet,
    .glass-card {
        border-radius: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .glass-header {
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .ow-bitacora-banner > .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .ow-bitacora-banner form {
        width: 100%;
        display: block !important;
    }

    .ow-bitacora-banner .btn {
        width: 100%;
        flex: 1 1 100%;
        justify-content: center;
        min-height: 42px;
        white-space: normal;
    }

    .ow-bitacora-meta-grid {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        min-height: 44px;
    }

    /* Transform tables into clean Mobile App Cards without horizontal overflow */
    .table-responsive {
        overflow-x: hidden !important;
        width: 100%;
    }

    .table-glass thead {
        display: none;
    }

    .table-glass,
    .table-glass tbody {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    .table-glass tbody tr {
        display: block;
        margin: 0.65rem 0.6rem;
        padding: 0.85rem 0.95rem;
        border: 1px solid rgba(0, 87, 255, 0.14);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(2, 8, 23, 0.05);
        width: auto;
        max-width: calc(100% - 1.2rem);
        box-sizing: border-box;
        overflow: hidden;
    }

    .table-glass tbody td {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.55rem 0;
        border-bottom: 1px dashed rgba(203, 213, 225, 0.7);
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .table-glass tbody td > * {
        max-width: 100%;
        min-width: 0;
    }

    .table-glass tbody td[colspan] {
        display: block;
        text-align: center !important;
        border-bottom: 0;
    }

    .table-glass tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        font-size: 0.69rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        text-align: left;
        width: 100%;
    }

    .table-glass tbody td:last-child {
        border-bottom: 0;
        padding-bottom: 0.15rem;
        padding-top: 0.65rem;
        flex-direction: column;
        align-items: stretch;
    }

    .table-glass tbody td:last-child .btn,
    .table-glass tbody td:last-child form {
        width: 100%;
    }

    .table-glass tfoot tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    .swal2-popup.owc-swal-glass {
        width: calc(100vw - 1.5rem) !important;
        padding: 1.15rem !important;
        border-radius: 20px !important;
    }
}
