/* Enterprise Catalog Rules Styles */
.catalog-container { font-family: "Segoe UI", system-ui, sans-serif; animation: fadeIn 0.3s ease; }
.header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.header-flex h2 { color: #1e3a8a; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; text-transform: uppercase; margin: 0; }

/* Top Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #1e3a8a; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.stat-card.purple { border-left-color: #8b5cf6; }
.stat-card.orange { border-left-color: #f97316; }
.stat-card.green { border-left-color: #10b981; }
.stat-info h4 { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 700; margin: 0 0 8px 0; letter-spacing: 0.5px; }
.stat-info h3 { font-size: 28px; color: #0f172a; margin: 0; font-weight: 800; }
.stat-icon { font-size: 32px; color: #f1f5f9; }

/* Advanced Filter Bar */
.advanced-filters { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 24px; display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.filter-group label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; }

.search-wrapper { position: relative; width: 100%; }
.search-wrapper i { position: absolute; left: 14px; top: 14px; color: #94a3b8; font-size: 14px; }
.filter-input { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: #334155; outline: none; box-sizing: border-box; background: #fff; }
.search-input { padding-left: 36px !important; }
.filter-input:focus { border-color: #1e3a8a; }

.btn-apply { background: #16a34a; color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 42px; transition: 0.2s; white-space: nowrap; }
.btn-apply:hover { background: #15803d; }

/* Accordion Departments */
.dept-accordion { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.accordion-header { padding: 16px 24px; background: #fafaf9; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background 0.2s; }
.accordion-header:hover { background: #f1f5f9; }
.dept-title { font-size: 16px; font-weight: 800; color: #1e3a8a; display: flex; align-items: center; gap: 10px; }
.dept-meta { display: flex; align-items: center; gap: 12px; }
.meta-pill { background: #f1f5f9; color: #475569; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid #e2e8f0;}
.meta-pill.blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.chevron-icon { color: #94a3b8; transition: transform 0.3s ease; font-size: 18px; }

/* Inner Table */
.accordion-body { display: none; border-top: 1px solid #e2e8f0; }
.inner-table { width: 100%; border-collapse: collapse; text-align: left; }
.inner-table th { padding: 12px 24px; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; background: #fff; }
.inner-table td { padding: 16px 24px; font-size: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.inner-table tr:last-child td { border-bottom: none; }
.inner-table tr:hover { background: #f8fafc; }

.service-name { font-weight: 700; color: #0f172a; margin-bottom: 4px; display: block; }
.service-type { font-size: 12px; color: #94a3b8; }
.cash-rate { font-weight: 800; color: #334155; }
.tariff-info { font-size: 12px; color: #64748b; line-height: 1.5; }
.tariff-val { font-weight: 700; color: #16a34a; }
.copay-badge { background: #fee2e2; color: #991b1b; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; border: 1px solid #fecaca;}
.copay-none { color: #94a3b8; font-size: 12px;}

.btn-manage { background: #fff; border: 1px solid #cbd5e1; color: #1e3a8a; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-manage:hover { background: #eff6ff; border-color: #93c5fd; }

/* Pagination Area */
.pagination-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.page-btn { padding: 8px 16px; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; font-weight: 600; color: #334155; cursor: pointer; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }