/* Tenant configuration, encryption and Finish setup (RXCON-54). Builds on workbench.css and design-tokens.css; works from 375px up. */
.tc-tab { min-width: 0; overflow-wrap: anywhere; }
.tc-tab button { max-width: 100%; }
.tc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 10px; }
.tc-top > .hint, .tc-top > p { margin: 0; }
.tc-summary { margin: 0 0 12px; color: var(--ink); }
.tc-identity { margin: 0 0 14px; }
.tc-identity h3 { margin: 0 0 8px; color: var(--navy); font-size: 15px; }
.tc-table-wrap { max-width: 100%; overflow-x: auto; margin: 0 0 10px; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tc-table th, .tc-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.tc-table th { color: var(--muted); font-weight: 600; }
.tc-overrides { margin: 10px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.tc-overrides .field input { width: 100%; max-width: 100%; box-sizing: border-box; }
.tc-overrides .hint { margin: 4px 0 0; }
.tc-tab .wb-table-wrap td { vertical-align: top; }

.tc-steps, .tc-finish-steps { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.tc-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.tc-step[data-state="failed"] { box-shadow: inset var(--wb-edge, 4px) 0 0 var(--bad); }
.tc-step[data-state="current"] { box-shadow: inset var(--wb-edge, 4px) 0 0 var(--warn-dot); }
.tc-step-number { font-weight: 700; color: var(--navy); }
.tc-step-title { min-width: 0; overflow-wrap: anywhere; }
.tc-key-facts { margin: 0 0 12px; }
.tc-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; word-break: break-all; }
.tc-tab progress { display: block; width: 100%; max-width: 420px; height: 12px; margin: 6px 0 12px; }
.tc-warning { margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--warn); border-radius: 6px; background: var(--tint); color: var(--ink); line-height: 1.45; }
.tc-console-steps { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.tc-link { color: var(--navy); text-decoration: underline; overflow-wrap: anywhere; }
.tc-changes { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; }

.tc-finish { min-width: 0; overflow-wrap: anywhere; }
.tc-finish-step { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); min-width: 0; }
.tc-finish-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; color: var(--navy); font-size: 15px; }
.tc-finish-done { color: var(--good, #1B7F3B); font-size: 13px; font-weight: 600; }
.tc-finish-state { margin: 0 0 8px; font-weight: 600; color: var(--navy); }
.tc-finish .field input { width: 100%; max-width: 100%; box-sizing: border-box; }
.tc-finish .hint { margin: 4px 0 8px; }
.tc-finish summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.tc-checklist { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.tc-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); min-width: 0; }
.tc-check[data-state="failed"] { box-shadow: inset var(--wb-edge, 4px) 0 0 var(--bad); }
.tc-check[data-state="manual"] { box-shadow: inset var(--wb-edge, 4px) 0 0 var(--warn-dot); }
.tc-check-label { min-width: 0; overflow-wrap: anywhere; }
.tc-check-detail { grid-column: 2; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.tc-manual-steps { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.tn-security { min-width: 0; margin: 0 0 12px; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .tc-step { grid-template-columns: 24px minmax(0, 1fr); }
  .tc-step .wb-status { grid-column: 2; }
  .tc-top button, .tc-finish-step button, .tc-overrides .actions button { width: 100%; }
  .tc-tab .actions { display: grid; gap: 8px; }
  .tc-check { grid-template-columns: minmax(0, 1fr); }
  .tc-check-detail { grid-column: 1; }
  .tc-finish .actions button, .tn-security > button { width: 100%; min-height: 44px; }
}

/* The tenant drawer is a modal dialog (RXCON-58 WP3): a scrim beside it, tabs that wrap rather than clip, the status line above the facts. */
.tn-scrim { position: fixed; top: 0; bottom: 0; right: 100%; width: 100vw; background: rgba(15, 36, 64, .35); }
.tn-drawer .wb-drawer-tabs { flex-wrap: wrap; overflow-x: visible; overflow: visible; row-gap: 4px; }
.tn-drawer .wb-drawer-tab { min-width: 0; }
.tn-drawer .tn-reasons { margin: 8px 0 12px; padding-left: 20px; }
.tn-drawer h3 { margin: 16px 0 6px; color: var(--navy); font-size: 15px; }

.tn-name { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.tn-name-label { font-weight: 600; overflow-wrap: anywhere; }
.tn-name-id { color: var(--muted, #5b6b7c); font-size: 12px; overflow-wrap: anywhere; }
