:root {
  color-scheme: light;
  --navy-950: #07182d;
  --navy-900: #0b2545;
  --navy-800: #14365f;
  --navy-700: #1f4d7a;
  --gold: #c99a2e;
  --gold-soft: #fff6df;
  --ink: #152033;
  --muted: #657085;
  --line: #d8e1ec;
  --page: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --blue: #1f5fbf;
  --blue-soft: #e9f0fb;
  --green: #13795b;
  --green-soft: #e8f6f0;
  --amber: #9a6700;
  --amber-soft: #fff4da;
  --red: #b42318;
  --red-soft: #fff1f0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 16px 40px rgba(9, 30, 66, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(11, 37, 69, 0.04), rgba(11, 37, 69, 0) 260px),
    var(--page);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(11, 37, 69, 0.94), rgba(20, 54, 95, 0.88)),
    var(--navy-900);
}

.login-card {
  width: min(480px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  padding: 30px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.login-brand h1,
.page-head h1,
.panel h2,
.dialog-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-brand h1 {
  font-size: 2rem;
  line-height: 1;
}

.login-brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 650;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--navy-900);
  color: #fff;
  padding: 16px 12px;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.brand-mark.large {
  width: 58px;
  height: 58px;
  background: var(--navy-900);
  color: #fff;
}

.brand-block small,
.user-box small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-block strong,
.user-box span {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 900;
}

.brand-block span[id] {
  display: block;
  margin-top: 4px;
  color: #c8d4e6;
  font-size: 0.82rem;
  font-weight: 650;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.nav-item {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #dce6f4;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  padding: 8px 10px;
}

.nav-item span {
  display: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  border-color: rgba(201, 154, 46, 0.32);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-item.active span {
  display: none;
}

.user-box {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 11px;
}

.user-box strong {
  color: #c8d4e6;
  font-size: 0.78rem;
}

.workspace {
  min-width: 0;
  padding: 22px clamp(18px, 2.6vw, 34px) 34px;
}

.screen {
  display: none;
}

.screen.active {
  display: grid;
  gap: 14px;
  width: min(100%, 1420px);
}

.page-head,
.panel-head,
.dialog-head,
.form-actions,
.filters,
.row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head,
.panel-head,
.dialog-head {
  justify-content: space-between;
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(360px, 560px);
  align-items: start;
}

.page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.page-head h1 {
  font-size: clamp(1.72rem, 2.2vw, 2.15rem);
  line-height: 1.04;
}

.page-subtitle,
.panel-subtitle {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal, #0f8b8d);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
}

.overview-card,
.quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-left: 5px solid var(--gold);
  padding: 14px 16px;
}

.overview-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.25rem;
}

.overview-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.overview-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-content: center;
  gap: 10px;
}

.overview-meta span {
  min-width: 116px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.overview-meta strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 950;
}

.quick-card {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.quick-card .button {
  width: 100%;
  min-height: 36px;
}

.dashboard-secondary {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 12px;
}

.compact-panel {
  box-shadow: var(--shadow-sm);
}

.panel-head.simple {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stock-bars,
.activity-list {
  display: grid;
  gap: 10px;
}

.stock-bar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
}

.stock-bar div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.stock-bar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.stock-bar strong {
  color: var(--navy-950);
  font-size: 1.08rem;
}

.stock-bar small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy-700);
}

.stock-bar.available .bar-track span {
  background: var(--green);
}

.stock-bar.taken .bar-track span {
  background: var(--gold);
}

.stock-bar.other .bar-track span {
  background: var(--muted);
}

.activity-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px;
}

.activity-item strong {
  display: block;
  color: var(--navy-950);
  font-size: 0.88rem;
}

.activity-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.mini-empty {
  display: grid;
  gap: 3px;
  border: 1px dashed #cbd7e5;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--muted);
  padding: 16px;
}

.mini-empty strong {
  color: var(--ink);
}

.mini-empty span {
  font-size: 0.84rem;
  font-weight: 650;
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
}

.status-strip > div {
  display: grid;
  align-content: center;
  gap: 2px;
}

.status-strip strong {
  color: var(--navy-900);
  font-size: 0.9rem;
}

.status-strip small {
  color: var(--muted);
  font-weight: 650;
}

.status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 121, 91, 0.12);
  margin-right: 8px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.form-panel {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.stock-entry-form {
  max-width: 1180px;
}

.entry-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.photo-column,
.detail-column {
  min-width: 0;
}

.photo-column {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.detail-column {
  display: grid;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.12rem;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 11px 13px 10px;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--navy-700);
}

.stat.available::before,
.stat.in::before {
  background: var(--green);
}

.stat.taken::before,
.stat.out::before {
  background: var(--gold);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-950);
  font-size: 1.55rem;
  line-height: 1;
}

.stat small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.field-hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 8px 10px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(31, 77, 122, 0.15);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field-grid.single {
  grid-template-columns: 1fr;
}

.full {
  grid-column: 1 / -1;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  align-items: end;
  justify-content: stretch;
}

.filters label,
.compact-search {
  min-width: 0;
}

.compact-search {
  width: min(420px, 100%);
  justify-self: end;
}

.button,
.icon-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  padding: 8px 13px;
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.button.primary {
  background: var(--navy-700);
  color: #fff;
}

.button.primary:hover {
  background: var(--navy-800);
}

