:root {
  --brand-dark: #243947;
  --brand-green: #81be67;
  --surface: #ffffff;
  --page-bg: #f5f7f6;
  --border: #d9e2dd;
  --text: #23363b;
  --muted: #6a7b80;
}
* { box-sizing: border-box; }
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  background: var(--page-bg);
  color: var(--text);
}
body.ams-guest {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(129,190,103,0.14), transparent 28%), var(--page-bg);
}
.ams-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.ams-sidebar {
  background: var(--brand-dark);
  color: #fff;
  padding: 28px 20px;
}
.ams-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.ams-brand-mark {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-green);
}
.ams-brand-title {
  font-size: 1rem;
  font-weight: 700;
}
.ams-brand-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.ams-nav {
  display: grid;
  gap: 10px;
}
.ams-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}
.ams-nav a:hover { background: rgba(255,255,255,0.1); }
.ams-main {
  padding: 32px;
}
.ams-main.is-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.ams-main.is-public-asset {
  min-height: 100vh;
  padding: 22px 16px;
  max-width: 980px;
  margin: 0 auto;
}
.auth-panel {
  width: min(1080px, calc(100vw - 64px));
  min-height: 640px;
  display: flex;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(217,226,221,0.95);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(36,57,71,0.14);
  backdrop-filter: blur(10px);
}
.auth-brand,
.auth-form {
  flex: 1 1 0;
  min-width: 0;
}
.auth-brand {
  max-width: 450px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, #294050 0%, #213543 100%);
  color: #fff;
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-logo {
  width: 178px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.auth-brand h1 {
  margin: 18px 0 14px;
  font-size: 2.28rem;
  line-height: 1.08;
  max-width: 10ch;
}
.auth-brand p {
  margin: 0;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
}
.auth-badge {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.auth-highlights {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.auth-form {
  background: rgba(255,255,255,0.96);
  padding: 54px 56px 54px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.auth-form-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}
.auth-form-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  font-weight: 700;
}
.auth-form h2 { margin: 0; font-size: 2rem; }
.auth-form p { margin: 0; color: var(--muted); line-height: 1.7; max-width: 30rem; }
.auth-alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(201, 71, 71, 0.08);
  border: 1px solid rgba(201, 71, 71, 0.18);
  color: #8f2d2d;
  font-size: 0.92rem;
  line-height: 1.5;
}
.auth-helper {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(36,57,71,0.05);
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-helper strong {
  color: var(--text);
}
.auth-form label { display: grid; gap: 8px; }
.auth-form span { font-size: 0.92rem; font-weight: 600; }
.auth-form input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: #fbfcfb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.auth-form input:focus {
  outline: none;
  border-color: rgba(129,190,103,0.85);
  box-shadow: 0 0 0 4px rgba(129,190,103,0.14);
}
.auth-form button {
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: var(--brand-green);
  color: #173124;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(129,190,103,0.22);
}
.auth-form button:hover {
  filter: brightness(0.98);
}
.page-head { margin-bottom: 24px; }
.dashboard-head {
  margin-bottom: 28px;
}
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.dashboard-summary-grid .summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
}
.dashboard-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(36,57,71,0.05);
}
.dashboard-panel-wide {
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.action-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(129,190,103,0.10), rgba(129,190,103,0.04));
  text-decoration: none;
  color: var(--text);
}
.action-card strong {
  font-size: 1rem;
}
.action-card span {
  color: var(--muted);
  line-height: 1.55;
}
.action-card.disabled {
  background: rgba(36,57,71,0.03);
}
.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.status-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.status-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.status-list strong {
  font-size: 0.94rem;
}
.status-list span {
  color: var(--muted);
  line-height: 1.5;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.page-head h1 { margin: 0 0 10px; font-size: 2rem; }
.page-copy { margin: 0; color: var(--muted); max-width: 720px; }
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.placeholder-grid.single { grid-template-columns: 1fr; }
.placeholder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(36,57,71,0.05);
}
.placeholder-card h3 { margin: 0 0 10px; }
.placeholder-card p, .placeholder-card li { color: var(--muted); line-height: 1.6; }
.detail-list {
  display: grid;
  gap: 12px;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.detail-list dt { font-weight: 700; }
.detail-list dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.summary-card, .filters-card, .table-card, .empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(36,57,71,0.05);
}
.summary-card {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}
.summary-card span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.summary-card strong {
  font-size: 2rem;
}
.filters-card {
  padding: 20px;
  margin-bottom: 18px;
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.filters-grid label {
  display: grid;
  gap: 8px;
}
.filters-grid span {
  font-size: 0.88rem;
  font-weight: 700;
}
.filters-grid input,
.filters-grid select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.filters-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}
.filters-actions button,
.filters-actions a {
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.filters-actions button {
  background: var(--brand-green);
  color: #173124;
}
.filters-actions a {
  background: rgba(36,57,71,0.08);
  color: var(--text);
}
.table-card {
  padding: 20px;
}
.table-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}
.table-header h2 {
  margin: 0;
  font-size: 1.2rem;
}
.table-header p {
  margin: 0;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
.asset-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}
.asset-table th,
.asset-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.asset-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.cell-title {
  font-weight: 500;
}
.cell-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.inventory-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.inventory-badge.it {
  background: rgba(36,57,71,0.08);
  color: var(--brand-dark);
}
.inventory-badge.office {
  background: rgba(129,190,103,0.18);
  color: #35512b;
}
.status-pill.success {
  background: rgba(129,190,103,0.18);
  color: #35512b;
}
.status-pill.warning {
  background: rgba(245,173,66,0.2);
  color: #8c5b00;
}
.empty-card {
  padding: 28px;
}
.empty-card h3 {
  margin: 0 0 10px;
}
.empty-card p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-panels { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-panel { width: min(960px, calc(100vw - 36px)); }
  .auth-brand { max-width: 390px; padding: 40px 34px; }
  .auth-logo { width: 160px; }
  .auth-form { padding: 42px 38px; }
}
@media (max-width: 900px) {
  .ams-shell { grid-template-columns: 1fr; }
  .ams-sidebar { display: none; }
  .ams-main.is-auth { padding: 18px; }
  .auth-panel {
    width: 100%;
    min-height: auto;
    flex-direction: column;
    border-radius: 24px;
  }
  .auth-brand {
    max-width: none;
    padding: 32px 24px 28px;
    text-align: center;
    align-items: center;
  }
  .auth-logo {
    width: 144px;
    margin-bottom: 16px;
  }
  .auth-brand h1 {
    max-width: none;
    font-size: 2rem;
  }
  .auth-brand p {
    max-width: 28rem;
  }
  .auth-highlights {
    justify-content: center;
  }
  .auth-form {
    padding: 30px 24px 32px;
  }
  .auth-form p {
    max-width: none;
  }
  .placeholder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .summary-grid, .dashboard-summary-grid, .filters-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .table-header { flex-direction: column; align-items: start; }
  .ams-main { padding: 20px; }
  .auth-panel {
    width: 100%;
    border-radius: 20px;
  }
  .auth-badge,
  .auth-highlights span {
    font-size: 0.74rem;
  }
  .auth-brand h1 {
    font-size: 1.8rem;
  }
  .auth-form h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 520px) {
  .ams-main.is-auth {
    padding: 12px;
  }
  .auth-brand {
    padding: 26px 18px 22px;
  }
  .auth-logo {
    width: 126px;
  }
  .auth-highlights {
    gap: 8px;
  }
  .auth-form {
    padding: 24px 18px 26px;
    gap: 14px;
  }
  .auth-form input,
  .auth-form button {
    padding: 14px;
  }
}


