/* Habillage commun : navigation, tableaux et synthèse. Aucun calcul métier ici. */
.section-summary {
  margin: 0 0 22px;
}
.resource-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 800px;
  margin: 18px 0;
  font-size: 13px;
}
.resource-meter progress {
  grid-column: 1/-1;
  width: 100%;
  height: 9px;
  accent-color: #128ac0;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.history-chart {
  background: #f7fafc;
  padding: 16px;
  border-radius: 10px;
  min-width: 0;
}
.history-chart h4 {
  margin: 0 0 14px;
}
.history-chart svg {
  display: block;
  width: 100%;
}
.history-chart small {
  color: #597389;
  font-size: 11px;
}
.import-dialog {
  width: min(1000px, 95vw);
}
:root {
  color: #18394f;
  background: #f0f5f9;
}
aside {
  width: 214px;
  padding: 24px 15px;
  background: #16364d;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.brand-logo {
  border-radius: 10px;
  padding: 14px 10px;
}
.brand small {
  padding: 6px 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
nav {
  gap: 3px;
  margin-top: 17px;
}
.nav-section {
  color: #94b4c9;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 700;
  margin: 17px 10px 5px;
}
nav button {
  border-radius: 8px;
  min-height: 38px;
  padding: 10px 12px;
  transition: background 0.15s;
}
nav button[aria-current="page"] {
  background: #137fbb;
  box-shadow: inset 3px 0 #81d9ff;
}
nav button:hover {
  background: #24506b;
}
main {
  padding: 24px;
}
header {
  background: white;
  border: 1px solid #d4e3ec;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  box-shadow: 0 3px 12px #1b445508;
}
header h1 {
  color: #183e55;
  font-size: 26px;
}
.header-actions {
  flex-wrap: wrap;
  gap: 8px;
}
#identity {
  padding: 9px 12px;
  background: #eff7fb;
  border-radius: 8px;
  color: #24516b;
  font-weight: 600;
}
button {
  border-radius: 8px;
}
.primary {
  background: #0878b6;
  border-color: #0878b6;
}
.primary:hover:not(:disabled) {
  background: #075f92;
}
article {
  border-color: #d6e4ed;
  border-radius: 12px;
}
.notice {
  border-color: #22a5cd;
  border-radius: 0 8px 8px 0;
  background: #e9f4fa;
  font-size: 13px;
}
.toolbar {
  padding: 12px 15px;
  background: white;
  border: 1px solid #d6e4ed;
  border-radius: 10px;
}
.toolbar label {
  margin: 0;
}
.table-scroll {
  border-radius: 10px;
  border-color: #cce1ed;
}
th {
  background: #118ec5;
  color: white;
}
th button {
  color: white;
}
th,
td {
  min-width: 125px;
  line-height: 1.5;
}
tbody tr:nth-child(even) {
  background: #f6fafc;
}
tbody tr:hover {
  background: #eaf5fb;
}
.dashboard-heading,
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.dashboard-heading h2 {
  font-size: 24px;
  margin: 0 0 7px;
}
.dashboard-heading p {
  margin: 0;
  color: #6b8393;
  font-size: 13px;
}
.monitor-status {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid #d6e4ed;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  margin: 18px 0;
}
.monitor-status span:first-child::before {
  content: "●";
  padding-right: 8px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-panel {
  margin: 0;
  padding: 20px;
  min-width: 0;
  box-shadow: 0 4px 18px #1b445506;
}
.dashboard-panel.wide {
  grid-column: 1 / -1;
}
.parc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 18px;
}
.parc-tabs button {
  border-radius: 8px;
}
.collection-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.collection-controls select {
  width: auto;
  max-width: 100%;
}
.layout-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.widget-layout-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 14px;
}
.widget-layout-tools[hidden] {
  display: none;
}
.widget-layout-tools [draggable="true"],
.column-grip {
  cursor: grab;
}
.column-grip {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 3px;
  font-size: 16px;
  flex-shrink: 0;
}
.drop-target {
  outline: 3px solid #167ec0;
  outline-offset: -3px;
}
.dashboard-panel h3 {
  margin: 0 0 18px;
  font-size: 15px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}
