/* Write your custom css in this file. */

/* Global Text Readability */
body {
    color: #212529 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #000000 !important;
    font-weight: 600;
}

/* Links */
a {
    color: #0d6efd;
}
a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Tables */
table.dataTable thead th, 
table.dataTable thead td,
.table thead th {
    color: #000000 !important;
    font-weight: 700 !important;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
}

table.dataTable tbody td,
.table tbody td {
    color: #212529 !important;
}

/* Forms and Labels */
label {
    color: #212529 !important;
    font-weight: 600 !important;
}

.form-control {
    color: #212529 !important;
    border-color: #ced4da;
}

.form-control:focus {
    color: #212529 !important;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navigation/Sidebar text if too light */
.sidebar-menu > ul > li > a {
    color: #333 !important;
}
.sidebar-menu > ul > li > a:hover,
.sidebar-menu > ul > li.active > a {
    color: #0d6efd !important;
    background-color: #e9ecef !important;
}

/* Badges/Labels */
.badge, .label {
    font-weight: 600;
}

/* Cards */
.card-title {
    color: #000 !important;
}

/* Global Border Visibility */
:root {
    --visible-border-color: #b8c2cc;
}

.card,
.modal-content,
.dropdown-menu,
.table,
.table th,
.table td,
table.dataTable thead th,
table.dataTable thead td,
table.dataTable tbody td,
.form-control,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.nav-tabs,
.nav-tabs .nav-link,
.list-group-item {
    border-color: var(--visible-border-color) !important;
}

/* Projects: lock "Dossier" column width */
#project-table th.project-col-120,
#project-table td.project-col-120 {
    width: 120px !important;
    max-width: 120px !important;
}

#project-table td.project-col-120 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-content .projects-page + .table-responsive,
#page-content .card.grid-button .table-responsive {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12), 0 2px 0 rgba(255, 255, 255, 0.85) inset;
    border: 1px solid rgba(15, 23, 42, 0.10);
    overflow-x: auto;
    overflow-y: visible;
}

/* Ensure dropdown menus in grid-button tables are on top */
#page-content .card.grid-button .dropdown-menu,
#page-content .projects-page + .table-responsive .dropdown-menu {
    z-index: 3000 !important;
}

#page-content .card.grid-button .dropdown,
#page-content .projects-page + .table-responsive .dropdown {
    position: relative;
}

#project-table_wrapper {
    padding: 10px;
}

table#project-table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

table#project-table.dataTable thead th,
table#project-table.dataTable thead td {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.10), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

table#project-table.dataTable tbody tr {
    background: #ffffff !important;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(0);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

table#project-table.dataTable tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

table#project-table.dataTable tbody td {
    background: transparent !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

table#project-table.dataTable tbody tr td:first-child {
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table#project-table.dataTable tbody tr td:last-child {
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

#admin-users-table_wrapper {
    padding: 10px;
}

table#admin-users-table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

table#admin-users-table.dataTable thead th,
table#admin-users-table.dataTable thead td {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.10), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

table#admin-users-table.dataTable tbody tr {
    background: #ffffff !important;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(0);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

table#admin-users-table.dataTable tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

table#admin-users-table.dataTable tbody td {
    background: transparent !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

table#admin-users-table.dataTable tbody tr td:first-child {
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table#admin-users-table.dataTable tbody tr td:last-child {
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

body {
    background: radial-gradient(1200px 700px at 20% 0%, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0) 55%),
        radial-gradient(900px 600px at 90% 10%, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0) 55%),
        #f7f8fb;
}

.card:not(.bg-primary):not(.bg-success):not(.bg-info):not(.bg-warning):not(.bg-danger) {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    border-radius: 14px;
    transform: translateY(0);
    transition: transform 140ms ease, box-shadow 140ms ease;
    will-change: transform, box-shadow;
}

