/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-cn99n3m8ar] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-cn99n3m8ar] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Navbar stays light regardless of system dark mode (phones often use prefers-color-scheme: dark). */
.nav-menu[b-i4fb7qle1b],
.nav-menu .desktop-nav[b-i4fb7qle1b],
.nav-menu .bg-gray-100[b-i4fb7qle1b],
.nav-menu .bg-gray-50[b-i4fb7qle1b],
.nav-menu .bg-white[b-i4fb7qle1b] {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    .nav-menu[b-i4fb7qle1b],
    .nav-menu .desktop-nav[b-i4fb7qle1b] {
        background-color: #f3f4f6 !important;
        border-color: #e5e7eb !important;
    }

    .nav-menu .dropdown-menu[b-i4fb7qle1b] {
        background-color: #fff !important;
        border-color: #e5e7eb !important;
    }

    .nav-menu .dropdown-menu button[b-i4fb7qle1b] {
        color: #111827 !important;
    }

    .nav-menu .dropdown-menu button:hover[b-i4fb7qle1b] {
        background-color: #f3f4f6 !important;
    }
}
/* /Components/Pages/Fees.razor.rz.scp.css */
/* Styles for /fees live in wwwroot/css/fees-page.css (loaded via HeadContent in Fees.razor). */
/* /Components/Pages/FeesAdmin.razor.rz.scp.css */
:root[b-cendyuaxfu] {
    --fees-green-dark: #17472f;
    --fees-green-mid: #14532d;
    --fees-green-light: #123524;
    --fees-border: #dfe5df;
}

h2[b-cendyuaxfu] {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    color: #1f2937;
}

h3[b-cendyuaxfu] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.25;
    color: #1f2937;
}

.fees-section[b-cendyuaxfu] {
    margin-bottom: 0.75rem;
}

/* Extra breathing room above every section title except the first
   (the first has no table above it). */
.fees-section + .fees-section[b-cendyuaxfu] {
    margin-top: 2.25rem;
}

.section-title-row[b-cendyuaxfu] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
    padding-left: 20px; /* match table cell left padding so title aligns with content */
}

