/**
 * Balance Sheet V2 - Styles
 *
 * Modern inline UI for the balance sheet wizard.
 *
 * @author Bien (Lead Developer)
 * @created December 29, 2025
 */

/* ============================================
   Container & Layout
   ============================================ */
.bs-v2-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.bs-v2-header {
    text-align: center;
    margin-bottom: 30px;
}

.bs-v2-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.bs-v2-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* ============================================
   Existing List View
   ============================================ */
.bs-v2-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.bs-v2-empty-state i {
    font-size: 64px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.bs-v2-empty-state p {
    color: #666;
    font-size: 18px;
    margin-bottom: 24px;
}

.bs-v2-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bs-v2-list-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.bs-v2-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-v2-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.bs-v2-list-item:hover {
    border-color: #24ace4;
    box-shadow: 0 4px 12px rgba(36, 172, 228, 0.1);
}

.bs-v2-list-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bs-v2-list-item-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    min-width: 230px;
}

.bs-v2-list-item-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.bs-v2-year-range {
    color: #666;
    font-size: 14px;
    margin-right: 12px;
}

.bs-v2-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bs-v2-badge-success {
    background: #d4edda;
    color: #155724;
}

.bs-v2-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.bs-v2-badge-info {
    background: #cce5ff;
    color: #004085;
}

.bs-v2-badge-purpose {
    background: #e2e3f1;
    color: #383d6e;
}

.bs-v2-badge-locked {
    background: #f8d7da;
    color: #721c24;
}

.bs-v2-badge-locked i {
    margin-right: 4px;
}

.bs-v2-locked-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.bs-v2-locked-notice i {
    color: #856404;
}

.bs-v2-list-item-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */
.bs-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bs-v2-btn i {
    font-size: 14px;
}

.bs-v2-btn-primary {
    background: #24ace4;
    color: #fff;
}

.bs-v2-btn-primary:hover {
    background: #1a8fc2;
}

.bs-v2-btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #dee2e6;
}

.bs-v2-btn-secondary:hover {
    background: #f8f9fa;
    color: #333;
}

.bs-v2-btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #dee2e6;
}

/* Subtle text button - less visible */
.bs-v2-btn-text-subtle {
    background: transparent;
    color: #999;
    border: none;
    font-size: 12px;
    padding: 8px 12px;
    text-decoration: underline;
}

.bs-v2-btn-text-subtle:hover {
    color: #666;
    background: transparent;
}

.bs-v2-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.bs-v2-btn-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.bs-v2-btn-danger:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.bs-v2-btn-icon-only {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #999;
    gap: 0;
}

.bs-v2-btn-icon-only:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.bs-v2-btn-warning {
    background: #f0ad4e;
    color: #fff;
    border: none;
}

.bs-v2-btn-warning:hover {
    background: #ec971f;
    color: #fff;
}

.bs-v2-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #28a745;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.bs-v2-locked-badge i {
    font-size: 12px;
}

.bs-v2-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bs-v2-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.bs-v2-btn-icon:hover {
    background: #dc3545;
    color: #fff;
}

/* ============================================
   Wizard
   ============================================ */
.bs-v2-wizard {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 30px;
}

/* Progress Bar */
.bs-v2-progress {
    margin-bottom: 30px;
}

.bs-v2-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bs-v2-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #24ace4, #28a745);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bs-v2-progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Step Content */
.bs-v2-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.bs-v2-step-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.bs-v2-step-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Question text - make it bigger */
.bs-v2-step-header p:not(.bs-v2-important-note):not(.bs-v2-hint) {
    font-size: 22px;
    font-weight: 500;
}

.bs-v2-hint {
    color: #888 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
}

.bs-v2-important-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    color: #856404;
    font-size: 14px;
    margin-top: 15px !important;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bs-v2-important-note i {
    color: #856404;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Choice Buttons */
.bs-v2-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.bs-v2-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 35px;
    min-width: 140px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s;
}

.bs-v2-choice-btn i {
    font-size: 28px;
}

