.login-error-msg {
    margin-bottom: 10px;
    font-size: 12px;
    color: red;
}

.form-header {
    padding-top: 1rem;
    font-size: 20px !important;
}

.export-btns {
    display: flex;
    align-items: flex-end;
    justify-content: end;
    gap: 10px;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #6b7280;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    min-width: 2.5rem;
    height: 2.5rem;
}

.pagination .page-link:hover {
    z-index: 2;
    color: #1f2937;
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .page-link:focus {
    z-index: 3;
    color: #1f2937;
    background-color: #f3f4f6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    pointer-events: none;
    background-color: #fff;
    border-color: #d1d5db;
}

.pagination .page-link i {
    font-size: 0.875rem;
    line-height: 1;
}

/* Mobile pagination adjustments */
@media (max-width: 575.98px) {
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
        min-width: 2rem;
        height: 2rem;
    }
    
    .pagination .page-link span {
        display: none;
    }
}

/* Results info styling */
.text-muted.small {
    font-size: 0.875rem;
    color: #6b7280 !important;
}

.text-muted .fw-semibold {
    font-weight: 600;
    color: #1f2937 !important;
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Pagination navigation */
.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 767.98px) {
    .pagination-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

.preview-container {
    position: relative;
    margin-top: 10px;
    display: inline-block;
}

.preview-image {
    max-width: 60px;
}

.delete-btn {
    position: absolute;
    top: -12px;
    right: -5px;
    color: #e80b0b;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.sec_loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

.no-data-fount {
    text-align: center;
    margin: 3rem;
}

#layout-navbar {
    margin: 0;
    padding: 0;
    width: 100% !important;
    border-radius: 0;
    height: inherit;
}

.img-preview {
    max-width: 330px;
    border-radius: 8px;
}

.document-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.pending {
    background: red;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
}

.approved {
    background: green;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
}

.admin-underline {
    margin: 0 1rem .5rem 1rem !important;
    opacity: 0.5 !important;
}


.swal2-container {
    z-index: 10000000 !important;
}

.document-share:hover {
    color: #ffffff !important;
    transform: scale(1.1);
}

.branch-list-img-sec {
    height: 50px;
    width: 50px;
}

.buttons-sec {
    justify-content: end;
    display: flex;
    margin-top: 1rem;
    gap: 10px;
}

.task-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 16px 24px !important;
    color: #050038 !important;
}

.task-timeline h5,
.task-timeline .card-title,
.task-timeline i {
    color: #050038 !important;
    font-weight: 500 !important;
    font-size: 16px !important; /* UI/UX standard card header size */
    margin: 0 !important;
}

.task-timeline i {
    color: #0500FF !important; /* Premium brand blue action color for icons */
}

/* Custom Theme Override (design.md) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

html, body, .layout-menu, .menu-inner, .navbar, .btn, .card, .table, .form-control, .form-select, .modal-content, h1, h2, h3, h4, h5, h6, p, span, a, div, td, th {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

:root {
    --bs-primary: #050038 !important;
    --bs-primary-rgb: 5, 0, 56 !important;
}

/* UI/UX Standard Font Sizes (design.md) */
html, body, div, span, applet, object, iframe, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    font-size: 14px; /* Default body-sm standard size */
}

/* Typography Hierarchy & Weight Scale (design.md) */
h1, .h1 {
    font-size: 48px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -1px !important;
}
h2, .h2 {
    font-size: 36px !important;
    font-weight: 500 !important;
    line-height: 1.20 !important;
    letter-spacing: -0.5px !important;
}
h3, .h3 {
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0px !important;
}
h4, .h4 {
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1.30 !important;
    letter-spacing: 0px !important;
}
h5, .h5, .card-title, .modal-title, .card-header, .card-header h5 {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.40 !important;
    letter-spacing: 0px !important;
}
h6, .h6 {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.50 !important;
    letter-spacing: 0px !important;
}

/* Override Bootstrap bold/heavy helper classes globally */
.fw-bold, .fw-bolder, strong, b {
    font-weight: 600 !important; /* Max weight in design.md is 600 */
}
.fw-semibold {
    font-weight: 500 !important;
}
.fw-medium {
    font-weight: 500 !important;
}
body, p, .body-md, .card-body p {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.50 !important;
    letter-spacing: 0px !important;
}
.body-sm, table td, table th, .table th, .table td, tbody td, .table tbody td {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.50 !important;
}
.caption, small, .small, .text-muted, .form-text, .help-block {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.40 !important;
}

/* Forms: Inputs, Labels and Weights */
.form-label, label, .col-form-label, .input-label {
    font-size: 13px !important;
    font-weight: 500 !important; /* Medium weight, not bold */
    color: #050038 !important; /* Dark ink color */
    margin-bottom: 6px !important;
    text-transform: none !important; /* Avoid forced uppercase if any */
}

