/* Shared Card Styles - Apple Design System */

/* Global override: Disable card hover transform */
.mud-card:hover {
    transform: none !important;
}

/* Base Card Styling */
.card-apple {
    background: #ffffff;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Stagger animation for sequential cards */
.card-apple:nth-child(1) { animation-delay: 0.05s; }
.card-apple:nth-child(2) { animation-delay: 0.1s; }
.card-apple:nth-child(3) { animation-delay: 0.15s; }
.card-apple:nth-child(4) { animation-delay: 0.2s; }
.card-apple:nth-child(5) { animation-delay: 0.25s; }
.card-apple:nth-child(6) { animation-delay: 0.3s; }
.card-apple:nth-child(7) { animation-delay: 0.35s; }
.card-apple:nth-child(8) { animation-delay: 0.4s; }
.card-apple:nth-child(9) { animation-delay: 0.45s; }
.card-apple:nth-child(10) { animation-delay: 0.5s; }

/* Chip Styles */
.apple-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 12px !important;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    padding: 4px 12px !important;
    height: 28px !important;
}

/* Info chip uses MudBlazor primary color */
.apple-chip-info {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.12) !important;
    color: var(--mud-palette-primary) !important;
}

.apple-chip-success {
    background-color: rgba(52, 199, 89, 0.12) !important;
    color: #34C759 !important;
}

.apple-chip-warning {
    background-color: rgba(255, 149, 0, 0.12) !important;
    color: #FF9500 !important;
}

.apple-chip-error {
    background-color: rgba(255, 59, 48, 0.12) !important;
    color: #FF3B30 !important;
}

.apple-chip-secondary {
    background-color: rgba(142, 142, 147, 0.12) !important;
    color: #8E8E93 !important;
}

/* Icon Styles */
.apple-icon {
    color: #8E8E93 !important;
    opacity: 0.8;
}

/* Text Styles */
.apple-text {
    color: #1D1D1F;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.apple-text-muted {
    color: #8E8E93;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.apple-subtitle {
    color: #1D1D1F;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}

/* Divider */
.apple-divider {
    border-color: var(--apple-border) !important;
}

/* Button Styles */
.apple-button-text {
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none !important;
    transition: all 0.2s ease;
}

.apple-button-text-error {
    color: #FF3B30 !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none !important;
    transition: all 0.2s ease;
}

.apple-button-text-error:hover {
    background-color: rgba(255, 59, 48, 0.08) !important;
}

/* Card Actions */
.apple-card-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Selection Container (for role/location editing) */
.apple-selection-container {
    background: #F9F9F9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.apple-selection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-selection-item:last-child {
    border-bottom: none;
}

.apple-selection-item:hover {
    background: #F9F9F9;
}

.apple-selection-item.selected {
    background: rgba(0, 0, 0, 0.04);
}

.apple-selection-item.selected:hover {
    background: rgba(0, 0, 0, 0.08);
}

.apple-selection-text {
    color: #1D1D1F;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.apple-selection-item.selected .apple-selection-text {
    color: var(--mud-palette-primary);
    font-weight: 500;
}

.apple-selection-checkmark {
    color: var(--mud-palette-primary) !important;
}

/* List Styles */
.apple-list {
    background-color: transparent !important;
}

.apple-list .mud-list-item {
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.apple-list .mud-list-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Detail Grid — label/value pairs inside expanded cards */
.form-detail-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    align-items: baseline;
}

.detail-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--apple-text-secondary);
    white-space: nowrap;
}

.detail-value {
    font-size: 0.8125rem;
    color: var(--apple-text-primary);
}

/* Collapse/Expand Content */
.expanded-card {
    padding-bottom: 0px !important;
}

.smooth-collapse {
    overflow: hidden;
}

