/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 15 Apr 2026, 2:35:07 pm
    Author     : nurulfarhanabintijeefrilikhsan
*/

/* staff_style.css - Themes for the Staff Module */

:root {
    --staff-purple: #a855f7;
    --staff-purple-dark: #9333ea;
    --staff-purple-deep: #7e22ce;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --bg: #f5f7fb;
    --white: #ffffff;
    --danger-red: #ef4444;
}

/* Page */
.staff-page-body {
    margin: 0;
    background: var(--bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.staff-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px 50px;
}

/* Back link */
.staff-top-navigation {
    width: 100%;
    max-width: 420px;
    margin-bottom: 18px;
}

.top-navigation a {
    text-decoration: none;
    color: #475569;
    font-size: 0.96rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.top-navigation a:hover {
    color: var(--staff-purple);
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: 22px;
}

.role-badge-staff {
    background: linear-gradient(135deg, var(--staff-purple), var(--staff-purple-deep));
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.7rem;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.25);
}

.form-header h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.form-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Card */
.form-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 28px 28px 24px;
}

/* Form */
.input-field {
    margin-bottom: 18px;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-field label span {
    color: var(--danger-red);
}

.input-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.98rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.input-field input::placeholder {
    color: #94a3b8;
}

.input-field input:focus {
    border-color: var(--staff-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.hint {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Button */
.btn-staff-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--staff-purple), var(--staff-purple-deep));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(168, 85, 247, 0.2);
}

.btn-staff-submit:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

/* Footer */
.form-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.95rem;
    color: #475569;
}

.form-footer a {
    color: var(--staff-purple);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 500;
}

.success-alert {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.error-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 576px) {
    .staff-page-wrapper {
        padding: 18px 14px 36px;
    }

    .form-card {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }
}





.staff-role-box input {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}

/* ========================================
   STAFF DASHBOARD
======================================== */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f6f8fc;
    color: #0f172a;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 235px;
    background: #ffffff;
    border-right: 1px solid #e9edf5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    padding: 18px 16px;
    border-bottom: 1px solid #e9edf5;
    position: relative;
    padding-left: 68px;
}

.logo::before {
    content: "\f3ed";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.20);
}

.logo h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.logo span {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    color: #64748b;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e9edf5;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user strong {
    display: block;
    font-size: 0.98rem;
    color: #111827;
    line-height: 1.2;
}

.user small {
    color: #64748b;
    font-size: 0.86rem;
}

/* MENU */
.menu {
    list-style: none;
    margin: 0;
    padding: 12px 10px;
}

