/* Safeguard Roofing CSS Design System */

:root {
    --bg-app: #2B2E33; /* Deep Slate Grey */
    --bg-paper: #1E2023; /* Charcoal Grey */
    --text-primary: #FFFFFF; /* White */
    --text-secondary: #A0A5AD; /* Muted Silver */
    --text-muted: #7E848E;
    --border-light: #2D3035;
    --border-medium: #3E4249;
    --border-dark: #D49B00; /* Dark Industrial Yellow */
    
    --accent: #D49B00; /* Dark Industrial Yellow */
    --accent-hover: #B88600;
    --accent-light: #2D3035;
    
    --color-paid: #10b981;
    --color-paid-bg: #1B3F2A; /* Legible dark green background */
    --color-pending: #fbbf24;
    --color-pending-bg: #3E2911; /* Legible dark gold background */
    --color-closed: #9ca3af;
    --color-closed-bg: #2d3035;
    --color-danger: #f87171;
    --color-danger-bg: #401B1B; /* Legible dark red background */
    --color-gold: #D49B00;
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-pop: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 75px; /* bottom navbar height */
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, select, textarea {
    background-color: var(--bg-paper);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

/* App Containers */
#app-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-app);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Top Header */
#app-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.header-logo svg {
    color: var(--text-primary);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    background-color: var(--accent-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* Bottom Sticky Navigation */
#bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background-color: rgba(30, 32, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 86px;
    padding: 10px 20px 24px 20px;
    z-index: 100;
    box-sizing: border-box;
}

/* Dashboard operations welcome header styling with mobile notch safe-area offset */
.more-header {
    text-align: center;
    padding: 16px 12px 8px 12px;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-paper);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
}

.more-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 8px 0 4px 0;
}

.more-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.nav-spacer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 4px;
    transition: all 0.2s ease;
}

.nav-tab svg {
    stroke-width: 2px;
    transition: transform 0.2s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab:hover svg {
    transform: translateY(-1px);
}

.nav-tab.active {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-tab.active svg {
    stroke-width: 2.5px;
    color: var(--text-primary);
}

/* Workspace Views */
#workspace {
    flex: 1;
    padding: 0 20px 20px 20px;
    position: relative;
}

.app-view {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.app-view.active {
    display: block;
}

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

/* Running Total Dashboard Card */
.dashboard-header {
    padding: 16px 12px 8px 12px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 24px;
}

.running-total-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-dark);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.card-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Filter Bar Toggles */
.filter-bar {
    display: flex;
    border: 1px solid var(--border-medium);
    background-color: var(--bg-paper);
}

.filter-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.filter-btn:not(:last-child) {
    border-right: 1px solid var(--border-medium);
}

.filter-btn.active {
    background-color: var(--accent);
    color: #ffffff;
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 84px;
    right: calc(50% - 370px);
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 90;
}

/* Adjust FAB position for narrower viewports */
@media (max-width: 800px) {
    .fab {
        right: 20px;
    }
}

.fab:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.fab:active {
    transform: scale(0.95);
}

/* Document Lists */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-card, .list-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.doc-card:hover, .list-card:hover {
    border-color: var(--border-dark);
    background-color: var(--accent-light);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-ref-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-ref {
    font-weight: 700;
    font-size: 0.95rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-client {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.card-amount {
    font-weight: 800;
    font-size: 1.05rem;
}

.card-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-status.paid {
    background-color: var(--color-paid-bg);
    color: var(--color-paid);
}

.card-status.outstanding, .card-status.open {
    background-color: var(--color-pending-bg);
    color: var(--color-pending);
}

.card-status.closed {
    background-color: var(--color-closed-bg);
    color: var(--color-closed);
}

/* Client Directory Card */
.client-dir-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.client-dir-card:hover {
    border-color: var(--border-dark);
}

.client-dir-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.client-dir-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.client-dir-detail svg {
    color: var(--text-muted);
}

.client-dir-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* Document Editor Top Tab System */
.doc-editor-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.doc-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: color 0.2s ease;
}

.doc-tab.active {
    color: var(--text-primary);
    font-weight: 700;
}

.doc-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* Sub-Tab Content toggling */
.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
}

/* Invoice / Estimate Form Paper Layout (Invoice Simple design match) */
.paper-layout {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-dark);
    padding: 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.doc-header-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: start;
}

.doc-title-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-type-label {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.doc-id-wrapper {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.hash-symbol {
    color: var(--text-muted);
    margin-right: 2px;
}

.inline-input {
    border: none;
    border-bottom: 1px dashed var(--border-medium);
    padding: 2px 4px;
    background: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    width: 100%;
}

.inline-input:hover, .inline-input:focus {
    outline: none;
    border-bottom: 1px solid var(--border-dark);
    background-color: rgba(0, 0, 0, 0.01);
}

.bold-large {
    font-weight: 700;
    font-size: 1.5rem;
}

.align-right {
    text-align: right;
}

.biz-name {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.biz-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.doc-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 24px 0;
}

/* Client Details & Metadata Grid */
.doc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 24px;
}

.field-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.clickable-client-area {
    border: 1px dashed var(--border-medium);
    padding: 12px;
    cursor: pointer;
    min-height: 80px;
    transition: all 0.2s ease;
    background-color: var(--bg-app);
}

.clickable-client-area:hover {
    border-color: var(--border-dark);
    background-color: var(--accent-light);
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 56px;
}

.client-name-bold {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.client-addr-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.date-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.doc-meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.w-auto {
    width: auto !important;
}

/* Document Table Styling */
.table-container {
    margin: 24px 0;
    overflow-x: auto;
}

.doc-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.doc-items-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-dark);
}

.doc-items-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.col-desc { width: 45%; text-align: left; }
.col-qty { width: 10%; text-align: center; }
.col-unit { width: 10%; text-align: center; }
.col-rate { width: 15%; text-align: right; }
.col-vat { width: 10%; text-align: center; }
.col-total { width: 15%; text-align: right; }
.col-actions { width: 5%; text-align: center; }

.item-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
}

