.field select {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #cdd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    outline: 0;
}
.field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #2563eb18;
}
.expense-lines-card {
    border-color: #dbeafe;
}
.grid-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.grid-title h2 {
    margin: 0 0 4px;
}
.grid-title p {
    margin: 0;
    color: #6f7b91;
    font-size: 13px;
}
.line-count {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}
.expense-lines-table {
    border: 1px solid #d7e0ec;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}
.expense-lines-table th,
.expense-lines-table td {
    border-right: 1px solid #dfe6ef;
    border-bottom: 1px solid #dfe6ef;
}
.expense-lines-table th:last-child,
.expense-lines-table td:last-child {
    border-right: 0;
}
.expense-lines-table tbody tr:last-child td {
    border-bottom: 0;
}
.expense-lines-table thead th {
    background: #f8fbff;
}
.expense-lines-table thead th:last-child {
    padding-left: 20px;
}
.expense-lines-table tfoot {
    background: #eff6ff;
}
.expense-lines-table tfoot th {
    padding: 14px 12px;
    color: #1e3a8a;
    font-size: 14px;
}
.amount-cell {
    font-weight: 700;
    color: #172033;
}
.action-cell {
    text-align: right;
}
.grid-actions {
    white-space: nowrap;
    text-align: right;
}
.grid-edit,
.grid-delete {
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 5px;
    cursor: pointer;
}
.grid-edit {
    background: #dbeafe;
    color: #1d4ed8;
}
.grid-delete {
    background: #fee2e2;
    color: #b91c1c;
}
.grid-edit:hover {
    background: #bfdbfe;
}
.grid-delete:hover {
    background: #fecaca;
}
.grid-empty td {
    text-align: center !important;
    padding: 24px !important;
    color: #6f7b91;
    font-style: italic;
}
@media (max-width: 700px) {
    .grid-title {
        gap: 10px;
    }
    .expense-lines-table {
        border: 0;
        border-radius: 0;
    }
    .expense-lines-table th,
    .expense-lines-table td {
        border: 0;
    }
    .grid-actions {
        display: flex;
        justify-content: flex-end;
    }
    .grid-actions:before {
        content: "" !important;
    }
    .grid-edit,
    .grid-delete {
        margin-left: 4px;
    }
    .expense-lines-table tfoot {
        display: table-row-group;
    }
    .expense-lines-table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 12px;
    }
    .expense-lines-table tfoot th {
        padding: 0;
    }
}
.list-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.inline-form {
    display: inline-flex;
    margin: 0;
}
.list-add-more,
.list-delete {
    border: 0;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}
.list-add-more {
    background: #e0ecff;
    color: #1769e0;
}
.list-add-more:hover {
    background: #cfe1ff;
}
.list-delete {
    background: #fde6e7;
    color: #dc2626;
}
.list-delete:hover {
    background: #fbd4d6;
}
.expense-lines-table .grid-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.expense-lines-table .grid-edit,
.expense-lines-table .grid-delete {
    margin: 0;
    border: 0;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}
.expense-lines-table .grid-edit {
    background: #e0ecff;
    color: #1769e0;
}
.expense-lines-table .grid-delete {
    background: #fde6e7;
    color: #dc2626;
}
.expense-lines-table .grid-edit:hover {
    background: #cfe1ff;
}
.expense-lines-table .grid-delete:hover {
    background: #fbd4d6;
}
