/* ============================================================
   compras.css - Estilos modulo compras/entradas
   Ultra-modular: skeleton, hero, KPIs, filters, table, cards,
   form, search, detail, timeline, toast, animations
   ============================================================ */

/* ====== ROOT & ANIMATIONS ====== */
.com-root { max-width: 1200px; margin: 0 auto; }

@keyframes comFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes comFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes comPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes comSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== SKELETON ====== */
.com-sk { padding: 1.25rem; }
.com-sk__bar { height: 16px; border-radius: 8px; background: var(--brand-border); animation: comPulse 1.4s ease-in-out infinite; }
.com-sk__bar--lg { width: 50%; margin-bottom: 1.25rem; }
.com-sk__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .75rem; margin-bottom: 1.5rem; }
.com-sk__card { height: 64px; border-radius: 12px; background: var(--brand-border); animation: comPulse 1.4s ease-in-out infinite; }
.com-sk__lines { display: flex; flex-direction: column; gap: .5rem; }
.com-sk__line { height: 42px; border-radius: 8px; background: var(--brand-border); animation: comPulse 1.4s ease-in-out infinite; }
@media (max-width:768px) { .com-sk__grid { grid-template-columns: repeat(2,1fr); } }

/* ====== HERO HEADER ====== */
.com-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; margin-bottom: .75rem;
  background: var(--brand-surface); border-radius: 16px;
  border: 1px solid var(--brand-border);
  animation: comFadeUp .4s ease both;
}
.com-hero__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(147,193,31,.12), rgba(147,193,31,.04));
  color: var(--brand-accent); font-size: 1.15rem;
}
.com-hero__info { display: flex; align-items: center; gap: .875rem; min-width: 0; }
.com-hero__title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.com-hero__sub { font-size: .8rem; color: var(--brand-text-muted); margin-top: .15rem; }
@media (max-width:768px) {
  .com-hero { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .com-hero__title { font-size: 1.05rem; }
}

/* ====== ACTION BUTTONS ====== */
.com-action-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem; border-radius: 10px; border: none;
  font-size: .84rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
  position: relative; overflow: hidden;
}
.com-action-btn:disabled { opacity: .45; cursor: not-allowed; }
.com-action-btn:active:not(:disabled) { transform: scale(.97); }

.com-action-btn--primary {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-highlight, #b5e334));
  color: var(--brand-primary); box-shadow: 0 2px 8px rgba(147,193,31,.25);
}
.com-action-btn--primary:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(147,193,31,.35); transform: translateY(-1px); }

.com-action-btn--ghost {
  background: transparent; color: var(--brand-text-muted);
  border: 1px solid var(--brand-border);
}
.com-action-btn--ghost:hover { background: var(--brand-bg); color: var(--brand-text); border-color: var(--brand-text-muted); }