/* Lovable-style dashboard shell */
.page-title {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 700;
}
.page-description {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 0.95rem;
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dashboard-top-actions {
  display: flex;
  gap: 10px;
}
.top-action {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brand-green);
  color: #173124;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.top-action.ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.dash-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
}
.dash-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.dash-stat-label { font-size: 0.85rem; color: var(--muted); }
.dash-stat-icon {
  color: #79b864;
  font-size: 1.05rem;
}
.dash-stat-value { font-size: 1.9rem; font-weight: 750; margin-top: 3px; }
.dash-stat-helper { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.inventory-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
}
.inventory-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.inventory-card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.inventory-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.inventory-card-icon.is-it {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.inventory-card-icon.is-office {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.inventory-card-head h2 {
  margin: 0;
  font-size: 1.02rem;
}
.inventory-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.inventory-card-head a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.inventory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.inventory-metrics div {
  border: 1px solid var(--border);
  background: rgba(36,57,71,0.03);
  border-radius: 12px;
  padding: 10px;
}
.inventory-metrics span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}
.inventory-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.04rem;
}
.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 16px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}
.panel-wide {
  grid-row: span 2;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.panel-head h2 {
  margin: 0;
  font-size: 0.98rem;
}
.panel-head a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.88rem;
}
.activity-list,
.queue-list {
  display: grid;
  gap: 10px;
}
.activity-list {
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}
.queue-list {
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}
.activity-item,
.queue-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.activity-type {
  margin: 0;
  font-weight: 650;
  font-size: 0.88rem;
}
.activity-detail,
.queue-owner {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.activity-time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.quick-actions {
  display: grid;
  gap: 8px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-weight: 600;
}
.quick-action.disabled {
  color: var(--muted);
  background: rgba(36,57,71,0.03);
}
.registry-v3-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.registry-v3-crumbline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.registry-v3-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #39515a;
  font-size: 0.86rem;
  font-weight: 600;
}
.registry-v3-scope-badge.is-it {
  border-color: rgba(59, 130, 246, 0.35);
  color: #2d64cb;
  background: rgba(59, 130, 246, 0.08);
}
.registry-v3-scope-badge.is-office {
  border-color: rgba(245, 158, 11, 0.38);
  color: #b56808;
  background: rgba(245, 158, 11, 0.08);
}
.registry-v3-alert {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.registry-v3-alert.success {
  border-color: #b8d8c6;
  background: #f3fbf6;
  color: #204c31;
}
.registry-v3-alert.error {
  border-color: #efc0c0;
  background: #fff6f6;
  color: #8b2f2f;
}
.registry-v3 .page-head h1 {
  font-size: 2rem;
  line-height: 1.1;
}
.registry-v3 .page-copy {
  font-size: 0.95rem;
}
.registry-v3-actions {
  display: flex;
  gap: 10px;
}
.registry-v3-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(36,57,71,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
}
.registry-v3-tabs a {
  text-decoration: none;
  color: #50686f;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.registry-v3-tabs a.is-active {
  background: #fff;
  color: #1f333a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.registry-v3-filterbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) repeat(4, minmax(120px, 180px)) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
}
.registry-v3-filterbar.is-scoped {
  grid-template-columns: minmax(300px, 1fr) repeat(3, minmax(120px, 180px)) auto;
}
.registry-v3-search {
  position: relative;
}
.registry-v3-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8d92;
}
.registry-v3-search input,
.registry-v3-filterbar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}
.registry-v3-search input {
  padding-left: 36px;
}
.registry-v3-more {
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  color: #21343a;
  font: inherit;
  font-weight: 600;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.registry-v3-inventory-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}
