/* CrewTime mobile: responsive and small-screen flow patches */
@media (max-width: 768px) {
    .calculator-workspace {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .calc-estimate-panel {
        position: static !important;
        max-height: none;
    }

    .time-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    input[type="time"],
    input[type="date"],
    #start-time,
    #end-time,
    #work-date,
    #expense-entry-date {
        min-height: 48px;
        font-size: 16px;
        line-height: 1.2;
        padding: 12px 14px;
    }

    .saved-days-table-wrap {
        border: 1px solid #dbe3ef;
        border-radius: 10px;
        background: #ffffff;
    }

    .saved-days-table {
        min-width: 680px;
    }

#save-day-btn,
#save-job-btn,
#builder-send-btn {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    width: 100%;
    z-index: 50;
}

    .day-save-actions {
        position: sticky;
        bottom: 0;
        background: #ffffff;
        padding-top: 8px;
        border-top: 1px solid #e5ecf6;
        margin-top: 10px;
    }

    .day-editor-state {
        display: none;
    }

    .calc-preview-head {
        position: sticky;
        top: 0;
        z-index: 30;
        background: #ffffff;
        padding: 8px 0;
    }

    .penalty-dropdown,
    .save-dropdown,
    .account-dropdown,
    .header-search-results {
        touch-action: manipulation;
        max-width: calc(100vw - 24px);
    }

    .invoice-preview-modal-content {
        width: min(96vw, 760px);
        max-height: 90vh;
    }

    .toast-container {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        bottom: auto;
        width: min(94vw, 520px);
    }
}

body.dark-mode .day-save-actions {
    background: #0f172a;
    border-top-color: #334155;
}

body.dark-mode .calc-preview-head {
    background: #0f172a;
}

/* Unified in-app vibe (matches pre-login energy) */
.page-section:not(#front-page-section) {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(1180px 520px at -8% -28%, rgba(59, 130, 246, 0.18), transparent 64%),
        radial-gradient(920px 420px at 108% -12%, rgba(6, 182, 212, 0.15), transparent 66%),
        linear-gradient(180deg, #fbfcff 0%, #f4f8ff 44%, #edf4ff 100%);
}

.page-section:not(#front-page-section)::after {
    content: '';
    position: fixed;
    right: -28vmax;
    bottom: -34vmax;
    width: 76vmax;
    height: 76vmax;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(2px);
    background:
        radial-gradient(circle at 52% 48%, rgba(8, 145, 178, 0.23), rgba(8, 145, 178, 0));
    animation: appAmbientFloat 16s ease-in-out infinite alternate;
}

.page-section:not(#front-page-section)::before {
    content: '';
    position: fixed;
    width: 70vmax;
    height: 70vmax;
    top: -30vmax;
    left: -24vmax;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
    background: radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.24), rgba(30, 64, 175, 0));
    animation: appHeroGlow 11s ease-in-out infinite;
}

.page-section:not(#front-page-section) > * {
    position: relative;
    z-index: 1;
}

.page-section:not(#front-page-section) .account-section-content,
.page-section:not(#front-page-section) .dashboard-shell,
.page-section:not(#front-page-section) .form-container,
.page-section:not(#front-page-section) .job-summary-content {
    position: relative;
}

.page-section:not(#front-page-section) .account-section-content::after,
.page-section:not(#front-page-section) .dashboard-shell::after,
.page-section:not(#front-page-section) .form-container::after,
.page-section:not(#front-page-section) .job-summary-content::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 28px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 42%);
    z-index: 0;
}

.page-section:not(#front-page-section) .account-section-content > *,
.page-section:not(#front-page-section) .dashboard-shell > *,
.page-section:not(#front-page-section) .form-container > *,
.page-section:not(#front-page-section) .job-summary-content > * {
    position: relative;
    z-index: 1;
}

#login-section h1,
#signup-section h1,
.dashboard-greeting,
.create-job-title,
.section-title,
.account-name {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}

#login-section form,
#signup-section form {
    border: 1px solid rgba(203, 218, 236, 0.9);
    border-radius: 28px;
    padding: 30px 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.72));
    box-shadow:
        0 30px 58px rgba(15, 23, 42, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px) saturate(124%);
    -webkit-backdrop-filter: blur(10px) saturate(124%);
}

.account-card,
.tool-card,
.create-job-shell,
.job-summary-content,
.jobs-list-header,
.invoice-stats-card,
.calc-entry-panel,
.calc-estimate-panel,
.saved-days-panel,
.results,
.summary-kpi {
    border: 1px solid rgba(203, 218, 236, 0.9);
    border-radius: 24px;
    background: linear-gradient(138deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.74));
    box-shadow:
        0 32px 54px rgba(15, 23, 42, 0.12),
        0 10px 26px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(124%);
    -webkit-backdrop-filter: blur(14px) saturate(124%);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tool-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto;
    height: 85%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.34), transparent 66%);
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -52% -20%;
    height: 70%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2), transparent 70%);
}

#tools-section .dashboard-shell {
    padding: 20px 5% 40px;
}