.com-action-btn--danger { background: #ef4444; color: #fff; }
.com-action-btn--danger:hover:not(:disabled) { background: #dc2626; }

.com-action-btn--danger-outline {
  background: transparent; color: #ef4444;
  border: 1.5px solid #fca5a5;
}
.com-action-btn--danger-outline:hover { background: #fef2f2; border-color: #ef4444; }

.com-action-btn--outline {
  background: transparent; color: var(--brand-accent);
  border: 1.5px solid var(--brand-accent);
}
.com-action-btn--outline:hover { background: rgba(147,193,31,.08); }

@media (max-width:768px) {
  .com-action-btn span { display: none; }
  .com-action-btn i { margin: 0; }
  .com-action-btn { padding: .5rem .7rem; }
}

/* ====== KPI STRIP ====== */
.com-kpi-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .625rem; margin-bottom: .75rem;
  animation: comFadeUp .45s ease both;
  animation-delay: .05s;
}
.com-kpi {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: 14px;
  background: var(--brand-surface); border: 1px solid var(--brand-border);
  transition: all .2s ease;
}
.com-kpi:hover { border-color: var(--brand-accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.com-kpi__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-bg); color: var(--brand-text-muted); font-size: .9rem;
  flex-shrink: 0; transition: all .2s;
}
.com-kpi--ok .com-kpi__icon { background: #dcfce7; color: #16a34a; }
.com-kpi--warn .com-kpi__icon { background: #fef9c3; color: #ca8a04; }
.com-kpi--danger .com-kpi__icon { background: #fee2e2; color: #dc2626; }
.com-kpi--accent .com-kpi__icon { background: rgba(147,193,31,.12); color: var(--brand-accent); }
.com-kpi__body { min-width: 0; }
.com-kpi__val { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.com-kpi__label { display: block; font-size: .68rem; color: var(--brand-text-muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width:768px) {
  .com-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .com-kpi-strip .com-kpi:last-child { grid-column: 1 / -1; }
}

/* ====== FILTER BAR ====== */
.com-filterbar {
  background: var(--brand-surface); border-radius: 14px;
  border: 1px solid var(--brand-border);
  padding: .75rem 1rem; margin-bottom: .75rem;
  animation: comFadeUp .5s ease both; animation-delay: .1s;
}
.com-filterbar__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.com-sel, .com-date {
  padding: .45rem .65rem; border: 1.5px solid var(--brand-border);
  border-radius: 10px; background: var(--brand-bg); color: var(--brand-text);
  font-size: .82rem; font-family: inherit; outline: none;
  transition: all .18s;
}
.com-sel:focus, .com-date:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(147,193,31,.1); }
.com-sel:hover, .com-date:hover { border-color: var(--brand-text-muted); }

.com-filter-group--dates { display: flex; align-items: center; gap: .3rem; }
.com-date-arrow { color: var(--brand-text-muted); font-size: .7rem; }

.com-filter-clear {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--brand-border); background: var(--brand-bg);
  color: var(--brand-text-muted); cursor: pointer; transition: all .15s; font-size: .82rem;
}
.com-filter-clear:hover { color: var(--brand-accent); border-color: var(--brand-accent); }

@media (max-width:768px) {
  .com-sel, .com-date { font-size: .78rem; flex: 1; min-width: 0; }
  .com-filter-group { flex: 1; min-width: calc(50% - .25rem); }
  .com-filter-group--dates { flex-basis: 100%; }
}

/* ====== CHIPS & BADGES ====== */
.com-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .55rem; border-radius: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
}
.com-chip--blue { background: #dbeafe; color: #2563eb; }
.com-chip--purple { background: #ede9fe; color: #7c3aed; }
.com-chip i { font-size: .6rem; }

.com-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600;
}
.com-badge i { font-size: .65rem; }
.com-badge--ok { background: #dcfce7; color: #16a34a; }
.com-badge--warn { background: #fef9c3; color: #ca8a04; }
.com-badge--danger { background: #fee2e2; color: #dc2626; }
.com-badge--lg { padding: .3rem .8rem; font-size: .78rem; }

.com-code {
  display: inline-block; padding: .1rem .45rem; border-radius: 5px;
  background: var(--brand-bg); font-size: .72rem; font-weight: 600;
  color: var(--brand-text-muted); margin-right: .35rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  border: 1px solid var(--brand-border);
}

/* ====== TABLE ====== */
.com-tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--brand-border); background: var(--brand-surface); }
.com-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.com-tbl th {
  padding: .65rem .85rem; text-align: left; font-size: .72rem;
  font-weight: 600; color: var(--brand-text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--brand-bg); border-bottom: 1.5px solid var(--brand-border);
  position: sticky; top: 0; z-index: 1;
}
.com-tbl td { padding: .65rem .85rem; border-bottom: 1px solid var(--brand-border); vertical-align: middle; }
.com-tbl tbody tr { transition: background .12s; animation: comFadeUp .3s ease both; }
.com-tbl__row { cursor: pointer; }
.com-tbl__row:hover { background: rgba(147,193,31,.04); }
.com-tbl__row:active { background: rgba(147,193,31,.08); }
.com-tbl__row--item { animation: comFadeUp .3s ease both; }
.com-row-loading { opacity: .5; pointer-events: none; }
.com-tbl .r { text-align: right; }
.com-tbl .c { text-align: center; }
.com-tbl .muted { color: var(--brand-text-muted); }
.com-tbl .mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem; }

.com-tbl__doc { display: flex; align-items: center; gap: .5rem; }
.com-tbl__consec { font-weight: 700; font-size: .88rem; }
.com-tbl__provider { display: flex; align-items: center; gap: .5rem; }
.com-tbl__arrow { color: var(--brand-text-muted); font-size: .7rem; opacity: .4; transition: all .15s; }
.com-tbl__row:hover .com-tbl__arrow { opacity: 1; color: var(--brand-accent); transform: translateX(2px); }

.com-avatar-sm {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-bg); color: var(--brand-text-muted);
  font-size: .7rem; flex-shrink: 0; border: 1px solid var(--brand-border);
}

/* Editable table */
.com-tbl--editable td { padding: .5rem .85rem; }
.com-inline-input {
  width: 90px; padding: .4rem .55rem; border: 1.5px solid var(--brand-border);
  border-radius: 8px; background: var(--brand-bg); color: var(--brand-text);
  font-size: .82rem; text-align: right; font-family: inherit; outline: none;
  transition: all .18s;
}
.com-inline-input:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(147,193,31,.1); background: var(--brand-surface); }
.com-inline-input:hover { border-color: var(--brand-text-muted); }

/* ====== EMPTY STATE ====== */
.com-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3.5rem 1.5rem; text-align: center;
  animation: comFadeIn .4s ease;
}
.com-empty-state__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-bg); border: 2px dashed var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--brand-text-muted); margin-bottom: 1rem;
}
.com-empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.com-empty-state p { font-size: .85rem; color: var(--brand-text-muted); margin-bottom: 1rem; }

