/* INEO Theme — Dark (default) + Light (via data-theme="light") */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
    color-scheme: dark;

    /* Background colors - Original INEO */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    --bg-tile: #18181b;
    --bg-tile-header: #1f1f23;
    --bg-hover: #1f1f23;

    /* Border colors */
    --border-color: #27272a;
    --border-light: #3f3f46;

    /* Semantic aliases used across components */
    --bg-subtle: var(--bg-card-hover);
    --border-subtle: var(--border-color);

    /* Text colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accent colors */
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    /* Calendar colors */
    --calendar-weekend: #1e3a5f;
    --calendar-today: #3b82f6;
    --calendar-vacation: #ef4444;
    --calendar-holiday: #22c55e;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border radius - Original INEO uses larger values */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Form input tokens — single source of truth for all form controls */
    --input-bg: var(--bg-primary);
    --input-border: 1px solid var(--border-color);
    --input-radius: var(--radius-sm);
    --input-height: 34px;
    --input-font-size: 0.8125rem;
    --input-line-height: 1.4;
    --input-padding: 6px 10px;
    --input-color: var(--text-primary);
    --input-placeholder: var(--text-muted);
    --input-disabled-opacity: 0.5;
    --input-hover-border: var(--text-muted);
    --input-focus-border: var(--accent-blue);
    --input-focus-shadow: 0 0 0 2px var(--accent-soft);
    --input-error-border: var(--accent-red);
    --input-error-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* ===== Light Mode — Cool Blue ===== */
:root[data-theme="light"] {
    color-scheme: light;

    /* Backgrounds */
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-tile: #ffffff;
    --bg-tile-header: #f8fafc;
    --bg-hover: #e8edf3;

    /* Borders */
    --border-color: #cbd5e1;
    --border-light: #94a3b8;

    /* Semantic aliases used across components */
    --bg-subtle: var(--bg-card-hover);
    --border-subtle: var(--border-color);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Accents — darkened one step for AA contrast on white */
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --accent-red: #dc2626;
    --accent-green: #15803d;
    --accent-orange: #c2410c;
    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;

    /* Calendar */
    --calendar-weekend: #dbeafe;
    --calendar-today: #2563eb;
    --calendar-vacation: #dc2626;
    --calendar-holiday: #15803d;

    /* Form input tokens — light mode overrides */
    --input-error-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);

    /* Shadows — lighter for light backgrounds */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 16px 40px rgba(15, 23, 42, 0.12);
}


/* Global reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
html, body {
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Link styles */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue-hover);
}

/* Headings - Poppins font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Button styles */
.btn-dark {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-dark:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-primary-dark {
    background-color: var(--accent-blue);
    border: none;
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-primary-dark:hover {
    background-color: var(--accent-blue-hover);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Card animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-blue); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--accent-orange); }
.text-danger { color: var(--accent-red); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* ===== Logo theming — dark logos made white via CSS filter in dark mode ===== */
.logo-svg {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
:root[data-theme="light"] .logo-svg {
    filter: none;
    opacity: 1;
}
:root[data-theme="light"] .sidebar-logo {
    filter: none;
    opacity: 1;
}

/* ===== Light mode — decorative elements ===== */
:root[data-theme="light"] .noise {
    opacity: 0.015;
}

:root[data-theme="light"] .gradient-orb {
    opacity: 0.08;
}

:root[data-theme="light"] .orb-1 {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

:root[data-theme="light"] .orb-2 {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

/* ===== Light mode — scrollbar ===== */
:root[data-theme="light"] ::-webkit-scrollbar-track {
    background: #e2e8f0;
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #94a3b8;
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== Global form input styles ===== */
.neox-input {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-family: inherit;
    line-height: 1.4;
    min-height: 34px;
    transition: border-color var(--transition-fast);
    outline: none;
    box-sizing: border-box;
}
.neox-input:hover:not(:disabled) {
    border-color: var(--text-muted);
}
.neox-input:focus {
    border-color: var(--accent-blue);
}
.neox-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.neox-input::placeholder {
    color: var(--text-muted);
}
/* Hide number input spinners */
.neox-input[type="number"]::-webkit-inner-spin-button,
.neox-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.neox-input[type="number"] {
    -moz-appearance: textfield;
}

.neox-textarea {
    min-height: 80px;
    resize: vertical;
}

.neox-checkbox {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===== Checkbox label wrapper (for inline checkboxes with text) ===== */
.neox-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 400;
}

.neox-checkbox-label:hover {
    color: var(--text-primary);
}

/* ===== Form help text (descriptive text below form sections) ===== */
.neox-form-help {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
}

/* ===== Badge utility classes (used across pages) ===== */
.neox-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.neox-badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}
.neox-badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}
.neox-badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}
.neox-badge-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}
.neox-badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}
.neox-badge-grey {
    background: rgba(148, 148, 148, 0.15);
    color: var(--text-muted);
}
.neox-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}
.neox-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}
.neox-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange, #f59e0b);
}

