/* V6.8.1 — Movimentos mobile. Consistência visual + filtros por grupo/categoria. */
@media(max-width:820px){
  #transactions{margin:0 -2px}
  .gf-tx-mobile,
  .gf-tx-mobile button,
  .gf-tx-mobile input,
  .gf-tx-mobile select,
  .gf-tx-mobile textarea,
  .gf-cat-sheet button,
  .gf-cat-sheet input,
  .gf-cat-sheet select,
  .gf-cat-sheet textarea{font-family:inherit}
  .gf-tx-mobile{display:flex;flex-direction:column;gap:12px}
  .gf-tx-mobile button,
  .gf-tx-mobile input,
  .gf-tx-mobile select,
  .gf-tx-mobile textarea{letter-spacing:normal}
  .gf-tx-mobile button{font-weight:700}

  .gf-tx-tabs{display:flex;gap:6px;overflow-x:auto;padding:4px;background:#f2f4f7;border-radius:13px;scrollbar-width:none}
  .gf-tx-tabs::-webkit-scrollbar{display:none}
  .gf-tx-tabs button{flex:0 0 auto;min-height:38px;border:0;border-radius:10px;background:transparent;color:#667085;padding:0 12px;font-size:12px;font-weight:700;white-space:nowrap}
  .gf-tx-tabs button span{font-weight:700;opacity:.7}
  .gf-tx-tabs button.active{background:#fff;color:#175cd3;box-shadow:0 1px 4px rgba(16,24,40,.08)}
  .gf-tx-tabs button[data-tx-tab="uncat"].active{color:#b42318;background:#fff5f4}

  .gf-tx-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8px}
  .gf-tx-filter-control{min-height:44px;border:1px solid #d0d5dd;border-radius:12px;background:#fff;color:#344054;padding:0 11px;font-size:12px;font-weight:700;display:flex;align-items:center;gap:8px;min-width:0}
  select.gf-tx-filter-control{width:100%;appearance:auto}
  button.gf-tx-filter-control{justify-content:space-between;text-align:left}
  .gf-tx-filter-control>span:first-child{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gf-tx-filter-control .gf-icon,.gf-tx-filter-control svg{width:17px;height:17px;flex:0 0 auto}
  .gf-tx-filter-count{min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#eff4ff;color:#175cd3;display:grid;place-items:center;font-size:9px;font-weight:800}

  .gf-tx-active-filters{display:flex;gap:7px;align-items:center;overflow-x:auto;scrollbar-width:none;margin-top:-3px;padding-bottom:1px}
  .gf-tx-active-filters::-webkit-scrollbar{display:none}
  .gf-tx-filter-chip{flex:0 0 auto;min-height:30px;border:0;border-radius:999px;background:#eff4ff;color:#175cd3;padding:0 10px;font-size:10px;font-weight:700;display:flex;align-items:center;gap:5px}
  .gf-tx-clear{flex:0 0 auto;border:0;background:transparent;color:#1570ef;font-size:10px;font-weight:800;padding:7px}

  .gf-tx-warning{border:1px solid #fecdca;background:#fff5f4;color:#b42318;border-radius:13px;padding:10px 12px;font-size:11px;line-height:1.4}
  .gf-tx-warning strong{font-weight:800}
  .gf-tx-closed-note{border:1px solid #d0d5dd;background:#f9fafb;color:#475467;border-radius:13px;padding:10px 12px;font-size:11px;line-height:1.4}
  .gf-tx-closed-note strong{font-weight:800;color:#344054}
  .gf-cat-add:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}

  .gf-tx-results{display:flex;flex-direction:column;gap:15px}
  .gf-tx-day{display:flex;flex-direction:column;gap:8px}
  .gf-tx-day-head{display:flex;justify-content:space-between;align-items:center;padding:0 2px;color:#667085}
  .gf-tx-day-head strong{font-size:12px;color:#475467;font-weight:700}
  .gf-tx-day-head span{font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}

  .gf-tx-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;border:1px solid #eaecf0;border-radius:15px;background:#fff;padding:9px 9px 9px 10px;box-shadow:0 1px 2px rgba(16,24,40,.04);overflow:hidden}
  .gf-tx-item.uncategorized{border-color:#fecdca;background:#fffafa}
  .gf-tx-item.closed{background:#fcfcfd}
  .gf-tx-main{border:0;background:transparent;padding:0;min-height:54px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;text-align:left;color:#101828;min-width:0}
  .gf-tx-icon{width:42px;height:42px;border-radius:12px;background:var(--tx-soft,#f2f4f7);color:var(--tx-accent,#667085);display:grid;place-items:center}
  .gf-tx-icon .gf-icon,.gf-tx-icon svg{width:22px;height:22px}
  .gf-tx-copy{min-width:0}
  .gf-tx-copy strong{display:block;font-size:13px;line-height:1.25;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gf-tx-copy small{display:block;margin-top:3px;font-size:10px;color:#98a2b3;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gf-tx-value{align-self:start;padding-top:5px;text-align:right;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;color:#344054}
  .gf-tx-value.income{color:#039855}.gf-tx-value.expense{color:#d92d20}.gf-tx-value.transfer{color:#175cd3}
  .gf-tx-foot{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px;align-items:center;padding-left:52px;margin-top:-2px}
  .gf-tx-foot.locked{grid-template-columns:minmax(0,1fr)}
  .gf-tx-category{justify-self:start;max-width:100%;min-height:28px;border:0;border-radius:999px;background:var(--tx-soft,#f2f4f7);color:var(--tx-text,#475467);padding:0 9px 0 7px;display:flex;align-items:center;gap:5px;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gf-tx-category.uncategorized{background:#fee4e2;color:#b42318}
  .gf-tx-category .gf-icon,.gf-tx-category svg{width:14px;height:14px;flex:0 0 auto}
  .gf-tx-category-edit{margin-left:2px;padding-left:6px;border-left:1px solid currentColor;opacity:.72;font-size:9px}
  .gf-tx-category-static{opacity:.78}
  .gf-tx-category-static>.gf-icon:last-child,.gf-tx-category-static>svg:last-child{margin-left:2px}
  .gf-tx-menu{width:36px;height:30px!important;min-height:30px!important;border:0;background:transparent;color:#667085;display:grid;place-items:center;font-size:17px;font-weight:800;letter-spacing:1px}

  .gf-tx-empty{padding:30px 16px;text-align:center;border:1px dashed #d0d5dd;border-radius:16px;background:#fff;color:#667085}
  .gf-tx-empty strong,.gf-tx-empty span{display:block}.gf-tx-empty strong{color:#344054;margin-bottom:5px;font-weight:700}.gf-tx-empty span{font-size:11px}

  .gf-tx-detail-hero{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;margin:2px 0 14px;padding-bottom:14px;border-bottom:1px solid #f2f4f7}
  .gf-tx-detail-hero .gf-tx-icon{width:48px;height:48px;border-radius:14px}
  .gf-tx-detail-hero strong{display:block;font-size:15px;line-height:1.25;font-weight:700}.gf-tx-detail-hero small{display:block;color:#98a2b3;font-size:10px;margin-top:3px}
  .gf-tx-detail-amount{font-size:15px;font-weight:800;white-space:nowrap}.gf-tx-detail-amount.income{color:#039855}.gf-tx-detail-amount.expense{color:#d92d20}.gf-tx-detail-amount.transfer{color:#175cd3}
  .gf-tx-detail-grid{display:flex;flex-direction:column;gap:8px}
  .gf-tx-detail-row{border:1px solid #eaecf0;border-radius:13px;background:#fff;padding:10px 12px}
  .gf-tx-detail-row>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;font-weight:700;margin-bottom:5px}
  .gf-tx-detail-row>strong{display:flex;align-items:center;gap:7px;color:#344054;font-size:12px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
  .gf-tx-detail-row .gf-icon,.gf-tx-detail-row svg{width:17px;height:17px;color:#667085;flex:0 0 auto}
  button.gf-tx-detail-row{width:100%;text-align:left}
  .gf-tx-detail-category.editable{border-color:#b2ccff;background:#f8fbff;box-shadow:inset 3px 0 0 #1570ef}
  .gf-tx-detail-category.editable>span{color:#175cd3}
  .gf-tx-detail-category em{margin-left:auto;font-style:normal;color:#175cd3;font-size:10px;font-weight:700;display:flex;align-items:center;gap:4px}
  .gf-tx-detail-category.locked em{color:#667085}
  .gf-tx-detail-category.locked em .gf-icon,.gf-tx-detail-category.locked em svg{width:14px;height:14px}
  .gf-tx-locked-action{border:1px solid #d0d5dd;border-radius:12px;background:#f9fafb;color:#667085;padding:11px 12px;font-size:11px;line-height:1.4;text-align:center}

  .gf-tx-note-box{border:1px solid #eaecf0;border-radius:13px;background:#fff;padding:10px 12px}
  .gf-tx-note-box label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;font-weight:700;margin-bottom:6px}
  .gf-tx-note-box textarea{width:100%;min-height:76px;resize:vertical;border-radius:10px;font-size:14px!important;line-height:1.4}
  .gf-tx-note-box button{width:100%;min-height:38px;margin-top:8px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#344054;font-size:11px;font-weight:700}

  .gf-tx-sheet-choice{width:100%;min-height:49px;border:1px solid #eaecf0;border-radius:12px;background:#fff;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 10px;text-align:left;color:#344054}
  .gf-tx-sheet-choice+.gf-tx-sheet-choice{margin-top:7px}
  .gf-tx-choice-icon{width:32px;height:32px;border-radius:9px;background:var(--tx-soft,#f2f4f7);color:var(--tx-accent,#667085);display:grid;place-items:center}
  .gf-tx-choice-icon .gf-icon,.gf-tx-choice-icon svg{width:18px;height:18px}.gf-tx-sheet-choice strong{font-size:12px;font-weight:700}.gf-tx-sheet-choice small{display:block;color:#98a2b3;font-size:9px;margin-top:2px}.gf-tx-sheet-choice.active{border-color:#84adff;background:#f5f8ff}.gf-tx-check{color:#1570ef;font-size:17px;font-weight:800}

  .gf-tx-category-explain{border:1px solid #b2ccff;background:#f5f8ff;color:#175cd3;border-radius:12px;padding:10px 12px;margin-bottom:10px}
  .gf-tx-category-explain strong,.gf-tx-category-explain span{display:block}.gf-tx-category-explain strong{font-size:11px;font-weight:700}.gf-tx-category-explain span{font-size:10px;margin-top:3px;color:#475467}
  .gf-tx-category-search{margin-bottom:10px}
  .gf-tx-category-list{margin-top:8px}
  .gf-tx-form-card{border:1px solid #eaecf0;border-radius:14px;background:#fff;padding:12px}
  .gf-tx-form-card .gf-cat-field:last-child{margin-bottom:0}
  .gf-tx-form-card textarea.input{min-height:78px;resize:vertical}
  .gf-tx-sheet-primary{width:100%;min-height:48px;border-radius:13px;font-weight:700}
  .gf-tx-sheet-danger{width:100%;min-height:48px;border-radius:13px;font-weight:700;border:1px solid #fecdca;background:#fff;color:#d92d20}
  .gf-tx-destructive-warning{border:1px solid #fec84b;background:#fffaeb;color:#7a2e0e;border-radius:13px;padding:11px 12px;margin-bottom:10px}
  .gf-tx-destructive-warning strong,.gf-tx-destructive-warning span{display:block}
  .gf-tx-destructive-warning strong{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800}
  .gf-tx-destructive-warning strong .gf-icon,.gf-tx-destructive-warning strong svg{width:17px;height:17px}
  .gf-tx-destructive-warning span{font-size:10px;line-height:1.45;margin-top:4px;color:#854a0e}

  .gf-tx-action-layer{position:fixed;inset:0;z-index:370;background:rgba(15,23,42,.16)}
  .gf-tx-actions{position:absolute;width:min(290px,calc(100vw - 24px));background:#fff;border:1px solid #eaecf0;border-radius:15px;box-shadow:0 14px 40px rgba(16,24,40,.22);overflow:hidden}
  .gf-tx-actions-title{padding:12px 14px;background:#f9fafb;border-bottom:1px solid #eaecf0}.gf-tx-actions-title strong,.gf-tx-actions-title span{display:block}.gf-tx-actions-title strong{font-size:13px;font-weight:700}.gf-tx-actions-title span{font-size:10px;color:#667085;margin-top:2px}
  .gf-tx-actions button{width:100%;min-height:48px;border:0;border-top:1px solid #f2f4f7;background:#fff;display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:center;text-align:left;padding:0 14px;color:#344054;font-weight:700}.gf-tx-actions button:first-of-type{border-top:0}.gf-tx-actions button.danger{color:#d92d20}.gf-tx-actions .gf-icon,.gf-tx-actions svg{width:20px;height:20px}

  .gf-tx-filter-section+.gf-tx-filter-section{margin-top:18px;padding-top:14px;border-top:1px solid #f2f4f7}
  .gf-tx-filter-section h3{margin:0 0 9px;font-size:12px;color:#344054;font-weight:700}
  .gf-tx-filter-section .gf-cat-group-chips{margin:0 -1px}
}

@media(max-width:390px){
  .gf-tx-filters{grid-template-columns:1fr}
}