/* ====== BREADCRUMB ====== */
.com-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--brand-text-muted);
  margin-bottom: .75rem; animation: comFadeIn .3s ease;
}
.com-breadcrumb a {
  color: var(--brand-accent); text-decoration: none; font-weight: 500;
  display: flex; align-items: center; gap: .3rem;
  transition: opacity .15s;
}
.com-breadcrumb a:hover { opacity: .7; }
.com-breadcrumb > i { font-size: .55rem; }
.com-breadcrumb span { font-weight: 600; color: var(--brand-text); }

/* ====== PAGE HEADER ====== */
.com-page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
  animation: comFadeUp .35s ease both;
}
.com-page-header__left { display: flex; align-items: center; gap: .75rem; }
.com-page-header__title { font-size: 1.15rem; font-weight: 700; }
.com-page-header__sub { font-size: .78rem; color: var(--brand-text-muted); margin-top: .1rem; }
.com-page-header__actions { display: flex; gap: .5rem; }

.com-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-surface); border: 1.5px solid var(--brand-border);
  color: var(--brand-text); cursor: pointer; transition: all .18s;
  flex-shrink: 0;
}
.com-back-btn:hover { border-color: var(--brand-accent); color: var(--brand-accent); transform: translateX(-2px); }

@media (max-width:768px) {
  .com-page-header { flex-wrap: wrap; }
  .com-page-header__title { font-size: 1rem; }
  .com-page-header__actions { width: 100%; justify-content: flex-end; }
}

/* ====== CARD SECTION ====== */
.com-card-section {
  background: var(--brand-surface); border-radius: 16px;
  border: 1px solid var(--brand-border); margin-bottom: .75rem;
  overflow: hidden; animation: comFadeUp .4s ease both;
}
.com-card-section__header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--brand-border);
  position: relative;
}
.com-card-section__header h3 { font-size: .92rem; font-weight: 700; }
.com-card-section__header p { font-size: .76rem; color: var(--brand-text-muted); margin-top: .1rem; }
.com-card-section__icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(147,193,31,.12), rgba(147,193,31,.04));
  color: var(--brand-accent); font-size: .85rem; flex-shrink: 0;
}
.com-step-num {
  position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-bg); border: 2px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--brand-text-muted);
}

/* ====== FORM GRID ====== */
.com-form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .875rem 1.25rem; padding: 1.25rem;
}
.com-fg { position: relative; }
.com-fg--full { grid-column: 1 / -1; }
.com-fg--trm { /* TRM field - display toggled by JS */ }
.com-fg__label {
  display: block; font-size: .72rem; font-weight: 600;
  color: var(--brand-text-muted); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .4rem;
}
.com-req { color: #ef4444; }
.com-input {
  width: 100%; padding: .55rem .75rem; border: 1.5px solid var(--brand-border);
  border-radius: 10px; background: var(--brand-bg);
  color: var(--brand-text); font-size: .85rem; font-family: inherit;
  outline: none; transition: all .18s;
}
.com-input:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(147,193,31,.1); background: var(--brand-surface); }
.com-input:hover { border-color: var(--brand-text-muted); }
.com-textarea { resize: vertical; min-height: 56px; }

.com-select-wrap { position: relative; }
.com-select-wrap select { appearance: none; padding-right: 2rem; cursor: pointer; }
.com-select-wrap__arrow {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--brand-text-muted); font-size: .65rem; pointer-events: none;
}

.com-input-icon { position: relative; }
.com-input-icon > i {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--brand-text-muted); font-size: .75rem; pointer-events: none;
}
.com-input-icon > input { padding-left: 2.2rem; }