.item-delete-btn:hover {
    background-color: var(--color-danger-bg);
}

.add-item-action-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.btn-text-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid var(--border-dark);
    transition: all 0.2s ease;
}

.btn-text-icon:hover {
    background-color: var(--accent-light);
}

/* Document Footer & Financial Breakdowns */
.doc-footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
}

.notes-block {
    margin-bottom: 20px;
}

.styled-textarea {
    width: 100%;
    border: 1px solid var(--border-medium);
    padding: 10px;
    font-size: 0.8rem;
    resize: none;
    border-radius: 4px;
}

.styled-textarea:focus {
    outline: none;
    border-color: var(--border-dark);
}

.signature-canvas-wrapper {
    position: relative;
    border: 1px solid var(--border-medium);
    background-color: #fcfcfc;
    height: 112px;
    width: 100%;
}

.signature-canvas-wrapper canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none; /* disables standard scrolling inside signature area */
}

.clear-sig-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    background-color: var(--accent-light);
    border: 1px solid var(--border-medium);
    cursor: pointer;
    border-radius: 4px;
}

.clear-sig-btn:hover {
    background-color: var(--border-medium);
}

/* Switch styling for Toggle Button */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--text-primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--text-primary);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Financial Totals layout */
.totals-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-row span:first-child {
    color: var(--text-secondary);
}

.discount-inline-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inline-select {
    border: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
}

.inline-select:focus {
    outline: none;
}

.w-16 { width: 64px !important; }
.w-24 { width: 96px !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.totals-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 6px 0;
}

.bold-row {
    font-weight: 700;
    font-size: 1rem;
}

.highlight-total {
    font-size: 1.15rem;
    font-weight: 800;
}

