﻿/* LOGIN & REGISTER */
.login {
    max-width: 360px !important;
    height: 360px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    justify-content: center;
    border: 3px solid rgba(218, 219, 222, 0.5);
    border-radius: 20px;
    margin: 120px auto;
    text-align: center;
}

.register {
    max-width: 360px !important;
    width: 100%;
    height: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    justify-content: center;
    background: #fff;
    border: 3px solid rgba(218, 219, 222, 0.5);
    border-radius: 20px;
    margin: 120px auto;
    text-align: center;
}

/* ICONS & SEARCH */
.svg-icon {
    margin-top: 3px !important;
    max-width: 20px !important;
    width: 20px !important;
    max-height: 20px !important;
    height: 20px !important;
    stroke-width: 15px !important;
}

.search {
    background: #fff;
    width: 222px;
    height: 34px;
    position: relative !important;
    right: 95px !important;
    border-radius: 8px;
}

.search-btn {
    background: #007bff;
    height: 34px;
    position: relative !important;
    right: 95px !important;
    border-radius: 8px;
}

/* FOOTER */
/*footer {
    background: #ffffff;
    height: 60px;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100% !important;
    text-align: center !important;
}*/

/* MISC */
.dt-container {
    margin: 50px !important;
}

.card, card-body {
    border: 3px solid var(--app-primary)!important; 
}

.logo {
    background-color: #FFFFFF !important;
    border-radius: 8px;
}

.page-light h1, .page-light h2, .page-light h3,
.page-light h4, .page-light h5, .page-light h6 {
    color: #000; /* no !important */
}

.Progress {
    width: 50%;

    margin-bottom: 10px;
    border-radius: 10px;
}

.Bar {
    width: 45%;
    height: 30px;
    background-color: #3498db;
    padding: 0 10px;
    line-height: 30px;
    color: #fff;
    display: block;
    border-radius: 10px;
}

.name {
    float: left;
    font-size: 14px !important;
    color: #000;
}

.pct {
    float: right;
}

/* DROPDOWNS */
.app-header .dropdown-toggle {
    width: 80px;
    background: #3b82f6 !important;
    color: #fff;
    height: 35px;
}

.app-header .dropdown-toggle::after {
    display: none;
}

.btn-profile {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.usernamePlaceholder {
    text-decoration: none !important;
}

/* LAYOUT VARS */
:root {
    --sx-sidebar: 250px;
    --sx-sidebar-collapsed: 72px;
    /* Brand primary fallback if not defined elsewhere */
    --app-primary: #2563eb;
}

/* HEADER BEHAVIOR */
.has-sidebar .app-header {
    transition: margin-left .2s ease;
}

@media (min-width: 992px) {
    .has-sidebar:not(.sidebar-collapse) .app-header {
        margin-left: var(--sx-sidebar);
    }

    .has-sidebar.sidebar-collapse .app-header {
        margin-left: var(--sx-sidebar-collapsed);
    }
}

@media (max-width: 991.98px) {
    .has-sidebar.sidebar-open .app-header {
        margin-left: var(--sx-sidebar);
    }
}

/* Header above sidebar */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1051;
}

.app-sidebar {
    z-index: 1040;
}

.app-header .container-fluid {
    display: flex;
    align-items: center;
}

/* Toggle button cleanup */
#header-brand-wrap .btn {
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Sidebar starts below header */
.app-sidebar .sidebar-wrapper {
    padding-top: 60px;
}

/* ============================
   USER PILL BUTTON:
   ============================ */
/* === User profile pill (header) === */
:root {
    --app-primary: #2563eb; /* base blue */
    --app-primary-dark: #1e40af; /* hover/active (slightly darker) */
}

.app-header .user-pill {
    /* appearance */
    background-color: var(--app-primary) !important;
    color: #fff !important;
    /* kill borders/outlines/shadows everywhere */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    /* size/shape */
    height: 36px;
    width: 100px; /* fixed width */
    padding: 0 10px;
    border-radius: 8px !important;
    /* layout */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal !important; /* allow two lines */
    overflow: hidden;
    text-decoration: none !important;
}

