:root {
    --blue-950: #062d62;
    --blue-900: #083f84;
    --blue-700: #075fb8;
    --blue-100: #eef8ff;
    --ink: #0b2c5c;
    --muted: #73839c;
    --line: #d8e1ee;
    --white: #ffffff;
    --shadow: 0 28px 70px rgba(5, 38, 78, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font: 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(rgba(5, 36, 69, 0.18), rgba(5, 36, 69, 0.18)),
        url("images/login-fundo.png") center/cover fixed;
}

a {
    color: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(100%, 820px);
    min-height: 540px;
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 22px 34px;
    background: linear-gradient(140deg, #f7fcff 0%, #e3f4ff 52%, #f6fbff 100%);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--blue-950);
}

.login-health-logo {
    width: min(100%, 245px);
}

.login-health-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.login-system-name {
    margin: 10px 0 0;
    color: var(--blue-950);
    font-size: 1.08rem;
    font-weight: 900;
    text-align: center;
}

.brand-mark strong {
    display: block;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 0.9;
}

.heart-shield {
    width: 76px;
    height: 60px;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--blue-700);
    font-size: 3.8rem;
    font-weight: 800;
}

.heart-shield::before {
    content: "";
    position: absolute;
    inset: 6px 8px 8px;
    border: 7px solid #45bf69;
    border-bottom-color: #49bfd4;
    border-right-color: #49bfd4;
    border-radius: 34px 34px 10px 34px;
    transform: rotate(45deg);
}

.heart-shield span {
    position: relative;
    z-index: 1;
}

.brand-divider {
    width: 104px;
    height: 2px;
    margin: 12px 0 18px;
    background: linear-gradient(90deg, #44c96d 0 52%, #62b9e9 52% 100%);
}

.secretary {
    margin: 0;
    text-align: center;
    font-size: 1.23rem;
    line-height: 1.45;
    font-weight: 700;
}

.hospital-illustration {
    width: min(100%, 430px);
    height: 185px;
    position: relative;
    margin-top: 22px;
    transform: scale(0.78);
}

.login-app-logo {
    width: min(100%, 260px);
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(5, 44, 92, 0.12);
}

.login-app-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.cloud {
    position: absolute;
    width: 58px;
    height: 18px;
    border: 2px solid #a8d7ff;
    border-radius: 18px;
    border-top-color: transparent;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 20px;
    height: 20px;
    border: 2px solid #a8d7ff;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
}

.cloud::before {
    left: 8px;
}

.cloud::after {
    right: 10px;
}

.cloud-a {
    left: 48px;
    top: 6px;
}

.cloud-b {
    right: 54px;
    top: 18px;
}

.mountain {
    position: absolute;
    bottom: 68px;
    width: 180px;
    height: 90px;
    border: 2px solid #b7dcff;
    border-right: 0;
    border-bottom: 0;
    transform: rotate(45deg);
}

.mountain-a {
    left: 24px;
}

.mountain-b {
    right: 34px;
}

.hospital-building {
    position: absolute;
    left: 50%;
    bottom: 38px;
    width: 250px;
    height: 126px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 38px 34px 0;
    transform: translateX(-50%);
    border: 3px solid #0c5ba7;
    background: rgba(216, 238, 255, 0.88);
    box-shadow: inset 0 -14px 0 rgba(147, 205, 246, 0.25);
}

.hospital-roof {
    position: absolute;
    left: 50%;
    top: -27px;
    width: 120px;
    height: 54px;
    transform: translateX(-50%) perspective(90px) rotateX(26deg);
    border: 3px solid #0c5ba7;
    background: rgba(235, 248, 255, 0.92);
}

.hospital-cross {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 4px solid #0c5ba7;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-700);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.hospital-building span {
    width: 18px;
    height: 30px;
    border: 2px solid #0c5ba7;
    background: #f7fdff;
}

.hospital-door {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    border: 3px solid #0c5ba7;
    border-bottom: 0;
    background: #9ed2f5;
}

.tree {
    position: absolute;
    bottom: 30px;
    width: 28px;
    height: 70px;
    border-bottom: 4px solid #0c5ba7;
}

.tree::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 36px;
    height: 48px;
    transform: translateX(-50%);
    border: 2px solid #0c5ba7;
    border-radius: 50%;
    background: #9bd1ef;
}

.tree-left {
    left: 42px;
}

.tree-right {
    right: 54px;
}

.brand-benefits {
    width: min(100%, 290px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
}

.brand-benefits div {
    display: grid;
    justify-items: center;
    text-align: center;
    color: var(--blue-950);
}

.brand-benefits div + div {
    border-left: 1px solid #c8dff2;
}

.brand-benefits small {
    font-size: 0.64rem;
    line-height: 1.25;
    font-weight: 600;
}

.form-panel {
    display: grid;
    align-items: center;
    padding: 38px 44px;
    background: radial-gradient(circle at 78% 15%, rgba(236, 246, 255, 0.65), transparent 26%), var(--white);
}

.form-content {
    width: min(100%, 380px);
    margin: 0 auto;
}

.form-content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 2.85rem);
    line-height: 1;
    color: var(--blue-950);
}