.balance-row {
    font-weight: 700;
    padding-top: 6px;
    border-top: 1px solid var(--border-dark);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-primary {
    background-color: var(--accent);
    color: #1E2023; /* Dark Charcoal Grey text for high visibility */
    border-color: var(--border-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--bg-paper);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
}

.btn-accent-dark {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #111827;
}

.btn-accent-dark:hover {
    background-color: #111827;
}

.btn-danger-outline {
    background-color: transparent;
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-danger-outline:hover {
    background-color: var(--color-danger-bg);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.w-full {
    width: 100% !important;
}

/* Actions Grid panel in editors */
.editor-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.print-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

/* PREVIEW PAPER */
.preview-paper {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-dark);
    padding: 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}

.preview-sig-img {
    max-height: 56px;
    display: block;
    border-bottom: 1px solid var(--text-muted);
}

/* HISTORY */
.history-timeline-panel {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    padding: 24px;
}

.timeline-list {
    list-style: none;
    margin-top: 16px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 16px;
    font-size: 0.85rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--accent);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 13px;
    bottom: -5px;
    width: 2px;
    background-color: var(--border-light);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
}

/* ================= CONTRACT / CERTIFICATE / DIARY SHEET ================= */
.contract-doc-sheet {
    animation: fadeIn 0.2s ease-out;
}

.btn-back-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-back-more:hover {
    color: var(--text-primary);
}

.contract-paper {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-dark);
    padding: 48px;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.paragraph {
    margin-bottom: 12px;
    text-align: justify;
    line-height: 1.6;
}

.parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.party-box {
    border: 1px solid var(--border-medium);
    padding: 12px;
    border-radius: 4px;
}

.party-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.party-box p {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.contract-line {
    border: none;
    border-top: 1px solid var(--border-dark);
    margin: 20px 0;
}

.contract-paper h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 16px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.contract-scope-box {
    background-color: var(--bg-app);
    border: 1px solid var(--border-light);
    padding: 12px;
    font-family: monospace;
    font-size: 0.8rem;
    white-space: pre-line;
    margin-bottom: 12px;
}

.contract-financial-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.contract-financial-table td {
    padding: 6px 0;
}

.border-top {
    border-top: 1px solid var(--border-dark);
}

.signature-approval-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sig-block-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contract-sig-pad-wrapper {
    position: relative;
    border: 1px solid var(--border-medium);
    height: 90px;
    background-color: #fcfcfc;
}

.contract-sig-pad-wrapper canvas {
    width: 100%;
    height: 100%;
}

.clear-sig-btn-small {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    background-color: var(--accent-light);
    border: 1px solid var(--border-medium);
    cursor: pointer;
    border-radius: 2px;
}

.static-signature-display {
    border-bottom: 1px solid var(--border-dark);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.static-signature-display img {
    max-height: 48px;
    display: block;
}

.sig-meta-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* ================= GUARANTEE CERTIFICATE ENGINE ================= */
.certificate-paper {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-dark);
    padding: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.cert-border-outer {
    border: 4px double var(--color-gold);
    padding: 24px;
}

.cert-border-inner {
    border: 1px solid var(--color-gold);
    padding: 30px;
}

.cert-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-badge-logo {
    margin-bottom: 16px;
}

.cert-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: serif;
}

.cert-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.cert-ref-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.cert-body-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cert-holder-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cert-body-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.cert-address {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cert-divider-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
    margin-bottom: 20px;
}

.cert-scope {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.cert-duration-block {
    background-color: var(--bg-app);
    border: 1px solid var(--color-gold);
    padding: 16px 24px;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
}

.cert-duration-block .cert-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.cert-warranty-years {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cert-dates {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cert-footer-signs {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.cert-sign-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 240px;
}

.cert-signature-line {
    border-bottom: 1px solid var(--text-secondary);
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.cert-sign-col strong {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.cert-sign-col span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ================= CALENDAR / DIARY MODULE ================= */
.diary-dashboard-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .diary-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.calendar-card-panel {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    padding: 16px;
    border-radius: 4px;
}

.calendar-ctrl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.calendar-ctrl-header button {
    background: none;
    border: 1px solid var(--border-light);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calendar-ctrl-header button:hover {
    background-color: var(--accent-light);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 6px 0;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-row-gap: 4px;
    grid-column-gap: 4px;
    grid-column: span 7;
}

.cal-cell {
    background-color: #222529; /* Slightly darker than Deep Slate Grey */
    border: 1px solid var(--border-light);
    height: 48px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cal-cell:hover {
    background-color: var(--accent-light);
}

.cal-cell.empty {
    background-color: transparent;
    border-color: transparent;
    cursor: default;
}

.cal-cell.empty:hover {
    background-color: transparent;
}

.cal-day-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cal-cell.today .cal-day-num {
    color: #ffffff;
    background-color: var(--text-primary);
    width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.cal-events-dots {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.event-dot {
    width: 5px;
    height: 5px;
    border-radius: 2.5px;
    background-color: var(--accent);
}

.jobs-list-panel {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    padding: 16px;
    border-radius: 4px;
    min-height: 300px;
}

.panel-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.schedule-events-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sched-event-card {
    border-left: 3px solid var(--border-dark);
    padding: 10px 12px;
    background-color: #fafafa;
    border: 1px solid var(--border-light);
    border-left-width: 4px;
    font-size: 0.8rem;
}

.sched-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.sched-detail {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

/* ================= MODALS & FORMS LAYOUT ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-paper);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-pop);
    padding: 24px;
    animation: slideUp 0.25s ease-out;
}

.modal-content.width-medium {
    max-width: 460px;
}

.modal-content.width-small {
    max-width: 380px;
}

@keyframes slideUp {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 300;
    color: var(--text-muted);
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.span-2 {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    border: 1px solid var(--border-medium);
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--border-dark);
}

.readonly-input {
    background-color: var(--accent-light);
    color: var(--text-secondary);
    border-color: var(--border-light) !important;
}

.discount-input-group {
    display: flex;
}

.discount-input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.discount-input-group select {
    width: 60px;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-actions {
    margin-top: 16px;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.modal-divider-label {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
}

.modal-divider-label::before, .modal-divider-label::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.modal-divider-label span {
    padding: 0 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.client-results-box {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.client-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.client-result-item:hover {
    background-color: var(--accent-light);
}

.client-result-item strong {
    display: block;
}

.client-result-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Search Containers */
.search-container {
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-size: 0.85rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-dark);
}

/* System actions config */
.system-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-medium);
}

.system-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-secondary);
}

.settings-actions {
    display: flex;
    gap: 12px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--accent);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-pop);
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Helper Utilities */
.m-t-1 { margin-top: 8px !important; }
.m-t-2 { margin-top: 16px !important; }
.m-b-1 { margin-bottom: 8px !important; }
.m-b-2 { margin-bottom: 16px !important; }
.bold { font-weight: 700 !important; }
.uppercase { text-transform: uppercase !important; }
.no-display { display: none !important; }
.justify-end { justify-content: flex-end; }
.flex-dir-col { flex-direction: column; }

/* Print utility classes */
.print-only {
    display: none !important;
}

@media print {
    .print-only {
        display: block !important;
    }
    span.print-only, strong.print-only, div.print-only {
        display: inline-block !important;
    }
    .no-print {
        display: none !important;
    }
}


/* ========================================================= */
/* ==================== PRINT MEDIA STYLES ================= */
/* ========================================================= */

@media print {
    /* Hide everything that doesn't belong on a print sheet */
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        padding-bottom: 0 !important;
        font-size: 11pt !important;
    }
    
    #app-container {
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #app-header, 
    #bottom-navbar, 
    .no-print, 
    .fab, 
    .toast, 
    .modal-overlay,
    .doc-editor-tabs, 
    .editor-actions-container,
    .print-actions-bar,
    #workspace > section:not(.active) {
        display: none !important;
    }
    
    /* Ensure that ONLY the document sheet is printed */
    #workspace {
        padding: 0 !important;
    }

    /* Force the active view content to stretch */
    .app-view {
        display: block !important;
        animation: none !important;
    }

    /* If in editor, hide the form part and only print preview */
    #view-doc-editor #subtab-edit,
    #view-doc-editor #subtab-history {
        display: none !important;
    }

    #view-doc-editor #subtab-preview {
        display: block !important;
        padding: 0 !important;
    }

    .preview-paper, .contract-paper, .certificate-paper {
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    /* Print color resets to save ink and remain readable */
    .preview-paper *, .contract-paper *, .certificate-paper * {
        color: #000000 !important;
        text-shadow: none !important;
        background-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cert-border-outer {
        border: 4px double #d4af37 !important;
        padding: 20px !important;
    }

    .cert-border-inner {
        border: 1px solid #d4af37 !important;
        padding: 24px !important;
    }

    .cert-subtitle, .cert-duration-block .cert-label {
        color: #d4af37 !important;
    }

    .cert-duration-block {
        background-color: #faf8f5 !important;
        border: 1px solid #d4af37 !important;
    }

    .party-box {
        border: 1px solid #d1d5db !important;
        background-color: #fafafa !important;
    }

    .contract-scope-box {
        background-color: #fafafa !important;
        border: 1px solid #e5e7eb !important;
    }

    .doc-items-table th {
        border-bottom: 2px solid #000000 !important;
    }

    .doc-items-table td {
        border-bottom: 1px solid #d1d5db !important;
    }

    .balance-row {
        border-top: 2px solid #000000 !important;
    }
    
    /* Keep borders on guarantee outer card for print */
    .cert-border-outer {
        border: 4px double #d4af37 !important;
        padding: 20px !important;
    }
    
    .cert-border-inner {
        border: 1px solid #d4af37 !important;
        padding: 24px !important;
    }

    /* Clean printing margins */
    @page {
        size: A4 portrait;
        margin: 1.5cm;
    }
}

.doc-link {
    cursor: pointer;
    text-decoration: underline;
    color: #2563eb !important;
    font-weight: 600;
}
.doc-link:hover {
    color: #1d4ed8 !important;
}

/* Animated Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111827; /* sleek premium dark background */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    pointer-events: all;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.splash-content {
    text-align: center;
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
    border: 2px solid #d4af37;
}

.splash-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 4px;
}

.splash-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #d4af37; /* Gold accent */
    text-transform: uppercase;
    margin-bottom: 30px;
}

.splash-loader {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background-color: #d4af37;
    border-radius: 50%;
    animation: loaderBounce 1.2s infinite ease-in-out both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Finger-friendly touch and gesture optimizations */
input[type="checkbox"], input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

.flex-align-center {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 6px 10px;
}

.nav-tab {
    min-height: 52px;
}

.doc-card, .list-card, .menu-card, .client-dir-card {
    min-height: 64px;
}

/* Dashboard Menu Grid & Card Styling */
.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 140px; /* Thick and solid */
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.menu-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 155, 0, 0.2);
    background-color: var(--accent-light);
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 12px;
    background-color: var(--bg-app);
    color: var(--color-gold);
}

