﻿/* ============================================== */
/* MODERN SLEEK REDESIGN                         */
/* Same sizing as original, refined aesthetics   */
/* ============================================== */

/* Google Fonts - Modern, clean typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties for easy theming */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 200ms ease;
}

/* ========================== */
/* Base Styles                */
/* ========================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--gray-50);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--gray-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container Layouts */
.container {
    width: 100%;
    max-width: 100% !important;
    padding: 0 1rem;
    margin: 0 auto;
}

.container-fluid {
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }

/* ========================== */
/* Navbar                     */
/* ========================== */

.navbar,
.navbar.navbar-dark,
.navbar.navbar-expand-lg,
nav.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 40px rgba(59, 130, 246, 0.05);
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 60px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: -0.025em;
    padding: 0;
    margin-right: 1.5rem;
}

    .navbar-brand:hover {
        color: white !important;
    }

/* Logo Box & Text */
.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}

    .logo-text:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(99, 102, 241, 0.3) 100%);
        border-color: rgba(59, 130, 246, 0.7);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        text-decoration: none;
    }

/* Nav Links */
.navbar-nav {
    align-items: center;
}

    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
    }

    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        margin: 0 2px;
        padding: 0.5rem 0.875rem;
        font-weight: 500;
        font-size: 14px;
        border-radius: var(--radius);
        transition: all var(--transition);
        display: flex;
        align-items: center;
        height: 36px;
        line-height: 1;
        white-space: nowrap;
    }

        .navbar-nav .nav-link:hover {
            color: white !important;
            background: rgba(255, 255, 255, 0.1);
        }

        .navbar-nav .nav-link.active {
            color: white !important;
            background: rgba(59, 130, 246, 0.2);
        }

        /* Dropdown Toggle Arrow */
        .navbar-nav .nav-link.dropdown-toggle::after {
            margin-left: 6px;
            vertical-align: middle;
            opacity: 0.7;
            transition: transform 0.2s ease;
            border-top: 0.3em solid;
            border-right: 0.3em solid transparent;
            border-bottom: 0;
            border-left: 0.3em solid transparent;
        }

    .navbar-nav .dropdown.show .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }

/* Dropdown Menu */
.navbar .dropdown-menu {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.25rem;
    min-width: 200px;
    animation: dropdownFadeIn 0.2s ease;
}

.navbar .dropdown-item {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 450;
    transition: all var(--transition);
}

    .navbar .dropdown-item:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
    }

.navbar .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-100);
}

.navbar .dropdown-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    padding: 0.5rem 0.875rem;
}

/* Notification Bell */
.navbar .bi-bell {
    font-size: 1.1rem;
}

/* Login/User Section */
.navbar .navbar-text,
.navbar a[href*="Logout"] {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    font-weight: 500;
}

.navbar a[href*="Logout"] {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

    .navbar a[href*="Logout"]:hover {
        background: rgba(239, 68, 68, 0.15);
        color: #fca5a5 !important;
    }

/* ========================== */
/* Buttons                    */
/* ========================== */

.btn {
    min-width: 120px;
    padding: 4px 5px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius);
    margin: 2px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.uniform-field {
    max-width: 420px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4ed8 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

    .btn-success:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    }

.btn-secondary {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

    .btn-secondary:hover {
        background: var(--gray-50);
        border-color: var(--gray-300);
    }

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    border: none;
    color: white;
}

    .btn-danger:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    }

.btn-link {
    background: transparent;
    color: var(--primary);
    min-width: auto;
    padding: 4px 8px;
}

    .btn-link:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
    }

/* ========================== */
/* Tables                     */
/* ========================== */

.short-entitlement-form .form-control,
.short-entitlement-form .form-select {
    max-width: 180px;
    width: 100%;
}

