:root {
    --primary-color: #0d6efd;
}

body {
    background-color: #f4f6f9;
}

body.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.app-layout > main {
    flex: 1 0 auto;
    padding-bottom: 4.75rem;
}

body.app-layout:has(.customer-content .floating-form-actions) > main {
    padding-bottom: 1rem;
}

.app-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.app-footer a {
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

.navbar .navbar-nav .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    margin: 0.15rem 0.2rem;
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.22);
}

.navbar .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.navbar-brand-logo {
    display: block;
    max-height: 36px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover,
a.stat-card-link:hover .stat-card {
    transform: translateY(-2px);
}

a.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.stat-card-link:hover {
    color: inherit;
}

a.stat-card-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 12px;
}

a.stat-card-link:hover .stat-card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dashboard-stats .stat-card .card-body {
    padding: 0.75rem 1rem;
}

.dashboard-stats .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.dashboard-stats h3 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.dashboard-stats .text-muted.small {
    font-size: 0.7rem;
}

.dashboard-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dashboard-favorite-name {
    color: var(--bs-body-color);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-favorite-name:hover {
    color: var(--primary-color);
}

.dashboard-favorite-links {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 0.25rem;
}

.dashboard-favorite-link {
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

.dashboard-todo-table th,
.dashboard-todo-table td {
    vertical-align: middle;
}

.dashboard-todo-task,
.dashboard-todo-customer {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-todo-table .btn-sm {
    padding: 0.2rem 0.45rem;
}

.master-todo-table .master-todo-added-col {
    min-width: 13rem;
    white-space: nowrap;
}

.master-todo-table .master-todo-added-by {
    white-space: nowrap;
}

.master-todo-table .master-todo-actions-col {
    min-width: 22rem;
    white-space: nowrap;
}

.master-todo-table .master-todo-actions-col .d-inline-flex {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.todo-drag-col {
    width: 2rem;
}

.todo-drag-handle {
    cursor: grab;
    width: 2rem;
}

.recurring-view-toggle .btn {
    min-width: 2.25rem;
}

.recurring-calendar-weekdays,
.recurring-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.recurring-calendar-weekday {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-align: center;
    text-transform: uppercase;
}

.recurring-calendar-grid {
    border-top: 1px solid var(--bs-border-color);
}

.recurring-calendar-cell {
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    min-height: 7rem;
    padding: 0.5rem;
    vertical-align: top;
}

.recurring-calendar-cell:nth-child(7n) {
    border-right: none;
}

.recurring-calendar-cell-empty {
    background: rgba(0, 0, 0, 0.02);
}

.recurring-calendar-cell-today {
    background: rgba(13, 110, 253, 0.06);
}

.recurring-calendar-day-number {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.recurring-calendar-cell-today .recurring-calendar-day-number {
    color: var(--primary-color);
}

.recurring-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recurring-calendar-event {
    background: rgba(13, 110, 253, 0.1);
    border-radius: 0.35rem;
    color: inherit;
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 0.25rem 0.4rem;
    text-decoration: none;
}

.recurring-calendar-event:hover {
    background: rgba(13, 110, 253, 0.18);
    color: inherit;
}

.recurring-calendar-event-colored:hover {
    filter: brightness(0.95);
    color: inherit;
}

.calendar-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calendar-color-option {
    cursor: pointer;
    margin: 0;
}

.calendar-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calendar-color-swatch {
    border: 2px solid transparent;
    border-radius: 50%;
    display: block;
    height: 2rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
    width: 2rem;
}

.calendar-color-option input:checked + .calendar-color-swatch {
    border-color: var(--bs-body-color);
    transform: scale(1.08);
}

.calendar-color-option input:focus-visible + .calendar-color-swatch {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.calendar-entry-color-dot {
    border-radius: 50%;
    display: inline-block;
    height: 0.65rem;
    vertical-align: middle;
    width: 0.65rem;
}

.recurring-calendar-event-muted {
    background: rgba(108, 117, 125, 0.12);
    opacity: 0.85;
}

.recurring-calendar-event-customer {
    display: block;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recurring-calendar-event-amount {
    color: var(--bs-secondary-color);
}

.recurring-grouped-view {
    display: flex;
    flex-direction: column;
}

.recurring-grouped-month + .recurring-grouped-month {
    border-top: 1px solid var(--bs-border-color);
}

.recurring-grouped-month-header {
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.calendar-day-add {
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.55;
}

.calendar-day-add:hover {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .recurring-calendar-cell {
        min-height: 5.5rem;
        padding: 0.35rem;
    }

    .recurring-calendar-event {
        font-size: 0.65rem;
    }
}

.mass-mail-customer-list {
    max-height: 280px;
    overflow-y: auto;
}

.mass-mail-history-body {
    min-height: 120px;
}

.bulk-edit-table-wrap {
    max-height: calc(100vh - 16rem);
    overflow: auto;
}

.bulk-edit-table {
    min-width: 1400px;
}

.bulk-edit-table th,
.bulk-edit-table td {
    vertical-align: middle;
    min-width: 9rem;
}

.bulk-edit-table th:nth-child(9),
.bulk-edit-table td:nth-child(9) {
    min-width: 12rem;
}

.bulk-edit-table .form-control-sm,
.bulk-edit-table .form-select-sm {
    min-width: 8.5rem;
}

.bulk-edit-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    min-width: 11rem;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
}

.bulk-edit-table thead .bulk-edit-sticky-col {
    z-index: 3;
    background: #f8f9fa;
}

.bulk-edit-table tbody tr:hover > td {
    background-color: #e8f2ff;
}

.bulk-edit-table tbody tr:hover > .bulk-edit-sticky-col {
    background-color: #e8f2ff;
}

.bulk-edit-table tbody tr:hover .form-control,
.bulk-edit-table tbody tr:hover .form-select {
    background-color: #e8f2ff;
}

.bulk-edit-display-custom-muted {
    opacity: 0.55;
}

.bulk-edit-row-marked-delete > td {
    background-color: #fff5f5;
}

.bulk-edit-row-marked-delete > .bulk-edit-sticky-col {
    background-color: #fff5f5;
}

.bulk-edit-table tbody tr.bulk-edit-row-marked-delete:hover > td,
.bulk-edit-table tbody tr.bulk-edit-row-marked-delete:hover > .bulk-edit-sticky-col {
    background-color: #ffe3e3;
}

.report-nav-pills .nav-link {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.08);
}

.report-nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.report-period-filter-row {
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.report-period-filter-row #report-period {
    width: 11rem;
    flex: 0 0 auto;
}

.report-period-filter-row .report-period-date {
    width: 10.5rem;
    flex: 0 0 auto;
}

.report-period-filter-divider {
    padding: 0 0.15rem;
}

.invoice-list-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.invoice-list-toolbar-period {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.invoice-list-toolbar-period #invoice-list-period {
    width: 11rem;
}

.invoice-list-toolbar-search {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .invoice-list-toolbar {
        flex-wrap: wrap;
    }

    .invoice-list-toolbar-search {
        width: 100%;
        flex-basis: 100%;
    }
}

.bg-orange {
    background-color: #fd7e14 !important;
}

.balance-stat-card .card-body {
    padding: 1rem 1.25rem;
}

.balance-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
}

.balance-stat-card h3 {
    font-size: 1.35rem;
}

.table-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table-sort-link:hover {
    color: var(--primary-color) !important;
}

.bulk-edit-sort-btn {
    cursor: pointer;
    font-weight: inherit;
}

.table-sort-icon-idle {
    opacity: 0.35;
}

.customer-search-wrap {
    max-width: 420px;
}

.customer-list-toolbar .customer-search-wrap {
    margin-bottom: 0;
}

.customer-list-count {
    font-size: 0.9375rem;
    white-space: nowrap;
}

.customer-list-columns-sortable {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.customer-list-column-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background: #fff;
}

.customer-list-column-drag-handle {
    cursor: grab;
    user-select: none;
    color: var(--bs-secondary-color);
    line-height: 1;
}

.customer-list-column-drag-handle:active {
    cursor: grabbing;
}

#customer-list-card .table-hover tbody tr.customer-list-row-selected > * {
    --bs-table-bg-state: var(--bs-primary-bg-subtle, #cfe2ff);
    --bs-table-color-state: var(--bs-table-color);
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
}

#customer-list-card .table-hover tbody tr.customer-list-row-selected:hover > * {
    background-color: #b6d4fe;
}

.customer-list-select-col {
    width: 2.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.customer-search-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
}

.customer-search-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    text-align: left;
}

button.customer-search-item {
    cursor: pointer;
}

.customer-search-item:last-child {
    border-bottom: none;
}

.customer-search-item:hover,
.customer-search-item:focus,
.customer-search-item.active {
    background-color: #f4f6f9;
    color: inherit;
}

.customer-search-item-title {
    font-weight: 600;
}

.customer-search-item-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}

.customer-search-empty {
    padding: 0.875rem 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.page-header {
    margin-bottom: 1.5rem;
}

.dashboard-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.dashboard-page-header-intro {
    flex: 0 1 auto;
    min-width: 12rem;
}

.dashboard-page-header-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 1 1 360px;
    max-width: 100%;
}

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.44rem;
    flex: 1 1 auto;
    max-width: 100%;
}

.dashboard-quick-action-btn {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.44rem;
    padding: 0.25rem 0.81rem;
    text-align: center;
    font-size: 0.94rem;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-quick-action-btn .bi {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .dashboard-quick-actions {
        justify-content: flex-start;
    }

    .dashboard-quick-action-btn {
        flex: 0 1 auto;
    }
}

.status-badge {
    text-transform: capitalize;
}

.invoice-item-row td {
    vertical-align: middle;
}

.form-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-list-actions-col {
    min-width: 7.75rem;
    white-space: nowrap;
}

.customer-list-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.superadmin-users-table {
    table-layout: fixed;
    width: 100%;
}

.superadmin-users-table .users-col-name {
    width: 16%;
}

.superadmin-users-table .users-col-email {
    width: 34%;
}

.superadmin-users-table .users-col-role {
    width: 16%;
}

.superadmin-users-table .users-col-created {
    width: 14%;
}

.superadmin-users-table .users-col-actions {
    width: 20%;
}

.superadmin-users-table td {
    vertical-align: middle;
}

.superadmin-users-table .users-business-header td {
    background-color: #f8f9fa;
}

.superadmin-users-table .users-business-header:first-child td {
    border-top: none;
}

.superadmin-users-table .users-col-email,
.superadmin-users-table .users-col-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-category-header td {
    background-color: #e9ecef;
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    border-top: 2px solid #dee2e6;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.service-category-header:first-child td {
    border-top: none;
}

.category-drag-handle {
    cursor: grab;
    user-select: none;
}

.category-drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.45;
    background-color: #f8f9fa;
}

.sortable-chosen {
    background-color: #fff;
}

.customer-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.customer-sidebar-nav .nav-link {
    color: #495057;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.customer-sidebar-nav .nav-link:hover {
    background-color: #f4f6f9;
    color: #0d6efd;
}

.customer-sidebar-nav .nav-link.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.customer-sidebar-header h2 {
    line-height: 1.35;
    word-break: break-word;
}

.customer-sidebar-footer {
    border-top: 1px solid #e9ecef;
}

.customer-sidebar-footer .nav-link {
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.customer-sidebar-footer .nav-link:hover {
    background-color: #f4f6f9;
    color: #0d6efd;
}

.flash-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1080;
    min-width: 280px;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(12px);
    animation: flash-toast-in 0.35s ease forwards;
}

.flash-toast-success {
    background-color: #d1e7dd;
    color: #0a3622;
    border: 1px solid #a3cfbb;
}

.flash-toast.fade-out {
    animation: none;
    transition: opacity 10s ease;
    opacity: 0;
}

@keyframes flash-toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-wrapper-portal {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
}

.portal-body {
    background-color: #f8f9fa;
}

.portal-main {
    max-width: 1400px;
}

.portal-nav-pills .nav-link {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-right: 0.25rem;
}

.portal-nav-pills .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.customer-website-link {
    color: #0d6efd;
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
}

.customer-website-link:hover {
    color: #0a58ca;
}

.customer-contact-icons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.customer-list-contact-col {
    min-width: 5.5rem;
    white-space: nowrap;
}

.customer-contact-wrap {
    position: relative;
    display: inline-block;
}

.customer-contact-trigger {
    border: 0;
    background: transparent;
    color: #0d6efd;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.customer-contact-trigger:hover {
    color: #0a58ca;
}

.customer-contact-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    background: #212529;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.customer-contact-wrap.is-open .customer-contact-tooltip {
    display: flex;
}

