/* =============================================================
   FRUTAS DE CHILE — TEMA LARAVEL
   fdc-theme.css  |  v1.0.0
   ============================================================= */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* ── VARIABLES ── */
:root {
  /* Paleta corporativa */
  --fdc-red:          #CC0000;
  --fdc-red-dark:     #A00000;
  --fdc-red-hover-bg: rgba(204,0,0,0.12);
  --fdc-green:        #7AB529;
  --fdc-blue:         #1565C0;
  --fdc-yellow:       #F5B000;
  --fdc-orange:       #E65C00;
  --fdc-purple:       #7B1FA2;

  /* Layout */
  --sidebar-bg:         #1C1C2E;
  --sidebar-text:       #B0B8CC;
  --sidebar-active-bg:  var(--fdc-red);
  --sidebar-hover-bg:   rgba(204,0,0,0.15);
  --sidebar-width:      260px;
  --sidebar-mini-width: 64px;
  --topbar-bg:          var(--fdc-red);
  --topbar-height:      60px;
  --body-bg:            #f0f2f5;
  --card-bg:            #ffffff;
  --card-shadow:        0 2px 16px rgba(0,0,0,0.08);
  --card-radius:        12px;
  --card-header-border: 3px solid var(--fdc-red);

  /* Tipografía */
  --font-body:    'Open Sans', sans-serif;
  --font-heading: 'Raleway', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--body-bg);
  color: #333;
  font-size: 0.88rem;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* =============================================================
   TOPBAR
   ============================================================= */
#fdc-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  z-index: 1040;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

#fdc-topbar .brand-area {
  display: flex;
  align-items: center;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  gap: 0.75rem;
  padding-right: 1rem;
  overflow: hidden;
  transition: width 0.3s, min-width 0.3s;
}

body.sidebar-mini #fdc-topbar .brand-area {
  width: var(--sidebar-mini-width);
  min-width: var(--sidebar-mini-width);
}

.brand-logo {
  max-height: 36px;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity 0.3s, width 0.3s;
}

body.sidebar-mini .brand-logo { opacity: 0; width: 0; overflow: hidden; }

.topbar-controls {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
}