/* hover / focus / active / dropdown-open all slightly darker blue, no border */
.app-header .user-pill:hover,
.app-header .user-pill:focus,
.app-header .user-pill:active,
.app-header .user-pill.show,
.app-header .dropdown.show .user-pill {
    background-color: var(--app-primary-dark) !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* two-line name, ellipsis each line */
.app-header .user-name-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    text-align: center;
    max-width: 100%;
}

.app-header .user-first,
.app-header .user-last {
    display: block;
    font-size: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ensure inner spans inherit color/no-underline */
.app-header .user-pill * {
    color: inherit !important;
    text-decoration: none !important;
}

/* dropdown width */
.user-menu-container .dropdown-menu {
    min-width: 240px;
}

/* brand colors */
:root {
    --app-primary: #2563eb; /* base blue */
    --app-primary-dark: #1e40af; /* hover/active */
}

/* === User profile pill === */
.app-header .user-pill {
    background-color: var(--app-primary) !important;
    color: #fff !important;
    /* kill borders/outlines/shadows */
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    /* size/shape */
    height: 36px;
    width: 100px; /* your fixed width */
    padding: 0 10px;
    border-radius: 8px !important;
    /* layout */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal !important; /* allow two lines */
    overflow: hidden;
    text-decoration: none !important;
}

/* darker hover/focus/active/open */
.app-header .user-pill:hover,
.app-header .user-pill:focus,
.app-header .user-pill:active,
.app-header .user-pill.show,
.app-header .dropdown.show .user-pill {
    background-color: var(--app-primary-dark) !important;
    color: #fff !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border: 2px solid var(--app-primary);
}

/* === Kill borders/shadows on surrounding containers === */
.app-header .nav-item.auth-container,
.app-header .nav-item.auth-container *,
.app-header .user-menu-container,
.app-header #logoutForm {
    border: 0 !important;
    box-shadow: none !important;
}



/* Dropdown menu: remove its border/shadow so it isn't seen as a "border" */
.app-header .dropdown-menu {
    border: 0 !important;
    box-shadow: none !important; /* set to e.g. var(--bs-box-shadow) if you want a soft shadow */
    margin-top: 6px; /* reduce any visible white gap; set 0 if you prefer */
}


/* Header search: remove old positional offsets so it can sit next to the pill */
.app-header .app-search .search,
.app-header .app-search .search-btn {
    position: static !important;
    right: auto !important;
}

/* Optional: set a consistent width for the input in the header */
.app-header .app-search .search {
    width: 220px; /* tweak as you like */
}

/* Ensure the right-side nav uses exactly 16px spacing between children */
.app-header .navbar-nav.ms-auto {
    gap: 1rem !important; /* 1rem ≈ 16px */
    align-items: center;
}

.user-menu-container {
    margin: 0px;
}

/* === Restyle: Payslips tile === */
.section-item-narrow[data-id="pay-slips"] .payslip-container h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.section-item-narrow[data-id="pay-slips"] .payslip-content {
    min-height: 160px; /* keeps message centered nicely */
}

.payslip-content-all {
    text-align: center;
    margin-top: 12px; /* spacing from content */
}

.payslip-content-all a {
    text-decoration: none;
    font-weight: 600;
}

.payslip-content-all a:hover {
    text-decoration: underline;
}

/* === Restyle: Shout Outs / Celebrations === */



.section-celebration {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

    .section-celebration .celebration-section {
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background-color: #ffffff;
    }

    .section-celebration .celebration-title {
        font-weight: 600;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

    .section-celebration .no-celebrations {
        color: #6c757d;
        font-style: italic;
        text-align: center;
        padding: 0;
    }

/* Optional: subtle fade-in */
.fade-in {
    animation: fadeIn ease 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Floating labels */