body {
    background-color: #eef4f8;
    background-image: linear-gradient(180deg, #f8fbfd 0, #eef4f8 280px);
    color: #314255;
    font-family: "Roboto", sans-serif;
}

body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.card,
.navbar,
.table,
.dropdown-menu {
    font-family: "Roboto", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card .card-header h5,
.page-header.card h5,
.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-mtext {
    font-family: "Roboto", sans-serif;
}

a {
    color: #355c7d;
}

a:hover,
a:focus {
    color: #1f7a8c;
}

.input-group {
    margin-bottom: 0px;
}
.header-navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
}

.header-navbar .navbar-wrapper {
    min-height: 58px;
}

.header-navbar .navbar-wrapper .navbar-logo {
    background: linear-gradient(180deg, #1f7a8c 0%, #245c73 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.header-navbar .navbar-wrapper .navbar-logo a img {
    max-height: 34px;
}

.header-navbar .navbar-wrapper .navbar-container .nav-left > li > a,
.header-navbar .navbar-wrapper .navbar-container .nav-right > li > a,
.header-navbar .navbar-wrapper .navbar-container .header-notification .dropdown-toggle {
    color: #4b5d73;
}

.header-navbar .navbar-wrapper .navbar-container {
    padding: 0 24px;
}

.header-navbar .navbar-wrapper .navbar-container .nav-left,
.header-navbar .navbar-wrapper .navbar-container .nav-right {
    align-items: center;
}

.header-navbar .navbar-wrapper .navbar-container .nav-left > li,
.header-navbar .navbar-wrapper .navbar-container .nav-right > li {
    margin: 0 2px;
}

.header-navbar .navbar-wrapper .navbar-container .nav-left > li > a,
.header-navbar .navbar-wrapper .navbar-container .nav-right > li > a,
.header-navbar .navbar-wrapper .navbar-container .header-notification .dropdown-toggle {
    border-radius: 12px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.header-navbar .navbar-wrapper .navbar-container .nav-left > li > a:hover,
.header-navbar .navbar-wrapper .navbar-container .nav-right > li > a:hover,
.header-navbar .navbar-wrapper .navbar-container .header-notification .dropdown-toggle:hover {
    background: #edf7fb;
    color: #1f7a8c;
}

.header-navbar .navbar-wrapper .navbar-container .header-search .main-search {
    padding: 2px 0;
}

.header-navbar .navbar-wrapper .navbar-container .header-search .form-control,
.header-navbar .navbar-wrapper .navbar-container .header-search .input-group-text {
    background: #f7fbfd;
    border-color: #d8e7ef;
}

.header-navbar .navbar-wrapper .navbar-container .header-search .form-control,
.header-navbar .navbar-wrapper .navbar-container .header-search .input-group-text,
.header-navbar .navbar-wrapper .navbar-container .header-search .search-btn,
.header-navbar .navbar-wrapper .navbar-container .header-search .search-close {
    height: 34px;
}

.header-navbar .navbar-wrapper .navbar-container .header-notification .show-notification,
.header-navbar .navbar-wrapper .navbar-container .header-notification .profile-notification {
    border: 1px solid #e7eef4;
    border-radius: 16px;
    box-shadow: 0 18px 35px rgba(25, 49, 72, 0.12);
    overflow: hidden;
}

.header-navbar .navbar-wrapper .navbar-container .user-profile img {
    border: 2px solid #d7e9ef;
    box-shadow: none;
}

.header-navbar .navbar-wrapper .navbar-container .user-profile span {
    font-weight: 600;
    color: #30475d;
}

.header-navbar .navbar-wrapper .navbar-container .user-profile .dropdown-toggle {
    padding-top: 4px;
    padding-bottom: 4px;
}

.header-navbar .navbar-wrapper .navbar-container .header-notification .badge {
    box-shadow: 0 6px 18px rgba(255, 83, 112, 0.28);
}

.pcoded .pcoded-navbar .nav-list {
    background: linear-gradient(180deg, #214761 0%, #18344b 100%);
    box-shadow: 12px 0 30px rgba(18, 34, 49, 0.16);
}

.pcoded .pcoded-navbar .pcoded-inner-navbar {
    padding-top: 14px;
}

.pcoded .pcoded-navbar .pcoded-navigation-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 18px 24px 8px;
}

.pcoded .pcoded-navbar .pcoded-item > li > a {
    padding: 10px 22px;
    min-height: 42px;
    line-height: 22px;
}

.pcoded .pcoded-navbar .pcoded-item > li {
    margin-bottom: 2px;
}

.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-micon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 7px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
}

.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-mtext {
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.pcoded .pcoded-navbar .pcoded-item > li.active > a,
.pcoded .pcoded-navbar .pcoded-item > li:hover > a {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.pcoded .pcoded-navbar .pcoded-item > li.active > a .pcoded-micon,
.pcoded .pcoded-navbar .pcoded-item > li:hover > a .pcoded-micon {
    background: rgba(255, 255, 255, 0.16);
}

.pcoded .pcoded-navbar .pcoded-item > li.active > a:before,
.pcoded .pcoded-navbar .pcoded-item > li:hover > a:before {
    background-color: #63c7d9;
}

.pcoded .pcoded-navbar .pcoded-item > li.pcoded-hasmenu > a:after {
    font-size: 13px;
    opacity: 0.75;
    top: 40%;
    transform: translateY(-50%);
    right: 18px;
}

.pcoded .pcoded-navbar .pcoded-item > li.pcoded-hasmenu.active > a:after,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-hasmenu:hover > a:after {
    opacity: 1;
}

.pcoded .pcoded-navbar .pcoded-item > li > .pcoded-submenu {
    background: rgba(7, 23, 36, 0.18);
    border-radius: 12px;
    margin: 4px 12px 6px;
    padding: 6px 0;
}

.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li > a {
    padding: 7px 18px 7px 52px;
    font-size: 12.5px;
    color: rgba(228, 239, 245, 0.82);
    border-radius: 9px;
    margin: 0 8px;
    position: relative;
}

.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li {
    margin-bottom: 1px;
}

.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li > a:before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(159, 231, 239, 0.55);
    transform: translateY(-50%);
}

.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li.active > a,
.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li:hover > a {
    background: rgba(255, 255, 255, 0.08);
    color: #9fe7ef;
}

.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li.active > a:before,
.pcoded .pcoded-navbar .pcoded-hasmenu .pcoded-submenu li:hover > a:before {
    background: #9fe7ef;
}

.pcoded-content {
    padding-top: 6px;
}

.pcoded-inner-content {
    padding-top: 0;
}

.main-body .page-wrapper {
    padding: 0.45rem 1.6rem 1.4rem;
}

.page-header.card {
    margin: 18px 24px 8px;
    padding: 10px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfe 100%);
    box-shadow: 0 14px 32px rgba(31, 58, 84, 0.08);
}

.page-header.card .page-header-title {
    display: flex;
    align-items: center;
}

.page-header.card .page-header-title i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-right: 12px;
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(31, 122, 140, 0.24);
}

.page-header.card h5 {
    color: #213547;
    font-weight: 700;
    margin-bottom: 0;
}

.page-header.card h5 + span {
    color: #76879a;
}

.page-header.card .breadcrumb {
    background: #f0f7fb;
    border-radius: 999px;
    padding: 4px 10px;
    min-height: 28px;
    align-items: center;
}

.page-header.card .breadcrumb a,
.page-header.card .breadcrumb .breadcrumb-item {
    color: #567086;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.1;
}

.page-header.card .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.35rem;
    padding-left: 0.2rem;
    font-size: 10px;
}