/* ===== Required field asterisk ===== */
.neox-field-label .req {
    color: var(--accent-red);
    margin-left: 1px;
}

/* ===== NeoxScanPreview — scan/attachment preview component ===== */
.neox-scan-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.neox-scan-preview-header {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    font-size: 12px;
    background: var(--bg-subtle, #f7f7f9);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.neox-scan-preview-name {
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neox-scan-preview-frame {
    flex: 1;
    width: 100%;
    border: 0;
}

.neox-scan-preview-placeholder,
.neox-scan-preview-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #6b7280);
}

/* ===== .neox-link — styled link (used in component headers and inline) ===== */
.neox-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
    font-size: 12px;
}

.neox-link:hover {
    color: var(--accent-blue-hover);
}

/* ===== Text color utilities ===== */
.neox-text-red {
    color: var(--accent-red, #ef4444);
}
.neox-text-green {
    color: var(--accent-green, #22c55e);
}
.neox-text-orange {
    color: var(--accent-orange, #f59e0b);
}

/* ===== Button group — inline row of buttons ===== */
.neox-btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ===== Generic form row + field layout (used outside dialogs) ===== */
.neox-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.neox-form-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

.neox-form-field-narrow {
    flex: 0 0 110px;
    min-width: 80px;
}

.neox-form-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary, #a6adc8);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Field-level validation error (standalone, outside dialogs) ===== */
.neox-field-error {
    color: var(--accent-red, #ef4444);
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.3;
}

/* ===== NeoxDecreePanel — inline decree grid + form ===== */
.neox-decree-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.neox-decree-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 12px;
    background: var(--bg-subtle, #f7f7f9);
    border: 1px solid var(--border, #e5e7eb);
    border-bottom: none;
    border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
    gap: 8px;
}

.neox-decree-form {
    padding: 10px 8px;
    background: var(--bg-card, #18181b);
    border: 1px solid var(--border-color, #27272a);
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neox-decree-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== NeoxPurchaseScansDialog — scan picker layout ===== */
.neox-scans-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.neox-scans-body { display: grid; grid-template-columns: 360px 1fr; gap: 12px; min-height: 480px; }
.neox-scans-list { overflow-y: auto; border: 1px solid var(--border, #e5e7eb); border-radius: 4px; }
.neox-scan-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; cursor: pointer; border-bottom: 1px solid var(--border-subtle, #f0f0f0); }
.neox-scan-row:hover { background: var(--bg-subtle, #f7f7f9); }
.neox-scan-row-selected { background: var(--accent-blue-subtle, #dbeafe); font-weight: 600; }
.neox-scans-preview { border: 1px solid var(--border, #e5e7eb); border-radius: 4px; overflow: hidden; display: flex; }
.neox-scans-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ===== NeoxPurchaseDocEditDialog — form layout helpers ===== */

/* 4-column form row */
.neox-form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: end;
}

/* 3-column form row (wide first column) */
.neox-form-row-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

/* Wide field that spans more space inside a flex form-row */
.neox-form-field-wide {
    flex: 2;
    min-width: 200px;
}

/* Small input — for use inside table cells */
.neox-input-sm {
    padding: 4px 6px;
    min-height: 28px;
    font-size: 0.75rem;
}

/* Section with header bar (title + action button) */
.neox-form-section {
    margin-top: 16px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
}

.neox-form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--bg-subtle, #f7f7f9);
    border-bottom: 1px solid var(--border, #e5e7eb);
    font-size: 12px;
    font-weight: 600;
}

/* Generic data table used inside dialogs and panels */
.neox-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.neox-table th,
.neox-table td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--border-subtle, #f0f0f0);
    text-align: left;
    vertical-align: middle;
}

.neox-table thead th {
    background: var(--bg-subtle, #f7f7f9);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary, #a6adc8);
}

.neox-table tbody tr:last-child td {
    border-bottom: none;
}

.neox-table tbody tr:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.03));
}

/* Print styles - global */
@media print {
    .neox-sidebar,
    .neox-topbar,
    .no-print {
        display: none !important;
    }

    .neox-main {
        margin-left: 0 !important;
    }

    .neox-content {
        padding: 0 !important;
    }

    body {
        background-color: #fff;
        color: #000;
    }
}

/* === Split-two layout (purchases detail panel — deprecated, kept for backward compat) === */
.neox-split-two { display: grid; grid-template-columns: 2fr 3fr; gap: 12px; height: 100%; overflow: hidden; }
.neox-split-two-left, .neox-split-two-right { min-width: 0; overflow: auto; }
.neox-form-row-tight { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; font-size: 12px; }
.neox-filter-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }

/* === Purchase detail: left/right panels with vertical grip === */
.pd-split-container {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 0;
}
.pd-split-left, .pd-split-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
    min-height: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    overflow: hidden;
}
.pd-split-left { flex: 2; }
.pd-split-right { flex: 3; }
.pd-panel-header {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.pd-panel-header > :first-child { flex: 1; min-width: 0; }
.pd-panel-header .neox-dialog-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}
.pd-panel-header .neox-dialog-close:hover { color: var(--text-primary); }
.pd-panel-body {
    flex: 1;
    overflow: auto;
    min-height: 0;
    padding: 12px;
}

/* Action bar in detail panel (matches /hr/cars pattern) */
.tab-action-bar {
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Grid panel body — no padding so the grid fills the full area flush */
.pd-panel-body.pd-panel-body-grid { padding: 0; }

/* Small inline spinner used next to loading text */
.neox-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: neox-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes neox-spin {
    to { transform: rotate(360deg); }
}

/* Two-column form row helper (for dialogs) */
.neox-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Horizontal grip — separates master grid from detail panel below */
.split-grip {
    height: 9px;
    cursor: ns-resize;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}
.split-grip::after {
    content: '';
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.15s, width 0.15s;
}
.split-grip:hover::after,
.split-grip.active::after {
    opacity: 1;
    width: 64px;
}

/* Vertical grip matching settlement page */
.split-grip-vertical {
    width: 9px;
    cursor: ew-resize;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-grip-vertical::after {
    content: '';
    width: 3px;
    height: 48px;
    border-radius: 2px;
    background: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.15s, height 0.15s;
}
.split-grip-vertical:hover::after,
.split-grip-vertical.active::after {
    opacity: 1;
    height: 64px;
}

/* Side info grid — label/value rows (pattern borrowed from employee detail) */
.side-info-grid { display: flex; flex-direction: column; gap: 6px; }
.side-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
}
.side-info-row:last-child { border-bottom: none; }
.side-info-label { color: var(--text-muted); white-space: nowrap; }
.side-info-value { color: var(--text-primary); text-align: right; }

/* Status cell in purchases grid — badge + text label side by side */
.neox-status-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.neox-status-label { font-size: 12px; }

/* Decree amount cell with indicator icon */
.neox-decree-cell { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; width: 100%; }
.neox-icon { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }

/* Purchase doc edit dialog — consistent spacing + required-mark */
.neox-dialog-form { display: flex; flex-direction: column; gap: 12px; }
.neox-dialog-form .neox-form-row { margin: 0; }
.neox-form-label .req, .neox-form-section-header .req { color: var(--accent-red); margin-left: 2px; }
.neox-table-editable tbody td { padding: 4px 6px; }
.neox-table-editable .neox-input-sm { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border-color); }
.neox-table-empty { text-align: center; padding: 16px; color: var(--text-muted); font-style: italic; }
.neox-table tfoot td { background: var(--bg-subtle); border-top: 1px solid var(--border-color); padding: 6px 8px; }
