/* ALTITUDE V34 — ajustes finais responsivos, comercial, pagamentos e certificados */
:root {
  --v34-navy: #073b5d;
  --v34-blue: #0a5f86;
  --v34-cyan: #20aeb8;
  --v34-soft: #eef6f8;
  --v34-line: #d7e3e8;
  --v34-text: #20323f;
  --v34-muted: #647683;
  --v34-white: #fff;
  --v34-danger: #b42318;
  --v34-success: #16835d;
  --v34-warning: #a15c00;
  --v34-radius: 18px;
}

html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, canvas { max-width: 100%; }
[hidden] { display: none !important; }
body.v34-modal-open { overflow: hidden !important; }

/* Cabeçalho público único */
.old-header { display: block; }
.new-header { display: none; }
.old-header .top-bar {
  min-height: 84px !important;
  width: min(1320px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) auto minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
}
.old-header .institution-logo { justify-self: start; }
.old-header .institution-logo img { width: auto !important; height: 58px !important; object-fit: contain; }
.old-header .navbar { justify-self: center; }
.old-header .navbar ul { display: flex !important; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(16px, 2.2vw, 36px) !important; margin: 0 !important; padding: 0 !important; }
.old-header .navbar a { white-space: nowrap; }
.old-header .header-buttons { justify-self: end; display: flex; align-items: center; gap: 10px; }

.course-type-tabs { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px !important; align-items: stretch; }
.course-type-tab { min-width: 0 !important; width: 100% !important; height: auto !important; min-height: 88px; position: static !important; margin: 0 !important; }
.course-type-tabs:has(.course-type-tab:not([hidden]):only-child) { grid-template-columns: minmax(250px, 480px); }
.course-finder-controls, .finder-group, .course-finder-section { height: auto !important; min-height: 0 !important; overflow: visible !important; }
.catalog-tools { display: grid !important; grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(180px, .8fr)); gap: 12px !important; }
.public-course-card { min-width: 0; }
.public-course-card p { text-align: left; }

/* Gestor: tabelas e layout */
.container, .portal-layout { max-width: 100vw; }
.conteudo, .student-content { min-width: 0; }
.aba { min-width: 0; }
.card, .surface-card, .table-card { min-width: 0; }
.card:has(> table), .table-card { overflow: visible !important; }
.tabela, .portal-table, .certificate-admin-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
}
.tabela th, .tabela td, .portal-table th, .portal-table td, .certificate-admin-table th, .certificate-admin-table td {
  overflow-wrap: anywhere;
  word-break: normal !important;
  white-space: normal !important;
  vertical-align: middle;
}
.tabela th, .portal-table th, .certificate-admin-table th { line-height: 1.2; }
#tabCursos th:nth-child(1), #tabCursos td:nth-child(1) { width: 36%; }
#tabCursos th:nth-child(2), #tabCursos td:nth-child(2) { width: 14%; }
#tabCursos th:nth-child(3), #tabCursos td:nth-child(3) { width: 10%; }
#tabCursos th:nth-child(4), #tabCursos td:nth-child(4) { width: 12%; }
#tabCursos th:last-child, #tabCursos td:last-child { width: 28%; }
#tabChamados th:nth-child(1), #tabChamados td:nth-child(1) { width: 13%; }
#tabChamados th:nth-child(2), #tabChamados td:nth-child(2) { width: 18%; }
#tabChamados th:nth-child(3), #tabChamados td:nth-child(3) { width: 22%; }
#tabChamados th:nth-child(4), #tabChamados td:nth-child(4) { width: 10%; }
#tabChamados th:nth-child(5), #tabChamados td:nth-child(5),
#tabChamados th:nth-child(6), #tabChamados td:nth-child(6) { width: 10%; }
#tabChamados th:nth-child(7), #tabChamados td:nth-child(7) { width: 10%; }
#tabChamados th:last-child, #tabChamados td:last-child { width: 9%; }

.actions-grid, .course-admin-actions, .certificate-action-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.actions-grid button, .course-admin-actions button, .certificate-action-grid button,
.actions-grid a, .course-admin-actions a, .certificate-action-grid a { min-height: 36px; width: 100%; margin: 0 !important; padding: 7px 8px !important; font-size: 12px; justify-content: center; text-align: center; }

