/* ========================================
   General / Base Styles
   ======================================== */

   /* ------------------------------
   Navigation Bar / Header
   ------------------------------ */

#page-header {
    display: none !important; /* hide page header below navbar */
}

/* Navbar background and general links */
.navbar, .breadcrumb {
    background-color: #133820 !important; /* solid dark green */
    border: none !important;
}


/* Target your exact button (more specific) */
button.navbar-toggler.aabtn {
  color: #fff !important; /* fallback if icon uses currentColor */
}

/* Remove the default SVG and give the span a block area */
button.navbar-toggler.aabtn .navbar-toggler-icon {
  background-image: none !important; /* kill default black SVG */
  width: 28px !important;
  height: 22px !important;
  display: inline-block !important;
  position: relative !important;
}

/* Draw three white bars using one pseudo element + box-shadow */
button.navbar-toggler.aabtn .navbar-toggler-icon::before {
  content: "" !important;
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 7px 0 0 #ffffff !important;
}


/* Site name & general links */
.navbar .nav-link, .breadcrumb a {
    color: #ffffff !important; /* white text */
}

/* Navbar site name / brand */
.navbar .navbar-brand {
    color: #ffffff !important;  /* white site name */
    font-weight: 600;
    font-size: 1.2rem;
}

/* Hover effect for site name */
.navbar .navbar-brand:hover {
    color: #cce6d0 !important; /* subtle light green */
}

/* Hover effect for links */
.navbar .nav-link:hover, .breadcrumb a:hover {
    color: #cce6d0 !important; /* subtle light green */
}

/* Icons on the right (messages, notifications) */
.navbar .icon, 
.navbar .fa-envelope, 
.navbar .fa-bell {
    color: #ffffff !important;  /* make them white to stand out */
    font-size: 18px;
}

/* Hover effect for icons */
.navbar .icon:hover,
.navbar .fa-envelope:hover,
.navbar .fa-bell:hover {
    color: #cce6d0 !important;
}

/* Dropdown menu text (e.g., Logout) */
.navbar .dropdown-menu a {
    color: #2a7d46 !important;  /* green for dropdown links */
    font-weight: 600;
}

/* Hover for dropdown items */
.navbar .dropdown-menu a:hover {
    color: #1f3d2d !important;
    background-color: #edf7ed; /* very light green background on hover */
}



/* ------------------------------
   Hide Default Page Heading
   ------------------------------ */
#page-header .page-header-headings {
    display: none !important;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* white background */
    color: #1f3d2d; /* dark green text */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}


h2, h3, h4 {
    color: #133820; /* green headers */
    margin-bottom: 16px;
}

/* Links */
a {
    color: #2a7d46;
    text-decoration: none;
}
a:hover {
    color: #1f3d2d;
}

/* Buttons */
.pssdc-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    text-align: center;
}
.pssdc-btn-primary {
    background-color: #133820;
    color: #fff;
}

/* Change all primary buttons to custom green */
.btn-primary {
    background-color: #133820; /* your green */
    border-color: #133820;     /* match border to background */
    color: #ffffff;            /* make text white */
}

.btn {
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.btn:hover {
    background: #0056b3;
}


/* Optional: hover and focus states */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: #0f2c1a; /* slightly darker green on hover/focus */
    border-color: #0f2c1a;
    color: #ffffff;
}


.pssdc-btn-primary:hover {
    background-color: #24643a;
}

/* ========================================
   Modals
   ======================================== */
.pssdc-modal-overlay {
    display: none; /* keep default hidden */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(42,125,70,0.4);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    display: flex; /* modal content will center automatically */
}

.pssdc-modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 8px 24px rgba(42,125,70,0.3);
}
.pssdc-modal-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}




/* ========================================
   Forms
   ======================================== */
.pssdc-form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #1f3d2d;
}

