/*====================================================
                GLOBAL STYLES START
====================================================*/

html {
    scroll-behavior: smooth;
}

body {
    --mdb-admin-bar-offset: 0px;
    background: #f3f4f6;
    margin: 0px;
    padding: 0px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #141b2b;
    font-size: 16px;
    font-family: Inter, sans-serif;
    font-weight: 400;
}

body:focus {
    outline: none;
}

/* WordPress admin toolbar clearance for fixed membDB chrome. */
body.admin-bar {
    --mdb-admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --mdb-admin-bar-offset: 46px;
    }
}

* {
    margin: 0px;
    padding: 0px;
    outline: none;
}

img {
    margin: 0px;
    padding: 0px;
}

p:empty {
    display: none;
}

a {
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}

a:hover {
    text-decoration: none;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #555;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}
h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
p {
    font-size: 16px;
    font-weight: 400;
    color: #141b2b;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-self: center;
    align-items: center;
}

.card-heading .pull-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    background: #f9fafb;
}

.form-control,
.form-select {
    transition: all 0.3s ease;
    outline: none;
}

.form-control:hover,
.form-control:focus,
.form-control:active,
.form-select:hover,
.form-select:active,
.form-select:focus {
    border-color: #e01d2d;
    box-shadow: 0 0 5px #e01d2d65;
}

/* Section title icon spacing */
.section-title i {
    color: #b61722;
    margin-right: 8px;
}

/* Input group icon style */
.input-group-text {
    background-color: #fff;
    border-right: 0;
    color: #b61722;
}

/* Remove double border */
.input-group .form-control {
    border-left: 0;
}

/* Focus effect */
.form-control:focus {
    border-color: #b61722;
    box-shadow: 0 0 5px rgba(182, 23, 34, 0.3);
}

/* Breadcrumb Container */
.breadcrumb-box {
    padding: 0;
    margin-bottom: 8px;
}

.breadcrumb-box .link {
    color: #141b2b;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.breadcrumb-box .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-box .active {
    color: #d11a2a;
    font-weight: 600;
    font-size: 12px;
}

/*====================================================
                GLOBAL STYLES END
====================================================*/

/*====================================================
                HEADER START
====================================================*/

/* Header container */
header {
    width: 100%;
    background: #fff;
    padding: 0px 16px;
    display: flex;
    height: 70px;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: var(--mdb-admin-bar-offset, 0px);
    left: 0;
    z-index: 9999;
}

header .menu-icon {
    width: 24px;
    height: 19px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    margin-right: auto;
}

header .menu-icon span {
    width: 100%;
    height: 3px;
    background: #141b2b;
    border-radius: 4px;
    transition: 0.3s ease;
    margin: 2px 0px;
}

header .logo {
    width: 234px;
    border-right: 1px solid #eeeeee;
    height: 100%;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
}

header .logo .smallsize {
    display: none;
}

.open header .logo .bigsize {
    display: none;
}

.open header .logo .smallsize {
    display: block;
    height: 30px;
}

.open header .logo {
    width: 54px;
}

.logo-sidebar {
    padding: 16px;
    display: none;
}

.logo-sidebar img {
    height: 60px;
}

.mdb-app-version {
    display: inline-block;
    margin-left: 6px;
    vertical-align: bottom;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}


.mdb-logo-version-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.mdb-topbar-version {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #6c757d;
    white-space: nowrap;
}

.open header .logo .mdb-topbar-version {
    display: none;
}

.profile-col .dropdown-toggle {
    align-items: center;
    gap: 8px;
}

.profile-col .profile-title strong {
    font-size: 16px;
    color: #141b2b;
    font-weight: 600;
}

.profile-col .profile-title {
    text-align: right;
}

.profile-col .profile-title p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.profile-col .profile-img img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 40px;
    display: inline-block;
    border: 2px solid #dc2626;
}

.profile-col .dropdown-toggle::after {
    display: none;
}

.profile-col .dropdown-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
    justify-content: flex-start;
    align-items: center;
}

.profile-col .dropdown-item:focus,
.profile-col .dropdown-item:hover {
    background: #fef2f2;
    color: #e4002b;
}