.card:not(.bg-primary):not(.bg-success):not(.bg-info):not(.bg-warning):not(.bg-danger):hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(16, 24, 40, 0.16), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.bg-primary.card,
.bg-success.card,
.bg-info.card,
.bg-warning.card,
.bg-danger.card {
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.nav-tabs {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border-radius: 14px;
}

.nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 12px !important;
    margin: 6px 4px;
    color: #0f172a !important;
    background: transparent;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(13, 110, 253, 0.08);
    transform: translateY(-1px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.14), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    color: #0b5ed7 !important;
}

.btn.btn-default {
    background: linear-gradient(180deg, #ffffff 0%, #f2f4f8 100%);
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.12), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn.btn-default:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.16), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.btn.btn-primary,
.btn.btn-success,
.btn.btn-danger,
.btn.btn-warning,
.btn.btn-info {
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.18);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn.btn-primary:hover,
.btn.btn-success:hover,
.btn.btn-danger:hover,
.btn.btn-warning:hover,
.btn.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.22);
    filter: saturate(1.05);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.9) inset;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.18), 0 2px 0 rgba(255, 255, 255, 0.9) inset !important;
}

table.dataTable.display {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
}

table.dataTable.display thead th,
table.dataTable.display thead td {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.10), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

table.dataTable.display tbody tr {
    background: #ffffff !important;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(0);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

table.dataTable.display tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

table.dataTable.display tbody td {
    background: transparent !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

table.dataTable.display tbody tr td:first-child {
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table.dataTable.display tbody tr td:last-child {
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

#invoices-list .table-responsive,
#admin-sales-table_wrapper .table-responsive,
#admin-project-table_wrapper .table-responsive,
#admin-purchases-table_wrapper .table-responsive,
#admin-sales-payments-table_wrapper .table-responsive,
#admin-purchase-payments-table_wrapper .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

#invoice-list-table tbody tr.datatable-dropdown-open,
#admin-sales-table tbody tr.datatable-dropdown-open,
#admin-project-table tbody tr.datatable-dropdown-open,
#admin-purchases-table tbody tr.datatable-dropdown-open,
#admin-sales-payments-table tbody tr.datatable-dropdown-open,
#admin-purchase-payments-table tbody tr.datatable-dropdown-open {
    position: relative;
    z-index: 2000;
}

#invoice-list-table .dropdown-menu,
#admin-sales-table .dropdown-menu,
#admin-project-table .dropdown-menu,
#admin-purchases-table .dropdown-menu,
#admin-sales-payments-table .dropdown-menu,
#admin-purchase-payments-table .dropdown-menu {
    z-index: 2001;
}

#monthly-vendor-table_wrapper {
    position: relative;
    z-index: 1;
}

.purchase-vendors-table-wrap,
#monthly-vendor-table_wrapper .table-responsive,
#monthly-vendor-table_wrapper .dataTables_wrapper,
#monthly-vendor-table {
    overflow: visible !important;
}

#monthly-vendor-table tbody tr.datatable-dropdown-open {
    position: relative;
    z-index: 2500;
}

#monthly-vendor-table tbody tr.datatable-dropdown-open td {
    position: relative;
    z-index: 2500;
}

#monthly-vendor-table .dropdown,
#monthly-vendor-table .dropdown-menu {
    position: relative;
}

#monthly-vendor-table .dropdown-menu {
    z-index: 2600 !important;
}

.table-table_pur_invoices {
    overflow: visible !important;
}