.pssdc-form-control {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pssdc-form-control:focus {
    border-color: #2a7d46;
    box-shadow: 0 0 4px rgba(42,125,70,0.3);
}



/* ========================================
   Print Styles
   ======================================== */
@media print {
    body { background: #fff; }
    .pssdc-dashboard-card { box-shadow: none !important; border: none !important; padding: 0 !important; }
    .pssdc-btn, .pssdc-modal-overlay { display: none !important; }
}



/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* ========================================
   Base DataTables Styling
   Applies to all tables with .pssdc-table or DataTables
   ======================================== */

/* Table container */
.pssdc-table,
.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

/* Table header */
.pssdc-table th,
.dataTable th {
    background: #133820;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    vertical-align: middle;
}

/* Table body */
.pssdc-table td,
.dataTable td {
    padding: 8px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

/* Hover effect for rows */
.pssdc-table tbody tr:hover,
.dataTable tbody tr:hover {
    background-color: #f4f9f4;
    transition: background-color 0.2s ease;
}

/* Alternate row shading */
.pssdc-table tbody tr:nth-child(even),
.dataTable tbody tr:nth-child(even) {
    background-color: #f9fbff;
}

/* Checkbox / center align for first column if needed */
.pssdc-table td:first-child,
.pssdc-table th:first-child,
.dataTable td:first-child,
.dataTable th:first-child {
    text-align: center;
    width: 40px;
}

/* DataTables default buttons */
.dt-buttons .btn {
    border-radius: 6px !important;
    margin-right: 6px;
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Filter input & length select */
.dataTables_filter input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 8px;
    margin-left: 5px;
}
.dataTables_length select {
    border-radius: 6px;
    padding: 2px 6px;
}

/* Info text & pagination */
.dataTables_info {
    margin-top: 10px;
    font-size: 0.85rem;
}
.dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 4px 10px;
}

/* Responsive tables */
@media (max-width: 768px) {
    .pssdc-table,
    .dataTable {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .pssdc-table,
    .dataTable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}





/* ========================================
   Dashboard Page Styles
   ======================================== */
/* ------------------------------
   Dashboard Cards
   ------------------------------ */


/* ------------------------------
   Dashboard Cards
   ------------------------------ */

.pssdc-dashboard-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(42,125,70,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%; /* ensures card never overflows */
}


.pssdc-dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(42,125,70,0.15);
}

/* Icon on top */
.pssdc-card-icon {
    font-size: 36px; /* adjust size as needed */
    color: #133820;  /* green color for icons */
    margin-bottom: 12px;
}

/* Card title */
.pssdc-card-link strong {
    font-size: 1rem;
    color: #1f3d2d;
}

/* Card explanatory text */
.pssdc-card-subtext {
    font-size: 0.85rem;
    color: #4a7d4a;
    margin-top: 6px;
}

.pssdc-card-icon, .pssdc-card-subtext {
    transition: color 0.2s ease, transform 0.2s ease;
}
.pssdc-dashboard-card:hover .pssdc-card-icon {
    transform: scale(1.1);
}



/* ------------------------------
   Dashboard Area / Container
   ------------------------------ */
.pssdc-dashboard-area {
    background-color: #edf7ed; /* very light green */
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* center the cards horizontally */
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

/* ------------------------------
   Page Title Box
   ------------------------------ */
.pssdc-page-title-box {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  
}

.pssdc-page-title-box h1, .pssdc-page-title-box h2 {
    margin: 0;
    color: #133820;
}


/* Responsive: on very small screens */
@media (max-width: 768px) {
    .pssdc-dashboard-card {
        width: 45%; /* two cards per row */
    }
}

@media (max-width: 480px) {
    .pssdc-dashboard-card {
        width: 90%; /* single card per row */
    }
}





/* ========================================
   Registration Page
   ======================================== */

.pssdc-register-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pssdc-register-wrapper h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;               /* white text */
    background-color: #133820;    /* green background */
    padding: 12px 20px;           /* space inside the box */
    border-radius: 6px;           /* optional rounded corners */
}


.pssdc-mform-header {
    background-color: #edf7ed;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 30px; /* increased from 16px */
    margin-bottom: 16px;
    font-weight: 600;
    color: #133820;
    font-size: 0.5rem; /* slightly smaller */
}

.pssdc-register-wrapper .form-group,
.pssdc-register-wrapper .fitem {
    margin-bottom: 18px; /* more spacing between fields */
}


.pssdc-register-btn {
    background-color: #2a7d46;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

.pssdc-register-btn:hover {
    background-color: #24643a;
}

.pssdc-register-wrapper label {
    font-weight: 600;
    margin-bottom: 6px;
}


.pssdc-register-wrapper input[type="text"],
.pssdc-register-wrapper input[type="password"],
.pssdc-register-wrapper input[type="email"],
.pssdc-register-wrapper select
{
    width: 80%;
    max-width: 80%;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pssdc-register-wrapper input:focus,
.pssdc-register-wrapper select:focus {
    border-color: #2a7d46;
    box-shadow: 0 0 4px rgba(42,125,70,0.2);
    outline: none;
}

.pssdc-register-wrapper input,
.pssdc-register-wrapper select {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.pssdc-register-wrapper input:hover,
.pssdc-register-wrapper select:hover {
    border-color: #24643a;
}


/* Target the 3 dropdowns inside date_selector */
.pssdc-register-wrapper .fdate_selector select {
    min-width: 80px !important;  /* ensures month names fit */
    max-width: 170px !important;  /* optional */
    text-align: center !important;  /* optional */
    width: auto !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.95rem !important;
    box-sizing: border-box;
}

/* Arrange day/month/year horizontally */
.pssdc-register-wrapper .fdate_selector {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap;
    align-items: center;
}

/* Add vertical spacing above each collapsible section */
fieldset.collapsible {
    margin-bottom: 2rem;  /* adjust value as needed */
}


/* ========================================
   Forgot Password Page
   ======================================== */

/* Forgot Password Card */
.forgotpassword-card {
    max-width: 500px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Header of the card */
.forgotpassword-header {
    background-color: #133820; /* green background */
    color: #fff;               /* white text */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Form controls inside the card */
.forgotpassword-card .form-control {
    margin-bottom: 12px;
}

/* Primary buttons inside this card */
.forgotpassword-card .btn-primary {
    background-color: #133820;
    border-color: #133820;
}

.forgotpassword-card .btn-primary:hover {
    background-color: #115d28; /* darker green on hover */
    border-color: #115d28;
}

/* Notification messages */
.forgotpassword-card .notifyproblem {
    margin-bottom: 15px;
    font-weight: bold;
}

/* Forgot Password Card Header */
.forgotpassword-card .card-header h2 {
    color: #ffffff !important;       /* force white text */
    margin: 0;
    text-align: center;
}

/* Forgot Password text spacing */
.forgotpassword-card .card-body p {
    margin: 0;
}

/* Forgot Password Card spacing before input box */
.forgotpassword-card .card-body input {
    margin-top: 1rem;
}

.forgotpassword-card label {
    font-weight:600;
}


/* ========================================
   Login Page Overrides
   ======================================== */

/* 1️⃣ Light green background outside the login card */
.login-wrapper {
    background-color: transparent; /* very light green */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px; /* small spacing around card */
}


/* Login form container */
.loginpanel {
    background-color: #ffffff; /* white panel */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header of login form */
.loginpanel h2, .loginpanel h3 {
    color: #133820; /* your green */
    text-align: center;
    margin-bottom: 20px;
}

/* Labels and inputs */
.loginpanel label {
    color: #1f3d2d;
    font-weight: 600;
}
.loginpanel input[type="text"], 
.loginpanel input[type="password"] {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
}
.loginpanel input:focus {
    border-color: #2a7d46;
    box-shadow: 0 0 4px rgba(42,125,70,0.2);
    outline: none;
}

/* Buttons */
.loginpanel .btn-primary {
    background-color: #133820 !important;
    border-color: #133820 !important;
    color: #fff !important;
}
.loginpanel .btn-primary:hover {
    background-color: #115d28 !important;
    border-color: #115d28 !important;
}

/* Login logo */
.loginform #loginlogo {
    max-width: 120px;      /* adjust width as needed */
    height: auto;           /* keep proportions */
    display: block;
    margin: 0 auto 20px;    /* center logo with some spacing below */
}


/* ========================================
   Profile Page Overrides
   ======================================== */

/* Wrapper around everything */
.profile-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f5f9f7; /* soft green-ish background */
}

/* Card */
.profile-card {
    width: 100%;
    max-width: 600px; /* limits table/form width */
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* Table */
.profile-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem; /* small vertical spacing between rows */
}

.profile-card th, .profile-card td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

/* Fade gridlines */
.profile-card table, 
.profile-card th, 
.profile-card td {
    border: none;
}

.profile-card tr {
    background: #f9f9f9; /* subtle row background */
    border-radius: 8px;
}

.profile-card tr th {
    width: 40%;
    color: #133820; /* primary green */
    font-weight: 600;
}

.profile-card tr td {
    width: 60%;
    color: #333;
}

/* Alternate row shading */
.profile-card table tr:nth-child(even) td {
    background-color: #f9f9f9;
}



/* Mobile responsiveness */
@media (max-width: 576px) {
    .profile-card {
        padding: 20px 15px;
    }
    .profile-card table tr {
        display: block;
        margin-bottom: 12px;
    }
    .profile-card table tr th,
    .profile-card table tr td {
        display: block;
        width: 100%;
    }
    .profile-card table tr th {
        margin-bottom: 4px;
    }
}

/* Form spacing */
.profile-card .form-control, .profile-card .form-select {
    margin-bottom: 15px;
}

.profile-edit-form label {
    display: block;       /* ensures label is on its own line */
    margin-bottom: 0.5rem; /* space between label and input */
    font-weight: 500;     /* optional: make label slightly bolder */
}

/* Buttons */
.btn-success {
    background-color: #6a7f71;
    border-color: #2a7d46;
}

.profile-card-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    color: #133820; /* primary green */
}


.profile-card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .profile-card-buttons .btn {
        width: 100%;
    }
}


/* ========================================
   Staff Verification Page Overrides
   ======================================== */

/* ---------------- General Form ---------------- */
.staff-verification-form {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.staff-verification-form fieldset {
    border: none;
    padding: 0;
}

/* ---------------- Cards ---------------- */
.staff-verification-form .card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.staff-verification-form .section-title {
    font-size: 1.2rem;
    color: #133820 !important;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #133820 !important;
    padding-bottom: 5px;
}

/* ---------------- Grid ---------------- */
.staff-verification-form .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.staff-verification-form .grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------------- Form Inputs ---------------- */
.staff-verification-form input[type="text"],
.staff-verification-form input[type="number"],
.staff-verification-form input[type="date"],
.staff-verification-form input[type="email"],
.staff-verification-form select,
.staff-verification-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.staff-verification-form select.form-control {
    padding-top: 2px;     /* reduce top padding */
    padding-bottom: 2px;  /* reduce bottom padding */
    line-height: 1.2;     /* adjust line height */
}

.staff-verification-form input:focus,
.staff-verification-form select:focus {
    border-color: #1a73e8;
    outline: none;
}

/* ---------------- Labels ---------------- */
.staff-verification-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* ---------------- Buttons ---------------- */
.staff-verification-form .btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.staff-verification-form .btn-success {
    background-color: #28a745;
    color: #fff;
    border: none;
    margin: 10px auto 2px auto;
    display: block;

}

.staff-verification-form .btn-success:hover {
    background-color: #218838;
}



/* ---------------- File Upload Preview ---------------- */
.staff-verification-form .passport-preview {
    display: block;
    max-width: 180px;
    max-height: 220px;
    margin: 12px auto;   /* centers horizontally */
    border-radius: 6px;  /* rectangular with slightly rounded corners */
    object-fit: cover;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}




/* ---------------- Submission Status ---------------- */
.staff-verification-form .submission-status {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 15px;
}

.staff-verification-form .alert-success {
    background-color: #d4edda;
    color: #155724;
}

.staff-verification-form .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.staff-verification-form .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.staff-verification-form .alert-secondary {
    background-color: #e2e3e5;
    color: #383d41;
    font-style: italic;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    .staff-verification-form .grid {
        grid-template-columns: 1fr;
    }
}

/* --- Toolbar --- */
.toolbar {
    display: flex;
    justify-content: center;  /* center horizontally */
    flex-wrap: wrap;          /* allow wrapping on small screens */
    margin-bottom: 1.5rem;    /* extra spacing below */
}

/* --- Toolbar Buttons --- */
.toolbar .btn {
    margin: 0 0.5rem;   /* horizontal spacing between buttons */
}


fieldset[disabled] .btn-viewpayslip {
    pointer-events: auto !important;
    opacity: 1 !important;
    margin: 10px auto 2px auto;
    display: block;
    background-color: #649d77;
}



/* ========================================
   Staff Verification History Page
   ======================================== */

.submission-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.submission-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #133820;
    margin-bottom: 10px;
}

.submission-card .status {
    font-size: 1rem;
    margin-bottom: 20px;
}

.submission-card .status.pending {
    color: #d97706; /* amber */
    font-weight: 600;
}
.submission-card .status.approved {
    color: #2a7d46; /* green */
    font-weight: 600;
}
.submission-card .status.rejected {
    color: #b91c1c; /* red */
    font-weight: 600;
}

/* Sections */
.submission-card .section {
    margin-bottom: 20px;
}

.submission-card .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a73e8; /* blue divider */
    margin-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 4px;
}

.submission-card .section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submission-card .section-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.submission-card .field-label {
    font-weight: 600;
    color: #133820;
}
.submission-card .field-value {
    color: #333;
}

/* Files */
.submission-card .files {
    margin-top: 20px;
}
.submission-card .file-link {
    display: inline-block;
    margin-top: 8px;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #133820;
    text-decoration: none;
}
.submission-card .file-link:hover {
    background: #e0e7e4;
}

/* Passport */
.submission-card .passport {
    margin-top: 20px;
    text-align: center;
}
.submission-card .passport-img {
    max-width: 150px;
    border-radius: 8px;
    border: 2px solid #edf7ed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Actions */
.submission-card .actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 12px;
}
.submission-card .actions .btn {
    flex: 1;
    text-align: center;
}

/* Filter bar */
.filter-bar {
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    justify-content: center;   /* center the whole bar */
    gap: 12px;
    align-items: center;
    text-align: center;
}


.filter-bar label {
    font-weight: 600;
    color: #133820;
}
.filter-bar select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin: 0.5rem;
    min-width: 150px;
}


.submission-header {
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;               /* white text */
    background-color: #133820;    /* green background */
    padding: 12px 20px;           /* space inside the box */
}




/* ========================================
   Verification Reports Page
   ======================================== */


/* ========================================
   Section Cards (used in verification page)
   ======================================== */
.pssdc-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(19, 56, 32, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 650px;
    margin: 30px auto;
}

.pssdc-section-card .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #133820;
    margin-bottom: 15px;
}

.pssdc-section-card .btn-success {
    display: block;
    background-color: #133820;
    margin: 10px 0;
}

.pssdc-section-card .btn-secondary {
    display: block;
    margin: 10px 0;
}

.override-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(19, 56, 32, 0.1);
    border: 1px solid #e2e8f0;
    margin: 30px auto;
}






