/* ═══════════════════════════════════════════════════════════
   ERP فروشگاه — پنل مدیریت عرقیات
   طراحی مدرن، رنگارنگ، کارتی — هماهنگ با ERP اصلی
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

.erp-shop-body {
    margin: 0;
    font-family: 'Vazirmatn', 'IRANSans', system-ui, sans-serif;
    background: #f0f4f8;
    direction: rtl;
    min-height: 100vh;
    color: #1e293b;
}

/* ── Header ──────────────────────────────────────────────── */
.erp-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f4c81 60%, #1d4ed8 100%);
    color: #fff;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.erp-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.erp-header__logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    backdrop-filter: blur(4px);
}

.erp-header__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.erp-header__subtitle {
    font-size: 0.7rem;
    opacity: 0.65;
}

.erp-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.erp-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.erp-header__btn:hover,
.erp-header__btn:focus {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}
.erp-header__btn--accent {
    background: #2563eb;
    border-color: #2563eb;
}
.erp-header__btn--accent:hover { background: #1d4ed8; }

.erp-header__user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    opacity: 0.85;
}
.erp-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ── Layout ──────────────────────────────────────────────── */
.erp-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.erp-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    box-shadow: -2px 0 12px rgba(0,0,0,.04);
}

.erp-sidebar__group-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: #94a3b8;
    padding: 12px 20px 4px;
    text-transform: uppercase;
}

.erp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    border-radius: 0;
    transition: background .12s, color .12s;
    position: relative;
    border: none;
    background: none;
    font-family: inherit;
    width: 100%;
    text-align: right;
}
.erp-nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.erp-nav-item--active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.erp-nav-item--active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #2563eb;
    border-radius: 0 3px 3px 0;
}

.erp-nav-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: #f1f5f9;
}
.erp-nav-item--active .erp-nav-item__icon {
    background: #dbeafe;
}