.table-table_pur_invoices_wrapper,
.table-table_pur_invoices_wrapper .table-responsive,
.table-table_pur_invoices_wrapper .dataTables_wrapper {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

.table-table_pur_invoices tbody tr.datatable-dropdown-open {
    position: relative;
    z-index: 2500;
}

.table-table_pur_invoices tbody tr.datatable-dropdown-open td {
    position: relative;
    z-index: 2500;
}

.table-table_pur_invoices .dropdown,
.table-table_pur_invoices .dropdown-menu {
    position: relative;
}

.table-table_pur_invoices .dropdown-menu {
    z-index: 2600 !important;
}

.table-table_pur_order,
.table-pur_estimates {
    overflow: visible !important;
}

.table-table_pur_order_wrapper,
.table-table_pur_order_wrapper .table-responsive,
.table-table_pur_order_wrapper .dataTables_wrapper,
.table-pur_estimates_wrapper,
.table-pur_estimates_wrapper .table-responsive,
.table-pur_estimates_wrapper .dataTables_wrapper {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

.table-table_pur_order tbody tr.datatable-dropdown-open,
.table-pur_estimates tbody tr.datatable-dropdown-open {
    position: relative;
    z-index: 2500;
}

.table-table_pur_order tbody tr.datatable-dropdown-open td,
.table-pur_estimates tbody tr.datatable-dropdown-open td {
    position: relative;
    z-index: 2500;
}

.table-table_pur_order .dropdown,
.table-table_pur_order .dropdown-menu,
.table-pur_estimates .dropdown,
.table-pur_estimates .dropdown-menu {
    position: relative;
}

.table-table_pur_order .dropdown-menu,
.table-pur_estimates .dropdown-menu {
    z-index: 2600 !important;
}

.invoice-details-view #page-content.grid-button .table-responsive {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Team member profile: tabs and select design */
.team-member-profile-page {
    position: relative;
}

.team-member-profile-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 320px;
    background:
        radial-gradient(700px 240px at 12% 8%, rgba(13, 110, 253, 0.16) 0%, rgba(13, 110, 253, 0) 62%),
        radial-gradient(640px 220px at 88% 2%, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 62%);
    pointer-events: none;
    z-index: 0;
}

.team-member-profile-page > * {
    position: relative;
    z-index: 1;
}

.team-member-profile-page .bg-primary.card {
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background:
        linear-gradient(135deg, rgba(8, 47, 73, 0.94) 0%, rgba(13, 110, 253, 0.92) 55%, rgba(96, 165, 250, 0.88) 100%) !important;
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.24);
}

.team-member-profile-page .bg-primary.card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -30px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

#team-member-view-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
    margin-top: 0;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-top: 0 !important;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(243, 247, 252, 0.98) 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.team-member-profile-page #team-member-view-tabs > li {
    flex: 0 0 auto;
}

.team-member-profile-page #team-member-view-tabs > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.36);
    color: #0f172a !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: all 160ms ease;
}

.team-member-profile-page #team-member-view-tabs > li > a:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.14);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

.team-member-profile-page #team-member-view-tabs > li.active > a,
.team-member-profile-page #team-member-view-tabs > li > a.active {
    color: #0b5ed7 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.team-member-profile-page .team-member-tab-content {
    margin-top: 18px;
}

.team-member-profile-page .team-member-tab-content > .tab-pane {
    padding: 14px 0 0;
}

.team-member-profile-page .team-member-tab-content > .active,
.team-member-profile-page .team-member-tab-content > .show.active {
    animation: teamMemberFadeUp 180ms ease;
}

.team-member-profile-page .team-member-tab-content .card,
.team-member-profile-page .team-member-tab-content .panel,
.team-member-profile-page .team-member-tab-content .widget-container,
.team-member-profile-page .team-member-tab-content .timeline .card {
    border-radius: 16px;
}

.team-member-profile-page .team-member-tab-content .form-group {
    margin-bottom: 18px;
}

.team-member-profile-page .team-member-tab-content label {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.team-member-profile-page .team-member-tab-content .form-control,
.team-member-profile-page .team-member-tab-content textarea,
.team-member-profile-page .team-member-tab-content input[type="text"],
.team-member-profile-page .team-member-tab-content input[type="email"],
.team-member-profile-page .team-member-tab-content input[type="password"],
.team-member-profile-page .team-member-tab-content input[type="number"] {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.team-member-profile-page .team-member-tab-content textarea {
    min-height: 120px;
}

.team-member-profile-body .team-member-profile-page .select2-container {
    width: 100% !important;
}

.team-member-profile-body .team-member-profile-page .select2-container .select2-choice,
.team-member-profile-body .team-member-profile-page .select2-container .select2-choices,
.team-member-profile-body .team-member-profile-page .select2-container--default .select2-selection--single,
.team-member-profile-body .team-member-profile-page .select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
}

.team-member-profile-body .team-member-profile-page .select2-container .select2-choice {
    display: flex !important;
    align-items: center;
    padding: 0 42px 0 14px !important;
}

.team-member-profile-body .team-member-profile-page .select2-container .select2-choice > .select2-chosen,
.team-member-profile-body .team-member-profile-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    color: #0f172a !important;
}