/* ========================================
   Analytics Cards (inline colored boxes)
   ======================================== */
.pssdc-analytics-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.pssdc-analytics-cards .card {
    flex: 1;
    min-width: 120px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #fff;
    font-weight: 600;
    padding: 10px 5px;  


}

.pssdc-analytics-cards .card h5 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.pssdc-analytics-cards .card p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   Tables
   ======================================== */
.pssdc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.pssdc-table th, 
.pssdc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
}

.pssdc-table th {
    background: #133820;
    color: #ffffff;
    font-weight: 600;
}

.pssdc-table tr:hover td {
    background-color: #f4f9f4;
}


/* ---- Card ---- */
#submissionCard {
    width: 95%;
    max-width: 1300px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}



/* ---- Status Badges ---- */
.badge-pending {
    background-color: #ffc107;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 4px 10px;
}
.badge-approved {
    background-color: #28a745;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 4px 10px;
}
.badge-rejected {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 4px 10px;
}


/* 🌤️ Soft Badge Variants (lighter backgrounds, black text) */
.badge-soft-success {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.badge-soft-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.badge-soft-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.badge-soft-secondary {
    background-color: #e2e3e5 !important;
    color: #383d41 !important;
}



#submissions tbody td.status-approved {
    color: green !important;
    /* font-weight: bold; */
}
#submissions tbody td.status-rejected {
    color: red !important;
    /* font-weight: bold; */
}
#submissions tbody td.status-pending {
    color: #b58900 !important; /* dark yellow */
    /* font-weight: bold; */
}