.card {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(31, 58, 84, 0.08);
}

.card .card-header {
    padding: 22px 24px 16px;
}

.card .card-header h5 {
    color: #213547;
    font-size: 16px;
}

.card .card-header h5:after {
    background-color: #63c7d9;
    width: 54px;
    bottom: -16px;
}

.card .card-header span {
    color: #7b8c9f;
}

.card .card-block {
    padding: 1.35rem 1.5rem;
}

.table thead th {
    color: #607388;
}

.table td,
.table th {
    border-top-color: #e9eff5;
}

.form-control,
.form-select {
    border-color: #d9e4ec;
    border-radius: 10px;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.form-control:focus,
.form-select:focus {
    border-color: #63c7d9;
    box-shadow: 0 0 0 0.2rem rgba(99, 199, 217, 0.15);
}

select,
select.form-control,
select.form-select,
option {
    font-family: "Roboto", sans-serif !important;
    font-size: 13px !important;
}

@media only screen and (max-width: 991px) {
    .header-navbar .navbar-wrapper .navbar-container {
        padding: 0 14px;
    }

    .page-header.card {
        margin: 14px 16px 8px;
        padding: 10px 14px;
    }

    .main-body .page-wrapper {
        padding: 0.35rem 1rem 1.2rem;
    }
}

/* Shared module action buttons */
.btn-module-add,
.btn-module-edit,
.btn-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-module-add,
.btn-module-edit {
    box-shadow: 0 10px 20px rgba(64, 153, 255, 0.18);
}

.module-table {
    font-size: 13px;
}

.module-table.module-table-md {
    min-width: 760px;
}

.module-table.module-table-lg {
    min-width: 860px;
}

.module-table.module-table-xl {
    min-width: 1120px;
}

.module-table thead th {
    border-top: 0;
    border-bottom: 1px solid #eef2f7;
    color: #6b7a90;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.module-table tbody td {
    padding: 12px 0.55rem;
    vertical-align: middle;
    border-color: #eef2f7;
}

.module-action-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.module-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7ee;
    background: #fff;
    color: #486174;
}