#tools-section .dashboard-hero {
    padding: 24px 28px 20px;
    margin: 0 0 16px;
    border-color: rgba(226, 232, 240, 0.9);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(249, 250, 252, 0.86));
}

#tools-section .dashboard-greeting {
    margin: 0 0 10px;
}

#tools-section .dashboard-date-range {
    margin-left: 1px;
}

#tools-section .stats-grid {
    margin-top: 8px;
    gap: 14px;
}

#tools-section .quick-actions {
    margin-top: 14px;
}

.dashboard-hero,
.jobs-list-header,
.create-job-shell,
.job-summary-header {
    border: 1px solid rgba(203, 218, 236, 0.85);
    border-radius: 28px;
    background: linear-gradient(138deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.72));
    box-shadow:
        0 30px 52px rgba(15, 23, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(124%);
    -webkit-backdrop-filter: blur(14px) saturate(124%);
}

.tool-card-metric,
.summary-kpi-value,
.invoice-stat.highlight .invoice-stat-value {
    background: linear-gradient(122deg, #0f172a 10%, #1D4ED8 52%, #0891b2 94%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.jobs-table {
    border: 1px solid rgba(203, 218, 236, 0.92);
    overflow: hidden;
    border-radius: 18px;
    box-shadow:
        0 20px 34px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.jobs-table thead {
    background: linear-gradient(120deg, rgba(236, 246, 255, 0.96), rgba(240, 253, 250, 0.88));
}

.jobs-table tbody tr {
    background: rgba(255, 255, 255, 0.78);
}

.jobs-table tbody tr:hover {
    background: linear-gradient(120deg, rgba(239, 246, 255, 0.88), rgba(239, 246, 255, 0.82));
}

.settings-btn.btn-primary,
.quick-action-btn.btn-primary,
.create-job-btn,
.create-job-primary {
    background: linear-gradient(126deg, #0b1220, #151f30 50%, #24344c 100%);
    border-color: rgba(15, 23, 42, 0.86);
    box-shadow:
        0 16px 30px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.settings-btn.btn-primary,
.quick-action-btn.btn-primary,
.create-job-btn,
.create-job-primary,
.activity-action-btn {
    border-radius: 999px;
}

#dashboard-activity-section .activity-actions {
    width: 100%;
    justify-content: flex-start;
}

#dashboard-activity-section .activity-action-btn {
    min-width: 0;
    flex: 1 1 96px;
}

#dashboard-activity-section .dashboard-jobs-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.dashboard-earnings-top {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.dashboard-earnings-tabs {
    max-width: 100%;
    flex-wrap: nowrap;
}

.settings-btn.btn-primary:hover,
.quick-action-btn.btn-primary:hover,
.create-job-btn:hover,
.create-job-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 34px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.settings-btn.btn-secondary,
.quick-action-btn.btn-secondary,
.create-job-secondary,
.home-inline-btn {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(235, 247, 255, 0.78));
    border-color: rgba(191, 219, 254, 0.9);
    color: #0f172a;
}

#jobs-list-section .jobs-list-header {
    gap: 12px;
}

#jobs-list-section .jobs-list-header h2 {
    padding: 0 12px;
}

#jobs-list-section .jobs-list-left,
:is(#jobs-list-section, #timesheets-list-section) .jobs-list-right {
    flex-wrap: wrap;
}

#jobs-list-section .jobs-list-left {
    width: auto;
}