/* MudCollapse smooth animations */
.smooth-collapse .mud-collapse-container {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Apply transform on expand/collapse */
.card-apple .mud-collapse-wrapper {
    will-change: height;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.fade-in-content {
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-out-content {
    animation: fadeOutDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }

/* ========================================
   BACK NAVIGATION BUTTON
   ======================================== */
.btn-back {
    color: var(--mud-palette-primary) !important;
    font-weight: 500 !important;
    justify-content: center !important;
}

/* ========================================
   SECTION LABEL (uppercase caption)
   ======================================== */
.section-label {
    color: var(--apple-text-secondary) !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   EMPTY STATE DASHED CONTAINER
   ======================================== */
.empty-dashed {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: var(--apple-surface);
}

/* ========================================
   INNER BORDERED PANELS
   ======================================== */
.inner-panel {
    border-radius: 16px;
    border: 1px solid var(--apple-border);
}

.inner-panel-sm {
    border-radius: 12px;
    border: 1px solid var(--apple-border);
}

/* ========================================
   REPORT CARD
   ======================================== */
.report-card {
    background: #ffffff;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   NO-UNDERLINE TEXT FIELD
   ======================================== */
.no-underline-input .mud-input-underline {
    display: none !important;
}

.no-underline-input::before,
.no-underline-input::after {
    display: none !important;
}

.no-underline-input .mud-input-line {
    display: none !important;
}

/* ========================================
   CONTENT EXPAND ANIMATION (profile sections)
   ======================================== */
.content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper.show {
    grid-template-rows: 1fr;
}

.content-inner {
    overflow: hidden;
    transition: opacity 0.1s ease-in-out;
}

.content-wrapper:not(.show) .content-inner { opacity: 0; }
.content-wrapper.show .content-inner { opacity: 1; }

/* ========================================
   TEMPLATE CARD PATTERN
   ======================================== */
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--mud-palette-background);
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--apple-border);
    background: var(--mud-palette-surface);
    color: var(--apple-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}

.category-pill:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), 0.04);
}

.category-pill.active {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: #fff;
    font-weight: 600;
}

.template-card {
    border: 1.5px solid var(--apple-border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    background: var(--mud-palette-surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    user-select: none;
}

.template-card:hover {
    border-color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), 0.02);
}

.template-card:active {
    transform: scale(0.985);
}

.template-card-body { flex: 1; }

.template-desc {
    color: var(--apple-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.template-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-card-arrow {
    font-size: 1.1rem;
    color: var(--apple-text-secondary);
    transition: color 0.15s ease, transform 0.15s ease;
}

.template-card:hover .template-card-arrow {
    color: var(--mud-palette-primary);
    transform: translateX(3px);
}

.meta-chip {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--apple-gray-light);
    color: var(--apple-text-secondary);
    white-space: nowrap;
}

.meta-chip-popular {
    background: rgba(75, 111, 239, 0.1);
    color: var(--mud-palette-primary);
}

/* ========================================
   SHARED KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   AUTH GRADIENT BACKGROUND
   ======================================== */
.auth-gradient-bg {
    background: linear-gradient(135deg, #4b6fef 0%, #703197 100%);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   DRAWER FOOTER (nav menus)
   ======================================== */
.drawer-footer {
    padding: 16px 8px;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-footer .mud-typography {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================
   REGISTRATION LAYOUT (shared hero + container)
   ======================================== */
.register-hero {
    background: #5abee2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.register-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.register-container {
    display: flex;
    min-height: 100dvh;
}

.register-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fafafa;
}

.register-form-container {
    width: 100%;
    max-width: 480px;
}

.mobile-logo-wrapper {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 959px) {
    .register-container {
        flex-direction: column;
    }

    .register-hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .mobile-logo-wrapper {
        display: block;
    }
}

/* ========================================
   PROFILE ROW RESPONSIVE (mobile stacking)
   ======================================== */
@media (max-width: 599px) {
    .profile-row-responsive {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .profile-row-responsive > .profile-row-end {
        align-self: flex-end;
    }
}

/* ========================================
   iOS SETTINGS PROFILE ROWS
   ======================================== */
.profile-settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-height: 44px;
    position: relative;
}


.profile-settings-row-icon {
    color: var(--apple-text-secondary);
    flex-shrink: 0;
}

.profile-settings-row-content {
    flex: 1;
    min-width: 0;
}

/* Profile group label row (label + actions + collapse toggle) */
.profile-group-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Centered profile header */
.profile-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}


/* ========================================
   Weekly Calendar Grid - Desktop Schedule
   ======================================== */

/* Responsive toggle */
.schedule-desktop-view { display: none; }
.schedule-mobile-view  { display: block; }

@media (min-width: 1024px) {
    .schedule-desktop-view { display: block; }
    .schedule-mobile-view  { display: none; }
}

/* Calendar container */
.shift-calendar {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--apple-surface, #FFFFFF);
}

/* Header row: time gutter + 7 day columns */
.shift-cal-header {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
}

.shift-cal-time-header {
    background: #F5F5F7;
    padding: 12px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--apple-text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--apple-border);
    border-right: 1px solid var(--apple-border);
}

.shift-cal-day-header {
    text-align: center;
    padding: 10px 4px;
    background: #F5F5F7;
    border-left: 1px solid var(--apple-border);
    border-bottom: 1px solid var(--apple-border);
}

.shift-cal-day-name {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--apple-text-secondary);
    margin-bottom: 2px;
}

.shift-cal-day-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--apple-text-primary);
}

/* Today header highlight */
.shift-cal-day-header--today .shift-cal-day-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--apple-blue, #007AFF);
    color: #FFFFFF;
    font-weight: 600;
}