.module-icon-btn.module-icon-btn-danger {
    color: #ff5370;
}

.btn-danger,
.btn-outline-danger,
.danger {
    color: #ed0808;
}

/* Shared feedback alerts */
.module-alert,
.company-auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 0;
    box-shadow: 0 10px 22px rgba(31, 58, 84, 0.08);
}

.module-alert i,
.company-auth-alert i {
    font-size: 18px;
}

/* Shared logout actions */
.company-logout-form,
.pcoded-logout-form {
    margin: 0;
}

.company-logout-form .dropdown-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #ff5370;
    padding: 10px 16px;
    font-size: 14px;
}

.company-logout-form .dropdown-item:hover,
.company-logout-form .dropdown-item:focus {
    background-color: rgba(255, 83, 112, 0.08);
}

.pcoded-logout-item {
    margin-top: 8px;
}

.pcoded-logout-button {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    padding: 10px 22px;
    min-height: 42px;
    line-height: 22px;
}

.pcoded-logout-button:hover,
.pcoded-logout-button:focus {
    background: rgba(255, 83, 112, 0.18);
    color: #ffffff;
}

.pcoded-logout-button .pcoded-micon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 7px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
}

.pcoded-logout-button .pcoded-mtext {
    display: inline-block;
    vertical-align: middle;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* Company login page */
.company-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(99, 199, 217, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(31, 122, 140, 0.15), transparent 26%),
        linear-gradient(135deg, #edf8fb 0%, #f6fbfd 45%, #e4eef4 100%);
}

.company-login-block {
    position: relative;
    overflow: hidden;
}

.company-login-block::before,
.company-login-block::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
}

.company-login-block::before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -60px;
    background: rgba(99, 199, 217, 0.18);
}

.company-login-block::after {
    width: 260px;
    height: 260px;
    bottom: -90px;
    left: -70px;
    background: rgba(36, 92, 115, 0.14);
}

.company-login-form {
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.company-login-logo img {
    max-width: 185px;
}

.company-login-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(24, 52, 75, 0.18);
}

.company-login-card .card-block {
    padding: 32px 30px 30px;
}

