@import url('../assets/ux4g/css/style.css');

body {
    background-color: var(--lumo-surface-bg, #f4f5f7);
    font-size: 14px;
}

.page-wrapper {
    max-width: 1140px;
    margin: 1.5rem auto;
    padding: 0 1.25rem 1.5rem;
}

.main-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.main-card-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-card-header h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.01em;
}

.main-card-body {
    padding: 1.5rem;
}

.section-card {
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #ffffff;
}

.section-card:last-child {
    margin-bottom: 0;
}

.section-card-header {
    background: #f8f9fb;
    border-bottom: 1px solid #e4e7ec;
    padding: 0.6rem 1.15rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-card-body {
    padding: 1.25rem;
    background: #ffffff;
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #4b5563;
    margin-bottom: 0.35rem;
    display: block;
}

.req {
    color: #dc2626;
    margin-left: 2px;
}

.form-control,
.form-select {
    font-size: 0.84rem;
    height: 36px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 0.375rem 0.7rem;
    color: #1f2937;
    background-color: #f8f9fb;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
    outline: none;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.25rem;
}

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

.col-span-3 {
    grid-column: span 3;
}

@media (max-width: 768px) {
    .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .col-span-3 {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
}

.btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.bank-table-wrap,
.data-table-wrap {
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    overflow-x: auto;
    margin-top: 0;
}

.bank-table-wrap table,
.data-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.bank-table-wrap thead,
.data-table-wrap thead {
    background: #f8f9fb;
}

.bank-table-wrap th,
.data-table-wrap th {
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    border-bottom: 1px solid #e4e7ec;
}

.bank-table-wrap td,
.data-table-wrap td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f3f6;
    color: #1f2937;
    vertical-align: middle;
}

.bank-table-wrap tr:last-child td,
.data-table-wrap tr:last-child td {
    border-bottom: none;
}

.bank-table-wrap tbody tr:hover,
.data-table-wrap tbody tr:hover {
    background: #f8f9fb;
}

.field-error {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}