.sample-page-head { align-items: center; }
.sample-tabs { display: flex; gap: 5px; margin: 0 0 18px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); scrollbar-width: thin; }
.sample-tab { min-height: 38px; flex: 0 0 auto; padding: 8px 15px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; }
.sample-tab:hover { color: var(--brand); background: var(--brand-soft); }
.sample-tab.is-active { color: #fff; background: var(--brand); box-shadow: 0 5px 12px rgba(31,75,58,.18); }
.sample-filter-grid { grid-template-columns: repeat(4,minmax(130px,1fr)) minmax(180px,.8fr); }
.sample-filter-refresh { justify-self: end; }
.sample-report-head { margin: 8px 0 16px; }
.sample-report-summary .card { margin: 0; }
.sample-report-summary .card__body { display: grid; gap: 7px; min-height: 130px; align-content: center; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-number { font: 650 clamp(27px,3vw,38px)/1 Georgia,"Times New Roman",serif; letter-spacing: -.035em; }
.sample-report-summary small { color: var(--muted); font-size: 10px; }
.sample-bars { display: grid; gap: 16px; }
.sample-bar { display: grid; gap: 7px; }
.sample-bar > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.sample-bar strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sample-bar i { height: 7px; overflow: hidden; border-radius: 999px; background: var(--brand-soft); }
.sample-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#5e967b); }
.sample-chart-empty { margin: 35px 0; color: var(--muted); text-align: center; font-size: 12px; }
.sample-dialog { width: min(720px,calc(100% - 32px)); max-height: min(90vh,900px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 26px 76px rgba(0,0,0,.28); }
.sample-dialog--wide { width: min(1040px,calc(100% - 32px)); }
.sample-dialog::backdrop { background: rgba(13,24,18,.58); backdrop-filter: blur(4px); }
.sample-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.sample-dialog > header h2 { margin: 0; font-size: 18px; }
.sample-dialog > header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.sample-dialog__body { max-height: calc(90vh - 140px); overflow: auto; padding: 21px 22px; }
.sample-dialog > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbf9; }
.sample-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin: 0; }
.sample-detail-grid > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sample-detail-grid .span-2 { grid-column: 1/-1; }
.sample-detail-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.sample-detail-grid dd { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.sample-detail-section { margin-top: 24px; }
.sample-detail-section h3 { margin: 0 0 12px; font-size: 14px; }
.sample-upload { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); text-align: center; cursor: pointer; }
.sample-upload:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.sample-upload input { width: min(390px,100%); margin-bottom: 8px; }
.sample-upload__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--brand); background: #dcece2; font-size: 21px; }
.sample-upload small { color: var(--muted); font-size: 11px; }
.sample-import-summary { color: var(--brand); background: var(--brand-soft); }
.sample-import-summary details { margin-top: 8px; }
.sample-import-summary ul { max-height: 160px; overflow: auto; margin: 8px 0 0; padding-left: 18px; }
.sample-inventory-table .row-actions, .sample-application-table .row-actions { min-width: 150px; }
.sample-overview-table td, .sample-overview-table th { padding-left: 14px; padding-right: 14px; }

@media (max-width: 1120px) {
  .sample-filter-grid { grid-template-columns: repeat(3,minmax(130px,1fr)); }
}
@media (max-width: 720px) {
  .sample-page-head { align-items: stretch; }
  .sample-tabs { margin-inline: -2px; }
  .sample-filter-grid { grid-template-columns: 1fr 1fr; }
  .sample-filter-refresh { justify-self: stretch; }
  .sample-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sample-dialog__body { max-height: calc(94dvh - 140px); padding: 18px 16px; }
  .sample-dialog > header { padding: 17px 16px; }
  .sample-dialog > footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .sample-dialog > footer .button { flex: 1; }
  .sample-detail-grid { grid-template-columns: 1fr; }
  .sample-detail-grid .span-2 { grid-column: auto; }
}
@media (max-width: 480px) {
  .sample-filter-grid { grid-template-columns: 1fr; }
  .sample-kpis { grid-template-columns: 1fr 1fr; }
}