/* Currency toggle */
.com-currency-toggle { display: flex; gap: .35rem; }
.com-cur-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .5rem .65rem; border: 1.5px solid var(--brand-border);
  border-radius: 10px; background: var(--brand-bg);
  color: var(--brand-text-muted); font-size: .82rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .18s;
}
.com-cur-btn:hover { border-color: var(--brand-text-muted); }
.com-cur-btn--active {
  border-color: var(--brand-accent); color: var(--brand-accent);
  background: rgba(147,193,31,.06);
}
.com-cur-flag { font-weight: 700; }

@media (max-width:768px) {
  .com-form-grid { grid-template-columns: 1fr; padding: 1rem; }
}

/* ====== SEARCH AREA ====== */
.com-search-area { position: relative; padding: 0 1.25rem 1rem; }
.com-searchbox { position: relative; }
.com-searchbox__icon {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--brand-text-muted); font-size: .82rem; pointer-events: none;
  transition: color .18s;
}
.com-searchbox__input {
  width: 100%; padding: .65rem .85rem .65rem 2.4rem;
  border: 1.5px solid var(--brand-border); border-radius: 12px;
  background: var(--brand-bg); color: var(--brand-text);
  font-size: .88rem; font-family: inherit; outline: none; transition: all .18s;
}
.com-searchbox__input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(147,193,31,.1);
  background: var(--brand-surface);
}
.com-searchbox__input:focus ~ .com-searchbox__icon { color: var(--brand-accent); }
.com-searchbox__kbd {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  padding: .15rem .45rem; border-radius: 5px; font-size: .65rem;
  background: var(--brand-surface); border: 1px solid var(--brand-border);
  color: var(--brand-text-muted); font-family: inherit;
}

/* Dropdown */
.com-dropdown {
  position: absolute; top: calc(100% + 6px); left: 1.25rem; right: 1.25rem;
  background: var(--brand-surface); border: 1.5px solid var(--brand-border);
  border-radius: 14px; max-height: 320px; overflow-y: auto; z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,.12); display: none;
}
.com-dropdown--open { display: block; animation: comSlideDown .2s ease; }
.com-dropdown__item {
  padding: .65rem .9rem; border-bottom: 1px solid var(--brand-border);
  cursor: pointer; transition: background .12s;
}
.com-dropdown__item:hover { background: rgba(147,193,31,.04); }
.com-dropdown__item:last-child { border-bottom: none; }
.com-dropdown__main { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; }
.com-dropdown__name { font-size: .86rem; font-weight: 500; }
.com-dropdown__meta { display: flex; gap: .85rem; font-size: .72rem; color: var(--brand-text-muted); }
.com-dropdown__meta i { margin-right: .2rem; font-size: .65rem; }
.com-dropdown__loading, .com-dropdown__empty {
  padding: 1.25rem; text-align: center; color: var(--brand-text-muted); font-size: .84rem;
}
.com-dropdown__loading i { margin-right: .35rem; }
.com-dropdown__empty i { display: block; font-size: 1.2rem; margin-bottom: .4rem; opacity: .4; }

@media (max-width:768px) {
  .com-search-area { padding: 0 1rem .75rem; }
  .com-searchbox__kbd { display: none; }
  .com-dropdown { left: 1rem; right: 1rem; }
}

.com-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; cursor: pointer; background: transparent;
  transition: all .18s;
}
.com-icon-btn--remove { color: var(--brand-text-muted); }
.com-icon-btn--remove:hover { background: #fee2e2; color: #ef4444; }

/* Empty items */
.com-empty-items {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem 1rem; text-align: center; color: var(--brand-text-muted);
}
.com-empty-items__circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-bg); border: 2px dashed var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: .75rem;
}
.com-empty-items p { font-size: .88rem; font-weight: 500; margin-bottom: .25rem; }
.com-empty-items small { font-size: .75rem; opacity: .7; }

