/* Macedo HUB — Rotina do Dia (desktop). Mesma linguagem das janelas: papel bege claro, verde e dourado, movimentos curtos. */
.jc.sem-pad { padding: 0; overflow: hidden; }
.jc > .rt { position: relative; height: 100%; color: var(--tinta); font-family: var(--body); background: var(--janela); }
.rt button { font: inherit; }
.rt :focus-visible { outline: 2px solid var(--dourado); outline-offset: 2px; }
.rt-fade { animation: rtF 260ms ease-out both; }
@media (prefers-reduced-motion: no-preference) { .rt-fade { animation: rtIn 420ms cubic-bezier(0.2, 0, 0, 1) both; } }
@keyframes rtF { from { opacity: 0; } }
@keyframes rtIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* início */
.rt-inicio { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center;
  background: radial-gradient(70% 60% at 50% 40%, #FBF7EF 0%, var(--janela) 60%, #EFE6D3 100%); }
.rt-inicio .cx { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 640px; }
.rt-inicio .dia { font-size: 15px; color: var(--tinta-2); }
.rt-inicio h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.rt-logos { display: flex; justify-content: center; margin: 4px 0 2px; }
.rt-logos img { width: 44px; height: 44px; border-radius: 50%; margin-left: -10px; box-shadow: 0 0 0 3px var(--janela), 0 6px 14px rgba(15,42,32,0.18); }
.rt-logos img:first-child { margin-left: 0; }
.rt-resumo { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rt-resumo span { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.rt-resumo b { font-weight: 600; }
.rt-iniciar { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 30px 0 24px; margin-top: 8px; border: 0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, #D3AE58, #BF9640); color: #0F2A20; font-size: 18px; font-weight: 600;
  box-shadow: 0 14px 30px rgba(160,127,46,0.35), inset 0 1px 0 rgba(255,255,255,0.35); transition-property: transform, box-shadow; transition-duration: 180ms; transition-timing-function: cubic-bezier(0.2,0,0,1); }
@media (hover: hover) { .rt-iniciar:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(160,127,46,0.42), inset 0 1px 0 rgba(255,255,255,0.35); } }
.rt-iniciar:active { transform: scale(0.97); }
.rt-iniciar svg { flex: none; }

/* área de trabalho da rotina */
.rt-trab { position: absolute; inset: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.rt-lista { display: flex; flex-direction: column; min-height: 0; background: #F1E9DA; box-shadow: inset -1px 0 0 var(--linha); }
.rt-lista header { padding: 18px 18px 12px; }
.rt-lista header strong { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.rt-lista header span { font-size: 13px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.rt-prog { height: 4px; margin-top: 10px; border-radius: 2px; background: #E2D7C1; overflow: hidden; }
.rt-prog i { display: block; height: 100%; width: 0; border-radius: 2px; background: #3E8A63; transition: width 500ms cubic-bezier(0.2,0,0,1); }
.rt-itens { flex: 1; overflow: auto; padding: 4px 10px 14px; overscroll-behavior: contain; }
.rt-it { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background-color 120ms ease-out; }
@media (hover: hover) { .rt-it:hover { background: rgba(255,255,255,0.6); } }
.rt-it[aria-current="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--linha), 0 4px 12px rgba(15,42,32,0.07); }
.rt-it img { width: 30px; height: 30px; border-radius: 50%; }
.rt-it .t { min-width: 0; }
.rt-it .t strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-it .t span { display: block; font-size: 12px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-it .v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--tinta-2); }
.st i { width: 7px; height: 7px; border-radius: 50%; background: #C9BFA9; }
.st.aprovado i { background: #C9A24A; animation: rtPulso 1.4s ease-in-out infinite; } .st.aprovado { color: #8A6A1F; }
.st.pago i { background: #3E8A63; } .st.pago { color: #2F7A57; }
.st.devolvido i { background: #C0533F; } .st.devolvido { color: #A3402F; }
.st.alerta i { background: #D99A2B; }
@keyframes rtPulso { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .st.aprovado i { animation: none; } }

.rt-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.rt-cab { display: flex; align-items: center; gap: 14px; padding: 16px 22px 10px; }
.rt-cab img { width: 42px; height: 42px; border-radius: 50%; }
.rt-cab .t { flex: 1; min-width: 0; }
.rt-cab .t strong { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-cab .t span { font-size: 13.5px; color: var(--tinta-2); }
.rt-cab .val { text-align: right; }
.rt-cab .val strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rt-cab .val span { font-size: 13px; color: var(--tinta-2); }
.rt-menu-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--tinta-2); cursor: pointer; display: grid; place-items: center; }
.rt-menu-btn:hover { background: #EDE3CF; }
.rt-menu { position: absolute; right: 16px; top: 58px; z-index: 30; min-width: 230px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(15,42,32,0.18), inset 0 0 0 1px var(--linha); }
.rt-menu[hidden] { display: none; }
.rt-menu button { display: block; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--tinta); text-align: left; cursor: pointer; font-size: 14px; }
.rt-menu button:hover:not(:disabled) { background: #F1E9DA; }
.rt-menu button:disabled { color: #A4A99F; cursor: default; }

.rt-aviso { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 22px 10px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.rt-aviso.ok { background: #E3EFE7; color: #24603F; }
.rt-aviso.info { background: #EDE7DA; color: var(--tinta); }
.rt-aviso.atencao { background: #F7EBD0; color: #7A5410; }
.rt-aviso.erro { background: #F6DFD8; color: #8E3524; }
.rt-aviso .tx { flex: 1; min-width: 240px; }
.rt-aviso .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-mini { min-height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: #fff; color: var(--tinta); font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(15,42,32,0.14); }
.rt-mini:hover { background: #FBF7EF; }
.rt-mini.forte { background: var(--tinta); color: #EFE6D3; box-shadow: none; }

/* visor com zoom e arrasto */
.rt-visor { position: relative; margin: 0 22px; border-radius: 14px; overflow: hidden; background: #E4DAC6; box-shadow: inset 0 0 0 1px var(--linha); cursor: grab; touch-action: none; }
.rt-visor.arrastando { cursor: grabbing; }
.rt-palco { position: absolute; left: 0; top: 0; display: flex; gap: 28px; padding: 28px; transform-origin: 0 0; will-change: transform; }
.rt-palco .mhd { width: 820px; flex: none; margin: 0; }
.rt-palco.anima { transition: transform 260ms cubic-bezier(0.2,0,0,1); }
.rt-vazio-doc { width: 820px; flex: none; display: grid; place-items: center; min-height: 600px; border: 2px dashed #C9BB9F; border-radius: 6px; color: var(--tinta-2); font-size: 15px; text-align: center; padding: 24px; background: rgba(255,255,255,0.4); }
.rt-ferr { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.rt-sobre ~ .rt-ferr, .rt-visor:has(.rt-sobre) .rt-ferr { opacity: 0; pointer-events: none; }
.rt-seg, .rt-zoom { display: flex; align-items: center; padding: 3px; border-radius: 11px; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(15,42,32,0.12), inset 0 0 0 1px rgba(15,42,32,0.08); }
.rt-seg button, .rt-zoom button { min-width: 32px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--tinta); cursor: pointer; font-size: 13px; font-weight: 500; }
.rt-seg button[aria-pressed="true"] { background: var(--tinta); color: #EFE6D3; }
.rt-zoom button:hover, .rt-seg button:hover:not([aria-pressed="true"]) { background: #F1E9DA; }
.rt-zoom .pct { min-width: 50px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--tinta-2); }

/* sobreposição: aguardando comprovante / pago */
.rt-sobre { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: rgba(247,241,230,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: default; }
.rt-sobre .cx { display: flex; align-items: center; gap: 28px; padding: 28px 32px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(15,42,32,0.18), inset 0 0 0 1px var(--linha); max-width: 720px; }
.rt-sobre img.qr { width: 180px; height: 180px; image-rendering: pixelated; border-radius: 8px; }
.rt-sobre h3 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; }
.rt-sobre p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tinta-2); }
.rt-espera { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 600; color: #8A6A1F; }
.rt-espera i { width: 10px; height: 10px; border-radius: 50%; background: var(--dourado); animation: rtPulso 1.2s ease-in-out infinite; }
.rt-fora { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--tinta-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rt-pago { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rt-pago .ck { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #3E8A63; color: #fff; box-shadow: 0 16px 40px rgba(62,138,99,0.35); }
@media (prefers-reduced-motion: no-preference) { .rt-pago .ck { animation: rtPop 420ms cubic-bezier(0.2,0,0,1) both; } .rt-pago .ck path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: rtTraco 380ms 160ms ease-out forwards; } }
@keyframes rtPop { from { transform: scale(0.6); opacity: 0; } }
@keyframes rtTraco { to { stroke-dashoffset: 0; } }
.rt-pago strong { font-family: var(--display); font-size: 26px; }
.rt-pago img.cp { max-width: 180px; max-height: 150px; border-radius: 8px; box-shadow: 0 6px 18px rgba(15,42,32,0.18); }

/* barra de ações */
.rt-barra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 22px 16px; }
.rt-atalhos { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--tinta-2); }
.rt-atalhos kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-right: 5px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha), 0 1px 0 var(--linha); font: 600 11.5px var(--body); color: var(--tinta); }
.rt-acoes { display: flex; align-items: center; gap: 10px; }
.rt-nav { width: 46px; height: 46px; border: 0; border-radius: 14px; background: #fff; color: var(--tinta); cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linha); transition: transform 150ms ease-out; }
.rt-nav:hover:not(:disabled) { background: #FBF7EF; }
.rt-nav:active:not(:disabled) { transform: scale(0.94); }
.rt-nav:disabled { opacity: 0.4; cursor: default; }
.rt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 150px; height: 50px; padding: 0 22px; border: 0; border-radius: 15px; cursor: pointer; font-size: 16px; font-weight: 600; transition-property: transform, background-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.rt-btn:active:not(:disabled) { transform: scale(0.96); }
.rt-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rt-btn.reprovar { background: #fff; color: #A3402F; box-shadow: inset 0 0 0 1.5px #E2A194; }
.rt-btn.reprovar:hover:not(:disabled) { background: #FBEDEA; }
.rt-btn.aprovar { background: #2F7A57; color: #fff; box-shadow: 0 10px 22px rgba(47,122,87,0.3); }
.rt-btn.aprovar:hover:not(:disabled) { background: #2A6F4F; }
.rt-contador { justify-self: end; font-size: 13.5px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }

/* modais */
.rt-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(15,42,32,0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rt-modal[hidden] { display: none; }
.rt-modal .cx { width: min(420px, calc(100% - 40px)); padding: 26px; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(15,42,32,0.3); }
@media (prefers-reduced-motion: no-preference) { .rt-modal .cx { animation: rtPop 260ms cubic-bezier(0.2,0,0,1) both; } }
.rt-modal h3 { margin: 0 0 6px; font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }
.rt-modal p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--tinta-2); }
.rt-modal label { display: block; margin: 12px 0 6px; font-size: 13.5px; font-weight: 500; color: var(--tinta); }
.rt-pin { display: flex; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.rt-pin i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9BB9F; transition: background-color 120ms, box-shadow 120ms; }
.rt-pin i.on { background: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.rt-pin-in { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.rt-modal select, .rt-modal textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #F7F1E6; box-shadow: inset 0 0 0 1px var(--linha); color: var(--tinta); font: 14.5px var(--body); }
.rt-modal textarea { min-height: 84px; resize: vertical; }
.rt-modal select:focus, .rt-modal textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--dourado); }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-chips button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: #F1E9DA; color: var(--tinta); font-size: 13.5px; cursor: pointer; }
.rt-chips button[aria-pressed="true"] { background: var(--tinta); color: #EFE6D3; }
.rt-modal .linha-bt { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.rt-modal .msg { min-height: 18px; margin: 8px 0 0; font-size: 13.5px; color: #A3402F; text-align: center; }
.rt-treme { animation: rtTreme 360ms ease-out; }
@keyframes rtTreme { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* fim e resultado */
.rt-fim { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; background: radial-gradient(70% 60% at 50% 40%, #FBF7EF 0%, var(--janela) 60%, #EFE6D3 100%); }
.rt-fim .cx { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rt-fim h2 { margin: 0; font-family: var(--display); font-size: 40px; letter-spacing: -0.02em; }
.rt-res .grande { display: flex; gap: 14px; margin: 18px 0; }
.rt-res .grande div { flex: 1; padding: 16px; border-radius: 16px; background: #F7F1E6; box-shadow: inset 0 0 0 1px var(--linha); }
.rt-res .grande small { display: block; font-size: 12.5px; color: var(--tinta-2); }
.rt-res .grande strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 30px; font-variant-numeric: tabular-nums; }
.rt-res .grande em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: #2F7A57; }
.rt-res .grande em.ruim { color: #A3402F; }
.rt-barras { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.rt-barras div { display: grid; grid-template-columns: 34px 1fr 56px; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.rt-barras .tr { height: 10px; border-radius: 5px; background: #EFE6D3; position: relative; overflow: hidden; }
.rt-barras .tr span { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, #3E8A63, #66A985); }
.rt-barras .tr b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #A07F2E; }
.rt-barras div span:last-child { text-align: right; color: var(--tinta-2); }
.rt-modal .cx.rt-res { width: min(760px, calc(100% - 40px)); max-height: calc(100% - 40px); overflow: auto; }