.metric-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d9e6ef;
  border-top: 3px solid #168dc6;
  background: #fafdff;
  text-align: left;
  min-width: 0;
  width: 100%;
}
.metric-tile:hover {
  box-shadow: 0 5px 16px #0878b614;
  transform: translateY(-1px);
}
.metric-label {
  font-size: 12px;
  font-weight: 650;
  color: #547084;
}
.metric-value {
  font-size: 34px;
  color: #173e58;
  line-height: 1.1;
}
.metric-detail {
  font-size: 11px;
  color: #738998;
}
.metric-tile.green {
  border-top-color: #15987f;
}
.green .metric-value {
  color: #127560;
}
.metric-tile.red {
  border-top-color: #d6606d;
}
.red .metric-value {
  color: #ae3646;
}
.metric-tile.amber {
  border-top-color: #d8a03b;
}
.amber .metric-value {
  color: #976a19;
}
.distribution-row {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  gap: 8px;
  text-align: left;
  border: none;
  padding: 11px 0;
  background: transparent;
  font-size: 12px;
}
.distribution-row span {
  overflow-wrap: anywhere;
}
.distribution-track {
  grid-column: 1 / -1;
  height: 7px;
  background: #e9f0f5;
  border-radius: 9px;
  overflow: hidden;
}
.distribution-track span {
  display: block;
  height: 100%;
  background: #1694c9;
  border-radius: 9px;
}
.probe-line {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  width: 100%;
  background: #f8fbfd;
  padding: 16px;
  font-size: 12px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.muted {
  color: #708697;
  font-size: 12px;
}
.version-group {
  display: inline-block;
  margin: 0 22px 10px 0;
  vertical-align: top;
}
.version-group h4 {
  margin: 4px 0 10px;
  font-size: 13px;
}
.version-chip {
  font-size: 12px;
  border-radius: 20px;
  background: #edf6fc;
  margin: 0 7px 7px 0;
}
dialog {
  box-shadow: 0 20px 90px #102c5055;
  border-radius: 16px;
}
.admin-dialog {
  width: min(960px, 95vw);
}
fieldset {
  border: 1px solid #d5e3ed;
  border-radius: 10px;
  margin: 16px 0;
  padding: 16px;
  min-width: 0;
}
.segment-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.segment-tabs [aria-pressed="true"] {
  background: #173e58;
  color: white;
}
.account-list {
  max-height: 50vh;
  overflow: auto;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px;
  border-bottom: 1px solid #e0e9f0;
}
.account-row p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #617b8e;
}
.widget-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
}
.widget-option label {
  flex: 1;
}
.widget-option button {
  font-size: 12px;
}
@media (max-width: 1000px) {
  aside {
    width: 180px;
  }
  main {
    padding: 16px;
  }
  header {
    padding: 14px;
  }
  .header-actions {
    gap: 5px;
  }
}
@media (max-width: 800px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px;
  }
  .brand-logo {
    width: 145px;
  }
  .brand small,
  .nav-section {
    display: none;
  }
  nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .metric-value {
    font-size: 27px;
  }
  .metric-tile {
    padding: 12px;
  }
  .widget-option {
    flex-wrap: wrap;
  }
  .widget-option label {
    flex-basis: 100%;
  }
}
/* Colonnes partagées et console : styles indépendants des onglets métier. */
.data-table {
  margin: 16px 0 22px;
  min-width: 0;
}
.contract-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d6e4ed;
  border-radius: 10px 10px 0 0;
}
.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
  max-width: 600px;
  color: #72899b;
}
.table-search input {
  width: 100%;
  border: 0;
  background: #f3f7fa;
  padding: 8px 10px;
  font-size: 13px;
  height: 34px;
}
.data-table svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.table-count {
  margin-right: auto;
  font-size: 12px;
  white-space: nowrap;
  color: #617b8e;
}
.table-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  padding: 7px 10px;
  white-space: nowrap;
  height: 34px;
}
.table-reset {
  border: 0;
  color: #147cab;
}
.table-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.table-page-size {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  white-space: nowrap;
  font-size: 0.8rem;
}