.button.ghost {
  border-color: #cbd7e5;
  background: #fff;
  color: var(--navy-900);
}

.sidebar .button.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.subtle {
  border-color: #c8d7ec;
  background: var(--blue-soft);
  color: var(--navy-800);
}

.button.danger {
  background: var(--red-soft);
  border-color: #ffcbc7;
  color: var(--red);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.form-actions.split {
  justify-content: space-between;
}

.photo-drop {
  display: grid;
  min-height: 220px;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1.5px dashed #9cafc7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 54, 95, 0.06), rgba(201, 154, 46, 0.08)),
    #f8fbff;
}

.photo-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-drop span {
  display: grid;
  gap: 4px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.photo-drop strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.photo-drop img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.pill {
  border: 1px solid #cbd7e5;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
  white-space: nowrap;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #475467;
  font-size: 0.75rem;
  font-weight: 950;
  background: #f1f5f9;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.thumb {
  width: 72px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.thumb.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.serial {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

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

.status,
.movement {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.status.spare,
.movement.masuk {
  background: var(--green-soft);
  color: var(--green);
}

.status.terpasang,
.movement.ambil {
  background: var(--blue-soft);
  color: var(--navy-800);
}

.status.dipegang,
.movement.pasang {
  background: var(--gold-soft);
  color: var(--amber);
}

.status.dipindah,
.movement.edit {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.rusak,
.status.hilang,
.movement.hapus {
  background: var(--red-soft);
  color: var(--red);
}

.row-actions {
  flex-wrap: wrap;
}

.empty-state {
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 96px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.35)),
    #fff;
}

.empty-state strong {
  color: var(--ink);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.installation-grid {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
}

.customer-form {
  width: min(900px, 100%);
  max-width: 900px;
}

.customer-form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.customer-form-head h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.18rem;
}

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

.profile-summary {
  align-self: end;
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 8px 10px;
}

.installation-list-panel {
  box-shadow: var(--shadow-md);
}

.installation-grid .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.installation-table {
  min-width: 1040px;
}

.integration-stack {
  display: grid;
  gap: 5px;
}

.integration-stack > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.integration-status {
  min-width: 74px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-align: center;
}

.integration-status.pending,
.integration-status.processing {
  background: var(--amber-soft);
  color: var(--amber);
}

.integration-status.success,
.integration-status.provisioned {
  background: var(--green-soft);
  color: var(--green);
}

.integration-status.failed {
  background: var(--red-soft);
  color: var(--red);
}

.integration-status.waiting_api,
.integration-status.not_configured,
.integration-status.skipped {
  background: var(--amber-soft);
  color: var(--amber);
}

.text-link {
  color: var(--navy-700);
  font-size: 0.8rem;
  font-weight: 900;
}

.asset-dialog {
  width: min(820px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(23, 33, 51, 0.25);
}

.small-dialog {
  width: min(560px, calc(100vw - 24px));
}

.asset-dialog::backdrop {
  background: rgba(12, 20, 32, 0.46);
}

.asset-dialog form {
  display: grid;
  gap: 14px;
}

.icon-button {
  width: 42px;
  padding: 0;
  background: #f8fafc;
  border-color: var(--line);
  color: var(--ink);
}

.dialog-photo {
  width: 100%;
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

.form-message {
  margin: 0;
  border: 1px solid #ffcbc7;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 850;
  padding: 10px 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(560px, calc(100vw - 24px));
  border: 1px solid rgba(23, 33, 51, 0.14);
  border-radius: 8px;
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-weight: 850;
  padding: 12px 14px;
}

@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .dashboard-overview,
  .dashboard-secondary {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

  .overview-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .photo-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .sidebar::before {
    width: 100%;
    height: 4px;
    inset: 0 0 auto;
  }

  .brand-block {
    gap: 8px;
    padding: 6px 0 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-block small {
    font-size: 0.58rem;
  }

  .brand-block strong {
    font-size: 0.9rem;
  }

  .brand-block span[id] {
    font-size: 0.74rem;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-item {
    min-width: 0;
    min-height: 34px;
    justify-content: center;
    text-align: center;
    padding: 7px 6px;
    font-size: 0.78rem;
  }

  .user-box {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 9px 10px;
  }

  .user-box small,
  .user-box strong {
    display: none;
  }

  .user-box span {
    margin-top: 0;
    font-size: 0.84rem;
  }

  .user-box .button {
    min-height: 34px;
    padding: 7px 14px;
  }

  .workspace {
    padding: 20px 14px 30px;
  }

  .page-head,
  .panel-head,
  .customer-form-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head {
    display: flex;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .overview-meta {
    grid-template-columns: 1fr;
  }

  .overview-meta span {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 9px 0 0;
  }

  .stock-bar {
    grid-template-columns: 1fr;
  }

  .stock-bar small {
    text-align: left;
  }

  .filters,
  .filters label,
  .compact-search,
  .form-actions,
  .form-actions .button {
    width: 100%;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .stats-grid,
  .field-grid,
  .customer-grid,
  .installation-grid .field-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 22px;
  }

  .login-brand {
    align-items: flex-start;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .data-table td {
    border-bottom: 0;
    padding: 5px 0;
  }

  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 2px;
  }

  .thumb {
    width: 100%;
    max-height: 220px;
  }

  .form-actions.split {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions.split > div {
    display: grid;
    gap: 10px;
  }
}
