/* Gerência + 2.9 — adaptação para telas grandes e Segurança */
.gm29-only-pc{display:none}
html.gm29-wide body{background:#f4f7fc}
html.gm29-wide .app{width:100%;max-width:none;margin:0;height:100dvh;box-shadow:none;background:#f7f9fd}
html.gm29-wide .app>header{margin-left:270px;padding:19px 30px;min-height:80px;justify-content:flex-end;box-shadow:0 1px 0 #dce7f4}
html.gm29-wide .app>header .title-block{flex:1;text-align:left;max-width:none}
html.gm29-wide .app>header h1{font-size:29px}
html.gm29-wide .app>header > .menu-btn:first-child{display:none}
html.gm29-wide .sidebar{left:0!important;width:270px;box-shadow:none;border-right:1px solid #dce5f0;z-index:105;transition:none}
html.gm29-wide .sidebar-header{padding:28px 22px 20px;font-size:24px}
html.gm29-wide .sidebar nav{padding-bottom:36px}
html.gm29-wide .sidebar a{padding:11px 20px;font-size:14px}
html.gm29-wide .app>.overlay{display:none!important}
html.gm29-wide .app>.content{margin-left:270px;padding:26px 34px 60px;overflow-x:hidden;min-width:0}
html.gm29-wide .content>.section{width:100%;max-width:1540px;margin:0 auto}
html.gm29-wide .content>.section.active{display:block}
html.gm29-wide .content>.navigation-trail{max-width:1540px;margin:0 auto 20px}
html.gm29-wide #dashboard{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:start}
html.gm29-wide #dashboard.active{display:grid}
html.gm29-wide #dashboard>*{grid-column:1/-1;min-width:0}
html.gm29-wide #dashboard>.card{grid-column:span 6;margin:0;padding:23px}
html.gm29-wide #dashboard>.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html.gm29-wide #dashboard .dashboard-balance{grid-column:span 2;min-height:130px;display:flex;flex-direction:column;justify-content:center}
html.gm29-wide .summary-item{padding:22px}
html.gm29-wide .summary-item .value{font-size:24px}
html.gm29-wide .content .card{border-radius:16px}
html.gm29-wide #config .settings-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
html.gm29-wide #config .settings-links button{min-width:0}
html.gm29-wide #config>.gm-section-heading{margin-bottom:18px}
html.gm29-wide .gm282-main{max-width:1360px}
html.gm29-wide .gm282-head-line{max-width:1360px}
html.gm29-wide .gm282-tabs{gap:15px}
html.gm29-wide .gm282-section{padding:24px}
html.gm29-wide #first-access .login-panel{width:min(100%,500px)}
html.gm29-wide .gm29-only-pc{display:inline-flex}
html.gm29-wide #gm29-login-qr-card{max-width:440px;margin:auto}
@media(max-width:1250px){html.gm29-wide #dashboard>.card{grid-column:1/-1}html.gm29-wide .app>.content{padding:24px}}
@media(max-width:730px){html.gm29-wide .sidebar{width:245px}html.gm29-wide .app>header,html.gm29-wide .app>.content{margin-left:245px}}
.gm29-security-page{--g29:#1976d2;--g29-border:#dce7f3;--g29-text:#24324a;line-height:1.55}
.gm29-security-page .gm29-intro{background:linear-gradient(120deg,#1976d2,#388fe1);color:#fff;border-radius:17px;padding:24px;margin-bottom:20px}
.gm29-security-page .gm29-intro h2{font-size:26px;line-height:1.3;margin:0 0 5px;color:#fff}
.gm29-security-page .gm29-intro p{color:#eaf5ff;font-size:13px;margin:0}
.gm29-security-grid{display:grid;grid-template-columns:1fr;gap:14px}
html.gm29-wide .gm29-security-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.gm29-panel{background:var(--card-bg);padding:20px;border:1px solid var(--border);border-radius:15px;min-width:0;box-shadow:0 3px 15px #16335d09}
.gm29-panel h3{font-size:18px;color:var(--text);margin:0 0 5px;display:flex;align-items:center;gap:9px}
.gm29-panel h3 svg{width:21px;height:21px;stroke:#1976d2;fill:none;stroke-width:1.8;flex-shrink:0}
.gm29-panel p{font-size:13px;color:var(--text-light);line-height:1.6;margin:0 0 14px}
.gm29-field{display:flex;flex-direction:column;gap:5px;margin:12px 0}
.gm29-field>span{font-size:13px;font-weight:600;color:var(--text)}
.gm29-field input,.gm29-field select{min-height:46px;width:100%;font-size:15px;padding:10px 12px}
.gm29-panel button.btn{min-height:46px;font-size:14px;margin:4px 5px 6px 0}
.gm29-panel .gm29-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.gm29-panel .gm29-row:last-child{border-bottom:0}
.gm29-panel .gm29-row strong{font-size:13px}
.gm29-panel .gm29-row small{display:block;color:var(--text-light);font-size:11px;line-height:1.6}
.gm29-panel .gm29-row button{flex-shrink:0;font-size:12px;min-height:36px;padding:7px 11px}
.gm29-panel label.gm29-toggle{display:flex;align-items:center;gap:10px;font-size:14px;padding:9px 0}
.gm29-panel .gm29-toggle input{flex:none;width:20px;height:20px}
.gm29-help{font-size:12px;color:var(--text-light);margin:8px 0;line-height:1.6}
.gm29-feedback{font-size:13px;line-height:1.5;min-height:20px;margin:10px 0;padding:8px 10px;border-radius:8px;background:#eff5ff;color:#215183}
.gm29-feedback[data-kind="error"]{background:#fff1f0;color:#a32020}
.gm29-feedback[data-kind="success"]{background:#ebf8ef;color:#186a36}
.gm29-pin-digit-choice{display:flex;gap:16px;padding:5px 0 10px;font-size:14px}
.gm29-pin-digit-choice label{display:flex;align-items:center;gap:8px}
.gm29-pin-digit-choice input{flex:none}
.gm29-note{background:#f0f7ff;color:#275581;border-left:3px solid #1976d2;padding:11px 14px;border-radius:8px;font-size:12px;margin:8px 0 15px}
.gm29-qr-display{display:grid;place-items:center;margin:12px auto;width:fit-content;min-height:210px;background:#fff;border:1px solid #dce6f2;border-radius:15px;padding:12px}
.gm29-qr-display img,.gm29-qr-display canvas{max-width:210px;max-height:210px}
#gm29-qr-challenge[hidden],#gm29-scan-box[hidden],#gm29-approve-box[hidden]{display:none!important}
#gm29-login-options{margin:10px 0}
#gm29-login-options>button{width:100%;padding:14px;border-radius:12px;background:#fff;border:2px solid #1976d2;color:#176bc2;font-weight:700;font-size:15px;cursor:pointer;margin:6px 0}
#gm29-qr-challenge{margin:12px 0;background:#f8fbff;padding:14px;border-radius:16px;border:1px solid #cfe0f4;text-align:left}
#gm29-qr-challenge h3{font-size:18px;color:#163f72;margin:0 0 6px}
#gm29-qr-challenge p{font-size:12px;color:#52677d;margin:6px 0}
#gm29-qr-challenge input{width:100%;font-size:18px;min-height:46px;letter-spacing:5px;text-align:center;background:#fff}
#gm29-qr-challenge .gm29-code-button{display:block;width:100%;background:#1976d2;color:white;border:0;border-radius:10px;padding:12px;font-weight:700;margin-top:10px}
#gm29-qr-challenge .gm29-cancel{display:block;margin:4px auto;background:transparent;border:0;color:#59728f;padding:10px;font-size:12px}
#gm29-qr-challenge .gm29-feedback{font-size:12px}
#gm29-qr-challenge button:disabled{opacity:.55}
.gm29-app-locked{position:fixed;inset:0;z-index:2147483550;background:#f7faff;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:#19365b}
.gm29-app-locked[hidden]{display:none!important}
.gm29-app-locked>div{max-width:380px;width:100%;border-radius:20px;background:#fff;padding:30px;box-shadow:0 15px 55px #1b477025}
.gm29-app-locked h2{font-size:23px;color:#176bc2}
#gm29-device-list>.gm29-row,#gm29-events>.gm29-row{word-break:break-word}
@media(max-width:460px){.gm29-panel{padding:16px}.gm29-security-page .gm29-intro{padding:20px}.gm29-security-page .gm29-intro h2{font-size:23px}}

/* 2.9.1 — iconografia coerente com o desenho do Gerência + */
.gm29-line-icon{width:22px;height:22px;min-width:22px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gm29-panel h3 .gm29-line-icon{color:#1976d2;width:23px;height:23px;stroke:currentColor;stroke-width:1.9}
#gm29-login-options>button .gm29-line-icon,.gm29-qr-button .gm29-line-icon{margin-right:10px}
#gm29-login-options>button .gm29-line-icon{color:#176bc2}
.gm29-panel .gm29-note strong{font-weight:650}
.gm29-security-page .gm29-qr-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.gm29-security-page .gm29-qr-button .gm29-line-icon{color:inherit}

/* Gerência + 2.9.2 — proteção para notificações em telas grandes. */
html.gm29-wide .app>header .notify-wrap .menu-btn{display:inline-flex;align-items:center;justify-content:center}
html.gm29-wide .app>header .notify-wrap .ui-icon{width:23px;height:23px;display:block}

/* Gerência + 2.9.3 — confirmação do notebook visível acima da área de scanner. */
#gm29-approve-box[hidden]{display:none!important}
#gm29-approve-box:not([hidden]){position:fixed!important;inset:0!important;z-index:2147483505!important;
 display:flex!important;justify-content:center!important;align-items:center!important;overflow:auto!important;
 padding:14px!important;box-sizing:border-box!important;background:rgba(8,30,62,.68)!important;}
#gm29-approve-box .gm293-approval-card{width:min(100%,410px);max-height:calc(100dvh - 28px);
 overflow-y:auto;background:#fff;border-radius:19px;padding:22px 18px 17px;box-sizing:border-box;
 box-shadow:0 18px 75px #0d305b55;color:#243247;text-align:left;margin:auto;}
#gm29-approve-box h3{font-size:22px!important;line-height:1.25!important;margin:10px 0!important;color:#165fa9!important;}
#gm29-approve-box p{color:#435873;font-size:14px;line-height:1.55;margin:5px 0 13px;}
#gm29-approve-box .gm293-approval-symbol{background:#ecf5ff;color:#1976d2;border-radius:12px;width:49px;height:49px;display:grid;place-items:center;}
#gm29-approve-box .gm29-note{font-size:13px;line-height:1.5;margin:13px 0;}
#gm29-approve-box .gm29-field{margin:12px 0;}
#gm29-approve-box .gm29-field>span{font-size:14px;}
#gm29-approve-box .gm29-field>input{font-size:19px;text-align:center;letter-spacing:5px;min-height:52px;}
#gm29-approve-box .gm293-approve-allow,#gm29-approve-box .gm293-approve-deny{display:block;width:100%;margin:9px 0 0;min-height:48px;font-size:16px;}
#gm29-approve-box .gm293-approve-allow{background:#1976d2;color:white;}
#gm29-approve-box .gm293-approve-cancel{width:100%;background:transparent;border:0;color:#386b98;padding:12px 8px;font-size:14px;font-weight:600;}
#gm29-approve-box #gm29-phone-approval-status{margin:7px 0;}


/* Gerência + 2.9.4 — novo login por leitura, navegação e notificações. */
#gm29-qr-challenge .gm292-qr-dialog{max-width:420px}
.gm294-header-qr .ui-icon{width:23px!important;height:23px!important;display:block!important}
.gm294-dash-qr{border:0;cursor:pointer;display:grid;place-items:center;min-width:46px;min-height:46px}
.gm294-dash-qr .ui-icon{width:25px!important;height:25px!important}
#sidebar .gm294-nav-logout{color:#bc292e!important;font-weight:750!important;margin-top:6px;border-top:1px solid #e3e8ef;padding-top:15px!important}
#sidebar .gm294-nav-logout .ui-icon{stroke:#bc292e!important}
#sidebar .gm294-nav-logout:hover{background:#fff0f0!important}
.gm294-update-badge{display:none;white-space:nowrap;background:#fdf3e8;color:#a05216;border:1px solid #efca9d;border-radius:999px;font-size:11px;font-weight:750;padding:6px 9px}
.gm294-update-badge:not([hidden]){display:inline-flex}
#gm294-quick-reader[hidden]{display:none!important}
#gm294-quick-reader{position:fixed;inset:0;z-index:2147483510;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(12,35,64,.66);overscroll-behavior:contain}
#gm294-quick-reader .gm294-reader-card{width:min(100%,440px);max-height:calc(100dvh - 24px);overflow:auto;background:white;border-radius:18px;padding:20px;box-sizing:border-box;box-shadow:0 20px 70px #112b5370;color:#243247}
.gm294-reader-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.gm294-reader-top h2{margin:0!important;color:#1976d2!important;font-size:25px!important}
.gm294-reader-top p{font-size:14px;margin:5px 0 10px;line-height:1.5;color:#576c83}
.gm294-reader-close{border:0;background:#edf3fb;color:#1e609b;font-size:29px;font-weight:500;width:42px;height:42px;flex-shrink:0;border-radius:11px}
.gm294-camera{width:100%;max-width:360px;min-height:210px;margin:auto;background:#f1f5fb;border-radius:14px;overflow:hidden}
.gm294-camera video{width:100%!important;height:auto!important;object-fit:cover}
.gm294-reader-advice{font-size:13px;color:#2e597e;line-height:1.55;background:#eff6ff;padding:11px;border-left:3px solid #1976d2;border-radius:8px;margin:12px 0}
.gm294-manual{font-size:13px;color:#3b6080;margin-top:12px}
.gm294-manual summary{cursor:pointer;padding:9px}
.gm294-manual input{display:block;width:100%;font-size:15px;padding:12px;margin:7px 0;border:1px solid #cbd9e9;border-radius:9px}
.gm294-manual .btn{width:100%;min-height:43px}
.gm294-close-bottom{width:100%;margin-top:14px;min-height:45px}
body.gm294-camera-open{overflow:hidden}
html.gm29-wide .gm294-header-qr{display:inline-flex!important;align-items:center;justify-content:center}
@media(max-width:720px){.gm294-update-badge:not([hidden]){font-size:0;width:9px;height:9px;padding:0;border-radius:50%;background:#f6a148;border:0;position:absolute;right:83px;top:14px}.gm294-header-qr{min-width:38px;padding:5px!important}}

.gm294-notice-update{padding:15px 14px;margin-bottom:10px;border-radius:12px;background:#f1f8ff;border:1px solid #b7d6f6;color:#214d78}
.gm294-notice-update strong{font-size:15px;color:#174e8c}
.gm294-notice-update p{margin:6px 0 10px;font-size:13px;line-height:1.5}
.gm294-notice-update .btn{min-height:39px;background:#1976d2;color:#fff}
