.rastreio-produto-screen { background:#f4f8f7; color:#17394b; padding:24px; }
.screen.rastreio-produto-screen.active { display:block; }
.rastreio-produto-app { max-width:1800px; min-width:0; width:100%; margin:auto; }
.rastreio-produto-app header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.rastreio-produto-app h1 { margin:0; font-size:clamp(1.5rem,3vw,2rem); }
.rastreio-produto-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px; padding:20px; background:#fff; border:1px solid #d9e7e4; border-radius:16px; }
.rastreio-produto-form label { flex:1 1 170px; display:flex; flex-direction:column; gap:7px; font-size:.75rem; font-weight:700; color:#587386; }
.rastreio-produto-form label { min-width:0; }
.rastreio-produto-form input,.rastreio-produto-form select { width:100%; min-width:0; min-height:42px; padding:9px 12px; border:1px solid #cbded9; border-radius:9px; background:#fff; color:#17394b; font:inherit; }
.rastreio-produto-app button { min-height:42px; padding:9px 18px; border:1px solid #b9ddd4; border-radius:9px; background:#eff8f5; color:#008575; cursor:pointer; font-family:inherit; font-size:.85rem; font-weight:700; }
.rastreio-produto-form button { background:#008575; color:#fff; border-color:#008575; }
.rastreio-produto-app button:disabled { opacity:.5; cursor:default; }
.rastreio-produto-status { min-height:24px; margin:20px 0 12px; color:#587386; }
.rastreio-produto-status.is-error { color:#b42318; }
.rastreio-produto-status.is-loading::before { content:""; display:inline-block; width:16px; height:16px; margin-right:9px; vertical-align:middle; border:2px solid #c9e5de; border-top-color:#008575; border-radius:50%; animation:rastreio-spin .8s linear infinite; }
@keyframes rastreio-spin { to { transform:rotate(360deg); } }
.rastreio-produto-table-wrap { container-type:inline-size; border:1px solid #cbdad6; border-radius:5px; background:#fff; }
.rastreio-produto-table { width:100%; table-layout:fixed; border-collapse:collapse; white-space:normal; overflow-wrap:anywhere; font-size:clamp(.72rem,.8vw,.85rem); }
.rastreio-produto-table th { padding:7px 8px; background:#f2f8f6; color:#587386; font-size:.7rem; text-align:left; border:1px solid #d4e0dc; }
.rastreio-produto-table td { padding:6px 8px; border:1px solid #d4e0dc; vertical-align:middle; line-height:1.3; }
.rastreio-produto-table .is-striped { background:#f7fbfa; }
.rastreio-produto-row { cursor:pointer; }
.rastreio-produto-row:hover { background:#edf7f3; }
.rastreio-produto-app .rastreio-produto-documento { min-height:20px; padding:0; border:0; background:transparent; color:#17394b; font-size:inherit; text-align:left; }
.rastreio-produto-detalhe-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr)); gap:14px; margin:0; }
.rastreio-produto-detalhe-grid dt { color:#587386; font-size:.7rem; }
.rastreio-produto-detalhe-grid dd { margin:5px 0 0; font-weight:700; }
.rastreio-produto-table small { display:block; margin-top:5px; color:#66808d; }
.rastreio-produto-table .is-number { text-align:right; }
.rastreio-produto-pagination { display:flex; justify-content:flex-end; align-items:center; gap:14px; margin-top:16px; }
.rastreio-produto-note { font-size:.76rem; color:#66808d; line-height:1.5; }
.rastreio-produto-coluna { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.rastreio-produto-filtro { position:relative; flex:none; }
.rastreio-produto-filtro summary { list-style:none; cursor:pointer; padding:2px 5px; border:1px solid #cbdad6; border-radius:3px; }
.rastreio-produto-filtro summary::-webkit-details-marker { display:none; }
.rastreio-produto-filtro.is-filtered summary { background:#008575; color:#fff; }
.rastreio-produto-filtro form { position:absolute; z-index:10; top:100%; right:0; width:min(250px,70vw); padding:12px; border:1px solid #cbdad6; border-radius:7px; background:#fff; box-shadow:0 8px 24px #17394b26; }
.rastreio-produto-table th:first-child .rastreio-produto-filtro form { left:0; right:auto; }
.rastreio-produto-filtro label { display:grid; gap:6px; }
.rastreio-produto-filtro input { width:100%; min-width:0; padding:8px; border:1px solid #cbdad6; border-radius:4px; font:inherit; }
.rastreio-produto-filtro form>div { display:flex; gap:6px; margin-top:8px; }
.rastreio-produto-filtro button { min-height:30px; padding:5px 9px; font-size:.72rem; }
.rastreio-produto-filtro form { width:min(290px,80vw); font-weight:400; }
.rastreio-produto-filtro form .rastreio-produto-opcoes { display:block; max-height:220px; overflow:auto; margin:6px 0; padding:5px; border:1px solid #cbdad6; }
.rastreio-produto-filtro .rastreio-produto-opcoes label,.rastreio-produto-filtro .rastreio-produto-selecionar { display:flex; align-items:center; gap:5px; padding:3px 0; font-size:.75rem; }
.rastreio-produto-filtro input[type="checkbox"] { width:14px; height:14px; padding:0; flex:none; accent-color:#008575; }
.rastreio-produto-filtro .rastreio-produto-opcoes span { overflow-wrap:anywhere; }
.rastreio-produto-filtro form footer { display:flex; justify-content:flex-end; gap:7px; margin-top:9px; }
.rastreio-produto-filtro-status { font-size:.7rem; margin:5px 0; color:#587386; }
.rastreio-produto-painel { position:fixed; inset:0; width:min(720px,calc(100vw - 32px)); max-width:calc(100vw - 32px); height:fit-content; max-height:calc(100dvh - 32px); margin:auto; padding:22px; border:1px solid #cbdad6; border-radius:16px; background:#fff; color:#17394b; overflow-y:auto; box-shadow:0 24px 60px #17394b40; }
.rastreio-produto-painel::backdrop { background:#17394b60; }
.rastreio-produto-painel header { position:sticky; top:-22px; padding:12px 0; background:#fff; border-bottom:1px solid #d4e0dc; }
.rastreio-produto-painel h2 { font-size:1.1rem; margin:0; }
.rastreio-produto-painel .rastreio-produto-detalhe-grid { grid-template-columns:1fr 1fr; }
.rastreio-produto-painel dd { overflow-wrap:anywhere; font-size:.85rem; }
@media (max-width:480px) { .rastreio-produto-painel .rastreio-produto-detalhe-grid { grid-template-columns:1fr; } }
@container(max-width:700px) {
  .rastreio-produto-table colgroup { display:none; }
  .rastreio-produto-table thead { display:block; }
  .rastreio-produto-table thead tr { display:grid; grid-template-columns:1fr 1fr; }
  .rastreio-produto-table th { display:block; min-width:0; }
  .rastreio-produto-table th:nth-child(odd) .rastreio-produto-filtro form { left:auto; right:-20px; }
  .rastreio-produto-table,.rastreio-produto-table tbody { display:block; width:100%; }
  .rastreio-produto-row { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #d9e7e4; }
  .rastreio-produto-table td { display:block; min-width:0; padding:6px 8px; }
  .rastreio-produto-row td::before { content:attr(data-label); display:block; color:#587386; font-size:.65rem; font-weight:700; margin-bottom:5px; }
}
@media(max-width:640px) { .rastreio-produto-screen { padding:18px 10px; } .rastreio-produto-app header { padding-left:40px; } .rastreio-produto-form { padding:14px; } }