.company-login-subtitle {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.company-login-card .form-control {
    background: transparent;
}

.company-login-helper {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px dashed #c5dbe5;
    border-radius: 16px;
    background: #f7fbfd;
}

.company-login-helper h6 {
    color: #245c73;
    margin-bottom: 8px;
}

.btn-auth-submit {
    min-height: 46px;
    box-shadow: 0 14px 28px rgba(31, 122, 140, 0.24);
}

@media only screen and (max-width: 575px) {
    .company-login-form {
        max-width: 100%;
        padding: 0 6px;
    }

    .company-login-card .card-block {
        padding: 26px 20px 24px;
    }
}

/* Crew module styles */
.crew-list-card {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(43, 57, 72, 0.08);
}

.crew-list-card .card-header {
    padding-bottom: 0;
    border-bottom: 0;
}

.crew-page-title {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
}

.crew-page-actions,
.crew-modal-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.crew-toolbar .form-control,
.crew-toolbar .input-group-text {
    min-height: 46px;
    border: 1px solid #dfe6ef;
    box-shadow: none;
}

.crew-toolbar .input-group-text {
    background: #f8fafd;
    color: #65748b;
}

.crew-name {
    color: #1f2d3d;
    font-size: 13px;
    font-weight: 700;
}

.crew-meta {
    color: #8392a5;
    font-size: 11px;
}

.crew-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(64, 153, 255, 0.12);
    color: #4099ff;
    font-size: 11px;
    font-weight: 700;
}

.crew-pay-rate {
    color: #1f7a8c;
    font-weight: 700;
    white-space: nowrap;
}

.crew-empty-state {
    display: none;
    padding: 32px 16px 12px;
    text-align: center;
    color: #8392a5;
}

.crew-modal {
    z-index: 1065;
}

.crew-modal .modal-dialog {
    z-index: 1070;
}

.crew-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 18px 40px rgba(31, 58, 84, 0.18);
}

.crew-modal .modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fbfe 0%, #eef7fc 100%);
    border-bottom: 1px solid #e8f0f5;
}

.crew-modal .modal-title {
    color: #20384d;
    font-size: 18px;
    font-weight: 700;
}

.crew-modal .modal-body {
    padding: 20px;
}

.crew-modal .form-label {
    color: #53677c;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.crew-modal .form-control,
.crew-modal .form-select {
    min-height: 42px;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    box-shadow: none;
    color: #30475d;
    font-size: 13px;
}

.crew-modal .modal-footer {
    padding: 16px 20px 20px;
    border-top: 0;
}

.crew-modal .btn-submit-lead {
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.crew-modal label.error {
    display: block;
    margin-top: 6px;
    color: #ff5370;
    font-size: 11px;
    font-weight: 600;
}

.crew-modal .form-control.error,
.crew-modal .form-select.error {
    border-color: #ff5370 !important;
}

.crew-availability-dropdown {
    position: relative;
}

.crew-availability-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    color: #30475d;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.crew-availability-toggle i {
    flex: 0 0 auto;
    color: #53677c;
    font-size: 15px;
    margin-left: 10px;
}

.crew-availability-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1085;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 0;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(43, 43, 43, 0.12);
}

.crew-availability-panel.is-open {
    display: block;
}

.crew-availability-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 12px;
    color: #30475d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.crew-availability-option:hover {
    background: #f6f9fc;
}

.crew-availability-option input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.crew-availability-dropdown.is-invalid .crew-availability-toggle,
.crew-availability-dropdown.error .crew-availability-toggle,
.crew-availability-dropdown:has(input.error) .crew-availability-toggle {
    border-color: #ff5370 !important;
}

.crew-payment-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.crew-payment-message {
    color: #53677c;
    font-size: 13px;
    line-height: 1.6;
}

.crew-payment-message span {
    color: #20384d;
    font-weight: 700;
}

.crew-time-picker {
    cursor: pointer;
}

.crew-time-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.72;
    filter: invert(34%) sepia(15%) saturate(762%) hue-rotate(171deg) brightness(92%) contrast(87%);
}

@media (max-width: 767px) {
    .crew-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .crew-modal .modal-footer {
        display: block;
    }

    .crew-modal-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
    }
}

/* Expense page styles */
.expense-list-card,
.expense-breakdown-card,
.expenses-shell {
    font-family: "Open Sans", sans-serif;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(43, 57, 72, 0.08);
}