.menu li {
    margin-bottom: 6px;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.menu li a:hover {
    background: #f1f5f9;
}

.menu li.active a {
    background: linear-gradient(90deg, #2563eb, #a21caf);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.20);
}

.menu li i {
    font-size: 1rem;
}

/* LOGOUT */
.logout {
    padding: 14px 16px;
    border-top: 1px solid #e9edf5;
}

.logout a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.94rem;
}

/* MAIN */
.main-content {
    flex: 1;
    padding: 24px 28px;
}

.main-content h1 {
    margin: 0 0 8px;
    font-size: 2.15rem;
    font-weight: 800;
    color: #111827;
}

.main-content > p {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 1rem;
}

/* TOP CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px 22px 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    min-height: 116px;
}

.card::before {
    content: "";
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: block;
    margin-bottom: 18px;
}

.cards .card:nth-child(1)::before {
    content: "\f3ed";
    font-family: "bootstrap-icons";
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.cards .card:nth-child(2)::before {
    content: "\f293";
    font-family: "bootstrap-icons";
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cards .card:nth-child(3)::before {
    content: "\f26e";
    font-family: "bootstrap-icons";
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cards .card:nth-child(4)::before {
    content: "\f148";
    font-family: "bootstrap-icons";
    background: #f3e8ff;
    color: #9333ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card::after {
    position: absolute;
    top: 34px;
    right: 22px;
    font-size: 0.95rem;
    font-weight: 800;
}

.cards .card:nth-child(1)::after {
    content: "+12%";
    color: #16a34a;
}

.cards .card:nth-child(2)::after {
    content: "-5%";
    color: #ef4444;
}

.cards .card:nth-child(3)::after {
    content: "+8%";
    color: #16a34a;
}

.cards .card:nth-child(4)::after {
    content: "+15%";
    color: #16a34a;
}

.card h2 {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.card p {
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
}

/* LOWER PANELS */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.activity,
.overdue {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.activity h3,
.overdue h3 {
    margin: 0;
    padding: 22px 22px;
    border-bottom: 1px solid #e9edf5;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

/* ===== FIX STAFF DASHBOARD RECENT ACTIVITY + OVERDUE ===== */

.activity-list {
    padding: 22px 28px;
}

.activity-item {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 16px 0 !important;
    border-bottom: none !important;
}

.activity-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
}

.activity-icon.blue {
    background: #dbeafe !important;
    color: #2563eb !important;
}

.activity-icon.green {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.activity-icon.purple {
    background: #f3e8ff !important;
    color: #9333ea !important;
}

.activity-icon.red {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.activity-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.activity-text strong {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
}

.activity-text span {
    font-size: 0.88rem !important;
    color: #64748b !important;
}

/* Overdue card fix */
.overdue-list {
    padding: 22px 26px !important;
}

.overdue-card {
    background: #fff5f5 !important;
    border: 1px solid #fecaca !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    margin-bottom: 16px !important;
}

.overdue-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
}

.overdue-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.overdue-card p {
    margin: 0 0 10px !important;
    color: #64748b !important;
    font-size: 0.9rem !important;
}

.overdue-link {
    color: #ef4444 !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
}

/* Add fee line style */
.alert-box p br + * {
    color: #111827;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 22px 18px;
    }
}

@media (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .main-content h1 {
        font-size: 1.7rem;
    }
}


/* =========================================
   STAFF PROFILE - MATCH STUDENT DESIGN
   Paste at the BOTTOM of staff_style.css
========================================= */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
    color: #0f172a;
}

body.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

/* SIDEBAR */
.sidebar {
    width: 285px;
    min-width: 285px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar-title-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.sidebar-subtitle {
    font-size: 0.86rem;
    color: #64748b;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
}

.user-details strong {
    display: block;
    font-size: 0.98rem;
    color: #111827;
    line-height: 1.25;
}

.user-details span {
    display: block;
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 3px;
}

/* NAV */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.nav-item:hover {
    background: #eef2ff;
}

.nav-item.active {
    background: linear-gradient(90deg, #2563eb, #a21caf);
    color: #fff;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.22);
}

.nav-item i {
    font-size: 1.15rem;
}

/* LOGOUT */
.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-top: 1px solid #e5e7eb;
    text-decoration: none;
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
    margin-top: auto;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 28px 38px;
    min-width: 0;
}

.student-profile-header {
    margin-bottom: 22px;
}

.student-profile-header h1 {
    margin: 0 0 8px;
    font-size: 2.45rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.student-profile-header p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
}

/* CARD */
.student-profile-card {
    width: 100%;
    max-width: 910px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.student-profile-top {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.student-profile-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.student-profile-top-info h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.student-profile-username {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.98rem;
    font-weight: 600;
}

.student-profile-role-badge {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

/* TABS */
.student-profile-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
}

.student-profile-tabs a {
    display: inline-flex;
    align-items: center;
    height: 62px;
    padding: 0 22px;
    text-decoration: none;
    color: #475569;
    font-size: 0.98rem;
    font-weight: 700;
    border-bottom: 4px solid transparent;
    transition: all 0.2s ease;
}

.student-profile-tabs a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* FORM BODY */
.student-profile-body {
    padding: 28px 30px 32px;
}

.student-profile-field {
    margin-bottom: 22px;
}

.student-profile-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #111827;
}

.student-profile-input-wrap {
    position: relative;
}

.student-profile-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.student-profile-input-wrap input {
    width: 100%;
    height: 54px;
    border: 1px solid #dbe1ea;
    border-radius: 16px;
    padding: 0 16px 0 48px;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.student-profile-input-wrap input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.student-profile-hint {
    display: inline-block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.88rem;
}

.student-password-rule-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 24px;
}

.student-password-rule-box strong {
    display: block;
    margin-bottom: 10px;
    color: #1d4ed8;
    font-size: 0.95rem;
}

.student-password-rule-box ul {
    margin: 0;
    padding-left: 18px;
    color: #1d4ed8;
}

.student-password-rule-box li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

/* BUTTONS */
.student-profile-actions {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}

.btn-student-profile-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 54px;
    padding: 0 22px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #fff;
    color: #374151;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-student-profile-save {
    height: 54px;
    padding: 0 28px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(90deg, #2563eb, #a21caf);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.22);
}

/* ALERTS */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.success-alert {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.error-alert {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .sidebar {
        width: 250px;
        min-width: 250px;
    }

    .main-content {
        padding: 24px;
    }

    .student-profile-card {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    body.dashboard-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        min-height: auto;
    }

    .student-profile-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-profile-tabs {
        overflow-x: auto;
    }
}

/* ========================================
   PARCEL MANAGEMENT
======================================== */

.parcel-page-header,
.parcel-form-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.parcel-page-header h1,
.parcel-form-page-header h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
}

.parcel-page-header p,
.parcel-form-page-header p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.btn-register-parcel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #2563eb, #a21caf);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2);
}

.parcel-search-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 48px;
    margin-bottom: 22px;
}

.parcel-search-box i {
    color: #9ca3af;
    font-size: 1.15rem;
}

.parcel-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
    color: #111827;
}

