/* Contas do Dia — telas do app (visual das páginas 3 a 7 dos layouts). Desktop, 1366 px ou mais. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 13px/1.35 Arial, Helvetica, sans-serif; color: #1d1d1f; background: #f6f6f8; min-width: 1100px; }
button, input, select { font: inherit; color: inherit; }
button { border: 1px solid #bbb; background: #fff; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
button:hover:not(:disabled) { border-color: #777; }
button:disabled { opacity: .45; cursor: default; }
button.pri { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
button.lnk { border: 0; background: none; color: #0b57d0; padding: 3px 0; }
button.lnk:hover { text-decoration: underline; }
button.mini { padding: 2px 7px; font-size: 12px; }
input[type=text], input[type=date], select { border: 1px solid #bbb; border-radius: 4px; padding: 5px 8px; background: #fff; }
input[type=checkbox] { width: 14px; height: 14px; margin: 0; vertical-align: middle; cursor: pointer; accent-color: #0b57d0; }

.nav { display: flex; gap: 22px; align-items: center; background: #1d1d1f; color: #bbb; padding: 9px 16px; position: sticky; top: 0; z-index: 20; }
.nav b { color: #fff; font-size: 15px; margin-right: 6px; }
.nav a { cursor: pointer; padding: 2px 0; border-bottom: 2px solid transparent; user-select: none; }
.nav a:hover { color: #fff; }
.nav a.a { color: #fff; border-bottom-color: #f5c400; }
.sp { flex: 1; }
.lbl { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.big { font-size: 22px; font-weight: bold; }
.sm { font-size: 12px; color: #666; }
.card { background: #fff; border: 1px solid #d5d5da; border-radius: 6px; padding: 12px; }
.sidet { font-weight: bold; font-size: 14px; margin-bottom: 6px; }
.sided { font-size: 12px; color: #666; margin-bottom: 8px; }
.warn, .info, .erro { border-radius: 4px; padding: 6px 9px; margin-top: 8px; font-size: 12.5px; }
.warn { background: #fff8d6; border: 1px solid #e8d77a; }
.info { background: #eef4ff; border: 1px solid #b7cdf5; }
.erro { background: #fdecee; border: 1px solid #f0a6ae; color: #8a0012; }
.avisos { padding: 0 16px; }
.avisos .warn, .avisos .info { display: flex; gap: 12px; align-items: center; }

/* Importar */
.imp { padding: 16px; max-width: 1500px; }
.imp-topo { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dz { display: block; border: 2px dashed #999; border-radius: 8px; background: #fff; text-align: center; padding: 22px; font-size: 14px; cursor: pointer; }
.dz.sobre { border-color: #0b57d0; background: #eef4ff; }
.dzi { font-size: 28px; }
.cols2 { display: flex; gap: 12px; margin-top: 12px; }
.cols2 > .card { flex: 1; min-width: 0; }
.chips span, .chip { display: inline-block; margin: 2px; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.chips .ok { background: #e3f5e8; color: #16632f; }
.chips .falta { background: #fdecee; color: #8a0012; font-weight: bold; }
.chips .extra { background: #eee; color: #666; }
button.chip { border: 1px solid #b7cdf5; background: #eef4ff; color: #0b57d0; }
button.chip.on { background: #0b57d0; color: #fff; }
.cta { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.res { width: 100%; border-collapse: collapse; font-size: 13px; }
.res td, .res th { padding: 4px 6px; border-bottom: 1px solid #eee; text-align: left; }
.res td:last-child { text-align: right; }
.res tr.t td { font-weight: bold; border-top: 1px solid #999; }
.hist td:last-child { white-space: nowrap; }

/* Montar */
.tb { display: flex; gap: 26px; align-items: flex-end; padding: 10px 16px; background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 37px; z-index: 15; }
.tb .btns { display: flex; gap: 8px; }
.selbar { display: flex; gap: 12px; align-items: center; background: #fff8d6; border-bottom: 1px solid #e8d77a; padding: 7px 16px; position: sticky; top: 104px; z-index: 14; }
.dd { position: relative; }
.menu { position: absolute; left: 0; top: calc(100% + 3px); background: #fff; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 30; min-width: 170px; padding: 3px 0; }
.menu div { padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.menu div:hover { background: #1d1d1f; color: #fff; }
.grid { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; }
.col { flex: 1; min-width: 0; }
.side { width: 270px; flex: none; position: sticky; top: 150px; }
.bk { background: #fff; border: 1px solid #d5d5da; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.bk.drop, .painel-fora.drop { outline: 2px dashed #0b57d0; outline-offset: -2px; background: #eef4ff; }
.bkh { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-bottom: 1px solid #e5e5ea; }
.bkn { font-weight: bold; font-size: 14px; }
.cnt { color: #777; font-size: 12px; }
.bks { margin-left: auto; font-weight: bold; font-size: 14px; }
.bk.vazio .bkh { border-bottom: 0; }
.bk.vazio .bkn { color: #777; }
.bk.vazio .empty { padding: 4px 10px 7px !important; text-align: left; font-size: 11.5px; }
.bk.vazio .bkh { padding-bottom: 2px; }
.st { width: 100%; border-collapse: collapse; table-layout: fixed; }
.st th { text-align: left; font-size: 11px; color: #666; font-weight: normal; padding: 4px 5px; border-bottom: 1px solid #eee; }
.st td { padding: 4px 5px; border-bottom: 1px solid #f0f0f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.st col.c-h { width: 22px; } .st col.c-cb { width: 26px; } .st col.c-n { width: 56px; } .st col.c-f { width: 104px; }
.st col.c-v { width: 112px; } .st col.c-x { width: 34px; } .st col.c-forn { width: 30%; } .st col.c-pl { width: 22%; }
.st tr.sel td { background: #e8f0fe; }
.st tr.arrastando td { opacity: .45; }
.st tr.ins-antes td { box-shadow: inset 0 2px 0 #0b57d0; }
.st tr.ins-depois td { box-shadow: inset 0 -2px 0 #0b57d0; }
.h { color: #aaa; cursor: grab; user-select: none; text-align: center; }
.h:hover { color: #1d1d1f; }
.hlp, .nhl { padding: 1px 4px; cursor: pointer; border-radius: 2px; }
.hlp { background: #ffff00; }
.nhl:hover { outline: 1px dashed #bbb; }
.tag { font-size: 10.5px; background: #eee; color: #555; border-radius: 3px; padding: 0 5px; margin-left: 4px; }
.tag.novo { background: #ffe08a; color: #6b4b00; font-weight: bold; }
.tag.regra { background: #e3f5e8; color: #16632f; }
.tag.venc { background: #fdecee; color: #8a0012; }
.tag.naocad { background: #fdecee; color: #8a0012; font-weight: normal; font-size: 11px; }
.pc, .ds { color: #444; }
.empty { text-align: center; color: #888; padding: 12px !important; font-style: italic; }
button.x { border: 0; background: none; color: #999; padding: 0 4px; }
button.x:hover { color: #b00020; }
.fc { background: #fff; border: 1px solid #d5d5da; border-left: 3px solid #999; border-radius: 4px; padding: 6px 8px; margin-bottom: 6px; font-size: 12.5px; cursor: grab; }
.fc.venc { border-left-color: #d9534f; }
.fcs { color: #666; font-size: 12px; }
.painel-fora { border-radius: 6px; padding: 2px; margin: -2px -2px 12px; }
.painel-fora .dica { font-size: 12px; color: #999; font-style: italic; border: 1px dashed #ccc; border-radius: 4px; padding: 10px; text-align: center; }
.vazio-dia { padding: 40px; text-align: center; }

/* Menu de contexto */
.ctx { position: fixed; background: #fff; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 50; min-width: 260px; padding: 4px 0; font-size: 13px; }
.ctx .ctx-t { padding: 5px 12px; color: #666; font-size: 12px; border-bottom: 1px solid #eee; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.ctx .ctx-s { padding: 5px 12px 2px; color: #888; font-size: 11px; text-transform: uppercase; }
.ctx .ctx-i { padding: 5px 12px 5px 22px; cursor: pointer; }
.ctx .ctx-i:hover { background: #1d1d1f; color: #fff; }

/* Exportar */
.expw { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
.expl { width: 280px; flex: none; }
.opt { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f2; cursor: pointer; }
.opt input { margin-top: 3px; accent-color: #1d1d1f; }
.prev { flex: 1; min-width: 0; }
.mini-wrap { background: #fff; border: 1px solid #ccc; box-shadow: 0 2px 10px rgba(0,0,0,.12); overflow: hidden; position: relative; }
.mini-wrap .saida { transform-origin: top left; position: absolute; left: 0; top: 0; }
#exp-nome { width: 100%; }

/* Configurações */
.cols3 { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.cols3 > .card { flex: 1; min-width: 0; }
.cfg td { padding: 3px 4px; vertical-align: middle; }
.cfg td:last-child { text-align: right; white-space: nowrap; }
.cfg input[type=text] { width: 100%; }
.cfg tr.drop td { box-shadow: inset 0 2px 0 #0b57d0; }
.regra-form { border-top: 1px solid #eee; margin-top: 10px; padding-top: 10px; }
.regra-form .cond { display: flex; gap: 4px; margin-bottom: 4px; }
.regra-form .cond input { flex: 1; min-width: 0; }
.bkp { margin: 0 16px 16px; }

#toast { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 60; }
#toast div { background: #1d1d1f; color: #fff; padding: 9px 14px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.25); max-width: 460px; }

/* ===================== Fase 2 ===================== */
.nav { gap: 16px; flex-wrap: nowrap; }
.nav a { white-space: nowrap; }
.nav span.cnt { background: #d93025; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.nav input[type=date] { background: #2c2c30; color: #fff; border-color: #555; padding: 3px 6px; color-scheme: dark; }
.nav-st { font-size: 12px; white-space: nowrap; }
.nav-st.ns { color: #f5c400; }
.nav-st.ok { color: #9be3a8; }
.nav-salvar { background: #f5c400; color: #000; border: 0; padding: 5px 12px; font-weight: bold; }
.tabs { display: flex; gap: 4px; padding: 8px 16px 0; background: #fff; border-bottom: 1px solid #ddd; }
.tabs a { padding: 6px 14px; border: 1px solid #ddd; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f6f6f8; cursor: pointer; user-select: none; }
.tabs a.a { background: #fff; font-weight: bold; position: relative; top: 1px; }
.tb { top: 37px; }
.banner { background: #0b57d0; color: #fff; padding: 7px 16px; display: flex; gap: 10px; align-items: center; }
.banner.g { background: #5f6368; }
.banner button { background: #fff; color: #0b57d0; border: 0; }
.banner.g button { color: #333; }
.alerts { background: #fff; border: 1px solid #f1c6c6; border-left: 4px solid #d93025; border-radius: 5px; padding: 7px 12px; margin: 12px 16px 0; font-size: 12.5px; }
.pad .alerts { margin: 0 0 12px; }
.alerts ul { margin: 4px 0 0; padding-left: 18px; }
.ok-box { background: #e3f5e8; color: #16632f; border-radius: 5px; padding: 7px 12px; margin-bottom: 12px; font-size: 12.5px; }
.pad { padding: 12px 16px; }
.linha-tit { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mes-sel { display: flex; align-items: center; gap: 6px; }
.pill { display: inline-block; font-size: 11px; border-radius: 9px; padding: 1px 7px; background: #eee; color: #444; white-space: nowrap; }
.pill.ok { background: #e3f5e8; color: #16632f; }
.pill.al { background: #fde7e7; color: #a50e0e; }
.pill.w { background: #fff3c4; color: #7a5a00; }
.pill.b { background: #e8f0fe; color: #0b57d0; }
.pill-btn { border-radius: 10px; padding: 2px 9px; font-size: 12px; border: 1px solid #ccc; background: #eee; }
.pill-btn.ok { background: #e3f5e8; color: #16632f; border-color: #b9e1c4; }
.pill-btn.w { background: #fff3c4; color: #7a5a00; border-color: #eadb95; }
.pill-btn.b { background: #e8f0fe; color: #0b57d0; border-color: #b7cdf5; }
.hint { font-size: 11.5px; color: #888; }
.neg, .hint.neg { color: #c5221f; }
.auto { font-size: 10.5px; background: #e8f0fe; color: #0b57d0; border-radius: 3px; padding: 0 5px; margin-left: 4px; }
button.mini-lnk { font-size: 12px; padding: 0 2px; }
.lt { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.lt th { text-align: left; font-weight: normal; color: #666; font-size: 11.5px; border-bottom: 1px solid #ddd; padding: 4px 6px; }
.lt td { padding: 4px 6px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
.lt td.r, .lt th.r { text-align: right; }
.lt tr.t td { font-weight: bold; border-top: 1px solid #999; }
.lt tr.alerta td { background: #fff4f4; }
.lt tr.clic { cursor: pointer; }
.lt tr.clic:hover td { background: #f3f6fc; }
.lt tr.sel td { background: #e8f0fe; }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv td { padding: 4px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.kv td.r { text-align: right; white-space: nowrap; }
.kv tr.t td { font-weight: bold; border-top: 1px solid #888; border-bottom: 0; }
.kv tr.big td { font-size: 15px; font-weight: bold; background: #f6f6f8; }
input.moeda { text-align: right; width: 130px; }
input.moeda.neg { color: #c5221f; border-color: #e3a1a1; }
input.mini-in { width: 100px; padding: 2px 6px; }
textarea { font: inherit; width: 100%; border: 1px solid #bbb; border-radius: 4px; padding: 5px 8px; box-sizing: border-box; }
.rs { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; }
.rs > .card { flex: 1; min-width: 0; }
.exp-res { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.sug { font-size: 12px; padding: 2px 0; }
.chk { display: flex; gap: 6px; align-items: center; }
/* montar com remessas */
.rem-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.rem-pills .pill { font-size: 12px; padding: 3px 9px; }
.st tr.lock td { background: #f3f3f3; color: #777; }
.st tr.lock .hlp { background: #f3f39a; cursor: default; }
.lk { cursor: default; }
.tag.fixa { background: #efe3fb; color: #5b2a86; }
.tag.pend { background: #fde7e7; color: #a50e0e; }
.tag.rem { background: #e3f5e8; color: #16632f; }
.pagos { padding: 6px 2px 0; }
.hist-dia { font-size: 11.5px; color: #777; line-height: 1.6; }
.rem-lista { max-height: 340px; overflow: auto; border: 1px solid #eee; border-radius: 4px; }
.rem-lin { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-bottom: 1px solid #f0f0f2; }
.rem-lin.tot { border: 0; padding-top: 8px; }
/* modal */
.modal-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; z-index: 70; }
.modal-caixa { background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 16px; max-width: 94vw; max-height: 80vh; overflow: auto; }
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.frm label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #555; }
.frm label.larga, .frm div.larga { grid-column: 1 / -1; }
.frm label.chk { flex-direction: row; }
.frm input[type=text], .frm select, .frm input[type=date] { width: 100%; box-sizing: border-box; }
.parc-lin { display: flex; gap: 6px; margin: 4px 0; }
.parc-lin input.pc-valor { width: 120px; }
/* pendências */
.filtros { display: flex; gap: 6px; margin-top: 3px; }
.pend-wrap { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; }
.pend-lista { flex: 1; min-width: 0; }
.pend-det { width: 320px; flex: none; }
.grp { font-weight: bold; font-size: 13.5px; margin: 12px 0 4px; }
.grp:first-child { margin-top: 0; }
/* cadastros */
.cad-2 { display: flex; gap: 12px; align-items: flex-start; }
.cad-2 > .card:first-child { flex: 1; min-width: 0; }
.cad-edit { width: 380px; flex: none; }
.cad-1 { max-width: 760px; }
.cfg input.curto { width: 70px; }
.lim-card { border: 1px solid #e5e5ea; border-radius: 5px; padding: 8px; margin: 6px 0; background: #fafafa; }
.rot-cad td { vertical-align: top; }
.rot-cad textarea { margin-top: 4px; font-size: 12px; }
/* arquivos */
.arq { display: flex; gap: 12px; align-items: flex-start; }
.arq-col { flex: 1; min-width: 0; }
.opt-b { padding: 10px 0; border-bottom: 1px solid #f0f0f2; }
.opt-b .sm { margin-top: 4px; }
.dz-p { padding: 14px; font-size: 13px; }
.diff-card { border-color: #b7cdf5; margin-bottom: 10px; }
.diff td:first-child { width: 18px; font-weight: bold; }
.plus { color: #16632f; } .mv { color: #0b57d0; } .min { color: #a50e0e; }
.rotina details summary { cursor: pointer; }
.tb { flex-wrap: wrap; row-gap: 10px; position: static; }
.tb .btns { flex-wrap: wrap; }
.tb .btns button, .big { white-space: nowrap; }
.tb label.chk { max-width: 190px; }
.selbar { top: 37px; }
/* copiar para WhatsApp */
.wa-status { border-radius: 5px; padding: 8px 10px; margin: 6px 0 8px; font-size: 13px; background: #f0f0f2; }
.wa-status.ok { background: #e3f5e8; color: #16632f; }
.wa-status.falha { background: #fff3c4; color: #7a5a00; }
#wa-texto { font-family: Arial, sans-serif; font-size: 13px; }
a.btn { display: inline-block; text-decoration: none; border: 1px solid #bbb; border-radius: 4px; padding: 6px 12px; color: inherit; }
a.btn.pri { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
/* ===================== Acesso, usuários e histórico ===================== */
.login-wrap { display: flex; justify-content: center; padding-top: 80px; }
.login-card { width: 380px; background: #fff; border: 1px solid #d5d5da; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.08); padding: 26px 28px; }
.login-card h1 { font-size: 22px; margin: 0 0 4px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.login-card label, .frm1 label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #555; }
.login-card input { padding: 8px 10px; font-size: 14px; }
.login-card button { padding: 9px; font-size: 14px; margin-top: 4px; }
.frm1 { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.frm1 input[type=text], .frm1 input[type=password], .frm1 select { width: 100%; box-sizing: border-box; }
.frm1 label.chk { flex-direction: row; }
.opt-r { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid #f0f0f2; cursor: pointer; font-size: 13px; }
.opt-r input { margin-top: 3px; }
.senha-gerada { background: #f6f6f8; border: 1px dashed #999; border-radius: 6px; padding: 12px; margin: 10px 0; font-size: 15px; line-height: 1.8; font-family: Consolas, monospace; }
.user-dd { margin-left: 4px; }
.user-btn { background: #2c2c30; color: #fff; border-color: #555; white-space: nowrap; }
.menu.menu-dir { left: auto; right: 0; min-width: 210px; }
.menu .menu-t { color: #888; font-size: 11.5px; cursor: default; }
.menu .menu-t:hover { background: none; color: #888; }
.nav .menu div { color: #1d1d1f; }
.nav .menu div:hover { color: #fff; }
.hist-tab td { vertical-align: top; }
.hist-tab td.nw { white-space: nowrap; }
.hist-tab details summary { cursor: pointer; }
.hist-tab ul.mud { margin: 4px 0 2px; padding-left: 18px; color: #444; font-size: 12px; }
.filtros input[type=text] { width: 190px; }
/* ===================== Conciliação e acompanhamento ===================== */
.nav { flex-wrap: wrap; row-gap: 6px; }
.conc-2 { display: flex; gap: 12px; align-items: flex-start; }
.conc-lista { width: 560px; flex: none; }
.conc-det { flex: 1; min-width: 0; }
.conc-tab td, .conc-tab th { white-space: nowrap; }
.lt tr.sem-conta td { color: #777; font-style: italic; }
.lt tr.desligado td { color: #aaa; text-decoration: line-through; }
.lt tr.desligado td:first-child { text-decoration: none; }
.tab-rolar { overflow-x: auto; }
.acomp-tab td, .acomp-tab th { white-space: nowrap; }
.acomp-tab td.b { font-weight: bold; }
.rs-ok { margin: 12px 16px 0; }
.rem-fechada { display: flex; gap: 8px; align-items: center; }
.hint.sugerido { color: #0b57d0; }
.nav { gap: 13px; padding: 8px 12px; } .nav a { font-size: 12.5px; } .nav b { margin-right: 2px; }
