﻿/* ---------- LMS layout helpers ---------- */
/*.lms-stack-6 > * + * {
    margin-top: 1.5rem;
}*/
/* ~space-y-6 (24px) */
/*.lms-gap-6 {
    gap: 1.5rem;
}

.lms-title {
    font-size: 1.875rem;*/ /* ~text-3xl */
    /*font-weight: 600;
    color: #111827;*/ /* gray-900 */
/*}

.lms-subtitle {
    margin-top: .5rem;
    color: #6b7280;*/ /* gray-500 */
/*}*/

/* ---------- Card hover ---------- */
/*.lms-hover-card {
    transition: box-shadow .2s ease, transform .2s ease;
}

    .lms-hover-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }*/

/* ---------- Icon tile (stats + folder icons) ---------- */
/*.lms-icon-tile {
    width: 3rem;
    height: 3rem;
    padding: .75rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .lms-icon-tile svg {
        width: 1.5rem;
        height: 1.5rem;
    }*/

/* ---------- Badges (shadcn-ish) ---------- */
/*.lms-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(0,0,0,.06);
}

.lms-badge-purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.lms-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.lms-badge-green {
    background: #dcfce7;
    color: #166534;
}

.lms-badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.lms-badge-gray {
    background: #f3f4f6;
    color: #374151;
}

.lms-badge-orange {
    background: #ffedd5;
    color: #9a3412;
}*/

/* ---------- Line clamp ---------- */
/*.lms-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}*/

/* ---------- Search input with icon ---------- */
/*.lms-input-icon-wrap {
    position: relative;
}

.lms-input-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

    .lms-input-icon + input {
        padding-left: 2.5rem;
    }*/

/* ---------- Progress sizing to match React ---------- */
/*.lms-progress-sm .progress {
    height: .5rem;
    border-radius: 999px;
}

.lms-progress-sm .progress-bar {
    border-radius: 999px;
}

.lms-progress-md .progress {
    height: .75rem;
    border-radius: 999px;
}

.lms-progress-md .progress-bar {
    border-radius: 999px;
}*/

/* ---------- Modal sizing like max-w-4xl and 80vh scroll ---------- */
/*.lms-modal-4xl {
    max-width: 56rem;
}*/
/* ~896px */
/*@media (max-width: 992px) {
    .lms-modal-4xl {
        max-width: 95vw;
    }
}

.lms-modal-body-scroll {
    max-height: 80vh;
    overflow-y: auto;
}*/

/* ---------- Module row states ---------- */
/*.lms-module-row {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .75rem;
}

    .lms-module-row.locked {
        background: #f9fafb;
        opacity: .6;
    }

    .lms-module-row:not(.locked):hover {
        background: #f9fafb;
    }

.lms-step-pill {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}*/
/* ---------- LMS layout helpers ---------- */
/*.lms-stack-6 > * + * {
    margin-top: 1.5rem;
}*/
/* ~space-y-6 (24px) */
/*.lms-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
}

.lms-subtitle {
    margin-top: .5rem;
    color: #6b7280;
}*/

/* ---------- Card hover ---------- */
/*.lms-hover-card {
    transition: box-shadow .2s ease, transform .2s ease;
}

    .lms-hover-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }*/

/* ---------- Icon tile ---------- */
/*.lms-icon-tile {
    width: 3rem;
    height: 3rem;
    padding: .75rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .lms-icon-tile i {
        font-size: 1.25rem;
    }*/

/* ---------- Badges (shadcn-ish) ---------- */
/*.lms-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(0,0,0,.06);
}

.lms-badge-purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.lms-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.lms-badge-green {
    background: #dcfce7;
    color: #166534;
}

.lms-badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.lms-badge-gray {
    background: #f3f4f6;
    color: #374151;
}

.lms-badge-orange {
    background: #ffedd5;
    color: #9a3412;
}*/

/* ---------- Line clamp ---------- */
/*.lms-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}*/

/* ---------- Search input with icon ---------- */
/*.lms-input-icon-wrap {
    position: relative;
}

.lms-input-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.lms-input-icon-wrap .form-control {
    padding-left: 2.5rem;
}*/

/* ---------- Progress sizing ---------- */
/*.lms-progress-sm.progress {
    height: .5rem;
    border-radius: 999px;
}

.lms-progress-sm .progress-bar {
    border-radius: 999px;
}

.lms-progress-md.progress {
    height: .75rem;
    border-radius: 999px;
}

.lms-progress-md .progress-bar {
    border-radius: 999px;
}*/

