:root {
  --navy: #173c60;
  --navy2: #20496d;
  --bg: #f3f6fa;
  --text: #27394d;
  --muted: #718095;
  --border: #d9e1ea;
  --blue: #2763b8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 14px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  color: #dbe7f2;
  z-index: 10;
}
.brand {
  height: 73px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.brand strong {
  font-size: 16px;
  display: block;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.7px;
}
.nav-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a9bdcf;
  margin: 28px 16px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8e3ed;
  text-decoration: none;
  padding: 12px 18px;
  margin: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.nav-item i {
  width: 17px;
  text-align: center;
}
.main {
  margin-left: 220px;
}
.topbar {
  height: 73px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
}
.topbar h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
.breadcrumb-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #415369;
  position: relative;
}
.dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e55353;
  top: 9px;
  right: 9px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2e58a6;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user-info {
  line-height: 1.15;
}
.user-info strong,
.user-info small {
  display: block;
}
.user-info small {
  font-size: 10px;
  color: var(--muted);
}
.content {
  padding: 24px 28px 34px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.page-heading h2 {
  font-size: 22px;
  margin: 0 0 5px;
  font-weight: 750;
}
.page-heading p {
  margin: 0;
  color: #667789;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.year-select {
  width: 205px;
}
.btn-main {
  min-height: 53px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.kpi,
.card-panel,
.table-card,
.upload-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(25, 52, 82, 0.04);
}
.kpi {
  position: relative;
  padding: 28px 18px 17px;
  min-height: 140px;
}
.kpi span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #667789;
}
.kpi h3 {
  font-size: 24px;
  margin: 23px 0 5px;
}
.kpi small {
  color: #6f7d8d;
  font-size: 11px;
}
.kpi-icon {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.blue {
  background: #e9effb;
  color: #2d5fb3;
}
.green {
  background: #e8f3ee;
  color: #20875d;
}
.orange {
  background: #f9f1e6;
  color: #d58826;
}
.red {
  background: #f9ebeb;
  color: #c94c4c;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.card-panel {
  padding: 18px;
}
.panel-head h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.chart-wrap {
  height: 340px;
  margin-top: 14px;
}
.chart-wrap.small {
  height: 285px;
}
.projection-card {
  background: linear-gradient(150deg, #173c60, #224e76);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  min-height: 405px;
}
.projection-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a9c2d8;
}
.projection-value {
  font-size: 36px;
  font-weight: 800;
  margin-top: 24px;
}
.projection-card p {
  font-size: 12px;
  color: #c9d8e5;
  margin-top: 14px;
}
.risk-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
  margin-top: 10px;
}
.progress-label {
  font-size: 12px;
  margin-top: 30px;
  color: #c9d8e5;
}
.projection-card .progress {
  height: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.25);
}
.projection-card .progress-bar {
  background: #fff;
}
.projection-card > strong {
  font-size: 11px;
  margin-top: 8px;
  display: block;
}
.summary-list {
  margin-top: 18px;
}
.summary-row {
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}
.summary-row:last-child {
  border: 0;
}
.summary-row strong {
  display: block;
  font-size: 12px;
}
.summary-row .numbers {
  display: flex;
  justify-content: space-between;
  color: #617184;
  font-size: 11px;
  margin-top: 5px;
}
.filters {
  padding: 18px;
  margin-bottom: 18px;
}
.filters label {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}
.table-card {
  overflow: hidden;
}
.budget-table-wrap {
  max-height: 72vh;
}
.budget-table {
  font-size: 13px;
  margin: 0;
  min-width: 1600px;
}
.budget-table thead th {
  background: #f6f8fb;
  color: #405166;
  border-bottom: 1px solid var(--border);
  padding: 14px 10px;
  vertical-align: middle;
  white-space: normal;
}
.budget-table tbody td {
  padding: 10px;
  border-color: #edf1f5;
  vertical-align: middle;
}
.money-head {
  text-align: center !important;
  min-width: 125px;
}
.money {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.budget-structural td {
  background: #eef4fa !important;
  font-weight: 750;
  text-align: left;
  color: #294a6b;
}
.budget-source td {
  /*background: #e5eef8 !important;
  color: #173c60;
  font-size: 13px;*/
  font-weight: 700;
    font-size: 16px;
    color: #111827;
}
.budget-meta td {
    font-weight: 600;
  padding-left: 25px !important;
  background: #f8fafc !important;
  color: #858796 !important;
  font-size: 15px;
}
.table-info-footer {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.upload-card {
  padding: 24px;
}
.drop-zone {
  border: 2px dashed #b8c7d7;
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fbfcfe;
  transition: 0.2s;
}
.drop-zone.drag {
  border-color: var(--blue);
  background: #eef5ff;
}
.drop-zone > i {
  font-size: 54px;
  color: #248254;
}
.drop-zone h3 {
  margin: 15px 0 5px;
  font-size: 20px;
}
.drop-zone p {
  color: var(--muted);
}
.drop-zone small {
  margin-top: 13px;
  color: var(--muted);
}
.file-box {
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.file-box i {
  font-size: 26px;
  color: #23844f;
  margin-right: 10px;
}
.file-box strong,
.file-box small {
  display: block;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.preview-toolbar h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.preview-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.alert-inline {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
}
.alert-danger {
  background: #fff0f0;
  color: #9b3030;
}
.table-responsive {
  overflow: auto;
}
.empty-state {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 72px;
  }
  .sidebar .brand div:last-child,
  .sidebar .nav-title,
  .sidebar .nav-item:not(i) {
    font-size: 0;
  }
  .sidebar .nav-item {
    justify-content: center;
    padding: 14px;
  }
  .sidebar .nav-item i {
    font-size: 18px;
  }
  .brand {
    justify-content: center;
    padding: 0;
  }
  .main {
    margin-left: 72px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .content {
    padding: 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-heading,
  .preview-toolbar {
    flex-direction: column;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .heading-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .year-select {
    width: 100%;
  }
  .user-info {
    display: none;
  }
  .dashboard-grid {
    margin-top: 14px;
  }
}
/* Dashboard v2: tipografía ampliada y paneles de inteligencia */
body {
  font-size: 16px;
}
.topbar h1 {
  font-size: 20px;
}
.breadcrumb-text {
  font-size: 13px;
}
.brand strong {
  font-size: 18px;
}
.brand small {
  font-size: 9px;
}
.nav-item {
  font-size: 15px;
}
.nav-title {
  font-size: 10px;
}
.content {
  padding: 26px 28px 38px;
}
.page-heading h2 {
  font-size: 25px;
}
.page-heading p {
  font-size: 15px;
}
.year-select {
  font-size: 15px;
}
.btn-main {
  font-size: 15px;
}
.kpi {
  min-height: 148px;
  padding: 29px 18px 18px;
}
.kpi span {
  font-size: 12px;
}
.kpi h3 {
  font-size: 27px;
}
.kpi small {
  font-size: 12px;
}
.kpi-icon {
  width: 40px;
  height: 40px;
  font-size: 19px;
}
.panel-head h3 {
  font-size: 17px;
}
.panel-head p {
  font-size: 13px;
}
.projection-label {
  font-size: 11px;
}
.projection-value {
  font-size: 40px;
}
.projection-card p {
  font-size: 14px;
}
.risk-badge {
  font-size: 12px;
}
.progress-label {
  font-size: 13px;
}
.projection-card > strong {
  font-size: 12px;
}
.dashboard-insights-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.dashboard-insights-grid .card-panel {
  min-height: 320px;
}
.panel-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.priority-list {
  margin-top: 22px;
}
.priority-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}
.priority-item:last-child {
  border-bottom: 0;
}
.priority-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.priority-info .priority-icon {
  background: #e8f3fb;
  color: #2b79a9;
}
.priority-medio .priority-icon {
  background: #fff4df;
  color: #c9871d;
}
.priority-alto .priority-icon {
  background: #fceaea;
  color: #c44949;
}
.priority-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}
.priority-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.chart-wrap.source {
  height: 245px;
  margin-top: 8px;
}
.metas-risk-panel {
  margin-top: 22px;
  padding: 20px 22px 14px;
}
.risk-table {
  font-size: 14px;
  margin-top: 18px;
}
.risk-table thead th {
  font-size: 11px;
  letter-spacing: 0.9px;
  color: #687789;
  border-bottom: 1px solid var(--border);
  padding: 14px 12px;
  white-space: nowrap;
}
.risk-table tbody td {
  padding: 14px 12px;
  border-color: #edf1f5;
  vertical-align: middle;
}
.meta-cell strong {
  display: block;
  font-size: 14px;
  color: #27394d;
}
.meta-cell span {
  display: block;
  color: #718095;
  font-size: 13px;
  margin-top: 4px;
  max-width: 540px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.money-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.exec-chip {
  display: inline-block;
  background: #edf3f8;
  color: #345a7d;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
}
.risk-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
}
.risk-alto {
  background: #fdeaea;
  color: #b63d3d;
}
.risk-medio {
  background: #fff2d9;
  color: #a96b00;
}
.risk-bajo {
  background: #e9f5ee;
  color: #20734d;
}
.risk-table-wrap {
  overflow-x: auto;
}
.summary-row strong {
  font-size: 14px;
}
.summary-row .numbers {
  font-size: 13px;
}
.empty-state {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }
  .meta-cell span {
    max-width: 340px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }
  .panel-head-actions {
    flex-direction: column;
  }
  .meta-cell span {
    max-width: 220px;
  }
  .risk-table {
    min-width: 920px;
  }
  .content {
    padding: 18px;
  }
  .page-heading h2 {
    font-size: 22px;
  }
}
/* Módulos integrados SIP-IA */
.module-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.module-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(25, 52, 82, 0.04);
}
.module-kpi > i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.module-kpi span,
.module-kpi strong {
  display: block;
}
.module-kpi span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.module-kpi strong {
  font-size: 24px;
  margin-top: 4px;
}
.module-kpi.danger > i {
  background: #fdeaea;
  color: #c44949;
}
.module-kpi.warning > i {
  background: #fff4df;
  color: #c9871d;
}
.module-kpi.primary > i {
  background: #e9effb;
  color: #2d5fb3;
}
.module-kpi.success > i {
  background: #e8f3ee;
  color: #20875d;
}
.module-kpi.info > i {
  background: #e8f3fb;
  color: #2b79a9;
}
.module-panel {
  margin-top: 22px;
}
.segmented {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  background: #f7f9fb;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
}
.segmented button.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.alert-list {
  margin-top: 18px;
}
.smart-alert {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid #edf1f5;
}
.smart-alert:last-child {
  border-bottom: 0;
}
.smart-alert-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 19px;
}
.smart-alert.alta .smart-alert-icon {
  background: #fdeaea;
  color: #c44949;
}
.smart-alert.media .smart-alert-icon {
  background: #fff4df;
  color: #c9871d;
}
.smart-alert.baja .smart-alert-icon,
.smart-alert.info .smart-alert-icon {
  background: #e8f3fb;
  color: #2b79a9;
}
.smart-alert-main {
  flex: 1;
}
.smart-alert-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.smart-alert-title strong {
  font-size: 15px;
}
.smart-alert p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
}
.smart-alert small {
  color: #94a0ae;
}
.smart-alert-actions {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.status-chip {
  font-size: 11px;
  border-radius: 999px;
  background: #eef2f5;
  padding: 6px 9px;
  color: #657487;
}
.report-summary {
  margin-top: 18px;
}
.report-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
}
.report-line span {
  color: var(--muted);
}
.report-line strong {
  font-size: 17px;
}
.module-table {
  margin-top: 18px;
}
.module-table th {
  font-size: 12px;
  color: #687789;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.module-table td {
  vertical-align: middle;
}
.module-table small {
  color: var(--muted);
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.document-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  gap: 14px;
  min-height: 210px;
  box-shadow: 0 2px 8px rgba(25, 52, 82, 0.04);
}
.document-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #edf3f8;
  color: #315d83;
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: 0 0 44px;
}
.document-body {
  flex: 1;
  min-width: 0;
}
.doc-category {
  font-size: 10px;
  color: #2d5fb3;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.document-card h3 {
  font-size: 16px;
  margin: 8px 0;
}
.document-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.doc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.doc-tags span {
  font-size: 10px;
  background: #f0f4f7;
  color: #617184;
  padding: 4px 7px;
  border-radius: 999px;
}
.document-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.norm-search {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(25, 52, 82, 0.04);
}
.norm-search > i {
  font-size: 20px;
  color: #8291a0;
  margin-left: 8px;
}
.norm-search input {
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 15px;
  padding: 10px;
  background: transparent;
}
.norm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}
.norm-toolbar > span {
  color: var(--muted);
  font-size: 13px;
}
.norm-toolbar .active {
  background: #e8eff8;
  color: #24527a;
}
.norm-list {
  display: grid;
  gap: 12px;
}
.norm-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.norm-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #edf3f8;
  color: #315d83;
  border-radius: 13px;
  flex: 0 0 44px;
}
.norm-content {
  flex: 1;
}
.norm-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.norm-meta span {
  font-size: 11px;
  color: #657487;
  font-weight: 700;
}
.norm-meta b {
  font-size: 9px;
  background: #e9f5ee;
  color: #20734d;
  padding: 4px 7px;
  border-radius: 99px;
}
.muted-badge {
  background: #eef1f4 !important;
  color: #718095 !important;
}
.norm-card h3 {
  font-size: 17px;
  margin: 7px 0;
}
.norm-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 11px;
}
.norm-foot {
  display: flex;
  gap: 18px;
  color: #8a98a8;
  font-size: 11px;
}
.assistant-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 150px);
  gap: 18px;
}
.assistant-sidebar,
.assistant-chat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.assistant-sidebar {
  padding: 18px;
}
.assistant-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
}
.assistant-orb {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, #315ea7, #1d3f72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.assistant-brand strong,
.assistant-brand small {
  display: block;
}
.assistant-brand small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.assistant-hints {
  margin-top: 26px;
}
.assistant-hints > span {
  font-size: 11px;
  font-weight: 800;
  color: #8291a0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.assistant-hints button {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #edf1f5;
  background: #f9fbfd;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #506277;
}
.assistant-chat {
  display: flex;
  flex-direction: column;
  min-height: 650px;
}
.chat-head {
  padding: 22px;
  border-bottom: 1px solid #edf1f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-head h2 {
  font-size: 19px;
  margin: 0 0 4px;
}
.chat-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.local-badge {
  font-size: 11px;
  color: #20734d;
  background: #e9f5ee;
  padding: 7px 10px;
  border-radius: 999px;
}
.chat-messages {
  padding: 24px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 620px;
}
.message {
  display: flex;
  gap: 10px;
  max-width: 82%;
  align-items: flex-start;
}
.message.user {
  align-self: flex-end;
  justify-content: flex-end;
}
.message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #e8eff8;
  color: #315d83;
  display: grid;
  place-items: center;
}
.bubble {
  padding: 12px 15px;
  border-radius: 14px;
  background: #f1f5f8;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.message.user .bubble {
  background: #245fa9;
  color: #fff;
}
.chat-input {
  padding: 16px;
  border-top: 1px solid #edf1f5;
  display: flex;
  gap: 10px;
}
.chat-input textarea {
  resize: none;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  outline: 0;
  min-height: 48px;
  max-height: 140px;
}
.chat-input button {
  width: 48px;
  height: 48px;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.config-wide {
  grid-column: 1/-1;
}
.config-note {
  padding: 12px;
  background: #eef5fb;
  border-radius: 10px;
  color: #56718c;
  font-size: 12px;
}
.config-note i {
  margin-right: 6px;
}
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #526274;
}
@media (max-width: 1100px) {
  .module-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .assistant-sidebar {
    display: none;
  }
}
@media (max-width: 700px) {
  .module-kpis,
  .document-grid,
  .config-grid {
    grid-template-columns: 1fr;
  }
  .config-wide {
    grid-column: auto;
  }
  .smart-alert {
    padding: 14px;
  }
  .norm-search {
    align-items: stretch;
  }
  .norm-search input {
    min-width: 0;
  }
  .norm-search button {
    font-size: 0;
    width: 46px;
  }
  .norm-search button:before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    font-size: 16px;
  }
  .chat-head {
    align-items: flex-start;
    gap: 12px;
  }
  .local-badge {
    display: none;
  }
  .message {
    max-width: 95%;
  }
  .norm-card {
    padding: 14px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading .heading-actions,
  .btn,
  .filters,
  .chat-input {
    display: none !important;
  }
  .main {
    margin-left: 0;
  }
  .content {
    padding: 0;
  }
  .card-panel {
    box-shadow: none;
  }
  .document-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #858796;
}

.budget-source td{
    padding-left: 13px !important;
}

.table-presupuesto thead th {
    /* background: linear-gradient(90deg, #1e40af, #2563eb); */
    background: #1e40af;
    color: white;
    border: none;
    text-align: center;
    vertical-align: middle;
    padding: 15px;
    font-size: 15px;
}

.budget-table tbody tr td:first-child{
    /*color: #858796;*/
    padding-left: 55px;
}