.btn-toggle-sidebar {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-toggle-sidebar:hover { background: rgba(255,255,255,0.25); }

.topbar-breadcrumb {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  margin-left: 0.5rem;
  display: none;
}
@media (min-width: 576px) { .topbar-breadcrumb { display: block; } }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.topbar-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  text-decoration: none;
}
.topbar-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.topbar-btn .badge-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fdc-yellow);
  border: 1.5px solid var(--fdc-red);
  padding: 0;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 8px;
  padding: 0 0.75rem;
  height: 36px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.topbar-user:hover { background: rgba(255,255,255,0.22); color: #fff; }

.topbar-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.topbar-username {
  font-size: 0.78rem; font-weight: 600;
  white-space: nowrap;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
#fdc-sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  z-index: 1030;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  display: flex;
  flex-direction: column;
}
#fdc-sidebar::-webkit-scrollbar { width: 4px; }
#fdc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

body.sidebar-mini #fdc-sidebar { width: var(--sidebar-mini-width); }

.sidebar-nav { flex: 1; padding-bottom: 0.5rem; }

.sidebar-section-title {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.2rem 1rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s;
}
body.sidebar-mini .sidebar-section-title { opacity: 0; }

.nav-item-sidebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  margin: 0.15rem 0.5rem;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-item-sidebar:hover { background: var(--sidebar-hover-bg); color: #fff; }
.nav-item-sidebar.active { background: var(--sidebar-active-bg); color: #fff; font-weight: 600; }

.nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.nav-text {
  font-size: 0.84rem;
  flex: 1;
  transition: opacity 0.2s;
}
body.sidebar-mini .nav-text { opacity: 0; }

.nav-badge {
  background: var(--fdc-yellow);
  color: #333;
  font-size: 0.65rem; font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  transition: opacity 0.2s;
}
body.sidebar-mini .nav-badge { opacity: 0; }

.nav-chevron {
  font-size: 0.7rem;
  transition: transform 0.3s, opacity 0.2s;
  margin-left: auto;
}
body.sidebar-mini .nav-chevron { opacity: 0; }
.nav-item-sidebar[aria-expanded="true"] .nav-chevron { transform: rotate(90deg); }

/* Submenu */
.nav-submenu { overflow: hidden; }
.nav-submenu .nav-item-sidebar {
  padding: 0.45rem 1rem 0.45rem 2.8rem;
  font-size: 0.81rem;
}
.nav-submenu .nav-item-sidebar::before {
  content: '•';
  position: absolute;
  left: 1.4rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.6rem;
}
.nav-submenu .nav-item-sidebar.active::before { color: rgba(255,255,255,0.6); }

/* Tooltip mini */
body.sidebar-mini .nav-item-sidebar:hover::after {
  content: attr(data-title);
  position: absolute;
  left: calc(var(--sidebar-mini-width) - 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #333; color: #fff;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Sidebar footer (usuario) */
.sidebar-user-wrap {
  padding: 0.75rem 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user-link {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
  overflow: hidden;
}
.sidebar-user-link:hover { background: rgba(255,255,255,0.06); }
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--fdc-red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; transition: opacity 0.2s; }
body.sidebar-mini .sidebar-user-info { opacity: 0; }
.sidebar-user-name { color: #fff; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.sidebar-user-role { color: rgba(255,255,255,0.45); font-size: 0.7rem; white-space: nowrap; }

/* Overlay móvil */
#fdc-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1025;
}

/* =============================================================
   CONTENIDO PRINCIPAL
   ============================================================= */
#fdc-main {
  margin-top: var(--topbar-height);
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}
body.sidebar-mini #fdc-main { margin-left: var(--sidebar-mini-width); }

#fdc-content {
  flex: 1;
  padding: 1.5rem;
}

/* Page header */
.page-header { margin-bottom: 1.25rem; }
.page-title {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 700;
  color: #222; margin-bottom: 0.15rem;
}
.breadcrumb {
  font-size: 0.78rem;
  background: none; padding: 0; margin: 0;
}
.breadcrumb-item a { color: var(--fdc-red); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #888; }
.breadcrumb-item + .breadcrumb-item::before { color: #ccc; }

/* =============================================================
   FOOTER
   ============================================================= */
#fdc-footer {
  background: var(--sidebar-bg);
  border-top: 3px solid var(--fdc-red);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo {
  height: 28px; object-fit: contain;
  opacity: 0.9;
}
.footer-brand-name {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 700; line-height: 1.2;
}
.footer-brand-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-link {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem; text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.7rem; text-align: right; }
.footer-copy strong { color: rgba(255,255,255,0.55); }

/* =============================================================
   CARDS ESTILO ADMINLTE
   ============================================================= */
.fdc-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: none;
  margin-bottom: 1.5rem;
}
.fdc-card .table-responsive {
  overflow-x: auto;
}
.fdc-card-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  background: #fff;
  border-left: var(--card-header-border);
}
.fdc-card-header.accent-red    { border-left-color: var(--fdc-red); }
.fdc-card-header.accent-green  { border-left-color: var(--fdc-green); }
.fdc-card-header.accent-blue   { border-left-color: var(--fdc-blue); }
.fdc-card-header.accent-orange { border-left-color: var(--fdc-orange); }
.fdc-card-header.accent-purple { border-left-color: var(--fdc-purple); }

.fdc-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 700; color: #222;
  display: flex; align-items: center; gap: 0.5rem;
}
.card-title-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(204,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--fdc-red);
}
.fdc-card-tools { display: flex; align-items: center; gap: 0.3rem; }

.fdc-card-body { padding: 1.25rem; }
.fdc-card-footer {
  padding: 0.75rem 1.25rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  font-size: 0.78rem; color: #888;
  display: flex; align-items: center; justify-content: space-between;
}

/* Botón de herramienta de card */
.btn-card-tool {
  background: none;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem; color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.btn-card-tool:hover {
  background: #f5f5f5; color: var(--fdc-red); border-color: var(--fdc-red);
}

/* =============================================================
   METRIC CARDS
   ============================================================= */
.metric-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--metric-color, var(--fdc-red));
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.metric-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(var(--metric-rgb, 204,0,0), 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--metric-color, var(--fdc-red));
  margin-bottom: 0.9rem;
}
.metric-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #888; margin-bottom: 0.25rem;
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 1.85rem; font-weight: 800;
  color: #222; line-height: 1; margin-bottom: 0.4rem;
}
.metric-change { font-size: 0.76rem; font-weight: 600; }
.metric-change.up   { color: var(--fdc-green); }
.metric-change.down { color: var(--fdc-red); }

