@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2") format("woff2");
}

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #d5dce8;
  --text: #102030;
  --accent: #0f6f8f;
  --danger: #a8211d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
}
input,
select,
button,
textarea,
table,
thead,
tbody,
tfoot,
th,
td,
label,
summary,
pre {
  font-family: inherit;
}
small {
  display: block;
  margin-top: 6px;
  color: #60789a;
  font-size: 12px;
}
a { color: var(--accent); text-decoration: none; }
main { padding: 1rem; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  max-width: 700px;
}
label { display: block; margin-top: .7rem; }
input, select, button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .55rem;
  margin-top: .3rem;
}
button { background: var(--accent); color: #fff; cursor: pointer; }
button:disabled { opacity: .65; cursor: not-allowed; }
.error { color: var(--danger); }

.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}
.sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: .5rem 0; }
.content {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1rem;
}
.selectors {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 200px));
  gap: .7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.grid-panel, .legend-panel, .staff-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.grid-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
}
.grid-cells article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.module-shell table {
  width: 100%;
  border-collapse: collapse;
}
.module-shell th, .module-shell td {
  border: 1px solid var(--line);
  padding: .4rem;
  text-align: left;
}

.tenant-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #eef3f9;
  margin: 0;
  padding: 0;
  width: 100%;
}
.tenant-sidebar {
  background: #0d1b3e;
  color: #b7c5e6;
  border-right: 1px solid #1d2e5b;
  display: flex;
  flex-direction: column;
}
.tenant-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #1d2e5b;
}
.tenant-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3ac3ba, #238da5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.tenant-brand h2 {
  margin: 0;
  color: #f3f7ff;
  font-size: 16px;
}
.tenant-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9fb0d7;
}
.tenant-nav h3 {
  margin: 0;
  padding: 12px 14px 8px;
  text-transform: uppercase;
  letter-spacing: .9px;
  font-size: 12px;
  color: #7285b6;
}
.tenant-nav a {
  display: block;
  padding: 10px 14px;
  color: #c3d0eb;
  border-left: 3px solid transparent;
}
.tenant-nav a:hover {
  background: #152754;
  color: #e2ebff;
}
.tenant-nav a.active {
  background: #12234c;
  color: #fff;
  border-left-color: #3cccbf;
  font-weight: 600;
}
.tenant-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #1d2e5b;
}
.tenant-user {
  background: #12224a;
  border-radius: 8px;
  padding: 10px;
}
.tenant-user strong {
  display: block;
  color: #f3f7ff;
  font-size: 12px;
}
.tenant-user span {
  color: #9eb0d9;
  font-size: 12px;
}
.tenant-logout {
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: #9eb0d9;
  text-align: left;
  padding: 0;
}
.tenant-main {
  padding: 16px;
}
.tenant-main .content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
}
.tenant-main .selectors {
  grid-column: 1 / -1;
}
.tenant-main .module-shell {
  max-width: 1100px;
}
.tenant-main .module-shell .card {
  max-width: none;
}

.saas-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
}
.saas-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.saas-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.saas-sidebar li {
  margin: .5rem 0;
}
.saas-content {
  min-width: 0;
}

