/* BSM Frota 8.1 — UI mobile, sem bibliotecas externas */
:root{--m-blue:#092846;--m-blue2:#0c4b76;--m-cyan:#27a7c8;--m-bg:#f2f6fb;--m-text:#11243d}
.mobile-home{background:var(--m-bg);color:var(--m-text);min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;margin:0}.mobile-shell{max-width:760px;margin:auto;min-height:100vh}.mobile-header{display:flex;gap:12px;align-items:center;background:var(--m-blue);color:white;padding:22px 20px 18px}.mobile-logo{font-size:21px;font-weight:900;letter-spacing:-1px;color:var(--m-blue);background:#fff;border-radius:12px;padding:10px 12px}.mobile-brand{display:flex;flex-direction:column;gap:2px;flex:1}.mobile-brand strong{font-size:18px}.mobile-brand small{font-size:12px;color:#b8d9e9}.mobile-icon-button{border:1px solid #ffffff50;color:#fff;background:#ffffff10;border-radius:12px;width:44px;height:44px;font-size:24px;cursor:pointer}.mobile-dashboard{padding:25px 18px 110px}.mobile-overline{font-size:10px;letter-spacing:2px;font-weight:800;color:#2d789b}.mobile-greeting h1{font-size:29px;line-height:1.15;letter-spacing:-.8px;margin:9px 0 6px}.mobile-greeting p{margin:0;color:#647589;font-size:14px}.wave{font-size:25px}.mobile-connectivity{margin:23px 0;background:#e4f6ef;border:1px solid #b2e0c9;color:#1f7553;padding:11px 14px;font-weight:700;border-radius:12px;font-size:12px}.mobile-connectivity.offline{background:#fff2de;color:#946117;border-color:#f3dca4}.mobile-feature{background:linear-gradient(135deg,#0c3b63,#08243f);border-radius:23px;padding:24px;color:white;display:flex;flex-direction:column;align-items:flex-start;gap:13px;box-shadow:0 14px 29px #0d426130}.mobile-feature-icon{background:#ffffff1c;color:#8cdeee;border:1px solid #ffffff2b;width:56px;height:56px;display:grid;place-items:center;border-radius:17px;font-size:27px}.mobile-feature-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#81d8ea}.mobile-feature h2{color:white;font-size:25px;margin:7px 0;line-height:1.1}.mobile-feature p{color:#c6dbe6;font-size:13px;margin:0;line-height:1.5}.mobile-feature-button{display:flex;justify-content:space-between;align-items:center;text-decoration:none;font-size:15px!important;font-weight:800!important;color:#083251!important;background:white;padding:15px 18px;border-radius:13px;width:100%;box-sizing:border-box}.mobile-feature-button span{font-size:21px}.mobile-section{margin:28px 0}.mobile-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.mobile-section-heading h2{font-size:19px;margin:0}.mobile-section-heading span{font-size:12px;color:#75879b}.mobile-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.mobile-shortcut{background:#fff;border:1px solid #e0e8f1;border-radius:18px;box-shadow:0 4px 16px #153a560b;padding:18px 14px;text-decoration:none!important;color:#193551!important;display:flex;flex-direction:column;min-height:95px;gap:13px;font-size:13px}.mobile-shortcut-icon{background:#e6f3fa;color:#09517b;border-radius:12px;width:42px;height:42px;display:grid;place-items:center;font-size:22px}.mobile-info{display:flex;align-items:flex-start;gap:12px;background:#e7f1fc;border:1px solid #cbdff6;border-radius:16px;padding:17px}.mobile-info-icon{color:#0b6a9c;font-size:25px}.mobile-info strong{font-size:13px}.mobile-info p{font-size:12px;line-height:1.5;margin:5px 0 0;color:#506984}.mobile-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:760px;background:#fff;box-shadow:0 -5px 28px #07385a17;display:flex;align-items:center;justify-content:space-around;z-index:50;padding:9px 8px max(10px,env(safe-area-inset-bottom));box-sizing:border-box}.mobile-bottom a{display:flex;flex-direction:column;gap:2px;align-items:center;flex:1;text-decoration:none!important;color:#7f8ea0!important;font-size:10px!important;font-weight:700}.mobile-bottom a span{font-size:24px}.mobile-bottom a.active{color:#075b90!important}.mobile-return,.mobile-context,.wizard-bar,.wizard-controls{display:none}
@media(max-width:760px){body:not(.mobile-home){background:#f2f6fb}body:not(.mobile-home) .shell{padding:12px 14px 115px;max-width:100%}body:not(.mobile-home) .app-nav{display:none!important}body:not(.mobile-home) .hero{border-radius:17px;padding:20px!important;margin-bottom:14px}body:not(.mobile-home) .hero h1{font-size:23px!important}body:not(.mobile-home) .panel{border-radius:17px;margin-bottom:13px;padding:16px!important}body:not(.mobile-home) .form-grid{display:grid;grid-template-columns:1fr!important}body:not(.mobile-home) input,body:not(.mobile-home) select,body:not(.mobile-home) textarea{font-size:16px!important;min-height:45px}body:not(.mobile-home) .inspection-overview{border-radius:15px;margin-bottom:12px}body:not(.mobile-home) #checklist button{min-height:45px}body:not(.mobile-home) .mobile-dock{display:flex!important;bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom))}body:not(.mobile-home) .mobile-dock a{font-size:11px;flex:1}body:not(.mobile-home) footer{padding-bottom:85px}.mobile-context{display:flex;align-items:center;justify-content:space-between;color:#547088;font-size:12px;margin:2px 2px 12px}.mobile-back{font-weight:700;color:#0b618e;text-decoration:none}.wizard-bar{display:flex;gap:6px;background:#fff;border:1px solid #dae5ed;border-radius:12px;padding:5px;margin-bottom:12px;position:sticky;top:0;z-index:20}.wizard-bar button{flex:1;border:0;background:transparent!important;border-radius:9px;font-size:12px!important;padding:12px 4px!important;color:#638198!important;box-shadow:none!important;min-height:40px}.wizard-bar button.selected{background:#0b4777!important;color:white!important}.wizard-hidden{display:none!important}.wizard-controls{display:flex;gap:10px;margin:10px 0 24px}.wizard-controls button{flex:1;min-height:48px}.wizard-controls button[hidden]{display:none!important}.mobile-return{display:block;padding:8px 15px;background:#edf5fa;color:#0a6593;font-size:12px;text-decoration:none;font-weight:700}.mobile-home .header,.mobile-home .mobile-dock{display:none}}

/* v8.2 – toque, andamento e validação em campo */
.mobile-step-notice{padding:13px 15px;border-radius:11px;border:1px solid #f2b8b4;background:#fff0ed;color:#9a261e;font-size:13px;font-weight:700;margin:0 0 13px}.mobile-step-notice[hidden]{display:none}.mobile-step-status{color:#245875;font-size:11px;letter-spacing:.9px;font-weight:800;margin:0 0 8px}.mobile-step-status[hidden]{display:none}.mobile-inspection-progress{border:1px solid #d3e6f2;background:#f0f8fc;padding:14px;border-radius:13px;margin:13px 0 17px}.mobile-inspection-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px}.mobile-inspection-progress span{color:#376b89}.mobile-progress-rail{height:7px;border-radius:20px;background:#dae8ef;overflow:hidden;margin-top:12px}.mobile-progress-rail>div{height:100%;width:0;background:#0a7ea6;transition:width .2s}.mobile-home a:focus-visible,.wizard-bar button:focus-visible,.wizard-controls button:focus-visible{outline:3px solid #1eb0d0;outline-offset:3px}@media(max-width:760px){body:not(.mobile-home) .check-item{padding:14px 10px!important}body:not(.mobile-home) .status-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}body:not(.mobile-home) .status-picker label{min-height:48px;display:flex;justify-content:center;align-items:center;text-align:center;font-size:12px}body:not(.mobile-home) .nc-fields input[type=file]{max-width:100%}body:not(.mobile-home) .signature-box{min-height:190px}body:not(.mobile-home) .footer-actions{display:flex;flex-direction:column;gap:8px}body:not(.mobile-home) .footer-actions button{width:100%;min-height:50px}}


/* v8.4 — Mobile com identidade BSM */
:root{--m-red:#c62828;--m-red2:#a61e1e;--m-red-soft:#fff0f0;--m-red-border:#f1c7c7;--m-bg:#f5f7fa;--m-text:#1f2937}
.mobile-header{background:linear-gradient(135deg,var(--m-red2),var(--m-red));box-shadow:0 10px 26px rgba(166,30,30,.20)}
.mobile-logo{color:var(--m-red);background:#fff;border:2px solid #ffd9d9;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.mobile-brand small{color:#ffe0e0}.mobile-overline{color:#b02a2a}.mobile-connectivity{background:#fff5f5;border-color:#f1d2d2;color:#9b1c1c}.mobile-connectivity.offline{background:#fff7e3;border-color:#f3deb1;color:#946117}
.mobile-feature{background:linear-gradient(135deg,#c62828,#8f1717)}.mobile-feature-icon{color:#fff3f3}.mobile-feature-eyebrow{color:#ffd3d3}.mobile-feature-button{color:#8f1717!important;background:#fff0f0}
.mobile-shortcut-icon{background:#fff0f0;color:#a61e1e}.mobile-info{background:#fff5f5;border-color:#f0d0d0}.mobile-info-icon{color:#c62828}.mobile-bottom a.active{color:#b71c1c!important}.mobile-bottom{border-top:1px solid #efcfcf}.mobile-icon-button{background:#ffffff18;border-color:#ffffff45}.midas-mobile-signature{background:#fff;border:1px solid #ebd7d7;box-shadow:0 10px 18px rgba(0,0,0,.03)}.midas-mobile-signature span{color:#64748b}.midas-mobile-signature .support-label{display:block;font-size:10px;font-weight:800;letter-spacing:1.2px;color:#b45353;margin-bottom:4px}
@media(max-width:760px){body:not(.mobile-home) .wizard-bar button.selected{background:linear-gradient(135deg,#c62828,#a61e1e)!important}body:not(.mobile-home) .mobile-back{color:#a61e1e}body:not(.mobile-home) .mobile-return{background:#fff0f0;color:#a61e1e}}


/* v8.5 — telas móveis otimizadas para operação em campo */
.mobile-shell{max-width:660px}.mobile-header{padding:19px 17px;position:relative;z-index:1}.mobile-logo{font-size:22px;min-width:64px;min-height:59px;display:grid;place-items:center;line-height:1}.mobile-brand strong{font-size:19px;letter-spacing:-.4px}.mobile-brand small{font-size:11px;line-height:1.35}.mobile-dashboard{padding:22px 17px 122px}.mobile-greeting h1{font-size:clamp(26px,6vw,32px);letter-spacing:-.9px;overflow-wrap:anywhere}.mobile-greeting p{line-height:1.5}.mobile-connectivity{margin:17px 0 20px;padding:12px 15px;border-radius:14px;line-height:1.3}
.mobile-feature{padding:22px;gap:16px;border-radius:21px;box-shadow:0 14px 30px #8f171728}.mobile-feature h2{font-size:clamp(24px,6vw,29px);letter-spacing:-.4px}.mobile-feature p{font-size:14px;max-width:36ch}.mobile-feature-button{min-height:53px;display:flex;align-items:center;font-size:15px!important}.mobile-feature-button:active{transform:translateY(1px)}
.mobile-section{margin:25px 0}.mobile-shortcuts{gap:12px}.mobile-shortcut{min-height:113px;padding:16px;gap:12px;justify-content:center;border-radius:17px;box-shadow:0 7px 22px #2819190a}.mobile-shortcut strong{font-size:13px;line-height:1.4}.mobile-shortcut-icon{width:44px;height:44px}.mobile-info{padding:16px;border-radius:16px}.mobile-info p{font-size:12px;line-height:1.55}
.mobile-bottom{min-height:65px;gap:3px;padding:10px 7px max(10px,env(safe-area-inset-bottom))}.mobile-bottom a{min-height:46px;justify-content:center;gap:4px;border-radius:10px}.mobile-bottom a.active{background:#fff1f1}.mobile-bottom a span{font-size:23px}
.mobile-home a:focus-visible,.mobile-home button:focus-visible{outline:3px solid #ffb4b4;outline-offset:2px}
@media(max-width:760px){body:not(.mobile-home) .mobile-dock a{min-height:43px;justify-content:center}body:not(.mobile-home) .wizard-bar{top:0;box-shadow:0 5px 14px #0000000a}body:not(.mobile-home) .wizard-controls button{min-height:54px;font-size:14px!important}body:not(.mobile-home) .check-item{border-radius:15px;margin-bottom:13px}body:not(.mobile-home) .status-picker label{border-radius:11px;font-weight:800}body:not(.mobile-home) .mobile-inspection-progress{background:#fff7f7;border-color:#f1d0d0}body:not(.mobile-home) .mobile-progress-rail{background:#f3dada}body:not(.mobile-home) .mobile-progress-rail>div{background:#c62828}}
@media(max-width:360px){.mobile-header{padding:14px 12px;gap:9px}.mobile-brand strong{font-size:17px}.mobile-brand small{font-size:10px}.mobile-logo{min-width:54px;min-height:53px;font-size:20px}.mobile-dashboard{padding:18px 12px 115px}.mobile-feature{padding:19px}.mobile-shortcut{padding:12px}}


/* v8.7 — assinatura MIDAS com link e contato */
.midas-mobile-signature{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:18px 16px 20px;border-radius:20px;margin-top:18px;background:linear-gradient(180deg,#072347,#061a34)}
.midas-mobile-signature .support-label{margin:0;color:#e8a5a5;font-size:11px}
.midas-mobile-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.midas-mobile-link img{display:block;max-width:160px;width:100%;height:auto;object-fit:contain;border-radius:10px;background:#061c36;box-shadow:0 8px 20px rgba(0,0,0,.22)}
.midas-mobile-name{font-size:14px;letter-spacing:2px;color:#d8b04c}
.midas-mobile-copy{font-size:12px;line-height:1.5;color:#f2f6fb}
.midas-mobile-contact,.midas-mobile-site{font-size:12px;line-height:1.4;color:#ffe6e6;text-decoration:none;font-weight:700;background:rgba(255,255,255,.08);padding:9px 12px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;width:min(100%,290px)}
.midas-mobile-contact:active,.midas-mobile-site:active,.midas-mobile-link:active{transform:translateY(1px)}

/* BSM v8.9 — correção de largura para celulares e apresentação aprovada */
html,body{width:100%;max-width:100%;overflow-x:hidden}*,*::before,*::after{box-sizing:border-box}
.mobile-home .mobile-shell,.mobile-home .mobile-dashboard{width:100%;max-width:100%;min-width:0}
.mobile-home .mobile-header{width:100%;background:linear-gradient(115deg,#d02226,#a20e17);border-bottom-left-radius:22px;border-bottom-right-radius:22px}
.mobile-home .mobile-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mobile-home .mobile-shortcut{min-width:0;width:100%;min-height:120px}
.mobile-home .mobile-shortcut strong{overflow-wrap:break-word}
.mobile-home .mobile-section-heading h2{font-weight:800}
.mobile-home .midas-mobile-signature{width:100%;max-width:100%;margin:20px 0 0;padding:20px 15px 22px;background:#061b35!important;color:#fff;border-radius:22px;box-sizing:border-box}
.mobile-home .midas-mobile-signature .support-label{color:#d6b75c!important;letter-spacing:2px}
.mobile-home .midas-mobile-signature .midas-mobile-link{width:170px;max-width:60%;height:auto;margin:2px auto}
.mobile-home .midas-mobile-signature .midas-mobile-link img{display:block;width:100%;height:auto;max-width:170px;max-height:170px;object-fit:contain;border:0;box-shadow:none;border-radius:0}
.mobile-home .midas-mobile-signature .midas-mobile-copy{color:#e9eef8!important;font-size:12px}
.mobile-home .midas-mobile-signature .midas-mobile-contact,.mobile-home .midas-mobile-signature .midas-mobile-site{width:100%;max-width:100%;border:1px solid #8192ab;background:transparent;color:#fff;font-size:12px;overflow-wrap:anywhere}
.mobile-home .mobile-bottom{width:100%;max-width:100%;left:0;right:0}
@media(max-width:760px){
 body:not(.mobile-home) .shell,body:not(.mobile-home) .shell > *{width:100%;max-width:100%;min-width:0}
 body:not(.mobile-home) .header,body:not(.mobile-home) .app-nav{display:none!important}
 body:not(.mobile-home) .shell{padding:12px 15px 90px!important;margin:0 auto!important}
 body:not(.mobile-home) .panel,body:not(.mobile-home) .form-grid,body:not(.mobile-home) form,body:not(.mobile-home) .wizard-bar,body:not(.mobile-home) .wizard-controls{width:100%;max-width:100%;min-width:0}
 body:not(.mobile-home) .form-grid > *,body:not(.mobile-home) label,body:not(.mobile-home) input,body:not(.mobile-home) select{min-width:0;max-width:100%}
 body:not(.mobile-home) .midas-app-credit{display:flex!important;position:static!important;width:calc(100% - 30px)!important;max-width:440px!important;min-height:0!important;margin:20px auto 95px!important;padding:12px!important;gap:11px!important;overflow:hidden}
 body:not(.mobile-home) .midas-app-credit a:first-child{display:block!important;flex:0 0 68px!important;width:68px!important;max-width:68px!important;line-height:0}
 body:not(.mobile-home) .midas-app-credit img{width:68px!important;max-width:68px!important;height:68px!important;max-height:68px!important;object-fit:contain!important;display:block!important}
 body:not(.mobile-home) .midas-app-credit > div{min-width:0;max-width:calc(100% - 80px);display:flex;flex-direction:column;gap:4px;font-size:11px;line-height:1.35}
 body:not(.mobile-home) .midas-app-credit a{color:#f4d68c}
 body:not(.mobile-home) .mobile-dock{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important}
}


/* v9.2.6 — não duplicar menu inferior no desktop.
   Em telas estreitas, o dock permanece fixo para uso no celular. */
@media screen and (min-width: 761px) {
  body.mobile-home .mobile-bottom {
    display: none !important;
  }
  body.mobile-home .mobile-dashboard {
    padding-bottom: 28px;
  }
}
@media screen and (max-width: 760px) {
  body.mobile-home .mobile-bottom {
    display: flex !important;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-height: 65px;
    z-index: 50;
  }
}