.expense-list-card h1,
.expense-list-card h2,
.expense-list-card h3,
.expense-list-card h4,
.expense-list-card h5,
.expense-list-card h6,
.expenses-shell h1,
.expenses-shell h2,
.expenses-shell h3,
.expenses-shell h4,
.expenses-shell h5,
.expenses-shell h6,
.expense-modal h1,
.expense-modal h2,
.expense-modal h3,
.expense-modal h4,
.expense-modal h5,
.expense-modal h6 {
    font-family: "Quicksand", sans-serif;
}

.expense-modal {
    font-family: "Open Sans", sans-serif;
}

.expense-list-card.card .card-header h5:after {
    background-color: #63c7d9;
    width: 54px;
    bottom: -8px;
}

.expense-list-card .card-header h5 {
    margin-bottom: 16px !important;
}

.expenses-header-text {
    color: #6f8294;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}



.expense-list-card .card-header,
.expense-breakdown-card .card-header {
    padding-bottom: 0;
    border-bottom: 0;
}

.expense-list-card .card-block {
    padding-top: 22px;
}

.expenses-shell {
    border: 0;
    background: #fff;
    padding: 22px;
}

.expenses-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
}

.expenses-title {
    color: #20384d;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.expenses-subtitle {
    color: #6f8294;
    font-size: 13px;
    margin-bottom: 0;
}

.expense-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.expense-period-toggle {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: #fff;
}

.expenses-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.expenses-period-toggle {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: #fff;
}

.expenses-period-toggle button {
    min-height: 40px;
    border: 0;
    border-right: 1px solid #dfe6ef;
    background: #fff;
    color: #65748b;
    font-size: 12px;
    font-weight: 700;
    padding: 0 14px;
}

.expenses-period-toggle button:last-child {
    border-right: 0;
}

.expenses-period-toggle button.active {
    background: #f4f8fb;
    color: #20384d;
}

.expense-period-toggle button {
    min-height: 40px;
    border: 0;
    border-right: 1px solid #dfe6ef;
    background: #fff;
    color: #65748b;
    font-size: 12px;
    font-weight: 700;
    padding: 0 14px;
}

.expense-period-toggle button:last-child {
    border-right: 0;
}

.expense-period-toggle button.active {
    background: #f4f8fb;
    color: #20384d;
}

.btn-module-add,
.btn-module-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-module-add {
    box-shadow: 0 10px 20px rgba(64, 153, 255, 0.18);
}

.expense-toolbar .form-control,
.expense-toolbar .form-select,
.expenses-toolbar .form-control,
.expenses-toolbar .form-select {
    min-height: 46px;
    border: 1px solid #dfe6ef;
    box-shadow: none;
}

.expense-toolbar .input-group-text,
.expenses-toolbar .input-group-text {
    min-height: 46px;
    background: #f8fafd;
    border: 1px solid #dfe6ef;
    color: #65748b;
}

.expense-date-picker .expense-date-icon {
    min-height: 42px;
    background: #f8fafd;
    border-color: #dfe6ef;
    color: #65748b;
}

.expenses-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 12px;
    margin-bottom: 20px;
}

.expenses-search {
    border-radius: 10px;
}

.expenses-category-wrap {
    position: relative;
}

.expenses-category-label {
    position: absolute;
    top: -8px;
    left: 12px;
    z-index: 2;
    background: #fff;
    color: #6b7a90;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
}

.expense-category-filter {
    position: relative;
}

.expense-category-filter label {
    position: absolute;
    top: -8px;
    left: 12px;
    z-index: 2;
    background: #fff;
    color: #6b7a90;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
}

.expense-vendor,
.expenses-vendor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2d3d;
    font-size: 13px;
    font-weight: 700;
}

.expense-vendor i,
.expenses-vendor i {
    color: #65748b;
    font-size: 14px;
}

.expense-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(64, 153, 255, 0.12);
    color: #4099ff;
    font-size: 11px;
    font-weight: 700;
}

.expense-amount {
    color: #1f2d3d;
    font-weight: 700;
    white-space: nowrap;
}

.expense-empty-state,
.expenses-empty-state {
    display: none;
    padding: 32px 16px 12px;
    text-align: center;
    color: #8392a5;
}

