@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v23-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

html,
body {
font-family: 'Poppins', sans-serif;
background: #f9f9f9;
overscroll-behavior: none;
color: #081c3e;
touch-action: manipulation;
}


/**** RFID ****/

:root {
    --rfid-primary: #23602b;
    --rfid-primary-dark: #17321f;
    --rfid-accent: #804631;
    --rfid-soft: #f7faf2;
    --rfid-border: #e5ddc8;
    --rfid-text: #17321f;
    --rfid-muted: #64715c;
    --rfid-success: #16a34a;
    --rfid-danger: #dc2626;
    --rfid-shadow: 0 18px 50px rgba(57, 40, 22, 0.09);
    --rfid-radius: 18px;
}

.rfid-public-page {
    min-height: 100vh;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(247, 248, 241, 0.96) 0%, rgba(251, 250, 244, 0.94) 46%, #ffffff 100%),
        linear-gradient(135deg, rgba(35, 96, 43, 0.1), rgba(128, 70, 49, 0.08));
    color: var(--rfid-text);
}

.rfid-public-hero {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(220px, 300px);
    gap: 18px;
    align-items: center;
    max-width: 1480px;
    margin: 0 auto 22px;
    padding: 20px 22px;
    border: 1px solid var(--rfid-border);
    border-radius: var(--rfid-radius);
    background:
        linear-gradient(135deg, rgba(23, 50, 31, 0.98), rgba(35, 96, 43, 0.94) 56%, rgba(128, 70, 49, 0.9)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    color: #fff;
    box-shadow: 0 22px 60px rgba(23, 50, 31, 0.16);
}

.rfid-brand-mark {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.rfid-brand-mark img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.rfid-public-heading span,
.rfid-public-clock span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 250, 236, 0.78);
}

.rfid-public-heading h1 {
    margin: 7px 0 4px;
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.rfid-public-heading p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 250, 236, 0.86);
    font-size: 15px;
    line-height: 1.55;
}

.rfid-public-clock {
    min-height: 104px;
    padding: 16px 18px;
    border: 1px solid rgba(251, 244, 223, 0.24);
    border-radius: 12px;
    background: rgba(251, 244, 223, 0.12);
}

.rfid-public-clock strong {
    display: block;
    margin-top: 8px;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: 0;
}

.rfid-public-clock small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 250, 236, 0.82);
    font-size: 13px;
    line-height: 1.35;
}

.rfid-public-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .75fr);
    gap: 22px;
    max-width: 1480px;
    margin: 0 auto;
}

.rfid-dashboard-page {
    background:
        linear-gradient(180deg, #f4f9ff 0%, #f4f8f3 45%, #ffffff 100%);
    color: #0f172a;
}

.rfid-dashboard-page.main-content.with-header {
    display: block;
    margin-right: 0;
    padding-bottom: 42px;
}

.rfid-attendance-hero {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: end;
    gap: 20px;
    padding: 34px 38px;
    background:
        linear-gradient(135deg, rgba(27, 76, 37, 0.95), rgba(39, 95, 45, 0.9) 52%, rgba(116, 85, 38, 0.9)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    color: #fff;
    border: 1px solid rgba(251, 244, 223, 0.22);
}

.rfid-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(251, 244, 223, 0.34);
    border-radius: 999px;
    background: rgba(251, 244, 223, 0.12);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rfid-attendance-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.08;
}

.rfid-attendance-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 250, 236, 0.92);
    font-size: 15px;
    line-height: 1.55;
}

.rfid-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.rfid-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(251, 244, 223, 0.3);
    border-radius: 8px;
    background: rgba(251, 244, 223, 0.16);
    color: #fff8e8;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.rfid-hero-action.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.rfid-live-state {
    justify-self: end;
    min-width: 230px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(251, 244, 223, 0.12);
    border: 1px solid rgba(251, 244, 223, 0.24);
    color: #fff;
}

.rfid-live-state span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: rgba(255, 250, 236, 0.88);
}

.rfid-live-meta {
    font-size: 13px;
    color: rgba(255, 250, 236, 0.82);
    line-height: 1.2;
}

.rfid-live-meta.large {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .02em;
}

.rfid-dashboard-shell {
    padding: 0 38px;
}

.rfid-kiosk-card,
.rfid-log-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
    border: 1px solid var(--rfid-border);
    border-radius: var(--rfid-radius);
    box-shadow: var(--rfid-shadow);
    overflow: hidden;
}