.team-member-profile-body .team-member-profile-page .select2-container .select2-choice .select2-arrow,
.team-member-profile-body .team-member-profile-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 36px !important;
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 0 12px 12px 0;
}

.team-member-profile-body .team-member-profile-page .select2-container-active .select2-choice,
.team-member-profile-body .team-member-profile-page .select2-container-active .select2-choices,
.team-member-profile-body .team-member-profile-page .select2-container--default.select2-container--focus .select2-selection--single,
.team-member-profile-body .team-member-profile-page .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(37, 99, 235, 0.32) !important;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 18px rgba(37, 99, 235, 0.09) !important;
}

.team-member-profile-body .team-member-profile-page .select2-container-multi .select2-choices .select2-search-choice,
.team-member-profile-body .team-member-profile-page .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid rgba(37, 99, 235, 0.10) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%) !important;
    color: #0b5ed7 !important;
    box-shadow: none !important;
}

.team-member-profile-body .select2-drop,
.team-member-profile-body .select2-dropdown {
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
}

.team-member-profile-body .select2-search input,
.team-member-profile-body .select2-dropdown .select2-search__field {
    border-radius: 10px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    background: #f8fbff !important;
}

.team-member-profile-body .select2-results .select2-highlighted,
.team-member-profile-body .select2-results__option--highlighted[aria-selected],
.team-member-profile-body .select2-results__option--highlighted[aria-selected=true] {
    background: linear-gradient(180deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #fff !important;
}

.team-member-profile-page .btn,
.team-member-profile-page .btn-default,
.team-member-profile-page .btn-primary {
    border-radius: 12px;
}

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

.invoice-details-view .invoice-details-canvas {
    max-width: 1000px;
    margin: 0 auto;
}

.invoice-details-view table.header-style {
    width: 100%;
    margin-top: 0;
    border-collapse: collapse;
}

.invoice-details-view table.header-style td,
.invoice-details-view table.header-style th {
    padding: 8px 10px;
    vertical-align: top;
}

.invoice-details-view .invoice-project-meta {
    margin: 0 15px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
}

.invoice-details-view .invoice-project-meta td {
    padding: 10px 12px;
}

.invoice-details-view .invoice-project-meta tr + tr td {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.invoice-details-view table.dataTable.display {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
}

.invoice-details-view table.dataTable.display thead th,
.invoice-details-view table.dataTable.display thead td {
    background: #f8f9fa !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.invoice-details-view table.dataTable.display tbody tr {
    background: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.invoice-details-view table.dataTable.display tbody tr:hover {
    background: #f8fafc !important;
    box-shadow: none !important;
    transform: none !important;
}

.invoice-details-view table.dataTable.display tbody td {
    background: #ffffff !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.invoice-details-view table.dataTable.display tbody tr td:first-child,
.invoice-details-view table.dataTable.display tbody tr td:last-child {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    table.dataTable.display tbody tr,
    .nav-tabs .nav-link {
        transition: none !important;
        transform: none !important;
    }
}

/* Sign-in page: centered layout and mobile optimization */
body.signin-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.signin-page .signin-page-wrapper,
body.signin-page .scrollable-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    position: static !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

body.signin-page .form-signin {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

body.signin-page .signin-card {
    margin-bottom: 0 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
    overflow: hidden;
}

body.signin-page .signin-card:hover {
    transform: none !important;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12), 0 2px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.signin-page .signin-card .card-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
}

body.signin-page .signin-logo {
    max-width: 220px;
    width: auto;
    height: auto;
    padding: 0 !important;
    display: inline-block;
}

body.signin-page .signin-card-body {
    padding: 24px !important;
}

body.signin-page .signin-card .form-group {
    margin-bottom: 14px;
}

body.signin-page .signin-card .form-group:last-of-type {
    margin-bottom: 0;
}

body.signin-page .signin-card .form-control {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 14px !important;
}

body.signin-page .signin-card .btn-primary {
    min-height: 48px;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(214, 137, 16, 0.28) !important;
}

body.signin-page .signin-card .btn-primary:hover,
body.signin-page .signin-card .btn-primary:focus {
    transform: none !important;
    box-shadow: 0 10px 22px rgba(214, 137, 16, 0.34) !important;
}

body.signin-page .signin-forgot-link {
    margin-top: 14px;
    text-align: center;
}

body.signin-page .signin-forgot-link a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 4px;
    min-height: 44px;
    line-height: 28px;
}

body.signin-page .signin-card .alert {
    margin-bottom: 16px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    body.signin-page .signin-page-wrapper,
    body.signin-page .scrollable-page {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    body.signin-page .form-signin {
        max-width: 100%;
    }

    body.signin-page .signin-logo {
        max-width: 190px;
    }

    body.signin-page .signin-card-body {
        padding: 20px 18px !important;
    }
}

@media (max-width: 380px) {
    body.signin-page .signin-logo {
        max-width: 165px;
    }
}

/* Dashboard: prevent global card/table styling from breaking widgets */
.dashboard-view {
    padding-bottom: 12px;
}

.dashboard-view .widget-container {
    margin-bottom: 15px;
}

.dashboard-view .widget-container .card {
    transform: none !important;
    transition: box-shadow 140ms ease !important;
    will-change: auto !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

.dashboard-view .widget-container .card:hover {
    transform: none !important;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

.dashboard-view .dashboard-icon-widget .card-body {
    min-height: 110px;
}

.dashboard-view .widget-details h1 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.dashboard-view table.dataTable.display {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

.dashboard-view table.dataTable.display thead th,
.dashboard-view table.dataTable.display thead td {
    background: #f8f9fa !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
    font-weight: 600 !important;
}

.dashboard-view table.dataTable.display tbody tr {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.dashboard-view table.dataTable.display tbody tr:hover {
    background: rgba(13, 110, 253, 0.04) !important;
    box-shadow: none !important;
    transform: none !important;
}

.dashboard-view table.dataTable.display tbody td {
    background: transparent !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.dashboard-view table.dataTable.display tbody tr td:first-child,
.dashboard-view table.dataTable.display tbody tr td:last-child {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.dashboard-view #project-table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

.dashboard-view #project-table.dataTable tbody tr {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.dashboard-view #project-table.dataTable tbody tr:hover {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(13, 110, 253, 0.04) !important;
}

.dashboard-view #project-table.dataTable tbody td {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.dashboard-view .dashbaord-header-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-view .dashbaord-header-area .float-start,
.dashboard-view .dashbaord-header-area .float-end {
    float: none !important;
}

.dashboard-view #dashboards-color-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    max-width: 100%;
}

.dashboard-view #dashboards-color-tags .clickable {
    padding: 6px !important;
    margin-right: 0 !important;
}

.dashboard-view .dashboard-dropdown .dropdown-toggle {
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.10);
}

.dashboard-view .dashboard-invalid-widget {
    padding: 12px;
    color: #6c757d;
}

@media (max-width: 767px) {
    .dashboard-view .dashbaord-header-area {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-view .dashbaord-header-area .float-end {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .dashboard-view #dashboards-color-tags {
        flex: 1;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .dashboard-view .dashboards-row {
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-view .widget-container {
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-view .h377,
    .dashboard-view .h379 {
        height: auto !important;
    }

    .dashboard-view .dashboard-icon-widget .card-body {
        padding: 18px 16px;
    }

    .dashboard-view .widget-details {
        position: static;
        float: right;
        text-align: right;
        margin-top: 4px;
    }

    .dashboard-view .widget-icon {
        float: left;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .dashboard-view .widget-container.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