.acp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  gap: 0;
  padding: 0;
  background: #f1f4f9;
}
.acp-sidebar {
  background: #0b1736;
  color: #a8b4d6;
  border-right: 1px solid #17254b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.acp-brand {
  padding: 14px 14px 12px;
  border-bottom: 1px solid #17254b;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.acp-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3ac3ba, #238da5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.acp-brand h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0;
  color: #f5f9ff;
}
.acp-brand p {
  margin: 3px 0 0;
  color: #8ea0c8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .9px;
}
.acp-nav {
  padding: 10px 0 8px;
  border-bottom: 1px solid #17254b;
}
.acp-nav h3 {
  margin: 0;
  padding: 12px 14px 8px;
  font-size: 12px;
  color: #7083b3;
  text-transform: uppercase;
  letter-spacing: .9px;
}
.acp-nav a {
  display: block;
  padding: 10px 14px;
  color: #b9c7e7;
  font-size: 14px;
  border-left: 3px solid transparent;
  border-radius: 0;
}
.acp-nav-icon {
  width: 16px;
  margin-right: 10px;
  text-align: center;
  color: inherit;
}
.acp-nav a:hover {
  background: #122349;
  color: #d6e2ff;
}
.acp-nav a.active {
  background: #10203f;
  color: #fff;
  border-left-color: #3cccbf;
  font-weight: 600;
}
.acp-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #17254b;
}
.acp-user-card {
  background: #112247;
  border-radius: 8px;
  padding: 11px;
}
.acp-user-card strong {
  display: block;
  font-size: 12px;
  color: #f0f6ff;
}
.acp-user-card span {
  color: #8fa0c7;
  font-size: 12px;
}
.acp-signout-form {
  margin-top: 10px;
}
.acp-signout-btn {
  background: transparent;
  border: 0;
  color: #9eb0d9;
  font-weight: 600;
  text-align: left;
  padding-left: 0;
}
.acp-main {
  background: #eff3f8;
  min-height: 100vh;
  padding: 0 12px 20px;
}
.acp-header {
  border-bottom: 1px solid #cfd7e6;
  background: transparent;
  padding: 16px 10px 12px;
}
.acp-header h1 {
  margin: 0 0 2px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -.3px;
}
.acp-header p {
  margin: 0;
  color: #50688a;
  font-size: 16px;
  line-height: 1.15;
}
.acp-card {
  margin: 14px 10px;
  max-width: 1180px;
  border-radius: 12px;
  border: 1px solid #d5deeb;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}
.acp-wide {
  max-width: 1180px;
}
.acp-card-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e7f2;
  margin-bottom: 18px;
}
.acp-card-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.3px;
}
.acp-card-head p {
  margin: 3px 0 0;
  color: #526b8e;
  font-size: 15px;
  line-height: 1.15;
}
.acp-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.acp-form-col label {
  margin-top: 12px;
  font-size: 14px;
  color: #172a49;
}
.acp-form-col input,
.acp-form-col select {
  margin-top: 6px;
  min-height: 46px;
  border: 1px solid #d0d9e8;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1d2f4f;
  background: #f7f9fc;
}
.acp-form-col input::placeholder {
  color: #8a9ab6;
}
.acp-form-col label:first-child {
  margin-top: 2px;
}
.acp-btn-create {
  margin-top: 16px;
  width: auto;
  min-width: 138px;
  min-height: 42px;
  padding: 8px 16px;
  background: #87c3bb;
  color: #fff;
  border: 1px solid #7ab8b0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.acp-progress-card {
  margin-top: 14px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #f7f9fc;
  padding: 12px;
}
.acp-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.acp-progress-head h3 {
  margin: 0;
  font-size: 15px;
  color: #12284a;
}
.acp-progress-status {
  display: inline-block;
  min-width: 90px;
  text-align: center;
  border: 1px solid #d0d9e8;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: #29466f;
  background: #fff;
}
.acp-progress-bar-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dce4f2;
  margin-top: 10px;
  overflow: hidden;
}
.acp-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #87c3bb, #3f9a81);
  transition: width .3s ease;
}
.acp-progress-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.acp-progress-steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #223a5f;
}
.acp-progress-steps li .acp-step-state {
  font-size: 12px;
  color: #60789a;
}
.acp-progress-steps li[data-step-state="completed"] .acp-step-state {
  color: #2e8a4d;
  font-weight: 600;
}
.acp-progress-steps li[data-step-state="in_progress"] .acp-step-state {
  color: #1f5e96;
  font-weight: 600;
}
.acp-progress-steps li[data-step-state="failed"] .acp-step-state {
  color: #c44545;
  font-weight: 600;
}
.acp-tenants-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.acp-tenants-head h2 {
  margin: 0;
  font-size: 26px;
}
.acp-tenants-head p {
  margin: 4px 0 0;
  color: #5c7394;
  font-size: 14px;
}
#tenant-search {
  max-width: 320px;
  background: #f7f9fc;
  border-color: #d2dbe9;
  min-height: 44px;
  font-size: 14px;
}
.acp-table {
  width: 100%;
  border-collapse: collapse;
}
.acp-table-clean {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: auto;
}
.acp-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.acp-table-clean thead th {
  border: 0;
  border-bottom: 1px solid #e5ebf4;
  background: transparent;
  font-size: 12px;
  color: #617493;
  letter-spacing: .8px;
  padding: 12px 10px;
  white-space: nowrap;
}
.acp-table-clean tbody td {
  border: 0;
  border-bottom: 1px solid #eef2f8;
  background: transparent;
  padding: 14px 10px;
  vertical-align: middle;
  white-space: nowrap;
}
.acp-table-clean tbody tr:last-child td {
  border-bottom: 0;
}
.acp-card table {
  width: 100%;
  border-collapse: collapse;
}
.acp-card th, .acp-card td {
  border: 1px solid #d8dfeb;
  padding: .52rem .5rem;
  vertical-align: top;
  text-align: left;
}
.acp-card th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #647692;
}
.acp-card td {
  font-size: 13px;
  color: #1d2f4f;
}
.acp-card .acp-table-clean th,
.acp-card .acp-table-clean td {
  border-left: 0;
  border-right: 0;
}
.acp-card td form {
  margin: 0;
}
.acp-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.acp-inline-form button {
  width: 100%;
}
.acp-inline-form .btn-danger-outline {
  width: auto;
}
.btn-danger {
  background: #f8efef;
  color: #bb4040;
  border: 1px solid #efc7c7;
}
.btn-danger:hover {
  background: #f2dede;
}
.btn-danger-outline {
  background: #fcf2f2;
  color: #d14a43;
  border: 1px solid #efb2b0;
  border-radius: 10px;
  padding: 7px 10px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
}
.btn-danger-outline:hover {
  background: #fbeaea;
  border-color: #e99f9d;
}
.trash-icon {
  display: inline-flex;
  width: 13px;
  height: 13px;
}
.trash-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.trash-icon i {
  font-size: 13px;
  line-height: 1;
  color: inherit;
}
.acp-cell-copy {
  position: relative;
}
.acp-cell-text {
  display: inline-block;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  vertical-align: middle;
}
.acp-cell-uuid .acp-cell-text {
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acp-copy-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 0;
  background: transparent;
  color: #6d7f99;
  border-radius: 4px;
  padding: 0;
  margin: 0 0 0 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, background .15s ease;
  vertical-align: middle;
}
.acp-copy-btn i {
  font-size: 12px;
}
.acp-cell-copy:hover .acp-copy-btn,
.acp-copy-btn:focus {
  opacity: 1;
  pointer-events: auto;
}
.acp-copy-btn:hover {
  background: #e8eef7;
  color: #375a8a;
}
.acp-copy-btn.is-copied {
  color: #2e8a4d;
}
.acp-checkbox-cell {
  text-align: center;
}
.acp-checkbox-cell input {
  width: auto;
}
.acp-metadata {
  margin: 0;
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.acp-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e5f4ea;
  color: #2e8a4d;
  font-size: 11px;
}
.acp-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 25, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.acp-modal[aria-hidden="false"] {
  display: flex;
}
.acp-modal-dialog {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d9dde5;
  padding: 16px;
}
.acp-modal-dialog h3 {
  margin: 0 0 .5rem 0;
}
.acp-modal-dialog p {
  margin: 0;
}
.acp-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}
.acp-modal-actions button {
  width: auto;
}
.acp-confirm-tenant-block {
  margin-top: 10px;
  border: 1px solid #dde4f0;
  border-radius: 8px;
  background: #f8faff;
  padding: 10px;
}
.acp-confirm-tenant-block p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #22385b;
}
.acp-confirm-tenant-block label {
  margin-top: 8px;
  font-size: 13px;
}
.acp-confirm-tenant-block input {
  margin-top: 6px;
  min-height: 38px;
  border: 1px solid #d0d9e8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
}