.rfid-kiosk-card {
    padding: 28px;
    min-height: 100%;
}

.rfid-log-card {
    padding: 24px;
    height: 100%;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rfid-primary);
    margin-bottom: 10px;
}

.rfid-topbar {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.rfid-topbar h3 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    color: var(--rfid-text);
}

.rfid-topbar p {
    margin: 0;
    color: var(--rfid-muted);
    font-size: 15px;
}

.rfid-clock-card {
    min-width: 240px;
    border-radius: 22px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #FFF, #FFF);
    color: #000;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.clock-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .7;
    margin-bottom: 8px;
}

.clock-time {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}

.clock-date {
    font-size: 14px;
    opacity: .85;
}

.rfid-scan-panel {
    position: relative;
    border-radius: 16px;
    padding: 54px 26px 34px;
    background:
        radial-gradient(circle at top center, rgba(35, 96, 43, .14) 0%, rgba(35, 96, 43, 0) 42%),
        linear-gradient(180deg, #fbf8ef 0%, #f7faf2 100%);
    border: 1px solid #e8dfc9;
    text-align: center;
    overflow: hidden;
}

.rfid-scan-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(128, 70, 49, 0.14);
    filter: blur(60px);
    border-radius: 50%;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.rfid-scan-icon {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    border-radius: 18px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #23602b, #804631);
    color: #fff;
    font-size: 44px;
    box-shadow: 0 20px 44px rgba(35, 96, 43, 0.22);
}

.rfid-scan-text h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: 42px;
    font-weight: 900;
    color: var(--rfid-text);
}

.rfid-scan-text p {
    position: relative;
    z-index: 2;
    margin: 0 0 26px;
    font-size: 16px;
    color: var(--rfid-muted);
}

.rfid-input-area {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto 18px;
}

.rfid-input {
    height: 64px !important;
    border-radius: 12px !important;
    border: 1px solid #e1d7c0 !important;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.rfid-input:focus {
    border-color: rgba(35, 96, 43, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(35, 96, 43, .11) !important;
}

.rfid-helper-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 24px;
}

.helper-chip {
    background: rgba(255, 255, 255, .76);
    border: 1px solid #e8dfc9;
    color: #34513b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.rfid-submit-btn {
    position: relative;
    z-index: 2;
    min-width: 250px;
    border: 0;
    border-radius: 16px;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #804631, #804631);
    box-shadow: 0 14px 28px rgba(59,130,246,.25);
    transition: all .2s ease;
}

.rfid-submit-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.rfid-response-box {
    margin-top: 18px;
}

.rfid-status-card {
    border-radius: 12px;
    padding: 20px 22px;
    color: #fff;
    box-shadow: 0 12px 26px rgba(15,23,42,.12);
}

.rfid-status-card.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.rfid-status-card.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.rfid-status-card h4 {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 22px;
}

.rfid-status-card p {
    margin: 0;
    opacity: .96;
    font-size: 15px;
}

.rfid-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rfid-log-header h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--rfid-text);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.live-pill span {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.attendance-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 4px;
}

.attendance-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    border: 1px solid #e8dfc9;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
    border-radius: 10px;
    transition: .2s ease;
}

.attendance-log-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15,23,42,.05);
}

.attendance-log-item .name {
    font-weight: 800;
    color: var(--rfid-text);
    margin-bottom: 4px;
}

.attendance-log-item .meta {
    font-size: 13px;
    color: var(--rfid-muted);
}

.log-badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.log-badge.time-in {
    background: #ecfdf3;
    color: #15803d;
}

.log-badge.time-out {
    background: #fff1f2;
    color: #be123c;
}

.empty-state {
    color: var(--rfid-muted);
    padding: 18px 0;
    text-align: center;
}