.parcel-table-card,
.parcel-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.parcel-table-header {
    padding: 24px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.parcel-table-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.table-responsive {
    overflow-x: auto;
}

.parcel-manage-table {
    width: 100%;
    border-collapse: collapse;
}

.parcel-manage-table thead th {
    background: #f8fafc;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: left;
    padding: 14px 16px;
}

.parcel-manage-table tbody td {
    padding: 16px;
    border-top: 1px solid #eef2f7;
    color: #374151;
    vertical-align: middle;
}

.parcel-id-cell {
    font-weight: 800;
    color: #111827;
}

.sub-text {
    color: #6b7280;
    font-size: 0.88rem;
}

.fee-bold {
    font-weight: 800;
    color: #111827;
}

.status-ready-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.parcel-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon-edit,
.btn-icon-delete {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-icon-edit {
    color: #2563eb;
}

.btn-icon-delete {
    color: #ef4444;
}

.empty-row {
    text-align: center;
    color: #6b7280;
    padding: 28px;
}

/* FORM */
.btn-cancel-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #374151;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 600;
}

.parcel-form-card {
    padding: 28px 30px 30px;
}

.parcel-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.parcel-form-group {
    margin-bottom: 20px;
}

.parcel-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}

.parcel-input-wrap {
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: #ffffff;
}

.parcel-input-wrap i {
    color: #9ca3af;
    font-size: 1.05rem;
}

.parcel-input-wrap input,
.parcel-select {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 1rem;
    color: #111827;
}

.parcel-select {
    appearance: none;
    cursor: pointer;
}

.fee-summary-box {
    background: linear-gradient(90deg, #eff6ff, #f5f3ff);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.fee-summary-box span {
    color: #475569;
    font-size: 0.95rem;
}

.fee-summary-box h2 {
    margin: 8px 0 0;
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.fee-weight-right {
    text-align: right;
}

.fee-weight-right strong {
    display: block;
    margin-top: 6px;
    font-size: 1.5rem;
    color: #111827;
    font-weight: 800;
}

.fee-structure-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
}

.fee-structure-box h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.fee-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
}