/* Skip button for Net Income - make it subtle like other skip buttons */
.bs-v2-choice-skip {
    background: transparent;
    color: #aaa;
    border: none;
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 400;
    text-decoration: underline;
    min-width: auto;
    flex-direction: row;
    gap: 5px;
}

.bs-v2-choice-skip i {
    font-size: 11px;
}

.bs-v2-choice-skip:hover {
    color: #888;
    background: transparent;
    border: none;
}

.bs-v2-choice-btn:hover {
    border-color: #24ace4;
    background: #f0faff;
}

.bs-v2-choice-btn[data-choice="yes"]:hover {
    border-color: #28a745;
    background: #f0fff4;
}

.bs-v2-choice-btn[data-choice="yes"]:hover i {
    color: #28a745;
}

.bs-v2-choice-btn[data-choice="no"]:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.bs-v2-choice-btn[data-choice="no"]:hover i {
    color: #dc3545;
}

.bs-v2-choice-skip {
    border-color: #ffc107 !important;
    background: #fffbf0 !important;
    color: #856404 !important;
}

.bs-v2-choice-skip i {
    color: #ffc107;
}

.bs-v2-choice-skip:hover {
    background: #fff3cd !important;
}

/* ============================================
   Form Elements
   ============================================ */
.bs-v2-form-group {
    margin-bottom: 20px;
}

.bs-v2-form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 14px;
}

.bs-v2-form-group label .required {
    color: #dc3545;
}

.bs-v2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bs-v2-input,
.bs-v2-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.bs-v2-input:focus,
.bs-v2-select:focus {
    outline: none;
    border-color: #24ace4;
    box-shadow: 0 0 0 3px rgba(36, 172, 228, 0.1);
}

/* Remove any highlight when input has value but not focused */
.bs-v2-input:not(:focus):not(:placeholder-shown),
.bs-v2-select:not(:focus) {
    border-color: #ced4da;
    box-shadow: none;
    outline: none;
}

/* Subtle filled state */
.bs-v2-input:not(:placeholder-shown):not(:focus) {
    background-color: #fafafa;
}

.bs-v2-input-error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
    outline: 2px solid #dc3545 !important;
}

.bs-v2-input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.bs-v2-input-prefix span {
    position: absolute;
    left: 16px;
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

.bs-v2-input-prefix .bs-v2-input {
    padding-left: 32px;
}

.bs-v2-input-large .bs-v2-input {
    font-size: 24px;
    padding: 16px;
    padding-left: 40px;
    text-align: center;
}

.bs-v2-input-large span {
    font-size: 24px;
    left: 20px;
}

.bs-v2-field-note {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================
   Entry Cards
   ============================================ */
.bs-v2-entry-form {
    margin-top: 20px;
}

.bs-v2-entry-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.bs-v2-entry-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.bs-v2-card-note {
    color: #888;
    font-size: 14px;
    margin: -10px 0 20px 0;
}

.bs-v2-entry-actions {
    margin-top: 20px;
    text-align: right;
}

/* Ensure primary buttons in entry-actions have proper background */
.bs-v2-entry-actions .bs-v2-btn-primary {
    background: #24ace4 !important;
    color: #fff !important;
}

.bs-v2-entry-actions .bs-v2-btn-primary:hover {
    background: #1a8fc2 !important;
}

/* Added Items */
.bs-v2-added-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bs-v2-added-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
}

.bs-v2-added-item-info strong {
    display: block;
    color: #1a1a2e;
    font-size: 15px;
    margin-bottom: 4px;
}

.bs-v2-added-item-info span {
    color: #666;
    font-size: 13px;
}

.bs-v2-start-date {
    display: block;
    margin-top: 4px;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    width: fit-content;
}

.bs-v2-start-date i {
    margin-right: 5px;
}

/* Start Date Row in Review Table */
.bs-v2-start-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
}

.bs-v2-start-date-row label {
    font-size: 12px;
    color: #1565c0;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

.bs-v2-start-date-row label i {
    margin-right: 4px;
}

.bs-v2-date-input {
    width: 140px !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
}

/* Add More Prompt */
.bs-v2-add-more {
    text-align: center;
    padding: 20px;
    background: #f0faff;
    border-radius: 10px;
    border: 1px solid #b3e0f7;
}

.bs-v2-add-more p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 15px 0;
}