.acp-subscriptions-page .acp-header {
  padding: 20px 10px 14px;
}
.acp-subscriptions-page .acp-header h1 {
  font-size: 34px;
}
.acp-subscriptions-card {
  padding: 0;
}
.acp-subscriptions-card .acp-table-scroll {
  overflow-x: hidden;
}
.acp-subscriptions-table {
  table-layout: fixed;
  width: 100%;
}
.acp-subscriptions-table thead th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .7px;
  color: #5f7291;
  padding: 12px 10px 9px;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  vertical-align: bottom;
}
.acp-subscriptions-table tbody td {
  padding: 12px 10px;
  white-space: nowrap;
  font-size: 13px;
  color: #1a2e4b;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acp-subscriptions-table td select {
  margin: 0;
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid #d6deeb;
  background: #f7f9fc;
  font-size: 13px;
  color: #1e3353;
  padding: 4px 8px;
}
.acp-subscriptions-table .acp-checkbox-cell {
  text-align: center;
}
.acp-subscriptions-table .acp-checkbox-cell input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}
.acp-subscriptions-table .acp-actions {
  min-width: 82px;
}
.acp-subscriptions-table .acp-inline-form button {
  width: auto;
}
.acp-subscriptions-table .js-confirm-btn {
  min-height: 28px;
  border-radius: 9px;
  border: 1px solid #4f9c88;
  background: #3f9a81;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  margin: 0;
}
.acp-subscriptions-table .js-confirm-btn:hover {
  background: #358b74;
  border-color: #358b74;
}
.acp-sub-col-tenant { width: 13%; }
.acp-sub-col-uuid { width: 12%; }
.acp-sub-col-status { width: 10%; }
.acp-sub-col-module { width: 8%; }
.acp-sub-col-maint { width: 9%; }
.acp-sub-col-actions { width: 8%; text-align: center; }
.acp-sub-uuid-text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.acp-tenants-table {
  table-layout: fixed;
}
.acp-tenants-table thead th {
  text-align: center;
  vertical-align: bottom;
  white-space: normal;
  line-height: 1.15;
}
.acp-tenants-table tbody td {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: top;
}
.acp-tenants-table .acp-cell-uuid .acp-cell-text {
  max-width: 100%;
}
.acp-tenants-table .acp-actions {
  align-items: center;
}
.acp-tenants-scroll {
  overflow-x: hidden;
}