.menu-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}

.menu-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* Symmetrical grid layout for all 10 cards */

/* Mobile responsive safe area padding and viewport fits */
@media (max-width: 600px) {
    #bottom-navbar {
        padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
        height: calc(88px + env(safe-area-inset-bottom)) !important;
    }
    body {
        padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
    }
    
    /* Force everything to fit mobile screen and prevent horizontal scrolling */
    html, body {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    #app-container {
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    .paper-layout, .contract-doc-sheet, .contract-paper, .preview-paper, .certificate-paper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .doc-header-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .doc-business-section {
        text-align: left !important;
    }
    .doc-details-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .align-right {
        text-align: left !important;
        align-items: flex-start !important;
    }
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    .more-grid {
        gap: 12px;
        padding: 0 10px;
    }
    .menu-card {
        min-height: 130px;
        padding: 16px 12px;
    }
    }
}

/* Job Pipeline & Go-Ahead Staging Board Styles */
.pipeline-kanban-board {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
}

.pipeline-column {
    flex: 1;
    min-width: 280px;
    background-color: #f3f4f6;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    overflow: hidden;
}

.pipeline-column.staging-col-span {
    flex: 2.2;
    min-width: 540px;
    background-color: #fafaf9;
}

.column-header-bar {
    padding: 12px 16px;
    background-color: var(--accent);
    color: #ffffff;
    border-bottom: 2px solid var(--border-dark);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.col-title-lbl {
    font-weight: 800;
}

.column-cards-container, .queue-cards-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 120px;
}

.staging-queues-split {
    display: flex;
    gap: 16px;
    padding: 8px;
    flex: 1;
}

.staging-queue-box {
    flex: 1;
    background-color: #f3f4f6;
    border: 1px dashed var(--border-medium);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.queue-sub-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 12px 0 12px;
    margin: 0;
    letter-spacing: 0.025em;
}

/* Pipeline Cards */
.pipeline-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.pipeline-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.pipeline-card-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.pipeline-card-detail {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pipeline-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid #f3f4f6;
    padding-top: 6px;
    margin-top: 4px;
}

.pipeline-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.pipeline-card-actions .btn {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.72rem;
    min-height: 28px;
    height: 28px;
}

/* Card Status Badges */
.card-status.approved {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-paid);
}

.card-status.scheduled {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

/* Responsive Pipeline Columns */
@media (max-width: 768px) {
    .pipeline-kanban-board {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pipeline-column, .pipeline-column.staging-col-span {
        min-width: 100%;
        max-height: 400px;
        margin-bottom: 20px;
    }
    
    .staging-queues-split {
        flex-direction: column;
    }
}


