/*
 * ERP Zarya35 CSS entry point.
 *
 * Правило:
 * 1. Новые стили пишем только в модульные файлы.
 * 2. Старый legacy stylesheet временно остаётся как legacy.
 * 3. Постепенно переносим блоки из legacy stylesheet в модули.
 */

/* Base */
@import url("./base/variables.1b23ca54d562.css");
@import url("./base/reset.d2a958368db2.css");
@import url("./base/typography.a0158f44ae72.css");
@import url("./base/animations.61ffe15750a7.css");

/* Layout */
@import url("./layout/shell.af9d9b625136.css");
@import url("./layout/sidebar.0c2ad0ec5345.css");
@import url("./layout/topbar.29feec6ca809.css");

/* Components */
@import url("./components/buttons.c5e69de03989.css");
@import url("./components/page-headers.d2d460d11393.css");
@import url("./components/forms.ef17ee46e9ec.css");
@import url("./components/tables.ddccca6b28d3.css");
@import url("./components/cards.b5d033a11c3f.css");
@import url("./components/badges.f963df6ca99f.css");
@import url("./components/filters.64f754588cba.css");
@import url("./components/pagination.02baaa1ef24e.css");
@import url("./components/modals.d41d8cd98f00.css");
@import url("./components/alerts.a48941f2e3ca.css");

/* Pages */
@import url("./pages/dashboard.43777b77d230.css");
@import url("./pages/invoice-list.da08ac6b2002.css");
@import url("./pages/invoice-detail.e07dd7e46b22.css");
@import url("./pages/payment-schedule.b03940a13946.css");
@import url("./pages/payment-registry.b466cb2157f8.css");
@import url("./pages/counterparties.e442d8ac1eeb.css");
@import url("./pages/profile.9cb0c6f3910a.css");
@import url("./pages/system.1facc7253d17.css");
@import url("./pages/audit.fa4c0e4178ed.css");

/* Features */
@import url("./features/partial-payments.6d2a51c097f7.css");
@import url("./features/ocr.d5f9b327d1ac.css");
@import url("./features/users-roles.2db8849ac854.css");
@import url("./features/legacy-migration.938dc2b5b13d.css");
@import url("./features/table-clean-baseline.78b6d2b84a3a.css");
@import url("./features/ui-polish-actions.0cec4e7fd192.css");
@import url("./features/ui-polish-badges.c844207490de.css");
@import url("./features/ui-polish-filters.e7e119d620a0.css");

/*
 * Legacy CSS.
 * Временно оставляем последним, чтобы ничего визуально не сломать.
 */
/* Legacy legacy stylesheet disabled during full CSS cleanup */
/* /* Legacy legacy stylesheet retired. Import removed intentionally. */ */
@import url("./features/sidebar-fixed-left.bfe2b4b2d853.css");

/* Counterparty search on invoice assign page */
.counterparty-search-form {
    display: grid;
    gap: 14px;
}

.counterparty-search-hint {
    margin-top: 14px;
}

.counterparty-result-form {
    margin-top: 18px;
}

.counterparty-search-results {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.counterparty-search-result {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.counterparty-search-result:hover {
    border-color: #27ae60;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.counterparty-search-result input {
    margin-top: 4px;
}

.counterparty-search-result-body {
    display: grid;
    gap: 5px;
}

.empty-state {
    margin-top: 18px;
    padding: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
}

/* Invoice bot report detail v1 */

.invoice-bot-report-table-v1 th:nth-child(7),
.invoice-bot-report-table-v1 td:nth-child(7) {
    min-width: 320px;
    text-align: left;
}

.invoice-bot-report-table-v1 th:nth-child(8),
.invoice-bot-report-table-v1 td:nth-child(8) {
    width: 160px;
}

.invoice-bot-report-reasons-v1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.invoice-bot-report-reason-v1 {
    display: block;
    max-width: 420px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.invoice-bot-report-reason-error-v1 {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.invoice-bot-report-reason-warning-v1 {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.invoice-bot-report-reason-ok-v1 {
    color: #bbf7d0;
    background: rgba(20, 83, 45, 0.35);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.invoice-bot-report-table-v1 .table-actions {
    min-width: 150px;
}

/* Invoice bot report quick date v1 */

.invoice-bot-report-date-form-v1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 170px;
}

.invoice-bot-report-date-form-v1 input[type="date"] {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
}

.invoice-bot-report-date-form-v1 .btn {
    width: 100%;
}

/* Invoice bot report quick amount v1 */

.invoice-bot-report-confirm-form-v1 {
    margin: 0;
    width: 100%;
}

.invoice-bot-report-confirm-form-v1 .btn {
    width: 100%;
}

/* Invoice bot report OCR retry v1 */

.invoice-bot-report-ocr-retry-form-v1 {
    margin: 0;
    width: 100%;
}

.invoice-bot-report-ocr-retry-form-v1 .btn {
    width: 100%;
}

/* Invoice bot report OCR retry v1 */

.invoice-bot-report-ocr-retry-form-v1 {
    margin: 0;
    width: 100%;
}

.invoice-bot-report-ocr-retry-form-v1 .btn {
    width: 100%;
}