/* ---------- Modal sizing like max-w-4xl and 80vh scroll ---------- */
/*.lms-modal-4xl {
    max-width: 56rem;
}*/
/* ~896px */
/*@media (max-width: 992px) {
    .lms-modal-4xl {
        max-width: 95vw;
    }
}

.lms-modal-body-scroll {
    max-height: 80vh;
    overflow-y: auto;
}*/

/* ---------- Module row ---------- */
/*.lms-module-row {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .75rem;
}

    .lms-module-row.locked {
        background: #f9fafb;
        opacity: .6;
    }

    .lms-module-row:not(.locked):hover {
        background: #f9fafb;
    }

.lms-step-pill {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}*/


/* ===============================
   LEAVE MANAGEMENT (React match)
   =============================== */

/* Page width (React-like) */
/*body .app-main .container-xxl {
    max-width: 1200px;
}*/

/* Prevent AdminLTE tint from affecting the page look */
/*body.bg-body-tertiary .app-main {
    background: transparent !important;
}*/

/* Top cards row: equal height + stretch */
/*.lm-top-cards > [class*="col-"] {
    display: flex;
}

    .lm-top-cards > [class*="col-"] > .card {
        width: 100%;
    }*/

/* Main gradient cards */
/*.lm-card-gradient-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 1px solid rgba(148,163,184,.25) !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.10) !important;
}

.lm-card-gradient-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    border: 1px solid rgba(148,163,184,.25) !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.10) !important;
}*/

    /* Match React internal padding */
    /*.lm-card-gradient-blue .card-body,
    .lm-card-gradient-purple .card-body {
        padding: 28px !important;
    }*/

/* Card shadow baseline (avoid AdminLTE heavy shadows) */
/*.card {
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}*/

/* Icon badge */
/*.lm-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lm-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.lm-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.lm-icon-gray {
    background: #f1f5f9;
    color: #64748b;
}*/

/* Stat tile */
/*.lm-stat-tile {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}*/

/* Dots */
/*.lm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lm-dot-success {
    background: #16a34a;
}

.lm-dot-warning {
    background: #f59e0b;
}

.lm-dot-danger {
    background: #ef4444;
}*/

/* Progress bars (React thickness + radius) */
/*.lm-progress {
    height: 10px !important;
    border-radius: 999px !important;
    background: #d1d5db !important;
}

    .lm-progress .progress-bar {
        border-radius: 999px !important;
    }*/

/* Leave-type card progress (small) */
/*.lm-progress-sm {
    height: 7px !important;
    border-radius: 999px !important;
    background: #d1d5db !important;
}

    .lm-progress-sm .progress-bar {
        background: #111827 !important;
        border-radius: 999px !important;
    }

.progress-bar {
    transition: width .6s ease;
}*/

/* Stats mini cards */
/*.lm-pill {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}*/

/* Leave type cards */
/*.lm-leavetype-card {
    border-radius: 16px !important;
    transition: all .2s ease;
}

    .lm-leavetype-card:hover {
        transform: translateY(-2px);
    }

.lm-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-unlimited {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
}*/

/* Buttons */
/*.btn-outline-secondary {
    border-radius: 10px !important;
}

.btn-primary.lm-btn-primary {
    border-radius: 10px !important;
}*/

/* Table */
/*.table thead th {
    font-size: .85rem;
    font-weight: 600;
    color: #6b7280;
}

.table tbody td {
    vertical-align: middle;
}*/

/* Modal / Toast */
/*.modal-content {
    border-radius: 18px;
}

.toast {
    border-radius: 12px;
}*/

/* =========================================================
   Leave Management - shadcn/tailwind look on Bootstrap
   Load AFTER bootstrap.min.css
   ========================================================= */

:root {
    --lm-bg: #f8fafc; /* slate-50 */
    --lm-card: #ffffff;
    --lm-text: #0f172a; /* slate-900 */
    --lm-muted: #64748b; /* slate-500 */
    --lm-border: #e5e7eb; /* gray-200 */
    --lm-shadow: 0 1px 2px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.06);
    --lm-radius: 16px;
    --lm-primary: #2563eb; /* blue-600 */
    --lm-primary-hover: #1d4ed8; /* blue-700 */

    --lm-green-bg: #dcfce7;
    --lm-green-text: #15803d;
    --lm-yellow-bg: #fef9c3;
    --lm-yellow-text: #a16207;
    --lm-red-bg: #fee2e2;
    --lm-red-text: #b91c1c;
    --lm-progress-track: #e5e7eb;
    --lm-progress-fill: #0f172a; /* near-black like screenshot */
}