/* ============================================
   Warnings
   ============================================ */
.bs-v2-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    margin-top: 20px;
}

.bs-v2-warning > i {
    font-size: 28px;
    color: #856404;
    flex-shrink: 0;
}

.bs-v2-warning p {
    color: #856404;
    font-size: 15px;
    margin: 0 0 15px 0;
}

.bs-v2-warning-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   File Upload
   ============================================ */
.bs-v2-file-upload {
    margin-bottom: 20px;
}

.bs-v2-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.bs-v2-file-dropzone:hover {
    border-color: #24ace4;
    background: #f0faff;
}

.bs-v2-file-dropzone i {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.bs-v2-file-dropzone p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.bs-v2-file-dropzone span {
    color: #888;
    font-size: 13px;
}

.bs-v2-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #e8f5e9;
    border-radius: 8px;
}

.bs-v2-file-preview i {
    font-size: 24px;
    color: #28a745;
}

.bs-v2-file-preview span {
    flex: 1;
    font-weight: 600;
    color: #1a1a2e;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-v2-file-preview button {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

/* ============================================
   Review Summary
   ============================================ */
.bs-v2-review-summary {
    margin-bottom: 30px;
}

.bs-v2-review-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.bs-v2-review-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.bs-v2-review-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.bs-v2-review-row:last-child {
    border-bottom: none;
}

.bs-v2-review-row span {
    color: #666;
}

.bs-v2-review-row strong {
    color: #1a1a2e;
}

.bs-v2-review-category {
    margin-bottom: 10px;
}

.bs-v2-review-category-title {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.bs-v2-review-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0 6px 20px;
    font-size: 14px;
}

.bs-v2-review-item span:first-child {
    color: #666;
}

.bs-v2-review-item span:last-child {
    color: #1a1a2e;
    font-weight: 500;
}

.bs-v2-review-totals {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.bs-v2-plug-row strong {
    font-size: 18px;
}

.bs-v2-plug-error {
    background: #fff5f5 !important;
}

.bs-v2-plug-error strong {
    color: #dc3545 !important;
}

.bs-v2-incomplete {
    background: #fff3cd;
}

.bs-v2-incomplete-text {
    color: #856404 !important;
    font-style: italic;
}

/* Plug Warning */
.bs-v2-plug-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.bs-v2-plug-warning > i {
    font-size: 32px;
    color: #dc3545;
    flex-shrink: 0;
}

.bs-v2-plug-warning h4 {
    font-size: 18px;
    font-weight: 700;
    color: #721c24;
    margin: 0 0 8px 0;
}

.bs-v2-plug-warning p {
    color: #721c24;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.bs-v2-plug-amount {
    font-size: 16px !important;
}

.bs-v2-plug-amount strong {
    font-size: 20px;
    color: #dc3545;
}

/* Missing Warning */
.bs-v2-missing-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    margin-bottom: 20px;
}

.bs-v2-missing-warning > i {
    font-size: 28px;
    color: #856404;
    flex-shrink: 0;
}

.bs-v2-missing-warning p {
    color: #856404;
    font-size: 15px;
    margin: 0;
}

/* Review Actions */
.bs-v2-review-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.bs-v2-cpa-meeting {
    text-align: center;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    border: 1px solid #90caf9;
}

.bs-v2-cpa-meeting p {
    color: #1565c0;
    font-size: 16px;
    margin: 0 0 15px 0;
}

/* ============================================
   Navigation
   ============================================ */
.bs-v2-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.bs-v2-wizard-nav #bsCancelBtn {
    margin-left: auto;
    margin-right: 10px;
}

/* ============================================
   Edit View
   ============================================ */
.bs-v2-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.bs-v2-edit-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.bs-v2-edit-header-actions {
    display: flex;
    gap: 10px;
}

.bs-v2-edit-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* ============================================
   Review Table (Step 13)
   ============================================ */
.bs-v2-business-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #24ace4;
}

