.quota-page { margin: 20px; }
.quota-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.quota-panel.layui-panel { padding: 16px; box-shadow: none; }
.quota-panel form { display: grid; gap: 14px; }
.quota-field {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    min-width: 0;
}
.quota-field-label {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid #eee;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    background: #fafafa;
}
.quota-field .layui-input {
    width: 100%;
    min-width: 0;
    border-radius: 0 2px 2px 0;
}
.quota-field .layui-input:focus-visible { outline: 2px solid #007f72; outline-offset: -2px; }
.quota-dates { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.quota-dates .quota-field { flex: 0 1 250px; }
.quota-totals, .quota-actions, .quota-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.quota-totals > span {
    box-sizing: border-box;
    min-width: 120px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #eee;
    border-radius: 2px;
    background: #fafafa;
    overflow-wrap: anywhere;
}
.quota-totals strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.quota-actions p { color: #555; }
.quota-details { margin-top: 16px; border: 1px solid #eee; border-radius: 2px; }
.quota-table { overflow-x: auto; }
.quota-table .layui-table { min-width: 580px; margin: 0; table-layout: fixed; }
.quota-table th, .quota-table td { border-color: #eee; overflow-wrap: anywhere; }
.quota-table th:nth-child(1) { width: 18%; }
.quota-table th:nth-child(2) { width: 17%; }
.quota-table th:nth-child(3) { width: 23%; }
.quota-table th:nth-child(6) { width: 18%; }
.quota-table th:first-child, .quota-table td:first-child { border-left: 0; }
.quota-table th:last-child, .quota-table td:last-child { border-right: 0; }
.quota-table th { border-top: 0; background: #f8f8f8; }
.quota-table td { font-variant-numeric: tabular-nums; }
.quota-detail-status { padding: 18px 12px; color: #666; text-align: center; }
.quota-detail-status:empty { display: none; }
.quota-pagination { padding: 8px 12px; }
.quota-pagination[hidden] { display: none; }
.quota-pagination .layui-btn { height: 32px; padding: 0 12px; font-size: 13px; line-height: 30px; }
.quota-pagination .layui-btn + .layui-btn { margin-left: 0; }
.quota-pagination button:disabled { color: #666; cursor: default; background: #f5f5f5; }
.quota-pagination select { height: 32px; margin-left: 6px; padding: 0 6px; border: 1px solid #ddd; border-radius: 2px; }

@media (max-width: 560px) {
    .quota-page { margin: 12px; }
    .quota-panel.layui-panel { padding: 12px; }
    .quota-dates .quota-field { flex: 1 1 230px; }
}