.profile-col .dropdown-menu {
    border: 1px solid #eee;
    margin-top: 6px !important;
    box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.2);
}

/* Global header search */
.global-search {
    position: relative;
    width: 320px;
    max-width: 30vw;
}

.global-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 14px;
    background: #f9fafb;
}

.global-search-input i {
    color: #999;
}

.global-search-input input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.global-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 80dvh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 8px 0;
}

.global-search-results.is-visible {
    display: block;
}

.global-search-count,
.global-search-empty {
    margin: 0;
    padding: 8px 16px;
    font-size: 13px;
    color: #6b7280;
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
}

.global-search-item:hover {
    background: #fef2f2;
}

.global-search-item i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: #f3f4f6;
    color: #6b7280;
}

.global-search-item .bi-building {
    background: #ecfdf3;
    color: #16a34a;
}

.global-search-item .bi-person-check {
    background: #fef2f2;
    color: #e4002b;
}

.global-search-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.global-search-item-text strong {
    font-size: 14px;
    color: #141b2b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-item-text small {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .global-search {
        display: none;
    }
}

/*====================================================
                HEADER END
====================================================*/

/*====================================================
                SIDEBAR START
====================================================*/

/* Sidebar container */
.sidebar {
    width: 250px;
    height: calc(100dvh - var(--mdb-admin-bar-offset, 0px));
    position: fixed;
    top: var(--mdb-admin-bar-offset, 0px);
    background: #fff;
    border-right: 1px solid #eee;
    z-index: 1000;
    left: 0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

body.open .sidebar {
    left: 0;
    width: 70px;
    transition: 0.3s;
}

body.open .sidebar span {
    font-size: 0;
    display: none;
}

body.open .sidebar .menu-bar li a {
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-bar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-left: 3px solid #fff;
}

.menu-bar li a:hover,
.menu-bar li a.active,
.menu-bar li a:active,
.menu-bar li a:focus {
    background: #fef2f2;
    border-left: 3px solid #e4002b;
    color: #e4002b;
}

.menu-bar li a:hover i,
.menu-bar li a.active i,
.menu-bar li a:active i,
.menu-bar li a:focus i {
    color: #e4002b;
}

.sidebar a i {
    font-size: 20px;
    min-width: 20px;
    display: inline-block;
}

.sidebar a:hover {
    background: #f8f8f8;
}

.menu-bar {
    padding: 16px 10px;
    margin: 95px 0px 0px 0px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.menu-bar li {
    list-style: none;
    margin: 0px 0px 2px 0px;
}

.menu-bar .menu-section-title {
    margin: 16px 16px 6px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-bar .menu-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

body.open .sidebar .menu-section-title {
    display: none;
}

/* Sidebar footer: user profile + sign out. The sidebar is a flex column with
   .menu-bar set to flex:1, so this naturally lands at the bottom without
   needing absolute positioning (which was clipping "Sign Out" off-screen). */
.sidebar .profile-col {
    flex: 0 0 auto;
    padding: 16px 16px 32px;
    background: #fff;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}

.profile-col-user {
    align-items: center;
    gap: 8px;
}

.sidebar .profile-col .profile-title {
    text-align: left;
}

.profile-col-separator {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #eee;
}

.profile-col-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
}

.profile-col-logout:hover {
    color: #e4002b;
}

/* The generic ".sidebar span" collapse rule (below) is meant for menu-bar
   labels — the avatar image must stay visible when the sidebar is collapsed. */
body.open .sidebar .profile-img {
    display: inline-block;
    font-size: inherit;
}

body.open .profile-col-user {
    justify-content: center;
}

body.open .profile-col-logout {
    justify-content: center;
}

/*====================================================
                SIDEBAR END
====================================================*/

/*====================================================
                MAIN CONTENT START
====================================================*/

/* Main wrapper */
.main-wrapper {
    margin-left: 0px;
    padding-top: 70px;
}

.content-wrap {
    padding: 20px 20px 20px 20px;
    margin-left: 250px;
    transition: 0.3s;
    background: #f3f4f6;
}

body.open .content-wrap {
    margin-left: 70px;
}

.search-area {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-row input {
    padding-left: 40px;
    background-image: url("../images/search-icon.svg");
    background-repeat: no-repeat;
    background-position: 12px;
    flex: 1;
}

.btn-red {
    background: #e01d2d;
    color: #fff;
    border: none;
}

.btn-red:hover {
    background: #c91624;
    color: #fff;
}

.content-wrap .custom-dropdown {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 11;
}

.content-wrap .dropdown-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.content-wrap .dropdown-input input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
}

.dropdown-input i {
    color: #999;
}

.content-wrap .dropdown-list {
    /* position: absolute; */
    width: 100%;
    background: #fff;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    display: block;
}

.content-wrap .custom-dropdown.active .dropdown-list {
    display: block;
}

.content-wrap .dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
}

.content-wrap .dropdown-item:hover {
    background: #f9fafb;
}

.content-wrap .dropdown-item h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.content-wrap .dropdown-item p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.content-wrap .dropdown-item i {
    margin-left: auto;
    color: #d1d5db;
}

.cancel-btn {
    background: #fff;
    padding: 7.2px 12px;
}

.add-btn {
    background: #c1121f;
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover Effect */
.add-btn:hover {
    background: #a50f1a;
    color: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.close-icon-md {
    display: none;
}

/*====================================================
                MAIN CONTENT END
====================================================*/

/*===========  TABLE CSS START ====================*/
.table-wrap {
    margin-top: 12px;
}

.custom-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    color: #8c8c8c;
    border-bottom: 1px solid #eee;
}

/* Collections: make sortable column headers visibly interactive. */
.custom-table thead th.collection-sortable {
    padding: 0;
}

.custom-table thead th.collection-sortable a {
    display: block;
    padding: .5rem .5rem;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.custom-table thead th.collection-sortable a:hover,
.custom-table thead th.collection-sortable a:focus-visible {
    background: #f5f5f5;
    color: #555;
}

.custom-table tbody td {
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.custom-table tbody td .email {
    color: #dc2626;
    text-decoration: underline;
}

.custom-table tbody td .email:hover {
    color: #a50f1a;
}

.custom-table tbody td .font-weight {
    font-weight: 500;
}

.custom-table tbody tr:hover {
    background: #fafafa;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.table-wrap .action-btn {
    border-radius: 8px;
    margin-left: 5px;
    transition: 0.3s;
    width: 36px;
    height: 36px;
}

.action-btn:hover {
    background: #b61722 !important;
    color: #fff;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: #555;
    border-radius: 6px;
    cursor: pointer;
    margin: 0px 3px;
    width: 36px;
    text-align: center;
    box-shadow: none;
}

.pagination .active .page-link {
    background: #b61722;
    color: #fff;
}

/*===========  TABLE CSS END ====================*/
.form-wrap .card {
    border: 1px solid #f3f4f6;
}

.form-wrap .card .row.g-3 {
    padding: 0px 10px 16px 10px;
    margin: 0;
}

.form-wrap .card-body {
    padding: 0;
}

.form-wrap .card-title {
    background: #f9fafb;
    padding: 16px;
    border-radius: 3px 3px 0px 0px;
    border-bottom: 1px solid #f3f4f6;
}

.form-wrap .card-title i {
    color: #c1121f;
}

.form-wrap .formgroup {
    padding: 0px 16px;
}

.form-wrap .form-label {
    color: #6b7280;
    font-weight: 500;
}

.bottom-btn-group {
    border-top: 1px solid #dee2e6;
    padding: 16px 0px 0px 0px;
}

/* report page css start */
.report-section {
    padding: 0;
    background: #f5f4f9;
}

.report-section .report-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid #f0edf5;
    transition: 0.3s ease;
}

.report-section .report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.report-section .report-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: #fff5f5;
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
}

.report-section .icon-box {
    width: 90px;
    height: 90px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.report-section .icon-box i {
    font-size: 34px;
    color: #c1121f;
}

.report-section .report-card h3 {
    font-weight: 700;
    color: #555;
    margin-bottom: 16px;
    font-size: 24px;
}

.report-section .report-card p {
    color: #6b7280;
}

/*report page css end */

/* Tag css start */
.tbl-tag-wrap {
    width: 100%;
}
.tbl-tag-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    align-items: center;
    justify-content: end;
    margin-top: 20px;
}

.tbl-tag-pagination .page-numbers {
    border: none;
    color: #555;
    border-radius: 6px;
    cursor: pointer;
    margin: 0px 3px;
    width: 36px;
    text-align: center;
    box-shadow: none;
    display: grid;
    place-content: center;
    height: 36px;
}
.tbl-tag-pagination .page-numbers.current {
    background: #b61722;
    color: #fff;
}
.tbl-tag-pagination .page-numbers.dots {
    color: #555;
    border-color: transparent;
    background: transparent;
}
.tbl-tag-pagination .page-numbers:hover {
    z-index: 2;
    color: #555;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Tag css end */

/* Xero Contacts css start */

#drop-area {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.drop-box {
    border: 2px dashed #e4002b;
    border-radius: 12px;
    padding: 40px 20px;
    cursor: pointer;
    transition: 0.3s ease;
    background: #fef2f2;
}

.drop-box:hover {
    background: #f9e4e4;
    border-color: #e4002b;
}

.drop-box p {
    margin: 8px 0;
    color: #000;
    font-size: 14px;
}

#file-name {
    margin-top: 10px;
    font-size: 13px;
    color: #000;
}

#progress {
    margin-top: 5px;
    font-weight: bold;
    color: #e4002b;
}
.drop-area .btn.btn-red {
    margin-top: 12px;
}
.download-btn {
    color: #e4002b;
}
.download-btn:hover {
    text-decoration: underline;
}
/* Xero Contacts css End */
/* Invoice Generation css start */
.invoice-notice {
    background: #fef2f2;
    border-left: 4px solid #b3261e;
    margin: 18px 0;
    padding: 8px 16px;
}
.invoice-notice-success {
    background: #6aaf6c;
    border-left: 4px solid #2f7d32;
}

.invoice-notice-error {
    border-left: 4px solid #b3261e;
}
/* Invoice Generation css End  */
.csv-popup {
    width: min(420px, 100%);
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.csv-popup {
    text-align: left;
}
.csv-popup ul {
    margin: 0px 0px 16px 0px;
    padding-left: 30px;
}
.csv-popup ul li {
    list-style: decimal;
    font-size: 14px;
    color: #000;
    text-align: left;
}
.csv-popup button {
    float: right;
}
.login-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d9d9d9;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}

.login-brand-logo {
    display: block;
    width: 145px;
    height: auto;
    margin-bottom: 8px;
}

.login-brand-title {
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
}

.login-container input {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-container input:focus {
    outline: none;
    border-color: #e01d2d;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
}

.login-or::before,
.login-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbe2ea;
}

.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    background: #e01d2d;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #e01d2d;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .login-wrap {
        padding: 15px;
    }

    .login-container {
        padding: 28px 24px;
    }

    .login-brand-logo {
        width: 125px;
    }

    .login-brand-title {
        font-size: 28px;
    }
}
/*=========================*/
.reminder-email-card {
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 16px;
}
.invoices-table {
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.invoices-table .custom-table thead th:nth-child(1) {
    min-width: 130px;
}
.invoices-table .custom-table thead th:nth-child(2) {
    min-width: 200px;
}
.invoices-table .custom-table thead th:nth-child(3) {
    min-width: 130px;
}
.invoices-table .custom-table thead th:nth-child(4) {
    min-width: 165px;
}
.invoices-table .custom-table thead th:nth-child(5) {
    //min-width: 250px;
}
.invoices-table .custom-table thead th:nth-child(6) {
    min-width: 130px;
}
.invoices-table .custom-table thead th:nth-child(7) {
    min-width: 130px;
}

.invoices-table .table-card .card {
    box-shadow: none !important;
    padding: 0px !important;
    border-radius: 0px !important;
}

/*====================================================
                RESPONSIVE START
====================================================*/
@media (max-width: 1599px) {
    .form-wrap .form-label {
        font-size: 14px;
    }
}

@media (max-width: 1365px) {
    .form-wrap .form-label {
        font-size: 13px;
    }

    .form-control,
    .form-select {
        font-size: 13px;
    }
}
@media (max-width: 1199px) {
    .invoice-generation,
    .invoices-table {
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    body.open {
        position: relative;
    }

    body.open .sidebar {
        width: 250px;
    }

    body.open .sidebar span {
        display: block;
        font-size: 16px;
    }

    body.open .sidebar .menu-bar li a {
        justify-content: left;
    }

    body.open::after {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        content: "";
        top: 0;
        z-index: 11111;
    }

    .content-wrap {
        margin-left: 0px;
    }

    header .logo {
        width: 104px;
    }

    .sidebar {
        left: -250px;
        transition: 0.3s;
        z-index: 111111;
    }

    body.open .sidebar {
        left: 0;
    }

    .menu-bar {
        margin: 0;
    }

    .logo-sidebar {
        display: block;
        border-bottom: 1px solid #f2f2f2;
    }

    .close-icon-md {
        display: flex;
        width: 32px;
        height: 32px;
        position: absolute;
        right: 8px;
        top: 8px;
        align-items: center;
        justify-content: center;
    }

    .main {
        margin-left: 0;
    }

    .search-row {
        flex-direction: column;
    }

    .table-wrap .table-card .custom-table {
        width: 1000px;
    }

    .form-wrap .form-label {
        font-size: 14px;
    }

    .form-control,
    .form-select {
        font-size: 14px;
    }

    .profile-col .profile-title strong {
        font-size: 14px;
    }

    .profile-col .profile-title p {
        font-size: 12px;
    }

    .report-section .icon-box {
        width: 70px;
        height: 70px;
    }

    .report-section .report-card h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .report-section .report-card p {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    h1,
    h2 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .add-btn,
    .cancel-btn {
        font-size: 12px;
        padding: 8px 8px;
        height: 34px;
    }

    .report-section .report-card p br {
        display: none;
    }

    .report-section .report-card {
        padding: 30px 25px;
    }
}

/*====================================================
                RESPONSIVE END
====================================================*/

/* Production hold: visible but unavailable Xero-dependent functions. */
.sidebar .menu-link-disabled, .menu-bar .menu-link-disabled {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    color: #a7adb4; cursor: not-allowed; opacity: .72; user-select: none;
}
.sidebar .menu-link-disabled i, .menu-bar .menu-link-disabled i { color: inherit; }


/* Form field alignment: numeric and date/time values scan more cleanly right-aligned. */
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="month"],
form input[type="time"] {
    text-align: right;
}

/* Keep the Invoice Settings help control compact beside the section heading. */
.member-invoice-help {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* v2.26: self-service local profile picture */
.mdb-profile-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.mdb-profile-button:hover .profile-title strong {
    color: #e4002b;
}

.mdb-profile-picture-preview-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.mdb-profile-picture-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #dc2626;
}

/* ====================================================
   v2.96-v2.97 - DEV safety banner + T&A charge rate workflow
   v3.9 - explicit fixed-header anchoring below WordPress admin bar
   ==================================================== */
.mdb-dev-xero-safety-banner {
    position: relative;
    z-index: 1;
    margin: 0 0 0 250px !important;
    border-radius: 0 !important;
}

/*
 * The fixed membDB header is explicitly anchored above the normal-flow
 * banner/content. .main-wrapper owns the 70px header clearance, while the
 * WordPress admin-toolbar offset is applied only to the fixed header/sidebar.
 */
body.open .mdb-dev-xero-safety-banner {
    margin-left: 70px !important;
}

.mdb-rate-calculator-page .card-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.mdb-rate-prototype-badge {
    font-size: 12px;
    padding: 7px 10px;
}

.mdb-rate-mode-toggle {
    display: inline-flex;
    gap: 6px;
}

.mdb-rate-mode-toggle .btn {
    min-width: 132px;
}

.mdb-rate-host-summary {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 7px;
    min-height: 20px;
}

.mdb-rate-host-summary strong {
    font-size: 13px;
    color: #2b2f33;
}

.mdb-rate-host-summary span {
    font-size: 12px;
    color: #6b7280;
}

.mdb-rate-output-card {
    position: static;
}

.mdb-rate-output-list {
    margin: 12px 0 0;
}

.mdb-rate-output-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f1f3;
}

.mdb-rate-output-list dt {
    color: #4b5563;
    font-weight: 500;
    font-size: 13px;
}

.mdb-rate-output-list dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.mdb-rate-output-list .mdb-rate-output-divider {
    margin-top: 5px;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
}

.mdb-rate-output-list .mdb-rate-output-total {
    background: #f9fafb;
    margin: 4px -8px;
    padding: 10px 8px;
    border-radius: 8px;
    border-bottom: 0;
}

.mdb-rate-output-list .mdb-rate-output-total dt,
.mdb-rate-output-list .mdb-rate-output-total dd {
    color: #111827;
    font-weight: 700;
}


.mdb-rate-approval-route {
    display: grid;
    gap: 10px;
}

.mdb-rate-route-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mdb-rate-route-step > span {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.mdb-rate-route-step strong,
.mdb-rate-route-step small {
    display: block;
}

.mdb-rate-route-step small {
    margin-top: 2px;
    color: #6b7280;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .mdb-dev-xero-safety-banner,
    body.open .mdb-dev-xero-safety-banner {
        margin-left: 0 !important;
    }

    .mdb-rate-output-card {
        position: static;
    }
}


/* ====================================================
   v2.97 - T&A Xero Host source for Rate Calculator
   ==================================================== */
.mdb-rate-host-source {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 10px 12px;
}

html.mdb-waiting,
html.mdb-waiting * {
    cursor: wait !important;
}

/* v2.102 - working structured T&A rate calculator */
.mdb-rate-output-list dd {
    max-width: 58%;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

#mdb_out_allowances {
    font-size: 12px;
    font-weight: 500;
}

#mdb_commercial_metrics {
    line-height: 1.5;
}

/* ====================================================
   v2.104 - Payroll workspace in the main sidebar
   ==================================================== */
.mdb-payroll-workspace {
    min-width: 0;
    width: 100%;
}

.mdb-payroll-main-menu .mdb-payroll-return {
    margin-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 14px;
}

.mdb-payroll-main-menu .mdb-payroll-return:hover,
.mdb-payroll-main-menu .mdb-payroll-return:focus {
    border-left-color: #ffffff;
    background: #f8f8f8;
    color: #555555;
}

.mdb-payroll-main-menu .mdb-payroll-return:hover i,
.mdb-payroll-main-menu .mdb-payroll-return:focus i {
    color: #555555;
}


/* Payroll rate-reference review tables (v2.106). */
.mdb-rate-data-review-page .mdb-rate-data-tabs .nav-link {
    white-space: nowrap;
}
.mdb-rate-data-review-page .mdb-rate-summary-cards .card {
    height: 100%;
}
.mdb-rate-data-review-page .mdb-rate-data-table-wrap {
    max-height: 68vh;
}
.mdb-rate-data-review-page .mdb-rate-data-table {
    font-size: 0.82rem;
    min-width: 1180px;
}
.mdb-rate-data-review-page .mdb-rate-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
    white-space: nowrap;
}
.mdb-rate-data-review-page .mdb-rate-data-table td,
.mdb-rate-data-review-page .mdb-rate-data-table th {
    vertical-align: top;
}