.registry-v3-inventory-hero.is-it {
  border-color: rgba(59, 130, 246, 0.38);
}
.registry-v3-inventory-hero.is-office {
  border-color: rgba(245, 158, 11, 0.4);
}
.registry-v3-inventory-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.registry-v3-inventory-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: #345dca;
  background: rgba(59, 130, 246, 0.08);
  font-size: 1rem;
}
.registry-v3-inventory-hero.is-office .registry-v3-inventory-icon {
  color: #b36808;
  background: rgba(245, 158, 11, 0.1);
}
.registry-v3-snapshot-label {
  margin: 0;
  color: #5b6e74;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.registry-v3-snapshot-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.registry-v3-inventory-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.registry-v3-metric {
  display: grid;
  align-items: center;
  min-width: 146px;
}
.registry-v3-metric strong {
  font-size: 2rem;
  line-height: 1;
}
.registry-v3-metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}
.registry-v3-qrbox {
  display: grid;
  gap: 3px;
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f9fcfb;
}
.registry-v3-qrbox strong {
  font-size: 1.05rem;
  line-height: 1.1;
}
.registry-v3-qrbox span {
  color: var(--muted);
  font-size: 0.9rem;
}
.registry-v3-batch {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.registry-v3-batch-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.registry-v3-batch-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.registry-v3-batch-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.registry-v3-batch-rows {
  color: var(--muted);
  font-size: 0.9rem;
}
.registry-v3-batch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.registry-v3-batch-actions button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  color: #21343a;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.registry-v3-batch-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.registry-v3-batch-actions .registry-batch-delete {
  border-color: #efb7b4;
  color: #b3261e;
}
.registry-v3-batch-actions .registry-batch-delete:hover:not(:disabled) {
  background: #fff1f1;
  border-color: #e47f79;
  color: #8f1d18;
}
.registry-v3-table-card {
  padding-bottom: 0;
}
.registry-v3-table-card .table-wrap {
  max-height: 500px;
  overflow: auto;
  border: 1px solid #e1e8e4;
  border-radius: 12px;
  background: #fff;
}
.registry-v3-table-card .table-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
.registry-v3-table-card .table-wrap::-webkit-scrollbar-thumb {
  background: #c2cfca;
  border-radius: 999px;
}
.registry-v3-table-card .table-wrap::-webkit-scrollbar-track {
  background: #eef3f1;
}
.registry-v3-table-head {
  margin-bottom: 8px;
}
.registry-v3-table {
  min-width: 1600px;
  border-collapse: separate;
  border-spacing: 0;
}
.registry-v3-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbf9;
  border-bottom: 1px solid #d9e3de;
  font-weight: 600;
  color: #5e7379;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.2;
}
.registry-v3-table tbody tr:nth-child(even) {
  background: #fff;
}
.registry-v3-table tbody tr:hover {
  background: #f7fbf8;
}
.registry-v3-table th:first-child,
.registry-v3-table td:first-child {
  width: 34px;
}
.registry-v3-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #81be67;
}
.qr-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f747a;
  font-size: 0.82rem;
  white-space: nowrap;
}
.qr-cell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #6b7f86;
  text-decoration: none;
}
.qr-cell-link:hover {
  background: #eef4f1;
  color: #2e4f3f;
}
.qr-cell-text {
  color: #5f747a;
  text-decoration: none;
  font-weight: 500;
}
.qr-cell-text:hover {
  color: #2d5a45;
  text-decoration: underline;
}
.status-pill.info {
  background: rgba(59,130,246,0.14);
  color: #2454b8;
}
.status-pill.muted {
  background: rgba(148,163,184,0.16);
  color: #58677b;
}
.registry-v3-table .status-pill {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
}
.registry-v3-table .cell-title {
  font-weight: 650;
  color: #24353b;
  font-size: 0.96rem;
}
.registry-v3-table .cell-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #7b8d93;
}
.registry-v3-table td {
  color: #2a3c42;
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 11px 10px;
}
.registry-v3-table td,
.registry-v3-table th {
  white-space: nowrap;
}
.registry-v3-actions-col {
  text-align: center;
  color: #607277;
  position: relative;
}
.row-actions {
  position: relative;
  display: inline-block;
}
.row-actions-toggle {
  width: 30px;
  height: 30px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #fff;
  color: #5f7278;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.row-actions-toggle:hover {
  background: #f3f8f6;
  color: #2c4a40;
}
.row-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 15;
  min-width: 168px;
  border: 1px solid #d7e1dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 49, 58, 0.12);
  padding: 6px;
  display: none;
}
.row-actions.is-open .row-actions-menu {
  display: block;
}
.row-actions-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #24363c;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 0.84rem;
  font-weight: 600;
}
.row-actions-menu .row-delete-action {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b3261e;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
}
.row-actions-menu a:hover {
  background: #f3f8f6;
}
.row-actions-menu .row-delete-action:hover {
  background: #fff1f1;
  color: #8f1d18;
}
.row-actions-menu i {
  width: 14px;
  text-align: center;
}
.registry-v3-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 2px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.registry-v3-footer p {
  margin: 0;
}
.registry-v3-pager {
  display: inline-flex;
  gap: 6px;
}
.registry-v3-pager button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: #607277;
}
.registry-v3-pager a {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: #607277;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.registry-v3-pager button.is-active {
  background: #81be67;
  border-color: #81be67;
  color: #163125;
  font-weight: 700;
}
.ams-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #799096;
  margin: -4px 0 10px;
}
.ams-breadcrumb a {
  color: #72878d;
  text-decoration: none;
}
.ams-breadcrumb strong {
  color: #25373d;
}
.asset-add-head {
  margin-bottom: 14px;
}
.asset-add-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-back {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  color: #4b6067;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.asset-add-form {
  display: grid;
  gap: 14px;
}
.asset-form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.asset-form-section h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.asset-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.asset-form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.asset-form-grid label,
.asset-form-note {
  display: grid;
  gap: 6px;
}
.asset-form-grid span,
.asset-form-note span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #5c7279;
}
.asset-form-grid label.is-required > span::after {
  content: " *";
  color: #c74444;
}
.asset-form-grid input,
.asset-form-grid select,
.asset-form-note textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: #24363c;
  font: inherit;
  padding: 10px 12px;
}
.asset-form-grid input[readonly] {
  background: #f5f8f7;
  color: #7a8d92;
}
.asset-form-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  margin-bottom: 6px;
}
.asset-form-checkbox-inline input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.asset-form-checkbox-inline span {
  margin: 0;
}
.asset-form-note {
  margin-top: 12px;
}
.asset-form-actions {
  display: flex;
  gap: 10px;
}
.registry-v3-page-size label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}
.registry-v3-page-size select {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 8px;
  font: inherit;
  background: #fff;
  color: #31454b;
}
.queue-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--brand-dark);
  font-size: 0.78rem;
}
.queue-issue {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.88rem;
}
.activity-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .dash-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-content-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-row: auto; }
  .registry-v3-filterbar {
    grid-template-columns: 1fr 1fr;
  }
  .registry-v3-filterbar.is-scoped {
    grid-template-columns: 1fr 1fr;
  }
  .registry-v3-inventory-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .registry-v3-inventory-right {
    justify-content: flex-start;
  }
  .asset-form-grid-4,
  .asset-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .dashboard-head { flex-direction: column; }
  .inventory-grid { grid-template-columns: 1fr; }
  .inventory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registry-v3-head {
    flex-direction: column;
  }
  .registry-v3-crumbline {
    flex-direction: column;
    align-items: flex-start;
  }
  .registry-v3-filterbar {
    grid-template-columns: 1fr;
  }
  .registry-v3-filterbar.is-scoped {
    grid-template-columns: 1fr;
  }
  .registry-v3-table-card .table-wrap {
    max-height: none;
  }
  .asset-form-grid,
  .asset-form-grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .dash-stat-grid { grid-template-columns: 1fr; }
  .inventory-metrics { grid-template-columns: 1fr; }
  .activity-item { flex-direction: column; }
}