.expenses-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.expenses-table-card,
.expenses-breakdown-card {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.datepicker {
    z-index: 1065 !important;
}

.expenses-breakdown-card {
    padding: 18px;
}

.expenses-breakdown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.expenses-breakdown-title {
    color: #20384d;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
}

.expenses-breakdown-month {
    color: #6b7a90;
    font-size: 11px;
    font-weight: 700;
}

.expense-breakdown-card .card-block {
    padding-top: 10px;
}

.expense-breakdown-month {
    color: #6b7a90;
    font-size: 11px;
    font-weight: 700;
}

.expense-donut-wrap,
.expenses-donut-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 18px;
}

.expense-donut,
.expenses-donut {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background: conic-gradient(#857cdd 0deg 339.6deg, #4099ff 339.6deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.expense-donut::before,
.expenses-donut::before {
    content: "";
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(223, 227, 232, 0.4);
}

.expense-breakdown-list,
.expenses-breakdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.expense-breakdown-list li,
.expense-total-row,
.expenses-breakdown-list li,
.expenses-total-row {
    color: #1f2d3d;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 0;
}
/* Company register page */
.company-register-form {
    max-width: 720px;
}

.company-register-card .card-block {
    padding: 32px 34px 30px;
}

.company-register-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.expense-legend,
.expenses-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.expense-legend-dot,
.expenses-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.expense-legend-dot.other,
.expenses-legend-dot.other {
    background: #857cdd;
}

.expense-legend-dot.blue,
.expenses-legend-dot.blue {
    background: #4099ff;
}

.expense-total-row,
.expenses-total-row {
    margin-top: 8px;
    border-top: 1px solid #eef2f7;
    padding-top: 14px;
}

.expense-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.expense-modal {
    z-index: 1061;
}

.expense-modal-dialog {
    max-width: 780px;
    width: calc(100% - 24px);
}

.expense-modal .modal-header {
    padding: 18px 20px 10px;
    background: #fff;
    border-bottom: 0;
}

.expense-modal .modal-title {
    color: #26384d;
    font-size: 14px;
    font-weight: 700;
}

.expense-modal .modal-body {
    padding: 8px 20px 12px;
}

.expense-modal .form-label {
    color: #53677c;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.expense-modal .form-control,
.expense-modal .form-select,
.expense-modal textarea {
    min-height: 47px;
    border: 1px solid #cbd3dd;
    border-radius: 10px;
    box-shadow: none;
    color: #26384d;
    font-size: 13px;
    padding: 10px 12px;
}

.expense-modal textarea {
    min-height: 66px;
    resize: none;
}

.expense-modal .modal-footer {
    border-top: 0;
    padding: 12px 8px 8px;
    justify-content: flex-end;
    gap: 8px;
}

.expense-modal .btn-submit-expense {
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.expense-modal label.error {
    display: block;
    margin-top: 6px;
    color: #ff5370;
    font-size: 11px;
    font-weight: 600;
}

.expense-modal .form-control.error,
.expense-modal .form-select.error,
.expense-modal textarea.error {
    border-color: #ff5370 !important;
}

.expense-popup-field {
    margin-bottom: 10px;
    position: relative;
}

.expense-date-field label {
    position: absolute;
    top: -8px;
    left: 12px;
    z-index: 2;
    background: #fff;
    color: #53677c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
}

.expense-notes-field {
    margin-bottom: 10px;
}

.expense-notes-field textarea {
    padding-right: 42px;
}

.expense-notes-icon {
    position: absolute;
    right: 16px;
    bottom: 17px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0fb836;
    color: #fff;
    font-size: 9px;
}

.expense-popup-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #52657a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.45;
    margin: 4px 0 14px;
    padding-top: 15px;
}

.expense-popup-message-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #52657a;
    color: #fff;
    font-size: 11px;
}

.expense-cancel-btn {
    color: #1f73e8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 12px;
}

.expense-cancel-btn:hover {
    color: #155ec4;
    text-decoration: none;
}

.expense-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 18px 40px rgba(31, 58, 84, 0.18);
}

.expense-modal .modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fbfe 0%, #eef7fc 100%);
    border-bottom: 1px solid #e8f0f5;
}

.expense-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #20384d;
}

.expense-modal .modal-body {
    padding: 20px;
}

