/* Scoped support console; reuse InfoClínica tokens without changing clinical screens. */
body.platform-mode .app-shell,
body.platform-mode .demo-banner {
  display: none !important;
}
.pt-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
  color: var(--ink, #153238);
  background: var(--paper, #f5f8f7);
  font:
    15px/1.5 Inter,
    system-ui,
    sans-serif;
}
.pt-sidebar {
  background: #102f35;
  color: #d9e8e5;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.pt-sidebar > p {
  font-size: 12px;
  color: #b8ceca;
  margin: 18px 10px;
}
.pt-sidebar nav {
  display: grid;
  gap: 5px;
}
.pt-sidebar nav a {
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  min-height: 44px;
}
.pt-sidebar nav a:hover,
.pt-sidebar nav a[aria-current="page"] {
  background: #1b4b4a;
  color: #fff;
}
.pt-workspace {
  min-width: 0;
}
.pt-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line, #dce7e4);
  padding: 18px 30px;
}
.pt-header strong,
.pt-header small {
  display: block;
}
.pt-header small {
  color: var(--muted, #6f858a);
}
.pt-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 20px;
}
#pt-main {
  padding: 28px 30px;
  max-width: 1560px;
  margin: auto;
}
#pt-main h1 {
  font-size: 28px;
  margin: 0 0 22px;
}
#pt-main h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
#pt-main h3 {
  font-size: 16px;
  margin-top: 24px;
}
.pt-shell .card {
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pt-stats .stat-card {
  padding: 18px;
}
.pt-stats strong {
  font-size: 28px;
  display: block;
}
.pt-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}
.pt-shell label,
.pt-feedback-dialog label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.pt-filters label {
  flex: 1 1 150px;
}
.pt-shell input,
.pt-shell select,
.pt-shell textarea,
.pt-feedback-dialog input,
.pt-feedback-dialog select,
.pt-feedback-dialog textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--line, #dce7e4);
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink, #153238);
  font: inherit;
  box-sizing: border-box;
}
.pt-shell textarea,
.pt-feedback-dialog textarea {
  min-height: 110px;
  resize: vertical;
}
.pt-shell button,
.pt-feedback-dialog button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}
.pt-link {
  border: 0;
  background: transparent;
  color: #08785a;
  text-align: left;
  padding: 8px 0;
  overflow-wrap: anywhere;
  text-decoration: underline;
}
.pt-shell button:focus-visible,
.pt-shell a:focus-visible,
.pt-feedback-dialog button:focus-visible {
  outline: 3px solid #16a67a;
  outline-offset: 3px;
}
.pt-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.pt-shell table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.pt-shell th {
  text-align: left;
  font-weight: 650;
  color: #57716f;
  white-space: nowrap;
}
.pt-shell th,
.pt-shell td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line, #dce7e4);
  vertical-align: top;
}
.pt-shell td {
  overflow-wrap: anywhere;
  max-width: 270px;
}
.pt-badge {
  background: #eef6f2;
  border: 1px solid #dce7e4;
  border-radius: 20px;
  padding: 3px 9px;
  display: inline-block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pt-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pt-pager span {
  margin-right: auto;
}
.pt-empty {
  padding: 20px 0;
  color: #6f858a;
}
.pt-error {
  padding: 16px;
  background: #fff1ef;
  border: 1px solid #e6b0a9;
  border-radius: 12px;
  margin-bottom: 16px;
}
.pt-status {
  min-height: 24px;
  color: #466761;
}
.pt-note {
  font-size: 13px;
  color: #526d69;
}
.pt-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.pt-tabs button {
  background: #fff;
  border: 1px solid #dce7e4;
  border-radius: 9px;
  padding: 8px 14px;
}
.pt-tabs button[aria-pressed="true"] {
  border-color: #16a67a;
  background: #e9fbf5;
  color: #075b45;
}
.pt-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.pt-details > div {
  min-width: 0;
}
.pt-details dt {
  color: #6f858a;
  font-size: 12px;
}
.pt-details dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.pt-shell fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.pt-shell legend {
  font-weight: 700;
  margin-bottom: 14px;
}
.pt-shell .pt-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
.pt-shell .pt-check input {
  appearance: auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
}
.pt-check span {
  flex: 1;
  line-height: 22px;
}
.pt-shell form:not(.pt-filters) {
  display: grid;
  gap: 16px;
}
.pt-shell .pt-export {
  max-width: 680px;
  margin-top: 24px;
}
.pt-shell .pt-mfa {
  max-width: 560px;
}
.pt-mfa-qr {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}
.pt-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.pt-feedback-dialog {
  max-width: 580px;
  width: calc(100% - 32px);
  border: 1px solid #dce7e4;
  border-radius: 18px;
  padding: 24px;
  color: #153238;
  background: #fff;
  box-shadow: 0 18px 46px #17394133;
}
.pt-feedback-dialog::backdrop {
  background: #102f3580;
}
.pt-feedback-dialog form {
  display: grid;
  gap: 16px;
}
.pt-feedback-dialog h2 {
  margin: 0;
}
.pt-feedback-dialog p {
  font-size: 14px;
  margin: 0;
}
@media (max-width: 768px) {
  .pt-shell {
    grid-template-columns: 1fr;
  }
  .pt-sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }
  .pt-sidebar > p {
    margin: 10px;
  }
  .pt-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .pt-sidebar nav a {
    padding: 10px;
    font-size: 13px;
  }
  .pt-header {
    padding: 16px;
    flex-wrap: wrap;
  }
  .pt-header > div:last-child {
    gap: 12px;
  }
  #pt-main {
    padding: 20px 16px;
  }
  .pt-details {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .pt-shell .card {
    padding: 16px;
  }
  .pt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pt-shell h1 {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  #pt-main {
    padding: 18px 12px;
  }
  .pt-header {
    padding: 12px;
  }
  .pt-header > div:last-child {
    flex-wrap: wrap;
  }
  .pt-filters label {
    flex-basis: 100%;
  }
  .pt-details {
    grid-template-columns: 1fr;
  }
  .pt-stats {
    gap: 10px;
  }
  .pt-stats .stat-card {
    padding: 12px;
    font-size: 13px;
  }
  .pt-feedback-dialog {
    padding: 18px;
  }
}

/* Use the same bell size and responsive rules as the professional header. */
.pt-header .notification-bell { min-height: 0; }