.form-control, .form-select, .input-group-text, input, select, textarea, .form-control-plaintext {
    font-size: 14px !important;
    font-weight: 400 !important; /* Regular body weight */
    height: 40px !important;
    color: #050038 !important;
}

/* Modal Headers & Labels */
.modal-header {
    padding: 16px 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.modal-body {
    padding: 24px !important;
}
.modal-body label {
    font-size: 13px !important;
    font-weight: 500 !important;
}
.modal-footer {
    padding: 16px 24px !important;
    border-top: 1px solid #e5e7eb !important;
}

/* Sidebar Menu Font & Weight */
.menu-inner .menu-item .menu-link, .nav-link, .dropdown-item {
    font-size: 14px !important;
    font-weight: 400 !important;
}
.menu-inner .menu-item.active > .menu-link {
    font-weight: 500 !important; /* Max weight for active is 500 */
}

/* Table Headers with micro-uppercase token */
.table th, thead th, .table thead th {
    font-size: 11px !important;
    font-weight: 600 !important; /* Uppercase token weight */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.40 !important;
    background-color: #f9fafb !important;
    color: #050038 !important;
}

/* Buttons (Pill-shaped design and colors) */
.btn {
    border-radius: 9999px !important; /* Full pill shape */
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.30 !important;
    padding: 8px 20px !important;
}
.btn-sm, .btn-group-sm > .btn {
    padding: 4px 14px !important;
    font-size: 12px !important;
}
.btn-lg, .btn-group-lg > .btn {
    padding: 12px 28px !important;
    font-size: 16px !important;
}

.btn-primary {
    color: #ffffff !important;
    background-color: #050038 !important;
    border-color: #050038 !important;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(5, 0, 56, 0.4) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
    background-color: #0d0658 !important;
    border-color: #0d0658 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: #050038 !important;
    border-color: #050038 !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .show > .btn-outline-primary.dropdown-toggle {
    color: #ffffff !important;
    background-color: #050038 !important;
    border-color: #050038 !important;
}

.btn-warning {
    background-color: #FFD02F !important;
    border-color: #FFD02F !important;
    color: #050038 !important;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    background-color: #f2c200 !important;
    border-color: #f2c200 !important;
    color: #050038 !important;
}

.btn-info {
    background-color: #0500FF !important;
    border-color: #0500FF !important;
    color: #ffffff !important;
}
.btn-info:hover, .btn-info:focus, .btn-info:active {
    background-color: #0400cc !important;
    border-color: #0400cc !important;
    color: #ffffff !important;
}

/* Sidebar Active & Layout overrides */
.bg-menu-theme {
    background-color: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
    color: #050038 !important;
    background-color: rgba(255, 208, 47, 0.18) !important; /* Canary Yellow tint */
    font-weight: 600 !important;
}
.bg-menu-theme .menu-inner > .menu-item.active::before {
    display: none !important; /* Remove yellow rightside line */
}
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link {
    color: #050038 !important;
    font-weight: 600 !important;
    background-color: rgba(255, 208, 47, 0.1) !important;
}
.menu-link {
    font-size: 14px !important;
}

/* Backgrounds (Canvas and Surfaces) */
.content-wrapper {
    background-color: #f9fafb !important; /* Surface background */
}
.card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: rgba(5, 0, 56, 0.04) 0px 1px 2px 0px !important;
    border-radius: 16px !important;
}
#layout-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

/* Icon / Status Avatars override */
.bg-label-success {
    background-color: rgba(5, 166, 148, 0.12) !important;
    color: #05A694 !important;
}
.bg-label-info {
    background-color: rgba(5, 0, 255, 0.08) !important;
    color: #0500FF !important;
}
.bg-label-warning {
    background-color: #FFF9E6 !important;
    color: #9E7D00 !important;
}
.bg-label-danger {
    background-color: rgba(255, 114, 98, 0.12) !important;
    color: #FF7262 !important;
}

/* Badges (Pill status badges) */
.badge {
    border-radius: 9999px !important; /* Full pill shape */
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
}
.badge-success, .approved {
    background-color: rgba(5, 166, 148, 0.12) !important;
    color: #05A694 !important;
}
.badge-danger, .pending {
    background-color: rgba(255, 114, 98, 0.12) !important;
    color: #FF7262 !important;
}
.badge-primary, .badge-yellow {
    background-color: #FFD02F !important;
    color: #050038 !important;
}

/* Form Controls & Checkboxes */
.form-control, .form-select {
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    font-size: 14px !important;
    height: 40px !important;
}
.form-control:focus, .form-select:focus {
    border-color: #050038 !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 0, 56, 0.25) !important;
}

