/* Avtoprog - Modern Auto Service Management System CSS */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition-fast: 0.15s ease;
  --shadow-main: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LOGIN OVERLAY STYLING */
.login-screen-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}

#login-form button[type="submit"] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-brand-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.login-demo-credentials {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* LAYOUT & STRUCTURE */
#app-container {
  display: flex;
  min-height: 100vh;
}

sidebar {
  width: 250px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

main {
  flex: 1;
  padding: 1.75rem 2rem;
  background-color: var(--bg-primary);
  overflow-y: auto;
  min-width: 0;
}

.brand-header {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: white;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* NAVIGATION */
.nav-list {
  list-style: none;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.nav-item button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-item button.active {
  background: var(--accent-blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--card-border);
}

.tc-selector-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
}

.tc-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tc-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-online {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* TOP HEADER & PHONE LINK */
.app-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-brand-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.header-phone-link:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.header-phone-link i {
  font-size: 0.85rem;
}

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}

/* HEADERS & BUTTONS */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;

}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-success {
  background: var(--accent-green);
  color: white;
}

.btn-success:hover {
  background: var(--accent-green-hover);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--accent-red);
  color: white;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 0.4rem;
  width: 32px;
  height: 32px;
  justify-content: center;
}

/* CARDS & STATS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* HIGH-DENSITY COMPACT TABLE SYSTEM FOR WAREHOUSE & REPORTS */
.table-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.table-toolbar {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  gap: 1rem;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.search-box input {
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 2.2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.82rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.custom-table th {
  padding: 0.5rem 0.55rem;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--card-border);
}

.custom-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.warehouse-table-row {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.warehouse-table-row:hover {
  background: rgba(59, 130, 246, 0.08) !important;
}

/* WAREHOUSE LAYOUT & FOLDER TREE */
.warehouse-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
}

.folder-tree-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  backdrop-filter: blur(8px);
  height: fit-content;
}

.folder-tree-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.folder-item-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.65rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  margin-bottom: 0.2rem;
}

.folder-item-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.folder-item-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 600;
  border-left: 3px solid var(--accent-blue);
}

.folder-count-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-size: 0.7rem;
}

/* BADGES & CHIPS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-neutral { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

.period-filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.period-chip {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.period-chip.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.format-toggle-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.format-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.format-btn.active {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.15);
  color: white;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-main);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: white;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* FORMS */
.form-group {
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: inherit;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* BRANDED ALARM.RU DOCUMENT STYLES FOR REAL PDF & PRINT */
.alarm-document {
  background: #ffffff !important;
  color: #111111 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  padding: 20px !important;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-size: 8pt;
  line-height: 1.3;
}

.alarm-pattern-bar {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #000,
    #000 10px,
    #ffe600 10px,
    #ffe600 20px
  );
  margin-bottom: 12px;
}

.alarm-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.alarm-logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alarm-shield-icon {
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14pt;
}

.alarm-brand-text {
  font-size: 18pt;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #000;
}

.alarm-social-box {
  text-align: right;
  font-size: 8pt;
  color: #333;
}

.alarm-doc-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.alarm-doc-title {
  font-size: 11pt;
  font-weight: 800;
  text-transform: uppercase;
}

.alarm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 7.5pt;
}

.alarm-table th {
  background: #f0f0f0;
  border: 1px solid #999;
  padding: 4px 6px;
  font-weight: bold;
  text-align: left;
}

.alarm-table td {
  border: 1px solid #ccc;
  padding: 4px 6px;
}

.alarm-table tr.summary-row td {
  font-weight: bold;
  background: #fafafa;
}

.alarm-fine-print {
  font-size: 6.5pt;
  color: #444;
  margin-top: 10px;
  border-top: 1px solid #ccc;
  padding-top: 6px;
  line-height: 1.25;
}

.alarm-fine-print h5 {
  font-size: 7pt;
  margin-bottom: 2px;
  color: #000;
}

.alarm-signatures {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 8pt;
}

.alarm-sig-line {
  display: inline-block;
  width: 140px;
  border-bottom: 1px solid #000;
}

/* SMART PICKER */
.picker-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.picker-search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.picker-search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem !important;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.picker-search-box input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.picker-folders-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.picker-folder-chip {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.picker-folder-chip.active {
  background: var(--accent-blue);
  color: white;

}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  max-height: 380px;
  overflow-y: auto;
}

.picker-item-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.picker-item-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.picker-item-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;

}

.picker-item-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.picker-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RESPONSIVE & MOBILE HEADER STYLES */
@media (max-width: 768px) {
  #app-container {
    flex-direction: column;
  }

  sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .nav-item button {
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  main {
    padding: 1rem;
  }

  .app-top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-brand-info {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .header-phone-link {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 700;
  }

  .user-profile-bar {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===== Статистика, накладные, журнал (v10) ===== */
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stats-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 1rem 1.15rem; }
.stats-panel-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.75rem; }
.stat-bar-bg { height: 6px; background: rgba(148, 163, 184, 0.15); border-radius: 3px; margin-top: 0.25rem; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; }
.mchart { display: flex; align-items: flex-end; gap: 4px; height: 200px; overflow-x: auto; padding-bottom: 0.25rem; }
.mchart-col { flex: 1 0 22px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.mchart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mchart-bar { width: 45%; min-height: 1px; border-radius: 2px 2px 0 0; }
.mchart-bar.inc { background: #34d399; }
.mchart-bar.exp { background: #f87171; }
.mchart-label { font-size: 0.62rem; color: var(--text-dim); margin-top: 3px; white-space: nowrap; }
.inv-new-fields input { font-size: 0.8rem; padding: 0.35rem 0.5rem; }