#jobs-list-section .jobs-primary-action-box {
    width: auto;
    min-width: 220px;
    max-width: 220px;
}

#create-job-from-list-btn {
    background: linear-gradient(126deg, #0b1220, #151f30 50%, #24344c 100%);
    border: 1px solid rgba(15, 23, 42, 0.86);
    border-radius: 999px;
    color: #f8fafc;
    box-shadow:
        0 16px 30px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#create-job-from-list-btn:hover {
    background: linear-gradient(126deg, #101a2c, #1a2a40 50%, #274564 100%);
    transform: translateY(-2px);
    box-shadow:
        0 20px 34px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.dashboard-panel-btn {
    border-radius: 14px !important;
}

.dashboard-panel-btn .dashboard-panel-title {
    font-size: 13px;
}

.dashboard-panel-btn .dashboard-panel-copy {
    font-size: 11px;
    line-height: 1.35;
}

#tools-section .quick-actions .quick-action-btn {
    border-radius: 16px !important;
    min-height: 84px;
}

#home-from-list-btn {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(235, 247, 255, 0.78));
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 999px;
    color: #0f172a;
    box-shadow:
        0 10px 18px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#home-from-list-btn:hover {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(226, 240, 255, 0.86));
    border-color: rgba(147, 197, 253, 0.92);
    transform: translateY(-2px);
}

#home-from-calculator-btn {
    display: none !important;
}

#home-from-list-btn,
#home-from-form-btn,
#home-from-summary-btn {
    display: none !important;
}

#invoice-builder-section #job-header {
    margin-top: 6px !important;
    margin-bottom: 14px;
}

#invoice-builder-section .job-title-wrap {
    gap: 2px;
}

#invoice-builder-section .invoice-stats-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto 16px;
    padding: 12px;
}

#invoice-builder-section .invoice-stat,
#invoice-builder-section .invoice-stat.highlight {
    min-height: 108px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(219, 229, 242, 0.92);
    background: rgba(255, 255, 255, 0.78);
    display: flex;
    justify-content: center;
}

#invoice-builder-section .invoice-stat-label,
#invoice-builder-section .invoice-stat-value {
    width: 100%;
    text-align: left;
}

#invoice-builder-section .calc-estimate-panel {
    position: sticky;
    top: 120px;
    max-height: none;
    overflow: visible;
}

.dashboard-shell::before {
    background:
        radial-gradient(980px 430px at -8% -20%, rgba(255, 255, 255, 0.94), transparent 63%),
        radial-gradient(820px 380px at 104% -18%, rgba(191, 219, 254, 0.3), transparent 68%),
        radial-gradient(780px 340px at 54% 116%, rgba(167, 243, 208, 0.14), transparent 68%);
    opacity: 0.98;
    animation: appAmbientPulse 13s ease-in-out infinite;
}

@keyframes appAmbientPulse {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.92; }
    100% { transform: translate3d(0, -8px, 0) scale(1.03); opacity: 1; }
}

@keyframes appAmbientFloat {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -12px, 0); }
}

@keyframes appHeroGlow {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.92; }
    100% { transform: translate3d(24px, 10px, 0) scale(1.06); opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
    .account-card:hover,
    .tool-card:hover,
    .create-job-shell:hover,
    .job-summary-content:hover,
    .results:hover {
        transform: translateY(-3px);
        box-shadow:
            0 24px 44px rgba(15, 23, 42, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.94);
    }
}

body.dark-mode .page-section:not(#front-page-section) {
    background:
        radial-gradient(940px 400px at -10% -16%, rgba(30, 64, 175, 0.32), transparent 64%),
        radial-gradient(760px 330px at 110% -12%, rgba(8, 145, 178, 0.24), transparent 70%),
        linear-gradient(180deg, #070d18 0%, #0b1322 40%, #0f1a2d 100%);
}

body.dark-mode .page-section:not(#front-page-section)::before {
    background: radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.34), rgba(30, 64, 175, 0));
}

body.dark-mode .page-section:not(#front-page-section)::after {
    background: radial-gradient(circle at 52% 48%, rgba(8, 145, 178, 0.3), rgba(8, 145, 178, 0));
}

body.dark-mode #login-section form,
body.dark-mode #signup-section form,
body.dark-mode .account-card,
body.dark-mode .tool-card,
body.dark-mode .create-job-shell,
body.dark-mode .job-summary-content,
body.dark-mode .jobs-list-header,
body.dark-mode .invoice-stats-card,
body.dark-mode .calc-entry-panel,
body.dark-mode .calc-estimate-panel,
body.dark-mode .saved-days-panel,
body.dark-mode .results,
body.dark-mode .summary-kpi {
    border-color: rgba(51, 65, 85, 0.85);
    background: linear-gradient(145deg, rgba(8, 15, 31, 0.9), rgba(12, 24, 44, 0.72));
    box-shadow:
        0 18px 38px rgba(2, 6, 23, 0.4),
        inset 0 1px 0 rgba(148, 163, 184, 0.18);
}

body.dark-mode .dashboard-hero,
body.dark-mode .jobs-list-header,
body.dark-mode .create-job-shell,
body.dark-mode .job-summary-header {
    border-color: rgba(51, 65, 85, 0.85);
    background: linear-gradient(140deg, rgba(8, 15, 31, 0.9), rgba(12, 24, 44, 0.72));
    box-shadow:
        0 28px 48px rgba(2, 6, 23, 0.38),
        inset 0 1px 0 rgba(148, 163, 184, 0.16);
}

body.dark-mode #tools-section .dashboard-hero {
    border-color: rgba(51, 65, 85, 0.88);
    background: linear-gradient(140deg, rgba(8, 15, 31, 0.92), rgba(15, 23, 42, 0.84));
}

body.dark-mode #invoice-builder-section .invoice-stat,
body.dark-mode #invoice-builder-section .invoice-stat.highlight {
    border-color: rgba(71, 85, 105, 0.72);
    background: rgba(15, 23, 42, 0.7);
}

body.dark-mode .dashboard-shell::before {
    background:
        radial-gradient(980px 420px at -8% -20%, rgba(59, 130, 246, 0.2), transparent 64%),
        radial-gradient(820px 380px at 104% -18%, rgba(14, 116, 144, 0.26), transparent 70%);
}

body.dark-mode .jobs-table thead {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(15, 35, 55, 0.88));
}

body.dark-mode .jobs-table tbody tr {
    background: rgba(15, 23, 42, 0.66);
}

body.dark-mode .jobs-table tbody tr:hover {
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.82), rgba(15, 46, 73, 0.76));
}

@media (max-width: 1024px) {
    #invoice-builder-section .invoice-stats-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    #invoice-builder-section .calc-estimate-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    #invoice-builder-section .invoice-stats-card {
        grid-template-columns: 1fr;
    }
}

/* Failsafe: Ensure interactive elements are always clickable */
.container,
.site-header,
.page-section,
button:not(:disabled),
a,
input,
select,
textarea {
    pointer-events: auto;
}

#account-icon-btn,
.auth-buttons {
    pointer-events: auto !important;
    z-index: calc(var(--z-header) + 30);
}

/* Ensure hidden modals cannot block interactions */
.invoice-preview-modal:not(.show) {
    display: none !important;
    pointer-events: none !important;
}

/* De-pill controls */
.settings-btn.btn-primary,
.quick-action-btn.btn-primary,
.create-job-btn,
.create-job-primary,
.activity-action-btn,
.settings-btn.btn-secondary,
.quick-action-btn.btn-secondary,
.create-job-secondary,
.home-inline-btn,
#create-job-from-list-btn {
    border-radius: 12px !important;
}

#jobs-list-section .jobs-primary-action-box {
    width: auto;
    min-width: 170px;
    max-width: 220px;
}

#create-job-from-list-btn {
    width: auto;
    padding: 9px 14px;
    font-size: 13px;
}

#tools-section .quick-actions .quick-action-btn {
    min-height: 100px;
}

@media (max-width: 760px) {
    #signup-section .signup-shell {
        max-width: 96vw;
        margin: 24px auto 40px;
    }

    #login-section .signup-shell {
        width: 96vw;
        max-width: 96vw;
        margin: 24px auto 40px;
    }

    #signup-step-panels [data-signup-step="4"] .settings-field {
        padding: 10px;
    }

    .signup-template-option {
        padding: 10px;
    }

    .signup-template-option-preview {
        height: 286px;
        padding: 8px 8px 2px;
    }

    .signup-template-option-preview .invoice-template-stack {
        transform: scale(0.47);
        width: 212%;
        margin-left: 2px;
        margin-bottom: -88%;
    }
}