.bs-v2-business-header h4 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.bs-v2-edit-name-btn {
    padding: 4px 8px !important;
    font-size: 12px;
    color: #6c757d;
    border-color: #dee2e6;
}

.bs-v2-edit-name-btn:hover {
    color: #24ace4;
    border-color: #24ace4;
}

.bs-v2-year-badge {
    background: #24ace4;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.bs-v2-info-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #24ace4;
}

.bs-v2-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-v2-info-item strong {
    color: #24ace4;
}

.bs-v2-table-section {
    margin-bottom: 25px;
}

.bs-v2-section-header {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 3px solid #24ace4;
}

.bs-v2-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.bs-v2-table th {
    background-color: #24ace4;
    color: white;
    font-weight: 600;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #1a8db8;
}

.bs-v2-table th:first-child {
    text-align: left;
}

.bs-v2-table td {
    padding: 10px;
    border: 1px solid #e9ecef;
    background-color: #fff;
    vertical-align: middle;
}

.bs-v2-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.bs-v2-table .bs-v2-input {
    padding: 8px 10px;
    font-size: 13px;
    min-width: 110px;
}

.bs-v2-table .bs-v2-input[type="number"] {
    text-align: right;
    min-width: 120px;
}

.bs-v2-table .bs-v2-category-cell {
    font-weight: 600;
    color: #1a1a2e;
    background: #f0f7fa !important;
}

/* Highlight empty balance inputs in review table */
.bs-v2-input-missing {
    border: 2px solid #ffc107 !important;
    background: #fffbeb !important;
}

.bs-v2-table .bs-v2-row-actions {
    text-align: center;
    white-space: nowrap;
}

.bs-v2-remove-btn {
    background: #24ace4;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bs-v2-remove-btn:hover {
    background: #dc3545;
}

.bs-v2-add-row-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.bs-v2-add-row-btn:hover {
    background: #218838;
}

.bs-v2-add-row td {
    padding: 12px 15px;
    background: #f8f9fa;
}

.bs-v2-btn-sm {
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-width: auto !important;
    background: #24ace4 !important;
    color: white !important;
    border: none !important;
}

.bs-v2-btn-sm:hover {
    background: #1a8bc4 !important;
}

/* Category-specific Add buttons */
.bs-v2-category-add-row td {
    padding: 8px 15px;
    background: #fafbfc;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.bs-v2-btn-category-add {
    padding: 6px 14px !important;
    font-size: 13px !important;
    min-width: auto !important;
    background: transparent !important;
    color: #24ace4 !important;
    border: 1px dashed #24ace4 !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bs-v2-btn-category-add:hover {
    background: #e8f7fc !important;
    border-style: solid !important;
}

.bs-v2-btn-category-add i {
    margin-right: 5px;
}

.bs-v2-total-row {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eef6 100%);
    padding: 15px 20px;
    border: 2px solid #24ace4;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bs-v2-total-row.bs-v2-grand-total {
    margin-top: 15px;
}

.bs-v2-total-row.bs-v2-grand-total .bs-v2-total-label {
    color: #1a1a2e;
}

.bs-v2-total-row.bs-v2-grand-total .bs-v2-total-caption {
    color: #6c757d;
}

.bs-v2-total-row.bs-v2-grand-total .bs-v2-total-amount {
    color: #1a1a2e;
}

.bs-v2-total-label {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 16px;
}

.bs-v2-total-values {
    display: flex;
    gap: 25px;
}

.bs-v2-total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bs-v2-total-caption {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.bs-v2-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #24ace4;
}

.bs-v2-plug-display {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 16px;
}

.bs-v2-plug-display span {
    font-size: 20px;
    font-weight: 700;
    margin-left: 10px;
}

.bs-v2-plug-display.bs-v2-plug-ok span {
    color: #28a745;
}

.bs-v2-plug-display.bs-v2-plug-warning span {
    color: #ffc107;
}

.bs-v2-plug-display.bs-v2-plug-error span {
    color: #dc3545;
}

/* ============================================
   Running Summary
   ============================================ */
