@import url('/static/fonts.css');
:root{--green:#164d3c;--green-dark:#123f32;--gold:#b29440;--yellow:#efcf65;--paper:#f7f8f4;--ink:#263b33;--muted:#7b857d;--line:#e4e9e1;--red:#ab483c;--soft:#edf3ec;--white:#fff;--radius:14px;font-family:'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #bf9f44;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:28px;letter-spacing:-1px;font-weight:600}h3{font-size:16px;font-weight:600}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--gold)}.button{border:1px solid transparent;border-radius:8px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:600;font-size:13px;white-space:nowrap;min-height:43px;transition:.16s}.primary{background:var(--green);color:white}.primary:hover{background:#236049;transform:translateY(-1px)}.secondary{background:white;border-color:var(--line);color:var(--ink)}.secondary:hover{background:var(--soft)}.small{padding:8px 12px;min-height:36px;font-size:12px}.wide{width:100%;justify-content:space-between}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--muted);border-radius:8px}.icon-button:hover{background:var(--soft);color:var(--green)}svg.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;gap:13px;align-items:center;font-weight:700;letter-spacing:1px;font-size:15px}.brand small{display:block;letter-spacing:3.8px;font-weight:500;font-size:10px;margin-top:3px}.store-logo{width:46px;height:46px;flex-shrink:0;border-radius:50%;background-image:url('/static/logo-reference.png');background-size:278.45px 74.22px;background-position:-22.1px -5.2px;background-repeat:no-repeat;background-color:white}.brand-colors{display:inline-flex;gap:4px}.brand-colors i{height:5px;width:20px;border-radius:5px;background:#4c763a}.brand-colors i:nth-child(2){background:#a84336}.brand-colors i:nth-child(3){background:#dfc24a}.login-screen{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.login-brand{background:var(--green);padding:48px 10%;color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:800px}.login-brand .brand small{letter-spacing:.5px;color:#bbd1c3;font-weight:400}.login-copy{z-index:1;margin-top:250px}.login-copy .eyebrow{color:#d8c583}.login-copy h1{font-family:Georgia,serif;font-size:clamp(44px,4.5vw,70px);font-weight:400;letter-spacing:-2px;line-height:1.07;margin:22px 0}.login-copy p{color:#c5d5cc;line-height:1.9;font-size:15px}.brand-footer{font-size:11px;color:#b9cec1;display:flex;gap:16px;align-items:center;margin-top:55px}.login-art{position:absolute;width:440px;height:260px;top:22%;left:16%;transform:rotate(-15deg)}.lens{position:absolute;width:184px;height:173px;border:2px solid #96b29a;border-radius:42% 43% 48% 47%;box-shadow:inset 0 0 0 14px #ffffff04;background:linear-gradient(140deg,#ffffff14,transparent)}.lens-two{left:228px}.bridge{position:absolute;width:46px;left:183px;top:35px;height:35px;border-top:2px solid #96b29a;border-radius:50%}.lens:after{content:'';position:absolute;top:12px;left:12px;width:30px;height:2px;background:#c2b478;transform:rotate(-30deg)}.spark{position:absolute;font-size:64px;color:#d5bc65;right:4px;top:-82px;font-weight:100}.login-panel{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:55px 40px;position:relative}.login-box{max-width:360px;width:100%}.login-box h2{font-size:35px;line-height:1.2;margin:18px 0}.login-box>.muted{line-height:1.7;margin-bottom:28px}.login-box form label{margin-bottom:18px}.google{width:100%;border-color:var(--line);background:white}.google b{font-size:19px;color:#416cbe}.divider{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:11px;margin:20px 0}.divider:before,.divider:after{content:'';height:1px;flex:1;background:var(--line)}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;color:#546459}label small{font-weight:400;color:var(--muted);display:inline}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #dfe5dc;background:white;border-radius:7px;color:var(--ink);outline:none;min-width:0}input::placeholder,textarea::placeholder{color:#a0a69f;font-weight:400}input:focus,select:focus,textarea:focus{border-color:#609076;box-shadow:0 0 0 3px #dceadc}textarea{resize:vertical;min-height:75px}.login-security{text-align:center;font-size:11px;color:#8a968c;line-height:1.8;margin-top:27px}.login-bottom{position:absolute;bottom:25px;font-size:9px;letter-spacing:2px;color:#9ca497}.notice{background:#f4f0df;border:1px solid #e9e1bf;padding:15px;border-radius:9px;line-height:1.7;font-size:12px;margin-top:20px}.notice p{margin:8px 0}.error{color:#a7352b;font-size:12px;line-height:1.6;margin:10px 0}.error:empty{display:none}.app-shell{display:flex;min-height:100dvh}.sidebar{width:242px;position:fixed;top:0;bottom:0;left:0;background:#fff;border-right:1px solid var(--line);padding:33px 23px 20px;display:flex;flex-direction:column;z-index:5}.sidebar>.brand{margin:0 6px 46px}.sidebar .brand small{color:var(--gold)}.nav-caption{font-size:9px;letter-spacing:1.5px;color:#9aab9e;margin:0 13px 17px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:13px;text-align:left;border-radius:8px;padding:14px 13px;color:#7c867d;font-size:13px;white-space:nowrap}.nav-item.active{background:#edf3e9;color:var(--green);font-weight:600}.nav-item:hover{background:#f4f6f0}.nav-item [data-icon]{height:20px}.nav-count{margin-left:auto;border-radius:4px;padding:2px 6px;font-size:10px;background:#dce7d7}.sidebar-bottom{margin-top:auto;padding-top:30px}.install-button{background:#f8f8f0;display:flex;gap:10px;width:100%;border:1px solid #eeeede;border-radius:10px;padding:14px 9px;text-align:left;align-items:center;color:var(--green);font-size:11px}.install-button small{font-size:10px;color:#93a08e;display:block;margin-top:4px}.install-button>span:last-child{margin-left:auto}.user-card{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-top:24px;font-size:11px}.user-card>div{flex:1;min-width:0}.user-card b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.avatar{height:36px;width:36px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;background:#f2eddc;color:#907936;border-radius:50%;flex-shrink:0}.main{margin-left:242px;flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:78px;background:#ffffff99;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:11px;color:#8a958b}.breadcrumb{display:flex;align-items:center;gap:14px}.breadcrumb b{font-weight:500;color:#4c6454}.topbar-right{display:flex;align-items:center;gap:7px;font-size:10px}.online-dot{width:6px;height:6px;border-radius:50%;background:#639c70}.top-date{border-left:1px solid var(--line);margin-left:16px;padding-left:20px}.content{padding:34px 42px 30px;max-width:1520px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading h1{font-size:29px;font-weight:550;letter-spacing:-1.3px;line-height:1.25;margin:8px 0 7px}.page-heading p{color:var(--muted);font-size:12px;line-height:1.7}.welcome-banner{background:#eaf0e5;border:1px solid #e0e7d9;padding:25px 29px;border-radius:12px;display:flex;align-items:center;gap:24px;position:relative;overflow:hidden;margin-bottom:24px}.welcome-banner .banner-icon{background:#f8faed;width:65px;height:65px;border-radius:50%;display:grid;place-items:center;color:#938234;flex-shrink:0}.banner-icon svg{width:37px;height:37px}.welcome-banner h2{font-size:21px;letter-spacing:-.5px;margin:5px 0 8px}.welcome-banner p{color:#809078;font-size:12px;line-height:1.6}.welcome-banner .eyebrow{font-size:8px;letter-spacing:1.8px}.banner-link{margin-left:auto;border:0;background:transparent;color:#4b654c;font-size:12px;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{border:1px solid var(--line);border-radius:11px;background:white;padding:21px 22px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#84917f;font-size:11px}.stat-icon{width:29px;height:29px;border-radius:7px;background:#f3f6ee;display:grid;place-items:center;color:#839773}.stat-icon svg{width:16px;height:16px}.stat strong{font-size:31px;font-weight:500;letter-spacing:-1px;display:block;margin:11px 0 8px}.stat small{font-size:10px;color:#94a18c}.stat small em{font-style:normal;color:#56856a}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(265px,1fr);gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.card-header{padding:22px 23px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-header h3{font-size:14px}.card-header p{font-size:10px;color:#99a18f;margin-top:7px}.text-button{border:0;background:none;color:#718464;padding:5px;font-size:10px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{background:#fbfcf8;color:#9ba493;font-size:9px;letter-spacing:.6px;font-weight:500;padding:13px 20px;border-top:1px solid #eff1e9;border-bottom:1px solid #eff1e9}td{padding:16px 20px;border-bottom:1px solid #f0f2ec;font-size:11px;color:#75816e}tbody tr:last-child td{border-bottom:0}.client-name{display:flex;align-items:center;gap:11px}.client-name .avatar{width:34px;height:34px;background:#edf1e7;color:#7b8767;font-size:10px}.client-name b{display:block;font-size:11px;font-weight:550;color:#354a38}.client-name small{display:block;font-size:10px;color:#9aa58e;margin-top:5px}.badge{display:inline-flex;border-radius:5px;padding:5px 8px;background:#edf4e9;color:#6d8961;font-size:9px;white-space:nowrap}.badge.gold{background:#fbf3d9;color:#a38a3a}.badge.gray{background:#f0f1ed;color:#93998e}.badge.red{background:#fceee9;color:#ac6756}.table-open{border:1px solid var(--line);border-radius:6px;background:white;color:#6f7b65;padding:6px 9px;font-size:10px;min-height:31px}.table-open:hover{background:var(--soft)}.card-bottom{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:#9ba78e}.empty{padding:38px 20px;text-align:center;color:#94a089}.empty svg{width:36px;height:36px;margin-bottom:13px;opacity:.55}.empty h3{font-size:14px;color:#697c5e;margin-bottom:8px}.empty p{font-size:12px;line-height:1.7;max-width:330px;margin:auto}.empty .button{margin-top:19px}.delivery{display:flex;gap:12px;padding:17px 22px;border-top:1px solid #f0f2eb;align-items:center}.delivery-day{border:1px solid #e4e9dc;border-radius:7px;width:40px;min-width:40px;height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#5c7551;font-size:15px}.delivery-day small{font-size:8px;text-transform:uppercase}.delivery strong{font-size:11px;font-weight:550;display:block}.delivery p{font-size:10px;color:#9ba58f;margin:5px 0 7px}.delivery>button{margin-left:auto}.quick-note{padding:20px;background:#fbfaf1;border:1px solid #ece8d1;border-radius:10px;margin-top:18px}.quick-note .eyebrow{font-size:8px}.quick-note p{font-size:11px;color:#999277;line-height:1.8;margin-top:9px}.toolbar{display:flex;gap:12px;margin-bottom:20px;align-items:center}.search-field{position:relative;flex:1;max-width:430px}.search-field svg{position:absolute;left:13px;top:13px;width:17px;height:17px;color:#96a38c}.search-field input{padding-left:40px;font-size:12px}.toolbar select{width:auto;max-width:220px;font-size:12px}.result-count{margin-left:auto;color:#8e9a83;font-size:11px}.main-footer{padding:16px 42px 22px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8b997e}.main-footer .brand-colors i{width:15px;height:3px}.client-dialog{width:min(850px,calc(100% - 32px));max-height:92dvh;border:0;border-radius:16px;padding:0;box-shadow:0 25px 100px #123f3238;color:var(--ink)}dialog::backdrop{background:#143a305c;backdrop-filter:blur(3px)}.dialog-heading{padding:25px 28px 21px;display:flex;justify-content:space-between;gap:20px;align-items:center}.dialog-heading .eyebrow{font-size:9px}.dialog-heading h2{margin-top:8px;font-size:25px}.tabs{display:flex;border-bottom:1px solid var(--line);padding:0 28px;gap:25px}.tabs button{padding:15px 0;border:0;border-bottom:2px solid transparent;background:transparent;color:#8d9984;font-size:12px}.tabs button.active{color:var(--green);border-color:var(--green);font-weight:600}.tabs button span{background:#eff2e9;font-size:9px;padding:2px 5px;margin-left:3px;border-radius:4px}.dialog-body{padding:26px 28px;max-height:calc(92dvh - 235px);overflow-y:auto}.section-heading{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-bottom:22px}.section-heading small{font-size:10px;color:#97a18e}.section-heading p{font-size:11px;margin-top:7px;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span-2{grid-column:span 2}.form-section{margin:28px 0 19px;padding-top:25px;border-top:1px solid var(--line)}.check-label{flex-direction:row;align-items:flex-start;gap:10px;font-size:11px;line-height:1.7}.check-label input{width:16px;margin-top:3px;accent-color:var(--green)}.check-label small{display:block;font-size:10px}.consent{align-items:center;margin:20px 0}.dialog-footer{padding:17px 28px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fcfcf8}.dialog-footer>div{display:flex;gap:10px;margin-left:auto}.danger-quiet{color:var(--red);background:transparent;font-size:11px;padding-left:0}.record-card{border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:18px;background:#fcfdf9}.record-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.record-heading h4{margin:0;font-size:13px}.record-card .form-grid{gap:14px}.eye-table{margin-top:18px;overflow:auto}.eye-table table{table-layout:fixed;min-width:580px}.eye-table th{padding:9px 6px;font-size:9px;background:#eff3e9}.eye-table td{padding:8px 5px}.eye-table th:first-child{width:70px}.eye-table input{padding:8px 5px;font-size:12px}.field-note{font-size:10px;color:#8f9a82;line-height:1.6;margin:12px 0}.record-card textarea{margin-top:3px}.record-card label{font-size:10px}.small-dialog{border:0;border-radius:16px;padding:34px;max-width:440px;width:calc(100% - 30px);color:var(--ink);line-height:1.8}.small-dialog h2{margin:15px 0;font-size:29px;line-height:1.3}.small-dialog>p{color:#869178;font-size:12px}.small-dialog ol{padding-left:20px;font-size:12px;color:#6b7f5e}.small-dialog li{padding:8px 0}.close-corner{position:absolute;top:12px;right:12px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:14px 24px;border-radius:9px;font-size:13px;box-shadow:0 10px 40px #123f3233;z-index:30;max-width:calc(100vw - 30px)}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:25px}.security-item{padding:23px;line-height:1.8}.security-item h3{margin-bottom:12px}.security-item p{font-size:12px;color:#8b987d;margin:8px 0}.security-item code{background:#f2f4eb;padding:3px 6px;border-radius:4px;font-size:11px;overflow-wrap:anywhere}.pill-row{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.pending-dot{color:#b1944b}.loading{padding:80px;text-align:center;color:var(--muted)}
@media(min-width:1500px){.content{padding-top:45px}.stats{gap:23px}.stat{padding:25px}.dashboard-grid{gap:26px}}
@media(max-width:1150px){.sidebar{width:205px;padding-left:15px;padding-right:15px}.main{margin-left:205px}.content{padding:28px}.topbar{padding:0 28px}.dashboard-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:16px}.top-date{display:none}.login-brand{padding:40px 8%}.login-art{left:0;transform:scale(.8) rotate(-15deg)}.main-footer{padding-left:28px;padding-right:28px}}
@media(max-width:760px){.login-screen{display:block}.login-brand{min-height:0;padding:25px 28px 30px}.login-brand .brand{font-size:12px}.login-art,.brand-footer{display:none}.login-copy{margin-top:30px}.login-copy .eyebrow,.login-copy p{display:none}.login-copy h1{font-size:35px;line-height:1.1;margin:0}.login-copy br{display:none}.login-panel{padding:35px 26px 70px}.login-box{max-width:420px}.login-box h2{font-size:27px}.login-box h2 br{display:none}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;padding:0 5px calc(5px + env(safe-area-inset-bottom));height:auto;flex-direction:row;justify-content:center;border-top:1px solid var(--line);border-right:0;z-index:10}.sidebar>.brand,.nav-caption,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;width:100%;gap:2px;justify-content:space-around}.nav-item{flex-direction:column;gap:5px;font-size:9px;padding:10px 6px 8px;border-radius:0;flex:1}.nav-count{display:none}.nav-item.active{background:white;color:var(--green);box-shadow:inset 0 2px var(--green)}.nav-item:last-child{white-space:normal;text-align:center}.main{margin-left:0}.topbar{height:62px;padding:0 20px}.topbar-right{gap:5px}.content{padding:25px 18px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:23px}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading p{font-size:11px}.page-heading .button{padding:10px 12px;font-size:11px;margin-top:15px;gap:6px}.welcome-banner{padding:19px;gap:14px}.welcome-banner .banner-icon{width:45px;height:45px}.banner-icon svg{width:28px;height:28px}.welcome-banner h2{font-size:17px}.welcome-banner p{font-size:10px}.banner-link{display:none}.stats{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.stat{padding:15px 17px}.stat strong{font-size:29px}.stat-top{font-size:10px}.stat small{font-size:9px}.dashboard-grid{gap:18px}.card-header{padding:20px 17px}th{padding:11px 15px}td{padding:14px 15px}.hide-mobile{display:none}.toolbar{flex-wrap:wrap}.search-field{max-width:none;flex-basis:100%}.toolbar select{flex:1}.result-count{font-size:10px}.main-footer{padding:15px 20px 100px;font-size:8px}.client-dialog{width:100%;max-height:100dvh;height:100dvh;border-radius:0;margin:0}.dialog-heading{padding:22px 20px 17px}.dialog-heading h2{font-size:22px}.tabs{padding:0 20px;gap:24px}.dialog-body{padding:22px 20px;max-height:calc(100dvh - 238px)}.form-grid{gap:16px;grid-template-columns:1fr}.span-2{grid-column:auto}.dialog-footer{padding:15px 17px calc(15px + env(safe-area-inset-bottom))}.dialog-footer .button{padding:10px 13px;font-size:11px}.danger-quiet{max-width:90px;white-space:normal;text-align:left}.section-heading{align-items:flex-start}.section-heading h3{font-size:14px}.section-heading .small{font-size:10px;padding:8px}.record-card{padding:16px}.security-grid{grid-template-columns:1fr}.mobile-actions{display:flex;gap:10px;margin-top:20px}.consent{grid-template-columns:1fr}.toast{bottom:90px}.user-mobile{display:flex;align-items:center;gap:10px}.topbar-right .icon-button{width:26px;height:26px}.table-scroll table{min-width:440px}}
@media(min-width:761px){.mobile-actions{display:none}.mobile-logout{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.client-dialog{overflow:hidden}
#client-form{display:flex;flex-direction:column;max-height:92dvh}
.client-dialog .dialog-heading,.client-dialog .tabs,.client-dialog .dialog-footer{flex-shrink:0}
.client-dialog .dialog-body{flex:1;min-height:0;max-height:none}
@media(max-width:760px){
  .page-heading{flex-wrap:wrap}
  .page-heading>div{flex:1 1 210px}
  .page-heading>.button{margin-top:0;flex-shrink:0}
  .client-dialog{max-width:100vw}
  #client-form{height:100dvh;max-height:100dvh}
  .client-table{min-width:0!important}
  .client-table th:nth-child(2),.client-table td:nth-child(2),.client-table th:nth-child(3),.client-table td:nth-child(3){display:none}
  .client-table .client-name b{white-space:normal;line-height:1.5}
  .client-table td:last-child{text-align:right}
  .eye-table table{display:block;min-width:0;width:100%}
  .eye-table thead{display:none}
  .eye-table tbody{display:block}
  .eye-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:15px}
  .eye-table td{display:block;padding:4px;border:0}
  .eye-table td:first-child{grid-column:span 2;background:#edf3e9;padding:10px;border-radius:5px}
  .eye-table td:not(:first-child):before{display:block;font-size:10px;color:#7a886e;margin-bottom:6px}
  .eye-table td:nth-child(2):before{content:'Esférico'}
  .eye-table td:nth-child(3):before{content:'Cilíndrico'}
  .eye-table td:nth-child(4):before{content:'Eixo (°)'}
  .eye-table td:nth-child(5):before{content:'Adição'}
  .eye-table td:nth-child(6):before{content:'DNP (mm)'}
  .eye-table td:nth-child(7):before{content:'Altura (mm)'}
  input,select,textarea{font-size:16px}
  .eye-table input{font-size:16px;padding:10px}
}