@media (max-width: 991px) {
    .rfid-public-page {
        padding: 20px;
    }

    .rfid-public-hero {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .rfid-public-clock {
        grid-column: 1 / -1;
    }

    .rfid-public-shell {
        grid-template-columns: 1fr;
    }

    .rfid-attendance-hero {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .rfid-live-state {
        justify-self: stretch;
        min-width: 0;
    }

    .rfid-topbar {
        flex-direction: column;
    }

    .rfid-clock-card {
        min-width: 100%;
    }

    .rfid-scan-text h1 {
        font-size: 34px;
    }
}

@media (max-width: 575px) {
    .rfid-public-page {
        padding: 12px;
    }

    .rfid-public-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
    }

    .rfid-brand-mark {
        width: 58px;
        height: 58px;
        border-radius: 12px;
    }

    .rfid-brand-mark img {
        width: 46px;
        height: 46px;
    }

    .rfid-public-heading h1 {
        font-size: 34px;
    }

    .rfid-public-heading p {
        font-size: 14px;
    }

    .rfid-public-clock {
        min-height: auto;
        padding: 14px;
    }

    .rfid-public-clock strong {
        font-size: 28px;
    }

    .rfid-attendance-hero {
        margin-top: 0;
        margin-bottom: 18px;
        padding: 22px 16px;
    }

    .rfid-kiosk-card,
    .rfid-log-card {
        padding: 16px;
        border-radius: 14px;
    }

    .rfid-dashboard-shell {
        padding: 0 16px;
    }

    .rfid-attendance-hero p {
        font-size: 14px;
    }

    .rfid-hero-actions {
        gap: 8px;
    }

    .rfid-hero-action {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        justify-content: center;
    }

    .rfid-scan-panel {
        padding: 32px 14px 22px;
        border-radius: 12px;
    }

    .rfid-scan-icon {
        width: 88px;
        height: 88px;
        font-size: 36px;
    }

    .rfid-scan-text h1 {
        font-size: 28px;
    }

    .clock-time {
        font-size: 24px;
    }

    .rfid-submit-btn {
        width: 100%;
        min-width: 100%;
    }
}

.team-profile-card,
.team-edit-card {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.team-profile-card {
    position: sticky;
    top: 20px;
}

.team-cover {
    height: 110px;
    background: linear-gradient(135deg, #804631, #9c5a3e, #b06b4a);
}

.team-profile-content {
    padding: 0 24px 24px;
    text-align: center;
    margin-top: -52px;
}

.team-avatar-wrap {
    margin-bottom: 16px;
}

.team-avatar-img,
.team-avatar-fallback {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar-fallback {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.team-profile-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.team-role {
    color: #64748b;
    margin-bottom: 16px;
}

.team-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.team-badge {
    background: #eff6ff;
    color: #334155;
    border: 1px solid #dbeafe;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.team-badge.status {
    background: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}

.team-stats {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.team-stat-box {
    text-align: left;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
}

.team-stat-box span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 4px;
}

.team-stat-box strong {
    color: #0f172a;
    font-size: 15px;
}

.team-edit-card {
    padding: 28px;
}

.edit-section + .edit-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #eef2f7;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

.section-title i {
    color: #804631;
}

.team-edit-card .form-control,
.team-edit-card .form-select {
    border-radius: 14px;
    min-height: 48px;
    border-color: #dbe3ee;
    box-shadow: none;
}

.team-edit-card textarea.form-control {
    min-height: auto;
}

.team-edit-card .form-control:focus,
.team-edit-card .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.team-edit-card .form-label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.edit-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.system-note {
    color: #64748b;
    font-size: 14px;
}

.save-btn {
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 700;
    background-color: #2b602b !important;
    border: 1px solid #2b602b;
}

@media (max-width: 991px) {
    .team-profile-card {
        position: relative;
        top: 0;
    }
}

.admin-page .navigation-title {
  font-size: 14px;
  opacity: 0.6;
  font-weight: 500;
  margin-bottom: 10px;
}

.management-switcher {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.management-switcher .switch-btn {
    min-width: 180px;
    border: 1px solid #284d7a;
    background: #fff;
    color: #284d7a;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.management-switcher .switch-btn:hover {
    background: #f5f8fc;
}

.management-switcher .switch-btn.active {
    background: #4cc38a;
    border-color: #4cc38a;
    color: #fff;
}

.tab-pane-custom {
    display: none;
}

.tab-pane-custom.active {
    display: block;
}

.management-switcher {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.management-switcher .switch-btn {
    min-width: 180px;
    border: 1px solid #804631;
    background: #fff;
    color: #804631;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.management-switcher .switch-btn:hover {
    background: #f5f8fc;
}

.management-switcher .switch-btn.active {
    background: #804631;
    border-color: #804631;
    color: #fff;
}

.tab-pane-custom {
    display: none;
}

.tab-pane-custom.active {
    display: block;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.table-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    color: #495057;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.table-icon-btn:hover {
    transform: translateY(-1px);
    background: #f8f9fa;
    color: #212529;
}

.table-icon-btn i {
    font-size: 15px;
    line-height: 1;
}

.table-icon-btn.delete {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.18);
}

.table-icon-btn.delete:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #bb2d3b;
}

.employee-account-toggle-wrap .employee-status-label {
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
}

.employee-status-label.active {
    color: #198754; /* green */
}

.employee-status-label.disabled {
    color: #dc3545; /* red */
}

.form-check-input {
    width: 2em !important;
    height: 1em !important;
    border-radius: 2em !important;
    background-color: #dee2e6;
}

.form-check-input:checked {
    background-color: #0d6efd !important;
    border: #0d6efd;
}

.attendance-profile-card,
.attendance-tabs-card {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(8, 28, 62, 0.05);
    overflow: hidden;
}

.attendance-profile-card {
    position: sticky;
    top: 20px;
}

.attendance-cover {
    height: 96px;
    background: linear-gradient(135deg, #804631, #9c5a3e, #b06b4a);
}

.attendance-profile-content {
    padding: 0 22px 22px;
    text-align: center;
    margin-top: -46px;
}

.attendance-avatar-wrap {
    margin-bottom: 14px;
}

.attendance-avatar-img,
.attendance-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(128, 70, 49, 0.15);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attendance-avatar-fallback {
    background: linear-gradient(135deg, #804631, #9c5a3e);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.attendance-profile-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #081c3e;
    margin-bottom: 4px;
}

.attendance-role {
    color: #6c757d;
    margin-bottom: 14px;
    font-size: 14px;
}

.attendance-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.attendance-badge {
    background: #f8f5f2;
    color: #804631;
    border: 1px solid #eadfd8;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.attendance-badge.status {
    background: #f7f7f7;
    color: #495057;
    border-color: #e6e6e6;
}

.attendance-stats {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.attendance-stat-box {
    text-align: left;
    padding: 13px 15px;
    background: #fafafa;
    border: 1px solid #edf0f3;
    border-radius: 14px;
}

.attendance-stat-box span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7b8794;
    margin-bottom: 4px;
}

.attendance-stat-box strong {
    color: #081c3e;
    font-size: 14px;
    font-weight: 700;
}

.attendance-tabs-card {
    padding: 0;
    background: #fff;
}

.attendance-tabs-shell {
    background: #f4f4f5;
}

.attendance-tabs-nav {
    display: flex;
    align-items: flex-end;
    gap: 0;
    white-space: nowrap;
}

.attendance-tab-link {
    display: inline-block;
    padding: 14px 18px 12px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid transparent;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
    top: 1px;
    transition: all 0.2s ease;
}

.attendance-tab-link:hover {
    color: #804631;
    text-decoration: none;
}

.attendance-tab-link.active {
    background: #804631;
    color: #fff;
    font-weight: 700;
}

.attendance-tab-body {
    padding: 22px 22px 26px;
}

.attendance-filter-row {
    margin-bottom: 22px;
}

.attendance-filter-row .form-label {
    font-weight: 600;
    color: #081c3e;
    margin-bottom: 7px;
    font-size: 14px;
}

.attendance-filter-row .form-control {
    border-radius: 10px;
    min-height: 46px;
    border-color: #d8dee6;
    box-shadow: none;
}

.attendance-filter-row .form-control:focus {
    border-color: #804631;
    box-shadow: 0 0 0 3px rgba(128, 70, 49, 0.08);
}

.attendance-filter-row .btn-primary {
    background: #2b602b00;
    border-color: #804631;
    color: #804631;
    border-radius: 10px;
    min-height: 46px;
    font-weight: 600;
}

.attendance-tab-content .tab-loading {
    color: #6c757d;
    text-align: center;
    padding: 40px 0;
}

.summary-cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-card {
    background: #fafafa;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    padding: 16px;
}

.summary-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7b8794;
    font-weight: 700;
    margin-bottom: 6px;
}

.summary-card strong {
    font-size: 22px;
    font-weight: 700;
    color: #081c3e;
}

.attendance-record-table-wrap {
    overflow-x: auto;
}

.attendance-record-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-record-table th {
    font-size: 13px;
    color: #6c757d;
    padding: 12px 14px;
    font-weight: 700;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.attendance-record-table td {
    padding: 14px;
    font-weight: 500;
    color: #081c3e;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.status-badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.present {
    background: #ecfdf3;
    color: #15803d;
}

.status-badge.incomplete {
    background: #fff7ed;
    color: #c2410c;
}

.placeholder-panel {
    background: #fafafa;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    padding: 22px;
}

.placeholder-panel h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #081c3e;
}

.placeholder-panel p {
    color: #6c757d;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .attendance-profile-card {
        position: relative;
        top: 0;
    }

    .summary-cards-row {
        grid-template-columns: 1fr;
    }
}

.dataTables_filter {
    width: 100%;
    margin-bottom: 16px;
}

.dataTables_filter label {
    width: 100%;
    display: flex;
}

.dataTables_filter input {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d9dee6;
    font-size: 14px;
}

/** Payroll **/

/* Tabs button override */
.attendance-tabs-shell .btn-primary {
    background: transparent; /* fixed: rgba(128,70,49,0) */
    border-color: #2b602b;
    color: #2b602b;
    border-radius: 10px;
    min-height: 40px;
    font-weight: 600;
    text-align: center;
    transition: 0.2s ease;
}

.attendance-tabs-shell .btn-primary:hover {
    background: #2b602b;
    color: #fff;
}

/* Card wrapper */
.payroll-form-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Header */
.payroll-header {
    background: #f8fafc;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f6;
}

/* Left section */
.payroll-header .left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #eef2f7;
    color: #001b4f;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.back-btn:hover {
    background: #e2e8f0;
}

/* Title */
.title-group h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.title-group p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Right button */
.payroll-header .right .btn {
    border-radius: 8px;
    padding: 6px 14px;
    background-color: #804631;
    border: 1px solid #804631;
    font-weight: 600;
    transition: 0.2s ease;
}

.payroll-header .right .btn:hover {
    background-color: #6b3a2c;
    border-color: #6b3a2c;
}

/** Schedule Page **/

.schedule-page {
    font-family: 'Poppins', sans-serif;
    color: #081c3e;
}

.schedule-page.main-content {
    width: 100%;
    overflow-x: hidden;
}

.schedule-page .container {
    max-width: 100%;
}

.schedule-page .schedule-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.schedule-page .schedule-summary-card,
.schedule-page .schedule-calendar-card {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(8, 28, 62, 0.05);
}

.schedule-page .schedule-summary-card {
    padding: 18px;
}

.schedule-page .schedule-summary-card span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7b8794;
    margin-bottom: 6px;
}

.schedule-page .schedule-summary-card strong {
    color: #081c3e;
    font-size: 26px;
    font-weight: 800;
    display: block;
}

.schedule-page .schedule-summary-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.schedule-page .schedule-summary-card.warning strong {
    color: #c2410c;
}

.schedule-page .schedule-calendar-card {
    padding: 18px;
    overflow: hidden;
}

.schedule-page .schedule-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.schedule-page .schedule-calendar-toolbar h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #081c3e;
}

.schedule-page .schedule-today-btn,
.schedule-page .schedule-month-actions button {
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 6px;
    height: 38px;
    padding: 0 16px;
    font-weight: 700;
}

.schedule-page .schedule-month-actions {
    display: flex;
    gap: 8px;
}

.schedule-page .schedule-month-actions button {
    width: 42px;
    padding: 0;
}

.schedule-page .schedule-calendar-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.schedule-page .schedule-calendar-filters .form-control,
.schedule-page .schedule-calendar-filters .form-select {
    width: auto;
    min-width: 220px;
    border-radius: 10px;
    min-height: 42px;
}

.schedule-page .schedule-legend-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.schedule-page .schedule-legend-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.schedule-page .schedule-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    background: #64748b;
}

.schedule-page .schedule-dot.personal { background: #804631; }
.schedule-page .schedule-dot.visitor { background: #1d4ed8; }
.schedule-page .schedule-dot.vehicle { background: #15803d; }
.schedule-page .schedule-dot.arrived { background: #7c3aed; }
.schedule-page .schedule-dot.completed { background: #0f766e; }

.schedule-page .schedule-calendar-wrap {
    overflow-x: auto;
}

.schedule-page .schedule-calendar-weekdays,
.schedule-page .schedule-calendar-grid {
    min-width: 980px;
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.schedule-page .schedule-calendar-weekdays div {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 14px 8px;
    font-weight: 800;
    font-size: 14px;
}

.schedule-page .schedule-day-cell {
    min-height: 155px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 8px;
    position: relative;
}

.schedule-page .schedule-day-cell.is-empty {
    background: #fafafa;
}

.schedule-page .schedule-day-cell.is-today {
    background: #ecfdf5;
}

.schedule-page .schedule-day-number {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #081c3e;
    margin-bottom: 8px;
}

.schedule-page .schedule-day-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-page .schedule-calendar-event {
    border: 1px solid #0f2f6f;
    background: #f8fbff;
    color: #001b4f;
    border-radius: 6px;
    padding: 7px 8px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: .2s ease;
}

.schedule-page .schedule-calendar-event:hover {
    transform: translateY(-1px);
    background: #eef6ff;
}

.schedule-page .schedule-calendar-event span,
.schedule-page .schedule-calendar-event small,
.schedule-page .schedule-calendar-event em {
    display: block;
}

.schedule-page .schedule-calendar-event small {
    margin-top: 4px;
    color: #64748b;
}

.schedule-page .schedule-calendar-event em {
    margin-top: 3px;
    color: #334155;
    font-size: 10px;
    font-style: normal;
    opacity: .85;
}

.schedule-page .schedule-calendar-event.personal {
    border-color: #804631;
    background: #f8f5f2;
}

.schedule-page .schedule-calendar-event.visitor {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.schedule-page .schedule-calendar-event.vehicle {
    border-color: #15803d;
    background: #ecfdf3;
}

.schedule-page .schedule-calendar-event.arrived {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.schedule-page .schedule-calendar-event.completed {
    border-color: #0f766e;
    background: #f0fdfa;
}

.schedule-page .schedule-calendar-event.cancelled,
.schedule-page .schedule-calendar-event.no_show {
    opacity: .55;
    text-decoration: line-through;
}

.schedule-page .schedule-more-count,
.schedule-page .schedule-calendar-loading {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
}

.schedule-page .schedule-calendar-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 0;
}

.schedule-page .schedule-add-btn,
.schedule-page .schedule-save-btn,
.schedule-page .schedule-edit-details-btn,
.schedule-page .schedule-print-details-btn,
.schedule-page .schedule-arrive-btn,
.schedule-page .schedule-left-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.schedule-page .schedule-add-btn,
.schedule-page .schedule-save-btn,
.schedule-page .schedule-edit-details-btn {
    background: #804631;
}

.schedule-page .schedule-print-details-btn {
    background: #111827;
}

.schedule-page .schedule-arrive-btn {
    background: #15803d;
}

.schedule-page .schedule-left-btn {
    background: #0f766e;
}

.schedule-page .schedule-delete-details-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.schedule-page .schedule-modal-content,
.schedule-page .schedule-details-content,
.schedule-page .schedule-receipt-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

.schedule-page .schedule-modal-header {
    background: linear-gradient(135deg, #804631, #9c5a3e);
    color: #fff;
    padding: 22px;
}

.schedule-page .schedule-modal-header h5 {
    font-weight: 800;
    margin: 0 0 5px;
}

.schedule-page .schedule-modal-header p {
    margin: 0;
    opacity: .9;
    font-size: 14px;
}

.schedule-page .schedule-modal-footer {
    border-top: 1px solid #eef2f7;
    padding: 18px 22px;
}

.schedule-page .form-label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
    font-size: 14px;
}

.schedule-page .form-control,
.schedule-page .form-select {
    border-radius: 12px;
    min-height: 46px;
    border-color: #d8dee6;
    box-shadow: none;
}

.schedule-page .form-control:focus,
.schedule-page .form-select:focus {
    border-color: #804631;
    box-shadow: 0 0 0 3px rgba(128, 70, 49, 0.08);
}

.schedule-page .schedule-details-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(128,70,49,.95), rgba(8,28,62,.90));
    color: #fff;
    padding: 24px;
}

.schedule-page .schedule-details-hero .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.schedule-page .schedule-details-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.schedule-page .schedule-details-hero-content i {
    font-size: 28px;
    line-height: 1;
    margin-top: 8px;
}

.schedule-page .schedule-details-hero-content h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.schedule-page .schedule-details-body {
    padding: 24px;
}

.schedule-page .schedule-detail-clean h3 {
    font-size: 22px;
    font-weight: 800;
    color: #081c3e;
    margin: 0 0 10px;
}

.schedule-page .schedule-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.schedule-page .schedule-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.schedule-page .schedule-detail-box {
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 14px;
    padding: 13px 14px;
}

.schedule-page .schedule-detail-box span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 5px;
}

.schedule-page .schedule-detail-box strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #081c3e;
    word-break: break-word;
}

.schedule-page .schedule-detail-full {
    grid-column: 1 / -1;
}

.schedule-page .schedule-notes-box {
    margin-top: 6px;
    min-height: 48px;
    background: #fff;
    border: 1px dashed #d8dee6;
    border-radius: 12px;
    padding: 14px;
    color: #64748b;
    font-size: 14px;
    white-space: pre-wrap;
}

.schedule-page .schedule-details-footer {
    padding: 16px 24px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
    flex-wrap: wrap;
}

.schedule-page .schedule-type-badge,
.schedule-page .schedule-status-badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.schedule-page .schedule-type-badge.personal { background: #f8f5f2; color: #804631; }
.schedule-page .schedule-type-badge.visitor { background: #eff6ff; color: #1d4ed8; }
.schedule-page .schedule-type-badge.vehicle { background: #ecfdf3; color: #15803d; }
.schedule-page .schedule-status-badge.approved { background: #ecfdf3; color: #15803d; }
.schedule-page .schedule-status-badge.pending { background: #fff7ed; color: #c2410c; }
.schedule-page .schedule-status-badge.arrived { background: #f5f3ff; color: #7c3aed; }
.schedule-page .schedule-status-badge.completed { background: #eff6ff; color: #1d4ed8; }
.schedule-page .schedule-status-badge.cancelled { background: #fff1f2; color: #be123c; }
.schedule-page .schedule-status-badge.no_show { background: #fef2f2; color: #991b1b; }

.schedule-page .schedule-time-slot-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 14px;
    padding: 14px;
}

.schedule-page .schedule-time-slot {
    border: 1px solid #d8dee6;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.schedule-page .schedule-time-slot:hover {
    transform: translateY(-1px);
    border-color: #804631;
}

.schedule-page .schedule-time-slot span {
    display: block;
    font-weight: 800;
    color: #081c3e;
    font-size: 13px;
}

.schedule-page .schedule-time-slot small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #15803d;
    font-weight: 700;
}

.schedule-page .schedule-time-slot.active {
    border-color: #804631;
    background: #804631;
}

.schedule-page .schedule-time-slot.active span,
.schedule-page .schedule-time-slot.active small {
    color: #fff;
}

.schedule-page .schedule-time-slot.is-booked {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .6;
}

.schedule-page .schedule-time-slot.is-booked span,
.schedule-page .schedule-time-slot.is-booked small {
    color: #94a3b8;
}

.schedule-page .schedule-time-slot-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 14px;
    color: #64748b;
    font-weight: 700;
}

.schedule-page .schedule-slot-helper {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-weight: 600;
}

.schedule-page .schedule-receipt-print {
    background: #fff;
    color: #111827;
}

.schedule-page .receipt-header {
    text-align: center;
    border-bottom: 2px solid #111827;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.schedule-page .receipt-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.schedule-page .receipt-header p {
    margin: 0;
    color: #64748b;
}

.schedule-page .receipt-number {
    font-weight: 800;
    margin-bottom: 12px;
}

.schedule-page .receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-page .receipt-table th,
.schedule-page .receipt-table td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    vertical-align: top;
}

.schedule-page .receipt-table th {
    width: 34%;
    background: #f8fafc;
    color: #334155;
    text-align: left;
}

.schedule-page .receipt-signatures {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.schedule-page .receipt-signatures div {
    flex: 1;
    text-align: center;
}

.schedule-page .receipt-signatures span {
    display: block;
    border-top: 1px solid #111827;
    height: 1px;
    margin-bottom: 8px;
}

.schedule-page .receipt-signatures p {
    margin: 0;
    font-weight: 700;
    color: #334155;
}

.schedule-page .receipt-footer-note {
    margin-top: 24px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 991px) {
    .schedule-page .schedule-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-page .schedule-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .schedule-page .schedule-month-actions {
        justify-content: center;
    }

    .schedule-page .schedule-calendar-filters .form-control,
    .schedule-page .schedule-calendar-filters .form-select {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .schedule-page .schedule-summary-row,
    .schedule-page .schedule-detail-grid {
        grid-template-columns: 1fr;
    }

    .schedule-page .schedule-details-footer button {
        width: 100%;
        justify-content: center;
    }
}

