:root {
    --elp-orange: #F26522;
    --elp-orange-2: #ff861f;
    --elp-black: #080808;
    --elp-panel: #111;
    --elp-border: #e27100;
    --elp-text: #fff;
    --elp-muted: #a9a9a9;
}
.elp-card,
.elp-dashboard {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--elp-text);
}
.elp-card {
    background: linear-gradient(145deg, #151515, #080808);
    border: 1px solid var(--elp-border);
    border-radius: 14px;
    padding: 30px;
    box-sizing: border-box;
}
.elp-card.elp-current-user-details{
	margin-bottom:22px;
}
.elp-auth-card {
    max-width: 680px;
    margin: 20px auto;
    padding: 44px;
}
.elp-form label {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.elp-field {
    margin-bottom: 20px;
}
.elp-form input,
.elp-form select,
.elp-form textarea,
.elp-review-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #050505;
    color: #fff;
    border: 1px solid #666;
    border-radius: 3px;
    padding: .5rem 1rem;
    font-size: 16px;
    outline: none;
}
.elp-form input:focus,
.elp-form select:focus,
.elp-form textarea:focus {
    border-color: var(--elp-orange);
    box-shadow: 0 0 0 2px rgba(255, 101, 31, 0.15);
}
.elp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}
.elp-span-2 {
    grid-column: 1/-1;
}
.elp-check {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 5px 0 25px;
}
.elp-check input {
    width: 17px;
    height: 17px;
    margin: 0;
}
.elp-btn {
	display: inline-flex ! IMPORTANT;
    align-items: center;
    background: var(--elp-orange) !important;
    text-decoration: none;
    font-family: "Hanken Grotesk", Sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    border:none !important;
    padding: 16px 32px 16px 32px !important;
    line-height: 1;
	text-align: center;
    border-radius: 3px;
	justify-content:center !important
}
.elp-btn:hover {
    background: var(--elp-orange-2) !important;
}
.elp-btn-light {
    background: #f0f0f0 !important;
    color: #333 !important;
}
.elp-btn-light:hover{
	color:#fff !important;
}
.elp-btn-danger {
    background: #9d2626 !important;
    color: #fff !important;
}
.elp-auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.elp-forgot {
    display: block;
    color: #fff !important;
    text-align: center;
    margin-top: 28px;
    text-decoration: none;
}
.elp-center {
    text-align: center;
}
.elp-notice {
    max-width: 980px;
    margin: 15px auto;
    padding: 14px 18px;
    border-radius: 5px;
}
.elp-success {
    background: #163d25;
    color: #d9ffe4;
}
.elp-error {
    background: #4b1717;
    color: #ffdede;
}
.elp-welcome {
    background: #050505;
    border-left: 5px solid var(--elp-orange);
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.elp-kicker {
    color: var(--elp-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.elp-welcome h2,
.elp-card h2 {
    margin: 7px 0;
}
.elp-welcome p {
    margin: 0;
    color: var(--elp-muted);
}
.elp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.elp-stat {
    background: #0c0c0c;
    border: 1px solid #2a2a2a;
    border-top: 3px solid var(--elp-orange);
    padding: 22px;
    border-radius: 7px;
}
.elp-stat span,
.elp-stat small {
    display: block;
    color: #aaa;
}
.elp-stat strong {
    display: block;
    font-size: 36px;
    margin: 8px 0;
    color: #fff;
}
.elp-card-head,
.elp-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.elp-card-head a {
    color: var(--elp-orange);
}
.elp-card-head a:hover{
	color:#fff;
}
.elp-balance-pill {
    border: 1px solid var(--elp-orange);
    padding: 10px 16px;
    border-radius: 99px;
}
.elp-table-wrap {
    overflow: auto;
}
.elp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}
.elp-table th,
.elp-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #292929;
}
.elp-table th {
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
}
.elp-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.elp-status-approved {
    background: #174a28;
    color: #aef2c1;
}
.elp-status-rejected {
    background: #4a1717;
    color: #ffc2c2;
}
.elp-status-pending {
    background: #4a3817;
    color: #ffe3a1;
}
.elp-empty {
    padding: 28px;
    text-align: center;
    color: #aaa;
    background: #0a0a0a;
    border: 1px dashed #333;
}
.elp-request-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.elp-request-card {
    background: #070707;
    border: 1px solid #2b2b2b;
    border-left: 4px solid var(--elp-orange);
    padding: 22px;
}
.elp-request-card h3 {
    margin: 0;
}
.elp-request-card p {
    color: #c7c7c7;
}
.elp-request-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.elp-request-meta span {
    background: #222;
    padding: 6px 9px;
    border-radius: 4px;
}
.elp-review-form textarea {
    margin: 10px 0;
}
.elp-review-form > div {
    display: flex;
    gap: 10px;
}
.elp-calendar-head a {
    font-size: 36px;
    color: var(--elp-orange);
    text-decoration: none;
}
.elp-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #2c2c2c;
    border-top: 1px solid #2c2c2c;
	overflow:auto;
}
.elp-cal-label,
.elp-cal-day {
    border-right: 1px solid #2c2c2c;
    border-bottom: 1px solid #2c2c2c;
    padding: 10px;
    min-height: 110px;
}
.elp-cal-label {
    min-height: auto;
    text-align: center;
    background: #171717;
    font-weight: 700;
}
.elp-cal-day strong {
    display: block;
    margin-bottom: 8px;
}
.elp-cal-event {
    display: block;
    background: var(--elp-orange);
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin: 3px 0;
}
.elp-muted {
    background: #080808;
}
.elp-auth-required {
    text-align: center;
    max-width: 600px;
    margin: auto;
}
@media (max-width: 900px) {
    .elp-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .elp-request-grid {
        grid-template-columns: 1fr;
    }
    .elp-cal-label,
    .elp-cal-day {
        min-height: 80px;
        padding: 6px;
    }
    .elp-cal-event {
        font-size: 9px;
    }
}
@media (max-width: 600px) {
    .elp-card,
    .elp-auth-card {
        padding: 22px;
    }
    .elp-grid-2 {
        grid-template-columns: 1fr;
    }
    .elp-span-2 {
        grid-column: auto;
    }
    .elp-auth-actions {
        grid-template-columns: 1fr;
    }
    .elp-welcome {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }
    .elp-stats {
        grid-template-columns: 1fr 1fr;
    }
    .elp-stat {
        padding: 15px;
    }
    .elp-stat strong {
        font-size: 28px;
    }
    .elp-calendar {
        min-width: 700px;
    }
    .elp-card:has(.elp-calendar) {
        overflow: auto;
    }
}
/* Combined portal shortcodes and modal windows */
.elp-combined-portal {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--elp-text);
}
.elp-portal-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}
.elp-leave-toolbar {
    justify-content: space-between;
    background: #050505;
    border-left: 5px solid var(--elp-orange);
    padding: 24px 28px;
}
.elp-leave-toolbar h2 {
    margin: 7px 0 0;
    color: #fff;
}
.elp-leave-section + .elp-leave-section {
    margin-top: 24px;
}
.elp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.elp-modal.is-open {
    display: flex;
}
.elp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
}
.elp-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #0b0b0b;
    border: 1px solid var(--elp-border);
    border-radius: 14px;
    padding: 22px;
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}
.elp-modal-dialog > .elp-card {
    border: 0;
    padding: 8px;
    background: transparent;
}
.elp-modal-title {
    color: var(--elp-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.3px;
    padding: 4px 48px 8px 0px;
    text-transform: uppercase;
}
.elp-modal-close {
	position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 40px !important;
    height: 40px;
    padding: 0 !important;
    border: 1px solid #444 !important;
    border-radius: 50% !important;
    background: #171717 !important;
    color: #fff !important;
    font-size: 28px !important;
    line-height: 35px;
    cursor: pointer !important;
}
.elp-modal-close:hover {
    border-color: var(--elp-orange) !important;
    color: var(--elp-orange) !important;
}
body.elp-modal-lock {
    overflow: hidden !important;
}
@media (max-width: 700px) {
    .elp-portal-toolbar,
    .elp-leave-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .elp-modal {
        padding: 10px;
    }
    .elp-modal-dialog {
        max-height: calc(100vh - 20px);
        padding: 14px;
    }
}

/* Extended employee profiles and manager account area */
.elp-profile-summary,.elp-employee-profile-head,.elp-employee-tile{display:flex;align-items:center;gap:18px}.elp-avatar{width:96px;height:96px;object-fit:cover;border-radius:50%;border:3px solid var(--elp-orange);background:#111}.elp-profile-summary{margin-bottom:24px}.elp-profile-summary .elp-avatar{width:76px;height:76px}.elp-profile-summary h2,.elp-profile-summary p,.elp-employee-profile-head h3,.elp-employee-profile-head p,.elp-employee-tile h3,.elp-employee-tile p{margin:4px 0}.elp-employee-profile-card{color:#fff}.elp-employee-profile-head{margin-bottom:24px}.elp-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.elp-detail-grid>div{background:#090909;border:1px solid #2e2e2e;padding:14px;border-radius:6px}.elp-detail-grid span{display:block;color:#999;font-size:12px;text-transform:uppercase;margin-bottom:6px}.elp-detail-grid strong{display:block;color:#fff;word-break:break-word}.elp-detail-wide{grid-column:1/-1}.elp-manager-account-section{margin-top:28px}.elp-employee-directory{margin-top:28px}.elp-employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.elp-employee-tile{background:#090909;border:1px solid #2c2c2c;border-left:3px solid var(--elp-orange);padding:18px;border-radius:8px;flex-wrap:wrap}.elp-employee-tile .elp-avatar{width:64px;height:64px}.elp-employee-tile>div{flex:1;min-width:180px}.elp-employee-tile .elp-btn{padding:12px 18px!important}.elp-cal-event{display:block;width:100%;margin-top:4px;padding:5px 7px;border:0;border-radius:4px;background:var(--elp-orange);color:#fff;font-size:14px;font-weight:400;line-height:1.2;text-align:left;cursor:pointer}.elp-modal-dialog{max-height:90vh;overflow-y:auto}.elp-modal-dialog .elp-card{border:0;padding:0;background:transparent}
@media(max-width:767px){.elp-detail-grid,.elp-employee-grid{grid-template-columns:1fr}.elp-grid-2{grid-template-columns:1fr}.elp-span-2,.elp-detail-wide{grid-column:auto}.elp-employee-tile{align-items:flex-start}.elp-profile-summary,.elp-employee-profile-head{align-items:flex-start}}

.elp-employee-link{color:#fff;text-decoration:none}.elp-employee-link:hover{color:var(--elp-orange);text-decoration:underline}.elp-request-detail{margin-bottom:28px}.elp-selected-employee{margin-bottom:28px}.elp-cal-event:hover{color:#3d1400;text-decoration:none;filter:brightness(1.08)}

/* Leave request table actions */
.elp-table-actions {
    white-space: nowrap;
}
.elp-table-actions .elp-btn,
.elp-inline-form {
    display: inline-flex;
    vertical-align: middle;
    margin: 2px 4px 2px 0;
}
.elp-btn.elp-btn-small {
    line-height: 1;
    padding: 6px 10px !important;
    border-radius: 99px;
    font-size: 12px !important;
    font-weight: 700 !important;
}
.elp-employee-profile-head img{
	aspect-ratio: 1;
    width: 100%;
    height: auto !important;
    max-width: 100px !important;
    border-radius: 100% !important;
    object-fit: cover;
}
.elp-inline-form {
    margin-bottom: 0;
}
.elp-all-leave-requests {
    margin-top: 24px;
}


/* Multi-date leave request picker */
.elp-user-role {
    margin: 6px 0 !important;
    color: #ddd;
}
.elp-user-role strong {
    color: var(--elp-orange);
}
.elp-multi-date-field {
    position: relative;
}
.elp-multi-date-input {
    cursor: pointer;
    background-image: none !important;
}
.elp-multi-date-picker {
    position: absolute;
    z-index: 50;
    top: calc(100% - 18px);
    left: 0;
    width: min(390px, 100%);
    padding: 14px;
    background: #101010;
    border: 1px solid var(--elp-border);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}
.elp-multi-date-picker[hidden] {
    display: none !important;
}
.elp-picker-head,
.elp-picker-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.elp-picker-head {
    margin-bottom: 12px;
}
.elp-picker-head button,
.elp-picker-clear {
    border: 1px solid #3a3a3a !important;
    background: #191919 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    line-height: 1;
}
.elp-picker-weekdays,
.elp-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.elp-picker-weekdays {
    margin-bottom: 6px;
    color: #999;
    font-size: 11px;
    text-align: center;
}
.elp-picker-days button {
    min-height: 38px !important;
    border: 1px solid #303030 !important;
    border-radius: 6px !important;
    background: #171717 !important;
    color: #fff !important;
    cursor: pointer !important;
    padding: 1px 5px;
}
.elp-picker-days button:hover {
    border-color: var(--elp-orange) !important;
}
.elp-picker-days button.is-selected {
    background: var(--elp-orange) !important;
    border-color: var(--elp-orange) !important;
    color: #fff !important;
    font-weight: 800 !important;
}
.elp-picker-days button.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.elp-picker-blank {
    min-height: 38px;
}
.elp-picker-actions {
    margin-top: 12px;
}
.elp-picker-actions .elp-btn {
    padding: 9px 16px !important;
}
.leave-navigation {
    display: flex;
    align-items: center;
    gap: 55px;
    width: 100%;
    padding: 0 25px;
    background: #050505;
    border: 1px solid var(--elp-border);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
    border-radius: 14px;
}

.leave-navigation::-webkit-scrollbar {
    display: none;
}

.leave-nav-item {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 0 12px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.leave-nav-item svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leave-nav-item:hover{
    color: #ff5a1f !important;
}

.leave-nav-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #ff5a1f;
    border-radius: 3px 3px 0 0;
}

@media (max-width: 767px) {
    .leave-navigation {
        gap: 22px;
        padding: 0 12px;
    }

    .leave-nav-item {
        min-height: 64px;
        padding: 0 7px;
        font-size: 14px;
    }

    .leave-nav-item svg {
        width: 23px;
        height: 23px;
    }
}
@media (max-width: 700px) {
    .elp-multi-date-picker {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        top: auto;
        width: auto;
        max-height: 80vh;
        overflow: auto;
    }
    #elp-apply-modal .elp-card-head, .elp-calendar-head {
        display: flex;
        align-items: baseline;
    }
}