/* Construtor de cursos */
.builder-workspace, .course-builder-shell, .builder-layout { max-width: 100%; min-width: 0; }
.builder-mode-switch, .builder-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.builder-form-grid, .module-editor-grid, .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.builder-form-grid > *, .module-editor-grid > *, .grid2 > * { min-width: 0; }
input[type="file"] { width: 100%; max-width: 100%; white-space: normal; }
#latexModuleVideoList { display: grid; gap: 10px; margin-top: 12px; }
#latexModuleVideoList article { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.4fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--v34-line); border-radius: 14px; background: #f9fcfd; }
#latexModuleVideoList article > div:first-child { display: grid; gap: 3px; }
#latexModuleVideoList article small { color: var(--v34-muted); }
.builder-input-action { display: grid !important; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; }
.builder-input-action input { min-width: 0; }

/* Gestão comercial */
.v34-subtabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 16px 0 20px; background: #eaf3f6; border: 1px solid var(--v34-line); border-radius: 15px; }
.v34-subtabs button { border: 0; border-radius: 10px; padding: 11px 15px; background: transparent; color: var(--v34-navy); font-weight: 800; cursor: pointer; }
.v34-subtabs button.active { background: var(--v34-white); box-shadow: 0 5px 18px rgba(7,59,93,.11); }
.commercial-panel { display: none; }
.commercial-panel.active { display: block; }
.surface-admin-form { display: grid; gap: 15px; max-width: 980px; padding: 22px; border: 1px solid var(--v34-line); border-radius: var(--v34-radius); background: var(--v34-white); }
.surface-admin-form label { display: grid; gap: 7px; color: var(--v34-text); font-weight: 700; }
.surface-admin-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 9px; }
.surface-admin-form input, .surface-admin-form select, .surface-admin-form textarea { width: 100%; min-width: 0; }
.commercial-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.commercial-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--v34-line); border-radius: var(--v34-radius); background: var(--v34-white); box-shadow: 0 8px 25px rgba(7,59,93,.06); }
.commercial-card.media-card { grid-template-columns: 96px minmax(0, 1fr) auto; }
.commercial-card img { width: 96px; height: 80px; object-fit: cover; border-radius: 12px; }
.commercial-card > div { min-width: 0; }
.commercial-card > div:first-of-type, .commercial-card.media-card > div:nth-of-type(1) { display: grid; gap: 5px; }
.commercial-card > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.commercial-card h4, .commercial-card p { margin: 0; overflow-wrap: anywhere; }
.commercial-card span { color: var(--v34-cyan); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.commercial-card small { color: var(--v34-muted); }
.commercial-card button, .commercial-card a { border: 1px solid var(--v34-line); border-radius: 9px; padding: 8px 10px; background: #f7fbfc; color: var(--v34-navy); font-weight: 750; text-decoration: none; cursor: pointer; }
.commercial-card .danger { color: var(--v34-danger); }
.pack-payment-heading { margin-top: 30px; }

/* Modais da gestão */
.modal[aria-hidden="true"] { display: none !important; }
.modal[aria-hidden="false"] { display: flex !important; }
.modal__sheet { max-width: min(760px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); overflow-y: auto; }

/* Carteira global e certificados */
.wallet-global-note { display: block; color: var(--v34-muted); }
.payment-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.payment-status.success { color: #086246; background: #dcf8ec; }
.payment-status.warning { color: #835100; background: #fff0c7; }
.payment-status.danger { color: #8d1e16; background: #ffe2de; }
.payment-status.neutral { color: #4f626e; background: #edf2f4; }

/* Pagamento do aluno e cupom */
.payment-whatsapp-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; margin-bottom: 18px; border: 1px solid #bfe2e5; border-radius: var(--v34-radius); background: linear-gradient(135deg, #effbfb, #fff); }
.payment-whatsapp-card > div { display: grid; gap: 5px; }
.payment-whatsapp-card span { color: var(--v34-muted); }
.whatsapp-payment-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 0; border-radius: 11px; background: #138a5b; color: #fff !important; font-weight: 850; text-decoration: none; cursor: pointer; }
.payment-request-grid { display: grid; gap: 18px; margin-bottom: 20px; }
.payment-request-section-v34 { display: grid; gap: 12px; }
.payment-request-section-v34 > h2 { margin: 0; color: var(--v34-navy); font-size: 20px; }
.payment-request-section-v34 > p { margin: -5px 0 2px; color: var(--v34-muted); }
.payment-request-list, .available-pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.payment-request-card, .available-pack-card { display: grid; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--v34-line); border-radius: var(--v34-radius); background: #fff; box-shadow: 0 8px 26px rgba(7,59,93,.06); }
.payment-request-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.payment-request-card header > div { min-width: 0; }
.payment-request-card header span, .available-pack-card span { color: var(--v34-cyan); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.payment-request-card h3, .available-pack-card h3 { margin: 4px 0 0; color: var(--v34-navy); overflow-wrap: anywhere; }
.payment-request-card dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; }
.payment-request-card dl div { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: #f4f8fa; }
.payment-request-card dt { color: var(--v34-muted); font-size: 11px; }
.payment-request-card dd { margin: 0; color: var(--v34-text); font-weight: 800; overflow-wrap: anywhere; }
.payment-request-card .payment-total { grid-column: 1 / -1; background: #eaf8f7; }
.payment-request-card .payment-total dd { color: var(--v34-success); font-size: 19px; }
.payment-coupon-applied { width: fit-content; border-radius: 999px; padding: 7px 10px; background: #e7f8ef; color: var(--v34-success); font-weight: 800; font-size: 12px; }
.payment-coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.payment-coupon-row input { min-width: 0; text-transform: uppercase; }
.payment-coupon-row button { min-height: 42px; border: 0; border-radius: 10px; padding: 9px 13px; background: var(--v34-navy); color: #fff; font-weight: 800; cursor: pointer; }
.payment-request-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.payment-request-actions small { flex-basis: 100%; color: var(--v34-muted); }
.available-pack-card { grid-template-columns: 100px minmax(0, 1fr); align-items: center; }
.available-pack-card > img { width: 100px; height: 90px; object-fit: cover; border-radius: 13px; }
.available-pack-card > div:nth-of-type(1) { display: grid; gap: 4px; }
.available-pack-card p { margin: 0; color: var(--v34-muted); }
.available-pack-card strong { color: var(--v34-success); font-size: 21px; }
.available-pack-card .payment-coupon-row { grid-column: 1 / -1; }

/* Promoções */
.student-promotion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.student-promotion-card { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--v34-line); border-radius: var(--v34-radius); background: #fff; }
.student-promotion-card > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.student-promotion-card > div { display: grid; align-content: start; gap: 7px; padding: 16px; }
.student-promotion-card > div span { color: var(--v34-cyan); font-weight: 900; font-size: 11px; letter-spacing: .09em; }
.student-promotion-card h3, .student-promotion-card p { margin: 0; }
.student-promotion-card p { color: var(--v34-muted); }
.student-promotion-card footer { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 16px; }
.student-promotion-card footer a, .student-promotion-card footer button { border: 1px solid var(--v34-line); border-radius: 9px; padding: 8px 10px; background: #f7fbfc; color: var(--v34-navy); font-weight: 800; text-decoration: none; cursor: pointer; }
.v34-promotion-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(2, 28, 46, .72); backdrop-filter: blur(6px); }
.v34-promotion-modal[aria-hidden="true"] { display: none; }
.v34-promotion-dialog { position: relative; width: min(780px, 100%); max-height: calc(100dvh - 40px); overflow: auto; display: grid; grid-template-columns: minmax(240px, 42%) minmax(0, 1fr); border-radius: 24px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.v34-promotion-dialog > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.v34-promotion-dialog > div { display: grid; align-content: center; gap: 12px; padding: 34px; }
.v34-promotion-dialog > div > span { color: var(--v34-cyan); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.v34-promotion-dialog h2, .v34-promotion-dialog p { margin: 0; }
.v34-promotion-dialog h2 { color: var(--v34-navy); font-size: clamp(25px, 4vw, 38px); }
.v34-promotion-dialog p { color: var(--v34-muted); line-height: 1.65; }
.v34-promotion-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--v34-navy); font-size: 25px; cursor: pointer; }
.v34-promotion-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.v34-promotion-actions button, .v34-promotion-actions a { border: 0; border-radius: 10px; padding: 11px 14px; background: var(--v34-navy); color: #fff; font-weight: 850; text-decoration: none; cursor: pointer; }
.v34-promotion-actions button { background: #e9f3f6; color: var(--v34-navy); }

/* Sala de estudo e prova */
.lesson-layout, .study-room-layout { min-width: 0; }
.lesson-written-content p { text-align: justify; hyphens: auto; }
.lesson-written-content h1, .lesson-written-content h2, .lesson-written-content h3, .lesson-written-content li { text-align: left; }
.quiz-option { min-width: 0; }
.quiz-option span { min-width: 0; overflow-wrap: anywhere; }
.quiz-footer { position: sticky !important; bottom: 0; z-index: 4; background: #fff; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
#quizBody { padding-bottom: 12px; }

/* Responsividade */
@media (max-width: 1080px) {
  .old-header .top-bar { grid-template-columns: auto 1fr auto !important; gap: 15px !important; width: min(100% - 28px, 1100px) !important; }
  .old-header .navbar ul { gap: 14px !important; }
  .old-header .navbar a { font-size: 14px; }
  .commercial-card { grid-template-columns: 1fr; align-items: start; }
  .commercial-card.media-card { grid-template-columns: 90px minmax(0,1fr); }
  .commercial-card.media-card > div:last-child { grid-column: 1 / -1; }
  .commercial-card > div:last-child { justify-content: flex-start; }
  #latexModuleVideoList article { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .old-header { display: none !important; }
  .new-header { display: flex !important; position: relative; z-index: 100; min-height: 72px; align-items: center; justify-content: space-between; padding: 8px 18px; }
  .new-header .logo img { height: 52px; width: auto; object-fit: contain; }
  .new-header .menu-icon { position: relative; }
  .new-header .menu-icon > img { width: 34px; height: 34px; object-fit: contain; }
  .new-header .dropdown-menu { right: 0; left: auto; width: min(310px, calc(100vw - 28px)); max-height: calc(100dvh - 84px); overflow-y: auto; }
  .catalog-tools { grid-template-columns: 1fr !important; }
  .course-type-tabs { grid-template-columns: 1fr !important; }

  .student-sidebar, .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 5000 !important;
    width: min(330px, 88vw) !important;
    max-width: 88vw !important;
    height: 100dvh !important;
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }
  .student-sidebar.open, .student-sidebar.aberto, .sidebar.open, .sidebar.aberta { transform: translateX(0) !important; }
  .sidebar-overlay, .gestor-sidebar-overlay { position: fixed !important; inset: 0 !important; z-index: 4900 !important; background: rgba(4, 28, 43, .58) !important; backdrop-filter: blur(3px); }
  .sidebar-overlay.active, .sidebar-overlay.ativo, .gestor-sidebar-overlay.active, .gestor-sidebar-overlay.ativo { display: block !important; }
  .student-content, .conteudo { width: 100% !important; margin-left: 0 !important; min-width: 0 !important; }
  .student-topbar, .gestor-topbar { position: sticky; top: 0; z-index: 100; min-width: 0; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar-actions { min-width: 0; }
  .portal-search { display: none !important; }
  .student-profile-button span { display: none; }

  .tabela, .portal-table, .certificate-admin-table, .tabela thead, .portal-table thead, .certificate-admin-table thead,
  .tabela tbody, .portal-table tbody, .certificate-admin-table tbody,
  .tabela tr, .portal-table tr, .certificate-admin-table tr,
  .tabela th, .portal-table th, .certificate-admin-table th,
  .tabela td, .portal-table td, .certificate-admin-table td { display: block; width: 100% !important; }
  .tabela thead, .portal-table thead, .certificate-admin-table thead { position: absolute; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela tbody, .portal-table tbody, .certificate-admin-table tbody { display: grid; gap: 12px; }
  .tabela tr, .portal-table tr, .certificate-admin-table tr { padding: 14px; border: 1px solid var(--v34-line); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(7,59,93,.06); }
  .tabela td, .portal-table td, .certificate-admin-table td { min-height: 0; padding: 7px 0 !important; border: 0 !important; text-align: left !important; }
  .tabela td::before, .portal-table td::before, .certificate-admin-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--v34-muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
  .actions-grid, .course-admin-actions, .certificate-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .builder-form-grid, .module-editor-grid, .grid2 { grid-template-columns: 1fr; }
  .builder-input-action { grid-template-columns: 1fr; }
  .commercial-card-grid, .payment-request-list, .available-pack-grid, .student-promotion-grid { grid-template-columns: 1fr; }
  .surface-admin-form { padding: 16px; }
  .payment-whatsapp-card { align-items: stretch; flex-direction: column; }
  .payment-whatsapp-card .whatsapp-payment-button { width: 100%; }
  .available-pack-card { grid-template-columns: 78px minmax(0,1fr); }
  .available-pack-card > img { width: 78px; height: 78px; }
  .v34-promotion-dialog { grid-template-columns: 1fr; }
  .v34-promotion-dialog > img { min-height: 0; max-height: 270px; }
  .v34-promotion-dialog > div { padding: 24px 20px; }

  .lesson-layout, .study-room-layout { display: block !important; }
  .lesson-sidebar, .study-room-sidebar { position: static !important; width: 100% !important; max-height: none !important; margin-bottom: 14px; }
  .lesson-content, .study-room-content { width: 100% !important; min-width: 0 !important; }
  .lesson-written-content p { text-align: left; }
  .quiz-option { display: grid !important; grid-template-columns: 34px minmax(0,1fr); align-items: start; width: 100%; }
  .quiz-footer { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .student-content, .conteudo { padding-left: 12px !important; padding-right: 12px !important; }
  .page-heading h1, .page-heading h2 { font-size: clamp(24px, 8vw, 32px) !important; overflow-wrap: anywhere; }
  .summary-grid, .dashboard-kpis { grid-template-columns: 1fr !important; }
  .payment-request-card dl { grid-template-columns: 1fr; }
  .payment-request-card .payment-total { grid-column: auto; }
  .payment-coupon-row { grid-template-columns: 1fr; }
  .payment-request-actions > button, .payment-request-actions > a { width: 100%; }
  .commercial-card.media-card { grid-template-columns: 72px minmax(0,1fr); }
  .commercial-card img { width: 72px; height: 72px; }
  .v34-subtabs { flex-direction: column; }
  .v34-subtabs button { width: 100%; text-align: left; }
  .actions-grid, .course-admin-actions, .certificate-action-grid { grid-template-columns: 1fr; }
  .quiz-footer { grid-template-columns: 1fr 1fr; }
  .quiz-footer span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .quiz-footer button:first-child { grid-column: 1; grid-row: 2; }
  .quiz-footer button:last-child { grid-column: 2; grid-row: 2; }
  .v34-promotion-modal { padding: 10px; }
  .v34-promotion-dialog { max-height: calc(100dvh - 20px); border-radius: 17px; }
}

/* Conteúdo convertido do LaTeX/Overleaf — sem exibir comandos técnicos */
.latex-info-box {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #cfe0e8;
  border-left: 4px solid #0b6b90;
  border-radius: 12px;
  background: #f5fafc;
  color: #243744;
}
.latex-align-center { text-align: center !important; }
.latex-align-right { text-align: right !important; }
.latex-align-left { text-align: left !important; }
.latex-table-wrap { width: 100%; margin: 18px 0; overflow-x: auto; }
.latex-table { width: 100%; border-collapse: collapse; background: #fff; }
.latex-table th, .latex-table td { padding: 10px 12px; border: 1px solid #d8e4ea; vertical-align: top; }
.latex-table th { background: #eef6f8; color: #073b5d; text-align: left; }
.lesson-written-content p, .course-reading-content p { line-height: 1.72; text-align: justify; text-justify: inter-word; }
.lesson-written-content h1, .lesson-written-content h2, .lesson-written-content h3,
.course-reading-content h1, .course-reading-content h2, .course-reading-content h3 { text-align: left; }
@media (max-width: 620px) {
  .lesson-written-content p, .course-reading-content p { text-align: left; }
}

.certificate-request-adjustment { margin: 18px 0; padding: 16px; border: 1px solid var(--v34-line); border-radius: 14px; background: #f7fbfc; }
.certificate-request-adjustment > label { display: grid; gap: 7px; margin-top: 12px; font-weight: 800; color: #18384b; }
.certificate-request-adjustment small { display: block; margin-top: 10px; color: var(--v34-muted); line-height: 1.5; }

/* V34.1 — tabelas sem quebra de cabeçalhos e sem rolagem lateral no desktop */
@media (min-width: 861px) {
  .tabela th, .portal-table th, .certificate-admin-table th {
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
  }
  .tabela td, .portal-table td, .certificate-admin-table td {
    overflow-wrap: break-word;
  }
  .certificate-admin-table-wrap,
  #chamados > .card {
    overflow-x: visible !important;
  }
  .cert-admin-actions {
    min-width: 0 !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cert-admin-actions button,
  .cert-admin-actions a {
    min-width: 0;
    width: 100%;
    padding-inline: 6px;
  }

  #tabCarteirasHorasGestao th:nth-child(1), #tabCarteirasHorasGestao td:nth-child(1) { width: 21%; }
  #tabCarteirasHorasGestao th:nth-child(2), #tabCarteirasHorasGestao td:nth-child(2) { width: 10%; }
  #tabCarteirasHorasGestao th:nth-child(3), #tabCarteirasHorasGestao td:nth-child(3) { width: 12%; }
  #tabCarteirasHorasGestao th:nth-child(4), #tabCarteirasHorasGestao td:nth-child(4) { width: 11%; }
  #tabCarteirasHorasGestao th:nth-child(5), #tabCarteirasHorasGestao td:nth-child(5) { width: 10%; }
  #tabCarteirasHorasGestao th:nth-child(6), #tabCarteirasHorasGestao td:nth-child(6) { width: 10%; }
  #tabCarteirasHorasGestao th:nth-child(7), #tabCarteirasHorasGestao td:nth-child(7) { width: 11%; }
  #tabCarteirasHorasGestao th:nth-child(8), #tabCarteirasHorasGestao td:nth-child(8) { width: 15%; }

  #tabCertificadosGestao th:nth-child(1), #tabCertificadosGestao td:nth-child(1),
  #tabCertificadosProcessados th:nth-child(1), #tabCertificadosProcessados td:nth-child(1) { width: 18%; }
  #tabCertificadosGestao th:nth-child(2), #tabCertificadosGestao td:nth-child(2),
  #tabCertificadosProcessados th:nth-child(2), #tabCertificadosProcessados td:nth-child(2) { width: 20%; }
  #tabCertificadosGestao th:nth-child(3), #tabCertificadosGestao td:nth-child(3),
  #tabCertificadosProcessados th:nth-child(3), #tabCertificadosProcessados td:nth-child(3) { width: 7%; }
  #tabCertificadosGestao th:nth-child(4), #tabCertificadosGestao td:nth-child(4),
  #tabCertificadosProcessados th:nth-child(4), #tabCertificadosProcessados td:nth-child(4) { width: 13%; }
  #tabCertificadosGestao th:nth-child(5), #tabCertificadosGestao td:nth-child(5),
  #tabCertificadosProcessados th:nth-child(5), #tabCertificadosProcessados td:nth-child(5) { width: 10%; }
  #tabCertificadosGestao th:nth-child(6), #tabCertificadosGestao td:nth-child(6),
  #tabCertificadosProcessados th:nth-child(6), #tabCertificadosProcessados td:nth-child(6) { width: 10%; }
  #tabCertificadosGestao th:nth-child(7), #tabCertificadosGestao td:nth-child(7),
  #tabCertificadosProcessados th:nth-child(7), #tabCertificadosProcessados td:nth-child(7) { width: 22%; }

  #tabChamados th:nth-child(1), #tabChamados td:nth-child(1) { width: 11%; }
  #tabChamados th:nth-child(2), #tabChamados td:nth-child(2) { width: 16%; }
  #tabChamados th:nth-child(3), #tabChamados td:nth-child(3) { width: 20%; }
  #tabChamados th:nth-child(4), #tabChamados td:nth-child(4) { width: 9%; }
  #tabChamados th:nth-child(5), #tabChamados td:nth-child(5) { width: 9%; }
  #tabChamados th:nth-child(6), #tabChamados td:nth-child(6) { width: 9%; }
  #tabChamados th:nth-child(7), #tabChamados td:nth-child(7) { width: 9%; }
  #tabChamados th:nth-child(8), #tabChamados td:nth-child(8) { width: 8%; }
  #tabChamados th:nth-child(9), #tabChamados td:nth-child(9) { width: 9%; }
}