.acp-users-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.acp-users-create-grid label {
  margin-top: 0;
}
.acp-users-create-grid input,
.acp-users-create-grid select,
.acp-users-create-grid button {
  margin-top: 6px;
}
.acp-users-create-action button {
  min-height: 40px;
}
.acp-users-scroll {
  overflow-x: hidden;
}
.acp-users-table {
  table-layout: fixed;
}
.acp-users-table tbody td {
  vertical-align: top;
  white-space: normal;
  text-align: center;
}
.acp-users-table td form input,
.acp-users-table td form select,
.acp-users-table td form button {
  margin-top: 6px;
}
.acp-users-table td form input:first-child,
.acp-users-table td form select:first-child,
.acp-users-table td form button:first-child {
  margin-top: 0;
}
.acp-users-table th:nth-child(1),
.acp-users-table td:nth-child(1) { width: 20%; }
.acp-users-table th:nth-child(2),
.acp-users-table td:nth-child(2) { width: 6%; }
.acp-users-table th:nth-child(3),
.acp-users-table td:nth-child(3) { width: 17%; }
.acp-users-table th:nth-child(4),
.acp-users-table td:nth-child(4) { width: 50%; }
.acp-users-table th:nth-child(5),
.acp-users-table td:nth-child(5) { width: 7%; }

.acp-tenant-users-table th:nth-child(1),
.acp-tenant-users-table td:nth-child(1) { width: 14%; }
.acp-tenant-users-table th:nth-child(2),
.acp-tenant-users-table td:nth-child(2) { width: 14%; }
.acp-tenant-users-table th:nth-child(3),
.acp-tenant-users-table td:nth-child(3) { width: 8%; }
.acp-tenant-users-table th:nth-child(4),
.acp-tenant-users-table td:nth-child(4) { width: 8%; }
.acp-tenant-users-table th:nth-child(5),
.acp-tenant-users-table td:nth-child(5) { width: 14%; }
.acp-tenant-users-table th:nth-child(6),
.acp-tenant-users-table td:nth-child(6) { width: 36%; }
.acp-tenant-users-table th:nth-child(7),
.acp-tenant-users-table td:nth-child(7) { width: 6%; }