.table {
    width: 87% !important;
    table-layout: fixed;
    word-wrap: break-word;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: visible !important;
}

    .table td {
        vertical-align: middle;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .table th {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        vertical-align: middle;
        padding: 0.875rem 1rem;
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Table rounded corners */
    .table thead tr:first-child th:first-child {
        border-top-left-radius: var(--radius-lg);
    }

    .table thead tr:first-child th:last-child {
        border-top-right-radius: var(--radius-lg);
    }

    .table tbody tr:last-child td:first-child {
        border-bottom-left-radius: var(--radius-lg);
    }

    .table tbody tr:last-child td:last-child {
        border-bottom-right-radius: var(--radius-lg);
    }

    .table tbody tr {
        transition: background-color var(--transition);
    }

        .table tbody tr:hover {
            background-color: var(--primary-light);
        }

        .table tbody tr:last-child td {
            border-bottom: none;
        }

    /* Proper column label wrapping */
    .table th.word-wrap-between-words,
    .table td.word-wrap-between-words {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }

/* Equal-width columns helper */
table.table-equal-cols {
    table-layout: fixed;
    width: 100%;
}

    table.table-equal-cols th,
    table.table-equal-cols td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

        /* Allow overflow for actions dropdown cell */
        table.table-equal-cols td:last-child {
            overflow: visible;
        }

        table.table-equal-cols td .btn {
            max-width: 100%;
        }

        table.table-equal-cols td .form-check {
            min-height: 0;
        }

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    border-radius: var(--radius-lg);
}

    .table-responsive table {
        min-width: 1400px;
    }

    /* Override min-width for specific breakdown tables */
    .table-responsive .adjustments-table,
    .table-responsive .breakdown-table {
        min-width: 0;
        width: 100%;
    }

/* ========================== */
/* Forms                      */
/* ========================== */

input[type="button"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="file"],
input[type="hidden"],
input[type="image"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="range"],
input[type="reset"],
input[type="search"],
input[type="submit"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
textarea,
select {
    width: 100%;
    max-width: 350px;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--gray-700);
    background: white;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    input:hover:not(:focus),
    textarea:hover:not(:focus),
    select:hover:not(:focus) {
        border-color: var(--gray-300);
    }

.form-group .form-control {
    max-width: 350px;
    width: 100%;
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 14px;
}

select.form-control,
select.form-select {
    font-weight: 400;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Special field widths */
.adjustable-width {
    width: 350px;
    max-width: 100%;
}

.adjustable-date {
    width: 350px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Input Fields */
input,
textarea,
select {
    font-weight: 400;
}

    /* Placeholders */
    input::placeholder,
    textarea::placeholder {
        color: var(--gray-400);
        opacity: 1;
    }

/* IntlTelInput */
.iti {
    width: 100%;
}

    .iti input {
        width: 100%;
        max-width: 600px;
    }

/* ========================== */
/* Footer                     */
/* ========================== */

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.6);
    height: 60px;
    line-height: 60px;
    text-align: center;
    position: relative;
    width: 100%;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

    .footer a {
        color: rgba(255, 255, 255, 0.8);
    }

        .footer a:hover {
            color: white;
        }

/* ========================== */
/* Custom Section             */
/* ========================== */

.section-box {
    background-color: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

    .section-box:hover {
        box-shadow: var(--shadow-md);
    }

/* ========================== */
/* Status Colors              */
/* ========================== */

.text-success,
td:contains("Active") {
    color: var(--success) !important;
    font-weight: 500;
}

/* ========================== */
/* Utility Classes            */
/* ========================== */

.text-center {
    text-align: center !important;
}

.text-primary {
    color: var(--primary) !important;
}

.w-100 {
    width: 100% !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* ========================== */
/* Toolbar / Filters          */
/* ========================== */

.toolbar-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.toolbar-left {
    grid-column: 1 / span 6;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.toolbar-middle {
    grid-column: 7;
    justify-self: start;
    font-size: .95rem;
    opacity: .85;
}

.toolbar-right {
    grid-column: 9;
    justify-self: end;
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* ========================== */
/* Schedule / Calendar Style  */
/* ========================== */

.wk {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
}

    .wk .head {
        font-weight: 600;
        padding: 8px 10px;
        border-bottom: 1px solid var(--gray-200);
        background: white;
    }

        .wk .head .dom {
            font-size: 1.15rem;
            line-height: 1;
            color: var(--primary);
        }

        .wk .head .dow {
            font-size: .85rem;
            color: var(--gray-500);
            margin-top: 2px;
        }

    .wk .tcol {
        background: var(--gray-50);
        border-right: 1px solid var(--gray-200);
    }

    .wk .day {
        position: relative;
        border-right: 1px solid var(--gray-200);
        background: var(--gray-50);
    }

    .wk .times .hr {
        height: 60px;
        border-top: 1px solid var(--gray-200);
        font-size: .95rem;
        color: var(--gray-500);
        padding-top: 2px;
        padding-right: 6px;
        text-align: right;
    }

    .wk .canvas {
        position: relative;
        background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 1px, transparent 1px, transparent 30px, rgba(0, 0, 0, 0.08) 30px, rgba(0, 0, 0, 0.08) 31px, transparent 31px, transparent 60px);
    }

    .wk .event {
        position: absolute;
        left: 6px;
        right: 6px;
        border: 1px solid rgba(59, 130, 246, 0.3);
        background: var(--primary-light);
        border-radius: var(--radius);
        padding: 6px 8px;
        font-size: .9rem;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

        .wk .event.overlap {
            border-color: var(--primary);
            background: #dbeafe;
            box-shadow: var(--shadow), inset 0 0 0 2px rgba(59, 130, 246, 0.2);
        }

/* ========================== */
/* Enter Commission view      */
/* ========================== */

.compact-card {
    padding: 1rem 1.25rem !important;
}

.compact-table th, .compact-table td {
    padding: 0.4rem 0.5rem !important;
}

.saved-table td {
    padding: 0.35rem 0.5rem !important;
}

.header-field {
    max-width: 80% !important;
    display: inline-block;
}

.header-label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.header-row > div {
    padding-right: 0.5rem;
    padding-left: 0.25rem;
}

.counts-header {
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.date-group {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.date-header {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-totals {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.filter-row {
    max-width: 720px;
    margin-bottom: 1rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.saved-table {
    max-width: 720px;
}

/* ========================== */
/* ViewVarienceForPeriod view */
/* ========================== */

.severity-cell {
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
}

.severity-high {
    background-color: var(--danger);
}

.severity-medium {
    background-color: var(--warning);
}

.severity-low {
    background-color: #eab308;
}

.severity-ok {
    background-color: var(--success);
}

/* ========================== */
/* Approval/Details view      */
/* ========================== */

.period-summary-table {
    width: 100% !important;
    table-layout: auto !important;
}

    .period-summary-table td:first-child {
        text-align: left !important;
        padding-left: 0.5rem !important;
        width: 70% !important;
        white-space: nowrap;
        vertical-align: middle;
    }

    .period-summary-table td:last-child {
        text-align: right !important;
        padding-right: 0.5rem !important;
        width: 30% !important;
        white-space: nowrap;
    }

    .period-summary-table td a.btn-link {
        padding: 0 !important;
        margin: 0 !important;
    }

    .period-summary-table td:first-child > a {
        display: inline;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        width: auto !important;
    }

/* ========================== */
/* Adjustments Breakdown      */
/* ========================== */

.adjustments-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
}

    .adjustments-table th.col-employee {
        width: 70%;
    }

    .adjustments-table th.col-amount {
        width: 30%;
        text-align: right;
    }

    /* Row containing the expandable details */
    .adjustments-table .detail-row > td {
        padding: 0 !important;
        background: transparent;
    }

    /* Summary line (employee name + amount) */
    .adjustments-table details > summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.5rem;
        cursor: pointer;
        list-style: none;
        border-radius: var(--radius-sm);
        transition: background-color var(--transition);
    }

        .adjustments-table details > summary:hover {
            background-color: var(--gray-50);
        }

        .adjustments-table details > summary::-webkit-details-marker {
            display: none;
        }

        .adjustments-table details > summary::before {
            content: "▶";
            display: inline-block;
            margin-right: 0.5rem;
            font-size: 0.7rem;
            color: var(--gray-400);
            transition: transform var(--transition);
        }

    .adjustments-table details[open] > summary::before {
        transform: rotate(90deg);
    }

    .adjustments-table details summary .adjustment-toggle {
        color: var(--primary);
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        flex: 1;
    }

        .adjustments-table details summary .adjustment-toggle:hover {
            text-decoration: underline;
        }

    .adjustments-table details summary .amount-value {
        min-width: 100px;
        text-align: right;
        font-weight: 500;
    }

    /* Expanded content container */
    .adjustments-table .details-content {
        margin: 0.5rem 0 0.5rem 1.5rem;
        padding: 0.5rem;
        background-color: var(--gray-50);
        border-radius: var(--radius);
        border-left: 3px solid var(--primary-light);
    }

    /* Inner table for adjustment details */
    .adjustments-table .inner-table {
        width: 100% !important;
        table-layout: fixed !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

        .adjustments-table .inner-table th,
        .adjustments-table .inner-table td {
            padding: 0.3rem 0.5rem !important;
        }

            .adjustments-table .inner-table th:first-child,
            .adjustments-table .inner-table td:first-child {
                width: 70%;
                text-align: left;
            }

            .adjustments-table .inner-table th:last-child,
            .adjustments-table .inner-table td:last-child {
                width: 30%;
                text-align: right;
            }

    /* Footer row styling */
    .adjustments-table tfoot tr {
        background-color: var(--gray-100);
    }

    .adjustments-table tfoot td {
        padding: 0.4rem 0.5rem !important;
    }

/* ========================== */
/* Actions Dropdown           */
/* ========================== */

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-btn {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 6px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--gray-500);
    line-height: 1;
    transition: all var(--transition);
    min-width: auto;
}

    .actions-btn:hover {
        background-color: var(--gray-50);
        border-color: var(--gray-300);
        color: var(--gray-700);
    }

.actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 160px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1050 !important;
    padding: 4px;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-dropdown.open .actions-menu {
    display: block;
}

.actions-menu a,
.actions-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    min-width: auto;
    margin: 0;
    transition: background-color var(--transition);
}

    .actions-menu a:hover,
    .actions-menu button:hover {
        background-color: var(--gray-100);
    }

.actions-menu .text-danger {
    color: var(--danger) !important;
}

    .actions-menu .text-danger:hover {
        background-color: #fef2f2;
    }

.actions-menu .divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 4px 0;
}

/* ========================== */
/* Employee Name Link         */
/* ========================== */

.employee-name-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
    text-align: left;
    min-width: auto !important;
    transition: color var(--transition);
}

    .employee-name-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* ========================== */
/* Actions Menu Form Button   */
/* ========================== */

.actions-menu-form {
    margin: 0;
    padding: 0;
}

    .actions-menu-form button {
        display: block;
        width: 100%;
        padding: 8px 12px !important;
        text-align: left;
        background: none;
        border: none;
        border-radius: var(--radius-sm);
        color: var(--gray-700);
        text-decoration: none;
        font-size: 0.875rem;
        cursor: pointer;
        white-space: nowrap;
        min-width: auto !important;
        margin: 0;
        max-width: none !important;
        font-family: inherit;
        transition: background-color var(--transition);
    }

        .actions-menu-form button:hover {
            background-color: var(--gray-100);
        }

/* ========================== */
/* Animation                  */
/* ========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-box,
.table {
    animation: fadeIn 0.3s ease-out;
}

/* ========================== */
/* Responsive Adjustments     */
/* ========================== */

@media (max-width: 768px) {
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 13px;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ========================== */
/* Print Styles               */
/* ========================== */

@media print {
    .navbar,
    .footer,
    .actions-dropdown,
    .btn {
        display: none !important;
    }

    .table {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: white;
    }
}