.fees-toolbar[b-cendyuaxfu] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.fees-toolbar button[b-cendyuaxfu] {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.fees-toolbar button:hover[b-cendyuaxfu] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.fees-toolbar button:disabled[b-cendyuaxfu] {
    opacity: 0.3;
    cursor: not-allowed;
}

.fees-toolbar button.danger:hover[b-cendyuaxfu] {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.fees-edit-form[b-cendyuaxfu] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    margin-bottom: 1rem;
}

.fees-field-label[b-cendyuaxfu] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

.fees-edit-form input[b-cendyuaxfu],
.fees-edit-form select[b-cendyuaxfu],
.fees-edit-form textarea[b-cendyuaxfu] {
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.fees-edit-form textarea[b-cendyuaxfu] {
    min-height: 4rem;
    resize: vertical;
}

.fees-edit-actions[b-cendyuaxfu] {
    display: flex;
    gap: 0.5rem;
}

.btn-save[b-cendyuaxfu] {
    padding: 0.35rem 0.75rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-save:hover[b-cendyuaxfu] {
    background: #1d4ed8;
}

.btn-cancel[b-cendyuaxfu] {
    padding: 0.35rem 0.75rem;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-cancel:hover[b-cendyuaxfu] {
    background: #d1d5db;
}

/* Pricing table */
.pricing-table[b-cendyuaxfu] {
    width: 100%;
    table-layout: fixed; /* fixed column widths so left columns line up across all tables */
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--fees-border);
    border-radius: 4px;
    background: #fff;
}

/* Lock the left (description) column to a constant width on every table
   so the value column always begins at the same horizontal position. */
.pricing-table th:first-child[b-cendyuaxfu],
.pricing-table td:first-child[b-cendyuaxfu] {
    width: 60%;
}

.pricing-table th[b-cendyuaxfu] {
    background: var(--fees-green-dark);
    color: #fff;
    text-align: left;
    padding: 4px 20px;
    font-size: 1.0625rem;
}

.pricing-table td[b-cendyuaxfu] {
    padding: 13px 20px;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 1.0625rem;
}

.pricing-table td:last-child[b-cendyuaxfu],
.pricing-table th:last-child[b-cendyuaxfu] {
    border-right: none;
}

.pricing-table tbody:last-of-type tr:last-child td[b-cendyuaxfu] {
    border-bottom: 1px solid #e5e7eb;
}

.pricing-table td.value-col[b-cendyuaxfu] {
    font-weight: 700;
}

.pricing-table td.actions-col[b-cendyuaxfu] {
    width: 7rem;
    white-space: nowrap;
}

.group-subheader td[b-cendyuaxfu] {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.add-item-row td[b-cendyuaxfu] {
    padding: 6px 12px;
    border-top: 1px dashed #e5e7eb;
}

.add-item-row button[b-cendyuaxfu] {
    font-size: 0.8rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.add-item-row button:hover[b-cendyuaxfu] {
    color: #2563eb;
}

/* Inline row edit inputs */
.pricing-table td input[b-cendyuaxfu] {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    font-size: 0.875rem;
    box-sizing: border-box;
}

/* Card grid */
.card-grid[b-cendyuaxfu] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.price-card[b-cendyuaxfu] {
    border: 1px solid var(--fees-border);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.card-header[b-cendyuaxfu] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.card-icon[b-cendyuaxfu] {
    font-size: 1.75rem;
}

.mini-table[b-cendyuaxfu] {
    width: 100%;
    border-collapse: collapse;
}

.mini-table td[b-cendyuaxfu] {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
}

.mini-table td.value-col[b-cendyuaxfu] {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.mini-table td.actions-col[b-cendyuaxfu] {
    width: 6rem;
    text-align: right;
    white-space: nowrap;
}

.mini-table td input[b-cendyuaxfu] {
    width: 100%;
    padding: 0.25rem 0.4rem;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    font-size: 0.875rem;
    box-sizing: border-box;
}

/* Info / note box */
.info-box[b-cendyuaxfu] {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-top: 1.25rem;
    border: 1px solid var(--fees-border);
    border-radius: 4px;
    background: #fbfdfb;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Preserve the line breaks the editor typed in the note textarea.
   Without this, HTML collapses newlines into a single space. */
.info-box > div:last-child[b-cendyuaxfu] {
    white-space: pre-line;
}

.info-icon[b-cendyuaxfu] {
    font-size: 1.75rem;
    color: var(--fees-green-mid);
    flex-shrink: 0;
}

/* Add section panel */
.add-section-panel[b-cendyuaxfu] {
    border: 2px dashed #d1d5db;
    border-radius: 4px;
    padding: 1.25rem;
    margin-top: 2rem;
    background: #f9fafb;
}

/* Editor add buttons */
.add-group-btn[b-cendyuaxfu] {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
}

.add-group-btn:hover[b-cendyuaxfu] {
    color: #2563eb;
    border-color: #93c5fd;
}

.add-card-btn[b-cendyuaxfu] {
    border: 2px dashed #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s;
}

.add-card-btn:hover[b-cendyuaxfu] {
    color: #2563eb;
    border-color: #93c5fd;
    background: #eff6ff;
}

/* ── Global editor toolbar (Forskoðun + Hjálp) ── */
.fees-editor-toolbar[b-cendyuaxfu] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.fees-editor-toolbar .fees-toolbar-link[b-cendyuaxfu] {
    margin-right: auto;
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.fees-editor-toolbar .fees-toolbar-link:hover[b-cendyuaxfu] {
    text-decoration: underline;
}

.fees-editor-toolbar button[b-cendyuaxfu] {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.fees-editor-toolbar button:first-child:hover[b-cendyuaxfu] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.fees-editor-toolbar button:last-child:hover[b-cendyuaxfu] {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

/* ── Preview mode banner ── */
.fees-preview-banner[b-cendyuaxfu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #92400e;
}

.fees-preview-banner button[b-cendyuaxfu] {
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    background: white;
    color: #92400e;
    cursor: pointer;
    transition: background 0.15s;
}

.fees-preview-banner button:hover[b-cendyuaxfu] {
    background: #fef3c7;
}

/* ── Help dialog content ── */
.fees-help-content[b-cendyuaxfu] {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #374151;
}

.fees-help-content h4[b-cendyuaxfu] {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fees-green-mid);
    margin: 1.1rem 0 0.35rem;
}

.fees-help-content h4:first-child[b-cendyuaxfu] {
    margin-top: 0;
}

.fees-help-content ol[b-cendyuaxfu],
.fees-help-content ul[b-cendyuaxfu] {
    padding-left: 1.4rem;
    margin: 0.25rem 0 0.5rem;
}

.fees-help-content li[b-cendyuaxfu] {
    margin-bottom: 0.3rem;
}

.fees-help-content p[b-cendyuaxfu] {
    margin: 0.25rem 0 0.5rem;
}

@media (max-width: 800px) {
    .card-grid[b-cendyuaxfu] {
        grid-template-columns: 1fr;
    }

    h2[b-cendyuaxfu] {
        font-size: 1.75rem;
    }

    .pricing-table th[b-cendyuaxfu],
    .pricing-table td[b-cendyuaxfu],
    .mini-table td[b-cendyuaxfu] {
        padding: 12px 14px;
        font-size: 0.9375rem;
    }

    .section-title-row[b-cendyuaxfu] {
        padding-left: 14px; /* match reduced cell padding on mobile */
    }

    .info-box[b-cendyuaxfu] {
        font-size: 1rem;
    }
}