.fee-item span {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.fee-item strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.parcel-form-actions {
    display: flex;
    gap: 14px;
}

.btn-form-cancel,
.btn-form-submit {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-form-cancel {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.btn-form-submit {
    border: none;
    background: linear-gradient(90deg, #2563eb, #a21caf);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2);
}

@media (max-width: 1100px) {
    .fee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .parcel-form-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   VERIFY PAYMENT PAGE
========================= */

.payment-search-box {
    width: 100%;
    max-width: 480px;
    position: relative;
    margin-bottom: 24px;
}

.payment-search-box i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.payment-search-box input {
    width: 100%;
    height: 52px;
    border: 1px solid #dbe1ea;
    border-radius: 14px;
    padding: 0 16px 0 48px;
    font-size: 1rem;
    outline: none;
    background: #ffffff;
}

.verify-payment-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.verify-payment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fdf9e7;
    padding: 24px 26px;
}

.verify-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #d98c00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.verify-payment-header h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.verify-payment-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
}

.payment-verification-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-verification-table thead th {
    background: #f8fafc;
    color: #6b7280;
    font-size: 0.83rem;
    font-weight: 800;
    text-align: left;
    padding: 16px 24px;
}

.payment-verification-table tbody td {
    padding: 18px 24px;
    border-top: 1px solid #eef2f7;
    vertical-align: middle;
    color: #334155;
}

.parcel-id-cell {
    font-weight: 800;
    color: #111827;
    font-size: 1rem;
}

.payment-student-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.payment-student-info strong {
    color: #111827;
    font-size: 1rem;
}

.payment-student-info span {
    color: #64748b;
    font-size: 0.9rem;
}

.payment-amount-cell {
    font-weight: 800;
    color: #111827;
    font-size: 1rem;
}

.money-symbol {
    color: #94a3b8;
    margin-right: 4px;
    font-weight: 600;
}

.submitted-date-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
}

.submitted-date-box i {
    color: #94a3b8;
}

.proof-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.proof-missing {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.92rem;
}

.payment-action-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.approve-btn,
.reject-btn {
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.approve-btn {
    background: #16a34a;
}

.reject-btn {
    background: #ef4444;
}

.alert-box {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* =========================
   PARCEL COLLECTION MODULE
========================= */

.collection-search-card,
.collection-student-card,
.available-parcel-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    margin-top: 22px;
}

.collection-search-card {
    padding: 24px 26px;
}

.collection-search-card h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

.collection-search-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.collection-search-form {
    display: flex;
    align-items: center;
    gap: 14px;
}

.collection-input-wrap {
    position: relative;
    flex: 1;
}

.collection-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.collection-input-wrap input {
    width: 100%;
    height: 54px;
    border: 1px solid #dbe1ea;
    border-radius: 14px;
    padding: 0 16px 0 44px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.collection-search-btn {
    height: 54px;
    padding: 0 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #2563eb, #a21caf);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.20);
}

.collection-student-card {
    padding: 24px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(90deg, #eef6ff, #f5f3ff);
    border-color: #bfdbfe;
}

.collection-student-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #a21caf);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
}

.collection-student-card h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
}

.collection-student-card p {
    margin: 0;
    color: #64748b;
}

.available-parcel-card {
    overflow: hidden;
}

.available-parcel-card > h3 {
    margin: 0;
    padding: 22px 26px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.collection-parcel-item {
    padding: 24px 26px;
    border-bottom: 1px solid #eef2f7;
}

.collection-parcel-item:last-child {
    border-bottom: none;
}

.collection-parcel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.collection-parcel-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.collection-parcel-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f3e8ff;
    color: #9333ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.collection-parcel-left h4 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
}

.collection-parcel-left p {
    margin: 6px 0;
    color: #475569;
    font-size: 0.93rem;
}

.collection-parcel-left p i {
    color: #94a3b8;
    margin-right: 8px;
}

.collection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.collection-status.approved {
    background: #dcfce7;
    color: #15803d;
}

.collection-status.pending {
    background: #fef3c7;
    color: #b45309;
}

.collection-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.verify-identity-btn,
.confirm-collection-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.96rem;
    cursor: pointer;
}

.verify-identity-btn {
    background: #2563eb;
}

.confirm-collection-btn {
    background: #16a34a;
}

.cannot-collect-box {
    margin-top: 20px;
    width: 100%;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 13px 16px;
    text-align: center;
    font-weight: 800;
}

.empty-row {
    padding: 26px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 900px) {
    .collection-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .collection-actions {
        grid-template-columns: 1fr;
    }

    .collection-parcel-top {
        flex-direction: column;
    }
}

.rep-info-box{
    margin-top:12px;
    padding:12px;
    border-radius:12px;
    background:#eef2ff;
    border:1px solid #c7d2fe;
}

.rep-info-box strong{
    display:block;
    margin-bottom:6px;
    color:#4338ca;
}

.rep-info-box p{
    margin:2px 0;
    font-size:14px;
}

.no-rep{
    background:#f8fafc;
    border:1px solid #e2e8f0;
}

/* ==========================================
   OVERDUE PARCEL MODULE
========================================== */

/* Summary Cards */

.overdue-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
    margin:25px 0;
}

.overdue-summary-card{
    background:#fff;
    border-radius:22px;
    padding:24px;
    border:1px solid #e5e7eb;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.summary-icon{
    width:54px;
    height:54px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    margin-bottom:18px;
}

.summary-icon.red{
    background:#ffe5e5;
    color:#ff2d2d;
}

.summary-icon.yellow{
    background:#fff3cc;
    color:#d98a00;
}

.summary-icon.green{
    background:#d8f7e3;
    color:#16a34a;
}

.overdue-summary-card h2{
    font-size:2.2rem;
    margin:0;
    font-weight:800;
    color:#0f172a;
}

.overdue-summary-card p{
    margin-top:6px;
    color:#64748b;
    font-size:1rem;
}


/* Main List Card */

.overdue-list-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.overdue-list-header{
    display:flex;
    align-items:center;
    gap:15px;
    padding:24px;
    background:#fff4f4;
}

.overdue-list-icon{
    width:56px;
    height:56px;
    border-radius:15px;
    background:#ff4343;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.4rem;
}

.overdue-list-header h3{
    margin:0;
    font-size:1.5rem;
    font-weight:800;
}

.overdue-list-header p{
    margin-top:4px;
    color:#64748b;
}


/* Table */

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

.overdue-table th{
    padding:18px;
    font-size:.95rem;
    color:#64748b;
    border-bottom:1px solid #eee;
    background:#fafafa;
}

.overdue-table td{
    padding:20px 18px;
    border-bottom:1px solid #f1f5f9;
}

.overdue-table tr:hover{
    background:#fafcff;
}


/* Student Cell */

.overdue-student-cell{
    display:flex;
    align-items:center;
    gap:14px;
}

.overdue-student-avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#e0ebff;
    color:#3b82f6;
    display:flex;
    align-items:center;
    justify-content:center;
}