.subtitle {
    margin: 8px 0 26px;
    color: var(--muted);
    font-size: 1rem;
}

.app-version {
    margin: -22px 0 24px;
    color: #60748f;
    font-size: 0.78rem;
    font-weight: 800;
}

.field-label {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--blue-950);
    font-size: 0.98rem;
    font-weight: 800;
}

.input-wrap {
    min-height: 46px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(2, 40, 88, 0.04);
}

.input-wrap:focus-within {
    border-color: #83bff1;
    box-shadow: 0 0 0 3px rgba(11, 91, 184, 0.12);
}

.login-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: var(--ink);
    font: inherit;
    background: transparent;
}

.login-input::placeholder {
    color: #8c9bb1;
}

.icon-button {
    min-width: 58px;
    height: 38px;
    margin-right: 6px;
    border: 0;
    border-radius: 6px;
    color: var(--blue-900);
    background: transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
}

.icon-button:hover {
    background: var(--blue-100);
}

.validation-message,
.login-error {
    margin: -16px 0 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

.validation-message,
.login-error {
    color: #b42318;
}

.submit-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(90deg, #073e86, #075fb8);
    box-shadow: 0 14px 28px rgba(4, 70, 146, 0.24);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: #0a63c4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.app-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #f5f8fc;
}

.app-page.without-sidebar {
    grid-template-columns: 1fr;
}

.app-page.sidebar-collapsed {
    grid-template-columns: 54px 1fr;
}

.app-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 28px 20px;
    background: #ffffff;
    border-right: 1px solid #dbe5f1;
}

.sidebar-toggle {
    position: absolute;
    top: 14px;
    right: -15px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 1px solid #cbd8e8;
    border-radius: 50%;
    color: var(--blue-950);
    background: #ffffff;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(4, 42, 84, 0.14);
}

.sidebar-collapsed .app-sidebar {
    padding: 18px 10px;
}

.sidebar-collapsed .logo-brand,
.sidebar-collapsed .app-nav,
.sidebar-collapsed .app-credits {
    display: none;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-950);
}

.logo-brand {
    display: block;
}

.logo-brand img {
    display: block;
    width: 100%;
    max-width: 228px;
    height: auto;
}

.app-brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(140deg, #40b96a, #0b63c7);
    font-size: 2rem;
    font-weight: 900;
}

.app-brand strong,
.app-brand span {
    display: block;
}

.app-brand strong {
    font-size: 1.05rem;
}

.app-brand span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
}

.app-nav {
    display: grid;
    gap: 8px;
}

.app-credits {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #dbe5f1;
    color: #60748f;
    font-size: 0.72rem;
    font-weight: 800;
}

.rodape-sistema {
    margin-top: 24px;
    padding: 12px 24px;
    border-top: 1px solid #d9e3f0;
    color: #4b5f7a;
    font-size: 13px;
    line-height: 1.35;
}