.customer-contact-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #212529;
}

.customer-contact-value {
    font-size: 0.8125rem;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.customer-contact-copy,
.customer-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.customer-contact-copy:hover,
.customer-contact-action:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.customer-contact-copy.is-copied {
    background: rgba(25, 135, 84, 0.85);
}

.portal-dashboard-toggle .form-check-input {
    cursor: pointer;
    margin: 0;
}

.dev-mode-pill {
    display: inline-block;
    width: 150px;
    max-width: 150px;
    padding: 0.35rem 0.75rem;
    background-color: #e66a2b;
    color: #fff;
    border-radius: 999px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.badge.badge-customer-standard {
    background-color: #0d6efd;
    color: #fff;
}

.badge.badge-customer-priority {
    background-color: #6f42c1;
    color: #fff;
}

.badge.badge-customer-low-priority {
    background-color: #6c757d;
    color: #fff;
}

.customer-list-name-stack {
    line-height: 1.35;
}

.customer-list-company-link {
    display: block;
}

.customer-list-person-name {
    color: #212529;
    font-size: 0.875rem;
    font-weight: 400;
}

.invoice-email-preview {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 1.25rem;
    max-height: 520px;
    overflow: auto;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

.invoice-email-preview table {
    width: 100%;
}

.invoice-doc-wrapper {
    max-width: 820px;
}

.invoice-doc {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    padding: 40px 20px;
}

.invoice-doc table {
    width: 100%;
}

.invoice-view-logo {
    display: block;
    max-height: 72px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media print {
    .no-print,
    .navbar,
    .app-footer,
    .flash-toast {
        display: none !important;
    }

    body.app-layout {
        display: block;
    }

    main.container-fluid {
        padding: 0 !important;
        max-width: none;
    }

    .invoice-view-card,
    .invoice-view-card .card-footer,
    .invoice-view-card .card-header,
    .invoice-doc-wrapper {
        border: none !important;
        box-shadow: none !important;
    }

    .invoice-doc {
        border: none !important;
        box-shadow: none !important;
        max-width: none;
    }
}

/* Flatpickr date picker */
.flatpickr-calendar {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    font-family: inherit;
    padding: 0.35rem;
    width: 18.75rem;
    box-sizing: border-box;
}

.flatpickr-months {
    padding: 0.35rem 0.25rem 0;
}

.flatpickr-months .flatpickr-month {
    height: 2.5rem;
}

.flatpickr-current-month {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 600;
}

.flatpickr-weekdays {
    margin-top: 0.25rem;
    width: 100%;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
    flex: 1;
    width: 100%;
}

span.flatpickr-weekday {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.75rem;
    flex: 1 1 14.2857143%;
    max-width: 14.2857143%;
    text-align: center;
}

.flatpickr-days {
    width: 100% !important;
}

.flatpickr-days .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.flatpickr-day {
    border-radius: 10px;
    color: #212529;
    font-weight: 500;
    box-sizing: border-box;
    flex: 0 0 14.2857143%;
    width: 14.2857143%;
    max-width: 14.2857143%;
    height: 2.375rem;
    line-height: calc(2.375rem - 2px);
    margin: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.flatpickr-day.fp-past-day {
    color: #adb5bd;
}

.flatpickr-day.fp-past-day:hover,
.flatpickr-day.fp-past-day:focus {
    background: #eef2f7;
    border-color: #eef2f7;
    color: #868e96;
}

.flatpickr-day.fp-today-highlight {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.flatpickr-day.fp-today-highlight:hover,
.flatpickr-day.fp-today-highlight:focus {
    background: rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.flatpickr-day.selected.fp-past-day {
    color: #fff;
}

.flatpickr-day.today:not(.selected) {
    border-color: transparent;
}

.flatpickr-day.today.fp-today-highlight:not(.selected) {
    border-color: var(--primary-color);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #dee2e6;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #eef2f7;
}

input.flatpickr-input.form-control[readonly]:not([type="hidden"]) {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.35rem;
    cursor: pointer;
}

input.flatpickr-input.form-control-sm[readonly]:not([type="hidden"]) {
    background-position: right 0.55rem center;
    padding-right: 2rem;
}

.customer-edit-form {
    padding-bottom: 0;
}

.floating-form-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.customer-content .floating-form-actions {
    position: sticky;
    bottom: 0;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 40;
    margin-top: 1.5rem;
    pointer-events: auto;
}

.domain-owner-cell {
    min-width: 11rem;
}

.domain-owner-select {
    min-width: 10.5rem;
    max-width: 14rem;
}

.domain-owner-select.is-saving {
    opacity: 0.65;
}

.legal-page {
    background-color: #f4f6f9;
}

.legal-card {
    border: none;
    border-radius: 12px;
}

.legal-content h2 {
    margin-top: 1.75rem;
}

.legal-content p,
.legal-content li {
    color: #495057;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.25rem;
}
