.bat-shell{--bat-blue:#1687dc;--bat-amber:#f4a844;--bat-ink:#152334;--bat-grey:#576779;--bat-line:#dae2ea;--bat-bg:#f5f8fb;color:var(--bat-ink);font-family:inherit;max-width:1350px;margin:22px auto 60px;background:#fff;border:1px solid #e8edf3;border-radius:15px;overflow:hidden;box-shadow:0 5px 24px #12283c0e;font-size:14px;line-height:1.48}
.bat-shell *{box-sizing:border-box}.bat-shell p,.bat-shell h2,.bat-shell h3,.bat-shell h4,.bat-shell h5{margin-top:0}.bat-shell h3{font-size:21px;font-weight:750;margin:22px 0 15px}.bat-shell h4{font-size:17px;font-weight:700;margin:5px 0 14px}.bat-shell h5{font-size:15px}.bat-shell a{color:#086bb4;text-decoration:none}.bat-shell a:hover{text-decoration:underline}
.bat-head{display:flex;align-items:center;gap:24px;padding:16px 26px;background:linear-gradient(105deg,#020a12,#0d243a 68%,#163452);color:#fff}.bat-head img{width:192px;max-height:92px;object-fit:contain}.bat-head h2{font-size:24px;color:#fff;margin:0 0 4px}.bat-head p{margin:0;color:#bfcddc}.bat-shell>*:not(.bat-head){margin-left:25px;margin-right:25px}.bat-shell>.bat-alert{margin-top:20px}.bat-alert{border-left:4px solid #228ac1;background:#edf8ff;border-radius:6px;padding:12px 15px;margin:12px 0}.bat-error,.bat-js-error{border-color:#b63232!important;color:#b02d2d!important;background:#fff2f2!important}.bat-guest{padding:30px;border:1px solid #dae2ea;border-radius:8px}.bat-nav{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:18px;margin-bottom:23px;border-bottom:1px solid var(--bat-line)}.bat-nav a{padding:13px 19px;color:#445568;font-weight:650;border-bottom:3px solid transparent}.bat-nav a.active{color:#0f7bc1;border-color:#158dda}.bat-nav a:hover{text-decoration:none;background:#f0f6fc}
.bat-shell .bat-box,.bat-shell details.bat-new{border:1px solid var(--bat-line);border-radius:10px;background:#fff;padding:20px;margin-top:20px;margin-bottom:20px}.bat-shell .bat-new{background:#fcfdff;border-color:#bccfdf}.bat-new>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}.bat-new>summary::-webkit-details-marker{display:none}.bat-new>summary strong{font-size:18px}.bat-new>summary small{font-size:13px;color:var(--bat-grey)}.bat-plus{color:var(--bat-blue);font-size:24px;margin-right:5px}.bat-shell .bat-new[open]>summary{padding-bottom:15px;border-bottom:1px solid var(--bat-line);margin-bottom:18px}
.bat-shell form{margin:0}.bat-shell label{display:flex;flex-direction:column;gap:6px;color:#25384b;font-size:13px;font-weight:650;margin:0 0 13px}.bat-shell label span{color:#d94136}.bat-shell input:not([type=checkbox]):not([type=hidden]),.bat-shell textarea,.bat-shell select{border:1px solid #becbd7;border-radius:7px;padding:10px 12px;max-width:100%;width:100%;height:auto;min-height:40px;line-height:1.35;background:#fff;color:#172c3d;box-shadow:none;font-family:inherit;font-size:14px}.bat-shell input[readonly]{background:#f3f7fa!important;color:#4d5d6d}.bat-shell input:focus,.bat-shell textarea:focus,.bat-shell select:focus{border-color:#158cda;outline:2px solid #158cda33}.bat-shell textarea{min-height:82px;resize:vertical}.bat-shell small{font-weight:400;color:#657483}.bat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}.bat-inline{display:flex;gap:8px}.bat-inline>input{min-width:0;flex:1}.bat-inline>.bat-btn{white-space:nowrap}.bat-hint{font-size:13px;color:#627182;margin:9px 0 15px}.bat-shell label.bat-check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-weight:400;font-size:14px}.bat-check input{margin:4px 0 0;flex:none}.bat-item{background:#f7faff;border:1px solid #cddce9;border-radius:10px;padding:18px;margin:16px 0}.bat-itemtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.bat-itemtop strong{color:#17395a}.bat-tools{display:flex;flex-wrap:wrap;gap:8px;margin:3px 0 13px}.bat-btn{appearance:none;border:1px solid transparent!important;padding:9px 13px!important;border-radius:7px!important;line-height:1.35!important;font-weight:700!important;font-size:13px!important;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:37px;white-space:normal;text-align:center;text-decoration:none!important;box-shadow:none!important}.bat-primary{background:var(--bat-blue)!important;color:#fff!important}.bat-primary:hover{background:#076aab!important}.bat-secondary{color:#175b8f!important;background:#fff!important;border-color:#b8cce0!important}.bat-secondary:hover{background:#e7f3fb!important}.bat-btn:disabled{opacity:.54;cursor:not-allowed}.bat-shell .bat-textbtn{background:transparent!important;color:#236899!important;padding:5px!important;border:0!important;font-size:13px!important}.bat-shell .bat-remove{color:#c34239!important}.bat-results{margin:8px 0}.bat-hit{display:flex;justify-content:space-between;gap:15px;align-items:center;border:1px solid #d2e0ec;border-radius:7px;background:#fff;padding:11px 13px;margin:7px 0}.bat-hit small{display:block;margin-top:5px}.bat-all-manuals{border:1px dashed #c1d0dd;padding:11px;border-radius:8px}.bat-all-manuals summary{cursor:pointer;font-weight:650}.bat-all-manuals .bat-btn{margin:7px 7px 0 0}.bat-preview{margin:10px 0 15px}.bat-preview:not(:empty){border:1px solid #c9d9e7;border-radius:8px;padding:12px;background:#fff}.bat-preview-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-bottom:8px}.bat-preview iframe{width:100%;height:450px;border:1px solid #d1dde6;border-radius:6px;background:#eceff2}.bat-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(100px,1fr)) auto;gap:9px;align-items:center;margin:20px 0!important}.bat-filters input,.bat-filters select{margin:0!important}.bat-kpis{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.bat-kpis>div{border:1px solid var(--bat-line);border-radius:10px;background:#f7faff;min-width:175px;padding:13px 17px;display:flex;flex-direction:column;gap:3px}.bat-kpis strong{font-size:27px;color:#146dae}.bat-kpis span{color:var(--bat-grey);font-size:12px}.bat-kpis .bat-red strong{color:#bd392e}.bat-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px}.bat-section-heading h3{margin:0 0 13px}.bat-section-heading span{font-size:12px;color:#647789}
.bat-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--bat-line);border-radius:9px;margin:7px 0 20px}.bat-table{border-collapse:collapse;width:100%;min-width:690px;font-size:13px}.bat-table th{text-align:left;background:#eff5fa;border-bottom:1px solid var(--bat-line);color:#465b71;font-size:12px;padding:13px 10px;white-space:nowrap}.bat-table td{border-bottom:1px solid #ebf0f5;padding:12px 10px;vertical-align:middle}.bat-table tr:last-child td{border-bottom:0}.bat-table tr:hover td{background:#fafcff}.bat-status{display:inline-block;font-size:12px;font-weight:650;padding:5px 9px;border-radius:99px;background:#eff3f7;color:#526379;max-width:260px}.bat-s-recebida{background:#edf6ff;color:#0c66a9}.bat-s-fabrica{background:#fdf5e8;color:#96601c}.bat-s-aprovada{background:#e8f7ef;color:#27714d}.bat-s-recusada{background:#ffedec;color:#a83b34}.bat-s-transito{background:#f0ecfa;color:#684cab}.bat-s-empresa{background:#edf5f0;color:#286a47}.bat-s-concluida{background:#e5f3ed;color:#166d49}.bat-overdue{color:#bf332b;font-weight:bold}.bat-pagination{display:flex;gap:5px;justify-content:center;margin:15px 0 25px}.bat-pagination a{min-width:32px;padding:6px 8px;text-align:center;border:1px solid #d2dce4;border-radius:5px}.bat-pagination a.active{background:#0c7cca;color:#fff}.bat-empty{border:1px dashed #c3d3df;border-radius:9px;padding:25px;color:#536b7b;text-align:center}.bat-back{font-weight:650;display:inline-block;margin:16px 0 0}
.bat-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f4f8fc;border:1px solid var(--bat-line);padding:20px;border-radius:9px;margin-top:12px}.bat-detail-head h3{font-size:27px;margin:3px 0}.bat-detail-head p{margin:0;color:#536779}.bat-detail-head small{letter-spacing:1.5px}.bat-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bat-detail-grid .bat-box{margin-top:15px}.bat-box dl{display:grid;grid-template-columns:145px 1fr;gap:9px 13px;margin:0}.bat-box dt{color:#5f7182}.bat-box dd{margin:0;font-weight:550;overflow-wrap:anywhere}.bat-pre{white-space:pre-wrap;overflow-wrap:anywhere}.bat-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.bat-part{border:1px solid #dfe8f0;background:#f9fbfd;border-radius:8px;padding:15px}.bat-part h5{margin:0 0 9px}.bat-part p{margin:0 0 8px;overflow-wrap:anywhere}.bat-photo{margin-top:10px}.bat-photo img{width:auto;height:145px;max-width:100%;object-fit:contain;border-radius:5px;border:1px solid #d5e0e8;background:#fff}.bat-photo p{font-size:12px;margin-top:4px}.bat-management{border-color:#b9d8e9!important}.bat-send-panel{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--bat-line);padding-top:17px;margin-top:23px;flex-wrap:wrap}.bat-send-panel h4{margin:0}.bat-send-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;max-width:330px;flex:1;min-width:230px}.bat-send-actions form{margin:0!important}.bat-send-actions form button{width:100%}.bat-timeline{border-left:2px solid #c7ddec;margin-left:8px;padding-left:16px}.bat-timeline>div{position:relative;border-bottom:1px solid #e9eff4;padding:10px 0}.bat-timeline>div:before{content:'';position:absolute;left:-22px;top:15px;border-radius:50%;width:9px;height:9px;background:#1185cf}.bat-timeline time{font-size:12px;color:#687e91}.bat-timeline p{margin:4px 0;white-space:pre-wrap}.bat-shell code{white-space:normal;overflow-wrap:anywhere}.bat-shell>.bat-box:last-child,.bat-shell>.bat-table-wrap:last-child{margin-bottom:30px}
@media(max-width:980px){.bat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bat-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.bat-detail-grid{grid-template-columns:1fr}.bat-parts{grid-template-columns:1fr}}
@media(max-width:620px){.bat-shell{margin:10px auto;border-radius:8px;font-size:14px}.bat-shell>*:not(.bat-head){margin-left:12px;margin-right:12px}.bat-head{padding:14px;gap:12px}.bat-head img{width:105px;max-height:65px}.bat-head h2{font-size:18px}.bat-head p{font-size:12px}.bat-nav{overflow-x:auto;flex-wrap:nowrap}.bat-nav a{white-space:nowrap;padding:12px 10px}.bat-grid,.bat-filters,.bat-detail-grid{grid-template-columns:1fr}.bat-shell .bat-box,.bat-shell details.bat-new{padding:13px}.bat-new>summary{align-items:flex-start;flex-direction:column}.bat-preview iframe{height:335px}.bat-hit{flex-direction:column;align-items:stretch}.bat-inline{flex-wrap:wrap}.bat-inline .bat-btn{width:100%}.bat-send-panel{flex-direction:column}.bat-kpis>div{min-width:45%;flex:1}.bat-detail-head{align-items:flex-start;flex-direction:column}.bat-box dl{grid-template-columns:100px 1fr}.bat-tools .bat-btn{flex:1}}

.bat-edit-parts summary{cursor:pointer;color:#276e9d;font-size:15px}.bat-edit-parts[open] summary{margin-bottom:15px}

/* v1.1 — Área de clientes segmentada em início, nova solicitação e histórico */
.bat-client-nav{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px!important;margin-bottom:15px!important;border-bottom:1px solid var(--bat-line);padding-bottom:15px}
.bat-client-navlink{display:inline-flex;align-items:center;justify-content:center;font-weight:700;border:1px solid #c9d7e5;padding:10px 17px;border-radius:9px;background:#fff;color:#26445b!important;text-decoration:none!important;min-height:43px}
.bat-client-navlink.active,.bat-client-navlink:hover{color:#fff!important;background:#117fc5;border-color:#117fc5}
.bat-client-welcome{margin-top:29px!important;margin-bottom:22px!important}
.bat-client-welcome h3,.bat-client-section h3{margin:0 0 6px;font-size:23px}
.bat-client-welcome p,.bat-client-section p{margin:0;color:#687789}
.bat-client-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:36px!important}
.bat-client-card{display:flex;flex-direction:column;gap:12px;padding:28px;border:1px solid #cadce8;border-radius:16px;background:linear-gradient(150deg,#fff 30%,#f3f8fc);min-height:257px;color:#213950!important;text-decoration:none!important;box-shadow:0 6px 17px #1134520a;transition:transform .2s,border-color .2s,box-shadow .2s}
.bat-client-card:hover,.bat-client-card:focus-visible{border-color:#188acf;transform:translateY(-2px);box-shadow:0 9px 24px #11345220;text-decoration:none!important}
.bat-card-icon{display:flex;width:47px;height:47px;border-radius:12px;align-items:center;justify-content:center;background:#e0effc;color:#0a6cb2;font-size:31px;font-weight:500;line-height:1}
.bat-card-icon-list{font-size:29px}
.bat-client-card strong{font-size:21px;line-height:1.18}
.bat-client-card>span:not(.bat-card-icon){font-size:14px;color:#586e82;line-height:1.5}
.bat-client-card small{font-size:12px;color:#5e7385;font-weight:600}
.bat-client-card b{color:#0d77bd;font-size:14px;margin-top:auto}
.bat-client-section{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:25px!important;margin-bottom:18px!important}
.bat-shell .bat-client-section+details.bat-new{margin-top:13px}
.bat-ocr-options{border:1px solid #d4e5ed;background:#f7fbfe;border-radius:10px;padding:15px;margin:11px 0 17px}
.bat-ocr-options .bat-hint{margin:7px 0 11px}.bat-ocr-options>label:not(.bat-check){max-width:330px}
@media(max-width:720px){.bat-client-cards{grid-template-columns:1fr}.bat-client-card{min-height:210px;padding:20px}.bat-client-navlink{flex:1;padding:10px 8px;font-size:12px}.bat-client-section{align-items:flex-start}.bat-client-section .bat-btn{width:100%}}
