/*
 * F24 View — OpenAI-inspired
 * White bg, no hover states, solid black buttons, #0d0d0d/#666 text
 */

.f24-view {
    padding: 32px 28px !important;
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: #0d0d0d;
}

/* Header */
.f24-header {
    padding: 0;
    margin-bottom: 28px;
}

.f24-tagline {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.f24-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0d0d0d;
    margin: 0 0 6px;
    letter-spacing: -0.04em;
    line-height: 1.15;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.f24-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Summary — 3 stat blocks */
.f24-view .f24-summary {
    display: flex;
    gap: 1px;
    margin-bottom: 28px;
    background: #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.f24-view .f24-summary-card {
    flex: 1;
    background: #fff;
    padding: 16px 20px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.f24-view .f24-summary-card:first-child { border-radius: 12px 0 0 12px; }
.f24-view .f24-summary-card:last-child { border-radius: 0 12px 12px 0; }

.f24-view .f24-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #0d0d0d;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.f24-view .f24-summary-label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

/* F24 Cards */
.f24-view .f24-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.f24-view .f24-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 14px;
}

.f24-view .f24-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: #fafafa;
    border: none;
}

.f24-view .f24-card-icon.fes { background: #fafafa; }
.f24-view .f24-card-icon.fea { background: #fafafa; }

.f24-view .f24-card-info { flex: 1; min-width: 0; }

.f24-view .f24-card-amount {
    font-size: 16px;
    font-weight: 700;
    color: #0d0d0d;
    letter-spacing: -0.01em;
}

.f24-view .f24-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 13px;
    color: #999;
}

.f24-view .f24-card-due { color: #999; }

.f24-view .f24-card-mode {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: none;
}

.f24-view .f24-card-mode.fes {
    background: #f0fdf4;
    color: #16a34a;
}

.f24-view .f24-card-mode.fea {
    background: #eef2ff;
    color: #4f46e5;
}

/* Preview */
.f24-view .f24-card-preview {
    margin: 0 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    max-height: 140px;
    cursor: pointer;
}

.f24-view .f24-card-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 140px;
}

/* Bottom actions */
.f24-view .f24-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 18px;
    gap: 10px;
}

.f24-view .f24-card-attach {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
}

.f24-view .f24-card-attach svg { flex-shrink: 0; }

/* Solid buttons — no hover, no transitions */
.f24-view .f24-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.01em;
    white-space: normal;
    line-height: 1.25;
    min-height: 40px;
    text-align: center;
}

.f24-view .f24-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.f24-view .f24-btn:active {
    opacity: 0.85;
}

.f24-view .f24-btn.fes {
    background: #0d0d0d;
    color: #fff;
}

.f24-view .f24-btn.fea {
    background: #0d0d0d;
    color: #fff;
}

/* Empty state */
.f24-view .f24-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    text-align: center;
    background: none;
    border: none;
}

.f24-view .f24-empty .f24-empty-icon {
    font-size: 36px;
    margin-bottom: 16px;
    background: none;
    border: none;
    width: auto;
    height: auto;
}

.f24-view .f24-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d0d0d;
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.f24-view .f24-empty p {
    font-size: 14px;
    color: #999;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Loading */
.f24-view .f24-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

/* Responsive */
@media (max-width: 767px) {
    .f24-view {
        padding: 20px 16px !important;
    }
    .f24-view .f24-summary {
        flex-direction: column;
    }
    .f24-view .f24-summary-card { border-radius: 0; }
    .f24-view .f24-summary-card:first-child { border-radius: 12px 12px 0 0; }
    .f24-view .f24-summary-card:last-child { border-radius: 0 0 12px 12px; }
    .f24-view .f24-btn-group { width: 100%; justify-content: stretch; }
    .f24-view .f24-btn-group .f24-btn { flex: 1 1 100%; }
}