/* Location group sections */
.shift-cal-location-section {
    border-top: 1px solid var(--apple-border);
}

.shift-cal-location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F5F5F7;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.shift-cal-location-header:hover {
    background: #EDEDF0;
}

.shift-cal-location-name {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--apple-text-secondary);
}

.shift-cal-location-count {
    font-size: 0.7rem;
    color: var(--apple-text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Grid body: time gutter + 7 day columns */
.shift-cal-body {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    position: relative;
}

/* Time gutter */
.shift-cal-time-gutter {
    position: relative;
    background: #FFFFFF;
    border-right: 1px solid var(--apple-border);
}

.shift-cal-time-label {
    position: absolute;
    right: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--apple-text-secondary);
    transform: translateY(-50%);
    white-space: nowrap;
}

/* Day columns */
.shift-cal-day-col {
    position: relative;
    border-left: 1px solid var(--apple-border);
    min-height: 100%;
    background: #FFFFFF;
}

.shift-cal-day-col--today {
    background: rgba(0, 122, 255, 0.03);
}

/* Grid lines */
.shift-cal-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--apple-border);
    pointer-events: none;
}

.shift-cal-half-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

/* Empty state */
.shift-cal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
}

.shift-cal-empty-icon {
    color: var(--apple-text-secondary);
    margin-bottom: 12px;
}


/* ========================================
   Shift Block Content (calendar blocks)
   ======================================== */

.shift-block {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    font-size: 0.8125rem;
    line-height: 1.3;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: inherit;
    border-left: 3px solid transparent;
}

.shift-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--apple-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.shift-block__name {
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.shift-block__time {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1px;
}

.shift-block__employees {
    font-size: 0.6875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.75);
}

/* Staffing badge */
.shift-block__staffing {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.shift-block__staffing--fulfilled {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.shift-block__staffing--unfulfilled {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Schedule event block variants */
.schedule-event-block--workorder {
    opacity: 0.9;
    border-left-width: 4px;
}

.schedule-event-block--stage {
    opacity: 0.85;
    border-left-style: dashed;
}

.schedule-event-block__deadline {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.schedule-event-block__deadline--overdue {
    background: rgba(255, 59, 48, 0.9);
    color: #fff;
}

.schedule-event-block__deadline--approaching {
    background: rgba(255, 149, 0, 0.9);
    color: #fff;
}

/* ========================================
   INVOICE DOCUMENT
   ======================================== */
.invoice-doc {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.invoice-doc-header {
    padding: 24px 28px 20px;
}

.invoice-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px 28px;
}

.invoice-party {
    padding-right: 16px;
}

.invoice-party-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8E8E93;
    margin-bottom: 6px;
}

.invoice-party-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 3px;
}

.invoice-party-detail {
    font-size: 0.8125rem;
    color: #3C3C43;
    line-height: 1.5;
}

.invoice-party-muted {
    color: #8E8E93;
    font-style: italic;
}

.invoice-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 28px;
}

.invoice-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8E8E93;
}

.invoice-meta-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1D1D1F;
}

.invoice-col-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 28px;
    background: rgba(0, 0, 0, 0.02);
}

.invoice-col-header span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8E8E93;
}

.invoice-line-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 28px;
    gap: 16px;
}

.invoice-line-main {
    flex: 1;
    min-width: 0;
}

.invoice-line-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 3px;
}

.invoice-line-desc {
    font-size: 0.8125rem;
    color: #3C3C43;
    margin-bottom: 10px;
    line-height: 1.5;
}

.invoice-stages {
    margin-top: 8px;
    margin-bottom: 8px;
    border-left: 2px solid rgba(0, 0, 0, 0.07);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-stage-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1D1D1F;
}

.invoice-stage-instructions {
    font-size: 0.75rem;
    color: #8E8E93;
    margin-top: 2px;
    line-height: 1.5;
}

.invoice-line-duration {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #8E8E93;
    margin-top: 8px;
}

.invoice-line-amount {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1D1D1F;
    white-space: nowrap;
    padding-top: 1px;
}

.invoice-amount-tbd {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8E8E93;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.02);
}

.invoice-total-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3C3C43;
}

.invoice-total-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1D1D1F;
}

.invoice-notes-block {
    padding: 16px 28px;
}

.invoice-notes-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8E8E93;
    margin-bottom: 6px;
}

.invoice-notes-text {
    font-size: 0.8125rem;
    color: #3C3C43;
    line-height: 1.6;
    white-space: pre-line;
}

.invoice-empty {
    padding: 32px 28px;
    font-size: 0.8125rem;
    color: #8E8E93;
    text-align: center;
}
