.error {
    color: red !important;
}

:root {
  --bs-primary: #14631f;   /* Your primary color */
  --bs-secondary: #5ed991; /* Your secondary color */
}

.bg-n-primary {
  background-color: #14631f !important;
}

.text-n-primary {
  color: #14631f !important;
}

.border-n-primary {
  border-color: #14631f !important;
}

.bg-n-primary-light {
  background-color: #218c2a !important; /* lighter shade */
}

.text-n-primary-light {
  color: #218c2a !important;
}

.bg-n-primary-dark {
  background-color: #0e4716 !important; /* darker shade */
}

.text-n-primary-dark {
  color: #0e4716 !important;
}

.btn-n-primary {
  background-color: #14631f !important;
  color: #fff !important;
  border-color: #14631f !important;
}
.btn-n-primary:hover, .btn-n-primary:focus, .btn-n-primary:active {
  background-color: #0e4716 !important;
  border-color: #0e4716 !important;
  color: #fff !important;
}

.btn-n-primary-light {
  background-color: #218c2a !important;
  color: #fff !important;
  border-color: #218c2a !important;
}
.btn-n-primary-light:hover, .btn-n-primary-light:focus, .btn-n-primary-light:active {
  background-color: #14631f !important;
  border-color: #14631f !important;
  color: #fff !important;
}

.btn-n-primary-dark {
  background-color: #0e4716 !important;
  color: #fff !important;
  border-color: #0e4716 !important;
}
.btn-n-primary-dark:hover, .btn-n-primary-dark:focus, .btn-n-primary-dark:active {
  background-color: #14631f !important;
  border-color: #14631f !important;
  color: #fff !important;
}

.btn-n-outline-primary {
  background-color: transparent !important;
  color: #14631f !important;
  border-color: #14631f !important;
}
.btn-n-outline-primary:hover, .btn-n-outline-primary:focus, .btn-n-outline-primary:active {
  background-color: #14631f !important;
  border-color: #14631f !important;
  color: #fff !important;
}

.password-input {
    padding-right: 2.5rem; /* Space for the icon */
}

.toggle-password {
    position: absolute;
    top: 70%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    color: #6c757d; /* Optional: match Bootstrap's text-muted */

}

.toggle-password :hover {
    color: #343a40; /* Optional: darker color on hover */
}

.profile-photo-section {
    padding: 1rem;
}

.profile-photo-section img {
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-borderless th {
    border: none !important;
    padding: 0.75rem 0.5rem;
    font-weight: 500;
}

.table-borderless td {
    border: none !important;
    padding: 0.75rem 0.5rem;
}

.signature-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.signature-container {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#view_staff_modal .modal-body {
    padding: 1.5rem;
}

#view_staff_modal .fw-medium {
    font-weight: 500 !important;
}

#view_contractor .modal-body {
    padding: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

.timeline::before {
    left: 0% !important;
}
.info-item label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1rem;
    width: 2px;
    height: calc(100% - 0.5rem);
    background-color: #e9ecef;
}

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-content {
    padding-left: 1rem;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
}

.timeline-text {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6c757d !important;
}

.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}
.summary-card {
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.requisition-form {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.table-hover tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.btn-group-actions .btn {
    margin: 0 2px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: bold;
}

.action-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Force white text on green backgrounds regardless of theme mode (light/dark) */
.bg-n-primary.text-white,
.bg-n-primary .text-white,
.bg-n-primary.text-white *,
thead.bg-n-primary.text-white th {
    color: #ffffff !important;
}

/* Ensure card titles and headings in bg-n-primary headers stay white in both light and dark mode */
.card-header.bg-n-primary,
.card-header.bg-n-primary .card-title,
.card-header.bg-n-primary h1,
.card-header.bg-n-primary h2,
.card-header.bg-n-primary h3,
.card-header.bg-n-primary h4,
.card-header.bg-n-primary h5,
.card-header.bg-n-primary h6,
.card-header.bg-n-primary i,
.card-header.bg-n-primary .mb-0,
.card-header.bg-n-primary button {
    color: #ffffff !important;
}

/* Apply white color to all children EXCEPT dropdown items */
.card-header.bg-n-primary *:not(.dropdown-menu):not(.dropdown-menu *) {
    color: #ffffff !important;
}

/* Ensure table headers with green background maintain white text */
thead.bg-n-primary th,
thead.bg-n-primary th *,
thead.bg-n-primary.text-white th,
thead.bg-n-primary.text-white th * {
    color: #ffffff !important;
}

/* Exception: Dropdown items should be dark in lite mode, white in dark mode */
.card-header.bg-n-primary .dropdown-menu {
    background-color: #ffffff !important;
}

.card-header.bg-n-primary .dropdown-menu .dropdown-item,
.card-header.bg-n-primary .dropdown-menu .dropdown-item i,
.card-header.bg-n-primary .dropdown-menu .dropdown-item * {
    color: #212529 !important;
}

.card-header.bg-n-primary .dropdown-menu .dropdown-item:hover,
.card-header.bg-n-primary .dropdown-menu .dropdown-item:hover i,
.card-header.bg-n-primary .dropdown-menu .dropdown-item:hover * {
    color: #212529 !important;
    background-color: #f8f9fa !important;
}

/* Dark mode: Dropdown menu and items should have dark background and white text */
[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu {
    background-color: #2b2b40 !important;
}

[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu .dropdown-item,
[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu .dropdown-item i,
[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu .dropdown-item * {
    color: #ffffff !important;
}

[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu .dropdown-item:hover,
[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu .dropdown-item:hover i,
[data-theme-mode=dark] .card-header.bg-n-primary .dropdown-menu .dropdown-item:hover * {
    color: #ffffff !important;
    background-color: #3e3e54 !important;
}

.file-info {
    margin-top: 10px;
}
.file-info .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}
.preview-btn {
    transition: all 0.2s ease;
}
.preview-btn:hover {
    transform: scale(1.05);
}

.documents-grid .document-card {
    transition: all 0.3s ease;
    min-height: 200px;
}

.documents-grid .document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.documents-grid .document-icon {
    transition: transform 0.3s ease;
}

.documents-grid .document-card:hover .document-icon {
    transform: scale(1.1);
}

.contractor-docs-section {
    border-radius: 8px;
    overflow: hidden;
}

/* .section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
} */

.btn-xs {
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 3px;
}
.btn-group-vertical .btn {
    margin-bottom: 2px;
}
.table td {
    vertical-align: middle;
}
.contractor-info {
    min-width: 150px;
}
.document-links {
    min-width: 120px;
}
.file-info {
    margin-top: 10px;
}
.file-info .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}
.preview-btn {
    transition: all 0.2s ease;
}
.preview-btn:hover {
    transform: scale(1.05);
}

.swal2-actions button:hover {
    background-color: #052101 !important;
    color: #fff !important;
}