/* ========================================
   Staff Verification Reports Table & Cards
   ======================================== */
.report-card-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    text-align: left;
}

.report-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.report-card-col {
    padding: 0 10px;
}

.report-card-col-3 { width: 25%; }

.report-card-passport img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 6px;
}


/* Cards */
.pssdc-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    padding: 15px;
}
.pssdc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.pssdc-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
}
.more-stats-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #007bff;
}
.more-stats-link:hover {
    text-decoration: underline;
}
/* Filter panel container */

.filter-stats-card {
    max-width: 800px !important; /* adjust as needed */
    margin: 0 auto 30px auto; /* center + bottom spacing */
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* space between filters */
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
}

/* Each filter label */
.filter-panel label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

/* Filter selects */
.filter-panel select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    min-width: 150px;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

/* Hover/focus effects */
.filter-panel select:hover,
.filter-panel select:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0,123,230,0.3);
    outline: none;
}

/* Adjust stats panel below filters */
.stats-panel {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat-box {
    flex: 1 1 120px;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-box span {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.stat-box strong {
    display: block;
    font-size: 1.2rem;
    color: #222;
}

.stat-approved { background: #d4edda; }
.stat-pending { background: #fff3cd; }
.stat-rejected { background: #f8d7da; }



/* Table card */
.table-card {
    padding: 15px;
}
.table-card .pssdc-card-body {
    padding: 10px;
}

/* Downloads Card */
.downloads-card .download-buttons .download-panel{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}



/* ========================================
   Assign User Roles Page
   ======================================== */


.assign-role-wrapper {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.assign-role-wrapper h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;               /* white text */
    background-color: #133820;    /* green background */
    padding: 12px 20px;           /* space inside the box */
    border-radius: 6px;           /* optional rounded corners */
}


.assign-role-wrapper label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
}

.assigned-roles {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.assigned-roles h3 {
    text-align:center;
}




/* ========================================================= */
/* Audit Decision Page       */
/* ========================================================= */

/* Column 1: Staff / Oracle No. (WIDER, no wrap) */
#audit_decision_table th:nth-child(1),
#audit_decision_table td:nth-child(1) {
    width: 120px; 
    min-width: 120px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* Column 2: Staff Name - Let this take the rest (remove width: auto) */
#audit_decision_table th:nth-child(2),
#audit_decision_table td:nth-child(2) {
    white-space: normal; 
}

/* Column 3: On Payroll? */
#audit_decision_table th:nth-child(3),
#audit_decision_table td:nth-child(3) {
    width: 130px;
    white-space: nowrap;
}

/* Column 4: Monthly Verification Status */
#audit_decision_table th:nth-child(4),
#audit_decision_table td:nth-child(4) {
    width: 150px;
    white-space: nowrap;
}

/* Column 5: Current Audit Decision */
#audit_decision_table th:nth-child(5),
#audit_decision_table td:nth-child(5) {
    width: 110px;
    white-space: nowrap;
}


/* ========================================================= */
/* 2. Select Box Styling              */
/* ========================================================= */

#audit_decision_table select {
    /* General Select Box Styling */
        
    background-color: #ffffff; /* Light background */
    color: #333;
    
    /* Rounded edges and padding */
    border: none; /* Hide borders */
    border-radius: 8px; /* Rounded edges */
    padding: 4px 10px; /* Vertical and horizontal padding */
    
    /* Make the select box fit the content better */
    width: 100%; 
    box-sizing: border-box; /* Ensure padding is included in the width */
    height: 32px; /* Consistent height */
    cursor: pointer;
}

/* Hover/Focus effect */
#audit_decision_table select:hover {
    background-color: #eee;
}
#audit_decision_table select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); /* Subtle focus ring */
}