/* Normal HTML checkbox and radio styling override */
.form-check-input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: none !important;
    width: 14px !important;
    height: 14px !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Pagination Active State */
.pagination .page-item.active .page-link {
    background-color: #050038 !important;
    border-color: #050038 !important;
    color: #ffffff !important;
}
.pagination .page-link {
    border-radius: 9999px !important; /* Pill style buttons for pagination pages */
}

/* Dropdown active item */
.dropdown-item.active, .dropdown-item:active {
    background-color: #050038 !important;
    color: #ffffff !important;
}

/* Table styling */
.table th {
    background-color: #f9fafb !important;
    color: #050038 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.table td {
    border-bottom: 1px solid #f3f4f6 !important;
}

/* Top nav notification and comment badges style */
.badge-notification {
    font-size: 9px !important;
    font-weight: 600 !important;
    padding: 2px 5px !important;
    min-width: 15px !important;
    height: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
}
.badge-notification span, .badge-notification #notificationCount {
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* Sidebar Count Badges styling */
.badge-sidebar-count {
    font-size: 11px !important;
    font-weight: 600 !important;
    height: 18px !important;
    min-width: 20px !important;
    padding: 0 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    line-height: 1 !important;
    margin-left: 8px !important;
}

/* Comment Section UI/UX Standard Styling */
.comment-item {
    margin-bottom: 12px !important;
}
.comment-metadata {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
}
.comment-metadata .fw-bold, 
.comment-metadata span.text-dark,
.comment-metadata span.fw-bold {
    font-size: 13px !important;
    font-weight: 500 !important; /* Medium weight, not bold */
    color: #050038 !important;
}
.comment-metadata span.opacity-75, 
.comment-metadata span:not(.text-dark) {
    font-size: 12px !important;
    color: #9ca3af !important;
}
.comment-bubble {
    background-color: #f3f4f6 !important; /* Light surface background */
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-top: 6px !important;
    display: inline-block !important;
}
.comment-bubble p, 
.comment-bubble .text-dark {
    font-size: 14px !important; /* body-sm size */
    font-weight: 400 !important;
    line-height: 1.50 !important;
    color: #050038 !important;
}
.comment-actions, 
.comment-actions a {
    font-size: 12px !important;
    font-weight: 500 !important;
}
.comment-avatar {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    flex-shrink: 0 !important; /* Prevent profile picture avatar from shrinking */
}

/* Compact Comment Post Section Styling */
.compact-comment-form-container {
    background-color: #f9fafb !important;
    border-radius: 12px !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
}
.compact-comment-form {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}
.compact-comment-form:focus-within {
    border-color: #050038 !important;
    box-shadow: 0 0 0 2px rgba(5, 0, 56, 0.15) !important;
}
.compact-comment-form textarea {
    font-size: 14px !important; /* body-sm size */
    font-weight: 400 !important;
    color: #050038 !important;
    line-height: 1.5 !important;
}
#privacy_controls label,
#recipient_wrapper select,
#reply_indicator span {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
}

/* Clean Premium Modal Headers Override */
.modal-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 16px 24px !important;
}
.modal-header .modal-title,
.modal-header .modal-title i,
.modal-header h5 {
    color: #050038 !important;
    font-weight: 500 !important;
    font-size: 18px !important;
}
/* Ensure close button is dark/visible on white background */
.modal-header .btn-close, .modal-header .btn-close-white {
    filter: none !important; /* Revert white close button filter to dark standard */
    opacity: 0.5 !important;
}
.modal-header .btn-close:hover, .modal-header .btn-close-white:hover {
    opacity: 0.8 !important;
}

/* Button UI/UX Standard Sizes */
.btn {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease-in-out !important;
}
.btn-sm {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    line-height: 1.3 !important;
}
.btn-lg {
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    line-height: 1.5 !important;
}
/* Alignment for icons inside buttons */
.btn i, .btn-sm i, .btn-lg i {
    font-size: 1.15em !important;
    vertical-align: middle !important;
}

/* Hide breadcrumbs globally on all pages */
h4.fw-bold.py-3.mb-4 {
    display: none !important;
}

/* Prevent sidebar badges from wrapping or breaking to next line */
.menu-item .menu-link div[data-i18n] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    white-space: nowrap !important;
}
.badge-sidebar-count {
    flex-shrink: 0 !important; /* Never compress or wrap the badge */
}

/* Align task edit comments layout to UI/UX standard sizes */
.comment-item h6, 
.comment-item .text-primary {
    font-size: 13px !important; /* Standard author size */
    font-weight: 500 !important;
}
.comment-content p,
.comment-item p {
    font-size: 14px !important; /* body-sm size */
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
.comment-item small,
.comment-item .text-muted {
    font-size: 12px !important;
}