.acp-tenant-users-table {
  table-layout: fixed;
}
.acp-tenant-users-table thead th,
.acp-tenant-users-table tbody td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.acp-tenant-users-table td form {
  min-width: 0;
  max-width: 360px;
  margin: 0 auto;
}
.acp-tenant-users-table td:nth-child(6),
.acp-tenant-users-table th:nth-child(6) {
  padding-left: 6px;
  padding-right: 6px;
}
.acp-tenant-users-table td:nth-child(7),
.acp-tenant-users-table th:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}
.acp-tenant-users-table td:nth-child(7) .btn-danger-outline {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.acp-audit-table {
  table-layout: fixed;
}
.acp-audit-table thead th,
.acp-audit-table tbody td {
  white-space: normal;
}
.acp-audit-table th:nth-child(1),
.acp-audit-table td:nth-child(1) { width: 5%; }
.acp-audit-table th:nth-child(2),
.acp-audit-table td:nth-child(2) { width: 17%; }
.acp-audit-table th:nth-child(3),
.acp-audit-table td:nth-child(3) { width: 14%; }
.acp-audit-table th:nth-child(4),
.acp-audit-table td:nth-child(4) { width: 18%; }
.acp-audit-table th:nth-child(5),
.acp-audit-table td:nth-child(5) { width: 13%; }
.acp-audit-table th:nth-child(6),
.acp-audit-table td:nth-child(6) { width: 33%; text-align: left; }
.acp-audit-table .acp-metadata {
  margin: 0;
  max-width: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
  color: #223656;
}
.acp-metadata-details {
  display: inline-block;
  width: 100%;
}
.acp-metadata-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 70px;
  padding: 4px 10px;
  border: 1px solid #d0d9e8;
  border-radius: 8px;
  background: #f7f9fc;
  color: #2c4569;
  font-size: 12px;
  font-weight: 600;
}
.acp-metadata-details summary::-webkit-details-marker {
  display: none;
}
.acp-metadata-details[open] summary {
  background: #eef3fb;
}
.acp-metadata-details .acp-metadata {
  margin-top: 8px;
}

/* Unified header label style across all ACP tables/pages */
.acp-main .acp-table-clean thead th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .7px;
  color: #5f7291;
  padding: 12px 10px 9px;
  text-align: center;
  vertical-align: bottom;
  white-space: normal;
  line-height: 1.15;
}
.acp-main .acp-table-clean tbody td {
  text-align: center;
  vertical-align: top;
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .content {
    grid-template-columns: 1fr;
  }
  .selectors {
    grid-template-columns: 1fr 1fr;
  }
  .saas-layout {
    grid-template-columns: 1fr;
  }
  .tenant-layout {
    grid-template-columns: 1fr;
  }
  .acp-layout {
    grid-template-columns: 1fr;
  }
  .tenant-main .content {
    grid-template-columns: 1fr;
  }
  .acp-sidebar {
    min-height: auto;
  }
  .acp-form-grid {
    grid-template-columns: 1fr;
  }
  .acp-form-cols {
    grid-template-columns: 1fr;
  }
  .acp-tenants-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  #tenant-search {
    max-width: none;
    width: 100%;
  }
  .acp-actions {
    min-width: 140px;
  }
  .acp-header h1 {
    font-size: 30px;
  }
  .acp-header p {
    font-size: 14px;
  }
  .acp-card-head h2 {
    font-size: 22px;
  }
  .acp-card-head p {
    font-size: 14px;
  }
  .acp-form-col label {
    font-size: 14px;
  }
  .acp-form-col input,
  .acp-form-col select,
  #tenant-search,
  .acp-card td,
  .acp-btn-create,
  .btn-danger-outline {
    font-size: 14px;
  }
  .acp-card th {
    font-size: 12px;
  }
  .acp-subscriptions-page .acp-header h1 {
    font-size: 30px;
  }
  .acp-users-create-grid {
    grid-template-columns: 1fr;
  }
}
