html {
  font-size: 14px;
}

body {
  background: #f6f7f9;
  color: #1f2933;
  margin: 0;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 .75rem;
}

.customers-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.toolbar-panel,
.customers-grid section {
  background: white;
  border: 1px solid #d9e0e8;
  border-radius: .5rem;
  padding: 1rem;
}

.form-row {
  align-items: center;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stack-form {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

.selected-row {
  background: #dbeafe;
}

.crud-table tbody tr:hover {
  background: #f4f8fc;
}

.crud-table tbody tr.selected-row > *,
.crud-table tbody tr.selected-row:hover > * {
  --bs-table-bg: #dbeafe;
  --bs-table-color: #111827;
  background-color: #dbeafe;
  color: #111827;
  font-weight: 700;
}

.crud-table tbody tr.selected-row .row-select-button {
  color: #0b5ed7;
  font-weight: 700;
}

.list-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
  margin-bottom: .75rem;
}

.list-filter-row label {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.list-filter-row select {
  min-width: 16rem;
}

.list-filter-row .text-filter-input {
  min-width: 16rem;
}

.sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: .35rem;
  padding: 0;
  text-align: left;
}

.sort-indicator {
  display: inline-block;
  height: .65rem;
  position: relative;
  width: .65rem;
}

.sort-indicator::before {
  border-left: .25rem solid transparent;
  border-right: .25rem solid transparent;
  content: "";
  left: .075rem;
  opacity: .28;
  position: absolute;
  top: .12rem;
}

.sort-indicator::after {
  border-left: .25rem solid transparent;
  border-right: .25rem solid transparent;
  content: "";
  left: .075rem;
  opacity: .28;
  position: absolute;
  top: .38rem;
}

.sort-indicator::before,
.sort-indicator-asc::before {
  border-bottom: .25rem solid #64748b;
}

.sort-indicator::after,
.sort-indicator-desc::after {
  border-top: .25rem solid #64748b;
}

.sort-indicator-asc::before,
.sort-indicator-desc::after {
  opacity: 1;
}

.sort-indicator-asc::after,
.sort-indicator-desc::before {
  opacity: .16;
}

.row-select-button {
  background: transparent;
  border: 0;
  color: #0b5ed7;
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-align: left;
}

.crud-form {
  max-width: 34rem;
}

.user-edit-form {
  gap: 1rem;
}

.two-column-field {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: 10rem minmax(0, 1fr);
}

.two-column-field > span {
  color: #344054;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

.form-actions-split {
  justify-content: space-between;
}

.current-roles {
  align-items: baseline;
  display: flex;
  gap: .5rem;
}

.check-row {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.compact-checks {
  margin-bottom: 0;
}

.pagination-bar {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

.link-button {
  background: transparent;
  border: 0;
  color: #0b5ed7;
  font-weight: 600;
  padding: 0;
}

.hash-cell {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.artifact-status {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .5rem;
  white-space: nowrap;
}

.artifact-status-uploaded {
  background: #dcfce7;
  color: #166534;
}

.artifact-status-missing {
  background: #fee2e2;
  color: #991b1b;
}

.project-service-artifact-table {
  table-layout: fixed;
}

.project-service-artifact-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.project-service-artifact-header h2 {
  margin-bottom: 0;
}

.project-service-artifact-table th:nth-child(1) {
  width: auto;
}

.project-service-artifact-table th:nth-child(2) {
  width: 13rem;
}

.project-service-artifact-table th:nth-child(3) {
  width: 13rem;
}

.project-service-artifact-table th:nth-child(4) {
  width: 13rem;
}

.project-service-artifact-table th:nth-child(5) {
  width: 8rem;
}

.project-service-artifact-table td {
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.project-service-artifact-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}

.project-service-artifact-filters label {
  display: grid;
  gap: .25rem;
}

.project-service-artifact-filters span {
  color: #344054;
  font-weight: 600;
}

.project-service-artifact-filters select {
  min-width: 10rem;
}

.project-service-target-filter {
  min-width: min(100%, 22rem);
}

.app-version-table {
  max-width: 48rem;
}

.app-version-add-row {
  align-items: center;
  display: flex;
  gap: .5rem;
  max-width: 28rem;
}

.app-version-add-row select {
  min-width: 0;
}

.nested-tabs {
  margin-top: 1rem;
}

.nested-crud-panel {
  border: 1px solid #b9c4d0;
  border-top: 0;
  margin-bottom: 1rem;
  padding: 1rem;
}

.nested-section {
  border-top: 1px solid #d9e0e8;
  margin-top: 1rem;
  padding-top: 1rem;
}

.password-input {
  display: inline-block;
  max-width: 10rem;
}

.role-select {
  display: inline-block;
  max-width: 12rem;
}

.licence-editor {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

.licence-header {
  display: grid;
  gap: .5rem;
  max-width: 28rem;
}

.licence-small-input,
.licence-date-input {
  max-width: 12rem;
}

.licence-modules {
  display: grid;
  gap: .45rem;
  max-width: 36rem;
}

.licence-module-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(14rem, 1fr) 14rem;
}

.licence-module-check {
  font-size: 1rem;
  min-width: 0;
}

.licence-limit-input {
  min-width: 0;
}

.licence-actions {
  justify-content: flex-start;
}

.token-output {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  max-width: 72rem;
  overflow-wrap: anywhere;
}

.token-status {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .5rem;
  white-space: nowrap;
}

.token-status-valid {
  background: #dcfce7;
  color: #166534;
}

.token-status-invalid {
  background: #fee2e2;
  color: #991b1b;
}

.token-list-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.token-list-header h3 {
  margin: 0;
}

.token-filter {
  margin-bottom: 0;
}

.token-row-actions {
  display: flex;
  gap: .35rem;
  justify-content: flex-end;
}

.modal-backdrop-custom {
  background: rgba(15, 23, 42, .55);
  inset: 0;
  position: fixed;
  z-index: 1050;
}

.modal-shell {
  display: grid;
  inset: 0;
  padding: 1rem;
  place-items: center;
  position: fixed;
  z-index: 1060;
}

.token-modal-content {
  max-width: 56rem;
  width: min(100%, 56rem);
}

.manifest-delete-modal-content {
  max-width: 34rem;
  width: min(100%, 34rem);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.dashboard-header {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-header h1 {
  margin-bottom: 0;
}

.dashboard-eyebrow {
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 .25rem;
  text-transform: uppercase;
}

.dashboard-kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: 1rem;
}

.dashboard-kpi {
  background: white;
  border: 1px solid #d9e0e8;
  border-radius: .5rem;
  display: grid;
  gap: .2rem;
  min-height: 7.5rem;
  padding: 1rem;
}

.dashboard-kpi-primary {
  background: #143d59;
  border-color: #143d59;
  color: white;
}

.dashboard-kpi span,
.project-stat-grid span {
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-kpi-primary span,
.dashboard-kpi-primary small {
  color: #dbeafe;
}

.dashboard-kpi strong {
  font-size: 2.25rem;
  line-height: 1;
}

.dashboard-kpi small {
  color: #64748b;
  font-weight: 600;
}

.dashboard-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .9fr);
}

.dashboard-panel {
  background: white;
  border: 1px solid #d9e0e8;
  border-radius: .5rem;
  min-width: 0;
  padding: 1rem;
}

.dashboard-panel-wide {
  min-width: 0;
}

.dashboard-panel-header {
  align-items: baseline;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.dashboard-panel-header h2 {
  margin-bottom: 0;
}

.dashboard-panel-header span {
  color: #64748b;
  font-size: .85rem;
  font-weight: 600;
}

.dashboard-panel-header a {
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-empty {
  margin-bottom: 0;
}

.provider-breakdown {
  display: grid;
  gap: .45rem;
}

.provider-row {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: .4rem;
  color: inherit;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(9rem, 1fr) repeat(3, minmax(5.5rem, max-content));
  padding: .65rem .75rem;
  text-decoration: none;
}

.provider-row:hover {
  background: #f4f8fc;
}

.provider-name {
  color: #0b5ed7;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-timeline {
  display: grid;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.change-timeline li {
  border-left: 3px solid #d9e0e8;
  display: grid;
  gap: .15rem;
  padding-left: .75rem;
}

.change-timeline strong {
  color: #111827;
}

.change-timeline span:not(.dashboard-badge) {
  color: #475569;
}

.change-timeline time {
  color: #64748b;
  font-size: .82rem;
}

.dashboard-badge,
.manifest-health {
  border-radius: 999px;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  justify-self: start;
  padding: .12rem .5rem;
}

.dashboard-badge-create {
  background: #dcfce7;
  color: #166534;
}

.dashboard-badge-update {
  background: #e0f2fe;
  color: #075985;
}

.project-stat-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-stat-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .4rem;
  display: grid;
  gap: .2rem;
  padding: .75rem;
}

.project-stat-grid strong {
  font-size: 1.55rem;
}

.dashboard-table {
  margin-bottom: 0;
}

.manifest-health-ok {
  background: #dcfce7;
  color: #166534;
}

.manifest-health-warning {
  background: #fee2e2;
  color: #991b1b;
}

.history-filter-panel {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 0;
}

.history-filter-panel label {
  display: grid;
  gap: .25rem;
}

.history-filter-panel label span {
  color: #344054;
  font-weight: 700;
}

.history-filter-panel select {
  min-width: 12rem;
}

.history-filter-panel input {
  min-width: 13rem;
}

.history-panel {
  border-top: 1px solid #b9c4d0;
  margin-top: 1rem;
}

.history-table {
  table-layout: fixed;
}

.history-table th:nth-child(1) {
  width: 10.5rem;
}

.history-table th:nth-child(2) {
  width: 8rem;
}

.history-table th:nth-child(3) {
  width: 6.5rem;
}

.history-table th:nth-child(4) {
  width: 7rem;
}

.history-table th:nth-child(5) {
  width: 11rem;
}

.history-data-cell {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.history-badge-delete {
  background: #fee2e2;
  color: #991b1b;
}

.content-panel {
  border-top: 1px solid #b9c4d0;
}

.content-editor-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(24rem, 1fr) minmax(24rem, 1fr);
}

.content-editor-form {
  display: grid;
  gap: .75rem;
}

.content-editor-form label,
.content-media-upload label,
.content-upload-row label {
  display: grid;
  gap: .25rem;
}

.content-editor-form label span,
.content-media-upload label span,
.content-upload-row label span {
  color: #344054;
  font-weight: 700;
}

.content-upload-row,
.content-media-upload {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.content-markdown-editor {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  min-height: 34rem;
  resize: vertical;
}

.content-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.content-preview {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: .5rem;
  max-height: 70vh;
  overflow: auto;
  padding: 1rem;
}

.content-preview img {
  border: 1px solid #d9e0e8;
  display: block;
  height: auto;
  margin: .75rem 0 1rem;
  max-width: 100%;
}

.content-preview table {
  width: 100%;
}

.cowmatic-scroll-table {
  max-height: 70vh;
  overflow: auto;
}

.cowmatic-scroll-table .table {
  margin-bottom: 0;
}

.cowmatic-scroll-table thead th {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.content-preview pre {
  background: #0f172a;
  border-radius: .4rem;
  color: #e2e8f0;
  padding: .75rem;
}

.login-card {
  background: white;
  border: 1px solid #d9e0e8;
  border-radius: .5rem;
  max-width: 24rem;
  padding: 1.5rem;
  width: 100%;
}

@media (max-width: 760px) {
  .two-column-field {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: flex-start;
  }

  .app-version-add-row {
    align-items: stretch;
    flex-direction: column;
  }

  .licence-module-row {
    align-items: stretch;
    gap: .35rem;
    grid-template-columns: 1fr;
  }

  .content-editor-layout {
    grid-template-columns: 1fr;
  }
}
.manager-icon-preview {
  display: grid;
  gap: 1.5rem;
}

.manager-icon-preview header p {
  margin-bottom: 0;
}

.manager-icon-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
}

.manager-icon-preview-card {
  display: grid;
  min-height: 8rem;
  place-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background: #fff;
}

.manager-icon-preview-sample {
  display: grid;
  place-items: center;
  color: #212529;
  font-size: 2rem;
}

.installation-info {
  display: grid;
  gap: 1rem;
}

.installation-info-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.installation-info-header h1 {
  margin-bottom: .25rem;
}

.installation-info-header p {
  color: #667085;
  margin-bottom: 0;
}

.installation-environment {
  background: #dbeafe;
  border-radius: 999px;
  color: #1e40af;
  font-weight: 700;
  padding: .35rem .75rem;
}

.installation-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
}

.installation-card {
  background: #fff;
  border: 1px solid #d9e0e8;
  border-radius: .5rem;
  padding: 1rem;
}

.installation-card h2 {
  font-size: 1.1rem;
  margin-bottom: .85rem;
}

.installation-properties {
  display: grid;
  gap: .5rem 1rem;
  grid-template-columns: minmax(9rem, auto) minmax(0, 1fr);
  margin-bottom: 0;
}

.installation-properties dt {
  color: #475467;
  font-weight: 600;
}

.installation-properties dd {
  margin-bottom: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.installation-table {
  margin-bottom: 0;
}

.installation-table code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.installation-status {
  border-radius: 999px;
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  padding: .15rem .5rem;
  white-space: nowrap;
}

.installation-status-ok {
  background: #dcfce7;
  color: #166534;
}

.installation-status-warning {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 760px) {
  .installation-card-grid {
    grid-template-columns: 1fr;
  }

  .installation-properties {
    grid-template-columns: 1fr;
  }

  .installation-properties dd:not(:last-child) {
    margin-bottom: .5rem;
  }
}