/* ========================================================= */
/* 3. Print Styles */
/* ========================================================= */

@media print {
    /* Hide elements not needed in print (e.g., buttons, form inputs) */
    .mt-3, 
    .dataTables_wrapper .dt-buttons, 
    .dataTables_wrapper .dataTables_filter, 
    .dataTables_wrapper .dataTables_length,
    .column_filter, /* Hide the column filter boxes */
    .alert-info {
        display: none !important;
    }

    
/* In style2.css, inside the @media print block: */

/* Print styling for the Decision Select Box: show the VALUE only */

/* FIX: Ensure the select box is hidden with high priority */
#audit_decision_table td:nth-child(5) select {
    display: none !important; 
    visibility: hidden !important; /* Added for robustness */
}

/* Ensure the decision text is shown with high priority */
#audit_decision_table td:nth-child(5)::after {
    /* Shows the value from the data-decision attribute */
    content: attr(data-decision); 
    display: block !important; 
    
    font-weight: bold;
    color: #000;
    text-align: center;
    padding: 5px 0;
}
    /* Print table structure (borders for clarity) */
    #audit_decision_table {
        font-size: 10pt;
        width: 100% !important;
    }
    #audit_decision_table, 
    #audit_decision_table th, 
    #audit_decision_table td {
        border: 1px solid #000;
        border-collapse: collapse;
    }
}