.table-page-size select {
  width: auto;
  min-width: 4.5rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
}
.table-page {
  padding: 0;
  width: 30px;
  height: 32px;
  font-size: 20px;
}
.table-page-label {
  font-size: 12px;
  min-width: 36px;
  text-align: center;
}
.table-view-status {
  display: block;
  text-align: right;
  min-height: 0;
  font-size: 11px;
  color: #697f91;
}
.table-view-status:not(:empty) {
  padding: 4px 8px;
}
.data-table .table-scroll {
  border-radius: 0 0 10px 10px;
  max-height: 70vh;
}
.compact-grid thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.compact-grid {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.compact-grid th {
  padding: 9px 10px;
  vertical-align: middle;
  background: #1185b8;
  min-width: 150px;
  overflow-wrap: normal;
}
.compact-grid td {
  padding: 9px 10px;
  font-size: 12px;
  min-width: 150px;
  max-width: 260px;
  line-height: 1.45;
}
.compact-grid .table-id {
  min-width: 75px;
  width: 75px;
}
.table-cell-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.table-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}
th .table-sort {
  text-align: left;
  flex: 1;
  line-height: 1.4;
  font-size: 12px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.table-horizontal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #f5f9fc;
  border-inline: 1px solid #d6e4ed;
}
.table-horizontal-track {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #e1ebf2;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
}
.table-horizontal-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb-width, 80px);
  height: 10px;
  border-radius: 8px;
  background: #80a8c1;
}
.table-horizontal-track::-moz-range-thumb {
  width: var(--thumb-width, 80px);
  height: 10px;
  border: 0;
  border-radius: 8px;
  background: #80a8c1;
}
.table-horizontal-track:hover::-webkit-slider-thumb {
  background: #548bae;
}
.table-horizontal-arrow {
  width: 25px;
  height: 25px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.table-sort::after {
  content: attr(data-sort);
  padding-left: 4px;
  color: #ddf4ff;
}
th .table-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 5px;
  background: #ffffff18;
}
th .table-filter:hover,
th .table-filter.active {
  background: #fff;
  color: #0878b6;
}
th .table-filter.active {
  box-shadow: inset 0 -3px #ffc454;
}
.compact-grid .table-row-actions {
  min-width: 110px;
}
.table-row-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.table-row-actions details {
  margin: 0 0 5px;
}
.table-row-actions summary {
  font-size: 12px;
  white-space: nowrap;
}
.table-row-actions button {
  padding: 4px 7px;
  font-size: 11px;
  margin: 2px 3px 2px 0;
}
.table-empty {
  text-align: center;
  padding: 35px !important;
  color: #617b8e;
}
.table-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #f4f9fc;
  border-inline: 1px solid #d6e4ed;
}
.table-chip {
  border: 1px solid #b9d7e9;
  background: #e9f4fb;
  color: #195c82;
  font-size: 11px;
  border-radius: 16px;
  padding: 4px 9px;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 12px;
  box-sizing: border-box;
  max-height: min(420px, calc(100vh - 24px));
  overflow: auto;
  border: 1px solid #c7dbe8;
  border-radius: 10px;
  color: #18394f;
  background: white;
  box-shadow: 0 12px 40px #173e5830;
  font-size: 12px;
}
.table-popover::backdrop {
  background: transparent;
}
.table-popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.table-popover-close {
  border: 0;
  padding: 0 5px;
  font-size: 20px;
  line-height: 1;
}
.table-popover input[type="search"],
.table-popover select {
  width: 100%;
  font-size: 12px;
  padding: 8px;
  margin-bottom: 8px;
}
.table-column-list,
.table-filter-values {
  max-height: 230px;
  overflow: auto;
}
.table-column-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 5px;
}
.table-column-choice:hover {
  background: #f0f7fb;
}
.table-column-choice input {
  width: 15px;
  height: 15px;
  accent-color: #0878b6;
}
.table-popover-reset {
  border: 0;
  color: #147cab;
  font-size: 12px;
  padding: 9px 0 0;
}
.table-filter-value {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px;
  border: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.table-filter-value:hover {
  background: #edf6fc;
}
.table-popover-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e1eaf0;
  margin-top: 8px;
  padding-top: 10px;
}
.table-popover-footer button {
  font-size: 12px;
  padding: 6px 10px;
}
.data-table [hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .table-toolbar {
    flex-wrap: wrap;
  }
  .table-search {
    flex-basis: 100%;
    max-width: none;
  }
  .table-count {
    margin-right: auto;
  }
}
.console-page {
  display: block;
  margin: 2rem;
  max-width: none;
}
#terminal {
  background: #000;
  padding: 1rem;
  margin-top: 1rem;
  overflow: auto;
}
.compact-grid .selectable-row {
  cursor: pointer;
}
.compact-grid .selected-row td {
  background: #dceef9;
  box-shadow:
    inset 0 2px #168ac3,
    inset 0 -2px #168ac3;
}
.table-select-node {
  border: 0;
  background: transparent;
  color: #086c9d;
  text-align: left;
  padding: 0;
  font: inherit;
  font-weight: 600;
}
.table-select-node:focus-visible {
  outline: 2px solid #168ac3;
  outline-offset: 4px;
}