.overdue-student-cell span{
    display:block;
    color:#64748b;
    font-size:.85rem;
}


/* Days overdue badge */

.days-overdue-badge{
    background:#ffe5e5;
    color:#ff4343;
    padding:8px 14px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:700;
}


/* Fee styling */

.late-fee-text{
    color:red;
    font-weight:800;
}

.total-fee-text{
    font-size:1.2rem;
    font-weight:800;
}

.late-fee-waived{
    color:#16a34a;
    text-decoration:line-through;
    font-weight:700;
}

.waived-label{
    display:block;
    color:#16a34a;
    margin-top:5px;
}


/* Buttons */

.overdue-action-buttons{
    display:flex;
    gap:8px;
}

.apply-fee-btn{
    border:none;
    padding:10px 18px;
    border-radius:10px;
    background:#ff4343;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.apply-fee-btn:hover{
    background:#dc2626;
}

.waive-fee-btn{
    border:none;
    padding:10px 18px;
    border-radius:10px;
    background:#2563eb;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.waive-fee-btn:hover{
    background:#1d4ed8;
}


/* Waived Badge */

.fee-waived-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:#d8f7e3;
    color:#16a34a;
    font-weight:700;
}

.waiver-reason{
    display:block;
    margin-top:8px;
    color:#64748b;
}


/* Empty */

.empty-row{
    text-align:center;
    padding:30px;
    color:#64748b;
    font-weight:600;
}


/* Alert */

.alert-box{
    padding:16px;
    border-radius:14px;
    font-weight:600;
}

.alert-success{
    background:#dcfce7;
    color:#16a34a;
}

.alert-error{
    background:#fee2e2;
    color:#dc2626;
}


/* ==========================
   MODAL
========================== */

.modal-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-box{
    width:450px;
    background:white;
    border-radius:20px;
    padding:30px;
}

.modal-box h3{
    margin-bottom:20px;
}

.modal-box label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
}

.modal-box select,
.modal-box textarea{
    width:100%;
    padding:14px;
    border:1px solid #d1d5db;
    border-radius:12px;
    margin-bottom:15px;
}

.modal-buttons{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
}

.modal-buttons button{
    border:none;
    padding:12px 18px;
    border-radius:10px;
    cursor:pointer;
}

.modal-buttons button:first-child{
    background:#e5e7eb;
}

.waive-submit-btn{
    background:linear-gradient(
        90deg,
        #2563eb,
        #9333ea
    );
    color:white;
}


/* Responsive */

@media(max-width:1000px){

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

.overdue-action-buttons{
    flex-direction:column;
}

.overdue-table{
    display:block;
    overflow-x:auto;
}

}

.edit-fee-btn {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
}