.expense-modal .form-label {
    font-size: 12px;
    font-weight: 700;
    color: #53677c;
    margin-bottom: 6px;
}

.expense-modal .form-control,
.expense-modal .form-select,
.expense-modal textarea {
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    min-height: 42px;
    box-shadow: none;
    color: #30475d;
    font-size: 13px;
}

.expense-modal textarea {
    min-height: 90px;
    resize: vertical;
}

.expense-modal .modal-footer {
    padding: 16px 20px 20px;
    border-top: 0;
}

.expense-modal-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.expense-category-combobox {
    position: relative;
}

.expense-category-trigger {
    width: 100%;
    text-align: left;
    background-color: #fff;
    color: #30475d;
}

.expense-category-trigger::after {
    display: none;
}

.expense-category-placeholder {
    color: #8392a5;
}

.expense-category-selected {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.expense-category-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1075;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid #e7eef4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(25, 49, 72, 0.14);
    overflow: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.expense-category-dropdown.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.expense-category-search-wrap {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #eef2f7;
}

.expense-category-search-wrap i {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    color: #8392a5;
    font-size: 14px;
}

.expense-category-search {
    min-height: 38px !important;
    padding-left: 34px !important;
    border-radius: 10px !important;
}

.expense-category-options {
    max-height: 210px;
    overflow-y: auto;
    padding: 6px;
}

.expense-category-option {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px 18px;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #42586c;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 7px 10px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.expense-category-option:hover,
.expense-category-option.active {
    background: #f3f8fb;
    color: #1f7a8c;
}

.expense-category-option.selected {
    background: rgba(64, 153, 255, 0.12);
    color: #4099ff;
    box-shadow: inset 0 0 0 1px rgba(64, 153, 255, 0.22);
}

.expense-category-option-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.expense-category-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-category-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    justify-self: center;
}

.expense-category-check {
    justify-self: end;
    color: #4099ff;
    font-size: 15px;
}

.expense-category-empty {
    padding: 18px 12px;
    color: #8392a5;
    font-size: 12px;
    text-align: center;
}

.expense-add-category-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-top: 1px solid #eef2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #4099ff;
    margin: 0 0 28px;
}

.company-register-step-indicator {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d9e6ed;
    border-radius: 14px;
    background: #f8fbfd;
    transition: all 0.2s ease;
}

.company-register-step-indicator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0edf4;
    color: #245c73;
    font-weight: 700;
}

.company-register-step-indicator small {
    color: #607388;
    font-size: 12px;
    font-weight: 700;
}

.expense-add-category-btn:hover {
    background: #f8fbfe;
}

.expense-category-combobox label.error {
    margin-top: 6px;
}

.expense-category-modal-dialog {
    max-width: 540px;
    width: calc(100% - 24px);
}

.expense-category-list-modal-dialog {
    max-width: 820px;
    width: calc(100% - 24px);
}

.expense-category-management-table {
    min-width: 580px;
    font-size: 13px;
    margin-bottom: 0;
}

.expense-category-management-table thead th {
    background: #f6f6f7;
    border-top: 0;
    border-bottom: 1px solid #eef2f7;
    color: #6b7a90;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 0.75rem;
}

.expense-category-management-table tbody td {
    padding: 12px 0.75rem;
    vertical-align: middle;
    border-color: #eef2f7;
}

.expense-category-table-name,
.expense-category-table-color {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2d3d;
    font-weight: 700;
}

.expense-category-color-preview {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(31, 45, 61, 0.12);
    display: inline-block;
}

.expense-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.expense-status-pill.active {
    background: green;
    color: #ffffff;
}

.expense-status-pill.inactive {
    background: red;
    color: #ffffff;
}

.expense-category-status-btn {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 84px;
}

.expense-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.expense-color-preview {
    width: 100px;
    height: 42px;
    border: 1px solid #dbe6ee;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expense-color-preview span {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    display: block;
}

.expense-color-picker input[type="color"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.expense-color-hex {
    color: #42586c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.expense-category-preview-list {
    max-height: 178px;
    overflow-y: auto;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f9fcfe;
    padding: 8px;
    margin-bottom: 18px;
}

.expense-category-preview-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 10px;
    color: #42586c;
    font-size: 13px;
    font-weight: 700;
}

