:root{--teal:#1ca6b8;--teal-dark:#0a7f90;--blue:#1186f5;--dark:#3d3d3d;--side-active:#073f59;--red:#e63346;--green:#22b573;--muted:#83909a;--line:#dfe6eb;--soft:#f7f9fb;--text:#1e2a32;--shadow:0 1px 8px rgba(0,0,0,.08);--radius:4px}*{box-sizing:border-box}body{margin:0;font-family:"Segoe UI",Arial,Helvetica,sans-serif;background:#fff;color:var(--text);font-size:15px}button,input,textarea,select{font-family:inherit}.ico{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;vertical-align:-4px;flex:0 0 auto}.ico svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ico.sm{width:15px;height:15px;vertical-align:-2px}.ico.md{width:24px;height:24px}.ico.lg{width:34px;height:34px}.ico.xl{width:46px;height:46px}.app{min-height:100vh;display:flex;background:#fff}.sidebar{width:276px;background:linear-gradient(#383838,#404040);color:#e9eef2;min-height:100vh;position:fixed;left:0;top:0;bottom:0;border-right:1px solid #303030;z-index:5}.brand{height:98px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid rgba(0,0,0,.15);background:#303030;letter-spacing:-.5px}.brand .qr{color:#25b3c4;font-weight:800;font-size:28px;margin-right:5px}.brand .name{color:#fff;font-size:27px;font-weight:700;font-family:Georgia,"Times New Roman",serif}.brand .pro{background:#1ca6b8;color:#fff;margin-left:8px;border-radius:18px;padding:4px 10px 5px;font-weight:800;font-size:15px}.side-title{margin:30px 16px 14px;color:#d2d8dc;font-size:24px;font-weight:600;position:relative}.side-title:after{content:"";display:block;width:30px;height:4px;background:var(--teal);border-radius:4px;margin-top:10px}.nav-item{display:flex;align-items:center;gap:13px;height:43px;padding:0 20px;color:#cdd3d6;cursor:pointer;font-size:17px;transition:.12s ease;margin:3px 14px 0 0;border-radius:0 24px 24px 0;text-decoration:none}.nav-item:hover{background:rgba(255,255,255,.06);color:white}.nav-item.active{background:var(--side-active);color:#fff}.nav-icon{width:22px;height:22px;display:grid;place-items:center;opacity:.95}.upsell{position:absolute;bottom:20px;left:16px;width:246px;background:var(--teal);color:#fff;border:0;border-radius:4px;height:62px;display:flex;align-items:center;justify-content:center;gap:14px;font-weight:800;font-size:15px;text-align:center;cursor:pointer;line-height:1.35;text-decoration:none}.main{margin-left:276px;width:calc(100% - 276px);min-height:100vh;background:#fff}.topbar{height:69px;border-bottom:1px solid #e4e9ee;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 18px;position:sticky;top:0;background:#fff;z-index:3}.page-title{color:var(--teal);font-size:29px;font-weight:500;letter-spacing:.2px}.user-menu{color:#444;display:flex;align-items:center;gap:8px;font-size:17px;cursor:pointer;position:relative;padding:7px 8px;border-radius:4px}.user-menu:hover{background:#f4f7f8}.avatar{width:30px;height:30px;background:#f3f5f6;border:1px solid #e0e3e5;border-radius:4px;display:grid;place-items:center;color:#b5bdc3}.account-panel{position:absolute;right:8px;top:58px;width:270px;background:#fff;border:1px solid #dae1e6;border-radius:4px;box-shadow:0 12px 30px rgba(0,0,0,.16);padding:8px 0;display:none;z-index:10}.account-panel.open{display:block}.account-panel a,.account-panel button{width:100%;background:transparent;border:0;text-align:left;padding:11px 16px;color:#3f4d57;font-size:15px;cursor:pointer;text-decoration:none;display:block}.account-panel a:hover,.account-panel button:hover{background:#f2f8fa;color:var(--teal)}.content{padding:22px 16px 34px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.toolbar-left{display:flex;gap:0;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--teal);background:#fff;color:var(--teal);height:40px;padding:0 18px;border-radius:4px;font-size:16px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.1s ease;text-decoration:none}.btn:hover{filter:brightness(.98)}.btn.primary{background:var(--teal);color:#fff}.btn.dark{background:#343b42;border-color:#343b42;color:#fff}.btn.blue{background:var(--blue);border-color:var(--blue);color:#fff}.btn.red{background:var(--red);border-color:var(--red);color:#fff}.btn.gray{background:#fff;border-color:#aeb8c0;color:#6e7a82}.btn.round{border-radius:23px}.btn.big{height:75px;font-weight:800;font-size:17px;width:320px}.btn.tiny{height:33px;padding:0 12px;font-size:14px}.split-buttons .btn{border-radius:0;min-width:170px}.split-buttons .btn:first-child{border-radius:4px 0 0 4px}.split-buttons .btn:last-child{border-radius:0 4px 4px 0;margin-left:-1px}.search{width:244px;height:40px;border:1px solid var(--teal);display:flex;align-items:center;border-radius:4px;overflow:hidden;background:#fff}.search input{border:0;outline:none;padding:0 12px;flex:1;font-size:16px;color:#66737c;height:100%}.search span{width:42px;color:var(--teal);display:grid;place-items:center}.flash{background:#e9f9fb;border:1px solid #b9e7ee;color:#096b79;padding:12px 16px;border-radius:4px;margin-bottom:16px}.demo-warning{background:#fff8e6;border:1px solid #ffe1a4;color:#895f00;padding:10px 14px;border-radius:4px;margin-bottom:16px}.qr-list{display:flex;flex-direction:column;gap:16px}.qr-card{min-height:194px;border:1px solid var(--line);border-radius:4px;display:grid;grid-template-columns:192px 1fr 210px 214px;align-items:center;background:#fff;padding:8px}.qr-thumb{width:180px;height:180px;display:grid;place-items:center;overflow:hidden}.qr-thumb img{width:172px;height:172px;object-fit:contain}.qr-info{align-self:start;padding:22px 0 0 6px}.qr-type{display:flex;align-items:center;gap:8px;font-weight:700;color:#1f2d36;font-size:15px;margin-bottom:6px}.pill{background:#f8f9fa;border-radius:4px;padding:3px 6px;color:#20282e;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:4px}.qr-name{font-size:29px;font-weight:400;color:#101820;margin:2px 0 28px}.date-line{display:flex;align-items:center;gap:7px;font-size:12px;margin:7px 0;color:#111;font-weight:700}.scans{border-left:1px solid #eef2f4;padding-left:10px;color:#111}.scans .num{font-size:32px;font-weight:500}.scans .label{font-size:14px;color:#5e6a72;margin-bottom:12px}.scans a{color:#111;text-decoration:none;font-size:16px;display:flex;gap:6px;align-items:center}.actions{width:214px;display:flex;flex-direction:column;gap:8px;padding-right:0}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:0}.action-row .btn{border-radius:0;height:42px}.empty-box{border:1px solid var(--line);border-radius:4px;height:92px;display:grid;place-items:center;text-align:center}.empty-box h2{margin:0 0 6px;color:var(--red);font-size:29px}.empty-box p{margin:0;color:#1e2a32}.dash-grid{display:grid;grid-template-columns:1fr 1fr 1fr 320px;gap:28px;align-items:stretch;margin-bottom:76px}.metric{height:82px;border:1px solid var(--line);border-radius:4px;display:flex;align-items:center;justify-content:space-between;padding:0 34px 0 22px;background:#fff}.metric .big-icon{font-size:42px;color:#737f87}.metric strong{font-size:14px}.metric small{color:#7a8790}.notice-small{font-size:12px;color:#82909a;margin-top:-62px;margin-bottom:84px}.hero{width:980px;max-width:100%;margin:0 auto;display:grid;grid-template-columns:360px 1fr;align-items:center;border-bottom:1px solid #e1e7eb;padding-bottom:25px;cursor:pointer;text-decoration:none;color:#000}.phone-art{height:370px;position:relative;background:#fff;border:1px solid #edf1f3;border-radius:8px;overflow:hidden}.phone{position:absolute;right:68px;top:26px;width:130px;height:250px;border:6px solid #243743;border-radius:24px;transform:rotate(-4deg);background:linear-gradient(#1186f5 0 43%,#eaf7ff 43% 100%);box-shadow:0 8px 16px rgba(0,0,0,.12)}.phone:before{content:"";position:absolute;top:8px;left:42px;width:42px;height:8px;background:#243743;border-radius:0 0 8px 8px}.phone .mini-qr{position:absolute;left:31px;top:112px;width:66px;height:66px;background:#fff;display:grid;place-items:center;border-radius:4px;color:#111}.person{position:absolute;left:70px;bottom:22px;width:88px;height:240px}.person:before{content:"";position:absolute;left:31px;top:0;width:34px;height:34px;border-radius:50%;background:#1d2e38}.person:after{content:"";position:absolute;left:20px;top:36px;width:55px;height:95px;background:#243743;border-radius:18px 18px 6px 6px}.leg1,.leg2,.arm{position:absolute;background:#1e8df5;border-radius:8px}.leg1{left:18px;top:130px;width:26px;height:100px;transform:rotate(5deg)}.leg2{left:53px;top:128px;width:24px;height:102px;transform:rotate(-6deg)}.arm{left:70px;top:56px;width:70px;height:15px;transform:rotate(-18deg);transform-origin:left}.hero-text{text-align:center;font-size:42px;line-height:1.22;color:#000}.hero-text strong{font-weight:800}.hero-text .blue-line{color:#1186f5;font-weight:800;font-size:46px}.hero-text .cta{font-size:24px;font-weight:800;color:#6c7880;margin-top:58px}.form-page{max-width:1280px;padding:0 0 0 42px}.form-row{display:grid;grid-template-columns:32px 1fr;gap:18px;margin-bottom:14px;align-items:start}.form-icon{color:#3f4d57;font-size:25px;line-height:40px;text-align:center}.input,.textarea,.select{width:100%;border:1px solid #d6dee5;height:50px;border-radius:4px;padding:0 14px;color:#4e5962;font-size:19px;outline:none;background:#fff}.input::placeholder,.textarea::placeholder{color:#9ba5ac}.textarea{height:78px;padding-top:16px;resize:vertical}.line-controls{display:grid;grid-template-columns:230px 1fr;gap:20px}.seg{display:flex;height:48px}.seg button{border:1px solid #cdd7de;background:#fff;font-size:19px;padding:0 16px;color:#6a7680;cursor:pointer}.seg button:first-child{border-radius:4px 0 0 4px}.seg button:last-child{border-radius:0 4px 4px 0;margin-left:-1px}.seg button.on{background:#636b73;color:#fff;border-color:#636b73}.switch-line{display:flex;align-items:center;gap:9px;margin:58px 0 18px;font-size:22px}.spinner{font-size:26px;color:#4f5b64;margin-right:12px}.switch{width:44px;height:24px;border-radius:30px;background:#e9edf0;border:1px solid #c3ccd2;position:relative;cursor:pointer}.switch:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#aeb8c0;transition:.15s ease}.switch.on{background:var(--teal);border-color:var(--teal)}.switch.on:after{left:22px;background:#fff}.animation-box{margin-left:50px;margin-top:4px;display:none}.animation-box.open{display:block}.radio-line{display:flex;align-items:center;gap:10px;margin:18px 0;color:#263139;font-size:19px}.fake-radio{width:16px;height:16px;border-radius:50%;border:1px solid #c6d1d8;display:inline-block}.fake-radio.checked{border:5px solid var(--teal)}.file-box{border:1px solid #d6dee5;height:47px;display:inline-flex;align-items:center;padding:4px;border-radius:4px;color:#5f6e77;font-size:20px;min-width:470px}.file-box .choose{border:1px solid #aaa;background:#fff;padding:7px 12px;margin-right:6px;color:#111}.mini-label{font-size:19px;margin:22px 0 10px;color:#252f36}.short-select{width:280px}.form-actions{margin-left:50px;margin-top:70px;display:flex;gap:12px}.user-form{max-width:1080px;margin-left:20px}.user-row{display:grid;grid-template-columns:34px 1fr;gap:20px;align-items:center;margin-bottom:14px}.labeled{position:relative}.labeled label{position:absolute;left:15px;top:5px;color:#7a8790;font-size:12px;z-index:1}.labeled input,.labeled select{height:51px;padding:17px 14px 4px;font-size:19px}.labeled.disabled input{background:#e8ecef;color:#485660}.save-user{margin-left:54px;margin-top:16px}.stats-head{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;margin-bottom:16px}.stats-card{height:80px;border:1px solid var(--line);border-radius:4px;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.stats-card .eye{font-size:48px;color:#76838c}.period{display:flex;gap:18px;align-items:center}.panel{border:1px solid var(--line);border-radius:4px;min-height:660px;padding:36px 22px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.chart{height:310px;display:grid;grid-template-columns:55px 1fr;grid-template-rows:1fr 34px;align-items:end;border-bottom:1px solid #d3dbe0;position:relative}.chart:before{content:"";position:absolute;left:55px;right:0;top:24px;bottom:34px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 44px,#e1e5e8 45px)}.axis{grid-row:1/2;color:#63707a;font-size:12px;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:0;text-align:right;padding-right:10px;z-index:1}.bar-wrap{grid-column:2;height:240px;display:flex;align-items:end;justify-content:center;z-index:1}.bar{width:310px;height:230px;background:#1198ef}.xdate{grid-column:2;text-align:center;font-size:12px;color:#5f6b73;padding-top:10px}.vertical-label{position:absolute;left:0;top:140px;transform:rotate(-90deg);font-size:12px;font-weight:700;color:#263139}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;border-top:1px solid #dde5ea;border-bottom:1px solid #cbd5dc;padding:13px 10px;color:#101820}td{padding:17px 10px;color:#2c3942}.right{text-align:right}.table-title{height:26px;color:#75818a}.api-row{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:900px;margin-bottom:20px}.api-token{margin-top:20px;font-size:22px;max-width:1120px}.token-box{margin-top:16px;height:84px;background:#e9edf1;border:1px solid #d3dbe1;border-radius:4px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-family:Consolas,monospace;font-size:13px;color:#2f3b44}.copy{width:34px;height:34px;border:1px solid #6f7b84;border-radius:50%;display:grid;place-items:center;background:#eef2f5;cursor:pointer;color:#333}.billing-wrap{margin:-22px -16px -34px;min-height:calc(100vh - 69px);background:radial-gradient(circle at 18px 18px,transparent 0 16px,rgba(28,166,184,.43) 17px,rgba(28,166,184,.43) 19px,transparent 20px),repeating-linear-gradient(45deg,rgba(28,166,184,.42) 0 3px,transparent 3px 14px),#fff;background-size:62px 62px,44px 44px;display:flex;justify-content:center;align-items:flex-start;padding:24px 0 80px}.billing-card{width:330px;background:rgba(255,255,255,.93);border:1px solid #d7e2e8;box-shadow:0 8px 30px rgba(0,0,0,.08);padding:16px;text-align:center;color:#687580}.billing-logo .qr{color:var(--teal);font-size:44px;font-weight:800}.billing-logo .name{font-family:Georgia,serif;color:#49535a;font-size:28px;font-weight:700;margin-top:-12px}.billing-logo .pro{background:var(--teal);color:#fff;border-radius:4px;padding:3px 8px;font-size:12px;font-weight:700}.billing-card h2{margin:14px 0 4px;color:#63707a;font-weight:400}.billing-card h2 strong{color:var(--teal)}.buyers{display:grid;grid-template-columns:1fr 1fr;border:1px solid #9ca6ad;border-radius:4px;overflow:hidden;margin:18px 0}.buyer{height:77px;display:grid;place-items:center;background:#fff;color:#6d7880;font-size:16px}.buyer.active{background:#68727a;color:#fff}.billing-card .input{height:38px;font-size:16px;margin-bottom:8px}.radio-group{display:flex;gap:12px;justify-content:center;margin:14px 0;color:#2a343b}.address-title{text-align:left;color:#2a343b;margin:12px 0 8px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:6px}.cep{display:grid;grid-template-columns:1fr 120px;gap:9px}.next-btn{width:100%;height:48px;margin-top:4px;background:var(--teal);color:white;border:0;border-radius:4px;font-size:17px;cursor:pointer}.work-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:16px}.work-card{border:1px solid var(--line);border-radius:4px;padding:18px;min-height:160px;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.02)}.work-card h3{margin:0 0 9px;font-weight:500;font-size:22px}.work-card p{margin:5px 0;color:#64717a}.status{display:inline-block;border-radius:12px;padding:3px 10px;font-size:12px;font-weight:700}.status.active{background:#e4f8f4;color:#11866f}.status.warn{background:#fff4dd;color:#a56b00}.docs{display:grid;gap:10px;margin-top:18px}.doc{display:grid;grid-template-columns:38px 1fr 120px;align-items:center;border:1px solid var(--line);border-radius:4px;padding:12px;background:#fff}.doc-icon{font-size:24px;color:#2c3a43}.doc strong{display:block;font-size:16px}.doc small{color:#78858e}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#25323b,#0d6675)}.login-card{width:390px;background:#fff;border-radius:8px;box-shadow:0 18px 50px rgba(0,0,0,.25);padding:28px}.login-logo{text-align:center;margin-bottom:20px}.login-logo .qr{color:var(--teal);font-size:42px;font-weight:800}.login-logo .name{font-family:Georgia,serif;font-size:32px;font-weight:700;color:#333}.login-card h1{text-align:center;margin:0 0 20px;color:#1f2d36;font-weight:500}.login-card .input{font-size:16px;margin-bottom:12px}.login-card .btn{width:100%;height:46px}.public{background:#f6f8fa;min-height:100vh;padding:28px}.public-card{max-width:1100px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.08);overflow:hidden}.public-head{background:#333;color:white;padding:18px 24px;display:flex;align-items:center;justify-content:space-between}.public-head .logo{font-size:24px;font-weight:800;color:#fff}.public-head span{color:var(--teal)}.public-body{padding:24px}.breadcrumb{color:#73808a;margin-bottom:18px}.folder-title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.folder-title h1{margin:0;color:#14212b;font-weight:500;display:flex;gap:10px;align-items:center}.readonly{background:#edf8fa;color:var(--teal);padding:7px 13px;border-radius:20px;font-weight:700}.folder-list{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:16px}.folder{border:1px solid var(--line);border-radius:6px;padding:18px;cursor:pointer;transition:.12s ease}.folder:hover{border-color:var(--teal);box-shadow:0 4px 12px rgba(28,166,184,.11)}.folder h3{margin:0 0 9px;font-weight:500;font-size:20px}.folder small{color:#74818b}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;z-index:20;place-items:center}.modal-backdrop.open{display:grid}.modal{width:296px;background:#fff;border-radius:4px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.18)}.modal-head{height:60px;background:var(--teal);color:#fff;padding:0 16px;display:flex;align-items:center;justify-content:space-between;font-size:20px;font-weight:700}.modal-body{padding:16px}.modal-body input{height:32px;font-size:14px;margin-bottom:14px}.modal-actions{display:flex;justify-content:space-between;gap:10px;padding:0 12px 14px}.toast{position:fixed;right:24px;bottom:24px;background:#1c2b35;color:#fff;padding:13px 18px;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.2);opacity:0;transform:translateY(12px);transition:.2s ease;z-index:30}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1200px){.qr-card{grid-template-columns:180px 1fr 140px 180px}.dash-grid{grid-template-columns:1fr 1fr}.work-grid{grid-template-columns:1fr 1fr}}@media(max-width:860px){.sidebar{position:relative;width:100%;min-height:auto}.main{margin-left:0;width:100%}.app{display:block}.upsell{display:none}.qr-card{grid-template-columns:1fr;padding:16px}.actions{width:100%;padding:0}.stats-head,.stats-grid,.folder-list,.work-grid,.api-row{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.line-controls{grid-template-columns:1fr}}

/* Segurança e níveis de usuário */
.role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 9px;
  border-radius:14px;
  background:#edf8fa;
  color:#0a7f90;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.logout-form{margin:0;border-top:1px solid #edf1f4;padding-top:4px}
.logout-form button{
  width:100%;
  background:transparent;
  border:0;
  text-align:left;
  padding:11px 16px;
  color:#e63346;
  font-size:15px;
  cursor:pointer;
}
.logout-form button:hover{background:#fff3f4}
.security-warning{
  border:1px solid #ffd6a6;
  background:#fff7e8;
  color:#805400;
  padding:11px 14px;
  border-radius:4px;
  margin-bottom:14px;
  display:flex;
  gap:8px;
  align-items:center;
}
.security-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(280px,1fr));
  gap:18px;
  margin-bottom:18px;
}
.security-card{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:20px;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.security-card h2{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  font-weight:500;
  font-size:23px;
}
.info-line{margin:9px 0;color:#35424b}
.muted{color:#74818b;margin:0 0 18px}
.password-form{max-width:680px}
.password-form label{display:block;font-weight:700;margin:13px 0 6px;color:#34414a}
.password-form .input{max-width:520px;display:block}
.password-rules{
  color:#64717a;
  background:#f7f9fb;
  border:1px solid var(--line);
  border-radius:4px;
  padding:11px 13px;
  margin:15px 0;
  max-width:680px;
}
.permission-list{display:flex;gap:8px;flex-wrap:wrap}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border-radius:14px;
  background:#eef3f6;
  color:#43515a;
  font-size:12px;
  font-weight:800;
}
.badge.ok{background:#e4f8f4;color:#11866f}
.badge.danger{background:#ffe8eb;color:#c92335}
.badge.master{background:#e9f1ff;color:#1d63c6}
.badge.admin{background:#edf8fa;color:#0a7f90}
.badge.projetista{background:#fff4dd;color:#9a6500}
.badge.supervisor{background:#eefbf1;color:#157347}
.badge.cliente{background:#f1edf9;color:#6b42aa}
.role-row{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:start;margin:10px 0}
.role-row p{margin:0;color:#53616b}
.secure-list{margin:0;padding-left:20px;color:#4c5b65;line-height:1.75}
.login-security-note{
  margin-top:14px;
  font-size:12px;
  color:#56636c;
  display:flex;
  gap:7px;
  line-height:1.35;
  justify-content:center;
}
@media (max-width:860px){.security-grid{grid-template-columns:1fr}.role-row{grid-template-columns:1fr}}

/* Gestão completa de usuários */
.user-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(140px,1fr));
  gap:14px;
  margin:0 0 18px;
}
.user-metric{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:16px 18px;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.user-metric strong{
  display:block;
  font-size:32px;
  font-weight:600;
  color:var(--teal);
  line-height:1;
}
.user-metric span{
  display:block;
  color:#64717a;
  margin-top:6px;
  font-size:14px;
}
.table-responsive{overflow-x:auto}
.users-table th,.users-table td{vertical-align:middle}
.actions-cell{white-space:nowrap;min-width:380px}
.inline-form{display:inline-flex;margin:0 0 0 5px;vertical-align:middle}
.inline-form button{font-family:inherit}
.btn.red{background:var(--red);border-color:var(--red);color:#fff}
.btn.gray{background:#fff;border-color:#aeb8c0;color:#6e7a82}
.badge.warn{background:#fff4dd;color:#a56b00}
.user-form-grid{align-items:start}
.scaffold-project-page-grid{
  grid-template-columns:minmax(0,1fr) minmax(260px,340px);
}
.user-edit-card label{
  display:block;
  font-weight:700;
  color:#34414a;
  margin:14px 0 6px;
}
.user-edit-card .input,.user-edit-card .textarea{max-width:100%}
.form-two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.form-four-cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:14px;
}
.scaffold-dimensions-grid{
  margin-top:4px;
}
.scaffold-dimensions-grid input{
  text-align:right;
}
.scaffold-project-form-card{
  padding-bottom:18px;
}
.scaffold-form-section{
  margin-top:16px;
  padding:12px;
  border:1px solid var(--line);
  background:#fbfcfd;
  border-radius:6px;
}
.scaffold-form-section-title{
  font-weight:800;
  color:#24333c;
  margin-bottom:8px;
}
.scaffold-plate-grid{
  gap:10px!important;
}
.scaffold-plate-grid-bottom{
  margin-top:8px;
}
.scaffold-plate-grid input[name="max_load_kg"],
.scaffold-plate-grid input[name="machines_tools_kg"],
.scaffold-plate-grid input[name="people_count"],
.scaffold-plate-grid input[name="people_kg"]{
  text-align:right;
}
.scaffold-project-form-card label{
  font-size:14px;
}
.scaffold-project-form-card .input{
  height:46px;
}
.field-hint{
  color:#6b7780;
  background:#f7f9fb;
  border:1px solid var(--line);
  border-radius:4px;
  padding:10px 12px;
  margin:10px 0 0;
  font-size:13px;
}
.form-actions-row{
  display:flex;
  gap:10px;
  margin-top:18px;
  flex-wrap:wrap;
}
.temp-password-box{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  border:1px solid #ffd6a6;
  background:#fff7e8;
  color:#805400;
  padding:13px 14px;
  border-radius:6px;
  margin-bottom:16px;
}
.temp-password-box code{
  background:#fff;
  color:#101820;
  border:1px solid #e0c08a;
  border-radius:4px;
  padding:8px 10px;
  font-family:Consolas, Monaco, monospace;
  font-size:16px;
}
.welcome-workflow-card{
  border:1px solid #bfe8ee;
  background:#f2fbfd;
  color:#24333b;
  border-radius:6px;
  padding:16px;
  margin-bottom:16px;
  box-shadow:0 1px 8px rgba(0,0,0,.06);
}
.welcome-workflow-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.welcome-workflow-head strong,
.welcome-workflow-head span{
  display:block;
}
.welcome-workflow-head strong{
  color:#0a7f90;
  font-size:20px;
}
.welcome-workflow-head span,
.welcome-workflow-card small{
  color:#61717a;
}
.welcome-credentials{
  display:grid;
  grid-template-columns:repeat(3,minmax(160px,1fr));
  gap:10px;
  margin-bottom:12px;
}
.welcome-credentials div{
  border:1px solid #d7eef4;
  background:#fff;
  border-radius:4px;
  padding:10px 12px;
}
.welcome-credentials span,
.welcome-credentials strong,
.welcome-credentials code{
  display:block;
}
.welcome-credentials span{
  color:#74818b;
  font-size:12px;
  font-weight:700;
  margin-bottom:4px;
}
.welcome-credentials code{
  font-family:Consolas, Monaco, monospace;
  font-size:16px;
  color:#101820;
}
.welcome-workflow-card pre{
  white-space:pre-wrap;
  border:1px solid #d7eef4;
  background:#fff;
  border-radius:4px;
  padding:12px;
  margin:0 0 10px;
  color:#26343b;
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  font-size:15px;
  line-height:1.45;
}
.password-create-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
}
.password-create-row .btn{
  height:50px;
  white-space:nowrap;
}
@media (max-width:1000px){
  .user-metrics{grid-template-columns:repeat(2,minmax(140px,1fr))}
  .form-two-cols{grid-template-columns:1fr}
  .form-four-cols{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .scaffold-plate-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}
  .actions-cell{min-width:300px}
}
@media (max-width:600px){.user-metrics{grid-template-columns:1fr}.form-four-cols,.scaffold-plate-grid{grid-template-columns:1fr}.password-create-row,.welcome-credentials{grid-template-columns:1fr}.welcome-workflow-head{flex-direction:column}}

/* V2.5 - clientes, obras e vínculos */
.assignment-list{display:grid;gap:10px;margin-top:12px}
.assignment-row{display:grid;grid-template-columns:1fr 180px;gap:12px;align-items:center;border:1px solid var(--line);background:#fbfcfd;border-radius:6px;padding:11px 12px}
.assignment-user{display:flex!important;gap:10px;align-items:center;margin:0!important;font-weight:400!important;cursor:pointer}
.assignment-user input{width:18px;height:18px;accent-color:var(--teal)}
.assignment-user small{color:#6b7780}
.assignment-select{height:38px!important;font-size:14px!important;padding:0 10px!important}
.linked-users{display:grid;gap:10px}
.linked-user-row{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:10px;background:#fbfcfd}
.linked-user-row small{color:#6b7780}
.permission-list .badge{margin-bottom:4px}
.status.warn{background:#fff4dd;color:#a56b00}
.users-table small{color:#6b7780}
@media(max-width:1100px){.scaffold-project-page-grid{grid-template-columns:1fr}}
@media(max-width:780px){.assignment-row{grid-template-columns:1fr}.linked-user-row{grid-template-columns:1fr}.actions-cell{white-space:normal}}

/* V2.6 - preenchimento automático por CNPJ */
.input-action-group{display:flex;gap:8px;align-items:stretch}
.input-action-group .input{flex:1;min-width:0}
.input-action-group .btn{height:50px;white-space:nowrap}
.form-help{display:block;color:#6b7780;margin-top:6px;font-size:13px;line-height:1.35}
.form-help.ok{color:#12866f}
.form-help.error{color:#c92436}
.form-help.loading{color:#0a7f90}
.btn.is-loading{opacity:.7;pointer-events:none}
.client-cnpj-row{align-items:start}
@media(max-width:700px){.input-action-group{display:grid;grid-template-columns:1fr}.input-action-group .btn{width:100%}}


/* V2.7 - ajustes do cadastro de clientes por CNPJ */
.client-contact-phone-grid{grid-template-columns:1fr 260px}
.client-address-number-grid{grid-template-columns:1fr 150px}
.client-city-uf-grid{grid-template-columns:1fr 120px}
@media(max-width:900px){.client-contact-phone-grid,.client-address-number-grid,.client-city-uf-grid{grid-template-columns:1fr}}


/* V2.10 - alinhamento geral de botões e tabelas
   Objetivo: manter todos os botões com espaçamento consistente, alinhados verticalmente
   e impedir quebra de linha em tabelas, usando rolagem horizontal quando necessário. */
.toolbar,
.toolbar-left,
.form-actions,
.form-actions-row,
.period,
.input-action-group,
.modal-actions,
.action-row,
.actions,
.doc,
.account-panel a,
.account-panel button,
.logout-form button{
  align-items:center;
}

.toolbar-left,
.form-actions,
.form-actions-row,
.period,
.modal-actions,
.action-row{
  gap:10px!important;
}

.toolbar-left{
  row-gap:10px!important;
}

/* os botões não ficam mais colados como grupo segmentado */
.split-buttons{
  gap:10px!important;
}
.split-buttons .btn,
.split-buttons .btn:first-child,
.split-buttons .btn:last-child{
  border-radius:4px!important;
  margin-left:0!important;
}

.btn{
  min-height:40px;
  line-height:1;
  white-space:nowrap;
  vertical-align:middle;
}
.btn.tiny{
  min-height:34px;
}
.btn .ico,
button .ico,
a .ico{
  margin-top:0;
}

/* ações em cards e listas */
.actions{
  gap:10px!important;
}
.action-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px!important;
}
.action-row .btn,
.action-row .btn:first-child,
.action-row .btn:last-child{
  border-radius:4px!important;
  height:42px;
}
.work-card .btn + .btn,
.security-card .btn + .btn{
  margin-left:0;
}

/* formulários inline dentro de tabelas: espaçamento e alinhamento */
.inline-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:3px 4px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.inline-form .btn{
  margin:0!important;
}
.actions-cell{
  white-space:nowrap!important;
  vertical-align:middle!important;
  text-align:right!important;
}
.actions-cell > .btn,
.actions-cell > a.btn,
.actions-cell > button.btn{
  margin:3px 4px!important;
  vertical-align:middle!important;
}
.table-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.table-actions .inline-form,
.table-actions .btn{
  margin:0!important;
}

/* tabelas: sem quebra de linha e sempre alinhadas */
.table-responsive{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border-radius:4px;
}
.table-responsive table,
table.users-table,
.security-card table,
.panel table{
  min-width:100%;
}
table{
  border-collapse:collapse;
}
table th,
table td{
  white-space:nowrap!important;
  vertical-align:middle!important;
  line-height:1.25;
}
table th{
  height:46px;
}
table td{
  height:50px;
}
table .right{
  text-align:right!important;
}
.table-subtext{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  color:#6b7780;
  font-size:12px;
  white-space:nowrap;
}
.table-subtext:before{
  content:"•";
  margin-right:8px;
  color:#b3bdc5;
}
.table-mainline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.table-mainline strong{
  white-space:nowrap;
}

/* campos e grupos de formulário */
.input-action-group{
  gap:10px!important;
}
.client-contact-phone-grid,
.client-address-number-grid,
.client-city-uf-grid,
.form-two-cols{
  column-gap:16px!important;
  row-gap:12px!important;
}

/* documentos e área pública */
.doc{
  grid-template-columns:38px minmax(0,1fr) auto!important;
  column-gap:12px!important;
}
.doc .btn{
  justify-self:end;
}
.doc strong,
.doc small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:780px){
  .toolbar{
    align-items:flex-start;
  }
  .toolbar-left{
    gap:10px!important;
  }
  .table-actions{
    justify-content:flex-start;
  }
  .actions-cell{
    text-align:left!important;
  }
}

/* V2.12 - padronização permanente de botões e tabelas
   Mantém botões alinhados, espaçados e sem quebra de linha em todas as telas. */
:root{
  --btn-gap:10px;
  --btn-gap-sm:8px;
}

button,
.btn,
a.btn,
input[type="submit"].btn{
  white-space:nowrap!important;
  flex:0 0 auto;
}

.btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  line-height:1!important;
  min-width:max-content;
}

.btn .ico,
.btn svg,
button .ico,
a .ico{
  flex:0 0 auto!important;
}

.toolbar{
  gap:16px!important;
  align-items:center!important;
}

.toolbar-left,
.form-actions,
.form-actions-row,
.modal-actions,
.period,
.input-action-group,
.work-actions,
.card-actions,
.security-actions,
.account-actions{
  display:flex!important;
  align-items:center!important;
  gap:var(--btn-gap)!important;
  flex-wrap:nowrap!important;
}

.toolbar-left,
.form-actions,
.form-actions-row,
.work-actions,
.card-actions,
.security-actions{
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:2px;
  scrollbar-width:thin;
}

.toolbar-left::-webkit-scrollbar,
.form-actions::-webkit-scrollbar,
.form-actions-row::-webkit-scrollbar,
.work-actions::-webkit-scrollbar,
.card-actions::-webkit-scrollbar,
.security-actions::-webkit-scrollbar{
  height:6px;
}

.toolbar-left::-webkit-scrollbar-thumb,
.form-actions::-webkit-scrollbar-thumb,
.form-actions-row::-webkit-scrollbar-thumb,
.work-actions::-webkit-scrollbar-thumb,
.card-actions::-webkit-scrollbar-thumb,
.security-actions::-webkit-scrollbar-thumb{
  background:#cbd5dc;
  border-radius:10px;
}

.split-buttons .btn,
.split-buttons .btn:first-child,
.split-buttons .btn:last-child{
  border-radius:4px!important;
  margin-left:0!important;
}

.actions,
.action-row{
  gap:var(--btn-gap)!important;
}

.action-row{
  grid-template-columns:repeat(2,minmax(max-content,1fr))!important;
}

.inline-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}

.table-actions{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:var(--btn-gap-sm)!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  min-width:max-content;
}

.table-actions > .btn,
.table-actions > a.btn,
.table-actions > button.btn,
.table-actions > form,
.table-actions .inline-form,
.table-actions .inline-form .btn{
  margin:0!important;
}

.actions-cell{
  white-space:nowrap!important;
  text-align:right!important;
  vertical-align:middle!important;
  min-width:max-content!important;
}

.table-responsive{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  width:100%!important;
  max-width:100%!important;
  -webkit-overflow-scrolling:touch;
}

.table-responsive table,
table.users-table,
.panel table,
.security-card table{
  width:100%!important;
  min-width:max-content!important;
  table-layout:auto!important;
}

table th,
table td,
.users-table th,
.users-table td{
  white-space:nowrap!important;
  vertical-align:middle!important;
}

table th:last-child,
table td:last-child{
  white-space:nowrap!important;
}

.table-mainline,
.table-subtext,
.badge,
.role-badge,
.status{
  white-space:nowrap!important;
}

.table-mainline{
  max-width:none!important;
  min-width:max-content;
}

.work-actions{
  margin-top:14px;
}

.work-card .btn,
.security-card .btn,
.user-edit-card .btn{
  margin:0!important;
}

.doc{
  align-items:center!important;
}

.doc .btn{
  white-space:nowrap!important;
  align-self:center!important;
}

.cep{
  gap:10px!important;
}

.cep .btn,
.input-action-group .btn{
  height:50px!important;
}

@media(max-width:860px){
  .toolbar{
    align-items:center!important;
  }
  .toolbar-left,
  .form-actions,
  .form-actions-row,
  .work-actions,
  .card-actions,
  .security-actions{
    flex-wrap:nowrap!important;
    overflow-x:auto;
  }
  .table-actions{
    justify-content:flex-start!important;
  }
  .actions-cell{
    text-align:left!important;
  }
}


/* V2.14 - Pastas da obra estilo Windows e ações de documentos */
.section-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:28px 0 10px;
}
.section-head-row h2{
  margin:0;
  font-weight:500;
  font-size:24px;
  color:#1f2d36;
  white-space:nowrap;
}
.muted-small{
  color:#74818b;
  font-size:13px;
  white-space:nowrap;
}
.windows-folder-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px;
}
.windows-folder{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-height:72px;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:4px;
  background:#fff;
  cursor:pointer;
  user-select:none;
  transition:background .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.windows-folder:hover{
  background:#eef6ff;
  border-color:#badcff;
  box-shadow:0 1px 4px rgba(17,134,245,.12);
}
.windows-folder:active{
  background:#dcecff;
  border-color:#7ebcff;
}
.windows-folder-icon{
  position:relative;
  width:52px;
  height:42px;
}
.windows-folder-icon:before{
  content:"";
  position:absolute;
  left:2px;
  top:5px;
  width:24px;
  height:10px;
  background:#f6c453;
  border:1px solid #d7a432;
  border-bottom:0;
  border-radius:4px 4px 0 0;
}
.windows-folder-icon:after{
  content:"";
  position:absolute;
  left:0;
  top:13px;
  width:52px;
  height:29px;
  background:linear-gradient(#ffd96b,#f2b632);
  border:1px solid #d59c25;
  border-radius:3px 4px 4px 4px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.windows-folder-icon span{
  position:absolute;
  left:4px;
  top:18px;
  z-index:1;
  width:44px;
  height:7px;
  border-radius:6px;
  background:rgba(255,255,255,.25);
}
.windows-folder-info{
  min-width:0;
}
.windows-folder-info strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:16px;
  color:#18252f;
  font-weight:600;
}
.windows-folder-info small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#6b7780;
  margin-top:4px;
}
.work-docs .doc{
  grid-template-columns:38px minmax(0,1fr) auto!important;
  align-items:center!important;
}
.doc-main{
  min-width:0;
}
.doc-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.doc-actions .inline-form{
  margin:0!important;
}
.doc-actions .btn{
  margin:0!important;
}
@media(max-width:780px){
  .section-head-row{align-items:flex-start;flex-direction:column;gap:4px}
  .muted-small{white-space:normal}
  .windows-folder-grid{grid-template-columns:1fr}
  .work-docs .doc{grid-template-columns:38px minmax(0,1fr)!important}
  .doc-actions{grid-column:1 / -1;justify-content:flex-start;overflow-x:auto;padding-top:6px}
}

/* V2.15 - Visualização de pastas por ícones/detalhes e documentos dentro das pastas dos projetos */
.project-section-head{
  align-items:flex-start!important;
}
.project-section-head > div:first-child{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.view-toggle{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:2px;
}
.project-folder-grid{
  align-items:start;
}
.project-folder-card{
  border:1px solid #dfe6eb;
  border-radius:6px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.project-folder-card summary{
  list-style:none;
}
.project-folder-card summary::-webkit-details-marker{
  display:none;
}
.project-folder-card .windows-folder{
  border-radius:0;
  border:0;
  min-height:78px;
}
.project-folder-card[open] .windows-folder{
  background:#eef6ff;
  border-bottom:1px solid #cfe3f7;
}
.project-folder-card[open] .windows-folder-info strong:after{
  content:"  · aberto";
  font-weight:400;
  color:#6b7780;
  font-size:12px;
}
.folder-documents-inside{
  background:#fbfdff;
  padding:12px;
}
.folder-path{
  display:flex;
  align-items:center;
  gap:6px;
  color:#53616b;
  font-size:13px;
  background:#f1f5f8;
  border:1px solid #dfe7ed;
  border-radius:4px;
  padding:8px 10px;
  margin-bottom:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nested-docs{
  margin-top:0!important;
}
.folder-empty-docs{
  border:1px dashed #cbd5dc;
  background:#fff;
  border-radius:4px;
  padding:12px;
  color:#71808a;
  font-size:14px;
  white-space:nowrap;
}
.folder-details-view{
  border:1px solid #dfe6eb;
  border-radius:6px;
  background:#fff;
}
.folder-table{
  min-width:860px!important;
}
.folder-detail-row{
  background:#fff;
}
.folder-detail-row:hover{
  background:#f5faff;
}
.folder-detail-row td{
  border-bottom:1px solid #eef2f4;
}
.folder-documents-row > td{
  background:#fbfdff;
  padding:0!important;
  height:auto!important;
  border-bottom:1px solid #dfe6eb;
}
.folder-documents-details{
  display:grid;
  gap:8px;
  padding:10px 12px 12px 48px;
  min-width:max-content;
}
.folder-document-line{
  display:grid;
  grid-template-columns:34px minmax(280px,1fr) auto;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid #e2e9ee;
  border-radius:4px;
  background:#fff;
}
.windows-folder-mini{
  position:relative;
  display:inline-block;
  width:28px;
  height:22px;
  flex:0 0 28px;
  vertical-align:-5px;
}
.windows-folder-mini:before{
  content:"";
  position:absolute;
  left:2px;
  top:3px;
  width:13px;
  height:6px;
  background:#f6c453;
  border:1px solid #d7a432;
  border-bottom:0;
  border-radius:3px 3px 0 0;
}
.windows-folder-mini:after{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  width:28px;
  height:14px;
  background:linear-gradient(#ffd96b,#f2b632);
  border:1px solid #d59c25;
  border-radius:2px 3px 3px 3px;
}
.windows-folder-mini span{
  position:absolute;
  left:3px;
  top:11px;
  z-index:1;
  width:22px;
  height:3px;
  border-radius:5px;
  background:rgba(255,255,255,.28);
}
.public-folder-head{
  margin-top:6px!important;
}
@media(max-width:780px){
  .project-section-head{
    flex-direction:column;
    align-items:flex-start!important;
  }
  .view-toggle{
    justify-content:flex-start;
    width:100%;
  }
  .folder-document-line{
    grid-template-columns:34px minmax(0,1fr);
  }
  .folder-document-line .doc-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
    overflow-x:auto;
  }
  .folder-documents-details{
    padding-left:12px;
  }
  .folder-empty-docs{
    white-space:normal;
  }
}

/* v2.16 - Pastas com expansão individual */
.folder-detail-row{
  cursor:pointer;
  user-select:none;
}
.folder-detail-row .table-mainline:after{
  content:"▸";
  display:inline-block;
  margin-left:10px;
  color:#7c8a93;
  font-size:13px;
  transition:transform .16s ease;
}
.folder-detail-row.is-open{
  background:#eef8fb;
}
.folder-detail-row.is-open .table-mainline:after{
  transform:rotate(90deg);
  color:var(--teal);
}
.folder-documents-row{
  display:none;
}
.folder-documents-row.is-open{
  display:table-row;
}
.project-folder-card[open] .folder-documents-inside{
  animation:folderExpand .14s ease-out;
}
@keyframes folderExpand{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}


/* v2.17 - Botão para excluir pasta/projeto */
.project-folder-card{
  position:relative;
}
.project-folder-card .windows-folder{
  padding-right:140px;
}
.folder-card-actions{
  position:absolute;
  top:20px;
  right:12px;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  white-space:nowrap;
}
.folder-card-actions .inline-form,
.folder-card-actions .btn{
  margin:0!important;
  white-space:nowrap;
}
.folder-table .table-actions{
  justify-content:flex-end;
}
@media(max-width:780px){
  .project-folder-card .windows-folder{
    padding-right:12px;
  }
  .folder-card-actions{
    position:static;
    justify-content:flex-start;
    padding:0 12px 10px 82px;
    background:#fff;
  }
  .project-folder-card[open] .folder-card-actions{
    background:#eef6ff;
    border-bottom:1px solid #cfe3f7;
  }
}
/* V2.18 - Botões de documentos somente com ícones, centralizados e padronizados */
.doc-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.doc-actions .inline-form{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0!important;
}
.doc-actions .doc-icon-btn,
.doc-actions .btn.doc-icon-btn{
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  line-height:1!important;
  border-radius:6px!important;
  flex:0 0 36px!important;
}
.doc-actions .doc-icon-btn .ico{
  margin:0!important;
  width:17px;
  height:17px;
}
.folder-document-line .doc-actions{
  min-width:84px;
}
.work-docs .doc .doc-actions{
  min-width:84px;
}
@media(max-width:780px){
  .doc-actions{
    justify-content:flex-start;
    gap:8px;
  }
}

/* V2.21 - Foco da pasta ativa, visualização detalhes/ícones e andaime sequencial automático */
.readonly-input,
.input[readonly]{
  background:#f4f7f9!important;
  color:#34434d!important;
  cursor:not-allowed;
}
.view-toggle .btn{
  flex:0 0 auto;
  white-space:nowrap!important;
}
.folder-detail-row:focus,
.project-folder-card summary:focus{
  outline:2px solid rgba(28,166,184,.45);
  outline-offset:-2px;
}
.folder-detail-row.is-open td{
  border-bottom-color:#cfe7ef;
}

/* v2.22: ação de excluir QR Code alinhada ao botão de editar */
.action-row .inline-form{
  width:100%!important;
  margin:0!important;
  display:flex!important;
}
.action-row .inline-form .btn{
  width:100%!important;
  height:42px!important;
}


/* v2.25 - Notificações fecháveis */
.flash,
.demo-warning,
.security-warning{
  position:relative;
  padding-right:48px !important;
}
.dismissible-notice{
  position:relative;
}
.notice-close{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  min-width:28px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  color:currentColor;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:.75;
  transition:opacity .15s ease, background .15s ease, transform .15s ease;
}
.notice-close:hover{
  opacity:1;
  background:rgba(255,255,255,.9);
  transform:translateY(-50%) scale(1.04);
}
.notice-close svg{
  width:17px;
  height:17px;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
}
.flash.is-hidden,
.demo-warning.is-hidden,
.security-warning.is-hidden{
  display:none !important;
}


/* v2.32 - Caixas de mensagem modernas centralizadas, sem alterar o layout das telas */
.has-system-dialog{
  overflow:hidden;
}
.system-dialog-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(4px);
}
.system-dialog-backdrop.open{
  display:flex;
}
.system-dialog{
  width:min(430px,100%);
  position:relative;
  background:#fff;
  border:0;
  border-radius:22px;
  box-shadow:0 28px 90px rgba(15,23,42,.28);
  padding:34px 30px 26px;
  text-align:center;
  transform:translateY(10px) scale(.98);
  opacity:0;
  animation:systemDialogIn .18s ease forwards;
}
@keyframes systemDialogIn{
  to{transform:translateY(0) scale(1);opacity:1;}
}
.system-dialog-close{
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#f1f5f7;
  color:#687780;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.system-dialog-close:hover{
  background:#e7eef2;
  color:#1f2d36;
  transform:scale(1.04);
}
.system-dialog-close svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  stroke-width:2.4;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.system-dialog-icon{
  width:72px;
  height:72px;
  margin:0 auto 18px;
  border-radius:50%;
  background:#fff6e7;
  color:#e28a13;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:inset 0 0 0 4px rgba(226,138,19,.16);
}
.system-dialog-icon.is-info{
  background:#e8f8fb;
  color:#1ca6b8;
  box-shadow:inset 0 0 0 4px rgba(28,166,184,.16);
}
.system-dialog-icon svg{
  width:34px;
  height:34px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.system-dialog-content h3{
  margin:0 28px 10px;
  color:#12212b;
  font-size:23px;
  line-height:1.22;
  font-weight:750;
}
.system-dialog-content p{
  margin:0 auto;
  max-width:340px;
  color:#53636d;
  font-size:16px;
  line-height:1.45;
  white-space:pre-line;
}
.system-dialog-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:26px;
  flex-wrap:wrap;
}
.system-dialog-actions .btn{
  min-width:116px;
  height:42px;
  white-space:nowrap!important;
}
.system-dialog-actions .btn.primary{
  box-shadow:0 8px 18px rgba(28,166,184,.22);
}
.flash.is-hidden{
  display:none!important;
}
@media(max-width:560px){
  .system-dialog{
    border-radius:18px;
    padding:30px 20px 22px;
  }
  .system-dialog-content h3{
    margin-left:24px;
    margin-right:24px;
    font-size:21px;
  }
  .system-dialog-actions{
    align-items:stretch;
  }
  .system-dialog-actions .btn{
    flex:1 1 140px;
    min-width:0;
  }
}

/* Ajuste v2.32: cards de obras com o mesmo tamanho dos cards superiores, lado a lado */
.works-list-grid{
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:repeat(2,minmax(280px,1fr))!important;
  gap:18px!important;
}
.works-list-grid .work-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.works-list-grid .work-actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  overflow-x:visible!important;
}
.works-list-grid .work-actions .inline-form{
  margin:0!important;
}
@media(max-width:860px){
  .works-list-grid{
    grid-template-columns:1fr!important;
  }
}

/* v2.33 - Ajustes solicitados em Obras/Pasta de Projetos */
.folder-action-btn{
  height:36px!important;
  min-height:36px!important;
  min-width:132px!important;
  padding:0 12px!important;
  border-radius:6px!important;
  font-size:13px!important;
}
.project-icon-btn,
.btn.project-icon-btn{
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  border-radius:6px!important;
  gap:0!important;
}
.project-icon-btn .ico{
  margin:0!important;
  width:17px!important;
  height:17px!important;
}
.folder-table .table-actions,
.folder-card-actions{
  gap:8px!important;
}
.folder-card-actions{
  right:10px;
  top:18px;
}
.project-folder-card .windows-folder{
  padding-right:430px;
}
.document-form .input[type="file"]{
  padding:11px 14px;
  font-size:15px;
}
.check-line{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  color:#34434d;
  font-weight:600;
}
.check-line input{
  width:18px;
  height:18px;
}
@media(max-width:1180px){
  .project-folder-card .windows-folder{
    padding-right:12px;
  }
  .folder-card-actions{
    position:static;
    justify-content:flex-start;
    padding:0 12px 10px 82px;
    background:#fff;
    flex-wrap:nowrap;
    overflow-x:auto;
  }
  .project-folder-card[open] .folder-card-actions{
    background:#eef6ff;
    border-bottom:1px solid #cfe3f7;
  }
}
@media(max-width:780px){
  .folder-action-btn{
    min-width:126px!important;
  }
}


/* v2.36 - Ajustes de Obra sem alterar o layout geral */
.project-empty-box{
  height:auto!important;
  min-height:122px!important;
  padding:18px 16px!important;
}
.project-empty-box h2{
  margin:0 0 8px!important;
  color:#1e2a32!important;
  font-size:24px!important;
  line-height:1.2!important;
}
.project-empty-box p{
  margin:0!important;
  color:#53636d!important;
}
.project-empty-box .empty-actions{
  margin-top:14px!important;
}
.project-empty-box .btn{
  height:40px!important;
}
.project-section-head .view-toggle{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
}

/* v2.38 - Estatísticas reorganizadas */
.stats-head-clean{
  gap:18px!important;
  margin-bottom:18px!important;
}
.stats-summary-card{
  min-height:86px!important;
  height:auto!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:18px!important;
  padding:14px 18px!important;
}
.stats-summary-card small{
  display:block;
  color:#71808a;
  font-weight:700;
  margin-bottom:4px;
}
.stats-summary-card strong{
  display:block;
  color:#14212b;
  font-size:16px;
}
.stats-qr-thumb{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:1px solid #dfe6eb;
  border-radius:6px;
  background:#fff;
  overflow:hidden;
  flex:0 0 auto;
}
.stats-qr-thumb img{
  width:54px;
  height:54px;
  object-fit:contain;
}
.stats-export-btn{
  border-color:#60c77b!important;
  color:#22a850!important;
  background:#fff!important;
}
.stats-panel-clean{
  min-height:0!important;
  padding:22px!important;
}
.stats-chart-card,
.stats-table-card{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:18px;
}
.stats-card-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:18px;
  font-weight:800;
  color:#14212b;
  margin-bottom:16px;
}
.stats-day-chart{
  height:280px;
  display:flex;
  align-items:flex-end;
  gap:16px;
  padding:28px 14px 8px;
  border-left:1px solid #d3dbe0;
  border-bottom:1px solid #d3dbe0;
  background:repeating-linear-gradient(to bottom,#fff 0,#fff 54px,#eef2f5 55px);
  overflow-x:auto;
}
.stats-day-column{
  height:100%;
  min-width:82px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.stats-day-value{
  font-size:13px;
  font-weight:800;
  color:#14212b;
}
.stats-day-bar{
  width:52px;
  min-height:8px;
  border-radius:6px 6px 0 0;
  background:var(--teal);
}
.stats-day-label{
  min-height:24px;
  font-size:12px;
  color:#64717a;
  text-align:center;
}
.stats-empty{
  min-height:110px;
  display:grid;
  place-items:center;
  color:#64717a;
  border:1px dashed #d3dbe0;
  border-radius:6px;
}
.stats-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:18px;
  margin-top:18px;
}
.stats-table-card table th,
.stats-table-card table td{
  padding:12px 8px;
}
@media(max-width:1180px){
  .stats-info-grid{grid-template-columns:1fr;}
}


/* Ajustes v2.41 - marca e foto de usuário */
:root{--orange:#f28c28}.brand .qr,.brand .name{font-family:"Segoe UI",Arial,Helvetica,sans-serif;font-size:28px;font-weight:800;line-height:1;letter-spacing:-.5px;display:inline-flex;align-items:center}.brand .name{color:var(--orange);margin-left:3px}.brand .pro{align-self:center}.login-logo .qr,.login-logo .name{font-family:"Segoe UI",Arial,Helvetica,sans-serif;font-weight:800;letter-spacing:-.5px}.login-logo .name{color:var(--orange)!important}.avatar{border-radius:50%;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.account-photo-block{display:flex;align-items:center;gap:18px;margin:6px 0 18px;flex-wrap:wrap}.account-photo-preview{width:108px;height:108px;border-radius:50%;border:1px solid var(--line);background:#f3f5f6;display:grid;place-items:center;color:#9aa5ad;overflow:hidden;flex:0 0 auto}.account-photo-preview img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.account-photo-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.account-photo-form .mini-label{display:block;width:100%;font-size:14px;margin:0 0 6px;color:#5c6871}.account-photo-form .input{width:310px;max-width:100%;height:40px;font-size:14px;padding:8px}

.login-logo .qr,.login-logo .name{font-size:42px;line-height:1}.public-head .logo .qr,.public-head .logo .name{font-family:"Segoe UI",Arial,Helvetica,sans-serif;font-weight:800;font-size:24px;line-height:1}.public-head .logo .name{color:var(--orange)!important;margin-left:4px}.public-head .logo .pro-text{color:#fff!important;font-weight:800}


/* V2.42 - Ícones no toggle/conta e foto de usuário maior */
.user-menu{gap:10px!important;padding:6px 10px!important}
.user-menu .avatar{width:38px!important;height:38px!important;border-radius:50%!important}
.user-menu-toggle-icon{display:inline-flex;align-items:center;justify-content:center;color:#8a969e;transition:transform .18s ease,color .18s ease}
.user-menu:hover .user-menu-toggle-icon{color:var(--teal)}
.user-menu.is-open .user-menu-toggle-icon{transform:rotate(180deg);color:var(--teal)}
.account-panel a,.account-panel button{display:flex!important;align-items:center;gap:10px;padding:12px 16px!important}
.account-panel .ico{color:#7a8790}
.account-panel a:hover .ico,.account-panel button:hover .ico{color:var(--teal)}
.account-photo-preview{width:124px!important;height:124px!important}
.account-photo-preview .ico{width:54px!important;height:54px!important}
@media(max-width:680px){.user-menu .avatar{width:36px!important;height:36px!important}.account-photo-preview{width:116px!important;height:116px!important}}


/* V2.43 - Ícones nos cards de usuários e marca sem Pro */
:root{--brand-yellow:#f6c343;--orange:var(--brand-yellow)}
.brand .name,
.login-logo .name,
.public-head .logo .name{
  color:var(--brand-yellow)!important;
}
.brand .pro,
.login-logo .pro,
.public-head .logo .pro-text{
  display:none!important;
}
.user-metric{
  display:flex;
  align-items:center;
  gap:14px;
}
.user-metric-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--teal);
  background:#eefafd;
  border:1px solid #d7eef4;
  flex:0 0 auto;
}
.user-metric-icon.active{color:#12836f;background:#e8f8f3;border-color:#cfeee6}
.user-metric-icon.blocked{color:#b5483f;background:#fff0ef;border-color:#f2d2ce}
.user-metric-icon.force{color:#a26a00;background:#fff6df;border-color:#f1dfad}
.user-metric > div{min-width:0}
@media (max-width:600px){.user-metric{justify-content:flex-start}}

/* V2.44 - Centralização da marca e cards de usuários */
.brand{
  justify-content:center!important;
  text-align:center;
  padding-left:10px!important;
  padding-right:10px!important;
}
.brand .qr,
.brand .name{
  flex:0 0 auto;
}
.user-metrics{
  grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:16px;
}
.user-metric{
  min-height:128px;
  display:flex!important;
  flex-direction:row-reverse;
  align-items:center!important;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
}
.user-metric-icon{
  width:92px!important;
  height:92px!important;
  border-radius:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  flex:0 0 92px!important;
}
.user-metric-icon .ico{
  width:48px!important;
  height:48px!important;
}
.user-metric > div{
  text-align:left!important;
  min-width:0;
  flex:1 1 auto;
}
.user-metric strong{
  font-size:44px!important;
  line-height:.95;
  font-weight:700;
  text-align:left;
}
.user-metric > div > span{
  font-size:19px!important;
  font-weight:700;
  color:#46545e;
  line-height:1.15;
  text-align:left;
}
@media(max-width:1280px){.user-metrics{grid-template-columns:repeat(2,minmax(220px,1fr));}}
@media(max-width:600px){.user-metrics{grid-template-columns:1fr}.user-metric{min-height:118px}.user-metric-icon{width:82px!important;height:82px!important;flex-basis:82px!important}.user-metric-icon .ico{width:42px!important;height:42px!important}.user-metric strong{font-size:38px!important}.user-metric > div > span{font-size:17px!important}}


/* V2.45 - Dashboard com cards padronizados */
.dashboard-metrics{
  grid-template-columns:repeat(3,minmax(240px,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
  margin-bottom:46px!important;
}
.dashboard-metric{
  min-height:128px!important;
  height:auto!important;
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:18px 20px!important;
}
.dashboard-metric-icon{
  width:92px!important;
  height:92px!important;
  border-radius:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  flex:0 0 92px!important;
  color:var(--teal);
  background:#eefafd;
  border:1px solid #d7eef4;
}
.dashboard-metric-icon.scans{color:#167cc4;background:#edf7ff;border-color:#cfe9fb}
.dashboard-metric-icon.users{color:#12836f;background:#e8f8f3;border-color:#cfeee6}
.dashboard-metric-icon .ico{
  width:48px!important;
  height:48px!important;
}
.dashboard-metric > div{
  text-align:left!important;
  min-width:0;
  flex:1 1 auto;
}
.dashboard-metric strong{
  display:block;
  font-size:44px!important;
  line-height:.95;
  font-weight:700;
  color:#14212b;
  text-align:left!important;
  margin-bottom:8px;
}
.dashboard-metric > div > span{
  display:block;
  font-size:19px!important;
  font-weight:700;
  color:#46545e;
  line-height:1.15;
  text-align:left!important;
}
.dashboard-metric small{
  display:block;
  margin-top:5px;
  color:#74818b;
  font-size:14px;
  font-weight:600;
}
@media(max-width:1180px){.dashboard-metrics{grid-template-columns:1fr!important;}.dashboard-metric{min-height:118px!important;}}
@media(max-width:600px){.dashboard-metric-icon{width:82px!important;height:82px!important;flex-basis:82px!important}.dashboard-metric-icon .ico{width:42px!important;height:42px!important}.dashboard-metric strong{font-size:38px!important}.dashboard-metric > div > span{font-size:17px!important}}


/* V2.48 - QR Codes com cards padronizados */
.qr-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:16px;
  margin-bottom:18px;
}
.qr-metric{
  min-height:128px;
  border:1px solid #dfe6eb;
  border-radius:6px;
  background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
}
.qr-metric-icon{
  width:92px;
  height:92px;
  border-radius:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  flex:0 0 92px;
  color:var(--teal);
  background:#eefafd;
  border:1px solid #d7eef4;
}
.qr-metric-icon.active{color:#12836f;background:#e8f8f3;border-color:#cfeee6}
.qr-metric-icon.inactive{color:#b5483f;background:#fff0ef;border-color:#f2d2ce}
.qr-metric-icon.scans{color:#167cc4;background:#edf7ff;border-color:#cfe9fb}
.qr-metric-icon .ico{
  width:48px!important;
  height:48px!important;
}
.qr-metric > div{
  text-align:left;
  min-width:0;
  flex:1 1 auto;
}
.qr-metric strong{
  display:block;
  font-size:44px;
  line-height:.95;
  font-weight:700;
  color:#14212b;
  text-align:left;
  margin-bottom:8px;
}
.qr-metric > div > span{
  display:block;
  font-size:19px;
  font-weight:700;
  color:#46545e;
  line-height:1.15;
  text-align:left;
}
.qr-metric small{
  display:block;
  margin-top:5px;
  color:#74818b;
  font-size:14px;
  font-weight:600;
}
@media(max-width:1280px){.qr-metrics{grid-template-columns:repeat(2,minmax(220px,1fr));}}
@media(max-width:600px){.qr-metrics{grid-template-columns:1fr}.qr-metric{min-height:118px}.qr-metric-icon{width:82px;height:82px;flex-basis:82px}.qr-metric-icon .ico{width:42px!important;height:42px!important}.qr-metric strong{font-size:38px}.qr-metric > div > span{font-size:17px}}


/* V2.49 - Estatísticas com cards padronizados */
.stats-summary-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:16px;
  margin-bottom:18px;
}
.stats-summary-metric{
  min-height:128px;
  border:1px solid #dfe6eb;
  border-radius:6px;
  background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
}
.stats-summary-icon{
  width:92px;
  height:92px;
  border-radius:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  flex:0 0 92px;
  color:var(--teal);
  background:#eefafd;
  border:1px solid #d7eef4;
}
.stats-summary-icon.scans{color:#167cc4;background:#edf7ff;border-color:#cfe9fb}
.stats-summary-icon.unique{color:#12836f;background:#e8f8f3;border-color:#cfeee6}
.stats-summary-icon.period{color:#a26a00;background:#fff6df;border-color:#f1dfad}
.stats-summary-icon .ico{
  width:48px!important;
  height:48px!important;
}
.stats-summary-metric > div{
  text-align:left;
  min-width:0;
  flex:1 1 auto;
}
.stats-summary-metric strong{
  display:block;
  font-size:44px;
  line-height:.95;
  font-weight:700;
  color:#14212b;
  text-align:left;
  margin-bottom:8px;
}
.stats-summary-metric > div > span{
  display:block;
  font-size:19px;
  font-weight:700;
  color:#46545e;
  line-height:1.15;
  text-align:left;
}
.stats-summary-metric small{
  display:block;
  margin-top:5px;
  color:#74818b;
  font-size:14px;
  font-weight:600;
}
.stats-summary-period .stats-export-btn{
  margin-top:10px;
}
@media(max-width:1280px){.stats-summary-metrics{grid-template-columns:repeat(2,minmax(220px,1fr));}}
@media(max-width:600px){.stats-summary-metrics{grid-template-columns:1fr}.stats-summary-metric{min-height:118px}.stats-summary-icon{width:82px;height:82px;flex-basis:82px}.stats-summary-icon .ico{width:42px!important;height:42px!important}.stats-summary-metric strong{font-size:38px}.stats-summary-metric > div > span{font-size:17px}}


/* V2.52 - QR Codes: editar e excluir abaixo de Personalizar */
.qr-card{
  grid-template-columns:192px 1fr 190px 282px;
}
.qr-actions{
  width:282px!important;
  align-items:center!important;
  padding-right:0!important;
  gap:8px!important;
}
.qr-action-main{
  width:170px!important;
  height:42px!important;
  flex:0 0 42px!important;
  white-space:nowrap;
}
.qr-secondary-row{
  width:170px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0;
}
.qr-action-icon,
.qr-action-spacer{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.qr-action-form{
  width:42px;
  height:42px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
}
@media(max-width:1200px){.qr-card{grid-template-columns:180px 1fr 130px 282px}}
@media(max-width:980px){.qr-card{grid-template-columns:1fr}.qr-actions{width:100%!important}.qr-secondary-row{width:170px}.qr-action-main{width:170px!important}}


/* V2.53 - QR Codes em linha única e avatar com ícone padrão */
.qr-card{
  grid-template-columns:192px minmax(260px,1fr) 150px 430px!important;
}
.qr-actions-inline{
  width:430px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  padding-right:0!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.qr-actions-inline .qr-action-icon,
.qr-actions-inline .qr-action-spacer,
.qr-actions-inline .qr-action-form{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  flex:0 0 42px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
}
.qr-actions-inline .qr-action-text{
  width:145px!important;
  min-width:145px!important;
  height:42px!important;
  flex:0 0 145px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
}
.avatar,
.account-photo-preview{
  position:relative;
}
.avatar .avatar-fallback,
.account-photo-preview .avatar-fallback{
  width:100%;
  height:100%;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  color:#9aa5ad;
  background:#f3f5f6;
}
.avatar .avatar-fallback .ico{
  width:22px!important;
  height:22px!important;
}
.account-photo-preview .account-avatar-fallback .ico{
  width:54px!important;
  height:54px!important;
}
@media(max-width:1320px){.qr-card{grid-template-columns:180px minmax(220px,1fr) 120px 430px!important;}}
@media(max-width:1080px){.qr-card{grid-template-columns:1fr!important}.qr-actions-inline{width:100%!important;overflow-x:auto!important;padding-bottom:2px!important}.qr-actions-inline .qr-action-text{width:145px!important;min-width:145px!important}}

/* V2.54 - Dashboard sem ilustração e conteúdo centralizado */
.hero.hero-centered{
  width:100%;
  max-width:980px;
  margin:0 auto;
  display:flex!important;
  justify-content:center;
  align-items:center;
  text-align:center;
  grid-template-columns:none!important;
  padding:10px 20px 32px;
}
.hero.hero-centered .hero-text{
  width:100%;
  max-width:720px;
  margin:0 auto;
}


/* V2.55 - QR Codes com botões como referência visual */
.qr-card{
  grid-template-columns:192px minmax(260px,1fr) 150px 170px!important;
}
.qr-actions-stack{
  width:170px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding-right:0!important;
}
.qr-stack-btn{
  width:170px!important;
  min-width:170px!important;
  height:54px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font-size:17px!important;
  white-space:nowrap!important;
}
.qr-stack-row{
  width:170px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:0!important;
}
.qr-stack-row .qr-action-icon,
.qr-stack-row .qr-action-spacer,
.qr-stack-row .qr-action-form{
  width:82px!important;
  min-width:82px!important;
  flex:0 0 82px!important;
  height:54px!important;
  margin:0!important;
}
.qr-stack-row .qr-action-icon,
.qr-stack-row .qr-action-spacer{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
}
.qr-stack-row .qr-action-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.qr-stack-row .qr-action-icon .ico{
  width:22px!important;
  height:22px!important;
}
@media(max-width:1320px){.qr-card{grid-template-columns:180px minmax(220px,1fr) 120px 170px!important;}}
@media(max-width:1080px){.qr-card{grid-template-columns:1fr!important}.qr-actions-stack{width:170px!important}}


/* V2.56 - Visualizador interno de arquivos */
.document-viewer-shell{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
  overflow:hidden;
}
.document-viewer-head{
  min-height:76px;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:#fbfdff;
}
.document-viewer-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.document-viewer-title h2{
  margin:0 0 4px;
  font-size:20px;
  color:#14212b;
  line-height:1.2;
  word-break:break-word;
}
.document-viewer-title p{
  margin:0;
  color:#74818b;
  font-size:14px;
}
.document-viewer-frame{
  height:calc(100vh - 240px);
  min-height:560px;
  background:#eef3f6;
  display:grid;
  place-items:stretch;
}
.document-viewer-frame iframe{
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}
.document-image-preview{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  overflow:auto;
  padding:20px;
  background:#eef3f6;
}
.document-image-preview img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  box-shadow:0 8px 28px rgba(0,0,0,.14);
  background:#fff;
}
.document-unsupported{
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  text-align:center;
  color:#53616b;
  padding:32px;
  background:#fff;
}
.document-unsupported h2{
  margin:0;
  color:#14212b;
  font-size:24px;
}
.document-unsupported p{
  margin:0 0 8px;
  max-width:520px;
}
.public-document-card{
  max-width:1280px;
}
.doc-actions a.doc-icon-btn{
  text-decoration:none;
}
@media(max-width:780px){
  .document-viewer-head{align-items:flex-start;flex-direction:column}
  .document-viewer-frame{height:70vh;min-height:420px}
}


/* V2.57 - Botão Visualizar Arquivo como referência anexada */
.doc-actions .doc-icon-btn,
.doc-actions .btn.doc-icon-btn{
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:6px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 48px!important;
}
.doc-actions a.doc-icon-btn:not(.red){
  border-color:var(--teal)!important;
  color:var(--teal)!important;
  background:#fff!important;
}
.doc-actions .doc-icon-btn .ico{
  width:20px!important;
  height:20px!important;
}
.folder-document-line .doc-actions,
.work-docs .doc .doc-actions{
  min-width:106px!important;
}


/* V2.61 - Modal Personalizar QR Code */
.qr-customizer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,32,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:60;
  padding:18px;
}
.qr-customizer-backdrop.open{display:flex}
.qr-customizer-modal{
  width:min(1380px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  background:#f4f6f8;
  border-radius:10px;
  box-shadow:0 18px 45px rgba(0,0,0,.26);
  border:1px solid #d5dde4;
}
.qr-customizer-head{
  background:#1ca6b8;
  color:#fff;
  min-height:82px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.qr-customizer-head h2{
  margin:0;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:28px;
  font-weight:700;
}
.qr-customizer-close{
  width:42px;height:42px;border:0;background:transparent;color:#d7f5f9;cursor:pointer;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
}
.qr-customizer-close:hover{background:rgba(255,255,255,.12);color:#fff}
.qr-customizer-body{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:22px;
  padding:22px;
}
.qr-customizer-preview-column{display:flex;flex-direction:column;gap:14px}
.qr-preview-card{
  background:#fff;border:1px solid #dfe6eb;border-radius:8px;padding:20px;box-shadow:var(--shadow);
}
.qr-preview-frame{
  position:relative;
  min-height:360px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #eef2f4;
  border-radius:8px;
  background:#fbfcfd;
  overflow:hidden;
}
.qr-preview-frame img{width:220px;height:220px;object-fit:contain;display:block;transition:.2s ease}
.qr-preview-frame.hide-dots img{filter:grayscale(.18) contrast(.92) opacity(.88)}
.qr-preview-badge{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:170px;
  padding:10px 16px;
  border-radius:10px;
  background:#101820;
  color:#fff;
  font-size:18px;
  font-weight:800;
  letter-spacing:.5px;
}
.qr-preview-logo{
  position:absolute;
  inset:auto auto 138px auto;
  width:66px;height:66px;border-radius:16px;background:#fff center/cover no-repeat;border:4px solid #fff;box-shadow:0 8px 16px rgba(0,0,0,.18);
}
.qr-preview-meta{padding-top:14px;text-align:center}
.qr-preview-meta strong{display:block;font-size:18px;color:#17242c}
.qr-preview-meta small{display:block;margin-top:4px;color:#6f7d86;font-size:13px}
.qr-apply-btn{width:100%;height:48px;font-size:18px;font-weight:700}
.qr-customizer-config-column{display:flex;flex-direction:column;gap:22px}
.qr-customizer-grid{display:grid;grid-template-columns:300px 1fr;gap:22px}
.qr-customizer-card{background:#fff;border:1px solid #dfe6eb;border-radius:8px;padding:18px;box-shadow:var(--shadow)}
.qr-customizer-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.qr-customizer-section-head h3{margin:0;font-size:18px;color:#16232b}
.qr-customizer-section-head small{color:#7b8891;font-size:13px}
.qr-customizer-actions-row{display:flex;gap:10px;margin-bottom:18px}
.qr-logo-btn{height:44px;font-size:17px;font-weight:700}
.qr-toggle-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:17px;color:#24323a}
.qr-custom-switch{width:46px;height:24px;border:1px solid #c7d0d6;border-radius:999px;background:#edf1f4;position:relative;cursor:pointer;transition:.2s ease}
.qr-custom-switch span{position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#9ca8b2;transition:.2s ease}
.qr-custom-switch.on{background:#1ca6b8;border-color:#1ca6b8}
.qr-custom-switch.on span{left:24px;background:#fff}
.qr-customizer-label{display:block;margin-bottom:8px;font-size:16px;color:#24323a}
.qr-customizer-select{height:46px!important;font-size:16px!important}
.qr-icon-grid{display:grid;grid-template-columns:repeat(5,minmax(64px,1fr));gap:12px}
.qr-icon-option{height:64px;border:1px solid #dfe6eb;border-radius:18px;background:#f8fafb;color:#1a2a33;font-size:16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:.15s ease}
.qr-icon-option:hover,.qr-icon-option.active{border-color:#1ca6b8;background:#e8f7f9;color:#0e7f90;box-shadow:0 0 0 2px rgba(28,166,184,.12)}
.qr-url-card h3{font-size:22px}
.qr-url-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.qr-url-grid label span{display:block;font-size:15px;color:#24323a;margin-bottom:8px}
.qr-url-grid .input,.qr-url-grid .select{height:46px;font-size:17px}
.qr-note-box{margin-top:18px;border-top:1px solid #e6edf1;padding-top:14px}
.qr-note-box strong{display:block;color:#1a2a33;margin-bottom:6px}
.qr-note-box p{margin:0;color:#5c6971;line-height:1.45}
.qr-customizer-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-top:1px solid #dfe6eb;background:#fff}
.qr-customizer-foot-note{display:flex;flex-direction:column;gap:6px;color:#47555f;line-height:1.4}
.qr-customizer-foot-note strong{color:#d83a48;font-size:17px}
.qr-customizer-foot-note span{font-size:15px}
.qr-close-btn{min-width:190px;height:50px;font-size:17px;font-weight:700}
body.has-qr-customizer{overflow:hidden}
@media(max-width:1180px){
  .qr-customizer-body{grid-template-columns:1fr}
  .qr-customizer-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .qr-customizer-head h2{font-size:22px}
  .qr-url-grid,.qr-icon-grid{grid-template-columns:repeat(2,minmax(90px,1fr))}
  .qr-customizer-foot{flex-direction:column;align-items:stretch}
  .qr-close-btn{width:100%}
}


/* V2.62 - Personalizar QR Code em página do sistema */
.qr-customizer-page{
  background:#f4f6f8;
  border:1px solid #dfe6eb;
  border-radius:8px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.qr-customizer-page-head{
  background:#1ca6b8;
  color:#fff;
  padding:24px 26px;
}
.qr-customizer-page-head h2{
  margin:0;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:30px;
  font-weight:700;
}
.qr-customizer-page-head p{
  margin:8px 0 0;
  color:#e8fbfd;
  font-size:16px;
}
.qr-customizer-page .qr-customizer-body{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:22px;
  padding:22px;
}
.qr-customizer-page .qr-customizer-preview-column{display:flex;flex-direction:column;gap:14px}
.qr-customizer-page .qr-preview-card{
  background:#fff;border:1px solid #dfe6eb;border-radius:8px;padding:20px;box-shadow:var(--shadow);
}
.qr-customizer-page .qr-preview-frame{
  position:relative;
  min-height:360px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #eef2f4;
  border-radius:8px;
  background:#fbfcfd;
  overflow:hidden;
}
.qr-customizer-page .qr-preview-frame img{width:220px;height:220px;object-fit:contain;display:block;transition:.2s ease}
.qr-customizer-page .qr-preview-frame.hide-dots img{filter:grayscale(.18) contrast(.92) opacity(.88)}
.qr-customizer-page .qr-preview-badge{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:170px;
  padding:10px 16px;
  border-radius:10px;
  background:#101820;
  color:#fff;
  font-size:18px;
  font-weight:800;
  letter-spacing:.5px;
}
.qr-customizer-page .qr-preview-logo{
  position:absolute;
  inset:auto auto 138px auto;
  width:66px;height:66px;border-radius:16px;background:#fff center/cover no-repeat;border:4px solid #fff;box-shadow:0 8px 16px rgba(0,0,0,.18);
}
.qr-customizer-page .qr-preview-meta{padding-top:14px;text-align:center}
.qr-customizer-page .qr-preview-meta strong{display:block;font-size:18px;color:#17242c}
.qr-customizer-page .qr-preview-meta small{display:block;margin-top:4px;color:#6f7d86;font-size:13px}
.qr-customizer-page .qr-apply-btn{width:100%;height:48px;font-size:18px;font-weight:700}
.qr-customizer-page .qr-customizer-config-column{display:flex;flex-direction:column;gap:22px}
.qr-customizer-page .qr-customizer-grid{display:grid;grid-template-columns:300px 1fr;gap:22px}
.qr-customizer-page .qr-customizer-card{background:#fff;border:1px solid #dfe6eb;border-radius:8px;padding:18px;box-shadow:var(--shadow)}
.qr-customizer-page .qr-customizer-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.qr-customizer-page .qr-customizer-section-head h3{margin:0;font-size:18px;color:#16232b}
.qr-customizer-page .qr-customizer-section-head small{color:#7b8891;font-size:13px}
.qr-customizer-page .qr-customizer-actions-row{display:flex;gap:10px;margin-bottom:18px}
.qr-customizer-page .qr-logo-btn{height:44px;font-size:17px;font-weight:700}
.qr-customizer-page .qr-toggle-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:17px;color:#24323a}
.qr-customizer-page .qr-custom-switch{width:46px;height:24px;border:1px solid #c7d0d6;border-radius:999px;background:#edf1f4;position:relative;cursor:pointer;transition:.2s ease}
.qr-customizer-page .qr-custom-switch span{position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#9ca8b2;transition:.2s ease}
.qr-customizer-page .qr-custom-switch.on{background:#1ca6b8;border-color:#1ca6b8}
.qr-customizer-page .qr-custom-switch.on span{left:24px;background:#fff}
.qr-customizer-page .qr-customizer-label{display:block;margin-bottom:8px;font-size:16px;color:#24323a}
.qr-customizer-page .qr-customizer-select{height:46px!important;font-size:16px!important}
.qr-customizer-page .qr-icon-grid{display:grid;grid-template-columns:repeat(5,minmax(64px,1fr));gap:12px}
.qr-customizer-page .qr-icon-option{height:64px;border:1px solid #dfe6eb;border-radius:18px;background:#f8fafb;color:#1a2a33;font-size:16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:.15s ease}
.qr-customizer-page .qr-icon-option:hover,.qr-customizer-page .qr-icon-option.active{border-color:#1ca6b8;background:#e8f7f9;color:#0e7f90;box-shadow:0 0 0 2px rgba(28,166,184,.12)}
.qr-customizer-page .qr-url-card h3{font-size:22px}
.qr-customizer-page .qr-url-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.qr-customizer-page .qr-url-grid label span{display:block;font-size:15px;color:#24323a;margin-bottom:8px}
.qr-customizer-page .qr-url-grid .input,.qr-customizer-page .qr-url-grid .select{height:46px;font-size:17px}
.qr-customizer-page .qr-note-box{margin-top:18px;border-top:1px solid #e6edf1;padding-top:14px}
.qr-customizer-page .qr-note-box strong{display:block;color:#1a2a33;margin-bottom:6px}
.qr-customizer-page .qr-note-box p{margin:0;color:#5c6971;line-height:1.45}
.qr-customizer-page .qr-customizer-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-top:1px solid #dfe6eb;background:#fff}
.qr-customizer-page .qr-customizer-foot-note{display:flex;flex-direction:column;gap:6px;color:#47555f;line-height:1.4}
.qr-customizer-page .qr-customizer-foot-note strong{color:#d83a48;font-size:17px}
.qr-customizer-page .qr-customizer-foot-note span{font-size:15px}
@media(max-width:1180px){
  .qr-customizer-page .qr-customizer-body{grid-template-columns:1fr}
  .qr-customizer-page .qr-customizer-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .qr-customizer-page-head h2{font-size:22px}
  .qr-customizer-page .qr-url-grid,.qr-customizer-page .qr-icon-grid{grid-template-columns:repeat(2,minmax(90px,1fr))}
}

/* V2.63 - indicação de logo salva */

.qr-logo-saved{
  margin:0 0 16px;
  color:#12836f;
  background:#e8f8f3;
  border:1px solid #cfeee6;
  border-radius:6px;
  padding:9px 11px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}


/* V2.64 - visual personalizado salvo aplicado no card de QR Codes */
.qr-thumb-customized{
  overflow:visible!important;
}
.qr-list-preview{
  position:relative;
  width:180px;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
.qr-list-preview.hide-dots img{
  filter:grayscale(.15) contrast(.92) opacity(.88);
}
.qr-list-logo{
  position:absolute;
  top:50%;
  left:50%;
  width:44px;
  height:44px;
  transform:translate(-50%,-50%);
  border-radius:10px;
  background:#fff center/cover no-repeat;
  border:3px solid #fff;
  box-shadow:0 4px 10px rgba(0,0,0,.22);
  z-index:2;
}
.qr-list-badge{
  position:absolute;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  background:#101820;
  color:#fff;
  border-radius:8px;
  padding:5px 10px;
  font-size:11px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  letter-spacing:.3px;
  z-index:3;
}
.qr-list-preview .qr-list-badge:empty{display:none}


/* V2.66 - prévia da página Personalizar igual ao card de QR Codes */
.qr-customizer-page .qr-preview-card.qr-preview-card-list{padding:18px}
.qr-customizer-page .qr-preview-card-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:center}
.qr-customizer-page .qr-preview-thumb{min-height:190px;display:flex;align-items:center;justify-content:center}
.qr-customizer-page .qr-preview-frame{position:relative;width:180px;min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:0;background:transparent;border-radius:0;overflow:visible}
.qr-customizer-page .qr-preview-frame img{width:172px;height:172px;object-fit:contain;display:block;transition:.2s ease}
.qr-customizer-page .qr-preview-frame.hide-dots img{filter:grayscale(.15) contrast(.92) opacity(.88)}
.qr-customizer-page .qr-preview-logo{position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%);border-radius:10px;background:#fff center/cover no-repeat;border:3px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.22);z-index:2}
.qr-customizer-page .qr-preview-badge{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:#101820;color:#fff;border-radius:8px;padding:5px 10px;font-size:11px;font-weight:800;line-height:1;white-space:nowrap;letter-spacing:.3px;z-index:3;min-width:auto;margin-top:0}
.qr-customizer-page .qr-preview-info{min-width:0}
.qr-customizer-page .qr-preview-info .qr-type,.qr-customizer-page .qr-preview-info .qr-name,.qr-customizer-page .qr-preview-info .date-line{text-align:left}
.qr-customizer-page .qr-preview-info .qr-name{margin-top:10px}
.qr-customizer-page .qr-preview-meta{display:none}
@media(max-width:1180px){.qr-customizer-page .qr-preview-card-row{grid-template-columns:1fr}.qr-customizer-page .qr-preview-info{display:flex;flex-direction:column;align-items:flex-start}}


/* V2.67 - Personalizar sem URL/Ícones e logo centralizada */
.qr-customizer-page .qr-customizer-grid-single{
  grid-template-columns:minmax(280px,420px)!important;
}
.qr-customizer-page .qr-preview-logo,
.qr-list-logo{
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
.qr-customizer-page .qr-preview-badge,
.qr-list-badge{
  display:none!important;
}


/* V2.68 - aumentar área da prévia do QR Code em Personalizar */
.qr-customizer-page .qr-customizer-body{
  grid-template-columns:minmax(420px, 520px) 1fr !important;
}
.qr-customizer-page .qr-customizer-preview-column{
  min-width:420px;
}
.qr-customizer-page .qr-preview-card.qr-preview-card-list{
  padding:20px 22px;
}
.qr-customizer-page .qr-preview-card-row{
  grid-template-columns:220px minmax(160px,1fr) !important;
  gap:22px;
}
.qr-customizer-page .qr-preview-thumb{
  min-height:220px;
  min-width:220px;
}
.qr-customizer-page .qr-preview-frame{
  width:210px;
  min-height:210px;
}
.qr-customizer-page .qr-preview-frame img{
  width:190px !important;
  height:190px !important;
}
@media(max-width:1180px){
  .qr-customizer-page .qr-customizer-body{
    grid-template-columns:1fr !important;
  }
  .qr-customizer-page .qr-customizer-preview-column{
    min-width:0;
  }
  .qr-customizer-page .qr-preview-card-row{
    grid-template-columns:1fr !important;
  }
}


/* V2.69 - Personalizar em duas metades e sem Ocultar pontos */
.qr-customizer-page .qr-customizer-body{
  grid-template-columns:1fr 1fr!important;
  align-items:start;
}
.qr-customizer-page .qr-customizer-preview-column,
.qr-customizer-page .qr-customizer-config-column{
  width:100%;
  min-width:0!important;
}
.qr-customizer-page .qr-preview-card.qr-preview-card-list{
  min-height:352px;
  display:flex;
  align-items:center;
}
.qr-customizer-page .qr-preview-card-row{
  width:100%;
  grid-template-columns:240px minmax(220px,1fr)!important;
  gap:28px!important;
}
.qr-customizer-page .qr-preview-thumb{
  min-width:240px;
  min-height:240px;
}
.qr-customizer-page .qr-preview-frame{
  width:230px;
  min-height:230px;
}
.qr-customizer-page .qr-preview-frame img{
  width:214px!important;
  height:214px!important;
}
.qr-customizer-page .qr-customizer-grid-single{
  grid-template-columns:1fr!important;
}
.qr-customizer-page .qr-toggle-line{
  display:none!important;
}
@media(max-width:1180px){
  .qr-customizer-page .qr-customizer-body{
    grid-template-columns:1fr!important;
  }
  .qr-customizer-page .qr-preview-card-row{
    grid-template-columns:1fr!important;
  }
}


/* V2.69 - Logo maior no QR Code */
.qr-customizer-page .qr-preview-logo{
  width:72px!important;
  height:72px!important;
  border-radius:16px!important;
  border-width:4px!important;
}
.qr-list-logo{
  width:60px!important;
  height:60px!important;
  border-radius:14px!important;
  border-width:4px!important;
}


/* V2.70 - Removido nível de correção de erro em Personalizar */
.qr-customizer-page .qr-customizer-label,
.qr-customizer-page .qr-customizer-select{
  display:none!important;
}


/* V2.71 - Botão Excluir Logo */
.qr-customizer-page .qr-customizer-actions-row{
  flex-wrap:wrap;
}
.qr-customizer-page .qr-logo-delete-btn{
  height:44px;
  font-size:17px;
  font-weight:700;
}


/* V2.72 - Logo segura para leitura do QR Code */
.qr-customizer-page .qr-preview-logo{
  width:54px!important;
  height:54px!important;
  border-radius:12px!important;
  border-width:4px!important;
  background-color:#fff!important;
}
.qr-list-logo{
  width:44px!important;
  height:44px!important;
  border-radius:10px!important;
  border-width:3px!important;
  background-color:#fff!important;
}
.qr-customizer-page .qr-preview-frame img,
.qr-list-preview img{
  image-rendering:auto;
}


/* V2.77 - Login moderno com recuperação de senha */
.login-page-modern{
  min-height:100vh;
  display:flex!important;
  align-items:center;
  justify-content:center;
  padding:32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(28,166,184,.20), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(246,195,67,.20), transparent 30%),
    linear-gradient(135deg,#17232c 0%,#23313b 50%,#0a6e7d 100%)!important;
}
.login-shell{
  width:min(1120px,100%);
  min-height:620px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.36);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(0,0,0,.30);
}
.login-showcase{
  position:relative;
  padding:54px;
  color:#fff;
  background:
    linear-gradient(145deg,rgba(9,83,96,.98),rgba(15,30,39,.98)),
    radial-gradient(circle at 25% 20%, rgba(246,195,67,.28), transparent 34%);
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}
.login-showcase:after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-90px;
  width:260px;
  height:260px;
  border:36px solid rgba(255,255,255,.08);
  border-radius:50%;
}
.login-showcase-brand{
  position:absolute;
  top:34px;
  left:42px;
  display:flex;
  align-items:center;
  font-size:34px;
  font-weight:800;
  letter-spacing:-.6px;
}
.login-showcase-brand .qr{color:#25b3c4}
.login-showcase-brand .name{color:var(--brand-yellow,#f6c343)}
.login-showcase h2{
  max-width:430px;
  margin:44px 0 16px;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-1px;
}
.login-showcase p{
  max-width:420px;
  margin:0;
  color:#d7e6eb;
  font-size:18px;
  line-height:1.55;
}
.login-showcase-qr{
  width:92px;
  height:92px;
  margin-top:34px;
  border-radius:24px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}
.login-showcase-qr .ico{width:54px!important;height:54px!important}

.login-card-modern{
  width:100%!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:54px 48px!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff!important;
}
.login-card-modern .login-logo{
  text-align:left!important;
  margin-bottom:26px!important;
}
.login-card-modern .login-logo .qr,
.login-card-modern .login-logo .name{
  font-family:"Segoe UI",Arial,Helvetica,sans-serif!important;
  font-weight:800!important;
}
.login-title-block h1{
  text-align:left!important;
  margin:0 0 8px!important;
  color:#14212b!important;
  font-size:34px!important;
  font-weight:800!important;
  letter-spacing:-.7px;
}
.login-title-block p{
  margin:0 0 26px;
  color:#70808a;
  font-size:16px;
}
.login-flash{
  margin-bottom:18px!important;
}
.login-field{
  display:block;
  margin-bottom:16px;
}
.login-field > span{
  display:block;
  color:#34424b;
  font-weight:700;
  margin-bottom:7px;
}
.login-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.login-input-wrap .input{
  height:54px!important;
  margin:0!important;
  padding-left:48px!important;
  padding-right:48px!important;
  border-radius:12px!important;
  border:1px solid #d8e1e7!important;
  background:#f8fafb!important;
  font-size:16px!important;
}
.login-input-wrap .input:focus{
  border-color:var(--teal)!important;
  box-shadow:0 0 0 4px rgba(28,166,184,.12);
  background:#fff!important;
}
.login-field-icon{
  position:absolute;
  left:16px;
  z-index:1;
  color:#7d8b95;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.login-field-icon .ico{width:19px!important;height:19px!important}
.login-password-toggle{
  position:absolute;
  right:10px;
  width:38px;
  height:38px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#7d8b95;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.login-password-toggle:hover,
.login-password-toggle.is-visible{
  background:#eaf7f9;
  color:var(--teal);
}
.login-password-toggle .ico{width:20px!important;height:20px!important}
.login-options{
  display:flex;
  justify-content:flex-end;
  margin:-2px 0 18px;
}
.login-options a,
.forgot-back a{
  color:var(--teal);
  font-weight:700;
  text-decoration:none;
}
.login-options a:hover,
.forgot-back a:hover{
  text-decoration:underline;
}
.login-submit{
  width:100%!important;
  height:52px!important;
  border-radius:12px!important;
  font-size:18px!important;
  font-weight:800!important;
}
.forgot-shell{
  width:min(520px,100%);
  min-height:auto;
  grid-template-columns:1fr;
  border-radius:24px;
}
.forgot-card{
  min-height:520px;
}
.forgot-back{
  margin-top:22px;
  text-align:center;
}
.forgot-back a{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
@media(max-width:900px){
  .login-shell{grid-template-columns:1fr;min-height:auto}
  .login-showcase{display:none}
  .login-card-modern{padding:38px 28px!important}
  .login-page-modern{padding:20px}
}
@media(max-width:480px){
  .login-title-block h1{font-size:28px!important}
  .login-card-modern .login-logo .qr,
  .login-card-modern .login-logo .name{font-size:34px!important}
}


/* V2.78 - Centralização das telas de Login e Recuperar Senha */
.login-card-modern .login-logo,
.forgot-card .login-logo{
  text-align:center!important;
  justify-content:center!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:100%;
}
.login-card-modern .login-logo .name,
.forgot-card .login-logo .name{
  margin-left:0!important;
}
.login-title-block{
  text-align:center!important;
}
.login-title-block h1,
.forgot-card .login-title-block h1{
  text-align:center!important;
}
.login-title-block p,
.forgot-card .login-title-block p{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.login-showcase{
  align-items:center!important;
  text-align:center!important;
}
.login-showcase-brand{
  left:50%!important;
  transform:translateX(-50%)!important;
  justify-content:center!important;
  text-align:center!important;
  width:max-content!important;
  gap:8px!important;
}
.login-showcase-brand .name{
  margin-left:0!important;
}
.login-showcase h2,
.login-showcase p{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.login-showcase-qr{
  margin-left:auto!important;
  margin-right:auto!important;
}
.forgot-card{
  text-align:center!important;
}


/* V2.79 - Solicitações de recuperação em Usuários e Permissões */
.user-metrics{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
}
.user-metric-icon.recovery{
  color:#7b56c4!important;
  background:#f2ecff!important;
  border-color:#ded0fb!important;
}
.password-recovery-panel{
  background:#fff;
  border:1px solid #dfe6eb;
  border-radius:8px;
  box-shadow:var(--shadow);
  padding:20px;
  margin:18px 0;
}
.password-recovery-panel.compact{
  margin:0 0 18px;
}
.password-recovery-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.password-recovery-head h2{
  margin:0 0 6px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:22px;
  font-weight:600;
  color:#14212b;
}
.password-recovery-head p{
  margin:0;
  color:#6c7a84;
}
.password-recovery-table th,
.password-recovery-table td{
  vertical-align:middle;
}
.password-recovery-table .table-actions{
  justify-content:flex-end;
}
@media(max-width:760px){
  .password-recovery-head{flex-direction:column;align-items:flex-start}
}


/* V2.80 - Caixas de mensagem mais leves */
.system-dialog{
  width:min(360px,100%)!important;
  border-radius:18px!important;
  padding:26px 24px 22px!important;
}
.system-dialog-close{
  top:12px!important;
  right:12px!important;
  width:30px!important;
  height:30px!important;
}
.system-dialog-close svg{
  width:15px!important;
  height:15px!important;
}
.system-dialog-icon{
  width:52px!important;
  height:52px!important;
  margin:0 auto 14px!important;
  box-shadow:inset 0 0 0 3px rgba(226,138,19,.14)!important;
}
.system-dialog-icon.is-info{
  box-shadow:inset 0 0 0 3px rgba(28,166,184,.14)!important;
}
.system-dialog-icon svg{
  width:24px!important;
  height:24px!important;
}
.system-dialog-content h3{
  margin:0 22px 8px!important;
  font-size:20px!important;
  line-height:1.2!important;
  font-weight:750!important;
}
.system-dialog-content p{
  max-width:292px!important;
  font-size:14px!important;
  line-height:1.42!important;
}
.system-dialog-actions{
  gap:10px!important;
  margin-top:20px!important;
}
.system-dialog-actions .btn{
  min-width:104px!important;
  height:38px!important;
  font-size:14px!important;
  padding:0 16px!important;
}
@media(max-width:560px){
  .system-dialog{
    width:min(340px,100%)!important;
    padding:24px 18px 20px!important;
  }
  .system-dialog-content h3{
    font-size:19px!important;
  }
  .system-dialog-content p{
    font-size:13.5px!important;
  }
}


/* V2.81 - Cards de Usuários e Permissões mais compactos */
.user-metric{
  min-height:104px!important;
  gap:14px!important;
  padding:14px 16px!important;
}
.user-metric-icon{
  width:64px!important;
  height:64px!important;
  flex:0 0 64px!important;
  border-radius:18px!important;
}
.user-metric-icon .ico{
  width:32px!important;
  height:32px!important;
}
.user-metric strong{
  font-size:34px!important;
  line-height:1!important;
}
.user-metric > div > span{
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:700!important;
}
@media(max-width:600px){
  .user-metric{
    min-height:98px!important;
  }
  .user-metric-icon{
    width:58px!important;
    height:58px!important;
    flex-basis:58px!important;
  }
  .user-metric-icon .ico{
    width:28px!important;
    height:28px!important;
  }
  .user-metric strong{
    font-size:30px!important;
  }
  .user-metric > div > span{
    font-size:15px!important;
  }
}


/* V2.83 - Fundo branco nas telas de Login e Recuperar Senha */
.login-page-modern{
  background:#fff!important;
}


/* V2.84 - Ajustes no painel esquerdo do Login */
.login-showcase h2{
  margin-top:0!important;
}
.login-showcase-brand{
  display:none!important;
}


/* V2.85 - Avatar sempre centralizado no menu do usuário */
.user-menu .avatar,
.avatar{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
  line-height:1!important;
}
.user-menu .avatar{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  border-radius:50%!important;
}
.user-menu .avatar img,
.avatar img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:50%!important;
  margin:0!important;
}
.user-menu .avatar .avatar-fallback,
.avatar .avatar-fallback{
  width:100%!important;
  height:100%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:50%!important;
  margin:0!important;
  padding:0!important;
}
.user-menu .avatar .avatar-fallback .ico,
.avatar .avatar-fallback .ico{
  width:22px!important;
  height:22px!important;
  display:block!important;
  margin:0!important;
  flex:0 0 auto!important;
}
@media(max-width:680px){
  .user-menu .avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
  }
}


/* V2.86 - Avatar robusto e centralizado para todos os níveis */
.user-menu{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.user-menu-name{
  display:inline-block!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
.user-menu .avatar,
.avatar{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#f3f5f6!important;
  border:1px solid #d9e0e5!important;
  border-radius:50%!important;
}
.user-menu .avatar{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
}
.user-menu .avatar .avatar-image,
.avatar .avatar-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:50%!important;
  background:#fff!important;
}
.user-menu .avatar .avatar-fallback,
.avatar .avatar-fallback{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#aab5bc!important;
  background:#f5f7f8!important;
  border-radius:50%!important;
}
.user-menu .avatar .avatar-fallback .ico,
.avatar .avatar-fallback .ico{
  width:22px!important;
  height:22px!important;
}
@media(max-width:680px){
  .user-menu .avatar{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  .user-menu-name{max-width:120px!important;overflow:hidden!important;text-overflow:ellipsis!important}
}


/* V2.87 - Botões de QR Code desabilitados para Projetista */
.btn.disabled,
.btn[aria-disabled="true"],
button:disabled.btn{
  opacity:.45!important;
  cursor:not-allowed!important;
  filter:grayscale(.15)!important;
  pointer-events:none!important;
  box-shadow:none!important;
}
.qr-actions-inline .btn.disabled{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}


/* V2.90 - Sair no menu lateral */
.sidebar{
  display:flex!important;
  flex-direction:column!important;
}
.sidebar-logout-form{
  margin:18px 0 0;
  padding:0;
}
.sidebar-logout-form .sidebar-logout-btn{
  width:calc(100% - 14px);
  border:0;
  background:transparent;
  text-align:left;
  font-family:inherit;
}
.sidebar-logout-form .sidebar-logout-btn:hover{
  background:rgba(230,51,70,.12);
  color:#fff;
}
.sidebar-logout-form .sidebar-logout-btn .nav-icon{
  color:#ffb7bf;
}
.sidebar-footer{
  margin-top:auto;
  padding:18px 16px 20px;
  color:#d8dee3;
  font-size:14px;
  font-weight:600;
  text-align:center;
}


/* V2.91 - Padronização dos cards de indicadores em todas as páginas */
.dashboard-metric,
.qr-metric,
.stats-summary-metric,
.user-metric,
.api-row .metric{
  min-height:104px!important;
  gap:14px!important;
  padding:14px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}

.dashboard-metric-icon,
.qr-metric-icon,
.stats-summary-icon,
.user-metric-icon,
.api-row .metric .big-icon{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  flex:0 0 64px!important;
  border-radius:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.dashboard-metric-icon .ico,
.qr-metric-icon .ico,
.stats-summary-icon .ico,
.user-metric-icon .ico,
.api-row .metric .big-icon .ico{
  width:32px!important;
  height:32px!important;
}

.dashboard-metric > div,
.qr-metric > div,
.stats-summary-metric > div,
.user-metric > div,
.api-row .metric > div:last-child{
  text-align:left!important;
  min-width:0!important;
  flex:1 1 auto!important;
}

.dashboard-metric strong,
.qr-metric strong,
.stats-summary-metric strong,
.user-metric strong,
.api-row .metric strong{
  font-size:34px!important;
  line-height:1!important;
  font-weight:700!important;
}

.dashboard-metric > div > span,
.qr-metric > div > span,
.stats-summary-metric > div > span,
.user-metric > div > span{
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:700!important;
}

.dashboard-metric small,
.qr-metric small,
.stats-summary-metric small{
  font-size:12px!important;
  line-height:1.25!important;
}

.security-card h2,
.password-recovery-head h2,
.works-panel h2,
.section-head-row h2{
  font-size:20px!important;
}

.security-card h2 .ico,
.password-recovery-head h2 .ico,
.works-panel h2 .ico,
.section-head-row h2 .ico{
  width:22px!important;
  height:22px!important;
}

@media(max-width:600px){
  .dashboard-metric,
  .qr-metric,
  .stats-summary-metric,
  .user-metric,
  .api-row .metric{
    min-height:98px!important;
  }

  .dashboard-metric-icon,
  .qr-metric-icon,
  .stats-summary-icon,
  .user-metric-icon,
  .api-row .metric .big-icon{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    flex-basis:58px!important;
  }

  .dashboard-metric-icon .ico,
  .qr-metric-icon .ico,
  .stats-summary-icon .ico,
  .user-metric-icon .ico,
  .api-row .metric .big-icon .ico{
    width:28px!important;
    height:28px!important;
  }

  .dashboard-metric strong,
  .qr-metric strong,
  .stats-summary-metric strong,
  .user-metric strong,
  .api-row .metric strong{
    font-size:30px!important;
  }

  .dashboard-metric > div > span,
  .qr-metric > div > span,
  .stats-summary-metric > div > span,
  .user-metric > div > span{
    font-size:15px!important;
  }
}


/* V2.92 - Botão Salvar do QR Code no padrão do projeto */
.form-page .form-actions .btn.primary{
  border-radius:4px!important;
  height:40px!important;
  min-width:150px;
  font-size:16px!important;
  font-weight:600!important;
}


/* V2.93 - Busca de andaimes em Pasta de Projetos */
.project-section-head{
  gap:12px!important;
}
.project-section-head .project-search{
  width:280px;
  flex:0 0 280px;
  margin-left:auto;
}
.project-section-head .project-search input{
  font-size:15px;
}
@media(max-width:900px){
  .project-section-head{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .project-section-head .project-search{
    width:100%!important;
    flex:0 0 auto!important;
    margin-left:0!important;
  }
  .project-section-head .view-toggle{
    justify-content:flex-start!important;
  }
}


/* V2.94 - Botão Salvar Arquivo no padrão do projeto */
.document-form .form-actions .btn.primary{
  border-radius:4px!important;
  height:40px!important;
  min-width:160px;
  font-size:16px!important;
  font-weight:600!important;
}


/* V2.95 - Botões de Pasta de Projetos na mesma altura da busca */
.project-section-head .view-toggle .btn{
  height:40px!important;
  min-height:40px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.project-section-head .project-search{
  height:40px!important;
}
.project-section-head .project-search input{
  height:40px!important;
}
.project-section-head .project-search span{
  height:40px!important;
}


/* V2.96 - Foto do avatar do toggle atualiza e não fica coberta pelo ícone padrão */
.user-menu .avatar .avatar-image,
.avatar .avatar-image{
  z-index:2!important;
}
.user-menu .avatar .avatar-fallback,
.avatar .avatar-fallback{
  z-index:1!important;
}
.user-menu .avatar .avatar-fallback[style*="display:none"],
.user-menu .avatar .avatar-fallback[style*="display: none"],
.avatar .avatar-fallback[style*="display:none"],
.avatar .avatar-fallback[style*="display: none"]{
  display:none!important;
}
.user-menu .avatar .avatar-image[style*="display:none"],
.user-menu .avatar .avatar-image[style*="display: none"],
.avatar .avatar-image[style*="display:none"],
.avatar .avatar-image[style*="display: none"]{
  display:none!important;
}


/* V3.08 - Botão Simular Leitura em QR Codes */
.qr-simulate-form{
  margin:0!important;
  padding:0!important;
  width:170px!important;
  min-width:170px!important;
  display:block!important;
}
.qr-simulate-form .qr-stack-btn{
  width:170px!important;
  min-width:170px!important;
}


/* V3.09 - Simular Leitura abre a visualização pública do QR */
.qr-actions-stack > a.qr-stack-btn,
.qr-actions-stack > span.qr-stack-btn{
  text-decoration:none!important;
}


/* V3.10 - Busca na página pública do QR Code */
.public-folder-head{
  align-items:center!important;
  gap:12px!important;
}
.public-folder-head .public-project-search{
  width:300px!important;
  flex:0 0 300px!important;
  margin-left:auto!important;
}
.public-folder-head .public-project-search input{
  height:40px!important;
}
@media(max-width:760px){
  .public-folder-head{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .public-folder-head .public-project-search{
    width:100%!important;
    flex:0 0 auto!important;
    margin-left:0!important;
  }
}


/* V3.11 - Documentos da página pública simplificados para celular */
.public .folder-document-line,
.public .work-docs .doc{
  grid-template-columns:34px minmax(0,1fr) 52px!important;
  align-items:center!important;
  gap:10px!important;
}
.public .public-doc-main{
  min-width:0!important;
  overflow:hidden!important;
}
.public .public-doc-main strong{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.25!important;
}
.public .folder-document-line .doc-actions,
.public .work-docs .doc .doc-actions{
  min-width:52px!important;
  justify-content:flex-end!important;
}
.public .doc-actions .doc-icon-btn,
.public .doc-actions .btn.doc-icon-btn{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  flex:0 0 42px!important;
}
.public .doc-actions .doc-icon-btn .ico{
  width:18px!important;
  height:18px!important;
}
@media(max-width:680px){
  .public .folder-documents-details{
    padding:8px!important;
  }
  .public .folder-document-line,
  .public .work-docs .doc{
    grid-template-columns:28px minmax(0,1fr) 42px!important;
    gap:8px!important;
    padding:8px!important;
  }
  .public .doc-icon{
    width:28px!important;
    min-width:28px!important;
  }
  .public .public-doc-main strong{
    font-size:13px!important;
  }
  .public .doc-actions .doc-icon-btn,
  .public .doc-actions .btn.doc-icon-btn{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    flex-basis:38px!important;
  }
}


/* V3.12 - Correção de sobreposição dos arquivos nas pastas de andaimes */
.folder-document-line,
.work-docs .doc{
  width:100%!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center!important;
}
.folder-document-line .doc-main,
.work-docs .doc .doc-main{
  min-width:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
.folder-document-line .doc-main strong,
.work-docs .doc .doc-main strong{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.25!important;
}
.folder-document-line .doc-main small,
.work-docs .doc .doc-main small{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  margin:0!important;
  line-height:1.25!important;
  color:#7a8790!important;
}
.folder-document-line .doc-actions,
.work-docs .doc .doc-actions{
  flex:0 0 auto!important;
  min-width:106px!important;
  justify-content:flex-end!important;
}
@media(max-width:760px){
  .folder-document-line,
  .work-docs .doc{
    grid-template-columns:30px minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:8px!important;
  }
  .folder-document-line .doc-main small,
  .work-docs .doc .doc-main small{
    font-size:11px!important;
  }
  .folder-document-line .doc-actions,
  .work-docs .doc .doc-actions{
    min-width:96px!important;
  }
}
html,body{height:100%;overflow:hidden}body{margin:0}.app{height:100vh;min-height:0;overflow:hidden}.sidebar{top:0;bottom:0;height:100vh;min-height:0}.main{height:100vh;min-height:0;overflow:hidden}.topbar{top:0;margin-top:0}.content{height:calc(100vh - 69px);overflow:auto;overscroll-behavior:contain}.page-title{display:flex;align-items:center;gap:10px;min-width:0}.page-title .ico{color:var(--teal);width:28px;height:28px}.page-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:860px){html,body{height:auto;overflow:auto}.app,.main{height:auto;overflow:visible}.content{height:auto;overflow:visible}.topbar{position:sticky;top:0}}
html,body{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}.app{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}.sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}.main{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:276px!important;width:auto!important;height:100dvh!important;min-height:0!important;margin-left:0!important;overflow:hidden!important}.topbar{position:relative!important;top:0!important;height:69px!important;margin:0!important;flex:0 0 69px!important}.content{height:calc(100dvh - 69px)!important;max-height:calc(100dvh - 69px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:16px!important}.qr-list{padding-bottom:0!important}@media(max-width:860px){html,body{height:auto!important;max-height:none!important;overflow:auto!important}.app{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;overflow:visible!important}.sidebar{position:relative!important;height:auto!important;max-height:none!important}.main{position:relative!important;left:auto!important;width:100%!important;height:auto!important;overflow:visible!important}.content{height:auto!important;max-height:none!important;overflow:visible!important}}

/* V3.13 - Topbar colado na margem superior */
html,
body{
  position:fixed!important;
  inset:0!important;
  border:0!important;
  border-radius:0!important;
}
.app,
.main,
.sidebar,
.topbar{
  border-radius:0!important;
}
.main{
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:276px!important;
}
.topbar{
  position:fixed!important;
  top:0!important;
  right:0!important;
  left:276px!important;
  width:auto!important;
  height:69px!important;
  margin:0!important;
  border-top:0!important;
  transform:none!important;
  z-index:20!important;
}
.content{
  position:absolute!important;
  top:69px!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
}
@media(max-width:860px){
  html,
  body{
    position:relative!important;
    inset:auto!important;
  }
  .topbar{
    position:sticky!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
  }
  .content{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
  }
}

/* V3.14 - Geolocalizacao de andaimes montados */
.geo-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.geo-work-filter{
  margin:0;
  display:inline-flex;
  align-items:center;
}
.geo-work-select{
  width:320px;
  max-width:100%;
  height:40px!important;
  font-size:15px!important;
  padding:0 12px!important;
}
.geo-map-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(170px,1fr));
  gap:16px;
  margin-bottom:16px;
}
.geo-map-metric{
  min-height:96px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  padding:16px;
  display:grid;
  grid-template-columns:46px 1fr;
  align-items:center;
  column-gap:12px;
}
.geo-map-metric span{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  color:var(--teal);
  background:#edf8fa;
  border:1px solid #cdeef3;
}
.geo-map-metric strong{
  display:block;
  font-size:32px;
  line-height:1;
}
.geo-map-metric small{
  grid-column:2;
  color:#74818b;
  font-weight:700;
}
.geo-map-shell{
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  min-height:520px;
  position:relative;
  overflow:hidden;
}
.geo-map-full{
  position:relative;
  min-height:calc(100dvh - 101px);
  margin:-22px -16px -16px;
  overflow:hidden;
}
.geo-map-shell-full{
  border:0;
  box-shadow:none;
  min-height:calc(100dvh - 69px);
  height:calc(100dvh - 69px);
}
.geo-map-canvas{
  width:100%;
  height:520px;
  min-height:520px;
  position:relative;
  background:#eef4f6;
}
.geo-map-canvas-full{
  height:calc(100dvh - 69px);
  min-height:calc(100dvh - 69px);
}
.geo-map-back{
  position:absolute;
  top:auto;
  bottom:14px;
  left:14px;
  z-index:25;
  box-shadow:0 8px 18px rgba(0,0,0,.16);
}
.geo-map-note-floating{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:25;
  border:1px solid var(--line);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}
.geo-summary-cards{
  grid-template-columns:repeat(5,minmax(180px,1fr));
  margin-bottom:16px;
}
@media(max-width:1400px){
  .geo-summary-cards{
    grid-template-columns:repeat(3,minmax(180px,1fr));
  }
}
@media(max-width:860px){
  .geo-summary-cards{
    grid-template-columns:1fr;
  }
}
.geo-map-empty{
  height:100%;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  color:#6e7c85;
  text-align:center;
}
.geo-map-empty strong{
  color:#1e2a32;
  font-size:20px;
}
.geo-map-shell-full .geo-map-empty{
  display:none!important;
}
.geo-map-note{
  border-top:1px solid var(--line);
  background:#f8fafb;
  color:#53616b;
  padding:11px 14px;
}
.geo-fallback-grid{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(28,166,184,.12) 1px, transparent 1px),
    linear-gradient(rgba(28,166,184,.12) 1px, transparent 1px),
    linear-gradient(135deg,#f8fbfc,#e9f2f5);
  background-size:54px 54px,54px 54px,100% 100%;
}
.geo-fallback-marker{
  position:absolute;
  transform:translate(-50%,-100%);
  text-decoration:none;
  z-index:2;
}
.geo-map-label{
  position:absolute;
  transform:translate(-50%,-100%);
  display:grid;
  gap:2px;
  width:max-content;
  max-width:min(220px, 62vw);
  padding:5px 7px;
  background:#fff;
  color:#000;
  border:1px solid #000;
  border-radius:3px;
  box-shadow:0 4px 9px rgba(0,0,0,.18);
  text-decoration:none;
  line-height:1.2;
  z-index:10;
}
.geo-map-label:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-4px;
  width:7px;
  height:7px;
  background:#fff;
  border-right:1px solid #000;
  border-bottom:1px solid #000;
  transform:translateX(-50%) rotate(45deg);
}
.geo-map-label strong{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:800;
  color:#000;
}
.geo-map-label small{
  display:none;
  color:#000;
  font-size:9px;
  white-space:nowrap;
}
.geo-map-label.is-hidden{
  display:none;
}
.geo-map-label:hover,
.geo-map-label:focus-visible{
  max-width:min(280px, 72vw);
}
.geo-map-label:hover small,
.geo-map-label:focus-visible small{
  display:block;
}
.geo-map-label.is-work-label small,
.geo-map-label.is-work-label:hover small,
.geo-map-label.is-work-label:focus-visible small{
  display:none!important;
}
.geo-location-btn{
  min-width:156px;
}
.geo-location-btn:disabled{
  cursor:not-allowed;
  opacity:.56;
}
@media(max-width:640px){
  .geo-map-label{
    max-width:44vw;
    padding:4px 6px;
  }
  .geo-map-label strong{
    font-size:11px;
  }
  .geo-map-label small{
    font-size:9px;
  }
}
.geo-map-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.geo-map-list-item{
  border:1px solid var(--line);
  background:#fff;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.geo-map-list-item strong,
.geo-map-list-item span,
.geo-map-list-item small{
  display:block;
}
.geo-map-list-item small{
  color:#74818b;
  margin-top:4px;
}
.geo-scaffold-panel{
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  padding:16px;
}
.geo-scaffold-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:14px;
}
.geo-scaffold-head strong{
  display:block;
  font-size:18px;
}
.geo-scaffold-head span{
  display:block;
  color:#74818b;
  margin-top:3px;
}
.geo-scaffold-table small{
  color:#74818b;
}
@media(max-width:1200px){
  .geo-map-metrics{
    grid-template-columns:repeat(2,minmax(170px,1fr));
  }
}
@media(max-width:760px){
  .geo-map-metrics{
    grid-template-columns:1fr;
  }
  .geo-map-list-item,
  .geo-scaffold-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .geo-scaffold-head .search{
    width:100%;
  }
}

/* V3.15 - Responsividade para tablet e celular */
.mobile-menu-toggle,
.mobile-sidebar-backdrop{
  display:none;
}
img,
svg,
video,
canvas{
  max-width:100%;
}
@media(max-width:1024px){
  html,
  body{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:auto!important;
    -webkit-text-size-adjust:100%;
  }
  body{
    background:#f7f9fb!important;
  }
  html.mobile-menu-open,
  html.mobile-menu-open body{
    overflow:hidden!important;
  }
  .app{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:100dvh!important;
    overflow:visible!important;
    background:#f7f9fb!important;
  }
  .main{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:100dvh!important;
    height:auto!important;
    margin-left:0!important;
    overflow:visible!important;
    background:#f7f9fb!important;
  }
  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(286px,86vw)!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    transform:translateX(-105%)!important;
    transition:transform .22s ease!important;
    z-index:1000!important;
    box-shadow:16px 0 36px rgba(0,0,0,.24)!important;
    -webkit-overflow-scrolling:touch;
  }
  .app.nav-open .sidebar{
    transform:translateX(0)!important;
  }
  .mobile-sidebar-backdrop{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
    background:rgba(17,31,40,.44)!important;
    z-index:990!important;
    cursor:pointer!important;
  }
  .app.nav-open .mobile-sidebar-backdrop{
    display:block!important;
  }
  .brand{
    height:74px!important;
    padding:0 16px!important;
  }
  .brand .qr{
    font-size:25px!important;
  }
  .brand .name{
    font-size:24px!important;
  }
  .side-title{
    margin:18px 16px 10px!important;
    font-size:20px!important;
  }
  .nav-item{
    height:46px!important;
    margin-right:10px!important;
    font-size:16px!important;
  }
  .sidebar-footer{
    position:relative!important;
    bottom:auto!important;
    left:auto!important;
    padding:18px 16px!important;
  }
  .topbar{
    position:sticky!important;
    top:0!important;
    right:auto!important;
    left:auto!important;
    width:100%!important;
    min-width:0!important;
    height:62px!important;
    flex:0 0 62px!important;
    padding:0 12px!important;
    gap:10px!important;
    z-index:500!important;
  }
  .mobile-menu-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    border:1px solid #d6e3e8!important;
    border-radius:8px!important;
    color:var(--teal)!important;
    background:#fff!important;
    cursor:pointer!important;
  }
  .page-title{
    min-width:0!important;
    flex:1 1 auto!important;
    font-size:22px!important;
    line-height:1.1!important;
  }
  .page-title .ico{
    width:24px!important;
    height:24px!important;
  }
  .user-menu{
    flex:0 0 auto!important;
    max-width:44vw!important;
    font-size:14px!important;
    gap:6px!important;
    padding:5px!important;
  }
  .account-panel{
    position:fixed!important;
    top:62px!important;
    right:10px!important;
    width:min(320px,calc(100vw - 20px))!important;
    max-height:calc(100dvh - 74px)!important;
    overflow:auto!important;
  }
  .content{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:16px!important;
  }
  .toolbar,
  .geo-toolbar{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:10px!important;
  }
  .toolbar-left,
  .split-buttons,
  .form-actions-row,
  .table-actions{
    width:100%!important;
    gap:8px!important;
    flex-wrap:wrap!important;
  }
  .toolbar .btn,
  .toolbar-left .btn,
  .split-buttons .btn,
  .form-actions-row .btn,
  .table-actions .btn,
  .table-actions > form,
  .table-actions .inline-form{
    flex:1 1 auto!important;
    min-width:150px!important;
  }
  .split-buttons .btn,
  .split-buttons .btn:first-child,
  .split-buttons .btn:last-child{
    border-radius:4px!important;
    margin-left:0!important;
  }
  .search,
  .geo-work-select,
  .input-action-group,
  .geo-scaffold-head .search{
    width:100%!important;
    max-width:100%!important;
  }
  .input,
  .textarea,
  .select,
  .btn,
  button,
  select,
  input{
    min-height:44px;
  }
  .form-page{
    max-width:100%!important;
    padding:0!important;
  }
  .form-row{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .form-icon{
    display:none!important;
  }
  .line-controls,
  .form-two-cols,
  .form-four-cols,
  .welcome-credentials,
  .password-create-row,
  .user-form-grid,
  .assignment-row,
  .linked-user-row,
  .client-contact-phone-grid,
  .client-address-number-grid,
  .client-city-uf-grid,
  .scaffold-dimensions-grid,
  .qr-customizer-page .qr-preview-card-row,
  .geo-scaffold-head,
  .folder-title{
    grid-template-columns:1fr!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .dash-grid,
  .dashboard-metrics,
  .user-metrics,
  .qr-metrics,
  .stats-summary-metrics,
  .geo-map-metrics,
  .security-grid,
  .work-grid,
  .folder-list,
  .geo-summary-cards,
  .folder-detail-grid{
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
  }
  .hero{
    grid-template-columns:1fr!important;
    gap:16px!important;
  }
  .hero-text{
    font-size:32px!important;
  }
  .hero-text .blue-line{
    font-size:36px!important;
  }
  .phone-art{
    height:300px!important;
  }
  .qr-card{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:14px!important;
  }
  .qr-thumb{
    justify-self:center!important;
  }
  .qr-info{
    padding:0!important;
  }
  .qr-name{
    font-size:23px!important;
    margin-bottom:12px!important;
  }
  .scans{
    border-left:0!important;
    border-top:1px solid #eef2f4!important;
    padding:12px 0 0!important;
  }
  .actions,
  .qr-actions,
  .qr-actions-inline,
  .qr-actions-stack{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
  }
  .action-row{
    gap:8px!important;
  }
  .action-row .btn{
    border-radius:4px!important;
  }
  .doc,
  .work-docs .doc,
  .geo-map-list-item{
    grid-template-columns:1fr!important;
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  .public{
    padding:14px!important;
  }
  .public-head,
  .folder-title,
  .welcome-workflow-head{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  .public-body{
    padding:16px!important;
  }
  .login-page{
    padding:16px!important;
    min-height:100dvh!important;
  }
  .login-card{
    width:min(430px,100%)!important;
    padding:22px!important;
  }
  .table-responsive{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .table-responsive table,
  table.users-table,
  .panel table,
  .security-card table,
  .folder-table{
    min-width:760px!important;
  }
  .panel,
  .security-card,
  .user-edit-card,
  .work-card,
  .folder,
  .geo-scaffold-panel{
    max-width:100%!important;
  }
  .geo-map-full{
    margin:-16px -16px 0!important;
    min-height:calc(100dvh - 62px)!important;
  }
  .geo-map-shell-full,
  .geo-map-canvas-full{
    height:calc(100dvh - 62px)!important;
    min-height:calc(100dvh - 62px)!important;
  }
  .geo-map-shell{
    min-height:460px!important;
  }
  .geo-map-canvas{
    height:460px!important;
    min-height:460px!important;
  }
  .geo-map-back,
  .geo-map-note-floating{
    left:10px!important;
    right:auto!important;
    bottom:10px!important;
  }
  .geo-map-note-floating{
    max-width:calc(100vw - 20px)!important;
    bottom:64px!important;
  }
  .modal-backdrop{
    padding:14px!important;
  }
  .modal,
  .system-dialog{
    width:min(420px,100%)!important;
    max-width:100%!important;
  }
}
@media(max-width:640px){
  .topbar{
    height:58px!important;
    flex:0 0 58px!important;
    padding:0 10px!important;
    gap:8px!important;
  }
  .mobile-menu-toggle{
    width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
  }
  .page-title{
    font-size:19px!important;
  }
  .page-title .ico{
    display:none!important;
  }
  .user-menu{
    max-width:none!important;
  }
  .user-menu-name,
  .user-menu .role-badge,
  .user-menu-toggle-icon{
    display:none!important;
  }
  .avatar{
    width:34px!important;
    height:34px!important;
  }
  .account-panel{
    top:58px!important;
  }
  .content{
    padding:12px!important;
  }
  .dash-grid,
  .dashboard-metrics,
  .user-metrics,
  .qr-metrics,
  .stats-summary-metrics,
  .geo-map-metrics,
  .security-grid,
  .work-grid,
  .folder-list,
  .geo-summary-cards,
  .folder-detail-grid{
    grid-template-columns:1fr!important;
  }
  .metric,
  .dashboard-metric,
  .user-metric,
  .qr-metric,
  .stats-summary-metric,
  .geo-map-metric{
    min-height:92px!important;
  }
  .toolbar .btn,
  .toolbar-left .btn,
  .split-buttons .btn,
  .form-actions-row .btn,
  .table-actions .btn,
  .table-actions > form,
  .table-actions .inline-form,
  .btn.big{
    width:100%!important;
    min-width:0!important;
  }
  .input,
  .textarea,
  .select{
    font-size:16px!important;
  }
  .seg{
    height:auto!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .seg button,
  .seg button:first-child,
  .seg button:last-child{
    flex:1 1 130px!important;
    min-height:44px!important;
    border-radius:4px!important;
    margin-left:0!important;
  }
  .hero-text{
    font-size:25px!important;
  }
  .hero-text .blue-line{
    font-size:28px!important;
  }
  .hero-text .cta{
    font-size:18px!important;
    margin-top:22px!important;
  }
  .phone-art{
    height:220px!important;
  }
  .qr-thumb,
  .qr-thumb img{
    width:140px!important;
    height:140px!important;
  }
  .qr-name{
    font-size:21px!important;
  }
  .public{
    padding:10px!important;
  }
  .public-body{
    padding:12px!important;
  }
  .geo-map-full{
    margin:-12px -12px 0!important;
    min-height:calc(100dvh - 58px)!important;
  }
  .geo-map-shell-full,
  .geo-map-canvas-full{
    height:calc(100dvh - 58px)!important;
    min-height:calc(100dvh - 58px)!important;
  }
  .geo-map-shell{
    min-height:390px!important;
  }
  .geo-map-canvas{
    height:390px!important;
    min-height:390px!important;
  }
  .geo-map-label{
    max-width:48vw!important;
  }
  .table-responsive table,
  table.users-table,
  .panel table,
  .security-card table,
  .folder-table{
    min-width:680px!important;
  }
}
@media(max-width:420px){
  .brand .name{
    font-size:22px!important;
  }
  .page-title{
    font-size:17px!important;
  }
  .geo-map-label strong{
    font-size:10px!important;
  }
  .table-responsive table,
  table.users-table,
  .panel table,
  .security-card table,
  .folder-table{
    min-width:620px!important;
  }
}

/* ATUALIZACAO_V3_16_BOTOES_RESPONSIVOS_COMPACTOS
   Ajuste final para evitar botões enormes em tablet e celular.
   Mantém os botões com tamanho proporcional ao conteúdo, quebrando linha quando necessário. */
@media(max-width:1024px){
  .btn,
  a.btn,
  button.btn,
  input[type="submit"].btn,
  input[type="button"].btn{
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 12px!important;
    font-size:14px!important;
    line-height:1.15!important;
    flex:0 1 auto!important;
    white-space:normal!important;
    text-align:center!important;
  }

  .btn.big{
    width:auto!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 16px!important;
    font-size:15px!important;
  }

  .btn.tiny,
  .btn.doc-icon-btn,
  .btn.project-icon-btn,
  .qr-action-icon,
  .folder-action-btn{
    height:34px!important;
    min-height:34px!important;
    padding:0 9px!important;
    font-size:13px!important;
  }

  .btn.doc-icon-btn,
  .btn.project-icon-btn,
  .qr-action-icon{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    padding:0!important;
    flex:0 0 34px!important;
  }

  .btn .ico,
  button.btn .ico,
  a.btn .ico{
    width:16px!important;
    height:16px!important;
  }

  .toolbar,
  .geo-toolbar,
  .folder-title,
  .public-head,
  .welcome-workflow-head{
    gap:8px!important;
  }

  .toolbar-left,
  .split-buttons,
  .form-actions,
  .form-actions-row,
  .table-actions,
  .actions,
  .qr-actions,
  .qr-actions-inline,
  .qr-actions-stack,
  .doc-actions,
  .folder-card-actions,
  .system-dialog-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:auto!important;
    max-width:100%!important;
  }

  .toolbar .btn,
  .toolbar-left .btn,
  .split-buttons .btn,
  .form-actions .btn,
  .form-actions-row .btn,
  .table-actions .btn,
  .doc-actions .btn,
  .folder-card-actions .btn,
  .system-dialog-actions .btn,
  .geo-toolbar .btn{
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    flex:0 1 auto!important;
  }

  .table-actions > form,
  .table-actions .inline-form,
  .actions form,
  .doc-actions form,
  .folder-card-actions form,
  .system-dialog-actions form{
    width:auto!important;
    max-width:100%!important;
    flex:0 1 auto!important;
    display:inline-flex!important;
  }

  .split-buttons .btn,
  .split-buttons .btn:first-child,
  .split-buttons .btn:last-child{
    border-radius:4px!important;
    margin-left:0!important;
    min-width:0!important;
  }

  .action-row{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }

  .action-row .btn{
    border-radius:4px!important;
    width:auto!important;
    min-width:0!important;
    flex:0 1 auto!important;
  }

  .input-action-group,
  .cep{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:stretch!important;
    gap:8px!important;
  }

  .input-action-group .btn,
  .cep .btn{
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
  }

  .seg{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    height:auto!important;
  }

  .seg button,
  .seg button:first-child,
  .seg button:last-child{
    width:auto!important;
    min-width:0!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 12px!important;
    font-size:14px!important;
    border-radius:4px!important;
    margin-left:0!important;
    flex:0 1 auto!important;
  }

  .next-btn{
    width:auto!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 16px!important;
    font-size:15px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

@media(max-width:640px){
  .btn,
  a.btn,
  button.btn,
  input[type="submit"].btn,
  input[type="button"].btn{
    height:36px!important;
    min-height:36px!important;
    padding:0 10px!important;
    font-size:13px!important;
    gap:5px!important;
    flex:0 1 auto!important;
  }

  .btn.big{
    height:40px!important;
    min-height:40px!important;
    padding:0 12px!important;
    font-size:14px!important;
  }

  .btn.tiny,
  .folder-action-btn{
    height:32px!important;
    min-height:32px!important;
    padding:0 8px!important;
    font-size:12px!important;
  }

  .btn.doc-icon-btn,
  .btn.project-icon-btn,
  .qr-action-icon{
    width:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0!important;
    flex:0 0 32px!important;
  }

  .btn .ico,
  button.btn .ico,
  a.btn .ico{
    width:15px!important;
    height:15px!important;
  }

  .toolbar,
  .geo-toolbar{
    align-items:flex-start!important;
  }

  .toolbar .btn,
  .toolbar-left .btn,
  .split-buttons .btn,
  .form-actions .btn,
  .form-actions-row .btn,
  .table-actions .btn,
  .geo-toolbar .btn,
  .system-dialog-actions .btn,
  .doc-actions .btn,
  .folder-card-actions .btn,
  .input-action-group .btn,
  .cep .btn{
    width:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 24px)!important;
    flex:0 1 auto!important;
  }

  .form-actions,
  .form-actions-row{
    margin-left:0!important;
    margin-top:20px!important;
  }

  .table-actions,
  .actions,
  .qr-actions,
  .qr-actions-inline,
  .qr-actions-stack,
  .doc-actions,
  .folder-card-actions,
  .system-dialog-actions{
    gap:6px!important;
  }

  .action-row{
    gap:6px!important;
  }

  .action-row .btn{
    height:34px!important;
    min-height:34px!important;
    padding:0 8px!important;
    font-size:12px!important;
  }

  .input-action-group,
  .cep{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:6px!important;
  }

  .seg button,
  .seg button:first-child,
  .seg button:last-child{
    height:36px!important;
    min-height:36px!important;
    padding:0 10px!important;
    font-size:13px!important;
    flex:0 1 auto!important;
  }

  .next-btn{
    width:auto!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 14px!important;
    font-size:14px!important;
  }

  button:not(.btn):not(.mobile-menu-toggle):not(.login-password-toggle):not(.copy){
    min-height:36px!important;
  }
}

@media(max-width:420px){
  .btn,
  a.btn,
  button.btn,
  input[type="submit"].btn,
  input[type="button"].btn{
    height:34px!important;
    min-height:34px!important;
    padding:0 8px!important;
    font-size:12px!important;
  }

  .btn.big{
    height:38px!important;
    min-height:38px!important;
    font-size:13px!important;
  }

  .toolbar-left,
  .split-buttons,
  .form-actions,
  .form-actions-row,
  .table-actions,
  .actions,
  .doc-actions,
  .folder-card-actions{
    gap:6px!important;
  }

  .input-action-group,
  .cep{
    grid-template-columns:1fr!important;
  }

  .input-action-group .btn,
  .cep .btn{
    justify-self:start!important;
  }
}

/* V3.18 - correção do campo CNPJ no cadastro de cliente
   Evita que a máscara 00.000.000/0000-00 fique cortada quando o botão Buscar estiver ao lado. */
.client-cnpj-row{
  grid-template-columns:minmax(0,1.25fr) minmax(130px,.55fr)!important;
}
.client-cnpj-row > div{
  min-width:0!important;
}
.client-cnpj-input-group{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
}
.client-cnpj-input-group .client-cnpj-input{
  flex:1 1 260px!important;
  min-width:260px!important;
  max-width:100%!important;
  width:auto!important;
  font-size:16px!important;
  letter-spacing:.01em!important;
  padding-left:12px!important;
  padding-right:12px!important;
  text-overflow:clip!important;
}
.client-cnpj-input-group .btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:92px!important;
  max-width:100%!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
@media(max-width:1000px){
  .client-cnpj-row{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:520px){
  .client-cnpj-input-group .client-cnpj-input{
    flex-basis:100%!important;
    min-width:0!important;
    width:100%!important;
    font-size:15px!important;
  }
  .client-cnpj-input-group .btn{
    width:auto!important;
    min-width:88px!important;
  }
}
@media(max-width:360px){
  .client-cnpj-input-group .client-cnpj-input{
    font-size:14px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
}


/* ATUALIZACAO_V3_22_MAPA_MOBILE_ALTURA_TOTAL
   Corrige o Mapa de Andaimes em celular/tablet para ocupar toda a altura disponível,
   evitando que o Google Maps/fallback fique aparecendo apenas pela metade. */
:root{
  --scaffold-map-mobile-height:calc(100dvh - 58px);
}
@media(max-width:1024px){
  .content:has(.geo-map-full){
    padding:0!important;
    overflow:hidden!important;
  }
  .geo-map-full{
    margin:0!important;
    width:100%!important;
    height:var(--scaffold-map-mobile-height)!important;
    min-height:var(--scaffold-map-mobile-height)!important;
    max-height:var(--scaffold-map-mobile-height)!important;
    overflow:hidden!important;
  }
  .geo-map-shell.geo-map-shell-full,
  .geo-map-canvas.geo-map-canvas-full,
  #scaffoldMap.geo-map-canvas-full{
    width:100%!important;
    height:var(--scaffold-map-mobile-height)!important;
    min-height:var(--scaffold-map-mobile-height)!important;
    max-height:var(--scaffold-map-mobile-height)!important;
  }
  .geo-map-shell.geo-map-shell-full{
    position:relative!important;
  }
  .geo-map-canvas.geo-map-canvas-full,
  #scaffoldMap.geo-map-canvas-full{
    display:block!important;
  }
}
@media(max-width:640px){
  :root{
    --scaffold-map-mobile-height:calc(100dvh - 58px);
  }
}

/* V3.25 - Exportação de andaimes selecionados para Excel */
.geo-export-btn{
  /* Mantém o mesmo padrão visual do botão "Mapa de Andaimes" (.btn.primary). */
}
.geo-export-btn .ico,
.geo-export-btn .ico svg{
  color:#fff!important;
  stroke:#fff!important;
}
.geo-scaffold-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.geo-export-col{
  width:46px;
  text-align:center;
  vertical-align:middle;
}
.geo-export-col input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:17px;
  height:17px;
  margin:0;
  border:1.5px solid var(--teal);
  border-radius:3px;
  background:#fff;
  color:#fff;
  cursor:pointer;
  display:inline-grid;
  place-content:center;
  vertical-align:middle;
}
.geo-export-col input[type="checkbox"]:checked{
  background:var(--teal);
  border-color:var(--teal);
}
.geo-export-col input[type="checkbox"]:checked::after{
  content:"";
  width:5px;
  height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
  margin-top:-1px;
}
.geo-export-col input[type="checkbox"]:indeterminate{
  background:var(--teal);
  border-color:var(--teal);
}
.geo-export-col input[type="checkbox"]:indeterminate::after{
  content:"";
  width:9px;
  height:2px;
  background:#fff;
  border-radius:2px;
}
.geo-export-col input[type="checkbox"]:disabled{
  cursor:not-allowed;
  opacity:.5;
}
@media(max-width:760px){
  .geo-scaffold-actions{
    width:100%;
    justify-content:stretch;
    align-items:stretch;
  }
  .geo-scaffold-actions .btn,
  .geo-scaffold-actions .search{
    width:100%!important;
  }
}


/* V3.42 - Ajuste responsivo de checkboxes e botões de modais */
@media (max-width: 1024px){
  .geo-table input[type="checkbox"],
  .table input[type="checkbox"],
  table input[type="checkbox"],
  .scaffold-select,
  .scaffold-select-all,
  input[type="checkbox"].scaffold-select,
  input[type="checkbox"].scaffold-select-all{
    width:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    padding:0!important;
    margin:0 auto!important;
    flex:0 0 22px!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  .geo-table th:first-child,
  .geo-table td:first-child,
  table th:first-child:has(input[type="checkbox"]),
  table td:first-child:has(input[type="checkbox"]){
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    text-align:center!important;
    vertical-align:middle!important;
  }

  .modal-actions,
  .dialog-actions,
  .swal2-actions,
  .custom-modal-actions,
  .confirm-actions,
  .message-actions,
  .modal-footer{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:12px!important;
    flex-wrap:wrap!important;
    width:100%!important;
    text-align:center!important;
  }

  .modal-actions .btn,
  .dialog-actions .btn,
  .custom-modal-actions .btn,
  .confirm-actions .btn,
  .message-actions .btn,
  .modal-footer .btn,
  .swal2-actions .swal2-confirm,
  .swal2-actions .swal2-cancel{
    margin-left:0!important;
    margin-right:0!important;
  }
}

@media (max-width: 640px){
  .modal-actions,
  .dialog-actions,
  .swal2-actions,
  .custom-modal-actions,
  .confirm-actions,
  .message-actions,
  .modal-footer{
    justify-content:center!important;
  }

  .modal-actions .btn,
  .dialog-actions .btn,
  .custom-modal-actions .btn,
  .confirm-actions .btn,
  .message-actions .btn,
  .modal-footer .btn,
  .swal2-actions .swal2-confirm,
  .swal2-actions .swal2-cancel{
    min-width:128px!important;
  }
}