/* ====== TOTALS BAR ====== */
.com-totals-bar {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.5rem; padding: 1rem 1.5rem;
  background: var(--brand-surface); border-radius: 16px;
  border: 1px solid var(--brand-border);
  animation: comFadeUp .45s ease both;
}
.com-totals-bar__item { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--brand-text-muted); }
.com-totals-bar__item i { color: var(--brand-accent); font-size: .75rem; }
.com-totals-bar__total {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(147,193,31,.08), rgba(147,193,31,.02));
  border: 1px solid rgba(147,193,31,.2);
}
.com-totals-bar__total span { font-size: .78rem; color: var(--brand-text-muted); text-transform: uppercase; font-weight: 600; }
.com-totals-bar__total strong { font-size: 1.15rem; font-family: 'SF Mono', 'Fira Code', monospace; }
@media (max-width:768px) {
  .com-totals-bar { flex-wrap: wrap; gap: .75rem; padding: .875rem 1rem; justify-content: center; }
  .com-totals-bar__total { width: 100%; justify-content: center; }
}

/* ====== DETAIL HERO ====== */
.com-det-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
  animation: comFadeUp .35s ease both;
}
.com-det-hero__left { display: flex; align-items: flex-start; gap: .75rem; }
.com-det-hero__title-row { display: flex; align-items: center; gap: .6rem; }
.com-det-hero__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.com-det-hero__status { display: flex; align-items: center; gap: .75rem; margin-top: .35rem; }
.com-det-hero__date { font-size: .78rem; color: var(--brand-text-muted); }
.com-det-hero__actions { display: flex; gap: .5rem; flex-shrink: 0; }
@media (max-width:768px) {
  .com-det-hero { flex-direction: column; }
  .com-det-hero__title { font-size: 1.1rem; }
  .com-det-hero__actions { width: 100%; justify-content: flex-end; }
}

/* ====== INFO GRID ====== */
.com-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .25rem 1.5rem; padding: 1.25rem;
}
.com-info-item { padding: .5rem 0; }
.com-info-item--full { grid-column: 1 / -1; }
.com-info-item__label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 600; color: var(--brand-text-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem;
}
.com-info-item__label i { font-size: .65rem; width: 14px; text-align: center; }
.com-info-item__val { font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
@media (max-width:768px) {
  .com-info-grid { grid-template-columns: 1fr 1fr; padding: 1rem; }
}
@media (max-width:480px) {
  .com-info-grid { grid-template-columns: 1fr; }
}

/* ====== SUMMARY CARD ====== */
.com-summary-card {
  margin: 0 0 .75rem;
  padding: 1rem 1.5rem; border-radius: 16px;
  background: var(--brand-surface); border: 1px solid var(--brand-border);
  animation: comFadeUp .5s ease both;
}
.com-summary-card__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; font-size: .88rem; color: var(--brand-text-muted);
}
.com-summary-card__row .mono { color: var(--brand-text); font-family: 'SF Mono', 'Fira Code', monospace; }
.com-summary-card__total {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 0 0; margin-top: .5rem;
  border-top: 2px solid var(--brand-border);
  font-size: 1.15rem; font-weight: 700;
}
.com-summary-card__total .mono { font-family: 'SF Mono', 'Fira Code', monospace; color: var(--brand-accent); }

/* ====== TIMELINE ====== */
.com-timeline { padding: .75rem 1.25rem 1.25rem; }
.com-timeline__item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding-bottom: 1rem; position: relative;
}
.com-timeline__item:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 18px; bottom: 0;
  width: 2px; background: var(--brand-border);
}
.com-timeline__dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-bg); border: 2px solid var(--brand-border);
  flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1;
}
.com-timeline__item--ok .com-timeline__dot { border-color: #16a34a; background: #dcfce7; }
.com-timeline__item--warn .com-timeline__dot { border-color: #ca8a04; background: #fef9c3; }
.com-timeline__item--danger .com-timeline__dot { border-color: #dc2626; background: #fee2e2; }
.com-timeline__content strong { display: block; font-size: .84rem; }
.com-timeline__content span { font-size: .75rem; color: var(--brand-text-muted); }

/* ====== TOAST NOTIFICATION ====== */
.com-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 12px;
  background: var(--brand-surface); border: 1px solid var(--brand-border);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  font-size: .86rem; font-weight: 500; z-index: 9999;
  transform: translateY(20px); opacity: 0;
  transition: all .3s ease;
}
.com-toast--visible { transform: translateY(0); opacity: 1; }
.com-toast--ok { border-color: #16a34a; }
.com-toast--ok i { color: #16a34a; }
.com-toast--warn { border-color: #ca8a04; }
.com-toast--warn i { color: #ca8a04; }
.com-toast--danger { border-color: #ef4444; }
.com-toast--danger i { color: #ef4444; }

@media (max-width:768px) {
  .com-toast { left: 1rem; right: 1rem; bottom: 1rem; justify-content: center; }
}