/* ====================================================
   v3.12 - Assets/FBT workspace in the main sidebar
   ==================================================== */
.mdb-assets-fbt-workspace {
    min-width: 0;
    width: 100%;
}

.mdb-assets-fbt-main-menu .mdb-assets-fbt-return {
    margin-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 14px;
}

.mdb-assets-fbt-main-menu .mdb-assets-fbt-return:hover,
.mdb-assets-fbt-main-menu .mdb-assets-fbt-return:focus {
    border-left-color: #ffffff;
    background: #f8f8f8;
    color: #555555;
}

.mdb-assets-fbt-main-menu .mdb-assets-fbt-return:hover i,
.mdb-assets-fbt-main-menu .mdb-assets-fbt-return:focus i {
    color: #555555;
}

/* Compact account control beside the header logo. */
header.topbar .logo {flex-shrink:0;}
.mdb-user-menu {position:relative; flex:0 1 auto; min-width:0;}
.mdb-user-menu > summary {display:block; max-width:230px; padding:8px 10px; border-radius:6px; color:#293444; font-size:14px; font-weight:600; cursor:pointer; list-style:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.mdb-user-menu > summary::-webkit-details-marker {display:none;}
.mdb-user-menu > summary:hover,.mdb-user-menu[open] > summary {background:#f3f4f6;}
.mdb-user-menu > summary:focus-visible {outline:2px solid #e4002b; outline-offset:2px;}
.mdb-user-menu-options {position:absolute; top:calc(100% + 8px); left:0; min-width:140px; background:#fff; border:1px solid #e2e5e9; border-radius:8px; padding:5px; box-shadow:0 5px 18px rgba(0,0,0,.12); z-index:10001;}
.mdb-user-menu-options a {display:block; padding:9px 12px; color:#293444; text-decoration:none; font-size:14px; border-radius:4px;}
.mdb-user-menu-options a:hover,.mdb-user-menu-options a:focus-visible {background:#f8e9ec; color:#c6122c;}
@media(max-width:768px) {
 header.topbar {gap:8px; padding-left:10px; padding-right:10px;}
 .mdb-user-menu > summary {max-width:130px; padding-left:5px; padding-right:5px; font-size:13px;}
 header.topbar .menu-icon {flex-shrink:0; margin-left:4px;}
 header.topbar .global-search {min-width:0;}
}
@media(max-width:400px) {
 .mdb-user-menu > summary {max-width:100px;}
 header.topbar .global-search-input {padding:6px; gap:4px;}
}

/* Standard blocking error popup: above fixed app chrome and WP toolbar.
   Bootstrap scrollable dialog retains its header/footer while the body scrolls. */
#mdb-global-error-modal { z-index: 200001; }
.modal-backdrop.mdb-error-backdrop { z-index: 200000; }
#mdb-global-error-modal .modal-dialog { margin-top: 1rem; margin-bottom: 1rem; }
#mdb-global-error-modal .modal-dialog-scrollable { height: calc(100% - 2rem); }
#mdb-global-error-modal .modal-content { max-height: 100%; }
#mdb-global-error-modal .modal-body { overflow-y: auto; }
#mdb-global-error-modal [data-mdb-support-actions] textarea { resize: vertical; max-height: 12rem; }

/* v3.275 - membership menu: expandable Invoicing and Admin groups. */
.menu-bar .mdb-nav-group { margin: 4px 0; }
.menu-bar .mdb-nav-details > summary { display:flex; align-items:center; gap:12px; padding:10px 16px; cursor:pointer; list-style:none; color:#555; font-size:16px; border-left:3px solid transparent; }
.menu-bar .mdb-nav-details > summary::-webkit-details-marker { display:none; }
.menu-bar .mdb-nav-details > summary:hover, .menu-bar .mdb-nav-details > summary:focus-visible { background:#fef2f2; color:#e4002b; outline-offset:-2px; }
.menu-bar .mdb-nav-details[open] > summary { font-weight:600; }
.menu-bar .mdb-nav-details > summary > i:first-child { font-size:20px; min-width:20px; }
.menu-bar .mdb-nav-chevron { margin-left:auto; font-size:13px; transition:transform .15s ease; }
.menu-bar .mdb-nav-details[open] .mdb-nav-chevron { transform:rotate(180deg); }
.menu-bar .mdb-nav-submenu { margin:0; padding:0 0 0 12px; list-style:none; }
.menu-bar .mdb-nav-submenu li a, .menu-bar .mdb-nav-submenu li .menu-link-disabled { font-size:14px; }
body.open .sidebar .mdb-nav-details > summary { justify-content:center; padding:9px 10px; }
body.open .sidebar .mdb-nav-details > summary > span, body.open .sidebar .mdb-nav-chevron, body.open .sidebar .mdb-nav-submenu { display:none; }