/* Page */
.lm-page {
    background: var(--lm-bg);
    color: var(--lm-text);
}

.lm-title {
    font-weight: 650;
    letter-spacing: -.02em;
}

.lm-subtitle {
    color: var(--lm-muted);
}

.lm-muted {
    color: var(--lm-muted);
}

/* ===== Card (shadcn-like) ===== */
.lm-card {
    background: var(--lm-card);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow);
}

.lm-card-header {
    padding: 18px 20px 0 20px;
}

.lm-card-body {
    padding: 18px 20px 20px 20px;
}

.lm-card-title {
    font-weight: 600;
    letter-spacing: -.01em;
    font-size: 1.05rem;
}

/* Top gradient cards */
.lm-card--allowance {
    border-color: #bfdbfe; /* blue-200 */
    background: linear-gradient(135deg,#eff6ff 0%,#eef2ff 100%);
}

.lm-card--timekeeping {
    border-color: #e9d5ff; /* purple-200 */
    background: linear-gradient(135deg,#faf5ff 0%,#fdf2f8 100%);
}

/* Inner stat boxes */
.lm-statbox {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 12px;
    padding: 12px 14px;
}

.lm-stat-label {
    font-size: .85rem;
    color: var(--lm-muted);
}

.lm-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lm-text);
}