.qr-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}
.qr-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f5a46;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d9e2dd;
  background: #f4f8f5;
}
.public-asset-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.qr-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.qr-wrap img {
  width: min(100%, 230px);
  height: auto;
  object-fit: contain;
}
.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.public-actions a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .public-asset-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .ams-main.is-public-asset {
    padding: 14px 10px;
  }
  .page-head h1 {
    font-size: 1.66rem;
  }
  .page-copy {
    max-width: 100%;
  }
  .placeholder-card {
    padding: 14px;
    border-radius: 14px;
  }
  .detail-list div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .detail-list dd {
    text-align: left;
  }
  .public-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .public-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* AMS v2 shell/dashboard override */
.ams-shell-v2 {
  height: 100vh;
  display: grid;
  grid-template-columns: 288px 1fr;
  background: #f4f7f6;
  overflow: hidden;
}
.ams-sidebar-v2 {
  background: #243947;
  color: #e3edf1;
  padding: 14px 10px;
  border-right: 1px solid #2f4b58;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  left: 0;
}
.ams-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.ams-sidebar-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.ams-sidebar-logo {
  width: 58px;
  max-width: 100%;
  height: auto;
  display: block;
}
.ams-brand-copy {
  display: grid;
  gap: 2px;
}
.ams-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f2f7fa;
  line-height: 1.2;
  max-width: 172px;
}
.ams-brand-company {
  font-size: 0.76rem;
  color: #93abb6;
}
.ams-nav-section {
  margin: 8px 0;
}
.ams-nav-title {
  margin: 4px 8px 8px;
  color: #8fa6b0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ams-nav {
  display: grid;
  gap: 6px;
}
.ams-nav a {
  color: #e3edf1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.93rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  transition: background 0.16s ease;
}
.ams-nav a i {
  font-size: 0.88rem;
  width: 14px;
  text-align: center;
  color: #9db4be;
}
.ams-nav a span {
  line-height: 1.2;
}
.ams-nav a .nav-badge {
  margin-left: auto;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
}
.ams-nav a .nav-badge-it {
  background: rgba(59,130,246,0.25);
  color: #bfd8ff;
}
.ams-nav a .nav-badge-office {
  background: rgba(245,158,11,0.25);
  color: #ffe0a8;
}
.ams-nav a:hover,
.ams-nav a.is-active {
  background: #314b59;
  border-color: rgba(129,190,103,0.18);
}
.ams-sidebar-footer {
  margin-top: auto;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ams-sidebar-footer a {
  text-decoration: none;
  color: #d9e6ec;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}
.ams-main-wrap-v2 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.ams-topbar {
  height: 60px;
  border-bottom: 1px solid #dce6e2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.ams-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ams-sidebar-toggle {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  border: 1px solid #d9e2dd;
  background: #fff;
  color: #587077;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ams-topbar-search input {
  width: 372px;
  max-width: 48vw;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d9e2dd;
  padding: 0 12px;
  font: inherit;
}
.ams-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ams-bell {
  width: 32px;
  height: 32px;
  border: 1px solid #d9e2dd;
  border-radius: 999px;
  background: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f747a;
}
.ams-bell::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #81be67;
}
.ams-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-left: 1px solid #d9e2dd;
}
.ams-user-avatar {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #eaf2e6;
  color: #365229;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.ams-user-name {
  font-size: 0.96rem;
  font-weight: 700;
}
.ams-user-role {
  font-size: 0.78rem;
  color: #6a7b80;
}
.ams-main-v2 {
  padding: 18px;
  overflow: auto;
  font-size: 1rem;
}
.dash-stat-grid-v2 {
  gap: 12px;
}
.dash-stat-card-v2 {
  border-radius: 16px;
}
.inventory-grid-v2 {
  gap: 12px;
}
.dashboard-content-grid-v2 {
  gap: 12px;
}
@media (max-width: 1024px) {
  .ams-shell-v2 {
    grid-template-columns: 1fr;
  }
  .ams-sidebar-v2 {
    display: none;
  }
  .ams-topbar-search input {
    width: 260px;
  }
  .page-title {
    font-size: 2rem;
  }
}
@media (max-width: 680px) {
  .ams-main-v2 {
    padding: 12px;
  }
  .ams-topbar-search {
    display: none;
  }
  .ams-sidebar-toggle {
    display: none;
  }
  .page-title {
    font-size: 1.68rem;
  }
}
