/* Saetta Flight Finance 2.2 - mobile first, isolado por classe */
.sff-mobile-app{--sff-m-gold:#bd985d;--sff-m-text:#161d27;--sff-m-faint:#64707e;--sff-m-line:#e4e6e9;--sff-m-bg:#f7f8fa;max-width:980px!important;width:100%!important;margin:12px auto 45px!important;padding:0 12px!important;color:var(--sff-m-text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sff-mobile-app,.sff-mobile-app *{box-sizing:border-box!important}
.sff-mobile-app .sff-mobile-hero{background:linear-gradient(128deg,#0d151e,#222c38 68%,#5d4b33);color:#fff;border-radius:18px;padding:24px 22px;margin-bottom:13px}
.sff-mobile-kicker{font-size:10px;font-weight:750;letter-spacing:2.3px;color:#d4b684}
.sff-mobile-hero h1{color:#fff!important;font-size:clamp(25px,5vw,35px);line-height:1.15;margin:10px 0 8px!important;font-weight:750}
.sff-mobile-hero p{color:#d9dde2;font-size:14px;line-height:1.6;margin:0 0 13px!important}
.sff-mobile-hero-status{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:100px;background:#ffffff19;color:#e9ebef;font-size:12px}
.sff-mobile-hero-status span{color:#c6e6ad}
.sff-mobile-tabs{position:sticky;top:8px;z-index:20;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px;border:1px solid #e2e3e6;border-radius:13px;background:#f8f8faef;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);margin-bottom:18px;box-shadow:0 8px 25px #1d273015}
body.admin-bar .sff-mobile-tabs{top:40px}
.sff-mobile-tab{text-decoration:none!important;display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;min-height:48px;padding:10px 7px;border-radius:9px;font-size:13px;font-weight:750!important;color:#434e5c!important;line-height:1.2}
.sff-mobile-tab span{font-size:17px}.sff-mobile-tab.is-active{background:#171d26!important;color:#f4d7a0!important}
.sff-mobile-content{display:grid;gap:21px}.sff-mobile-panel{scroll-margin-top:92px;border:1px solid var(--sff-m-line);background:#fff;border-radius:17px;padding:21px;box-shadow:0 9px 29px #1723310d;min-width:0}
.sff-mobile-panel-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #ecedf0}
.sff-mobile-num{width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#201e1b;color:#ebc98a;font-size:15px;font-weight:800}
.sff-mobile-panel-head h2{margin:2px 0 6px!important;font-weight:800;color:#19212b;font-size:21px;line-height:1.2}
.sff-mobile-panel-head p{margin:0!important;color:var(--sff-m-faint);font-size:13px;line-height:1.5}
.sff-mobile-form-section h3{font-size:15px;font-weight:800;color:#26303b;margin:0 0 13px}.sff-mobile-form-section h3 span{display:inline-flex;align-items:center;justify-content:center;background:#f2eade;color:#82643d;border-radius:100%;height:22px;width:22px;margin-right:6px;font-size:12px}
.sff-mobile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}.sff-mobile-fields .sff-full{grid-column:1/-1}
.sff-mobile-app label{display:block;font-size:13px;font-weight:700;line-height:1.5;color:#303a47;margin:0;min-width:0}
.sff-mobile-app input:not([type=hidden]):not([type=checkbox]),.sff-mobile-app select,.sff-mobile-app textarea{appearance:auto;-webkit-appearance:auto;display:block;min-width:0!important;width:100%!important;max-width:100%!important;min-height:50px!important;margin-top:7px!important;padding:11px 13px!important;border:1px solid #cdd4dd!important;border-radius:10px!important;background:#fff!important;color:#151b22!important;font-size:16px!important;line-height:1.35!important;box-shadow:none!important;font-family:inherit}
.sff-mobile-app input[type=date],.sff-mobile-app input[type=time]{-webkit-min-logical-width:0;padding-right:5px!important}
.sff-mobile-app input[type=file]{padding:12px 8px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:14px!important;min-height:66px!important}
.sff-mobile-app textarea{min-height:90px!important;resize:vertical}
.sff-mobile-app input:focus,.sff-mobile-app select:focus,.sff-mobile-app textarea:focus{outline:2px solid #d2b47e!important;outline-offset:1px}
.sff-mobile-app label small,.sff-mobile-hint{display:block;color:#6d7784!important;font-size:12px!important;font-weight:400!important;line-height:1.5;margin:6px 0 0}
.sff-mobile-hint{padding:8px 0}
.sff-live-estimate{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#f9f5ed;border:1px solid #eae0cf;padding:14px;border-radius:11px;margin-top:17px}
.sff-live-estimate>div{min-width:0}.sff-live-estimate small{display:block;color:#706457;font-size:11px;font-weight:600;margin-bottom:5px}.sff-live-estimate strong{display:block;font-weight:800;font-size:20px;color:#332a1e;overflow-wrap:anywhere}.sff-live-estimate p{grid-column:1/-1;margin:4px 0 0;font-size:11px;color:#837563;line-height:1.5}
.sff-mobile-details{border-top:1px solid #eceef2;margin-top:18px;padding:8px 0 0}.sff-mobile-details summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:53px;font-size:14px;font-weight:750;color:#263342;list-style:none}.sff-mobile-details summary::-webkit-details-marker{display:none}.sff-mobile-details summary:after{content:'+';font-size:21px;color:#a48044;font-weight:400}.sff-mobile-details[open] summary:after{content:'−'}.sff-mobile-details summary span{font-size:11px;font-weight:500;color:#87909a;margin-left:auto}.sff-mobile-details>label{margin:14px 0}.sff-mobile-details .sff-mobile-fields{margin:15px 0}
.sff-mobile-app [hidden]{display:none!important}
.sff-mobile-submitbar{margin:21px -21px -21px;padding:16px 21px 18px;border-top:1px solid #e8ebee;border-radius:0 0 16px 16px;background:#f8f9fa}.sff-mobile-submitbar .sff-mobile-submit{min-height:55px!important;width:100%!important;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:11px;background:#181f29!important;font-size:15px!important;font-weight:780!important;padding:12px 18px!important;line-height:1.2}.sff-mobile-submit:disabled{opacity:.65;cursor:wait}.sff-mobile-submitbar>small{display:block;text-align:center;color:#75808b;font-size:11px;margin:9px 0 0;line-height:1.4}
.sff-mobile-state{padding:28px 24px;border-radius:16px;background:#fff;border:1px solid #e8dcca;box-shadow:0 7px 25px #00000008}.sff-mobile-state-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:#fcf0d3;color:#70552d;border-radius:50%;font-weight:800;font-size:23px}.sff-mobile-state h2{font-size:20px!important;margin:16px 0 12px!important}.sff-mobile-state p{font-size:14px;line-height:1.6;color:#586372}
.sff-mandatory{font-size:11px;color:#965e32;font-weight:700}.sff-label-opt{font-size:11px;color:#8793a0;font-weight:500}.sff-file-feedback{display:block;color:#536e59;font-size:12px;line-height:1.5;margin:8px 0 0;overflow-wrap:anywhere}
.sff-mobile-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sff-mobile-flight-card{border:1px solid #e5e7e9;border-radius:12px;padding:15px;min-width:0;background:#fcfcfd}.sff-mobile-flight-top,.sff-mobile-flight-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.sff-mobile-flight-top strong{font-size:16px;color:#1f2833}.sff-mobile-status{background:#f1e9d8;color:#7c6030;border-radius:100px;font-weight:750;padding:5px 9px;font-size:11px;white-space:nowrap}.sff-mobile-status-approved{background:#dcebdc;color:#296a3c}.sff-mobile-status-rejected{background:#fde2e2;color:#8f3434}.sff-mobile-flight-meta{color:#737f89;font-size:12px;border-bottom:1px solid #e8e9eb;padding:12px 0;margin-bottom:12px}.sff-mobile-flight-bottom{font-size:12px;color:#545f6b}.sff-mobile-flight-bottom strong{color:#1f2731;font-size:15px}.sff-mobile-empty{font-size:14px;color:#6f7784}
@media(max-width:760px){
 .sff-mobile-app.sff-mobile-ready [data-sff-panel]{display:none}.sff-mobile-app.sff-mobile-ready [data-sff-panel="flight"]{display:block}.sff-mobile-app.sff-mobile-ready[data-sff-selected="expense"] [data-sff-panel="flight"],.sff-mobile-app.sff-mobile-ready[data-sff-selected="history"] [data-sff-panel="flight"],.sff-mobile-app.sff-mobile-ready[data-sff-selected="logbook"] [data-sff-panel="flight"]{display:none}
 .sff-mobile-app.sff-mobile-ready[data-sff-selected="expense"] [data-sff-panel="expense"],.sff-mobile-app.sff-mobile-ready[data-sff-selected="history"] [data-sff-panel="history"],.sff-mobile-app.sff-mobile-ready[data-sff-selected="logbook"] [data-sff-panel="logbook"]{display:block}
 .sff-mobile-history{grid-template-columns:1fr}
}
@media(max-width:540px){
 .sff-mobile-app{padding:0 9px!important;margin-top:8px!important}
 .sff-mobile-hero{padding:21px 17px!important}
 .sff-mobile-panel{padding:16px 14px!important;border-radius:13px!important}
 .sff-mobile-fields{grid-template-columns:1fr;gap:15px}.sff-mobile-fields .sff-full{grid-column:auto}
 .sff-mobile-panel-head h2{font-size:19px}.sff-mobile-tabs{top:7px;gap:2px;padding:4px}.sff-mobile-tab{font-size:12px;gap:4px;padding:8px 4px}
 .sff-mobile-submitbar{margin:21px -14px -16px;padding:13px 14px 20px}
 .sff-live-estimate strong{font-size:17px}
 .sff-shell-nav{gap:12px}.sff-shell-links{width:100%;justify-content:space-between}
 .sff-shell-links .sff-shell-user{display:none}
 .sff-portal-content .sff-mobile-app{padding-left:9px!important;padding-right:9px!important}
}
/* Fallback para a página de gestão da empresa no celular */
@media(max-width:760px){
 .sff-portal-content .sff-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}
 .sff-portal-content .sff-outer{max-width:100vw;width:100%;min-width:0;overflow:hidden}
 .sff-portal-content .sff-card{min-width:0}
 .sff-portal-content .sff-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center}
 .sff-portal-quicknav{flex-wrap:wrap}
 .sff-portal-quicknav input{font-size:16px}
 .sff-portal-auth input[type=text],.sff-portal-auth input[type=password]{font-size:16px!important;min-height:50px}
}
@media(prefers-reduced-motion:reduce){.sff-mobile-app *{scroll-behavior:auto!important;transition:none!important}}

/* No portal do gestor, as tabelas viram cartões legíveis, sem zoom e rolagem horizontal. */
@media(max-width:760px){
 .sff-portal-content .sff-scroll:has(table){overflow:visible;max-width:100%}
 .sff-portal-content .sff-scroll table{display:block;width:100%!important;min-width:0!important;border:0}
 .sff-portal-content .sff-scroll table thead{display:none}
 .sff-portal-content .sff-scroll table tbody{display:grid;gap:12px}
 .sff-portal-content .sff-scroll table tbody tr{display:block;background:#fafafa;border:1px solid #e6e7e9;border-radius:11px;padding:10px 12px}
 .sff-portal-content .sff-scroll table td{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:10px;width:100%;padding:9px 0!important;min-width:0!important;max-width:100%;overflow-wrap:anywhere;border:0;border-bottom:1px solid #eef0f1}
 .sff-portal-content .sff-scroll table td:last-child{border:0}
 .sff-portal-content .sff-scroll table td::before{content:attr(data-sff-label);font-size:11px;font-weight:800;color:#746043;flex:0 0 38%;text-transform:uppercase;letter-spacing:.2px}
 .sff-portal-content .sff-inline-form{display:inline-flex}
 .sff-portal-content .sff-inline-form button{min-height:43px;margin:3px}
}
