/* v0.37.0 — Licença Saúde, Publicações DOE e documentos SEDUC */
.health-license-grid { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.health-license-list { margin-top: 24px; }
.health-license-filter-card { margin-top:24px; }
.health-license-filter-card > header { margin-bottom:12px; }
.health-license-filter { grid-template-columns:repeat(4,minmax(160px,1fr)) auto auto; }
.health-license-list > header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.table-scroll { overflow:auto; max-width:100%; }
.actions-cell { display:flex; gap:6px; align-items:center; min-width:190px; }
.actions-cell form { margin:0; }
.button-danger { background:#a82b2b; color:#fff; border-color:#a82b2b; }
.doe-search-form, .table-filter-bar, .official-toolbar { display:flex; gap:14px; align-items:end; flex-wrap:wrap; }
.doe-search-card { margin-bottom:22px; }
.checkbox-line { display:flex; gap:8px; align-items:center; padding-bottom:12px; }
.inline-actions { margin:0; }
.doe-job { margin-top:18px; padding:14px; border:1px solid #cfd9e5; border-radius:12px; background:#f7f9fc; }
.doe-progress { height:10px; background:#e1e7ef; border-radius:999px; overflow:hidden; margin:8px 0; }
.doe-progress span { display:block; height:100%; background:#1f6fd1; min-width:2%; transition:width .25s ease; }
.doe-table { min-width:1700px; }
.doe-excerpt { min-width:360px; max-width:520px; white-space:normal; }
.status-pill { display:inline-block; padding:4px 8px; background:#f6dfa3; border-radius:999px; font-size:12px; }
.status-pill.success { background:#ccebd8; }
.official-toolbar { padding:14px 16px; background:#fff; border:1px solid #dfe6ee; border-radius:14px; margin-bottom:18px; }
.official-toolbar .form-control { min-width:210px; width:auto; }

.seduc-sheet { background:white; color:#000; margin:0 auto 26px; box-shadow:0 3px 18px rgba(0,0,0,.12); box-sizing:border-box; overflow:hidden; }
.seduc-landscape { width:1120px; min-height:790px; padding:22px; }
.seduc-portrait { width:790px; min-height:1120px; padding:24px; }
.seduc-header { display:grid; grid-template-columns:28% 44% 28%; align-items:center; text-align:center; min-height:82px; font-size:12px; }
.sp-logo-text { display:flex; flex-direction:column; align-items:flex-start; padding-left:12px; font-size:11px; }
.sp-logo-text strong { font-size:20px; letter-spacing:.5px; }
.seduc-title { text-align:center; font-size:14px; margin:10px 0 14px; }
.blue-title { color:#1f4e79; }
.text-red { color:#d40000 !important; }
.text-green { color:#087a31 !important; }
.text-black { color:#000 !important; }
.text-left { text-align:left !important; }
.seduc-info-grid, .official-table, .ata-grid, .saldo-meta, .saldo-grid { width:100%; border-collapse:collapse; table-layout:fixed; }
.seduc-info-grid th { text-align:left; border:0; font-size:10px; width:12%; padding:4px; }
.seduc-info-grid td { border:1px solid #222; font-size:10px; padding:4px; }
.ata-block { margin:12px 0; font-size:10px; }
.ata-grid th, .ata-grid td { border:1px solid #222; padding:3px 2px; font-size:8px; text-align:center; height:24px; }
.ata-grid th:first-child { width:85px; text-align:left; }
.signature-row { display:grid; grid-template-columns:42% 58%; align-items:end; text-align:center; margin-top:28px; font-size:10px; }
.official-table th, .official-table td { border:1px solid #222; padding:3px; text-align:center; vertical-align:middle; font-size:8px; }
.official-table th { background:#e6e6e6; font-weight:700; }
.ata-geral-table th:nth-child(2){width:16%}.ata-geral-table th:last-child{width:42%}

.saldo-header { min-height:68px; }
.saldo-meta th, .saldo-meta td { border:1px solid #222; padding:2px; text-align:center; font-size:6.5px; height:18px; }
.saldo-meta th { background:#c9c9c9; }
.saldo-meta .big-cell { font-size:13px; font-weight:800; }
.saldo-grid { margin-top:5px; }
.saldo-grid th, .saldo-grid td { border:1px solid #222; text-align:center; vertical-align:middle; padding:1px; font-size:5.8px; height:21px; word-break:break-word; }
.saldo-grid thead th { background:#d9ead3; font-size:6px; }
.saldo-grid th:nth-child(1){width:24px}.saldo-grid th:nth-child(2){width:48px}.saldo-grid th:last-child{width:45px}
.vertical-text { writing-mode:vertical-rl; transform:rotate(180deg); letter-spacing:1px; }
.period-separator td { height:7px; background:#d9ead3; border-left:0; border-right:0; }
.saldo-bottom { display:grid; grid-template-columns:38% 62%; gap:8px; margin-top:6px; align-items:start; }
.saldo-signatures { font-size:8px; line-height:1.55; }
.saldo-subst th { background:#d99694; }
.saldo-registro th { background:#fff200; }
.saldo-registro td { height:16px; font-size:6.5px; }
.delivery-table { margin-top:12px; }
.delivery-table td { height:24px; }

.ordem-header { display:grid; grid-template-columns:30% 70%; align-items:center; text-align:center; min-height:75px; font-size:10px; }
.ordem-school-info { position:relative; min-height:112px; font-size:9px; padding:8px 170px 8px 0; }
.ordem-school-info p { margin:5px 0; }
.ordem-sign { position:absolute; right:92px; bottom:8px; width:150px; text-align:center; }
.ordem-stamp { position:absolute; right:0; top:0; width:80px; height:95px; border:1px solid #111; display:flex; align-items:center; justify-content:center; text-align:center; font-weight:700; }
.ordem-block { margin-top:7px; }
.ordem-block h3 { margin:0; padding:4px; font-size:8px; text-align:center; background:#fff2cc; border:1px solid #222; }
.ordem-block:nth-of-type(3) h3, .ordem-block:nth-of-type(4) h3 { background:#ddebf7; }
.ordem-table th, .ordem-table td { font-size:5.8px; padding:1px 2px; height:14px; }
.ordem-table th:first-child { width:28%; }

.page-break-after { page-break-after:always; }
@media (max-width:1100px){ .health-license-filter{grid-template-columns:1fr 1fr;} }
@media (max-width:900px){ .health-license-grid{grid-template-columns:1fr 1fr}.health-license-filter{grid-template-columns:1fr}.seduc-sheet{transform-origin:top left;} }
@media print {
    @page { margin:5mm; }
    body { background:white !important; }
    .sidebar,.topbar,.app-footer,.page-navigation,.messages,.no-print { display:none !important; }
    .app-shell,.app-main,.page-content { display:block !important; margin:0 !important; padding:0 !important; width:auto !important; min-height:0 !important; }
    .seduc-sheet { box-shadow:none; margin:0; padding:4mm; }
    .seduc-landscape { width:287mm; min-height:200mm; }
    .seduc-portrait { width:200mm; min-height:287mm; }
    .seduc-landscape { page:landscapePage; }
    .seduc-portrait { page:portraitPage; }
    @page landscapePage { size:A4 landscape; margin:5mm; }
    @page portraitPage { size:A4 portrait; margin:5mm; }
}

/* Publicações DOE v0.45.0 */
.doe-last-search-info { margin-top:14px; padding:12px 14px; border:1px solid var(--border, #d9dee8); border-radius:10px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.doe-period-label { display:block; margin-top:4px; }
.doe-bulk-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:14px 0 10px; }
.doe-bulk-actions > span { margin-right:auto; }
.doe-check-col { width:42px; min-width:42px; text-align:center; }
.doe-check-col input { width:16px; height:16px; }
.doe-row-read { opacity:.78; }
.doe-row-discarded { opacity:.62; }
.status-pill.danger { background:#f4cccc; }