.erp-nav-badge {
    margin-right: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.erp-nav-badge--blue { background: #3b82f6; }
.erp-nav-badge--green { background: #22c55e; }
.erp-nav-badge--amber { background: #f59e0b; }

/* ── Main content ────────────────────────────────────────── */
.erp-main {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    overflow-y: auto;
}

.erp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.erp-page-header h2 {
    margin: 0 0 2px;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
}
.erp-page-header p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}
.erp-page-header__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Stat cards ──────────────────────────────────────────── */
.erp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.erp-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid #f1f5f9;
    transition: transform .15s, box-shadow .15s;
}
.erp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.erp-stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.erp-stat-card__icon--blue   { background: #dbeafe; }
.erp-stat-card__icon--green  { background: #dcfce7; }
.erp-stat-card__icon--purple { background: #ede9fe; }
.erp-stat-card__icon--amber  { background: #fef3c7; }
.erp-stat-card__icon--rose   { background: #ffe4e6; }
.erp-stat-card__icon--teal   { background: #ccfbf1; }

.erp-stat-card__label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}
.erp-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.erp-stat-card__sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Section card ────────────────────────────────────────── */
.erp-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.erp-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
    flex-wrap: wrap;
}
.erp-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}
.erp-card__title-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
.erp-card__subtitle {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 400;
    margin-right: 38px;
    margin-top: -10px;
    padding-bottom: 4px;
    display: block;
}
.erp-card__body { padding: 0; }
.erp-card__footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.78rem;
    color: #64748b;
}

/* ── Buttons ─────────────────────────────────────────────── */
.erp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: background .12s, border-color .12s, transform .1s, box-shadow .12s;
    text-decoration: none;
}
.erp-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.erp-btn:active { transform: scale(0.98); }

.erp-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.erp-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

.erp-btn--success {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.erp-btn--success:hover { background: #15803d; color: #fff; }

.erp-btn--sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 7px;
}
.erp-btn--xs {
    padding: 4px 9px;
    font-size: 0.7rem;
    border-radius: 6px;
}
.erp-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: #2563eb;
}
.erp-btn--ghost:hover { background: #eff6ff; border-color: #bfdbfe; }

.erp-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Badge / Pill ────────────────────────────────────────── */
.erp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.erp-badge--green  { background: #dcfce7; color: #15803d; }
.erp-badge--blue   { background: #dbeafe; color: #1d4ed8; }
.erp-badge--amber  { background: #fef3c7; color: #92400e; }
.erp-badge--red    { background: #fee2e2; color: #991b1b; }
.erp-badge--purple { background: #ede9fe; color: #6d28d9; }
.erp-badge--gray   { background: #f1f5f9; color: #475569; }
.erp-badge--teal   { background: #ccfbf1; color: #0f766e; }
.erp-badge--orange { background: #ffedd5; color: #c2410c; }

/* ── Table ───────────────────────────────────────────────── */
.erp-table-wrap {
    overflow-x: auto;
}
.erp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.erp-table th {
    padding: 11px 16px;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
}
.erp-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.erp-table tbody tr:last-child td { border-bottom: none; }
.erp-table tbody tr:hover td { background: #f8fafc; }
.erp-table--clickable tbody tr { cursor: pointer; }
.erp-table__empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px !important;
    font-size: 0.85rem;
}

/* ── Form ────────────────────────────────────────────────── */
.erp-form {
    padding: 20px;
}
.erp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.erp-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.erp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.erp-field--full { grid-column: 1 / -1; }

.erp-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}

.erp-input,
.erp-select,
.erp-textarea {
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.83rem;
    background: #fff;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    width: 100%;
}
.erp-input:focus,
.erp-select:focus,
.erp-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,.15);
}

.erp-form__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.erp-msg {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
}
.erp-msg--ok { background: #dcfce7; color: #15803d; }
.erp-msg--err { background: #fee2e2; color: #991b1b; }

/* ── Inline track input in table ─────────────────────────── */
.erp-track-input {
    padding: 5px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.75rem;
    direction: ltr;
    width: 140px;
    outline: none;
    transition: border-color .12s;
}
.erp-track-input:focus { border-color: #60a5fa; }

/* ── Pipeline steps (shipping status) ───────────────────── */
.erp-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.erp-pipeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    position: relative;
    flex: 1;
}
.erp-pipeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.erp-pipeline__step--done::after { background: #22c55e; }

.erp-pipeline__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    transition: border-color .2s, background .2s;
}
.erp-pipeline__step--done .erp-pipeline__dot {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.erp-pipeline__step--active .erp-pipeline__dot {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.erp-pipeline__label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}
.erp-pipeline__step--active .erp-pipeline__label { color: #1d4ed8; }
.erp-pipeline__step--done .erp-pipeline__label   { color: #15803d; }

/* ── CRM lead card ───────────────────────────────────────── */
.erp-lead-row {
    cursor: pointer;
    transition: background .1s;
}
.erp-lead-row--active td { background: #eff6ff !important; }

.erp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.erp-avatar--blue   { background: #dbeafe; color: #1d4ed8; }
.erp-avatar--green  { background: #dcfce7; color: #15803d; }
.erp-avatar--purple { background: #ede9fe; color: #6d28d9; }
.erp-avatar--amber  { background: #fef3c7; color: #92400e; }

/* ── Detail side panel ───────────────────────────────────── */
.erp-detail {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.erp-detail__head {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e293b, #1d4ed8);
    color: #fff;
}
.erp-detail__head h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.erp-detail__head p  { margin: 0; font-size: 0.72rem; opacity: .7; }
.erp-detail__body { padding: 16px 20px; }

.erp-dl {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.erp-dl__row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    font-size: 0.8rem;
    align-items: start;
}
.erp-dl__label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.72rem;
    padding-top: 1px;
}
.erp-dl__value { color: #1e293b; }

.erp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}
.erp-timeline li {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-right: 3px solid #3b82f6;
    font-size: 0.78rem;
}
.erp-timeline li strong { display: block; margin-bottom: 3px; color: #0f172a; }
.erp-timeline li p { margin: 0; color: #475569; line-height: 1.5; }
.erp-timeline__date { font-size: 0.65rem; color: #94a3b8; margin-bottom: 3px; display: block; }
.erp-timeline__empty { text-align: center; color: #94a3b8; padding: 20px; font-size: 0.8rem; }

.erp-detail__empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
}
.erp-detail__empty-icon { font-size: 2rem; margin-bottom: 10px; display: block; }

/* ── CRM+Detail split ────────────────────────────────────── */
.erp-split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
.erp-split__side { position: sticky; top: 88px; }

/* ── Dashboard welcome banner ────────────────────────────── */
.erp-welcome {
    background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    position: relative;
}
.erp-welcome::before {
    content: '🏪';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    opacity: 0.08;
}
.erp-welcome h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.erp-welcome p  { margin: 0; opacity: .75; font-size: 0.85rem; line-height: 1.6; }
.erp-welcome__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Flow arrows banner ──────────────────────────────────── */
.erp-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.erp-flow__step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}
.erp-flow__step--blue   { background: #dbeafe; color: #1d4ed8; }
.erp-flow__step--green  { background: #dcfce7; color: #15803d; }
.erp-flow__step--purple { background: #ede9fe; color: #6d28d9; }
.erp-flow__step--amber  { background: #fef3c7; color: #92400e; }
.erp-flow__step--teal   { background: #ccfbf1; color: #0f766e; }
.erp-flow__arrow { color: #94a3b8; font-size: 0.8rem; }

/* ── Checkbox toggle ─────────────────────────────────────── */
.erp-toggle-list { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.erp-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: #374151;
    cursor: pointer;
}
.erp-toggle input[type="checkbox"] { accent-color: #2563eb; width: 15px; height: 15px; cursor: pointer; }

/* ── Loading ─────────────────────────────────────────────── */
.erp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    gap: 16px;
    color: #64748b;
}
.erp-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: erp-spin .7s linear infinite;
}
@keyframes erp-spin { to { transform: rotate(360deg); } }
.erp-loading p { margin: 0; font-size: 0.875rem; }

/* ── Login page ──────────────────────────────────────────── */
.erp-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
}
.erp-login-box {
    width: 380px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.erp-login-box__head {
    background: linear-gradient(135deg, #1e293b, #1d4ed8);
    padding: 32px 28px;
    text-align: center;
    color: #fff;
}
.erp-login-box__logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.erp-login-box__head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }
.erp-login-box__head p  { margin: 0; font-size: 0.78rem; opacity: .7; }
.erp-login-box__body { padding: 28px; }
.erp-login-box__form { display: flex; flex-direction: column; gap: 14px; }
.erp-login-box__links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.78rem;
    color: #64748b;
}
.erp-login-box__links a { color: #2563eb; text-decoration: none; }
.erp-login-box__links a:hover { text-decoration: underline; }
.erp-login-hint {
    background: #f1f5f9;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 0.75rem;
    color: #475569;
    font-family: monospace;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .erp-sidebar { width: 200px; }
    .erp-split { grid-template-columns: 1fr; }
    .erp-split__side { position: static; }
}
@media (max-width: 768px) {
    .erp-layout { flex-direction: column; }
    .erp-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 8px 0; border-left: none; border-bottom: 1px solid #e2e8f0; }
    .erp-sidebar__group-label { display: none; }
    .erp-nav-item { padding: 8px 14px; }
    .erp-main { padding: 16px; }
    .erp-stat-grid { grid-template-columns: 1fr 1fr; }
    .erp-form-grid { grid-template-columns: 1fr; }
    .erp-form-grid--3 { grid-template-columns: 1fr; }
    .erp-welcome { flex-direction: column; }
    .erp-pipeline { gap: 0; }
}

/* ── Finance graph ───────────────────────────────────── */
.erp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .erp-grid-2 { grid-template-columns: 1fr; } }

.erp-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 28px 20px; }
.erp-flow__node { background: #f8fafc; border-radius: 14px; padding: 16px 24px; text-align: center; min-width: 140px; border: 2px solid #e2e8f0; }
.erp-flow__node--in { border-color: #3b82f6; background: #eff6ff; }
.erp-flow__node--out { border-color: #f59e0b; background: #fffbeb; }
.erp-flow__node--profit.erp-flow__node--green { border-color: #10b981; background: #ecfdf5; }
.erp-flow__node--profit.erp-flow__node--red { border-color: #ef4444; background: #fef2f2; }
.erp-flow__node span { display: block; font-size: 12px; color: #64748b; }
.erp-flow__node strong { display: block; font-size: 1.1rem; margin-top: 4px; }
.erp-flow__node small { font-size: 11px; color: #94a3b8; }
.erp-flow__arrow { font-size: 1.5rem; color: #94a3b8; }
.erp-flow__split { display: flex; flex-direction: column; gap: 10px; }

.erp-cat-bar { display: grid; grid-template-columns: 120px 1fr 90px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.erp-cat-bar__track { height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.erp-cat-bar__fill { height: 100%; border-radius: 99px; transition: width .4s; }
.erp-cat-bar__amt { text-align: left; font-weight: 600; font-size: 12px; }

.erp-month-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; min-height: 140px; padding: 16px 8px; }
.erp-month-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.erp-month-bars { display: flex; align-items: flex-end; gap: 4px; height: 100px; }
.erp-month-bar { width: 14px; border-radius: 4px 4px 0 0; min-height: 4px; }
.erp-month-bar--rev { background: #3b82f6; }
.erp-month-bar--exp { background: #f59e0b; }
.erp-month-col span { font-size: 10px; color: #64748b; text-align: center; }

.erp-inline-form { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; align-items: center; }
.erp-inline-form input, .erp-inline-form select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 13px; }
.erp-inline-form input[name="title"] { min-width: 160px; }
.erp-inline-form input[name="amount"] { width: 120px; }