.rodape-sistema div + div {
    margin-top: 2px;
}

.app-nav a,
.app-nav button {
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    color: #24466f;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-weight: 700;
}

.app-nav a:hover,
.app-nav a.active,
.app-nav button:hover,
.app-nav button.active {
    color: var(--blue-950);
    background: #eaf4ff;
}

.app-main {
    min-width: 0;
    padding: 22px;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.topbar-title img {
    width: min(34vw, 330px);
    max-height: 76px;
    object-fit: contain;
}

.app-topbar h1 {
    margin: 0;
    color: var(--blue-950);
    font-size: 1.65rem;
}

.app-topbar p {
    margin: 5px 0 0;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-summary {
    display: grid;
    gap: 3px;
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #ffefb3;
    border-radius: 8px;
    background: #fff8df;
    text-align: right;
}

.user-summary strong {
    color: #8a5200;
    font-size: 0.88rem;
}

.user-summary span {
    color: #60748f;
    font-size: 0.74rem;
    font-weight: 700;
}

.user-summary button {
    justify-self: end;
    padding: 0;
    border: 0;
    color: #8a5200;
    background: transparent;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
}

.password-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #ffefb3;
    border-radius: 8px;
    background: #fff8df;
}

.password-panel div,
.password-panel label {
    display: grid;
}

.password-panel strong {
    color: #8a5200;
}

.password-panel span,
.password-panel p {
    color: #60748f;
    font-size: 0.78rem;
    font-weight: 800;
}

.password-panel p {
    grid-column: 1 / -1;
    margin: 0;
}

.password-panel input {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d2deec;
    border-radius: 8px;
    font: inherit;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    color: var(--blue-950);
    background: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.panel-kicker {
    color: #027a48;
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.team-list-panel h2 {
    margin: 7px 0 8px;
    color: var(--blue-950);
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.team-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    align-items: start;
}

.admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    align-items: start;
}

.report-panel {
    padding: 18px;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(4, 42, 84, 0.08);
}

.transfer-panel {
    padding: 18px;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(4, 42, 84, 0.08);
}

.transfer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.transfer-grid label {
    display: grid;
    gap: 7px;
    color: #24466f;
    font-size: 0.78rem;
    font-weight: 800;
}

.transfer-grid select,
.transfer-grid input {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #d2deec;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
}

.transfer-warning {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #f7c56d;
    border-radius: 8px;
    color: #7a3b00;
    background: #fff7e6;
}

.transfer-warning strong {
    display: block;
    margin-bottom: 4px;
}

.transfer-warning p {
    margin: 0;
}

.transfer-actions {
    max-width: 420px;
}

.report-group {
    margin-top: 14px;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    overflow: hidden;
}

.report-group header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    color: var(--blue-950);
    background: #f3f8fe;
    font-weight: 800;
}

.report-group header span,
.report-group header em {
    color: #60748f;
    font-style: normal;
    font-size: 0.82rem;
}

.team-list-panel,
.team-detail-panel {
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(4, 42, 84, 0.08);
}

.team-list-panel {
    min-width: 0;
    padding: 18px;
}

.link-warning {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #f7c56d;
    border-radius: 8px;
    color: #7a3b00;
    background: #fff7e6;
}

.link-warning strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.link-warning p {
    margin: 0;
    line-height: 1.45;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.last-update {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 8px 0 0;
    padding: 0 10px;
    border: 1px solid #d6e7fb;
    border-radius: 999px;
    color: #074a96;
    background: #eef7ff;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-subtitle {
    margin: 4px 0 0;
    color: #60748f;
    font-size: 0.82rem;
}

.primary-action,
.secondary-action {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.primary-action {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, #073e86, #075fb8);
    box-shadow: 0 10px 22px rgba(4, 70, 146, 0.18);
}

.primary-action.muted {
    background: #dbe8f7;
    color: var(--blue-950);
    box-shadow: none;
}

.primary-action.danger-action {
    background: #b42318;
    box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.primary-action.warning-action {
    background: #b54708;
    box-shadow: 0 10px 22px rgba(181, 71, 8, 0.18);
}

.secondary-action {
    border: 1px solid #cbd8e8;
    color: var(--blue-950);
    background: #ffffff;
}

.warning-outline {
    color: #7a3b00;
    border-color: #f7c56d;
    background: #fff7e6;
}

.team-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.team-toolbar label {
    display: grid;
    gap: 7px;
    width: min(100%, 420px);
    color: #24466f;
    font-size: 0.78rem;
    font-weight: 800;
}

.team-toolbar input,
.team-toolbar select {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #d2deec;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    outline: 0;
}

.team-toolbar input:focus,
.team-toolbar select:focus {
    border-color: #83bff1;
    box-shadow: 0 0 0 3px rgba(11, 91, 184, 0.12);
}

.team-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #60748f;
}

.team-counter strong {
    color: var(--blue-950);
    font-size: 1.25rem;
}

.team-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
}

.team-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.team-table th,
.team-table td {
    padding: 9px 11px;
    border-bottom: 1px solid #e6edf6;
    text-align: left;
    vertical-align: middle;
}

.team-table th {
    color: #24466f;
    background: #f3f8fe;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.team-table tbody tr:hover,
.team-table tbody tr.selected {
    background: #f0f7ff;
}

.team-table tbody tr.responsavel-row {
    background: #fff8df;
}

.team-table tbody tr.responsavel-row:hover,
.team-table tbody tr.responsavel-row.selected {
    background: #ffefb3;
}

.team-table tbody tr.responsavel-row td:nth-child(2) {
    color: #8a5200;
    font-weight: 900;
}

.team-table tbody tr:last-child td {
    border-bottom: 0;
}

.actions-column {
    width: 190px;
    text-align: right;
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.row-actions button {
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #cbd8e8;
    border-radius: 6px;
    color: var(--blue-950);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.row-actions button.danger {
    color: #b42318;
    border-color: #f3c8c2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    color: #027a48;
    background: #e6f6ee;
    font-size: 0.74rem;
    font-weight: 900;
}

.status-pill.inactive {
    color: #b42318;
    background: #ffe7e2;
}

.table-state {
    min-height: 170px;
    display: grid;
    place-items: center;
    border: 1px dashed #cbd8e8;
    border-radius: 8px;
    color: #60748f;
    background: #f8fbff;
    font-weight: 800;
}

.table-state.error {
    color: #b42318;
    background: #fff6f4;
}

.team-detail-panel {
    padding: 16px;
    position: sticky;
    top: 18px;
}

.detail-header {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.detail-header span {
    color: #027a48;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-header strong {
    color: var(--blue-950);
    font-size: 1rem;
}

.team-detail-panel form,
.team-detail-panel label {
    display: grid;
}

.team-detail-panel form {
    gap: 11px;
}

.team-detail-panel label {
    gap: 7px;
    color: #24466f;
    font-size: 0.78rem;
    font-weight: 800;
}

.detail-input {
    min-height: 36px;
    width: 100%;
    padding: 0 11px;
    border: 1px solid #d2deec;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    outline: 0;
}

.token-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.token-field .secondary-action {
    min-height: 36px;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.form-message {
    margin: 2px 0 0;
    color: #24466f;
    font-size: 0.82rem;
    font-weight: 800;
}

.unlink-panel {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #f7c56d;
    border-radius: 8px;
    color: #7a3b00;
    background: #fff7e6;
    font-size: 0.78rem;
    font-weight: 800;
}

.unlink-panel span {
    color: #8a5b16;
    line-height: 1.35;
}

.unlink-panel button {
    justify-self: start;
}

.print-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.header-actions,
.report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.team-declaration {
    margin: 12px 0 0;
    color: #4b5f7a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.team-declaration strong {
    color: var(--blue-950);
    font-weight: 900;
}

.team-total {
    color: #24466f;
    font-size: 0.78rem;
    font-weight: 800;
}

.team-total strong {
    color: var(--blue-950);
    font-size: 0.86rem;
}

.print-button {
    min-width: 132px;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    color: #b42318;
}

@media (max-width: 820px) {
    .login-page {
        padding: 12px;
    }

    .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .brand-panel {
        padding: 36px 20px 28px;
    }

    .hospital-illustration {
        height: 190px;
        margin-top: 28px;
        transform: scale(0.88);
    }

    .brand-benefits {
        margin-top: 18px;
    }

    .form-panel {
        padding: 38px 22px 44px;
    }

    .app-page {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        gap: 18px;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid #dbe5f1;
    }

    .app-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-nav a {
        padding: 10px 8px;
        text-align: center;
        font-size: 0.86rem;
    }

    .app-main {
        padding: 22px 16px;
    }

    .app-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .topbar-title img {
        width: min(100%, 280px);
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .password-panel {
        grid-template-columns: 1fr;
    }

    .user-summary {
        min-width: 0;
        flex: 1;
        text-align: left;
    }

    .team-workspace {
        grid-template-columns: 1fr;
    }

    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .report-group header {
        grid-template-columns: 1fr;
    }

    .transfer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .team-toolbar,
    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .team-list-panel,
    .team-detail-panel {
        padding: 18px;
    }

    .team-detail-panel {
        position: static;
    }

    .app-credits {
        margin-top: 16px;
    }

    .rodape-sistema {
        padding: 14px 0;
    }
}

@media print {
    @page {
        size: landscape;
        margin: 12mm;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 11px;
    }

    .app-sidebar,
    .app-credits,
    .rodape-sistema,
    .team-detail-panel,
    .topbar-actions,
    .password-panel,
    .team-toolbar,
    .section-heading .primary-action,
    .print-button,
    .actions-column,
    .team-table th:last-child,
    .team-table td:last-child,
    #blazor-error-ui {
        display: none !important;
    }

    .app-page,
    .app-page.without-sidebar,
    .team-workspace {
        display: block;
        background: #ffffff;
    }

    .app-main,
    .team-list-panel {
        padding: 0;
    }

    .app-topbar {
        display: block;
        margin-bottom: 12px;
        position: relative;
        min-height: 82px;
        padding-right: 210px;
    }

    .topbar-title {
        display: block;
        width: 100%;
    }

    .topbar-title div {
        display: block;
    }

    .topbar-title img {
        display: block !important;
        position: absolute;
        top: 0;
        right: 0;
        width: 190px;
        max-height: 88px;
        object-fit: contain;
    }

    .app-topbar h1 {
        font-size: 18px;
    }

    .app-topbar p,
    .section-subtitle {
        color: #333333;
    }

    .team-list-panel {
        border: 0;
        box-shadow: none;
    }

    .report-panel {
        border: 0;
        padding: 0;
        box-shadow: none;
    }

    .report-group {
        break-inside: avoid;
        margin-top: 10px;
    }

    .report-group header {
        grid-template-columns: 1fr 1fr auto;
        padding: 6px 7px;
    }

    .team-table-wrap {
        overflow: visible;
        border: 1px solid #9ca3af;
    }

    .team-table {
        min-width: 0;
        width: 100%;
        font-size: 10px;
    }

    .team-table th,
    .team-table td {
        padding: 6px 7px;
        border-bottom: 1px solid #cbd5e1;
    }

    .team-table th {
        color: #000000;
        background: #edf2f7;
    }

    .team-table tbody tr.responsavel-row {
        background: #fff2bf !important;
    }

    .print-actions {
        display: block;
        margin-top: 8px;
    }

    .team-total {
        color: #000000;
        font-size: 10px;
    }

    .team-total strong {
        color: #000000;
        font-size: 10px;
    }

    .team-declaration {
        color: #000000;
        font-size: 10px;
        margin-top: 10px;
    }

    .status-pill {
        min-height: 0;
        padding: 0;
        background: transparent;
        color: #000000;
        font-size: 10px;
    }

    .status-pill.inactive {
        color: #b42318;
        background: transparent;
    }
}