.expense-category-preview-item:hover {
    background: #fff;
}

.expense-category-color-input {
    width: 100%;
    padding: 6px !important;
}

.expense-category-modal .modal-body {
    overflow: visible;
}

.sweet-alert {
    border-radius: 18px;
    font-family: "Open Sans", sans-serif;
}

.sweet-alert h2 {
    color: #20384d;
    font-family: "Quicksand", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.sweet-alert p {
    color: #53677c;
    font-size: 13px;
    line-height: 1.55;
}

.sweet-alert button.cancel {
    border: 1px solid #4099ff;
    background: #fff !important;
    color: #4099ff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.sweet-alert button.confirm {
    border-radius: 10px;
    background: #ff5370 !important;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .expenses-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .expenses-shell {
        padding: 16px;
    }

    .expenses-header {
        display: block;
    }

    .expenses-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .expenses-toolbar {
        grid-template-columns: 1fr;
    }

    .expense-modal-dialog {
        margin: 12px;
    }

    .expense-category-dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 16px;
        max-height: min(420px, calc(100vh - 80px));
    }

    .expense-category-options {
        max-height: min(260px, calc(100vh - 210px));
    }

    .expense-modal .modal-footer {
        display: block;
    }

    .expense-modal-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
    }


}

.expense-popup-message span:last-child {
    font-size: 12px;
}

.company-register-step-indicator.is-active,
.company-register-step-indicator.is-complete {
    border-color: #63c7d9;
    background: #edf9fc;
}

.company-register-step-indicator.is-active span,
.company-register-step-indicator.is-complete span {
    background: linear-gradient(135deg, #1f7a8c 0%, #63c7d9 100%);
    color: #ffffff;
}

.company-register-step {
    display: none;
}

.company-register-step.is-active {
    display: block;
}

.company-register-section + .company-register-section {
    margin-top: 24px;
}

.company-register-section-title {
    margin-bottom: 14px;
    color: #245c73;
    font-size: 15px;
    font-weight: 700;
}

.company-register-note,
.company-register-field-note {
    display: block;
    color: #6f8193;
    font-size: 12px;
    line-height: 1.6;
}

.company-register-note {
    margin-bottom: 18px;
}

.company-register-field-note {
    margin-top: 8px;
}

.company-register-helper {
    margin-top: 6px;
    padding: 16px 18px;
    border: 1px dashed #c5dbe5;
    border-radius: 16px;
    background: #f7fbfd;
}

.company-register-helper h6 {
    margin-bottom: 10px;
    color: #245c73;
}

.company-password-checklist {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.company-password-checklist li {
    position: relative;
    padding-left: 24px;
    color: #7a8c9f;
    font-size: 12px;
    line-height: 1.9;
}

.company-password-checklist li::before {
    content: "\e64c";
    font-family: feather;
    position: absolute;
    left: 0;
    top: 0;
    color: #c7d7e1;
}

.company-password-checklist li.is-valid {
    color: #1f7a8c;
    font-weight: 600;
}

.company-password-checklist li.is-valid::before {
    color: #1f7a8c;
}

.company-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.company-review-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7fbfd;
    border: 1px solid #dfebf1;
}

.company-review-item span {
    display: block;
    margin-bottom: 6px;
    color: #6f8193;
    font-size: 12px;
}

.company-review-item strong {
    color: #213547;
    font-size: 14px;
    word-break: break-word;
}

.company-register-checkbox {
    margin-top: 20px;
}

.company-register-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.company-register-action {
    min-width: 140px;
}

.company-register-footer {
    margin-top: 22px;
    color: #6f8193;
}

.company-register-footer a {
    font-weight: 700;
}

@media only screen and (max-width: 767px) {
    .company-register-card .card-block {
        padding: 28px 22px 24px;
    }

    .company-register-steps {
        flex-direction: column;
    }

    .company-register-step-indicator {
        width: 100%;
    }

    .company-review-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 575px) {
    .company-register-actions {
        flex-direction: column;
    }

    .company-register-action {
        width: 100%;
    }
}