/* ========================================================= */
/* REPORT SUMMARY PAGE
/* ========================================================= */

.pssdc-report-area {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center; /* center the cards horizontally */
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
    padding: 20px;
}


.report-page-title-box {
    text-align: center;
}

.pssdc-report-filter-card {
  background: #fff;
  border: 1px solid #555c57; 
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  padding: 20px;
  max-width: 50%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}



.pssdc-report-filter-card:hover {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}


.pssdc-report-filter-card form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.pssdc-report-filter-card form > div {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.pssdc-report-filter-card label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.pssdc-report-filter-card select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fdfdfd;
  font-size: 14px;
}

.pssdc-report-filter-card button {
  align-self: flex-end;
  padding: 8px 20px;
}



.pssdc-table th, .pssdc-table td {
  vertical-align: middle !important;
}


/* =====================================================
   REPORT SUMMARY TABLE STYLING
   ===================================================== */
.pssdc-report-summary-table {
  border-collapse: collapse;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* Make borders thicker and darker */
.pssdc-report-summary-table th,
.pssdc-report-summary-table td {
  border: 2px solid #1a1a1a !important; /* dark border */
  padding: 10px;
  text-align: center;
  vertical-align: middle; /* ✅ centers vertically */
}

/* Match DNP and HOP column widths exactly */
.pssdc-report-summary-table th:nth-child(9),
.pssdc-report-summary-table th:nth-child(10),
.pssdc-report-summary-table td:nth-child(9),
.pssdc-report-summary-table td:nth-child(10) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}