/* =============================================================
   FORMULARIOS
   ============================================================= */
.form-label {
  font-size: 0.78rem; font-weight: 600;
  color: #555; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 0.3rem;
}
.form-control, .form-select {
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  color: #333; background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fdc-red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
  background: #fff; outline: none;
}
.input-group .form-control { border-radius: 8px 0 0 8px; }
.input-group-text {
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0; border-left: none;
  border-radius: 0 8px 8px 0;
  color: #999; cursor: pointer; transition: color 0.2s;
}
.input-group-text:hover { color: var(--fdc-red); }
.input-group .form-control:focus + .input-group-text { border-color: var(--fdc-red); }

/* =============================================================
   BOTONES
   ============================================================= */
.btn-fdc {
  border-radius: 7px;
  padding: 0.5rem 1.1rem;
  font-size: 0.84rem; font-weight: 600;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; cursor: pointer; border: none;
}
.btn-fdc:hover { transform: translateY(-1px); }
.btn-fdc:active { transform: translateY(0); }

.btn-fdc-primary {
  background: var(--fdc-red); color: #fff;
  box-shadow: 0 2px 10px rgba(204,0,0,0.2);
}
.btn-fdc-primary:hover { background: var(--fdc-red-dark); color: #fff; box-shadow: 0 4px 14px rgba(204,0,0,0.3); }

.btn-fdc-success { background: var(--fdc-green); color: #fff; }
.btn-fdc-success:hover { background: #5e8c1e; color: #fff; }

.btn-fdc-info { background: var(--fdc-blue); color: #fff; }
.btn-fdc-info:hover { background: #0d47a1; color: #fff; }

.btn-fdc-warning { background: var(--fdc-yellow); color: #333; }
.btn-fdc-warning:hover { background: #d49700; color: #333; }

.btn-fdc-outline {
  background: none; color: var(--fdc-red);
  border: 1.5px solid var(--fdc-red);
}
.btn-fdc-outline:hover { background: var(--fdc-red-hover-bg); color: var(--fdc-red); }

/* =============================================================
   TABLAS / DATATABLES
   ============================================================= */
.table thead th {
  background: #f8f9fa;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #555; border-bottom: 2px solid #e8e8e8;
  padding: 0.75rem 0.85rem; white-space: nowrap;
}
.table tbody td {
  padding: 0.7rem 0.85rem;
  border-color: #f2f2f2; font-size: 0.84rem; vertical-align: middle;
}
.table tbody tr:hover { background: #fef9f9; }

/* DataTables overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid #e0e0e0; border-radius: 6px;
  padding: 0.3rem 0.6rem; font-size: 0.82rem;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none; border-color: var(--fdc-red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--fdc-red) !important; border-color: var(--fdc-red) !important;
  color: #fff !important; border-radius: 6px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f5f5f5 !important; border-color: #ddd !important;
  color: #333 !important; border-radius: 6px;
}

/* =============================================================
   CHOSEN SELECT
   ============================================================= */
.chosen-container-single .chosen-single {
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  box-shadow: none !important;
  height: 38px !important;
  line-height: 36px !important;
  padding: 0 0 0 0.85rem !important;
  color: #333 !important;
  font-size: 0.88rem !important;
}
.chosen-container-single .chosen-single span { color: #333; font-size: 0.88rem; }
.chosen-container-single.chosen-with-drop .chosen-single,
.chosen-container-single .chosen-single:hover {
  border-color: var(--fdc-red) !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1) !important;
}
.chosen-container .chosen-results li.highlighted { background: var(--fdc-red) !important; }
.chosen-container { position: relative; }
.chosen-container.chosen-with-drop { z-index: 9000 !important; }
.chosen-container .chosen-drop {
  border: 1.5px solid #e0e0e0 !important; border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
  z-index: 9000 !important;
  background: #fff !important;
}
.chosen-container .chosen-results {
  max-height: 240px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 4px 4px 0 !important;
  padding: 0 0 0 4px !important;
  color: #333 !important;
}
.chosen-container .chosen-results li {
  display: list-item !important;
  line-height: 1.4 !important;
  padding: 6px 10px !important;
  color: #333 !important;
  font-size: 0.88rem !important;
  list-style: none !important;
}
.chosen-container .chosen-results li.active-result {
  cursor: pointer;
}
.chosen-container .chosen-results li.no-results {
  color: #777 !important;
  background: #f4f4f4 !important;
}
.chosen-container-multi .chosen-choices {
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  box-shadow: none !important;
  padding: 3px 6px !important;
}
.chosen-container-multi .chosen-choices:focus-within {
  border-color: var(--fdc-red) !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1) !important;
}
.chosen-container-multi .chosen-choices li.search-choice {
  background: var(--fdc-red) !important; border-color: var(--fdc-red-dark) !important;
  color: #fff !important; border-radius: 4px !important;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  filter: brightness(0) invert(1);
}

/* =============================================================
   JQUERY UI DATEPICKER
   ============================================================= */
.ui-datepicker {
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  border: 1px solid #e0e0e0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.84rem !important;
}
.ui-datepicker-header {
  background: var(--fdc-red) !important; border-color: var(--fdc-red) !important;
  border-radius: 10px 10px 0 0 !important; color: #fff !important;
}
.ui-datepicker-title { color: #fff !important; font-weight: 700; }
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  background: rgba(255,255,255,0.2) !important;
  border: none !important; border-radius: 6px !important;
}
.ui-datepicker td a.ui-state-active,
.ui-datepicker td a.ui-state-highlight {
  background: var(--fdc-red) !important; border-color: var(--fdc-red) !important;
  color: #fff !important; border-radius: 6px !important;
}

/* =============================================================
   BADGES DE ESTADO
   ============================================================= */
.badge-fdc {
  padding: 0.3em 0.7em; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-fdc.activo    { background: #e8f5e9; color: #2e7d32; }
.badge-fdc.inactivo  { background: #fce4ec; color: #c62828; }
.badge-fdc.pendiente { background: #fff8e1; color: #f57f17; }
.badge-fdc.proceso   { background: #e3f2fd; color: #1565c0; }
.badge-fdc.cerrado   { background: #f3e5f5; color: #6a1b9a; }

/* =============================================================
   ALERTAS
   ============================================================= */
.alert-fdc {
  border-radius: 8px; border: none;
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; margin-bottom: 1rem;
}
.alert-fdc.danger  { background: #fff0f0; color: #b00; }
.alert-fdc.success { background: #f0fff4; color: #276; }
.alert-fdc.info    { background: #e3f2fd; color: #0d47a1; }
.alert-fdc.warning { background: #fffde7; color: #856404; }

/* =============================================================
   CHART CONTAINER
   ============================================================= */
.chart-container { position: relative; height: 300px; }

/* =============================================================
   DROPDOWN OVERRIDES
   ============================================================= */
.dropdown-menu {
  font-size: 0.84rem; border-radius: 10px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.dropdown-item { font-size: 0.84rem; padding: 0.45rem 1rem; }
.dropdown-item:hover { background: var(--fdc-red-hover-bg); color: var(--fdc-red); }
.dropdown-item.text-danger:hover { background: #fff0f0; }

/* =============================================================
   LETRA FILTER (filtro alfabético)
   ============================================================= */
.letra-filter {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1rem;
}
.letra-filter a {
  padding: 2px 8px; border-radius: 5px;
  font-size: 0.75rem; font-weight: 700; color: #6b7280;
  text-decoration: none; border: 1px solid #dee2e6;
  font-family: monospace; transition: all 0.15s;
}
.letra-filter a:hover,
.letra-filter a.active {
  background: var(--fdc-red); color: #fff; border-color: var(--fdc-red);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  #fdc-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
  }
  body.sidebar-open #fdc-sidebar     { transform: translateX(0); }
  body.sidebar-open #fdc-sidebar-overlay { display: block; }
  #fdc-main                          { margin-left: 0 !important; }
  #fdc-footer                        { margin-left: 0 !important; }
  #fdc-topbar .brand-area            { width: 50px; min-width: 50px; }
  #fdc-topbar .brand-area .brand-logo{ opacity: 0; width: 0; }
}
