.daybook-frontend,
.daybook-balance-cards {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
}

.daybook-frontend {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    overflow: hidden;
}

.daybook-no-access {
    padding: 12px 14px;
    color: #991b1b;
    background: #fef2f2;
}

.daybook-frontend-filters {
    margin-bottom: 12px;
}

.daybook-frontend-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 10px;
}

.daybook-frontend-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.daybook-frontend-field select,
.daybook-frontend-field input {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 34px;
    background: #fff;
    color: #0f172a;
    box-sizing: border-box;
}

.daybook-frontend-field select {
    padding: 4px 8px;
    line-height: normal;
    text-align: left;
}

.daybook-frontend-actions,
.daybook-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
}

.daybook-pagination {
    justify-content: center;
}

.daybook-frontend-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}

.daybook-frontend-button-primary,
.daybook-frontend-button.is-current {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.daybook-page-gap,
.daybook-page-info,
.daybook-pagination-info,
.daybook-frontend-empty {
    color: #64748b;
    font-size: 13px;
}

.daybook-pagination-info,
.daybook-frontend-empty {
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.daybook-page-info {
    width: 100%;
    text-align: center;
    margin-top: 6px;
}

.daybook-scrollable-wrapper {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.daybook-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.daybook-frontend-table th {
    text-align: left;
    padding: 8px 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.daybook-frontend-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.daybook-frontend-table tr:hover td {
    background: #f8fafc;
}

.daybook-frontend-table .is-amount {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.daybook-frontend-table .is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.daybook-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.daybook-type-badge.is-receipt {
    background: #dcfce7;
    color: #166534;
}

.daybook-type-badge.is-payment {
    background: #fee2e2;
    color: #991b1b;
}

.daybook-type-badge.is-other {
    background: #e0f2fe;
    color: #075985;
}

.daybook-balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.dbc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 3px;
    border-radius: 10px;
    padding: 12px;
}

.dbc-cash { border-left-color: #059669; }
.dbc-bank { border-left-color: #0284c7; }
.dbc-total {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.dbc-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.dbc-total .dbc-title { color: #cbd5e1; }

.dbc-amount {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dbc-cash .dbc-amount { color: #047857; }
.dbc-bank .dbc-amount { color: #0369a1; }
.dbc-total .dbc-amount { color: #fff; }
