/* theme.css (v16 structure + original dev look)
   - Tailwind provides the bulk of styling.
   - This file keeps v16 layout classnames working (grid/card/table-wrap/etc.)
*/

.container{ width: 100%; }

/* layout */
.grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

/* cards */
.card{
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(17,24,39,.06);
  overflow: hidden;
}
.card .hd{
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(17,24,39,.08);
}
.card .hd h2{
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
}
.card .bd{
  padding: 1.25rem;
}
.hint{ color: #6b7280; font-size: .875rem; }

/* form */
.field{ margin-bottom: .9rem; }
label{ display:block; font-weight:700; color:#374151; margin-bottom:.35rem; }
.input, select, textarea{
  width: 100%;
  border: 1px solid rgba(17,24,39,.15);
  border-radius: .6rem;
  padding: .6rem .75rem;
  background: #fff;
  outline: none;
}
textarea{ min-height: 110px; }
.form-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
@media (max-width: 720px){
  .form-row{ grid-template-columns: 1fr; }
}

/* lists */
.list{ border:1px solid rgba(17,24,39,.10); border-radius:.75rem; overflow:hidden; background:#fff; }
.list .item{ padding:.75rem .9rem; border-top:1px solid rgba(17,24,39,.08); }
.list .item:first-child{ border-top:none; }
.list .name{ font-weight:800; color:#111827; }
.list .sub{ color:#6b7280; font-size:.875rem; margin-top:.1rem; }

/* tables */
.table-wrap{ border:1px solid rgba(17,24,39,.10); border-radius:.75rem; overflow:auto; background:#fff; }
table{ width:100%; border-collapse: collapse; }
th, td{ padding:.75rem .85rem; border-top:1px solid rgba(17,24,39,.08); vertical-align: top; }
thead th{ border-top:none; background:#f3f4f6; color:#374151; font-size:.8rem; text-transform: uppercase; letter-spacing:.03em; }
.money{ font-variant-numeric: tabular-nums; }

/* buttons */
.footer-bar{
  padding: .9rem 1.25rem;
  border-top: 1px solid rgba(17,24,39,.08);
  display:flex;
  justify-content:flex-end;
  gap:.6rem;
  background:#fff;
}
.btn{
  border: 1px solid rgba(17,24,39,.15);
  border-radius: .65rem;
  padding: .55rem .85rem;
  font-weight: 800;
  background: #fff;
  color: #111827;
  cursor: pointer;
}
.btn.primary{
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.btn:hover{ filter: brightness(.98); }
.pill{
  display:inline-block;
  padding:.2rem .6rem;
  border-radius:999px;
  background:#e5e7eb;
  color:#111827;
  font-weight:800;
  font-size:.75rem;
}


/* Dashboard metric cards */
.dash-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 1020px){
  .dash-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .dash-grid{ grid-template-columns: 1fr; }
}
.metric{
  display:block;
  text-decoration:none;
  color: inherit;
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.06);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  padding: 0.95rem 1rem;
}
.metric:hover{ filter: brightness(.99); }
.metric .kicker{
  color:#6b7280;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
}
.metric .value{
  font-weight: 950;
  font-size: 22px;
  margin-top: 6px;
  color:#111827;
}
.metric .hint2{
  margin-top: 6px;
  color:#6b7280;
  font-size: 12px;
}

/* Utility: full width card inside .grid */
.full-span{ grid-column: 1 / -1; }


/* Bootstrap-like helpers (for full-width table sections) */
.row{ display:flex; flex-wrap:wrap; margin-left:-0.5rem; margin-right:-0.5rem; }
.col-12{ flex:0 0 100%; max-width:100%; padding-left:0.5rem; padding-right:0.5rem; }
