.ok { color: #0a7a37; }
.warn { color: #a52a2a; }

.card {
  padding: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}

.card.success {
  border-color: #4caf50;
  background: #f0fff4;
}

body {
  background: #f6f7fb;
  color: #1f2933;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}

.sir-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(90deg, #041a42 0%, #0d3a8a 60%, #1671d9 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(1, 19, 56, 0.35);
}

.sir-navbar__brand a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
}

.sir-navbar__brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.sir-navbar__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  opacity: 0.7;
}

.sir-navbar__section {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sir-navbar__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sir-navbar__links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sir-navbar__links a:hover,
.sir-navbar__links a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sir-navbar__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sir-navbar__welcome {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.sir-main {
  margin-top: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.logout-form {
  margin: 0;
}

.sir-btn--logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sir-btn--logout:hover,
.sir-btn--logout:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sir-btn--logout svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.meta-info {
  font-size: 0.9rem;
  color: #5a627a;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.panel-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel-actions .panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bulk-form {
  margin-top: 0.5rem;
}

.bulk-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.bulk-actions select {
  min-width: 220px;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(15, 40, 90, 0.25);
  font-size: 0.9rem;
}

.sir-btn--compact {
  padding: 0.35rem 1.2rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .sir-navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sir-navbar__brand a {
    padding-bottom: 0.3rem;
  }

  .sir-navbar__links {
    width: 100%;
    justify-content: flex-start;
  }

  .sir-navbar__user {
    width: 100%;
    justify-content: space-between;
  }
}

table {
  width: 100%;
  overflow: auto;
}

.cierre-form {
  display: grid;
  gap: 1.5rem;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-weight: 600;
}

.help-text {
  color: #6c6c6c;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.denomination-section {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.25rem;
  background: #fafafa;
}

.denomination-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.denomination-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.denomination-summary--footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #d5dcec;
}

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

.denomination-grid {
  display: grid;
  gap: 0.75rem;
}

.denomination-field {
  display: grid;
  gap: 0.25rem;
}

.denomination-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  justify-content: space-between;
  width: 100%;
}

.denomination-icon {
  width: 70px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.denomination-amount {
  font-size: 0.85rem;
  color: var(--sircom-primary, #0b6cd4);
}

.denomination-field input {
  max-width: 100%;
}

.denomination-diff {
  font-weight: 600;
}

.denomination-diff.diff-neutral {
  color: #1f2933;
}

.status {
  font-weight: 600;
}

.status.neutral {
  color: #1f2933;
}

.pdf-actions {
  margin-bottom: 0.75rem;
}

.pdf-actions a {
  font-weight: 600;
  color: #1f5bd7;
}

.pdf-preview {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
  margin-bottom: 1.5rem;
}

.pdf-preview summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pdf-frame {
  width: 100%;
}

.pdf-frame object,
.pdf-preview iframe,
.pdf-viewer canvas {
  width: 100%;
  min-height: 60vh;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #f7f7f7;
}

.pdf-viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdf-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.pdf-controls button {
  padding: 0.25rem 0.75rem;
}

.pdf-page-info {
  font-weight: 600;
}

.pdf-fallback {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  background: #f1f1f1;
  border: 1px dashed #c7c7c7;
  border-radius: 8px;
}

.pdf-error {
  background: #fff0f0;
  border: 1px solid #f5b5b5;
  color: #a12d2d;
}

.pdf-autofill-message {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.pdf-autofill-message span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.pdf-autofill-message .info {
  background: #eef2ff;
  color: #2f3a8c;
}

.pdf-autofill-message .success {
  background: #f0fff4;
  color: #0f5132;
}

.pdf-autofill-message .error {
  background: #fff0f0;
  color: #a12d2d;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.logout-form button:hover,
.logout-form button:focus-visible {
  text-decoration: underline;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.message {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.message.success {
  background: #f0fff4;
  color: #0f5132;
  border: 1px solid #b7f0c6;
}

.message.error {
  background: #fff0f0;
  color: #842029;
  border: 1px solid #f5b5b5;
}

.message.info {
  background: #eef2ff;
  color: #2f3a8c;
  border: 1px solid #cdd6ff;
}

.message.warning {
  background: #fff5e5;
  color: #8a4b16;
  border: 1px solid #ffd599;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.table-panel table {
  min-width: 1100px;
  border-collapse: collapse;
  width: 100%;
}

.table-panel th,
.table-panel td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e6e8ef;
  white-space: nowrap;
}

.table-panel thead th {
  background: #f5f7ff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 0.75rem;
  color: #516076;
}

.nowrap {
  white-space: nowrap;
}

.amount {
  text-align: right;
  font-feature-settings: "tnum";
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag--success {
  background: rgba(45, 157, 91, 0.1);
  color: #2d9d5b;
}

.tag--warn {
  background: rgba(217, 72, 72, 0.12);
  color: #c73838;
}

.tag--neutral {
  background: rgba(255, 167, 64, 0.2);
  color: #c36a08;
}

.actions-cell {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-menu__toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  color: #1f2d4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-menu__toggle:hover,
.action-menu__toggle:focus-visible {
  background: rgba(31, 91, 215, 0.1);
  color: #0b1f4b;
  outline: none;
}

.action-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #dee2ef;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(18, 33, 61, 0.12);
  padding: 0.4rem 0;
  display: none;
  z-index: 999;
}

.action-menu__dropdown a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  color: #0b1f4b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.action-menu__dropdown a:hover {
  background: #eef2ff;
  color: #0b1f4b;
}

.action-menu.open .action-menu__dropdown {
  display: block;
  animation: menuFade 0.12s ease-out;
}

.export-menu {
  position: relative;
  display: inline-block;
  margin-left: 0.75rem;
}

.export-menu summary {
  list-style: none;
  background: #0b6cd4;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}

.export-menu[open] summary,
.export-menu summary:focus-visible,
.export-menu summary:hover {
  background: #084c9f;
  color: #fff;
}

.export-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #10182f;
  border-radius: 12px;
  padding: 0.4rem 0;
  box-shadow: 0 14px 24px rgba(10, 22, 50, 0.25);
  display: none;
  z-index: 999;
}

.export-menu__dropdown a {
  display: block;
  padding: 0.5rem 0.95rem;
  color: #f5f7ff;
  text-decoration: none;
  font-size: 0.85rem;
}

.export-menu__dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.export-menu[open] .export-menu__dropdown {
  display: block;
}

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .denomination-summary {
    align-items: center;
  }
}
.table-overlay {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #e3e8f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 33, 61, 0.06);
}

.grid-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.grid-table thead {
  background: #062959;
  color: #fff;
}

.grid-table th,
.grid-table td {
  padding: 0.75rem 0.85rem;
  white-space: nowrap;
  text-align: left;
  border-bottom: 1px solid #e1e6f2;
}

.grid-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.grid-table tbody tr:last-child td {
  border-bottom: none;
}

.grid-table tbody tr:hover {
  background: #f7f9ff;
}

.grid-table .actions-cell {
  position: relative;
  width: 70px;
  text-align: right;
}

/* --- Sircom closure experience --- */
:root {
  --sircom-primary: #0b6cd4;
  --sircom-primary-dark: #053980;
  --sircom-accent: #00c7ff;
  --sircom-muted: #6f7994;
  --sircom-surface: #f6f9ff;
}

.sircom-cierre {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  animation: fadeUp 0.4s ease forwards;
}

.sircom-hero {
  background: radial-gradient(circle at top right, rgba(0, 199, 255, 0.2), transparent),
              linear-gradient(120deg, #05245a, #0b6cd4);
  border-radius: 20px;
  padding: 1.6rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.sircom-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.sircom-hero__branding {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 1;
  max-width: 640px;
}

.sircom-hero__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.sircom-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 0.7rem;
  margin: 0 0 .25rem;
  color: rgba(255, 255, 255, 0.7);
}

.sircom-hero h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
}

.sircom-hero__title {
  color: #ff9a3c;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sircom-hero p {
  margin: .2rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.sircom-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  z-index: 1;
}

.sircom-chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sircom-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sircom-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(11, 108, 212, 0.08);
  box-shadow: 0 12px 34px rgba(7, 23, 66, 0.08);
  animation: floatUp .6s ease both;
}

.sircom-card--glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.sircom-card--glow {
  border: 1px solid rgba(0, 199, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 47, 108, 0.15);
}

.sircom-card--pulse {
  border-color: rgba(0, 199, 255, 0.4);
  animation: pulseCard 2.5s ease infinite;
}

.sircom-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.sircom-label {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .68rem;
  color: var(--sircom-primary);
  margin: 0;
}

.sircom-fields {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sircom-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sircom-field--hidden {
  display: none;
}

.sircom-field--notes textarea {
  background: #fffdf8;
  border: 1px solid rgba(255, 170, 64, 0.35);
}

.sircom-transfer-block {
  border: 1px dashed rgba(11, 108, 212, 0.25);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(6, 41, 89, 0.02);
}

.sircom-transfer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sircom-transfer-input {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(11, 108, 212, 0.3);
  font-size: 0.95rem;
}

.sircom-transfer-input::placeholder {
  color: #9aa7c4;
}

.sircom-field input[type="file"] {
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px dashed rgba(11, 108, 212, 0.4);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.sircom-field input[type="file"]::-webkit-file-upload-button {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: var(--sircom-primary);
  color: #fff;
  cursor: pointer;
  margin-right: 0.75rem;
}

.sircom-field textarea {
  min-height: 140px;
  padding: 0.75rem;
  resize: vertical;
}

.sircom-field:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 108, 212, 0.08);
}

.sircom-field__label {
  font-weight: 600;
  color: #182642;
  font-size: .95rem;
}

.sircom-alert {
  border-radius: 14px;
  padding: .85rem 1rem;
  background: rgba(0, 108, 212, 0.08);
  color: #0a2d52;
  font-weight: 500;
  border: 1px solid rgba(11, 108, 212, 0.15);
  animation: fadeUp .3s ease both;
}

.sircom-alert:empty {
  display: none;
}

.sircom-alert--error {
  background: rgba(220, 38, 38, 0.08);
  color: #7f1d1d;
  border-color: rgba(220, 38, 38, 0.2);
}

.sircom-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .4rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sircom-list li {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
}

.sircom-muted {
  color: var(--sircom-muted);
  font-size: .85rem;
}

.sircom-denoms .denomination-section {
  border: none;
  padding: 0;
  background: transparent;
}

.sircom-denoms .denomination-columns {
  gap: 1.2rem;
}

.sircom-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}

.sircom-btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sircom-btn--primary {
  background: var(--sircom-primary);
  color: #fff;
  box-shadow: 0 12px 25px rgba(11, 108, 212, 0.3);
}

.sircom-btn--primary:hover {
  transform: translateY(-1px);
  background: var(--sircom-primary-dark);
}

.sircom-btn--ghost {
  background: transparent;
  color: var(--sircom-primary);
  border: 1px solid rgba(11, 108, 212, 0.4);
}

.sircom-btn--ghost:hover {
  border-color: var(--sircom-primary);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseCard {
  0% { box-shadow: 0 12px 20px rgba(0, 116, 179, 0.15); }
  50% { box-shadow: 0 18px 32px rgba(0, 116, 179, 0.25); }
  100% { box-shadow: 0 12px 20px rgba(0, 116, 179, 0.15); }
}

@media (max-width: 640px) {
  .sircom-hero {
    padding: 1.1rem;
  }
  .sircom-card {
    padding: 1rem;
  }
  .sircom-form__actions {
    flex-direction: column;
  }
  .sircom-btn {
    width: 100%;
  }
}
/* Sircom form layout */
.sir-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sir-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 90, 0.12);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 12px 26px rgba(15, 40, 90, 0.08);
}

.sir-legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b2f6b;
  margin-bottom: 1rem;
}

.sir-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .sir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sir-field-wide {
    grid-column: span 2;
  }

  .sir-grid--observaciones {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .sir-grid--transferencias {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  }
}

@media (min-width: 1200px) {
  .sir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sir-field-wide {
    grid-column: span 2;
  }

  .sir-grid--observaciones {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .sir-grid--transferencias {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  color: #14213d;
}

.sir-input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 40, 90, 0.25);
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #0b6cd4;
  box-shadow: 0 0 0 3px rgba(11, 108, 212, 0.25);
  outline: none;
}

.field-error {
  font-size: 0.82rem;
  color: #c0392b;
}

.sir-file-field input[type="file"] {
  padding: 0.55rem;
}

.sir-file-status {
  font-size: 0.85rem;
  color: #5a627a;
}

.sir-field-wide {
  width: 100%;
}

.sir-file-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sir-file-field .sir-input[type="file"] {
  width: 100%;
  max-width: 100%;
}

.sir-file-summary {
  background: #f4f7ff;
  border: 1px dashed rgba(13, 58, 138, 0.35);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: #14213d;
}

.sir-file-summary ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.sir-file-summary li {
  margin-bottom: 0.2rem;
}

.sir-file-summary span {
  font-weight: 600;
}

.sir-egresos-panel textarea {
  min-height: 140px;
  background: #fffdf8;
  border: 1px solid rgba(255, 170, 64, 0.35);
}

.sir-dotted {
  border: 1px dashed rgba(15, 40, 90, 0.35);
  border-radius: 16px;
  padding: 0.85rem;
}

.sir-transfer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sir-transfer-actions {
  display: flex;
  gap: 0.5rem;
}

.sir-transfer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.sir-transfer-headings {
  display: grid;
  grid-template-columns: minmax(130px, 160px) 1fr;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5671;
  margin-top: 0.25rem;
}

.sir-transfer-item {
  display: grid;
  grid-template-columns: minmax(130px, 160px) 1fr;
  gap: 0.75rem;
  align-items: center;
}

.sir-transfer-input--value {
  text-align: right;
}

.sir-transfer-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.sir-transfer-summary strong {
  color: #0b2f6b;
}

.sir-transfer-note {
  font-size: 0.82rem;
  color: #5a627a;
  margin: 0;
}

.sir-transfer-note[data-state="warn"] {
  color: #b33c2f;
  font-weight: 600;
}

.sir-transfer-note[data-state="ok"] {
  color: #0a7a37;
}

.transfer-detail-list {
  margin: 0.35rem 0 0 1.25rem;
  padding: 0;
  list-style: disc;
  color: #14213d;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .sir-transfer-headings,
  .sir-transfer-item {
    grid-template-columns: 1fr;
  }
}

.sir-transfer-input {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 40, 90, 0.25);
  width: 100%;
}

.sir-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sir-btn {
  border-radius: 999px;
  border: none;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sir-btn--primary {
  background: #0b6cd4;
  color: #fff;
  box-shadow: 0 12px 20px rgba(11, 108, 212, 0.25);
}

.sir-btn--ghost {
  background: transparent;
  border: 1px solid rgba(11, 108, 212, 0.5);
  color: #0b6cd4;
}

.sir-btn:hover {
  transform: translateY(-1px);
}
.sir-notes textarea {
  min-height: 140px;
  background: #fff;
  border: 1px solid rgba(15, 40, 90, 0.25);
}

.sir-input--readonly {
  background: #f3f5fc;
  color: #4f5871;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