/* KPI numbers */
.lm-kpi {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

    .lm-kpi.blue {
        color: var(--lm-primary);
    }

    .lm-kpi.green {
        color: #16a34a;
    }

/* ===== Progress (shadcn-ish) ===== */
.lm-progress {
    height: 12px;
    background: var(--lm-progress-track);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

    .lm-progress::after {
        /* subtle inset highlight like shadcn */
        content: "";
        position: absolute;
        inset: 0;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
        pointer-events: none;
    }

    .lm-progress > .lm-progress-bar {
        height: 100%;
        width: 0%;
        background: var(--lm-progress-fill);
        border-radius: 999px;
        transition: width .25s ease;
    }

    .lm-progress.sm {
        height: 8px;
    }

/* ===== Buttons ===== */
.lm-btn-primary {
    background: var(--lm-primary);
    border: 1px solid var(--lm-primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .lm-btn-primary:hover {
        background: var(--lm-primary-hover);
        border-color: var(--lm-primary-hover);
        color: #fff;
    }

.lm-btn-outline {
    border: 1px solid var(--lm-border);
    background: #fff;
    color: var(--lm-text);
    border-radius: 10px;
    font-weight: 700;
    padding: 9px 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .lm-btn-outline:hover {
        background: rgba(15,23,42,.04);
    }

/* Icon button (edit/delete) */
.lm-icon-btn {
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 6px 8px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .lm-icon-btn:hover {
        background: rgba(15,23,42,.06);
    }

/* Status badges */
.lm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

    .lm-badge.approved {
        background: var(--lm-green-bg);
        color: var(--lm-green-text);
    }

    .lm-badge.pending {
        background: var(--lm-yellow-bg);
        color: var(--lm-yellow-text);
    }

    .lm-badge.rejected {
        background: var(--lm-red-bg);
        color: var(--lm-red-text);
    }

/* Filter pills (supports <a> or <button>) */
.lm-filterbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lm-pill {
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid var(--lm-border);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
    text-decoration: none; /* IMPORTANT for <a> */
    display: inline-flex;
    align-items: center;
}

    .lm-pill:hover {
        background: rgba(15,23,42,.04);
        color: #0f172a;
        text-decoration: none;
    }

    .lm-pill.active {
        background: #0f172a;
        border-color: #0f172a;
        color: #fff;
    }

/* Compact stats cards */
.lm-mini {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

    .lm-mini-icon.yellow {
        background: #fef9c3;
        color: #a16207;
    }

    .lm-mini-icon.green {
        background: #dcfce7;
        color: #15803d;
    }

    .lm-mini-icon.red {
        background: #fee2e2;
        color: #b91c1c;
    }

/* Leave type icon container */
.lm-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* Unlimited label box */
.lm-unlimited {
    background: rgba(255,255,255,.55);
    border-radius: 12px;
    padding: 10px;
}

/* ===== Table (normalize Bootstrap leakage) ===== */
.table.lm-table {
    margin-bottom: 0;
}

.lm-table thead th {
    font-size: .85rem;
    color: #475569;
    font-weight: 800;
    border-bottom: 1px solid var(--lm-border) !important;
    padding: 12px 14px; /* normalize */
    background: transparent;
}

.lm-table tbody td {
    border-top: 1px solid rgba(226,232,240,.7) !important;
    vertical-align: middle;
    font-size: .92rem;
    padding: 14px; /* normalize */
}

.lm-truncate {
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action buttons in table */
.lm-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--lm-border);
    background: #fff;
    display: inline-grid;
    place-items: center;
}

    .lm-action-btn:hover {
        background: rgba(15,23,42,.04);
    }

/* Alerts */
.lm-alert {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid;
    font-size: .9rem;
}

    .lm-alert.info {
        background: #dbeafe;
        border-color: #93c5fd;
        color: #1e40af;
    }

    .lm-alert.success {
        background: #dcfce7;
        border-color: #86efac;
        color: #166534;
    }

    .lm-alert.warn {
        background: #fef9c3;
        border-color: #fde68a;
        color: #854d0e;
    }

    .lm-alert.danger {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #7f1d1d;
    }

/* Form controls inside modals */
.lm-form-control {
    border-radius: 12px !important;
    border: 1px solid var(--lm-border) !important;
    padding: 10px 12px !important;
}

    .lm-form-control:focus {
        box-shadow: 0 0 0 .2rem rgba(37,99,235,.12) !important;
        border-color: rgba(37,99,235,.35) !important;
    }

/* Utilities missing in Bootstrap */
.text-purple {
    color: #7c3aed !important;
}

.text-orange {
    color: #ea580c !important;
}

/* spacing helper */
.lm-section {
    margin-top: 18px;
}

.btn.lm-btn-primary, .btn.lm-btn-outline {
    padding: 10px 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.lm-title {
    font-size: 1.875rem; /* ~text-3xl */
    line-height: 2.25rem;
}

@media (min-width:768px) {
    .lm-title {
        font-size: 2rem;
        line-height: 2.4rem;
    }
}
.lm-title + .lm-subtitle {
    margin-top: 6px;
}
.lm-card-header {
    padding: 20px 22px 0 22px;
}

.lm-card-body {
    padding: 18px 22px 22px 22px;
}

.lm-badge.cancelled {
    background: #f1f5f9; /* slate-100 */
    color: #334155; /* slate-700 */
}

.modal-content {
    border-radius: 16px !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: var(--lm-shadow) !important;
}

.modal-header {
    padding: 18px 20px !important;
}

.modal-body {
    padding: 18px 20px !important;
}

.modal-footer {
    padding: 16px 20px !important;
    gap: 10px;
}
select.lm-form-control {
    padding-right: 2.5rem !important;
}
.lm-card .lm-card .lm-card {
    box-shadow: none;
}
.lm-table tbody td {
    color: #0f172a;
}

.lm-table tbody tr:hover {
    background: rgba(15,23,42,.02);
}
/* ===== Top panels: force equal height ===== */
.lm-top-panels > [class*="col-"] {
    display: flex;
}

.lm-top-panels .lm-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.lm-top-panels .lm-card-body {
    flex: 1;
}
/* ===== If navbar is fixed/sticky, push LM page down ===== */
.lm-page {
    padding-top: 84px; /* adjust: 72–96 depending on your navbar height */
}
@media (min-width: 992px) {
    .lm-page {
        padding-top: 84px;
    }
}

/* ===== Dark button like React ===== */
.lm-btn-dark {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .lm-btn-dark:hover {
        background: #111827;
        border-color: #111827;
        color: #fff;
    }
/* keep header action on same line */
@media (min-width: 768px) {
    .lm-header-row {
        flex-wrap: nowrap;
    }
}

.lm-btn-primary {
    white-space: nowrap;
}


/* Make leave-type cards equal height + stable layout */
.lm-leavetype-card {
    height: 100%;
}

    .lm-leavetype-card .lm-card-body {
        display: flex;
        flex-direction: column;
    }

/* Any block marked as footer goes to bottom */
.lm-leavetype-footer {
    margin-top: auto;
}

/* Give the footer a consistent minimum height (so unlimited/limited match) */
.lm-leavetype-footer {
    min-height: 56px;
}


.lm-btn-dark {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

    .lm-btn-dark:hover {
        background: #020617;
        border-color: #020617;
        color: #fff;
    }


