/* CI M003 — fidelity pass to the approved blue/yellow app + official-document reference.
 * Presentation only. One brand source, responsive composition, no business mutations.
 */
:root{--m3-navy:#041e4c;--m3-royal:#065ed1;--m3-cyan:#09c5f3;--m3-gold:#ffe134;--m3-ice:#e8f5ff;--m3-line:#bbd9f9}
body:has(#app>.shell.ci-modern){background:linear-gradient(155deg,#e4f3ff,#f3faff 55%,#daeafe)}
.shell.ci-modern{background:linear-gradient(165deg,#f5fcff 3%,#deefff 48%,#f2f9ff);color:#082c61}
.shell.ci-modern>.top{
 min-height:92px;position:sticky;isolation:isolate;
 background:
  radial-gradient(circle at 85% 7%,#058ff17f,transparent 43%),
  linear-gradient(115deg,#041539,#052966 58%,#0868bb)!important;
 border-bottom:2px solid #3be5ff9c;
 box-shadow:inset 0 1px 0 #9bdcff4b,0 12px 25px #05295764
}
.shell.ci-modern>.top::after{content:"";position:absolute;bottom:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#0561c1,#1bdcff 55%,#f4ce37);opacity:.75;pointer-events:none}
.shell.ci-modern>.top .brand-compact{
 display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;
}
.shell.ci-modern>.top .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{
 width:86px!important;height:74px!important;flex:none;object-fit:contain!important;
 background:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;filter:drop-shadow(0 3px 5px #000e338a);
}
.shell.ci-modern>.top .brand-compact b{
 display:block!important;color:#fff!important;font-size:17px!important;line-height:1.06;
 max-width:170px;text-shadow:0 2px 5px #00153e;font-weight:900;letter-spacing:-.35px;
}
.shell.ci-modern>.top .app-brand-wrap{min-width:0;overflow:visible}
.shell.ci-modern>.top .user{font-size:10px;color:#c9e8ff;white-space:normal}
.shell.ci-modern .ci-menu-button{flex:none;background:#1068a4a1;border:1px solid #95daff}
.shell.ci-modern .ci-pagehead{margin:12px 11px 10px;min-height:91px;padding:13px 16px;border-radius:20px}
.shell.ci-modern .ci-pagehead .ci-current{gap:10px;position:relative}
.shell.ci-modern .ci-pagehead .ci-current strong{position:relative;align-self:flex-start;margin-top:-10px}
.shell.ci-modern .ci-pagehead .ci-current .ci-icon{width:43px;height:43px}
.shell.ci-modern .ci-m3-herosub{position:absolute;left:56px;top:28px;color:#d5f4ff;font-size:12px;font-weight:600;white-space:nowrap}
.shell.ci-modern .ci-m3-aircon{position:absolute;width:125px;height:66px;right:-12px;bottom:-12px;filter:drop-shadow(0 6px 8px #01234a8c);pointer-events:none}
.shell.ci-modern .ci-m3-company{
 display:flex;align-items:center;gap:10px;
 margin:0 11px 11px;padding:11px 13px;
 background:linear-gradient(155deg,#fff,#e4f4ff 68%,#cfebff);
 border:1px solid #b7d9fa;border-radius:17px;
 box-shadow:0 7px 17px #114f982b,inset 0 2px 2px #fff;
 min-height:70px
}
.shell.ci-modern .ci-m3-companyglyph{
 display:grid;place-items:center;flex:none;
 width:43px;height:43px;border-radius:12px;color:#f0ffff;
 background:linear-gradient(150deg,#00bfff,#065ccc);
 border:1px solid #a1ebff;box-shadow:inset 0 2px 2px #ffffffb3,0 6px 12px #034f9d5c
}
.shell.ci-modern .ci-m3-companyglyph .ci-icon{width:26px;height:26px}
.shell.ci-modern .ci-m3-companyname{display:flex;flex-direction:column;min-width:0;gap:3px}
.shell.ci-modern .ci-m3-companyname strong{font-size:14px;font-weight:900;color:#103369;line-height:1.2}
.shell.ci-modern .ci-m3-companyname small{font-size:10px;color:#51749a;line-height:1.2}
.shell.ci-modern .ci-m3-company-status{margin-left:auto;border-radius:999px;padding:5px 9px;white-space:nowrap;
 font-size:11px;font-weight:800;background:#d6f6e7;color:#126545}
.shell.ci-modern .ci-v2-summary{margin:0 11px 10px;border-radius:17px;padding:12px 13px}
.shell.ci-modern .ci-v2-summary-head{margin-bottom:9px}
.shell.ci-modern .ci-v2-summary-head h2{font-size:14px}
.shell.ci-modern .ci-v2-day-count strong{font-size:32px}
.shell.ci-modern .ci-v2-ministats{margin:0 11px 10px;gap:9px}
.shell.ci-modern .ci-v2-ministat{min-height:111px;padding:12px 12px 10px;border-radius:16px}
.shell.ci-modern .ci-v2-ministat .ci-icon{width:23px;height:23px}
.shell.ci-modern .ci-v2-ministat span{margin-top:3px}
.shell.ci-modern .ci-v2-ministat strong{font-size:26px;margin-top:4px}
.shell.ci-modern .ci-v2-ministat small{font-size:10px;margin-top:4px}
.shell.ci-modern .ci-service-section{padding:0 11px 4px;margin:0}
.shell.ci-modern .ci-service-section .ci-section-title{margin:3px 0 8px;gap:7px;position:relative}
.shell.ci-modern .ci-service-section .ci-section-title>span{width:32px;height:32px;border-radius:10px}
.shell.ci-modern .ci-service-section .ci-section-title h2{font-size:15px}
.shell.ci-modern .ci-service-section .ci-section-title p{font-size:10px}
.shell.ci-modern .ci-m3-expand{
 border:0;background:transparent;color:#075cb2;font-size:10px;font-weight:800;
 margin-left:auto;white-space:nowrap;padding:7px 4px;cursor:pointer;text-decoration:underline;
}
.shell.ci-modern .ci-m3-compact-services .ci-service-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.shell.ci-modern .ci-m3-compact-services .ci-service-card{
 min-height:80px;max-width:none;padding:9px 5px;gap:6px;font-size:10px;line-height:1.17;
}
.shell.ci-modern .ci-m3-compact-services .ci-service-card .ci-icon{width:23px;height:23px}
.shell.ci-modern .ci-m3-compact-services:not(.ci-m3-show-all) .ci-service-card:nth-child(n+4){display:none}
.shell.ci-modern .ci-m3-compact-services.ci-m3-show-all .ci-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.shell.ci-modern .ci-quicklinks{margin:5px 11px 10px;gap:7px}
.shell.ci-modern .ci-quicklinks::before{
 content:"Acessos rápidos";grid-column:1/-1;color:#0b3e75;font-size:15px;font-weight:900;
 margin-bottom:-1px;padding-left:2px
}
.shell.ci-modern .ci-quicklinks button{min-height:69px;padding:7px 4px;border-radius:14px}
.shell.ci-modern .ci-quicklinks .ci-icon{width:23px;height:23px}
.shell.ci-modern .ci-m3-finance{
 margin:0 11px 10px;padding:13px 12px 10px;border:1px solid #bedcf9;border-radius:17px;
 background:linear-gradient(150deg,#fff,#e9f5ff 70%,#d3eaff);
 box-shadow:0 8px 22px #1656a126,inset 0 2px 1px #fff;
}
.shell.ci-modern .ci-m3-panelheading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.shell.ci-modern .ci-m3-panelheading>div{display:flex;align-items:center;gap:7px}
.shell.ci-modern .ci-m3-panelheading .ci-icon{color:#0478cd;width:22px;height:22px}
.shell.ci-modern .ci-m3-panelheading h2{font-size:14px;color:#0d3d79;font-weight:900;margin:0}
.shell.ci-modern .ci-m3-panelheading button{
 border:0;color:#075aa9;background:#d5edff;border-radius:50%;height:29px;width:29px;
 font-weight:800;font-size:19px;cursor:pointer
}
.shell.ci-modern .ci-m3-finance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.shell.ci-modern .ci-m3-finance-stat{display:flex;flex-direction:column;gap:4px;padding:0 6px;border-right:1px solid #b5d6f2;min-width:0}
.shell.ci-modern .ci-m3-finance-stat:first-child{padding-left:0}
.shell.ci-modern .ci-m3-finance-stat:last-child{border:0;padding-right:0}
.shell.ci-modern .ci-m3-finance-stat span{color:#5c799c;font-size:11px;font-weight:700}
.shell.ci-modern .ci-m3-finance-stat strong{font-size:12px;overflow-wrap:anywhere;color:#084d85;font-weight:900}
.shell.ci-modern .ci-m3-finance-stat:last-child strong{color:#04754f}
.shell.ci-modern .ci-m3-finance>p{font-size:10px;line-height:1.2;color:#718aa6;margin:10px 0 0}
.shell.ci-modern.ci-m3-home>main>.grid{display:none!important}
.shell.ci-modern.ci-m3-home>main>.section{margin:0 11px 12px}
.shell.ci-modern.ci-m3-home>main>.section>.row>h2{font-size:16px;color:#10417c}
.shell.ci-modern.ci-m3-home>main>.section .item{padding:12px;border-radius:14px}
.shell.ci-modern.ci-m3-home>.ci-v2-modules{padding:0 11px 30px}
.shell.ci-modern.ci-m3-home>.ci-v2-modules h2{font-size:16px}
.shell.ci-modern.ci-m3-home .ci-v2-module-grid button{min-height:104px;padding:12px}
.shell.ci-modern.ci-m3-home .ci-v2-module-grid .ci-icon{width:25px;height:25px}
/* Keep all five native menu routes and all seven service actions available. */
.shell.ci-modern .ci-drawer-head .brand-compact{
 display:flex!important;align-items:center!important;gap:6px!important
}
.shell.ci-modern .ci-drawer-head .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{
 width:92px!important;height:92px!important;object-fit:contain!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
 filter:drop-shadow(0 5px 8px #001c43b5)
}
.shell.ci-modern .ci-drawer-head .brand-compact b{
 display:block!important;color:#fff!important;line-height:1.15;
 font-size:15px;max-width:156px;text-shadow:0 2px 5px #001339
}
/* Brand integrated in login and report headers rather than pasted as a blue rectangle. */
body .login .brand-compact,body .public-order-head .brand-compact,
body .report-head .brand-compact{display:flex;align-items:center;gap:12px}
body .login .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"],
body .public-order-head .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"],
body .report-head .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{
 width:102px;height:80px;object-fit:contain;background:none;border:0;
 filter:drop-shadow(0 4px 7px #082b6f44)
}
body .login .brand-compact b,body .public-order-head .brand-compact b,
body .report-head .brand-compact b{
 display:block!important;font-weight:900;font-size:18px;line-height:1.15;color:#0a3977
}
/* All official receipts, warranty terms: same integrated blue header + genuine company data. */
#receipt.official-doc{
 position:relative;overflow:hidden;color:#0d2d5a;background:linear-gradient(165deg,#fff,#f5fbff);
 border:2px solid #0967c6;border-radius:15px;
 box-shadow:0 12px 25px #164b942a,inset 0 1px 0 #fff;
 padding:0 12px 18px
}
#receipt.official-doc>.company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]){
 display:grid!important;grid-template-columns:minmax(93px,134px) minmax(0,1fr) minmax(0,150px);
 align-items:center;gap:10px;padding:14px 12px 18px;margin:0 -12px 12px;
 background-color:#05265f!important;
 background-image:url("ci_doc_header_navy_m003.webp")!important;background-size:cover!important;background-position:center!important;
 border-radius:12px 12px 0 0;border:0;
 min-width:0;box-shadow:inset 0 1px 0 #4db4ff9c,0 8px 17px #075ba43e;
 isolation:isolate
}
#receipt.official-doc>.company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"])::after{
 content:"";position:absolute;bottom:0;left:0;right:0;height:9px;pointer-events:none;
 background:linear-gradient(110deg,#03b8ed 0%,#c9f5ff 35%,#116cc5 68%,#ffe137 95%);
 clip-path:polygon(0 28%,24% 75%,55% 7%,85% 68%,100% 12%,100% 100%,0 100%)
}
#receipt .company-logo-real[src="emblema_imperatriz_integrado_m003.webp"]{
 display:block!important;grid-column:auto;grid-row:auto;max-width:100%;
 width:134px;height:111px;aspect-ratio:auto;object-fit:contain;border:0!important;
 background:none!important;box-shadow:none!important;border-radius:0!important;
 filter:drop-shadow(0 4px 7px #000d3888)
}
#receipt .company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]) .company-info{
 min-width:0;align-self:center
}
#receipt .company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]) .company-info b{
 color:#fff!important;font-weight:900;font-size:18px;line-height:1.12;text-shadow:0 2px 4px #001944
}
#receipt .company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]) .company-info span{
 color:#d7f0ff!important;font-size:11px;line-height:1.35;overflow-wrap:anywhere
}
#receipt .company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]) .company-contact{
 grid-column:auto!important;min-width:0;color:#fff!important;text-align:right
}
#receipt .company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]) .company-contact span{
 color:#eff9ff!important;font-size:11px;line-height:1.35;overflow-wrap:anywhere
}
#receipt .doc-title{
 display:flex;align-items:center;justify-content:center;min-height:46px;
 margin:12px auto 16px;padding:9px 13px;
 color:#072e6a;font-size:21px;font-weight:950;letter-spacing:.35px;
 border-radius:13px;
 background:linear-gradient(110deg,#f6fdff,#c5eaff,#eaf8ff);
 border:1px solid #a5d7ff;
 box-shadow:inset 0 2px 1px #fff,0 4px 9px #18529b25
}
#receipt .doc-title::before{
 content:"";width:13px;height:16px;margin-right:10px;border:2px solid #0068ca;
 border-radius:3px;box-shadow:inset 0 0 0 2px #e3f5ff,0 2px 4px #3075b93e;
 background:linear-gradient(135deg,#00bdf6,#0670d5)
}
#receipt .doc-grid,#receipt .warranty-fields{
 background:linear-gradient(145deg,#f1f9ff,#e6f3ff);
 border:1px solid #a9d2f9;border-radius:12px;gap:10px;
 box-shadow:0 5px 12px #1a589323,inset 0 1px 0 #fff
}
#receipt .warranty-caption{
 background:linear-gradient(110deg,#d1efff,#edf9ff);color:#0b4b8f;
 border:1px solid #a2cdf8;box-shadow:0 3px 8px #12599527
}
#receipt .warranty-copy{color:#16365c;line-height:1.47}
#receipt .warranty-copy .number-chip{background:linear-gradient(130deg,#065cb6,#0685d5);color:#fff}
#receipt .payment-strip{border-bottom:1px solid #d0e6fb;padding-bottom:9px}
#receipt .signature-row{margin-top:28px;gap:20px}
#receipt .signature-row>div{border-bottom:2px solid #275da0;color:#12396c;min-width:0}
#receipt::after{
 content:"";display:block;height:12px;margin:22px -12px -18px;
 background:linear-gradient(100deg,#0052b4,#04b9f4 40%,#f6d834 87%,#0655b9);
 clip-path:polygon(0 16%,30% 65%,65% 7%,100% 58%,100% 100%,0 100%)
}
@media(max-width:700px){
 .shell.ci-modern>.top{min-height:79px;padding:6px 10px}
 .shell.ci-modern>.top .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{width:67px!important;height:62px!important}
 .shell.ci-modern>.top .brand-compact b{font-size:13px!important;max-width:116px;line-height:1.03}
 .shell.ci-modern>.top .user{font-size:9px}
 .shell.ci-modern .ci-menu-button{height:39px;width:39px}
 .shell.ci-modern>.top #out{padding:7px;font-size:11px}
 .shell.ci-modern .ci-pagehead{padding:11px 12px;min-height:83px}
 .shell.ci-modern .ci-m3-aircon{width:113px;right:-10px}
 .shell.ci-modern .ci-current strong{font-size:21px}
 .shell.ci-modern .ci-m3-herosub{font-size:11px}
 .shell.ci-modern .ci-m3-finance-stat strong{font-size:11px}
 #receipt.official-doc>.company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]){
  grid-template-columns:88px minmax(0,1fr)!important;gap:5px 11px;
  padding:11px 10px 17px;min-height:123px;
 }
 #receipt .company-logo-real[src="emblema_imperatriz_integrado_m003.webp"]{
  width:88px;height:103px;grid-row:1/3!important;grid-column:1!important;align-self:center
 }
 #receipt .company-head:has(img[src="emblema_imperatriz_integrado_m003.webp"]) .company-info{
  grid-column:2!important;grid-row:1!important;align-self:end!important
 }
 #receipt .company-head:has(img[src="emblema_imperatriz_integrado_m003.webp"]) .company-contact{
  grid-column:2!important;grid-row:2!important;text-align:left!important;align-items:flex-start!important;align-self:start!important
 }
 #receipt .company-head:has(img[src="emblema_imperatriz_integrado_m003.webp"]) .company-info b{font-size:13px!important}
 #receipt .company-head:has(img[src="emblema_imperatriz_integrado_m003.webp"]) .company-info span,
 #receipt .company-head:has(img[src="emblema_imperatriz_integrado_m003.webp"]) .company-contact span{font-size:10px!important}
 #receipt .doc-title{font-size:17px;min-height:42px}
 #receipt .warranty-fields,#receipt .doc-grid{padding:11px;grid-template-columns:1fr!important}
 #receipt .signature-row{gap:9px}
}
@media(max-width:365px){
 .shell.ci-modern>.top .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{width:59px!important;height:57px!important}
 .shell.ci-modern>.top .brand-compact b{font-size:12px!important;max-width:105px}
 .shell.ci-modern .ci-m3-company-status{display:none}
 .shell.ci-modern .ci-m3-herosub{font-size:10px}
 .shell.ci-modern .ci-m3-aircon{width:98px}
 .shell.ci-modern .ci-m3-compact-services .ci-service-card{font-size:9px}
}
@media print{
 body .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"],
 #receipt .company-logo-real[src="emblema_imperatriz_integrado_m003.webp"]{print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #receipt.official-doc{box-shadow:none;overflow:visible;border:1px solid #1567b1}
 #receipt.official-doc>.company-head{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #receipt .doc-title,#receipt .warranty-fields,#receipt .doc-grid{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .ci-m3-company,.ci-m3-finance{display:none!important}
}
/* html2canvas clone compatibility: simple selector mirrors integrated branded heading. */
#receipt.official-doc>.company-head{background-color:#042459!important;background-image:url("ci_doc_header_navy_m003.webp")!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;color:#fff!important}

/* Export-safe brand header: avoid pseudo gradient overlays during html2canvas cloning. */
#receipt.official-doc>.company-head::after{display:none!important;content:none!important}

/* M003 final usability guard: original four daily metrics remain accessible on demand. */
.shell.ci-modern .ci-m3-operational-details{
 margin:9px 11px 14px;
 border:1px solid #bfdffb;border-radius:15px;
 background:linear-gradient(145deg,#f9fdff,#e9f5ff);
 box-shadow:0 6px 16px #145a9a20,inset 0 1px 0 #fff;
 overflow:hidden;
}
.shell.ci-modern .ci-m3-operational-details>summary{
 cursor:pointer;display:list-item;
 color:#0c4f99;font-size:13px;font-weight:850;padding:12px 15px;
}
.shell.ci-modern .ci-m3-operational-details[open]>.grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:9px;padding:3px 12px 14px;
}
.shell.ci-modern .ci-m3-operational-details .metric{
 min-height:92px;padding:11px;font-size:12px;
}
.shell.ci-modern .ci-m3-operational-details .metric>b{
 font-size:20px;overflow-wrap:anywhere;
}
@media(max-width:365px){
 .shell.ci-modern .ci-m3-operational-details[open]>.grid{grid-template-columns:1fr}
}

/* M003 final reference comparison: blue/cyan/yellow integrated headers, large logo and document sections.
   No original data fields or document text are hidden or modified. */
.shell.ci-modern>.top {
 background-image:linear-gradient(110deg,#001b4b66,#00235c30),url("ci_doc_header_navy_m003.webp")!important;
 background-position:center,center!important;
 background-size:cover,cover!important;
 min-height:103px!important;
 padding:7px 11px!important;
}
.shell.ci-modern>.top .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"] {
 width:109px!important;height:94px!important;
 max-width:109px!important;
 filter:drop-shadow(0 3px 5px #061a53aa) drop-shadow(0 1px 1px #ffde4b70)!important;
}
.shell.ci-modern>.top .brand-compact b{
 font-size:18px!important;
 max-width:150px!important;
 line-height:1.04!important;
 text-shadow:0 2px 5px #00113c,0 0 10px #047bd060!important;
}
.shell.ci-modern>.top .user {font-size:10px;color:#e0f7ff;line-height:1.2}
.shell.ci-modern .ci-pagehead{
 background-image:linear-gradient(110deg,#001c4b33,#00235445),url("ci_doc_header_navy_m003.webp")!important;
 background-size:cover!important;
 background-position:center!important;
 border-color:#35c8f6a6!important;
}
.shell.ci-modern .ci-drawer-head{
 background-image:linear-gradient(120deg,#001f4c66,#01387866),url("ci_doc_header_navy_m003.webp")!important;
 background-position:center!important;background-size:cover!important;
}
.shell.ci-modern .ci-m3-company{border-color:#a7d8ff}
.shell.ci-modern .ci-v2-summary{border-color:#add5ff}
#receipt.official-doc>.company-head{
 background-color:#05265f!important;
 background-image:url("ci_doc_header_navy_m003.webp")!important;
 background-size:cover!important;background-position:center!important;
}
#receipt.official-doc>.company-head .company-info,
#receipt.official-doc>.company-head .company-contact{
 border-left:0;
}
#receipt.official-doc .ci-m3-field-section{
 margin:14px 0 0;
 border:1px solid #aad3f9;
 border-radius:12px;
 overflow:hidden;
 box-shadow:0 4px 12px #155fa11f;
 background:linear-gradient(145deg,#fff,#f2f9ff);
}
#receipt.official-doc .ci-m3-fieldbar{
 display:flex;align-items:center;gap:9px;
 background:linear-gradient(100deg,#c7e8ff,#e7f6ff 68%,#b0dafa);
 border-bottom:1px solid #acd3f4;
 color:#0b407e;font-size:14px;font-weight:900;
 padding:9px 12px;letter-spacing:.1px;
}
#receipt.official-doc .ci-m3-fieldbar::before{
 content:"";display:inline-block;width:13px;height:14px;
 border:2px solid #0879cc;border-radius:3px;
 background:linear-gradient(155deg,#fff,#8fe0ff);
 box-shadow:0 2px 4px #0d76d422;
}
#receipt.official-doc .ci-m3-field-section .warranty-fields,
#receipt.official-doc .ci-m3-field-section .doc-grid{
 border:0!important;border-radius:0!important;
 box-shadow:none!important;
 background:linear-gradient(150deg,#fff,#f6fbff)!important;
 margin:0!important;
 padding:12px 14px;
}
#receipt.official-doc .warranty-fields > div{
 min-width:0;overflow-wrap:anywhere;
 padding:4px 5px 6px;border-bottom:1px solid #dcecf9;
}
#receipt.official-doc .warranty-fields > div:empty{
 display:none;
}
#receipt.official-doc .warranty-copy{
 background:linear-gradient(155deg,#fff,#eef8ff);
 border:1px solid #bbd9f5;border-radius:13px;
 box-shadow:0 5px 14px #105da91a;
 padding:12px 13px;
 font-size:13px;line-height:1.5;
}
#receipt.official-doc .warranty-copy p{margin:0 0 12px}
#receipt.official-doc .warranty-copy p:last-child{margin-bottom:0}
#receipt.official-doc .warranty-caption{
 margin:16px auto 10px;
 border-radius:13px;
 font-size:15px;
 border-color:#b0d7f4;
 background:linear-gradient(115deg,#cbe9ff,#effaff,#c9e6ff);
}
#receipt.official-doc .payment-strip{
 display:flex;gap:8px 13px;align-items:center;
 padding:12px 5px;margin:10px 0;
 border-bottom:1px solid #b5d8f8;
}
#receipt.official-doc .payment-strip b{
 color:#0d3772;
}
#receipt.official-doc .signature-row{
 padding:19px 6px 0;
 gap:14px;
}
#receipt.official-doc .signature-row>div{
 border-bottom:2px solid #1f5ba5;
 font-size:12px;
 padding-bottom:2px;
}
#receipt.official-doc .signature-row span{
 color:#204779;
}
#receipt.official-doc.receipt>p{
 margin:16px 0;
 line-height:1.55;
 padding:10px 5px;
}
#receipt.official-doc.receipt>p b{color:#082b64}
#receipt.official-doc .ci-m3-field-section + .signature-row{margin-top:42px}
@media(max-width:700px) {
 .shell.ci-modern>.top{min-height:91px!important;padding:7px 8px!important;gap:6px}
 .shell.ci-modern>.top .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{
  width:87px!important;height:79px!important;
  max-width:87px!important;flex-shrink:0;
 }
 .shell.ci-modern>.top .brand-compact b{
  font-size:14px!important;max-width:129px!important;line-height:1.03!important;
 }
 .shell.ci-modern>.top .user{font-size:9px;line-height:1.1}
 .shell.ci-modern>.top .ci-menu-button{width:37px;height:39px;flex-shrink:0}
 .shell.ci-modern>.top #out{padding:7px 8px;font-size:11px;flex-shrink:0}
 #receipt.official-doc .ci-m3-fieldbar{font-size:13px;padding:8px 10px}
 #receipt.official-doc .warranty-fields>div{
  font-size:13px;line-height:1.45;
 }
 #receipt.official-doc .warranty-copy{font-size:12px}
 #receipt.official-doc .doc-title{margin:11px auto 14px}
}
@media(max-width:365px){
 .shell.ci-modern>.top .brand-compact img[src="emblema_imperatriz_integrado_m003.webp"]{
  width:75px!important;height:75px!important;
 }
 .shell.ci-modern>.top .brand-compact b{font-size:13px!important;max-width:116px!important}
}
@media print{
 #receipt.official-doc .ci-m3-field-section,
 #receipt.official-doc .warranty-copy,
 #receipt.official-doc .payment-strip{break-inside:avoid}
 #receipt.official-doc .ci-m3-fieldbar{
  -webkit-print-color-adjust:exact;print-color-adjust:exact;
 }
}

/* M004: suppress obstructive horizontal wave artwork without modifying functional UI.
   All seven original service actions remain permanently visible on Home. */
.shell.ci-modern>.top,
.shell.ci-modern .ci-pagehead,
.shell.ci-modern .ci-drawer-head,
#receipt.official-doc>.company-head {
 background-image:
  radial-gradient(ellipse at 81% 12%,rgba(36,145,227,.23),transparent 46%),
  linear-gradient(115deg,#051c45 0%,#07346d 59%,#0862a4 100%)!important;
 background-repeat:no-repeat!important;
 background-size:cover!important;
}
.shell.ci-modern>.top::after,
.shell.ci-modern .ci-pagehead::before,
.shell.ci-modern .ci-pagehead::after,
#receipt.official-doc>.company-head::after,
#receipt::after {
 display:none!important;
 content:none!important;
 background:none!important;
}
.shell.ci-modern .ci-m3-compact-services .ci-service-card:nth-child(n) {
 display:flex!important;
}
.shell.ci-modern .ci-m3-compact-services .ci-m3-expand {
 display:none!important;
}
@media print {
 #receipt.official-doc>.company-head {
  background-image:linear-gradient(115deg,#051c45 0%,#07346d 59%,#0862a4 100%)!important;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
 }
 #receipt.official-doc>.company-head::after,
 #receipt::after {display:none!important;content:none!important}
}

/* M004 document-specific priority fix: outrank earlier :has logo image rule. */
#receipt.official-doc>.company-head:has(>img[src="emblema_imperatriz_integrado_m003.webp"]){
 background-image:radial-gradient(ellipse at 81% 12%,rgba(36,145,227,.23),transparent 46%),
  linear-gradient(115deg,#051c45 0%,#07346d 59%,#0862a4 100%)!important;
 background-size:cover!important;
 background-position:center!important;
}