/* Responsive tuning for small screens */
@media (max-width: 768px) {
  .pssdc-report-summary-table th,
  .pssdc-report-summary-table td {
    font-size: 0.8rem;
    padding: 6px;
  }

  .pssdc-report-area {
    padding: 15px;
    gap: 15px;
  }

  .pssdc-report-filter-card,
  .pssdc-card {
    max-width: 100%;
    width: 100%; /* ✅ full width on mobile */
    margin: 0;
  }

  .pssdc-report-summary-table th {
    max-width: 150px;         /* ✅ limit how wide each column can grow */
    white-space: normal;      /* ✅ allow wrapping */
    word-wrap: break-word;    /* ✅ break long words if needed */
    font-size: 0.8rem;        /* slightly smaller text for better fit */
    padding: 8px 6px;
  }

  .pssdc-report-summary-table td {
    max-width: 150px;
    white-space: nowrap;      /* keep data (numbers) on one line */
    text-overflow: ellipsis;
    overflow: hidden;
  }
}


/* =====================================================
   AUDIT STAFF LIST PAGE List Type Filter Bar 
   ===================================================== */


.pssdc-list-filters {
    margin-top: 3rem !important; 
}


.pssdc-list-filters .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); 
    border-radius: 8px; 
    overflow: hidden; 
}


