/* Odoo-Style Enterprise ERP High-Density CSS Theme */
:root {
    --erp-bg: #f8fafc;
    --erp-navbar-bg: #ffffff;
    --erp-border: #e2e8f0;
    --erp-text-main: #1e293b;
    --erp-text-muted: #64748b;
    --erp-primary: #2563eb;
    --erp-primary-hover: #1d4ed8;
    --erp-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--erp-bg);
    color: var(--erp-text-main);
    font-family: var(--erp-font-family);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Top Navbar */
.erp-navbar {
    background-color: var(--erp-navbar-bg);
    border-bottom: 1px solid var(--erp-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 0 1.5rem;
    height: 54px;
}

.erp-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.erp-brand:hover {
    color: #1d4ed8;
}

.erp-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    padding: 1rem 0.85rem;
    text-decoration: none;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease-in-out;
}

.erp-nav-link:hover {
    color: var(--erp-primary);
}

.erp-nav-link.active {
    color: var(--erp-primary);
    border-bottom-color: var(--erp-primary);
}

/* Subheader */
.erp-page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--erp-border);
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
}

.erp-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.erp-page-subtitle {
    font-size: 0.875rem;
    color: var(--erp-text-muted);
    margin-top: 0.25rem;
}

/* Section Headings */
.erp-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Module Feature Cards */
.erp-card {
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.erp-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    color: inherit;
}

.erp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.erp-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
}

/* Icon Badges */
.icon-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-badge-teal {
    background-color: #e6f4f1;
    color: #0d9488;
}

.icon-badge-green {
    background-color: #dcfce7;
    color: #16a34a;
}

.icon-badge-blue {
    background-color: #dbeafe;
    color: #2563eb;
}

.icon-badge-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.icon-badge-yellow {
    background-color: #fef9c3;
    color: #ca8a04;
}

.icon-badge-purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

/* KPI Summary Cards */
.kpi-card {
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 10px;
    padding: 1rem;
}

.kpi-card-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.kpi-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0.2rem 0;
}

.kpi-submetrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.kpi-submetric-item span {
    display: block;
}

.kpi-submetric-label {
    color: #94a3b8;
}

.kpi-submetric-val {
    font-weight: 700;
    color: #334155;
}

/* Quick Module Cards */
.quick-module-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--erp-border);
    border-left: 4px solid transparent;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.quick-module-card:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    color: inherit;
}

.quick-module-card.finance {
    border-color: #bbf7d0;
    border-left-color: #16a34a;
}

.quick-module-card.purchasing {
    border-color: #fecaca;
    border-left-color: #dc2626;
}

.quick-module-card.sales {
    border-color: #bfdbfe;
    border-left-color: #2563eb;
}

.quick-module-card.warehouse {
    border-color: #fef08a;
    border-left-color: #ca8a04;
}

/* High density tables */
.table-dense {
    font-size: 0.85rem;
}

.table-dense th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    border-bottom: 1px solid var(--erp-border);
}