.bs-v2-running-summary {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f0faff 0%, #e8f5e9 100%);
    border-radius: 12px;
    border: 2px solid #24ace4;
    box-shadow: 0 4px 12px rgba(36, 172, 228, 0.15);
}

.bs-v2-running-summary h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #24ace4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-v2-running-summary h4::before {
    content: '\f0ae';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #24ace4;
}

.bs-v2-summary-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    font-size: 14px;
    color: #333;
}

.bs-v2-summary-item strong {
    color: #1a1a2e;
    margin-right: 8px;
}

.bs-v2-summary-warning {
    border-left-color: #ffc107 !important;
    background: #fffbf0 !important;
    color: #856404 !important;
}

.bs-v2-summary-warning strong {
    color: #856404 !important;
}

/* ============================================
   Checkbox Label
   ============================================ */
.bs-v2-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.bs-v2-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bs-v2-checkbox-label span {
    color: #495057;
}

/* ============================================
   OR Separator & Custom Date Range
   ============================================ */
.bs-v2-or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.bs-v2-or-separator::before,
.bs-v2-or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.bs-v2-or-separator span {
    padding: 0 15px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bs-v2-custom-date-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bs-v2-custom-date-label:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.bs-v2-custom-date-label.active {
    background: #e3f2fd;
    border-color: #2196F3;
}

.bs-v2-custom-date-label i:first-child {
    color: #2196F3;
    font-size: 16px;
}

.bs-v2-custom-date-label span {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.bs-v2-custom-date-label i:last-child {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.bs-v2-custom-date-label.active i:last-child {
    transform: rotate(180deg);
}

.bs-v2-field-error {
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================
   Balance Difference / Imbalance States
   ============================================ */

/* Huge Imbalance - Blocking State */
.bs-v2-huge-imbalance {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.bs-v2-imbalance-icon {
    background: #fc8181;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bs-v2-imbalance-icon i {
    font-size: 24px;
}

.bs-v2-imbalance-content h4 {
    color: #c53030;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.bs-v2-imbalance-content p {
    color: #742a2a;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Minor Imbalance - Proceed with caution */
.bs-v2-minor-imbalance {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f6e05e;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.bs-v2-minor-message {
    color: #744210;
    margin: 0 0 25px 0;
    font-size: 15px;
    line-height: 1.6;
}

.bs-v2-minor-message i {
    color: #d69e2e;
    margin-right: 8px;
}

/* Balanced State - All good */
.bs-v2-balanced {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 2px solid #68d391;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.bs-v2-balanced-message {
    color: #22543d;
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 500;
}

.bs-v2-balanced-message i {
    color: #38a169;
    margin-right: 8px;
}

/* Finalize Section Layout */
.bs-v2-finalize-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.bs-v2-finalize-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bs-v2-option-label {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

/* Large Button Modifier */
.bs-v2-btn-large {
    padding: 14px 28px !important;
    font-size: 16px !important;
}

/* ============================================
   Read-only Preview (Disabled Review Step)
   ============================================ */
.bs-v2-preview-wrapper {
    margin-top: 30px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 20px;
    position: relative;
}

.bs-v2-preview-overlay {
    background: rgba(248, 249, 250, 0.9);
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.bs-v2-preview-overlay span {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.bs-v2-preview-overlay i {
    margin-right: 8px;
    color: #adb5bd;
}

.bs-v2-preview-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.bs-v2-preview-disabled input,
.bs-v2-preview-disabled button {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

.bs-v2-preview-disabled .bs-v2-add-custom-asset,
.bs-v2-preview-disabled .bs-v2-review-actions {
    display: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .bs-v2-container {
        padding: 15px;
    }

    .bs-v2-wizard {
        padding: 20px;
    }

    .bs-v2-form-row {
        grid-template-columns: 1fr;
    }

    .bs-v2-choice-buttons {
        flex-direction: column;
    }

    .bs-v2-choice-btn {
        width: 100%;
    }

    .bs-v2-list-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .bs-v2-list-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .bs-v2-list-item-actions {
        width: 100%;
        justify-content: center;
    }

    .bs-v2-wizard-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bs-v2-wizard-nav .bs-v2-btn {
        flex: 1;
        justify-content: center;
    }

    .bs-v2-review-actions {
        flex-direction: column;
    }

    .bs-v2-edit-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================================
   Add Custom Asset Button
   ============================================ */
.bs-v2-add-custom-asset {
    margin-top: 15px;
    text-align: right;
}

.bs-v2-add-custom-asset .bs-v2-btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* ============================================
   Skip Balances Button (Much Smaller, Very Subtle)
   ============================================ */
.bs-v2-btn-skip-balances {
    background: transparent;
    color: #aaa;
    border: none;
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 400;
    text-decoration: underline;
    margin-top: 10px;
}

.bs-v2-btn-skip-balances:hover:not(:disabled) {
    background: transparent;
    color: #666;
}

.bs-v2-btn-skip-balances:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bs-v2-btn-skip-balances i {
    font-size: 10px;
    margin-right: 4px;
}

/* ============================================
   Modal Overlay and Component
   ============================================ */
.bs-v2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.bs-v2-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: bsModalFadeIn 0.2s ease;
}

@keyframes bsModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bs-v2-modal-icon {
    margin-bottom: 15px;
    text-align: center !important;
}

.bs-v2-modal-icon i {
    font-size: 48px;
    display: inline-block;
}

.bs-v2-modal-title,
.bs-v2-modal h3.bs-v2-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    text-align: center !important;
}

.bs-v2-modal-message,
.bs-v2-modal p.bs-v2-modal-message {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 25px 0;
    text-align: center !important;
}

.bs-v2-modal-form {
    text-align: left;
    margin-bottom: 20px;
}

.bs-v2-modal-form .bs-v2-form-group {
    margin-bottom: 15px;
}

.bs-v2-modal-form .bs-v2-form-row {
    display: flex;
    gap: 15px;
}

.bs-v2-modal-form .bs-v2-form-row .bs-v2-form-group {
    flex: 1;
}

.bs-v2-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bs-v2-modal-actions .bs-v2-btn {
    min-width: 100px;
}

/* ============================================
   Uploaded Files Section
   ============================================ */
.bs-v2-uploaded-files-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.bs-v2-uploaded-files-section .bs-v2-section-header {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: #495057;
}

.bs-v2-uploaded-files-section .bs-v2-section-header i {
    margin-right: 8px;
    color: #24ace4;
}

.bs-v2-uploaded-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bs-v2-uploaded-file-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.bs-v2-uploaded-file-item:hover {
    border-color: #24ace4;
    box-shadow: 0 2px 8px rgba(36, 172, 228, 0.1);
}

.bs-v2-uploaded-file-item i {
    font-size: 24px;
    color: #dc3545;
    margin-right: 12px;
}

.bs-v2-uploaded-file-item i.fa-file-image {
    color: #28a745;
}

.bs-v2-uploaded-file-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.bs-v2-uploaded-file-name {
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 3px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-v2-uploaded-file-type {
    font-size: 12px;
    color: #6c757d;
}

.bs-v2-uploaded-file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bs-v2-uploaded-file-item a.bs-v2-btn,
.bs-v2-uploaded-file-item button.bs-v2-btn {
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
}

.bs-v2-btn-sm {
    font-size: 12px !important;
    padding: 6px 12px !important;
}

.bs-v2-upload-prompt {
    text-align: center;
    padding: 15px;
    color: #6c757d;
}

.bs-v2-upload-prompt p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.bs-v2-upload-prompt .fa-spinner {
    margin-right: 8px;
}

/* Fixed Assets & Intangibles Step Styling */
.bs-v2-fixed-assets-form {
    padding: 20px 0;
}

.bs-v2-schedule-note {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #004085;
    font-size: 14px;
}

.bs-v2-schedule-note i {
    margin-right: 8px;
}

.bs-v2-positive {
    color: #28a745;
    font-weight: 500;
}

.bs-v2-negative {
    color: #dc3545;
    font-weight: 500;
}

.bs-v2-fixed-assets-form .bs-v2-entry-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.bs-v2-fixed-assets-form .bs-v2-entry-card h4 {
    margin: 0 0 15px 0;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.bs-v2-fixed-assets-form .bs-v2-form-row {
    margin-bottom: 15px;
}

.bs-v2-fixed-assets-form .bs-v2-form-row:last-child {
    margin-bottom: 0;
}

.bs-v2-fixed-assets-form .bs-v2-entry-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Fixed Assets table row styling */
.bs-v2-positive-value {
    color: #28a745;
    font-weight: 500;
}

.bs-v2-negative-value {
    color: #dc3545;
    font-weight: 500;
}

.bs-v2-readonly-cell {
    background: #f8f9fa;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* ============================================
   Entry Point Popup (Simplified Wizard)
   ============================================ */
.bs-v2-entry-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.bs-v2-entry-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.bs-v2-entry-popup-content h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 0 0 15px 0;
}

.bs-v2-entry-popup-content h3 i {
    color: #24ace4;
    margin-right: 10px;
}

.bs-v2-entry-popup-content p {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.bs-v2-entry-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bs-v2-entry-popup-buttons .bs-v2-btn {
    min-width: 180px;
    padding: 14px 24px;
    font-size: 15px;
}

/* Entry Yes Message (redirect to tax prep) */
.bs-v2-entry-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.bs-v2-entry-message-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    max-width: 550px;
    border: 1px solid #dee2e6;
}

.bs-v2-entry-icon {
    font-size: 48px;
    color: #24ace4;
    margin-bottom: 20px;
}

.bs-v2-entry-message-content h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin: 0 0 15px 0;
}

.bs-v2-entry-message-content p {
    font-size: 15px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.bs-v2-entry-hint {
    font-size: 14px !important;
    color: #888 !important;
    font-style: italic;
    margin-top: 15px !important;
}

/* Entry No Form (direct entry) */
.bs-v2-entry-form-direct {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.bs-v2-entry-form-content {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.bs-v2-entry-form-content h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 0 0 25px 0;
    text-align: center;
}

.bs-v2-entry-form-content h3 i {
    color: #24ace4;
    margin-right: 10px;
}

.bs-v2-period-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bs-v2-period-start {
    font-weight: 600;
    color: #1a1a2e;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.bs-v2-period-to {
    color: #888;
    font-weight: 500;
}

.bs-v2-period-row input[type="date"] {
    flex: 1;
    min-width: 150px;
}

.bs-v2-period-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bs-v2-period-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.bs-v2-entry-form-direct .bs-v2-entry-actions {
    margin-top: 25px;
    text-align: center;
}

.bs-v2-entry-form-direct .bs-v2-btn-primary {
    min-width: 200px;
    padding: 14px 30px;
}

/* ============================================
   Client Mode (Hide totals but allow adding items)
   ============================================ */
/* Users CAN add items - keep add buttons visible */

.bs-v2-client-mode .bs-v2-total-row,
.bs-v2-client-mode .bs-v2-grand-total,
.bs-v2-client-mode .bs-v2-plug-display,
.bs-v2-client-mode #bsHugeImbalance,
.bs-v2-client-mode #bsMinorImbalance,
.bs-v2-client-mode #bsBalanced {
    display: none !important;
}

/* ============================================
   End Messages
   ============================================ */
.bs-v2-end-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.bs-v2-end-message h4 {
    color: #0369a1;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.bs-v2-end-message p {
    color: #0c4a6e;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.bs-v2-end-message a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
}

.bs-v2-end-message a:hover {
    color: #0369a1;
}

.bs-v2-end-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bs-v2-end-message-content > i {
    font-size: 48px;
    color: #22c55e;
}

.bs-v2-end-message-direct .bs-v2-end-message-content > i {
    color: #3b82f6;
}

.bs-v2-end-message-content > p {
    font-size: 16px;
    max-width: 500px;
}

.bs-v2-end-message-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bs-v2-end-message-links p {
    margin: 10px 0 5px 0;
    font-size: 14px;
}

.bs-v2-end-message-links .bs-v2-btn {
    min-width: 280px;
}