.pssdc-list-filters .btn {
    border: solid 1px;
    border-color: #133820; 
    padding: 10px 20px; 
    font-weight: 500; 
    transition: all 0.3s ease; 
}


.pssdc-list-filters .btn-primary {
    color: #fff !important;
    font-weight: 600; 
}

/* 5. Hover Effect */
.pssdc-list-filters .btn-outline-secondary:hover {
    background-color: #e9ecef; 
    color: #495057;
    border-color: #adb5bd;
}





/* --- Global Spacing & Wrapper --- */

.pssdc-tabs-wrapper {
    /* Add space above the tabs */
    margin-top: 15px; 
    /* The mb-3 class on the wrapper already gives space below */
}

/* --- Tab Structure Refinement (nav-tabs) --- */

.pssdc-tabs-wrapper .nav-tabs {
    /* Ensures a clear bottom border for the entire tab structure */
    border-bottom: 2px solid #ccc; 
}

.pssdc-tabs-wrapper .nav-tabs .nav-item {
    /* Add padding/margin to separate tabs slightly */
    margin-right: 5px; 
}

.pssdc-tabs-wrapper .nav-tabs .nav-link {
    /* Base style for all links */
    border: 1px solid transparent; /* Hide default link border */
    border-bottom: none; /* Crucial: Remove individual bottom border */
    padding: 10px 15px;
    color: #444;
    font-weight: 500;
}

/* Active Tab Styling */
.pssdc-tabs-wrapper .nav-tabs .nav-link.active {
    /* Show top/side borders, ensure background is white (to visually connect to page content) */
    color: #133820;
    background-color: #fff;
    border-color: #ccc #ccc #fff; /* Border color: top, right, BOTTOM (white to connect), left */
    border-top: 3px solid #133820; /* Highlight active tab with a strong colored border */
    margin-bottom: -2px; /* Pull it down slightly to cover the main nav-tabs bottom border */
}

/* --- Content Spacing --- */

.pssdc-tab-content {
    /* Add clear space between the tabs and the content */
    padding-top: 20px; 
}

/* --- Special Styling for the 'Manage' Tab --- */

.pssdc-tabs-wrapper .pssdc-last-link {
    /* Separate it visually */
    margin-left: 20px; 
    
    /* Make it look more like a button/action link, but still part of the row */
    background-color: #aeaeae !important; 
    color: black;
    border-radius: 10px;
    border-color: #bebebe;
    border-bottom: 1px solid #aeaeae !important; /* Force a bottom border for the link */
    font-weight: bold;
}

/* Hover state for the special link */
.pssdc-tabs-wrapper .pssdc-manage-link:hover {
    background-color: #1e7e34; 
    border-color: #1e7e34;
    color: white;
}