:root {
  --navy: #102b3f;
  --navy2: #193f59;
  --orange: #f28c28;
  --bg: #f3f6f8;
  --text: #18232d;
  --muted: #6f7b87;
  --line: #e1e7eb;
  --green: #14835c;
  --red: #c74b4b;
  --amber: #d48813;
  --blue: #347fa9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--navy);
  color: #fff;
  padding: 23px 15px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 8px 25px;
}
.mark {
  background: var(--orange);
  font-weight: 900;
  font-size: 20px;
  padding: 9px;
  border-radius: 9px;
}
.brand strong,
.brand small,
.side-footer strong,
.side-footer small {
  display: block;
}
.brand small,
.side-footer small {
  color: #9fb2bf;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding-right: 3px;
}
.nav {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #b9c9d3;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.nav:hover,
.nav.active {
  background: var(--navy2);
  color: #fff;
}
.nav.active {
  box-shadow: inset 3px 0 var(--orange);
}
.side-footer {
  margin-top: auto;
  border-top: 1px solid #2b4c61;
  padding: 17px 7px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eff2;
  color: var(--navy);
  font-weight: 800;
}
main {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 0 30px 45px;
}
header {
  height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 {
  margin: 0 0 5px;
  font-size: 25px;
}
header p,
.panel p,
.entity-card p {
  margin: 0;
  color: var(--muted);
}
.header-actions,
.section-tools {
  display: flex;
  gap: 9px;
  align-items: center;
}
.saved {
  font-size: 12px;
  color: var(--green);
  opacity: 0;
  transition: 0.2s;
}
.saved.show {
  opacity: 1;
}
.primary,
.ghost,
.danger {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
}
.primary {
  border: 0;
  background: var(--orange);
  color: #fff;
}
.primary:hover {
  background: #dd7818;
}
.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.danger {
  background: var(--red);
  border: 0;
  color: #fff;
}
.mini {
  padding: 6px 10px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.notice {
  background: linear-gradient(110deg, var(--navy), #245570);
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.notice strong,
.notice span {
  display: block;
}
.notice span {
  color: #c3d3dd;
  margin-top: 5px;
}
.notice button,
.link {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  cursor: pointer;
}
.history-import-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding: 15px 18px;
  border: 1px solid #b9d9ea;
  border-left: 4px solid var(--blue);
  border-radius: 11px;
  background: #eef8fd;
}
.history-import-strip strong,
.history-import-strip small {
  display: block;
}
.history-import-strip small {
  color: var(--muted);
  margin-top: 4px;
}
.history-import-strip.imported {
  background: #eff9f4;
  border-color: #b8dfce;
  border-left-color: var(--green);
}
.compact-history-strip {
  margin-bottom: 14px;
  background: #fff;
}
.history-dialog {
  width: min(920px, calc(100vw - 48px));
  max-width: 920px;
  max-height: 88vh;
  padding: 0;
}
.history-modal {
  padding: 24px;
  max-height: 88vh;
  overflow-y: auto;
}
.history-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.history-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  background: #f8fafb;
}
.history-summary-grid span,
.history-summary-grid small {
  display: block;
  color: var(--muted);
}
.history-summary-grid strong {
  display: block;
  margin: 7px 0 3px;
  font-size: 20px;
}
.history-warning-list {
  margin: 14px 0 0;
  padding: 12px 15px 12px 34px;
  border-radius: 9px;
  background: #fff7e8;
  color: #76520f;
}
.history-warning-list li + li {
  margin-top: 6px;
}
.history-preview-table {
  max-height: 250px;
  overflow: auto;
  margin-top: 15px;
}
.historical-project-note {
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: 9px;
  background: #eef8fd;
  border-left: 4px solid var(--blue);
}
.historical-project-note strong,
.historical-project-note small {
  display: block;
}
.historical-project-note small {
  color: var(--muted);
  margin-top: 4px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 14px;
}
.kpis.compact {
  grid-template-columns: repeat(4, 1fr);
}
.kpi,
.panel,
.entity-card,
.list-panel,
.detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.kpi {
  padding: 17px;
}
.kpi span,
.kpi small {
  display: block;
  color: var(--muted);
}
.kpi strong {
  display: block;
  font-size: 25px;
  margin: 9px 0;
}
.kpi small.good {
  color: var(--green);
}
.kpi small.warn {
  color: var(--amber);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.panel {
  padding: 19px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.panel h2,
.list-head h2,
.detail h2 {
  font-size: 18px;
  margin: 0 0 5px;
}
.row-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.row-item:first-child {
  border: 0;
}
.row-item strong,
.row-item small {
  display: block;
}
.row-item small {
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 15px;
  background: #edf2f5;
  color: #4f5d68;
  font-size: 12px;
}
.badge.green {
  background: #e5f4ed;
  color: var(--green);
}
.badge.orange {
  background: #fff0dc;
  color: #9c5d08;
}
.badge.red {
  background: #fae7e7;
  color: var(--red);
}
.alerts > div {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.alerts > div:first-child {
  border: 0;
}
.alert-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--amber);
}
.alerts strong,
.alerts small {
  display: block;
}
.alerts small {
  color: var(--muted);
  margin-top: 4px;
}
.finance-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.finance-strip div {
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}
.finance-strip span,
.finance-strip strong {
  display: block;
}
.finance-strip span {
  color: var(--muted);
  font-size: 12px;
}
.finance-strip strong {
  font-size: 19px;
  margin-top: 5px;
}
.split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 14px;
  min-height: 690px;
}
.list-panel {
  padding: 14px;
  overflow: hidden;
}
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 12px;
}
.search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
}
.project-option {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  border-radius: 7px;
}
.project-option:hover,
.project-option.active {
  background: #f0f5f8;
}
.project-option strong,
.project-option small {
  display: block;
}
.project-option small {
  color: var(--muted);
  margin-top: 4px;
}
.detail {
  padding: 20px;
}
.detail-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.detail-actions {
  display: flex;
  gap: 7px;
}
.project-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #f8fafb;
  padding: 14px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.project-fields label,
.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.project-fields input,
.project-fields select,
.project-fields textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  margin-top: 5px;
  font: inherit;
  color: var(--text);
}
.project-fields textarea,
.field textarea {
  min-height: 70px;
  resize: vertical;
}
.budget-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 9px;
}
.budget-controls h3 {
  margin: 0;
}
.budget-table input {
  width: 100%;
  min-width: 70px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  padding: 6px;
}
.budget-table select,
.order-table select {
  width: 100%;
  min-width: 105px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 5px;
  padding: 6px;
  color: var(--text);
}
.budget-table select:focus,
.order-table select:focus {
  border-color: #9eb9ca;
  background: #fff;
  outline: 0;
}
.budget-table input:focus {
  border-color: #9eb9ca;
  background: #fff;
  outline: 0;
}
.totals {
  margin-left: auto;
  width: 380px;
  padding: 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 9px;
  margin-top: 13px;
}
.totals label {
  display: grid;
  grid-template-columns: 1fr 90px 110px;
  gap: 8px;
  align-items: center;
  margin: 9px 0;
  color: #c3d2dc;
}
.totals input {
  width: 70px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #41667e;
  background: #21465f;
  color: #fff;
}
.totals b {
  text-align: right;
  color: #fff;
}
.totals .grand {
  font-size: 18px;
  border-top: 1px solid #3a5b70;
  padding-top: 11px;
}
.section-tools {
  margin-bottom: 13px;
}
.wide-search {
  flex: 1;
}
.section-tools select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.table-panel {
  padding: 0;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f9fafb;
  white-space: nowrap;
}
th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 13px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.actions {
  display: flex;
  gap: 4px;
}
.icon-btn {
  border: 0;
  background: #edf2f5;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
}
.icon-btn.delete {
  color: var(--red);
}
.type-income {
  color: var(--green);
  font-weight: 700;
}
.type-expense {
  color: var(--red);
  font-weight: 700;
}
.amount {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 13px;
}
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  cursor: pointer;
}
.tabs button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.entity-card {
  padding: 18px;
}
.entity-card h3 {
  margin: 10px 0 4px;
}
.entity-card dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 7px;
  margin: 15px 0;
}
.entity-card dt {
  color: var(--muted);
}
.entity-card dd {
  margin: 0;
}
.entity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #e9f0f4;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.report-cards .entity-card {
  min-height: 210px;
}
.report-cards button {
  margin-top: 25px;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(680px, 90vw);
  box-shadow: 0 25px 90px #0005;
}
dialog::backdrop {
  background: #081822a6;
}
dialog form {
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 3px 0;
}
.close {
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field.full {
  grid-column: 1/-1;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.wrap-tools { flex-wrap: wrap; }
.module-heading,
.project-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 19px;
}
.module-heading h2,
.project-context h2 { margin: 3px 0 2px; }
.project-context p { margin: 0; color: var(--muted); }
.project-context select {
  min-width: 320px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.inline-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.subsection {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
}
.subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.subsection-head h3 { margin: 0; }
.file-list { display: flex; flex-wrap: wrap; gap: 7px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 6px 8px;
}
.file-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
  padding: 0;
}
.file-chip .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
  font-size: 12px;
}
.file-chip .remove-file { color: var(--red); font-weight: 800; }
.attach-button { white-space: nowrap; }
.attachment-count {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}
.employee-profile {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}
.employee-avatar {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.profile-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 12px 0; }
.mini-kpi { border: 1px solid var(--line); background: #f8fafb; border-radius: 9px; padding: 11px; }
.mini-kpi span, .mini-kpi strong { display: block; }
.mini-kpi span { color: var(--muted); font-size: 11px; }
.mini-kpi strong { margin-top: 5px; font-size: 17px; }
.currency-note { color: var(--muted); font-size: 11px; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 430px;
  background: var(--navy);
  color: #fff;
  border-radius: 9px;
  padding: 12px 16px;
  box-shadow: 0 12px 35px #0004;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); }
.form-hint { grid-column: 1/-1; margin: -2px 0 2px; color: var(--muted); font-size: 12px; }
.form-section-title {
  grid-column: 1/-1;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}
.table-input { width: 100%; min-width: 85px; border: 1px solid var(--line); border-radius: 5px; padding: 6px; }
.muted { color: var(--muted); }
.negative { color: var(--red); }
.positive { color: var(--green); }
.progress-inline { display: flex; align-items: center; gap: 8px; }
.progress-mini { width: 80px; height: 6px; background: var(--line); border-radius: 8px; overflow: hidden; }
.progress-mini i { display: block; height: 100%; width: var(--progress); background: var(--green); }
@media (max-width: 1250px) {
  .kpis,
  .kpis.compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }
  .list-panel {
    max-height: 300px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-actions .ghost:first-of-type { display: none; }
  .project-context { align-items: stretch; flex-direction: column; }
  .project-context select { min-width: 0; width: 100%; }
}

/* v1.4 · movimientos con múltiples ítems */
.movement-items-field { margin-top: 4px; }
.movement-items-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:10px; }
.movement-items-head label { display:block; font-weight:800; color:var(--text); margin:0; }
.movement-items-head small { display:block; color:var(--muted); margin-top:3px; }
.movement-items-editor { display:flex; flex-direction:column; gap:8px; }
.movement-item-row { display:grid; grid-template-columns:minmax(220px,2.3fr) .65fr .7fr 1fr .9fr 38px; gap:8px; align-items:end; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fafcff; }
.movement-item-row label { font-size:11px; color:var(--muted); }
.movement-item-row input,.movement-item-row select { margin-top:4px; }
.movement-line-total { min-height:43px; display:flex; flex-direction:column; justify-content:center; padding:0 8px; border-left:1px solid var(--line); }
.movement-line-total span { font-size:10px; color:var(--muted); text-transform:uppercase; font-weight:700; }
.movement-line-total strong { margin-top:3px; font-size:13px; }
.movement-auto-field { display:flex; flex-direction:column; justify-content:center; }
.checkbox-line { display:flex !important; align-items:center; gap:8px; font-weight:700; }
.checkbox-line input { width:auto !important; margin:0 !important; }
#movement-amount.readonly { background:#f1f5f9; font-weight:800; }
.movement-item-summary { display:flex; flex-direction:column; gap:3px; min-width:180px; }
.movement-item-summary span { display:block; }
.movement-item-summary small { color:var(--orange); font-weight:700; }

/* v1.4 · calendario compartido */
.calendar-heading p { margin:4px 0 0; color:var(--muted); }
.calendar-toolbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; padding:10px 14px; margin-bottom:12px; }
.calendar-toolbar h2 { margin:0; text-align:center; font-size:18px; }
.calendar-nav-actions { display:flex; gap:7px; }
.calendar-filters { display:flex; justify-content:flex-end; gap:7px; }
.calendar-filters select { min-width:150px; }
.calendar-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px; align-items:start; }
.calendar-panel { padding:0; overflow:hidden; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekday { padding:10px; text-align:center; font-size:11px; font-weight:800; color:var(--muted); background:#f8fafc; border-bottom:1px solid var(--line); }
.calendar-day { min-height:128px; padding:7px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.calendar-day:nth-child(7n) { border-right:0; }
.calendar-day.outside { background:#f8fafc; color:#94a3b8; }
.calendar-day.today { box-shadow:inset 0 0 0 2px var(--orange); }
.calendar-day-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:5px; }
.calendar-day-head strong { font-size:12px; }
.calendar-add-day { border:0; background:transparent; color:var(--blue); font-weight:900; cursor:pointer; opacity:.45; }
.calendar-day:hover .calendar-add-day { opacity:1; }
.calendar-events { display:flex; flex-direction:column; gap:4px; }
.calendar-event { border:0; border-radius:6px; padding:5px 6px; text-align:left; font-size:10px; font-weight:700; cursor:pointer; background:#e8f1fb; color:#174f80; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.calendar-event span { margin-right:4px; opacity:.75; }
.calendar-event.meeting { background:#ede9fe; color:#5b21b6; }
.calendar-event.visit { background:#ecfdf5; color:#047857; }
.calendar-event.high { background:#fff1f2; color:#be123c; }
.calendar-event.done { background:#f1f5f9; color:#64748b; text-decoration:line-through; }
.calendar-event.cancelled { background:#f8fafc; color:#94a3b8; text-decoration:line-through; }
.calendar-more { color:var(--muted); padding-left:4px; }
.calendar-upcoming { padding:14px; }
.activity-list-row { width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; padding:9px 4px; display:grid; grid-template-columns:46px 1fr auto; gap:10px; text-align:left; align-items:center; cursor:pointer; }
.activity-list-row:hover { background:#f8fafc; }
.activity-list-row.compact { grid-template-columns:44px 1fr; }
.activity-list-row > span:nth-child(2) { min-width:0; }
.activity-list-row strong { display:block; }
.activity-list-row small { display:block; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.activity-date-badge { display:flex; flex-direction:column; align-items:center; justify-content:center; width:42px; height:42px; border-radius:9px; background:#eff6ff; color:#1d4f7a; }
.activity-date-badge strong { font-size:15px; line-height:1; }
.activity-date-badge small { margin:3px 0 0 !important; font-size:9px; text-transform:uppercase; color:inherit !important; }
.dashboard-activities-panel { margin-top:14px; }
.dashboard-activities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }

@media (max-width: 1200px) {
  .movement-item-row { grid-template-columns:minmax(200px,2fr) .7fr .8fr 1fr; }
  .movement-line-total { border-left:0; }
  .calendar-layout { grid-template-columns:1fr; }
  .calendar-upcoming { order:-1; }
  .dashboard-activities { grid-template-columns:1fr; }
}