/* Final invoices header alignment + spacing fixes */
#jobs-list-section .jobs-list-header {
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

#jobs-list-section .jobs-list-left {
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-left: 8px;
}

#jobs-list-section .jobs-primary-action-box {
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#jobs-list-section #create-job-from-list-btn {
    min-width: 210px;
    margin: 0;
}

#jobs-list-section #delete-selected-btn {
    position: static;
    transform: none;
    padding: 3px 6px;
    border-radius: 9px;
    min-width: 62px;
    font-size: 10px;
    margin: 0 0 0 4px;
}

#jobs-list-section #delete-selected-btn .delete-selected-count {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    font-size: 9px;
}

#jobs-list-section .jobs-list-right {
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 12px;
}

:is(#jobs-list-section, #timesheets-list-section) .jobs-filter-select {
    border-radius: 14px;
    padding: 6px 11px;
    margin: 0;
}

#jobs-actions-th .jobs-actions-th-inner,
#timesheets-actions-th .jobs-actions-th-inner {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
    align-items: center;
    gap: 0;
    width: 100%;
    white-space: nowrap;
}

#jobs-actions-th .jobs-actions-th-inner > span:first-child,
#timesheets-actions-th .jobs-actions-th-inner > span:first-child {
    flex: 0 0 auto;
    margin-left: 8px;
}

#jobs-actions-th #delete-selected-btn,
#timesheets-actions-th #timesheets-delete-selected-btn {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content;
    position: static;
    transform: none;
    padding: 4px 9px;
    border-radius: 8px;
    min-width: 51px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    background: #fff5f5;
    color: #b91c1c;
    border: 1px solid #f8c8c8;
    box-shadow: none;
    grid-column: 3;
    justify-self: start;
    margin: 0;
}

#jobs-actions-th #delete-selected-btn.hidden,
#timesheets-actions-th #timesheets-delete-selected-btn.hidden {
    display: inline-flex !important;
    visibility: hidden;
    pointer-events: none;
}

#jobs-actions-th #delete-selected-btn .delete-selected-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
}

#invoice-builder-section .calc-entry-panel > .saved-days {
    margin-top: 0;
    margin-bottom: 12px;
}

#invoice-builder-section .builder-main-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    margin: 0;
    border: 1px solid rgba(203, 218, 236, 0.9);
    border-bottom: 1px solid var(--border-light);
    border-radius: 16px 16px 0 0;
    background: rgba(241, 245, 249, 0.76);
    font-weight: 700;
    color: var(--text-primary);
    cursor: default;
}

#invoice-builder-section .builder-main-summary .meta {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

/* Flatten invoice-builder left column so everything sits on one level */
#invoice-builder-section .saved-days-panel {
    border: 1px solid rgba(203, 218, 236, 0.88);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: none;
    overflow: hidden;
}

#invoice-builder-section .saved-days-summary {
    background: rgba(241, 245, 249, 0.7);
    border-bottom: 1px solid rgba(203, 218, 236, 0.75);
}

#invoice-builder-section .saved-days-panel .saved-days-table thead,
#invoice-builder-section .saved-days-panel .saved-days-table tbody tr,
#invoice-builder-section .saved-days-panel .saved-days-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.68);
}

#invoice-builder-section .calc-entry-panel .results-inline-strip.show {
    display: grid;
    grid-template-columns: 1fr max-content max-content 1fr;
    align-items: stretch;
    gap: 10px;
    text-align: left;
    justify-content: start;
}

#invoice-builder-section .calc-entry-panel .results-inline-strip .total {
    justify-self: stretch;
    margin-left: 0;
    padding-left: 0;
}

#invoice-builder-section .calc-entry-panel .results-inline-strip .breakdown {
    gap: 0;
    justify-content: center;
    border-right: none;
}

#invoice-builder-section .calc-entry-panel .results-inline-strip .calc-detail-lines {
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-right: 2px solid #93c5fd;
    text-align: center;
}
